/* Keep account entry points in the same editorial language as courses and labs. */
:root {
  color-scheme: light;
  --ink: #f7f7f2;
  --panel: #fcfcf8;
  --line: #e1e3db;
  --text: #202321;
  --muted: #747772;
  --cyan: #3d594b;
}

html,
body {
  background: #f7f7f2;
  color: #202321;
  font-family:
    'Manrope Variable', 'Noto Sans SC Variable', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-aura,
.page-grid {
  display: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-color: #3d594b;
}

/* Login */
.site-shell {
  max-width: 1440px;
  padding: 0 clamp(20px, 4.5vw, 64px);
}

.site-topbar {
  height: 100px;
  border-color: #20232112;
}

.site-topbar .wordmark {
  gap: 12px;
  font-size: 28px;
  font-weight: 680;
  letter-spacing: 0;
}

.login-brand-symbol {
  width: 26px;
  height: 26px;
  flex: none;
  color: #202321;
}

.site-topbar .wordmark-name {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.02em;
}

.topbar-status {
  color: #747772;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.login-layout {
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.86fr);
  gap: clamp(28px, 4.4vw, 64px);
}

.story-column {
  padding-top: clamp(34px, 4vw, 60px);
}

.section-tag,
.form-kicker,
.access-top {
  color: #536e5d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.tag-rule {
  width: 24px;
  background: #6c8874;
}

.section-tag > .tag-rule:first-child {
  display: block;
  width: 24px;
  height: 1px;
  border: 0;
}

