:root {
  color-scheme: dark;
  --entry-bg: #07101a;
  --entry-bg-soft: #0c1723;
  --entry-panel: rgba(13, 26, 39, .78);
  --entry-panel-solid: #0e1b28;
  --entry-card: rgba(255, 255, 255, .055);
  --entry-card-hover: rgba(255, 255, 255, .085);
  --entry-line: rgba(177, 210, 231, .14);
  --entry-line-strong: rgba(177, 210, 231, .25);
  --entry-text: #f5f9fc;
  --entry-muted: #93a9b9;
  --entry-subtle: #668093;
  --entry-accent: #43d9e6;
  --entry-accent-2: #3d7cff;
  --entry-success: #68e5ae;
  --entry-danger: #ff7e8e;
  --entry-shadow: 0 32px 100px rgba(0, 0, 0, .4);
  --entry-radius: 26px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-entry-theme="light"] {
  color-scheme: light;
  --entry-bg: #eef4f7;
  --entry-bg-soft: #e4edf2;
  --entry-panel: rgba(255, 255, 255, .84);
  --entry-panel-solid: #fff;
  --entry-card: rgba(23, 54, 75, .055);
  --entry-card-hover: rgba(23, 54, 75, .09);
  --entry-line: rgba(28, 62, 84, .13);
  --entry-line-strong: rgba(28, 62, 84, .24);
  --entry-text: #102433;
  --entry-muted: #587182;
  --entry-subtle: #738897;
  --entry-shadow: 0 30px 90px rgba(53, 78, 92, .18);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--entry-bg); }
