:root {
    --bg: #050d18;
    --bg-2: #071424;
    --panel: rgba(13, 29, 48, .88);
    --panel-2: #0c1d31;
    --line: rgba(145, 181, 210, .17);
    --line-bright: rgba(80, 215, 244, .45);
    --text: #f3f8fc;
    --muted: #8fa5b9;
    --cyan: #5bd6ef;
    --cyan-2: #28a9ce;
    --mint: #71e6b7;
    --amber: #f8c66a;
    --danger: #ff8c9a;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .28);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 760; letter-spacing: .2em; white-space: nowrap; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { color: var(--text); font-size: 10px; font-weight: 760; letter-spacing: .13em; }
.brand-copy small { margin-top: 4px; color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; font-weight: 500; letter-spacing: .16em; }
.brand-mark { position: relative; width: 38px; height: 38px; border: 2px dotted var(--cyan); border-radius: 50%; animation: spin 18s linear infinite; }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(67, 216, 244, .65); border-radius: 50%; }
.brand-mark::after { inset: 12px; background: var(--cyan); border: 0; box-shadow: 0 0 24px rgba(67, 216, 244, .75); }
.brand-mark i { inset: -5px 16px; border-radius: 3px; background: var(--bg); border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px; border: 1px solid var(--cyan); border-radius: 8px; background: linear-gradient(135deg, #32c5e8, #1595c2); color: #03121e; font-weight: 760; cursor: pointer; box-shadow: 0 12px 32px rgba(31, 176, 217, .18); transition: .2s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button:focus-visible, input:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.button-wide { width: 100%; }
.button-outline { background: transparent; color: var(--cyan); box-shadow: none; }
.button[disabled] { cursor: not-allowed; opacity: .45; transform: none; filter: none; }
.text-link { color: var(--cyan); font-weight: 700; border-bottom: 1px solid rgba(67, 216, 244, .32); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }

.public-header { position: relative; z-index: 10; max-width: 1440px; height: 92px; margin: 0 auto; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.public-header nav { display: flex; align-items: center; gap: 30px; color: #afc0d0; font-size: 14px; }
.public-header nav a:hover { color: #fff; }
.public-body { background-image: radial-gradient(circle at 75% 10%, rgba(31, 168, 207, .09), transparent 28%); }

.hero { position: relative; max-width: 1440px; min-height: 730px; margin: 0 auto; padding: 90px 42px 80px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 70px; overflow: hidden; }
.hero-grid { position: absolute; z-index: -1; inset: 0; opacity: .18; background-image: linear-gradient(rgba(77, 155, 193, .17) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 155, 193, .17) 1px, transparent 1px), linear-gradient(rgba(77, 155, 193, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 155, 193, .08) 1px, transparent 1px); background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; mask-image: linear-gradient(to right, transparent 5%, #000 75%, transparent); }
.hero-copy h1 { margin: 24px 0; font-size: clamp(52px, 5.8vw, 86px); line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--cyan); font-weight: 620; }
.hero-copy > p { max-width: 620px; margin: 0; color: #aabccc; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin: 38px 0 32px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 20px; color: #829aae; font-size: 12px; }
.trust-line span::first-letter { color: var(--mint); }

.hero-visual { position: relative; min-height: 560px; padding: 26px; overflow: hidden; border: 1px solid rgba(92, 178, 208, .3); border-radius: 3px; background: linear-gradient(145deg, rgba(10, 28, 46, .96), rgba(4, 15, 27, .94)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .03); }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 48% 48%, rgba(52, 211, 244, .11), transparent 37%); pointer-events: none; }
.hero-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(98, 190, 218, .025) 5px); }
.visual-top { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #8fa8bc; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .12em; }
.live-dot { color: var(--mint); letter-spacing: 0; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.coordinate-label { position: absolute; z-index: 2; color: rgba(138, 179, 202, .62); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: .12em; }
.coordinate-x { right: 28px; bottom: 155px; }
.coordinate-y { left: 8px; top: 245px; transform: rotate(-90deg); }
#heroCanvas { width: 100%; height: 365px; display: block; }
.signal-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.signal-stack div { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: #a9bdcc; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.signal-stack b { color: #fff; }
.signal-stack i { grid-column: 1 / -1; height: 3px; background: #152b40; border-radius: 5px; overflow: hidden; }
.signal-stack i::after { content: ""; display: block; width: var(--level); height: 100%; background: linear-gradient(90deg, var(--cyan), var(--mint)); }
.hero-visual > p { margin: 22px 0 0; color: #647f94; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: .07em; text-align: center; }

.section { max-width: 1340px; margin: 0 auto; padding: 110px 42px; }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading h2, .science-statement h2, .pricing-preview h2 { margin: 15px 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p, .science-statement p, .pricing-preview p { color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { position: relative; min-height: 255px; padding: 30px; border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(145deg, rgba(13, 30, 49, .75), rgba(8, 19, 32, .75)); }
.feature-grid article::after { content: ""; position: absolute; top: -1px; right: -1px; width: 28px; height: 28px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); opacity: .5; }
.feature-grid article > span { color: var(--cyan); font-size: 12px; letter-spacing: .16em; }
.feature-grid h3 { margin: 70px 0 12px; font-size: 22px; }
.feature-grid p { margin: 0; color: var(--muted); }

.science-statement { max-width: 1340px; margin: 30px auto 0; padding: 70px 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 80px; align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.science-statement p { margin: 0; }
.science-statement .text-link { grid-column: 2; justify-self: start; }
.pricing-preview { max-width: 1200px; margin: 100px auto; padding: 55px; display: flex; justify-content: space-between; align-items: center; gap: 50px; border: 1px solid var(--line-bright); border-radius: 24px; background: radial-gradient(circle at 90% 50%, rgba(38, 194, 225, .14), transparent 28%), var(--panel); }
.pricing-preview > div:first-child { max-width: 620px; }
.price { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 12px; min-width: 300px; }
.price strong { font-size: 42px; }
.price > span { color: var(--muted); font-size: 13px; }
.price .button { grid-column: 1 / -1; margin-top: 18px; }
.public-footer { min-height: 160px; padding: 45px max(42px, calc((100% - 1340px) / 2)); display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 40px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.public-footer div { display: flex; flex-direction: column; }
.public-footer strong { color: var(--text); letter-spacing: .18em; }
.public-footer a { color: var(--cyan); }

.auth-section { min-height: calc(100vh - 252px); max-width: 1250px; margin: 0 auto; padding: 65px 42px 90px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.auth-visual h1 { max-width: 620px; margin: 18px 0; font-size: clamp(46px, 5vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.auth-visual p { max-width: 500px; color: var(--muted); font-size: 18px; }
.auth-card { max-width: 500px; width: 100%; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.auth-kicker { color: var(--cyan); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.auth-card h2 { margin: 6px 0 10px; font-size: 32px; }
.auth-intro { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 17px; }
.form-stack label, .profile-fields label { display: flex; flex-direction: column; gap: 7px; color: #a9bdcd; font-size: 13px; font-weight: 650; }
input[type="text"], input[type="email"], input[type="date"] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #081625; color: #eef6fb; }
input::placeholder { color: #557087; }
.form-stack small { margin-top: -8px; color: #687f92; }
.form-errors { margin-bottom: 18px; padding: 12px 15px; border: 1px solid rgba(255, 140, 154, .3); border-radius: 8px; background: rgba(255, 140, 154, .08); color: #ffc1c9; font-size: 13px; }
.form-errors p { margin: 0; }
.auth-switch { margin: 24px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--cyan); }
.magic-security { margin-top: 20px; padding: 13px 15px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(91, 214, 239, .16); border-radius: 8px; background: rgba(91, 214, 239, .045); }
.magic-security > span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(91, 214, 239, .32); border-radius: 50%; color: var(--cyan); }
.magic-security p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.magic-security strong { color: #c7dce9; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .04em; }
.orbit-graphic { position: relative; width: 360px; height: 250px; margin-top: 30px; opacity: .65; }
.orbit-graphic i { position: absolute; inset: 30px 70px; border: 1px solid rgba(67, 216, 244, .25); border-radius: 50%; transform: rotate(23deg); }
.orbit-graphic i:nth-child(2) { transform: rotate(83deg); }
.orbit-graphic i:nth-child(3) { transform: rotate(143deg); }
.orbit-graphic b { position: absolute; inset: 99px 154px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 55px 20px rgba(67, 216, 244, .25); }

.mail-state-section { min-height: calc(100vh - 252px); padding: 70px 24px 100px; display: grid; place-items: center; }
.mail-state-card { position: relative; max-width: 650px; width: 100%; padding: 52px; overflow: hidden; border: 1px solid rgba(91, 214, 239, .28); border-radius: 3px; background: radial-gradient(circle at 92% 5%, rgba(46, 190, 223, .12), transparent 28%), var(--panel); box-shadow: var(--shadow); text-align: center; }
.mail-state-card::before { content: "AUTH / 01"; position: absolute; top: 16px; left: 18px; color: #577286; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: .15em; }
.mail-state-card::after { content: ""; position: absolute; top: -1px; right: -1px; width: 38px; height: 38px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); opacity: .65; }
.mail-state-card h1 { margin: 16px 0 14px; font-size: clamp(38px, 6vw, 58px); line-height: 1; letter-spacing: -.045em; }
.mail-state-card > p { margin: 0 auto; max-width: 510px; color: var(--muted); }
.mail-state-card > p strong { color: #d6e6ef; overflow-wrap: anywhere; }
.mail-signal { position: relative; width: 88px; height: 88px; margin: 0 auto 24px; border: 1px solid rgba(91, 214, 239, .35); border-radius: 50%; background: radial-gradient(circle, rgba(91, 214, 239, .2), transparent 68%); box-shadow: 0 0 48px rgba(91, 214, 239, .14), inset 0 0 24px rgba(91, 214, 239, .06); }
.mail-signal::before { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(91, 214, 239, .2); border-radius: 50%; }
.mail-signal-orbit { position: absolute; display: block; border: 1px solid rgba(91, 214, 239, .18); border-radius: 50%; animation: mail-orbit 4.8s linear infinite; }
.mail-signal-orbit i { position: absolute; display: block; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 11px rgba(91, 214, 239, .9); }
.mail-signal-orbit-outer { inset: 9px; }
.mail-signal-orbit-outer i { top: -3px; left: calc(50% - 3px); width: 6px; height: 6px; }
.mail-signal-orbit-inner { inset: 23px; animation-duration: 3.2s; animation-direction: reverse; }
.mail-signal-orbit-inner i { right: -3px; top: calc(50% - 2px); width: 4px; height: 4px; background: var(--mint); box-shadow: 0 0 9px rgba(110, 231, 189, .85); }
.mail-signal-core { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: 2px solid #b9f4ff; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(91, 214, 239, .45), 0 0 16px rgba(91, 214, 239, .9); transform: translate(-50%, -50%); animation: mail-core-pulse 2s ease-out infinite; }
@keyframes mail-orbit { to { transform: rotate(360deg); } }
@keyframes mail-core-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 214, 239, .42), 0 0 16px rgba(91, 214, 239, .9); } 55% { box-shadow: 0 0 0 13px rgba(91, 214, 239, 0), 0 0 24px rgba(91, 214, 239, .65); } }
.mail-checks { margin: 34px 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.mail-checks span { min-height: 86px; padding: 15px 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; color: #b9cad6; font-size: 13px; line-height: 1.35; }
.mail-checks span + span { border-left: 1px solid var(--line); }
.mail-checks b { color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; line-height: 1; letter-spacing: .08em; text-shadow: 0 0 16px rgba(91, 214, 239, .24); }
.development-preview { margin: 26px 0 0; padding: 20px; border: 1px dashed rgba(248, 198, 106, .32); border-radius: 8px; background: rgba(248, 198, 106, .045); text-align: left; }
.development-preview > strong { color: var(--amber); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.development-preview p { margin: 5px 0 16px; color: var(--muted); font-size: 12px; }
.mail-state-card .mail-hint { margin-top: 25px; font-size: 11px; }
.verify-card form { margin-top: 30px; }
.verification-mark { position: relative; width: 90px; height: 90px; margin: 0 auto 25px; display: grid; place-items: center; }
.verification-mark i { position: absolute; inset: 0; border: 1px dashed var(--cyan); border-radius: 50%; animation: spin 16s linear infinite; }
.verification-mark span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(113, 230, 183, .12); color: var(--mint); font-size: 26px; box-shadow: 0 0 28px rgba(113, 230, 183, .12); }

.app-body { overflow-x: hidden; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; z-index: 20; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #06111f; }
.sidebar .brand { min-height: 106px; padding: 0 25px; border-bottom: 1px solid var(--line); font-size: 13px; }
.side-nav { padding: 25px 0; }
.side-nav a, .side-footer a, .side-footer button { position: relative; width: 100%; min-height: 64px; padding: 0 25px; display: flex; align-items: center; gap: 18px; border: 0; background: transparent; color: #a8bac9; cursor: pointer; font-size: 14px; }
.side-nav a span, .side-footer span { width: 25px; color: #8ba5bb; font-size: 26px; text-align: center; }
.side-nav a:hover, .side-nav a.active, .side-footer a:hover, .side-footer button:hover { color: #fff; background: linear-gradient(90deg, rgba(30, 168, 207, .15), transparent); }
.side-nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 5px 5px 0; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.side-nav a.active span { color: var(--cyan); }
.side-footer { margin-top: auto; padding: 18px 0; border-top: 1px solid var(--line); }
.side-footer form { margin: 0; }
.app-main { min-width: 0; background: radial-gradient(circle at 72% 12%, rgba(31, 171, 211, .06), transparent 28%), var(--bg); }
.app-topbar { height: 80px; padding: 0 30px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.topbar-spacer { flex: 1; }
.plan-pill, .status-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(67, 216, 244, .24); border-radius: 100px; color: var(--cyan); font-size: 12px; font-weight: 700; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #177caa, #38bfdb); color: #fff; font-size: 13px; }
.user-name { color: #bdd0df; font-size: 13px; }
.menu-button { display: none; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.app-content { max-width: 1530px; margin: 0 auto; padding: 34px 30px 28px; }
.page-heading { min-height: 75px; margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 4px 0 0; font-size: clamp(28px, 3vw, 39px); line-height: 1.1; letter-spacing: -.035em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }
.status-pill { color: var(--mint); border-color: rgba(110, 231, 189, .26); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px var(--mint); }
.status-pill.muted { color: #8ba1b4; border-color: var(--line); }
.status-pill.muted i { background: #70889d; box-shadow: none; }
.dashboard-status.field-ready { color: #88a5b8; border-color: rgba(112, 151, 177, .22); }
.dashboard-status.field-ready i { background: #708fa4; box-shadow: 0 0 6px rgba(112, 143, 164, .42); }
.dashboard-status.alignment-active { border-color: rgba(110, 231, 189, .34); background: rgba(110, 231, 189, .035); box-shadow: inset 0 0 16px rgba(110, 231, 189, .035); }
.dashboard-status.alignment-active i { position: relative; animation: alignment-lamp-blink 1.7s ease-in-out infinite; }
.dashboard-status.alignment-active i::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(110, 231, 189, .62); border-radius: 50%; animation: alignment-lamp-ring 1.7s ease-out infinite; }
@keyframes alignment-lamp-blink { 0%, 100% { opacity: .5; box-shadow: 0 0 5px rgba(110, 231, 189, .42); } 48%, 62% { opacity: 1; box-shadow: 0 0 6px var(--mint), 0 0 17px rgba(110, 231, 189, .92); } }
@keyframes alignment-lamp-ring { 0% { opacity: .8; transform: scale(.45); } 72%, 100% { opacity: 0; transform: scale(1.25); } }
.protocol-id { margin-left: auto; padding: 0 28px; display: flex; flex-direction: column; border-left: 1px solid var(--line); font-family: "SFMono-Regular", Consolas, monospace; }
.protocol-id span { color: #627c91; font-size: 8px; letter-spacing: .14em; }
.protocol-id b { color: #a9bfce; font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.instrument-strip { margin: -7px 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(116, 163, 193, .2); background: rgba(7, 19, 32, .9); }
.instrument-strip div { min-height: 54px; padding: 10px 15px; display: flex; flex-direction: column; justify-content: center; font-family: "SFMono-Regular", Consolas, monospace; }
.instrument-strip div + div { border-left: 1px solid var(--line); }
.instrument-strip span { color: #597386; font-size: 8px; letter-spacing: .14em; }
.instrument-strip b { margin-top: 3px; color: #9fb8c9; font-size: 10px; font-weight: 500; }
.panel { position: relative; border: 1px solid rgba(116, 163, 193, .22); border-radius: 3px; background: linear-gradient(145deg, rgba(12, 29, 48, .94), rgba(7, 20, 34, .94)); box-shadow: 0 14px 40px rgba(0, 0, 0, .11); }
.panel::after { content: ""; position: absolute; z-index: 2; top: -1px; right: -1px; width: 28px; height: 28px; border-top: 2px solid rgba(91, 214, 239, .72); border-right: 2px solid rgba(91, 214, 239, .72); pointer-events: none; }
.dashboard-grid { display: grid; grid-template-columns: minmax(620px, 1.05fr) minmax(440px, .95fr); gap: 22px; }
.panel-section { padding: 28px 30px; }
.panel-section + .panel-section { border-top: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.technical-heading { margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; font-family: "SFMono-Regular", Consolas, monospace; }
.technical-heading span { color: var(--cyan); font-size: 9px; letter-spacing: .14em; }
.technical-heading small { color: #567084; font-size: 8px; letter-spacing: .12em; }
.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.goal-card { position: relative; min-height: 138px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); border-radius: 2px; color: #a9bbca; cursor: pointer; transition: .18s ease; }
.goal-card input { position: absolute; opacity: 0; pointer-events: none; }
.goal-card > b { color: #94a9bd; font-size: 35px; font-weight: 450; line-height: 1; }
.goal-card strong { font-size: 14px; }
.goal-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: none; place-items: center; border-radius: 50%; background: var(--cyan); color: #032233; font-size: 12px; }
.goal-code { position: absolute; top: 9px; left: 10px; color: #5e788d; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: .08em; }
.goal-card:has(input:checked) { border-color: var(--cyan); background: rgba(35, 161, 201, .08); color: #fff; box-shadow: inset 0 0 24px rgba(35, 177, 216, .08); }
.goal-card:has(input:checked) > b { color: var(--cyan); }
.goal-card:has(input:checked) .goal-check { display: grid; }
.goal-card:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }
.range-row { margin-top: 30px; display: flex; justify-content: space-between; align-items: end; }
.range-row label { display: block; color: #e7f0f7; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.range-row small { display: block; margin-top: 3px; color: #698398; }
.range-row output { color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 31px; }
.range { width: 100%; height: 5px; margin: 20px 0 0; appearance: none; border-radius: 8px; background: linear-gradient(to right, var(--cyan) 0 var(--range-value, 68%), #20364a var(--range-value, 68%) 100%); }
.range::-webkit-slider-thumb { width: 20px; height: 20px; appearance: none; border: 3px solid #e6f9ff; border-radius: 50%; background: var(--cyan-2); box-shadow: 0 0 0 3px rgba(67, 216, 244, .18); cursor: pointer; }
.range::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid #e6f9ff; border-radius: 50%; background: var(--cyan-2); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; margin-top: 9px; color: #637b8f; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.profile-section > div:first-child p { margin: 3px 0 0; color: #71889b; font-size: 12px; }
.profile-fields { display: grid; grid-template-columns: 1.05fr .85fr 1.1fr; gap: 14px; margin-top: 20px; }
.profile-fields input { height: 46px; }
.privacy-note, .data-note { color: #6e879b; font-size: 10px; }
.privacy-note span { color: var(--cyan); }
.profile-section .button { margin-top: 18px; }
.dashboard-side { display: flex; flex-direction: column; gap: 18px; }
.activity-panel { --field-primary: 66, 216, 244; --field-secondary: 185, 244, 255; overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease; }
.activity-panel[data-field-profile="energy"] { --field-primary: 248, 198, 106; --field-secondary: 78, 222, 244; border-color: rgba(248, 198, 106, .3); box-shadow: 0 14px 44px rgba(101, 69, 13, .12); }
.activity-panel[data-field-profile="calm"] { --field-primary: 110, 231, 189; --field-secondary: 67, 188, 220; border-color: rgba(110, 231, 189, .28); box-shadow: 0 14px 44px rgba(26, 104, 83, .11); }
.activity-panel[data-field-profile="recovery"] { --field-primary: 159, 140, 255; --field-secondary: 110, 231, 189; border-color: rgba(159, 140, 255, .3); box-shadow: 0 14px 44px rgba(73, 54, 139, .13); }
.panel-title { min-height: 68px; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-title div > span { display: block; margin-bottom: 3px; color: #5e7a8e; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: .13em; }
.panel-title b { padding: 5px 8px; border: 1px solid rgba(113, 230, 183, .23); color: var(--mint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 500; letter-spacing: .08em; }
.activity-viz { position: relative; height: 260px; overflow: hidden; background-image: linear-gradient(rgba(72, 148, 182, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(72, 148, 182, .08) 1px, transparent 1px); background-size: 42px 42px; }
#fieldCanvas { width: 100%; height: 100%; }
.field-mode { position: absolute; z-index: 3; top: 12px; right: 14px; min-width: 84px; padding: 6px 8px; border: 1px solid rgba(var(--field-primary), .26); background: rgba(4, 16, 28, .68); font-family: "SFMono-Regular", Consolas, monospace; text-align: right; backdrop-filter: blur(4px); }
.field-mode span, .field-mode b { display: block; }
.field-mode span { color: rgba(var(--field-primary), .68); font-size: 7px; letter-spacing: .12em; }
.field-mode b { margin-top: 2px; color: rgb(var(--field-primary)); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: rgba(var(--field-primary), .13); transition: background .3s ease; }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.crosshair::after { left: 0; right: 0; top: 50%; height: 1px; }
.axis-x, .axis-y { position: absolute; z-index: 2; color: rgba(117, 155, 178, .52); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .1em; }
.axis-x { right: 10px; bottom: 7px; }
.axis-y { left: 5px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; }
.reticle { position: absolute; left: 50%; top: 50%; width: 172px; height: 172px; border: 1px solid rgba(var(--field-primary), .18); border-radius: 50%; transform: translate(-50%, -50%); transition: border-color .3s ease; }
.reticle::before, .reticle::after { content: ""; position: absolute; border: 1px solid rgba(var(--field-primary), .12); border-radius: 50%; transition: border-color .3s ease; }
.reticle::before { inset: 25px; }
.reticle::after { inset: 54px; }
.metrics { padding: 18px 24px 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metrics div > span { display: flex; justify-content: space-between; color: #8da5b8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.metrics b { color: #dbe9f3; }
.metrics i { display: block; height: 3px; margin-top: 8px; border-radius: 5px; background: #183046; overflow: hidden; }
.metrics em { display: block; width: var(--metric); height: 100%; background: linear-gradient(90deg, rgb(var(--field-primary)), rgb(var(--field-secondary))); transition: background .3s ease; }
.data-note { margin: 12px 24px 18px; font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .05em; text-align: center; }
.membership-card { min-height: 190px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px 25px; align-items: center; overflow: hidden; background: radial-gradient(circle at 98% 80%, rgba(35, 183, 219, .17), transparent 32%), var(--panel); }
.membership-card h2 { margin: 7px 0 5px; }
.membership-card p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; }
.membership-price { display: flex; align-items: baseline; gap: 5px; }
.membership-price strong { font-size: 27px; }
.membership-price span { color: var(--muted); font-size: 11px; }
.membership-card .button { grid-column: 2; min-height: 40px; }
.compliance-line { margin: 21px 0 0; color: #72899c; font-size: 11px; }
.compliance-line span { margin-right: 8px; color: var(--cyan); }

.history-panel { padding: 28px; }
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; border: 1px solid var(--line); border-radius: 10px; }
.history-summary div { min-height: 95px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.history-summary div + div { border-left: 1px solid var(--line); }
.history-summary strong { font-size: 24px; }
.history-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.history-list article { min-height: 70px; padding: 0 16px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; border-top: 1px solid var(--line); }
.history-list time { color: var(--muted); font-size: 12px; }
.history-list article > div { display: flex; align-items: center; gap: 13px; }
.history-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 8px; color: var(--cyan); }
.history-intensity { color: var(--cyan); font-size: 20px; }
.empty-state { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state > span { color: var(--cyan); font-size: 55px; }
.empty-state p { color: var(--muted); }

.billing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.plan-card, .account-card { padding: 32px; }
.plan-card-head { display: flex; justify-content: space-between; align-items: start; }
.plan-card-head h2 { margin-top: 8px; font-size: 28px; }
.plan-card-head > div:last-child { text-align: right; }
.plan-card-head strong { display: block; font-size: 35px; }
.plan-card-head span { color: var(--muted); font-size: 12px; }
.plan-card ul { margin: 28px 0; padding: 0; list-style: none; display: grid; gap: 13px; color: #bfd0dd; }
.plan-card li::before { content: "✓"; margin-right: 12px; color: var(--cyan); }
.setup-note { margin-bottom: 0; color: var(--amber); font-size: 12px; }
.account-card h2 { margin: 7px 0 26px; font-size: 28px; }
.account-card dl { margin: 0; }
.account-card dl div { padding: 15px 0; display: grid; grid-template-columns: 1fr 1.4fr; border-top: 1px solid var(--line); }
.account-card dt { color: var(--muted); font-size: 12px; }
.account-card dd { margin: 0; text-align: right; }
.account-card p { margin-top: 25px; color: var(--muted); font-size: 12px; }
.billing-explainer { margin-top: 22px; padding: 24px; display: flex; gap: 18px; align-items: start; }
.billing-explainer > span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--cyan); }
.billing-explainer p { margin: 6px 0 0; color: var(--muted); }

.principles-page, .message-page { max-width: 1180px; min-height: 650px; margin: 0 auto; padding: 90px 42px; }
.principles-page h1, .message-page h1 { margin: 20px 0; font-size: clamp(48px, 6vw, 82px); line-height: 1; letter-spacing: -.05em; }
.principles-page .lead { max-width: 850px; color: #a9bdcc; font-size: 21px; }
.principle-grid { margin: 65px 0 45px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-grid article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.principle-grid article > span { color: var(--cyan); font-size: 12px; }
.principle-grid h2 { margin: 45px 0 12px; }
.principle-grid p, .message-page p { color: var(--muted); }
.message-page { display: flex; flex-direction: column; align-items: start; justify-content: center; }
.message-page h1 { font-size: clamp(42px, 5vw, 68px); }

.flash { max-width: calc(100% - 60px); margin: 18px auto -8px; padding: 12px 16px; border: 1px solid rgba(110, 231, 189, .28); border-radius: 8px; background: rgba(110, 231, 189, .08); color: #bff5df; font-size: 13px; }
.flash-error { border-color: rgba(255, 140, 154, .28); background: rgba(255, 140, 154, .08); color: #ffc1c9; }
.flash-info { border-color: rgba(67, 216, 244, .24); background: rgba(67, 216, 244, .07); color: #b8ecf7; }
.public-flash { max-width: 1200px; }

@media (max-width: 1400px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-side { display: grid; grid-template-columns: 1.3fr .7fr; }
    .activity-panel { min-width: 0; }
    .membership-card { display: flex; flex-direction: column; align-items: start; }
    .membership-card .button { width: 100%; }
}

@media (max-width: 1180px) {
    .hero { grid-template-columns: 1fr; padding-top: 70px; }
    .hero-copy { max-width: 800px; }
    .hero-visual { max-width: 850px; width: 100%; }
}

@media (max-width: 900px) {
    .public-header { padding: 0 24px; }
    .public-header nav a:not(.button) { display: none; }
    .hero, .section, .principles-page, .message-page { padding-left: 24px; padding-right: 24px; }
    .feature-grid, .principle-grid { grid-template-columns: 1fr; }
    .science-statement { margin-left: 24px; margin-right: 24px; padding-left: 0; padding-right: 0; grid-template-columns: 1fr; }
    .science-statement .text-link { grid-column: 1; }
    .pricing-preview { margin: 70px 24px; padding: 35px; }
    .public-footer { padding-left: 24px; padding-right: 24px; grid-template-columns: 1fr; }
    .auth-section { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
    .auth-visual { display: none; }
    .auth-card { margin: 0 auto; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -270px; width: 250px; transition: left .2s ease; box-shadow: 30px 0 70px rgba(0,0,0,.45); }
    .sidebar.open { left: 0; }
    .menu-button { display: block; }
    .dashboard-side { grid-template-columns: 1fr; }
    .billing-grid { grid-template-columns: 1fr; }
    .instrument-strip { grid-template-columns: repeat(3, 1fr); }
    .instrument-strip div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
    .instrument-strip div:nth-child(5) { border-top: 1px solid var(--line); }
}

@media (max-width: 680px) {
    .public-header { height: 76px; }
    .brand { font-size: 12px; letter-spacing: .12em; }
    .brand-mark { width: 32px; height: 32px; }
    .hero { min-height: auto; padding-top: 55px; gap: 45px; }
    .hero-copy h1 { font-size: 49px; }
    .hero-actions { align-items: start; flex-direction: column; }
    .hero-visual { min-height: 490px; padding: 18px; }
    #heroCanvas { height: 320px; }
    .signal-stack { grid-template-columns: 1fr; }
    .pricing-preview { align-items: start; flex-direction: column; }
    .price { min-width: 0; width: 100%; }
    .section { padding-top: 75px; padding-bottom: 75px; }
    .auth-section { min-height: calc(100vh - 230px); padding-top: 40px; padding-bottom: 60px; }
    .auth-card { padding: 28px 22px; }
    .auth-card h2 { font-size: 28px; }
    .mail-state-section { min-height: calc(100vh - 230px); padding: 38px 14px 70px; }
    .mail-state-card { padding: 44px 20px 30px; }
    .mail-state-card h1 { font-size: 38px; }
    .mail-checks { grid-template-columns: 1fr; }
    .mail-checks span { min-height: 76px; font-size: 13px; }
    .mail-checks span + span { border-top: 1px solid var(--line); border-left: 0; }
    .app-topbar { height: 66px; padding: 0 16px; }
    .user-name { display: none; }
    .app-content { padding: 24px 14px; }
    .page-heading { align-items: start; flex-direction: column; }
    .protocol-id { width: 100%; margin-left: 0; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .instrument-strip { grid-template-columns: 1fr 1fr; }
    .instrument-strip div:nth-child(odd) { border-left: 0; }
    .instrument-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .panel-section { padding: 22px 18px; }
    .goal-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-fields { grid-template-columns: 1fr; }
    .activity-viz { height: 220px; }
    .metrics { grid-template-columns: 1fr; }
    .membership-card { padding: 20px; }
    .history-panel { padding: 15px; }
    .history-summary { grid-template-columns: 1fr; }
    .history-summary div + div { border-left: 0; border-top: 1px solid var(--line); }
    .history-list article { padding: 14px 6px; grid-template-columns: 1fr auto; gap: 8px; }
    .history-list time { grid-column: 1 / -1; }
    .principles-page h1 { font-size: 46px; }
}

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