.story-heading h1 {
  margin-top: 22px;
  font-size: clamp(46px, 4.7vw, 68px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.055em;
}

.story-heading h1 > span,
.story-heading h1 strong {
  font-weight: 500;
}

.story-heading h1 strong,
.access-heading h2 span {
  color: #3d594b;
}

.title-period {
  color: #9baf9d;
}

.story-intro,
.access-heading > p:last-child,
.access-note p {
  color: #656d65;
  font-size: 16px;
  line-height: 1.7;
}

.simulation-window {
  border-color: #dfe3d9;
  border-radius: 20px;
  background: #fcfcf8;
  box-shadow: 0 18px 46px #263e2811;
}

.exhibit-picker {
  gap: 4px;
  padding: 9px;
  border-color: #e4e8df;
  background: #fcfcf8;
  border-radius: 20px 20px 0 0;
}

.exhibit-picker button {
  min-height: 48px;
  place-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  color: #646c64;
  text-align: center;
}

.exhibit-picker button:hover {
  color: #3d594b;
  background: #eef3eb;
}

.exhibit-picker button.is-active {
  border-color: #cbd9c9;
  background: #eaf2e8;
  color: #314e3d;
  box-shadow: none;
}

.exhibit-picker strong {
  font-size: 14px;
  font-weight: 600;
}

.window-head {
  border-color: #e4e8df;
  background: #fcfcf8;
  color: #747772;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.window-head .live-flag,
.sim-watermark,
.sim-overlay,
.story-foot,
.access-top {
  display: none;
}

.sim-canvas-shell,
[data-active-exhibit='celestial'] .sim-canvas-shell,
[data-active-exhibit='golden'] .sim-canvas-shell,
[data-active-exhibit='cell'] .sim-canvas-shell {
  background: #f3f5ef;
}

.sim-canvas-shell:after {
  display: none;
}

.sim-readout {
  border-color: #e4e8df;
  background: #fcfcf8;
}

.readout-title strong,
.sim-values b {
  color: #26382b;
}

.readout-index,
.sim-values span {
  color: #737a71;
  font-family: inherit;
  letter-spacing: 0;
}

.sim-controls button {
  border-color: #d7dfd3;
  border-radius: 10px;
  background: #f5f8f2;
  color: #3d594b;
}

.sim-controls button:hover {
  border-color: #8fa893;
  background: #eaf2e8;
  color: #314e3d;
}

.access-column {
  padding: 30px 0 38px;
  border: 0;
}

.access-card {
  max-width: none;
  margin: auto 0;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid #dfe3d9;
  border-radius: 20px;
  background: #fcfcf8;
  box-shadow: 0 18px 46px #263e280c;
}

.form-kicker {
  margin-bottom: 12px;
}

.access-heading h2 {
  font-size: clamp(36px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.access-heading > p:last-child {
  margin: 16px 0 28px;
}

.role-tabs {
  gap: 8px;
  margin-bottom: 25px;
}

.role-tab,
.role-tab.is-active {
  min-height: 56px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #fffefa;
  color: #555e55;
  box-shadow: none;
  text-align: center;
}

.role-tab {
  border-color: #dfe3d9;
}

.role-tab:hover {
  border-color: #8fa893;
}

.role-tab.is-active {
  border-color: #8fa893;
  background: #eaf2e8;
  color: #314e3d;
}

.role-tab strong {
  font-size: 16px;
  font-weight: 600;
}

.access-card form label {
  margin-top: 16px;
  color: #343a34;
  font-weight: 600;
}

.input-shell {
  border-color: #d6ddd3;
  border-radius: 12px;
  background: #fff;
}

.input-shell:focus-within {
  border-color: #6c8874;
  box-shadow: 0 0 0 3px #6c887423;
}

.input-icon,
.reveal-button {
  color: #5f7966;
}

.input-shell input {
  padding-left: 16px;
  color: #202321;
}

.input-shell input::placeholder {
  color: #939991;
}

.submit-button {
  min-height: 56px;
  margin-top: 26px;
  border-color: #3d594b;
  border-radius: 12px;
  background: #3d594b;
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}

.submit-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.site-footer {
  border-color: #20232112;
  color: #747772;
  font-size: 12px;
  font-weight: 400;
  flex-wrap: wrap;
}

.site-footer .filing-links {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer .filing-links a:hover {
  color: #3d594b;
}

/* Administration */
body[data-role='admin'] {
  background: #f7f7f2;
  color: #202321;
}

body[data-role='admin'] .main-column {
  min-height: 100vh;
}

body[data-role='admin'] .topbar {
  min-height: 100px;
  height: auto;
  padding: 0 clamp(20px, 4.5vw, 64px);
  border-color: #20232112;
  background: #f7f7f2;
}

.site-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: #202321;
  font-size: 28px;
  font-weight: 680;
  white-space: nowrap;
}

.site-brand svg {
  width: 26px;
  height: 26px;
}

.admin-site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 34px);
  margin-left: auto;
  white-space: nowrap;
}

.admin-site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #4e534e;
  font-size: 13px;
  transition: color 0.2s;
}

.admin-site-nav a:hover,
.admin-site-nav a[aria-current='page'] {
  color: #3d594b;
}

.admin-site-nav a[aria-current='page'] {
  font-weight: 700;
}

body[data-role='admin'] .account-actions {
  gap: 14px;
  color: #747772;
  font-size: 13px;
  white-space: nowrap;
}

body[data-role='admin'] .account-actions button {
  color: #3d594b;
  font-size: 13px;
  font-weight: 600;
}

body[data-role='admin'] .content {
  max-width: 1312px;
  padding: clamp(36px, 5vw, 70px) clamp(20px, 4.5vw, 64px) 84px;
}

body[data-role='admin'] .section-title h1 {
  color: #202321;
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

body[data-role='admin'] .section-title p {
  color: #747772;
}

body[data-role='admin'] .management-layout {
  gap: 20px;
  margin-top: 36px;
}

body[data-role='admin'] .management-layout > * {
  border-color: #e1e3db;
  border-radius: 20px;
  background: #fcfcf8;
  box-shadow: 0 12px 34px #263e2809;
}

body[data-role='admin'] .form-grid h2,
body[data-role='admin'] .users-region h2 {
  color: #202321;
  font-size: 20px;
  font-weight: 600;
}

body[data-role='admin'] .form-grid label,
body[data-role='admin'] td:first-child {
  color: #343a34;
  font-weight: 600;
}

body[data-role='admin'] .form-grid input,
body[data-role='admin'] .form-grid select {
  min-height: 52px;
  border-color: #d6ddd3;
  border-radius: 12px;
  color: #202321;
}

body[data-role='admin'] .form-grid input:focus,
body[data-role='admin'] .form-grid select:focus {
  border-color: #6c8874;
  box-shadow: 0 0 0 3px #6c887423;
}

body[data-role='admin'] .primary-button {
  min-height: 52px;
  border-color: #3d594b;
  border-radius: 12px;
  background: #3d594b;
  font-weight: 600;
}

body[data-role='admin'] .text-button,
body[data-role='admin'] .credential-panel button {
  color: #3d594b;
}

body[data-role='admin'] th,
body[data-role='admin'] td {
  border-color: #e1e3db;
}

body[data-role='admin'] th,
body[data-role='admin'] td small {
  color: #747772;
}

body[data-role='admin'] td button,
body[data-role='admin'] td select {
  border-color: #d6ddd3;
  border-radius: 10px;
  background: #f5f8f2;
  color: #3d594b;
}

body[data-role='admin'] .credential-panel {
  border-color: #cbd9c9;
  border-radius: 16px;
  background: #eaf2e8;
}

body[data-role='admin'] .footer {
  border-color: #e1e3db;
  background: #f7f7f2;
  color: #747772;
}

@media (max-width: 1120px) {
  body[data-role='admin'] .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 20px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .admin-site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }

  body[data-role='admin'] .account-actions {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (max-width: 960px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .access-column {
    padding-top: 0;
    border: 0;
  }

  .access-card {
    max-width: 680px;
    margin: 10px auto 30px;
  }
}

@media (max-width: 560px) {
  .site-topbar {
    height: 72px;
  }

  .site-topbar .wordmark,
  .site-brand {
    font-size: 22px;
  }

  .login-brand-symbol,
  .site-brand svg {
    width: 24px;
    height: 24px;
  }

  .story-heading h1 {
    font-size: clamp(38px, 9vw, 48px);
  }

  .sim-canvas-shell {
    height: 260px;
  }

  .access-card {
    padding: 24px 20px;
  }

  .access-heading h2 {
    font-size: 38px;
  }

  body[data-role='admin'] .topbar {
    min-height: 106px;
    padding: 8px 16px;
  }

  body[data-role='admin'] .account-actions #account-name {
    display: none;
  }

  .admin-site-nav a {
    min-height: 42px;
  }

  body[data-role='admin'] .content {
    padding: 30px 16px 52px;
  }
}