body { min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; overflow-x: hidden; color: var(--entry-text); background: radial-gradient(circle at 16% 18%, rgba(44, 124, 255, .12), transparent 31%), radial-gradient(circle at 84% 82%, rgba(67, 217, 230, .08), transparent 34%), var(--entry-bg); }
button, input, select { font: inherit; }
button { color: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.entry-ambient { position: fixed; width: 42rem; height: 42rem; border-radius: 50%; pointer-events: none; filter: blur(90px); opacity: .13; }
.entry-ambient-a { top: -22rem; left: -16rem; background: #1567ff; }
.entry-ambient-b { right: -20rem; bottom: -24rem; background: #3de8cf; }
.entry-grid { position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(rgba(123, 169, 198, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 169, 198, .035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to right, black, transparent 70%); }

.entry-shell { position: relative; display: grid; grid-template-columns: minmax(320px, 42%) minmax(560px, 58%); width: min(1440px, calc(100% - 48px)); min-height: min(900px, calc(100vh - 48px)); min-height: min(900px, calc(100dvh - 48px)); margin: 24px auto; overflow: hidden; border: 1px solid var(--entry-line); border-radius: 32px; background: rgba(5, 14, 23, .42); box-shadow: var(--entry-shadow); backdrop-filter: blur(30px); }

.entry-story { position: relative; display: flex; flex-direction: column; padding: clamp(34px, 4vw, 66px); overflow: hidden; background: linear-gradient(145deg, rgba(10, 25, 39, .94), rgba(8, 18, 29, .74)); border-right: 1px solid var(--entry-line); }
.entry-story::after { content: ""; position: absolute; width: 340px; height: 340px; right: -170px; top: 28%; border: 1px solid rgba(77, 216, 230, .13); border-radius: 50%; box-shadow: 0 0 0 52px rgba(77, 216, 230, .025), 0 0 0 104px rgba(77, 216, 230, .018); pointer-events: none; }
.entry-brand { position: relative; z-index: 1; width: 170px; display: block; }
.entry-brand img, .compact-brand img, .loading-mark img, .connection-orbit img { display: block; width: 100%; }
.entry-brand img, .compact-brand img, .loading-mark img, .connection-orbit img { filter: brightness(0) invert(1); }
html[data-entry-theme="light"] .entry-brand img, html[data-entry-theme="light"] .compact-brand img, html[data-entry-theme="light"] .loading-mark img, html[data-entry-theme="light"] .connection-orbit img { filter: none; }
.story-copy { position: relative; z-index: 1; max-width: 490px; margin: clamp(82px, 12vh, 150px) 0 52px; }
.eyebrow { margin: 0 0 15px; color: var(--entry-accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.story-copy h1 { max-width: 470px; margin: 0; font-size: clamp(38px, 4.3vw, 66px); line-height: 1.01; letter-spacing: -.055em; font-weight: 660; }
.story-copy > p:last-child { max-width: 450px; margin: 27px 0 0; color: var(--entry-muted); font-size: 16px; line-height: 1.75; }

.core-card { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr auto; gap: 15px; align-items: center; width: min(100%, 460px); padding: 16px 18px; margin-top: auto; border: 1px solid var(--entry-line); border-radius: 18px; background: rgba(255, 255, 255, .045); }
.core-pulse { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(104, 229, 174, .1); }
.core-pulse span, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--entry-muted); box-shadow: 0 0 0 5px rgba(147, 169, 185, .08); }
.core-card.online .core-pulse span, .status-dot { background: var(--entry-success); box-shadow: 0 0 0 5px rgba(104, 229, 174, .09), 0 0 16px rgba(104, 229, 174, .42); }
.core-card > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.core-card small { color: var(--entry-subtle); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.core-card strong { font-size: 13px; font-weight: 700; }
.core-card span:not(.core-pulse span) { overflow: hidden; color: var(--entry-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.core-card > b { align-self: start; color: var(--entry-subtle); font-size: 10px; font-weight: 700; }

.setup-progress { position: relative; z-index: 1; display: grid; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.setup-progress[hidden] { display: none; }
.setup-progress li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; min-height: 42px; opacity: .42; transition: opacity .25s ease; }
.setup-progress li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--entry-line-strong); border-radius: 50%; color: var(--entry-muted); font-size: 11px; font-weight: 800; }
.setup-progress li > div { display: grid; gap: 1px; }
.setup-progress li b { font-size: 12px; }
.setup-progress li small { color: var(--entry-muted); font-size: 10px; }
.setup-progress li.active, .setup-progress li.complete { opacity: 1; }
.setup-progress li.active > span { border-color: rgba(67, 217, 230, .5); color: var(--entry-accent); background: rgba(67, 217, 230, .1); box-shadow: 0 0 20px rgba(67, 217, 230, .09); }
.setup-progress li.complete > span { color: #062117; border-color: var(--entry-success); background: var(--entry-success); font-size: 0; }
.setup-progress li.complete > span::after { content: "✓"; font-size: 11px; }
.entry-story footer { position: relative; z-index: 1; display: flex; gap: 9px; align-items: center; margin-top: 28px; color: var(--entry-subtle); font-size: 10px; line-height: 1.5; }
.privacy-lock { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--entry-line); border-radius: 7px; color: var(--entry-accent); }

.entry-workspace { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--entry-panel); backdrop-filter: blur(35px); }
.workspace-topbar { display: flex; justify-content: flex-end; align-items: center; min-height: 74px; padding: 18px clamp(24px, 4vw, 62px); }
.compact-brand { display: none; width: 136px; }
.language-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--entry-line); border-radius: 12px; background: var(--entry-card); }
.language-switch button { width: 38px; height: 30px; padding: 0; border: 0; border-radius: 9px; color: var(--entry-muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.language-switch button:hover { color: var(--entry-text); }
.language-switch button.active { color: var(--entry-text); background: var(--entry-card-hover); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.entry-panel { display: grid; place-items: center; flex: 1; width: 100%; padding: 18px clamp(32px, 6vw, 92px) 66px; }
.entry-view { display: none; width: min(100%, 660px); animation: view-in .35s ease both; }
.entry-view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.entry-view h2 { margin: 0; font-size: clamp(30px, 3.1vw, 47px); line-height: 1.08; letter-spacing: -.045em; font-weight: 660; }
.entry-view .lead { max-width: 620px; margin: 16px 0 33px; color: var(--entry-muted); font-size: 14px; line-height: 1.7; }

.loading-view, .error-view { text-align: center; }
.loading-mark { position: relative; width: 176px; margin: 0 auto 42px; }
.loading-mark i { position: absolute; inset: -26px -38px; border: 1px solid var(--entry-line); border-radius: 50%; animation: loading-ring 1.8s ease-in-out infinite; }
@keyframes loading-ring { 0%, 100% { opacity: .2; transform: scale(.94); } 50% { opacity: .8; transform: scale(1); } }
.loading-view h2, .error-view h2 { font-size: 32px; }
.loading-view p, .error-view > p:not(.eyebrow) { margin: 14px auto 28px; color: var(--entry-muted); font-size: 14px; line-height: 1.6; }
.view-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 28px; border-radius: 18px; font-size: 22px; font-weight: 800; }
.view-icon.danger { color: var(--entry-danger); background: rgba(255, 126, 142, .1); border: 1px solid rgba(255, 126, 142, .2); }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: view-in .3s ease both; }
.connection-panel { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--entry-line); border-radius: 22px; background: var(--entry-card); }
.connection-orbit { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border: 1px solid var(--entry-line); border-radius: 50%; }
.connection-orbit::before, .connection-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(67, 217, 230, .12); }
.connection-orbit::before { inset: 18px; }
.connection-orbit::after { inset: 36px; background: rgba(67, 217, 230, .04); }
.connection-orbit img { position: relative; z-index: 1; width: 86px; }
.connection-orbit i { position: absolute; z-index: 2; width: 7px; height: 7px; border-radius: 50%; background: var(--entry-accent); box-shadow: 0 0 14px var(--entry-accent); }
.connection-orbit i:first-of-type { top: 17px; right: 27px; }
.connection-orbit i:last-of-type { bottom: 24px; left: 19px; animation: orbit-pulse 1.8s ease infinite; }
@keyframes orbit-pulse { 50% { opacity: .35; transform: scale(.72); } }
.connection-facts { display: grid; gap: 15px; }
.connection-facts > div { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--entry-line); }
.connection-facts > div:last-child { padding: 0; border: 0; }
.connection-facts span { color: var(--entry-subtle); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.connection-facts strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.success-text { color: var(--entry-success); }
.trust-note, .activation-note { display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px; margin-top: 17px; border: 1px solid rgba(104, 229, 174, .16); border-radius: 15px; background: rgba(104, 229, 174, .055); }
.trust-note > span, .activation-note > span { display: grid; place-items: center; flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%; color: #062117; background: var(--entry-success); font-size: 11px; font-weight: 900; }
.trust-note p, .activation-note p { display: grid; gap: 3px; margin: 0; }
.trust-note strong, .activation-note strong { font-size: 12px; }
.trust-note small, .activation-note small { color: var(--entry-muted); font-size: 11px; line-height: 1.5; }
.pairing-field { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 18px; align-items: center; padding: 14px 16px; margin-top: 15px; border: 1px solid var(--entry-line); border-radius: 15px; background: var(--entry-card); }
.pairing-field > span { display: grid; gap: 3px; }
.pairing-field b { font-size: 11px; }
.pairing-field small { color: var(--entry-subtle); font-size: 9px; line-height: 1.45; }
.pairing-field input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--entry-line-strong); border-radius: 11px; outline: none; color: var(--entry-text); background: rgba(0, 0, 0, .12); font: 760 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.pairing-field input:focus { border-color: rgba(67, 217, 230, .6); box-shadow: 0 0 0 4px rgba(67, 217, 230, .085); }
.pairing-status { margin: 10px 0 0; color: var(--entry-danger); font-size: 10px; }
.pairing-status[hidden] { display: none; }

.form-grid { display: grid; gap: 17px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span:first-child, .choice-group legend { color: var(--entry-muted); font-size: 11px; font-weight: 720; }
.field > small { color: var(--entry-subtle); font-size: 10px; line-height: 1.4; }
.field input, .field select { width: 100%; height: 48px; min-width: 0; padding: 0 14px; border: 1px solid var(--entry-line); border-radius: 13px; outline: none; color: var(--entry-text); background: var(--entry-card); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input::placeholder { color: var(--entry-subtle); }
.field input:hover, .field select:hover { background: var(--entry-card-hover); }
.field input:focus, .field select:focus { border-color: rgba(67, 217, 230, .55); box-shadow: 0 0 0 4px rgba(67, 217, 230, .085); }
.field input:user-invalid { border-color: rgba(255, 126, 142, .5); }
.field select option { color: var(--entry-text); background: var(--entry-panel-solid); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 74px; }
.password-field button { position: absolute; right: 7px; top: 7px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--entry-muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 750; }
.password-field button:hover { color: var(--entry-text); background: var(--entry-card-hover); }
.password-quality { display: grid; gap: 8px; margin-top: 13px; }
.password-quality > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.password-quality > div span { height: 3px; border-radius: 9px; background: var(--entry-line); transition: background .2s ease; }
.password-quality[data-score="1"] > div span:nth-child(-n+1) { background: var(--entry-danger); }
.password-quality[data-score="2"] > div span:nth-child(-n+2) { background: #ffbc63; }
.password-quality[data-score="3"] > div span:nth-child(-n+3) { background: var(--entry-accent); }
.password-quality[data-score="4"] > div span { background: var(--entry-success); }
.password-quality small { color: var(--entry-subtle); font-size: 10px; }

.choice-group { display: grid; gap: 10px; min-width: 0; margin: 25px 0 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 2px; }
.display-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.display-choices legend, .theme-choices legend, .compact-choices legend { grid-column: 1 / -1; }
.choice-group label { position: relative; min-width: 0; cursor: pointer; }
.choice-group input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-group label > span { display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 13px; border: 1px solid var(--entry-line); border-radius: 15px; background: var(--entry-card); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.choice-group label:hover > span { background: var(--entry-card-hover); transform: translateY(-1px); }
.choice-group input:checked + span { border-color: rgba(67, 217, 230, .55); background: rgba(67, 217, 230, .085); box-shadow: inset 0 0 0 1px rgba(67, 217, 230, .08); }
.choice-group input:focus-visible + span { outline: 2px solid var(--entry-accent); outline-offset: 2px; }
.choice-group b { margin-top: 8px; font-size: 11px; }
.choice-group small { margin-top: 3px; overflow: hidden; color: var(--entry-subtle); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.screen-icon { position: relative; display: block; width: 25px; height: 18px; border: 1.5px solid var(--entry-muted); border-radius: 3px; }
.screen-icon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 11px; height: 4px; border-bottom: 1.5px solid var(--entry-muted); transform: translateX(-50%); }
.screen-icon.tablet { width: 19px; height: 24px; border-radius: 4px; }
.screen-icon.tablet::after, .screen-icon.mobile::after, .screen-icon.wall::after { display: none; }
.screen-icon.mobile { width: 13px; height: 23px; border-radius: 4px; }
.screen-icon.wall { width: 25px; height: 18px; box-shadow: 0 4px 0 -2px var(--entry-panel-solid), 0 5px 0 -2px var(--entry-muted); }
.preference-columns { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.theme-choices { grid-template-columns: repeat(3, 1fr); }
.compact-choices { grid-template-columns: repeat(2, 1fr); }
.theme-choices label > span, .compact-choices label > span { min-height: 74px; }
.theme-swatch i { display: block; width: 100%; height: 20px; border-radius: 7px; }
.theme-swatch.dark i { background: linear-gradient(135deg, #07111b, #152b3c); }
.theme-swatch.ambient i { background: linear-gradient(135deg, #102438, #2667c8 52%, #29bbc2); }
.theme-swatch.light i { background: linear-gradient(135deg, #f7fafb, #dce8ed); }
.lower-settings { margin-top: 18px; }
.toggle-row, .remember-row { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.toggle-row { justify-content: space-between; padding: 14px 16px; margin-top: 17px; border: 1px solid var(--entry-line); border-radius: 15px; background: var(--entry-card); }
.toggle-row > span, .remember-row > span { display: grid; gap: 3px; }
.toggle-row b, .remember-row b { font-size: 11px; }
.toggle-row small, .remember-row small { color: var(--entry-subtle); font-size: 10px; line-height: 1.4; }
.toggle-row input, .remember-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row > i { position: relative; width: 40px; height: 23px; flex: 0 0 auto; border-radius: 20px; background: rgba(140, 166, 184, .2); transition: background .2s ease; }
.toggle-row > i::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: var(--entry-muted); transition: transform .2s ease, background .2s ease; }
.toggle-row input:checked + i { background: rgba(67, 217, 230, .24); }
.toggle-row input:checked + i::after { background: var(--entry-accent); transform: translateX(17px); }

.form-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 30px; }
.form-actions.end { justify-content: flex-end; }
.primary-button, .text-button { min-height: 48px; border-radius: 14px; cursor: pointer; font-weight: 760; transition: transform .18s ease, filter .18s ease, background .18s ease; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-width: 170px; padding: 0 19px; border: 0; color: #04141b; background: linear-gradient(135deg, #69ebdd, #48d9ef); box-shadow: 0 14px 30px rgba(48, 207, 220, .15); font-size: 12px; }
.primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; filter: saturate(.5); opacity: .6; transform: none; }
.primary-button i, .text-button i { font-style: normal; }
.primary-button.wide { width: 100%; margin-top: 22px; }
.text-button { display: inline-flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; color: var(--entry-muted); background: transparent; font-size: 11px; }
.text-button:hover { color: var(--entry-text); background: var(--entry-card); }
.review-card { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid var(--entry-line); border-radius: 20px; background: var(--entry-card); }
.review-card > div { display: grid; gap: 4px; min-width: 0; padding: 19px; border-right: 1px solid var(--entry-line); border-bottom: 1px solid var(--entry-line); }
.review-card > div:nth-child(2n) { border-right: 0; }
.review-card > div:nth-last-child(-n+2) { border-bottom: 0; }
.review-card span { color: var(--entry-subtle); font-size: 9px; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.review-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.review-card small { overflow: hidden; color: var(--entry-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.form-error { padding: 12px 14px; margin-top: 17px; border: 1px solid rgba(255, 126, 142, .25); border-radius: 12px; color: var(--entry-danger); background: rgba(255, 126, 142, .07); font-size: 11px; line-height: 1.5; }
.form-error[hidden] { display: none; }

.login-view { width: min(100%, 470px); }
.login-view h2 { font-size: clamp(34px, 4vw, 49px); }
.login-core-line { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin: 0 0 28px; border: 1px solid rgba(104, 229, 174, .14); border-radius: 12px; color: var(--entry-muted); background: rgba(104, 229, 174, .045); font-size: 10px; font-weight: 700; }
.status-dot { display: inline-block; width: 6px; height: 6px; }
.login-core-line b { margin-left: auto; color: var(--entry-subtle); font-size: 9px; }
.login-view form { display: grid; gap: 17px; }
.remember-row { position: relative; align-items: flex-start; margin-top: 2px; }
.remember-row > i { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 auto; border: 1px solid var(--entry-line-strong); border-radius: 6px; color: transparent; font-size: 10px; font-style: normal; }
.remember-row input:checked + i { color: #04141b; border-color: var(--entry-accent); background: var(--entry-accent); }
.remember-row input:focus-visible + i { outline: 2px solid var(--entry-accent); outline-offset: 2px; }
.login-view .form-error { margin: 0; }
.login-footnote { display: flex; justify-content: center; gap: 8px; margin: 24px 0 0; color: var(--entry-subtle); font-size: 10px; }
.login-footnote > span:first-child { color: var(--entry-accent); }
.noscript { position: fixed; inset: auto 20px 20px; z-index: 10; padding: 14px; border-radius: 12px; color: white; background: #a62d40; text-align: center; }

@media (max-height: 820px) and (min-width: 901px) {
  .entry-shell { min-height: calc(100dvh - 24px); margin: 12px auto; }
  .entry-story { padding-top: 34px; padding-bottom: 34px; }
  .story-copy { margin: 45px 0 30px; }
  .story-copy h1 { font-size: 45px; }
  .entry-panel { padding-top: 8px; padding-bottom: 34px; }
  .entry-view .lead { margin-bottom: 23px; }
  .choice-group { margin-top: 18px; }
  .form-actions { margin-top: 22px; }
}

@media (max-width: 1060px) {
  .entry-shell { grid-template-columns: minmax(280px, 35%) minmax(0, 65%); }
  .entry-story { padding: 38px 30px; }
  .story-copy { margin-top: 90px; }
  .story-copy h1 { font-size: 42px; }
  .setup-progress li > div { display: none; }
  .setup-progress { display: flex; gap: 10px; }
  .entry-panel { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 800px) {
  body { background: var(--entry-bg); }
  .entry-grid { display: none; }
  .entry-shell { display: block; width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .entry-story { display: none; }
  .entry-workspace { min-height: 100dvh; background: transparent; }
  .workspace-topbar { justify-content: space-between; min-height: 72px; padding: 17px 22px; border-bottom: 1px solid var(--entry-line); }
  .compact-brand { display: block; }
  .entry-panel { align-items: start; padding: 50px max(22px, env(safe-area-inset-left)) max(36px, env(safe-area-inset-bottom)); }
  .entry-view { max-width: 620px; margin: 0 auto; }
  .entry-view h2 { font-size: 36px; }
}

@media (max-width: 560px) {
  .workspace-topbar { padding-left: 17px; padding-right: 17px; }
  .compact-brand { width: 118px; }
  .language-switch button { width: 34px; }
  .entry-panel { padding: 38px 17px 30px; }
  .entry-view h2, .login-view h2 { font-size: 32px; }
  .entry-view .lead { margin-bottom: 26px; }
  .connection-panel { grid-template-columns: 1fr; justify-items: center; }
  .connection-facts { width: 100%; }
  .form-grid.two-columns, .preference-columns { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .display-choices { grid-template-columns: repeat(2, 1fr); }
  .choice-group label > span { min-height: 84px; }
  .review-card { grid-template-columns: 1fr; }
  .review-card > div, .review-card > div:nth-child(2n), .review-card > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--entry-line); }
  .review-card > div:last-child { border-bottom: 0; }
  .form-actions { position: sticky; bottom: 0; z-index: 3; padding: 12px 0 max(5px, env(safe-area-inset-bottom)); margin-top: 24px; background: linear-gradient(to bottom, transparent, var(--entry-bg) 23%); }
  .primary-button { min-width: 155px; }
  .pairing-field { grid-template-columns: 1fr; }
  .pairing-field input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
