* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--ds-screen); }
body {
  margin: 0;
  background: var(--ds-screen);
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: 16px;
  line-height: 1.45;
}
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 4px; }
.page-shell { width: min(100% - 48px, 980px); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.wordmark { font-size: 30px; font-weight: 700; letter-spacing: -0.08em; line-height: 1; }
.wordmark-dot { color: var(--ds-blue); }
.top-actions { display: flex; gap: 12px; }
.quiet-action {
  border: 0;
  border-radius: var(--ds-radius-pill);
  padding: 10px 14px;
  background: transparent;
  color: var(--ds-text-secondary);
  cursor: pointer;
  transition: color var(--ds-motion-state), background var(--ds-motion-state);
}
.quiet-action:hover { color: var(--ds-text); background: var(--ds-fill-1); }
.page-heading { padding: 68px 0 30px; }
.section-note { margin: 0; color: var(--ds-text-tertiary); font-size: 13px; font-weight: 500; }
h1, h2, p { margin-top: 0; }
h1 { margin: 10px 0 8px; font-size: clamp(44px, 7vw, 76px); line-height: 1.03; letter-spacing: -0.065em; font-weight: 650; }
h2 { margin: 0; font-size: clamp(20px, 3vw, 24px); font-weight: 620; letter-spacing: -0.035em; }
.intro-copy { max-width: 570px; margin: 0; color: var(--ds-text-secondary); font-size: 17px; }
.salary-form { display: flex; align-items: start; gap: 12px; max-width: 650px; }
.salary-form ds-field { flex: 1; min-width: 0; }
.salary-form ds-button { flex: none; }
.salary-form ds-button > button { min-height: 62px; }
.save-status { min-height: 24px; margin: 8px 0 0; color: var(--ds-text-secondary); font-size: 13px; }
.save-status[data-error="true"] { color: var(--ds-danger-text); }
.currency-section, .earned-section, .pace-section { padding: 48px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.currency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.currency-item { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.currency-code { color: var(--ds-text-tertiary); font-size: 13px; font-weight: 600; }
.currency-item strong { font-size: clamp(20px, 3.2vw, 35px); font-weight: 620; line-height: 1.15; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.supporting-note { margin: 20px 0 0; color: var(--ds-text-tertiary); font-size: 13px; line-height: 1.55; }
.earned-section { border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.earned-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.earned-block { display: flex; flex-direction: column; min-width: 0; }
.earned-label { color: var(--ds-text-secondary); font-size: 15px; }
.earned-value { margin: 8px 0 22px; font-size: clamp(31px, 4.7vw, 56px); line-height: 1.08; letter-spacing: -0.06em; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.progress-track { display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: var(--ds-radius-pill); background: var(--ds-fill-2); appearance: none; }
.progress-track::-webkit-progress-bar { border-radius: var(--ds-radius-pill); background: var(--ds-fill-2); }
.progress-track::-webkit-progress-value { border-radius: var(--ds-radius-pill); background: var(--ds-text); }
.progress-track::-moz-progress-bar { border-radius: var(--ds-radius-pill); background: var(--ds-text); }
.work-progress::-webkit-progress-value { background: var(--ds-blue); }
.work-progress::-moz-progress-bar { background: var(--ds-blue); }
.earned-detail { margin-top: 9px; color: var(--ds-text-tertiary); font-size: 13px; }
.countdown-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 38px; color: var(--ds-text-secondary); }
.countdown-row strong { color: var(--ds-text); font-size: 22px; font-weight: 620; font-variant-numeric: tabular-nums; }
.pace-head, .pace-row { display: grid; grid-template-columns: minmax(90px, .8fr) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: baseline; }
.pace-head { padding-bottom: 12px; color: var(--ds-text-tertiary); font-size: 13px; }
.pace-row { padding: 17px 0; border-top: 1px solid var(--ds-line); }
.pace-row > span { color: var(--ds-text-secondary); }
.pace-row strong { font-size: clamp(17px, 2.6vw, 25px); font-weight: 620; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.access-section { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--ds-line); }
.access-section .supporting-note { max-width: 550px; margin-top: 8px; }
.access-action { min-width: 195px; }
.access-action ds-button { display: block; }
.access-action .save-status { max-width: 280px; }
footer { padding: 42px 0 34px; color: var(--ds-text-tertiary); font-size: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 420px); }
.login-panel .wordmark { display: block; margin-bottom: 74px; }
.login-panel h1 { margin-bottom: 16px; }
.login-panel .intro-copy { margin-bottom: 34px; }
.login-panel ds-button, .login-form ds-button { display: block; width: 100%; }
.login-form { display: grid; gap: 14px; }
.login-panel .save-status { margin-top: 16px; }
.shared-login { display: inline-block; margin-top: 18px; color: var(--ds-text); font-size: 14px; font-weight: 600; text-underline-offset: 4px; }

@media (max-width: 640px) {
  .page-shell { width: min(100% - 32px, 980px); }
  .topbar { min-height: 74px; }
  .wordmark { font-size: 27px; }
  .page-heading { padding: 42px 0 24px; }
  .salary-form { display: grid; grid-template-columns: minmax(0, 1fr); }
  .salary-form ds-button { width: 100%; }
  .salary-form ds-button > button { min-height: 48px; }
  .currency-section, .earned-section, .pace-section { padding: 36px 0; }
  .currency-grid { gap: 12px; }
  .currency-item strong { font-size: clamp(17px, 5vw, 28px); }
  .earned-grid { grid-template-columns: 1fr; gap: 32px; }
  .earned-value { margin-bottom: 16px; }
  .section-heading { align-items: start; flex-direction: column; gap: 5px; margin-bottom: 22px; }
  .pace-head, .pace-row { grid-template-columns: 70px repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pace-row strong { font-size: clamp(15px, 4.2vw, 21px); }
  .countdown-row strong { text-align: right; }
  .access-section { align-items: stretch; flex-direction: column; gap: 18px; padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .quiet-action { transition: none; }
}
