/* TunnelToni shared brand. Authentication behavior stays in app.css/app.js. */
:root{--ink:#122736;--muted:#536471;--teal:#08799c;--mint:#e6f7ff;--line:#d8e1e6;--paper:#f5f7f8;--navy:#071521;--radius:8px}
.topbar{background:#071521;border-bottom:1px solid #ffffff20;color:#fff}.topbar .brand,.topbar nav a{color:#d7e4eb}.topbar .brand{color:#fff;display:flex;gap:10px;align-items:center;text-decoration:none}.brand-logo{width:64px;height:64px;object-fit:contain}.brand-cyan{color:#51d4ff}.topbar nav a[aria-current=page]{color:#51d4ff}.topbar .language button{color:#d7e4eb;background:transparent;border-color:#ffffff30}.topbar .language button[aria-pressed=true]{background:#51d4ff;color:#071521}.nav{min-height:100px}.card,.provider{background:#fff;border-radius:8px}.button{background:#51d4ff;color:#071521;border-color:transparent;border-radius:6px}.button:hover{background:#94e5ff;color:#071521}.status-card{background:#071521;color:#fff;border-radius:8px}.status-card .button{background:#51d4ff;color:#071521}.footer{border-color:#d8e1e6}.page-heading h1{letter-spacing:-.045em}input,textarea,select{border-radius:6px}.brand-logo{flex-shrink:0}@media(max-width:760px){.nav{min-height:0}.brand-logo{width:48px;height:48px}.topbar .brand{font-size:22px}.login-grid,.account-grid{grid-template-columns:1fr}}

/* Shared, compact sign-in and account creation. */
.auth-page{min-height:100svh;display:flex;flex-direction:column;background:#f3f6f8}.auth-page main.shell{width:100%;min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 20px 20px}.auth-card{width:100%;max-width:460px;padding:30px 32px 23px;background:#fff;border:1px solid #dce5eb;border-radius:16px;box-shadow:0 10px 36px #10273608}.auth-heading .eyebrow{font-size:10px;letter-spacing:1.6px;color:#147c99}.auth-heading h1{font-size:36px;line-height:1.12;margin:10px 0 12px;letter-spacing:-1.4px}.auth-heading>p{font-size:14px;line-height:1.55;color:#596b79;margin:0 0 22px}.auth-card label{font-size:13px;margin:0 0 7px}.auth-card input:not([type=hidden]){min-height:46px;padding:10px 12px;border:1px solid #bccbd5;border-radius:8px;font-size:15px;background:#fcfdfe}.auth-card input::placeholder{color:#8696a2}.auth-card .auth-field-note{font-size:12px;line-height:1.5;color:#647888;margin:8px 0 16px}.auth-card .button{min-height:46px;margin-top:0;padding:12px 16px;border-radius:8px;font-size:14px}.auth-card .auth-primary{justify-content:space-between;background:#51d4ff;color:#071521}.auth-card .auth-primary:hover:not(:disabled){background:#8ae2ff}.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#8193a0;font-size:12px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#e0e7ec}.auth-card .auth-telegram-button{background:#fff;color:#122736;border:1px solid #bccbd5}.auth-card .auth-telegram-button:hover:not(:disabled){background:#eff8fc;border-color:#64bad5}.auth-telegram-button svg{color:#178bb2;flex-shrink:0}.auth-card .auth-account-note{font-size:12px;line-height:1.5;color:#6a7b88;margin:18px 0 0;text-align:center}.auth-back{font-size:12px;margin-top:17px;color:#647888;text-decoration:none;min-height:30px;display:flex;align-items:center}.auth-back:hover{color:#08799c}.auth-page .footer{width:100%;font-size:12px;margin-top:0;padding-top:16px;padding-bottom:16px}.auth-page .footer>span{font-size:12px}.auth-page .footer div{gap:18px}.auth-page :where(a,button,input):focus-visible{outline:3px solid #1683a5;outline-offset:3px}
@media(max-width:600px){.auth-page main.shell{padding:22px 16px 12px;justify-content:flex-start}.auth-card{padding:24px 22px 20px;border-radius:12px}.auth-heading h1{font-size:32px}.auth-heading>p{font-size:13px;margin-bottom:20px}.auth-page .footer{padding:12px 20px;gap:10px;flex-wrap:wrap;justify-content:center}.auth-page .footer>span{display:none}.auth-page .footer div{gap:16px;justify-content:center;flex-wrap:wrap}.auth-back{margin-top:12px}}
.auth-page .footer{display:flex;padding-block:8px}.auth-page .footer>div{margin-top:0}.auth-page main.shell{padding-top:24px}@media(max-width:600px){.auth-page main.shell{padding-top:20px}.auth-page .footer{padding-block:8px}}

/* Match the public landing-page header across account and sign-in pages. */
.site-header{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border-bottom:1px solid #ffffff16}.site-header .shell{width:min(1240px,calc(100% - 96px));max-width:none;padding:0;margin-inline:auto}.site-header .nav{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:30px;min-height:106px}.site-header .brand{font-size:27px;font-weight:700;letter-spacing:-1px;gap:10px}.site-header .brand small{display:block;font-size:8px;letter-spacing:1.3px;font-weight:500;color:#a8bac8}.site-header .brand-logo{width:76px;height:76px}.site-header nav{display:flex;gap:28px;margin:0;order:initial;width:auto}.site-header nav a{font-size:14px;font-weight:400;color:#c6d0d9;text-decoration:none;min-height:44px}.site-header nav a:hover{color:#51d4ff}.site-header .nav-end{display:flex;align-items:center;gap:22px}.site-header .language{margin:0}.site-header .language button{font-size:12px;letter-spacing:1px;color:#c6d0d9;min-width:0;min-height:44px;padding:0;background:transparent;border:0}.site-header .header-account{display:inline-flex;width:auto;min-height:0;white-space:nowrap;margin:0;padding:12px 17px;gap:16px;border:1px solid #ffffff40;border-radius:6px;background:transparent;color:white;font-size:14px;font-weight:650;line-height:1.4}.site-header .header-account:hover{background:transparent;border-color:#51d4ff;color:#51d4ff}
@media(max-width:1100px){.site-header .shell{width:calc(100% - 56px)}.site-header .nav{gap:15px}.site-header .brand{font-size:23px}.site-header .brand small{display:none}.site-header .brand-logo{width:60px;height:60px}.site-header nav{gap:20px}.site-header nav a{font-size:12px}.site-header .nav-end{gap:12px}}
@media(max-width:760px){.site-header .shell{width:calc(100% - 40px)}.site-header .nav{flex-wrap:wrap;min-height:0;gap:0;padding-block:10px 0}.site-header .brand{font-size:22px}.site-header .brand-logo{width:55px;height:55px}.site-header .nav-end{margin-left:auto}.site-header .header-account{font-size:11px;padding:10px}.site-header .header-account span{display:none}.site-header nav{order:3;width:100%;justify-content:space-between;gap:20px;border-top:1px solid #ffffff15;padding-block:14px;margin-top:10px}.site-header nav a{min-height:0;line-height:1.6}}
/* Email confirmation shares the compact account entry layout. */
.otp-card .otp-mail-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#e6f8fe;color:#007eaa;margin-bottom:20px}
.otp-card .auth-heading h1{font-size:32px;line-height:1.14;letter-spacing:-1px}
.auth-card.otp-card input.otp-code{min-height:62px;text-align:center;font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.3em;padding:10px 12px 10px 20px;background:#f8fbfd}
.auth-card.otp-card input.otp-code::placeholder{color:#a6b7c1;opacity:1}
.otp-help{font-size:12px;line-height:1.7;color:#526c7b;margin:22px 0 0;padding-top:18px;border-top:1px solid #e4ebef}
.otp-error{font-size:13px;line-height:1.6;color:#9a2334;background:#fff2f3;border:1px solid #f0ccd2;border-radius:8px;padding:10px 12px;margin:0 0 18px}
@media(max-width:480px){.otp-card .auth-heading h1{font-size:29px}.auth-card.otp-card input.otp-code{font-size:26px;letter-spacing:.24em}}

/* Personal key and QR share the account overview. */
.account-overview{grid-template-columns:minmax(260px,.8fr) minmax(0,1.7fr);gap:22px;align-items:stretch}
.account-overview .status-card{border:0;border-radius:16px;padding:28px}
.account-overview .status-explanation,.account-overview .expiry>span{color:#b6cbd7}
.account-overview .status-pill{color:#7ce3ba}
.account-overview .expiry{margin-top:auto;padding-top:22px}
.account-overview .status-card .quiet-link{color:#8bdfff}
.account-overview .account-access{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;align-items:center;padding:28px;border-radius:16px;margin:0}
.account-access-copy{min-width:0}.account-access h2{font-size:24px;margin:10px 0 12px}.account-access p{font-size:14px;line-height:1.65}
.account-access input{width:100%;font-size:13px;min-width:0;background:#f6f9fb;min-height:46px}
.account-access .button{width:100%;min-height:46px;margin-top:12px}.account-access #copy-status:empty{display:none}
.account-access .access-private{font-size:12px;color:#597080;margin:14px 0}.access-setup{font-size:13px;font-weight:600}
.account-qr{margin:0;text-align:center}.account-qr img{display:block;width:180px;height:180px;max-width:100%;object-fit:contain;background:#fff;border-radius:10px}.account-qr figcaption{font-size:11px;color:#597080;line-height:1.5;margin-top:10px}
.account-tools{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.account-tools h2{font-size:16px;margin:0}.account-tools a{font-size:13px}
@media(max-width:1100px){.account-overview{grid-template-columns:1fr}.account-overview .status-card h2{margin-top:12px}.account-overview .status-card .expiry{margin-top:0;padding-top:6px}.account-overview .account-access{grid-template-columns:minmax(0,1fr) 200px}.account-qr img{width:200px;height:200px}}
@media(max-width:560px){.account-overview .account-access{grid-template-columns:1fr;padding:22px}.account-qr{justify-self:center}.account-overview .status-card{padding:22px}.account-access h2{font-size:22px}.account-tools{gap:16px}}

.account-page .page-heading{padding-top:30px;margin-bottom:24px}.account-page .page-heading h1{font-size:40px;margin:12px 0 24px}.account-page .account-tools{padding:20px 24px}.account-page .footer{margin-top:32px}

/* Three equally sized security panels, preserving every security control. */
.security-page .page-heading{padding-top:30px;margin-bottom:24px}
.security-page .page-heading h1{font-size:40px;margin:12px 0 24px}
.security-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.security-overview>.card{margin:0;padding:24px;border-radius:16px;border:1px solid #dce5eb;box-shadow:0 8px 28px #10243104;min-width:0}
.security-overview h2{font-size:21px;line-height:1.3;letter-spacing:-.4px;margin:0 0 18px}
.security-overview p{font-size:14px;line-height:1.65;margin:16px 0 20px}
.security-overview .badge{display:inline-flex;font-size:12px;padding:5px 11px;line-height:1.5}
.security-overview label{font-size:13px}.security-overview input{min-height:44px;font-size:15px;width:100%}
.security-overview .button{min-height:46px;width:100%;font-size:13px;line-height:1.4;padding:12px 14px;margin-top:12px;border-radius:8px;white-space:normal}
.security-overview .button.secondary{border-color:#b9cbd5;background:#f8fbfd;color:#153040}
.security-overview .button.secondary:hover{background:#e6f6fc;border-color:#0083ac}
.security-overview .text-button{font-size:13px;line-height:1.5}.security-overview .secondary-link{font-size:13px;line-height:1.5;margin-top:22px}
.security-overview .identity-list{margin:0 0 18px}.security-overview .identity-list li{font-size:13px;padding:0 0 12px;gap:10px}
.security-overview form+form{margin-top:14px}.security-overview #passkey-message:empty{display:none}
.security-overview #recovery-codes{padding:16px}.security-overview #recovery-codes ul{font-size:12px}
.security-page .footer{margin-top:32px}
@media(max-width:980px){.security-overview{grid-template-columns:1fr}.security-overview>.card{padding:22px}.security-page .page-heading h1{font-size:34px}.security-page .page-heading{padding-top:22px}}

.access-actions{display:flex;gap:20px;flex-wrap:wrap;margin-top:12px}.site-header .nav .nav-account{color:#fff;font-weight:700}.site-header .nav-end{margin-left:0}@media(min-width:1001px){.site-header .nav{display:grid;grid-template-columns:1.15fr 1fr;gap:45px}.site-header .brand{grid-column:1;grid-row:1}.site-header nav{grid-column:2;grid-row:1;justify-content:space-between;gap:15px;padding-right:44px;white-space:nowrap}.site-header .nav-end{grid-column:2;grid-row:1;justify-self:end}}@media(max-width:760px){.site-header nav{font-size:12px;gap:10px}}
.site-header .nav>nav{justify-content:flex-end;gap:24px}

/* Align headings and both action rows across the security cards. */
.security-overview>.security-panel{display:flex;flex-direction:column}
.security-panel .security-details{flex:1;padding-bottom:12px}
.security-panel .security-details p{margin-bottom:0}
.security-panel .security-actions{display:flex;flex-direction:column;gap:14px}
.security-panel .security-actions form{margin:0}
.security-panel .security-actions .button{margin:0;min-height:46px}
.security-panel .security-actions .secondary-link,
.security-panel .security-actions .text-button{display:flex;align-items:center;min-height:46px;margin:0}
.security-panel .security-actions #passkey-message:empty{display:none}
@media(max-width:980px){.security-panel .security-details:empty{display:none}}
