:root {
  color-scheme: light;
  --paper: #eaf1f3;
  --surface: #fff;
  --ink: #183647;
  --muted: #597180;
  --line: #cad9df;
  --blue: #22668c;
  --blue-dark: #164d6d;
  --warm: #c96f43;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 95% 5%, #dcebf0 0, transparent 36%), var(--paper); color: var(--ink); font: 16px/1.55 Aptos, 'Trebuchet MS', sans-serif; }
.page { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 0 27px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.mark { display: block; width: 38px; height: 38px; flex: none; }
.eyebrow, .label, .local { color: var(--blue); font: 700 11px/1.3 Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { font: 400 clamp(44px, 5vw, 68px)/1.07 Georgia, 'Times New Roman', serif; }
h2 { margin-bottom: 13px; font: 400 clamp(25px, 2.6vw, 34px)/1.17 Georgia, 'Times New Roman', serif; }
p { margin-bottom: 13px; }
button, input, select, textarea { font: inherit; }
button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; }
button:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
label { display: block; margin-bottom: 18px; font-weight: 650; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 11px 12px; border: 1px solid #aebfc8; border-radius: 7px; background: #fbfdfe; color: var(--ink); font-weight: 400; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; }
textarea { resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 18px; font-size: 17px; font-weight: 700; }
form > button, form > fieldset > button { width: 100%; }
.surface, .controls > form, .settings > form, .desktop-setup > div:last-child, .usb-readiness > div:last-child { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 7px 22px #20465b0a; }
.surface p, .controls p, .settings p, .desktop-setup p, .usb-readiness p, footer { color: var(--muted); }
.device-picker { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(250px, 1.3fr); gap: 8px 28px; align-items: center; margin: 32px 0 -8px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 7px 22px #20465b0a; }
.device-picker label { grid-row: span 2; margin: 0; font: 400 25px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.device-picker select { margin: 0; font-weight: 700; }
.device-picker p { margin: 0; color: var(--muted); font-size: 13px; }
.deadline { position: relative; overflow: hidden; margin: 42px 0 6px; padding: clamp(34px, 5vw, 58px); border-radius: 19px; background: #173b50; color: #fff; box-shadow: 0 22px 45px #173b5026; }
.deadline::after { position: absolute; right: -85px; bottom: -160px; width: 370px; height: 370px; border: 1px solid #9ec7db55; border-radius: 50%; content: ''; box-shadow: 0 0 0 60px #9ec7db11, 0 0 0 120px #9ec7db0a; pointer-events: none; }
.deadline .label { color: #9ecbda; }
.deadline h1 { max-width: 700px; margin: 16px 0 21px; }
#deadline { margin-bottom: 8px; color: #e0f3f6; font-size: 18px; }
#delivery { margin-bottom: 0; color: #b4d1dc; font-size: 14px; }
.controls, .settings, .desktop-setup, .usb-readiness { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(30px, 6vw, 85px); align-items: start; padding: 42px 0; border-bottom: 1px solid var(--line); }
.controls > div, .settings > div, .desktop-setup > div:first-child, .usb-readiness > div:first-child { padding-top: 12px; }
.controls > div p, .settings > div p, .desktop-setup > div p, .usb-readiness > div p { max-width: 38ch; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 16px; margin: 25px 0; }
.apps legend { grid-column: 1 / -1; margin-bottom: 5px; }
.apps label, #focus-apps label { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; }
#focus-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; max-height: 240px; margin-bottom: 22px; overflow: auto; }
.settings ul, .usb-readiness ul { padding-left: 21px; overflow-wrap: anywhere; }
.settings li, .usb-readiness li { margin: 7px 0; }
.setup-actions { display: flex; gap: 10px; }
.setup-actions button { flex: 1; font-size: 14px; }
.setup-actions button + button { background: var(--ink); border-color: var(--ink); }
#spare-setup { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
#spare-setup button { width: 100%; margin-bottom: 9px; }
#personal-setup { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
#personal-setup button { width: 100%; margin-bottom: 9px; }
#check-phones { width: auto; }
#feedback, #account-status, #limit-feedback, #focus-config-feedback, #chrome-feedback, #emulator-status, #phone-status, #spare-status, #personal-status { min-height: 24px; color: var(--muted); font-size: 14px; }
#feedback { margin-top: 24px; }
[hidden] { display: none !important; }
footer { margin-top: 25px; padding: 24px 0 38px; border-top: 1px solid var(--line); font-size: 13px; }
.login-page, .phone-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .83fr); gap: clamp(44px, 8vw, 118px); align-items: center; flex: 1; padding: 70px 0 105px; }
.login-intro h1 { margin: 19px 0 24px; }
.login-intro > p:not(.eyebrow) { max-width: 36ch; color: var(--muted); font-size: 19px; }
.login-note { display: flex; gap: 14px; max-width: 390px; margin-top: 52px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.login-note > span:first-child { color: var(--warm); font: 26px/1 Georgia, serif; }
.login-form { width: 100%; padding: clamp(28px, 4vw, 44px); }
.login-form .eyebrow { margin-bottom: 30px; }
.login-form label { margin-bottom: 22px; }
.login-form button { margin-top: 4px; }
.login-form #account-status { margin: 15px 0 0; }
.login-page footer, .phone-page footer { margin-top: auto; }
.phone-message { width: min(680px, 100%); margin: auto; padding: 50px 0 80px; }
.phone-message .eyebrow { margin: 32px 0 17px; }
.phone-message h1 { margin-bottom: 24px; }
.phone-message > p:last-child { max-width: 44ch; color: var(--muted); font-size: 18px; }
.phone-illustration { display: flex; align-items: center; gap: 25px; color: var(--warm); font: 52px/1 Georgia, serif; }
.phone-shape { position: relative; width: 70px; height: 112px; border: 3px solid var(--ink); border-radius: 13px; transform: rotate(9deg); }
.phone-line { position: absolute; top: 12px; left: 21px; width: 21px; border-top: 2px solid var(--ink); }
.phone-dot { position: absolute; bottom: 10px; left: 29px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
dialog { width: min(530px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 31px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 80px #102d4255; }
dialog::backdrop { background: #0d2b3bb8; }
dialog h2 { margin-top: 0; }
dialog p { color: var(--muted); }
.confirm-actions { display: flex; gap: 12px; margin-top: 27px; }
.confirm-actions button { flex: 1; }
.confirm-actions button:first-child { border-color: var(--line); background: var(--paper); color: var(--ink); }
@media (max-width: 760px) {
  .page { width: min(100% - 36px, 580px); }
  .site-header { padding: 22px 0; }
  .site-header > .eyebrow { max-width: 100px; text-align: right; }
  .controls, .settings, .desktop-setup, .usb-readiness, .login-layout { grid-template-columns: 1fr; gap: 20px; }
  .device-picker { grid-template-columns: 1fr; gap: 10px; margin-top: 25px; padding: 20px; }
  .device-picker label { grid-row: auto; }
  .controls, .settings, .desktop-setup, .usb-readiness { padding: 30px 0; }
  .deadline { margin-top: 26px; }
  .login-layout { align-content: center; padding: 54px 0; }
  .login-note { margin-top: 25px; }
  .phone-message { padding: 58px 0; }
}
@media (max-width: 480px) {
  .apps, #focus-apps { grid-template-columns: 1fr; }
  .setup-actions, .confirm-actions { flex-direction: column; }
  .phone-message h1 { font-size: clamp(39px, 11vw, 54px); }
}
