/* Additive presentation layer. Auth, scanner and feature logic remain in their original scripts. */
@font-face{font-family:Manrope;font-style:normal;font-weight:200 800;font-display:swap;src:url("/assets/fonts/manrope-latin-variable.woff2") format("woff2")}
.kb-surface{
 --font-body:Manrope,ui-sans-serif,system-ui,sans-serif;--font-display:var(--font-body);
 --background:#f4f6f1;--bg:var(--background);--surface:#fff;--surface-2:#eaf0e6;--field:#f5f7f3;
 --text:#182b20;--text-muted:#526757;--text-2:var(--text-muted);--text-3:#596d5e;
 --border:#d3ded0;--border-strong:#a2b69f;--button-primary:#17603f;--button-primary-hover:#124c32;--button-text:#fff;
 --accent:var(--button-primary);--accent-fg:var(--button-text);--accent-text:#17603f;--focus-ring:#17603f;--focus:var(--focus-ring);
 --ok:#17603f;--warn:#85600c;--danger:#af352a;
 min-height:100dvh;margin:0;background:var(--background);color:var(--text);font:400 15px/1.6 var(--font-body);
}
[data-theme="dark"] .kb-surface{
 --background:var(--kb-dark-ground);--surface:var(--kb-dark-surface);--surface-2:var(--kb-dark-raised);--field:var(--kb-dark-field);
 --text:var(--kb-dark-text);--text-muted:var(--kb-dark-muted);--text-3:var(--kb-dark-muted);--border:var(--kb-dark-line);--border-strong:var(--kb-dark-line-strong);
 --button-primary:var(--kb-dark-brand);--button-primary-hover:var(--kb-dark-brand-hover);--button-text:var(--kb-dark-brand-ink);--accent-text:var(--kb-dark-brand);--focus-ring:var(--kb-dark-brand);
 --ok:var(--kb-dark-brand);--warn:#e6bd69;--danger:#f3a196;
 --accent-text:var(--kb-dark-info);--focus-ring:var(--kb-dark-info);
}
.kb-surface ::selection{background:var(--accent-soft);color:var(--text)}
.kb-surface :where(input,textarea,select){caret-color:var(--accent-text);accent-color:var(--accent-text);font:inherit;min-width:0}
.kb-surface :where(input,textarea,select):not([type="checkbox"]):not([type="radio"]){
 border:1px solid var(--border-strong);border-radius:8px;background:var(--field);color:var(--text);min-height:46px;padding:11px 13px;
}
.kb-surface :where(input,textarea)::placeholder{color:var(--text-muted);opacity:1}
.kb-surface :where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--focus-ring);outline-offset:4px}
.kb-surface :where(h1,h2,h3){font-family:var(--font-display);letter-spacing:-.03em;text-wrap:balance}
.kb-surface :where(p,li,dd,code){overflow-wrap:anywhere}
.kb-surface :where(.btn,button){font-family:var(--font-body)}
.kb-surface .btn{min-height:44px;height:auto;border-radius:8px;box-shadow:none;font-size:13px;font-weight:650}
.kb-surface .btn:not(.btn-ghost):not(.danger-action){color:var(--button-text);background:var(--button-primary);border-color:var(--button-primary)}
.kb-surface .btn-ghost{color:var(--text);border-color:var(--border);background:transparent}
.kb-surface :where(button,input):disabled{cursor:not-allowed;opacity:.6}
.kb-surface a{ text-underline-offset:4px }
.kb-surface .site-nav{background:var(--background);border-color:var(--border)}
.kb-surface .site-nav-in{max-width:1280px;min-height:78px;padding-inline:clamp(20px,4vw,56px);gap:24px}
.kb-surface .site-menu{background:var(--background)}
.kb-surface .site-links{gap:4px}
.kb-surface .site-links a{font:550 12px/1.5 var(--font-body);color:var(--text-muted)}
.kb-surface .site-links a:hover,.kb-surface .site-links a[aria-current="page"]{color:var(--text)}
.kb-surface .site-actions{gap:8px}
.kb-surface .site-nav .site-actions .btn-ghost{color:var(--text);border-color:var(--border-strong)}
.kb-surface .brand img{height:31px}
.kb-surface .logo-for-light{display:block}
.kb-surface .logo-for-dark{display:none}
[data-theme="dark"] .kb-surface .logo-for-light{display:none}
[data-theme="dark"] .kb-surface .logo-for-dark{display:block}
.kb-surface .nav-toggle{color:var(--text);border-color:var(--border-strong);background:var(--surface);min-height:44px}
.kb-surface .tool-eyebrow{font-size:11px;letter-spacing:.04em;text-transform:none;color:var(--accent-text)}
.kb-surface .tool-footer{max-width:1160px;min-height:76px;border-color:var(--border);color:var(--text-muted)}
.kb-surface .tool-footer .brand img{height:25px}
.kb-surface .foot-links{display:flex;flex-wrap:wrap;gap:20px}
.kb-surface .foot-links a{color:var(--text-muted)}
.kb-surface .card{border-radius:12px;border-color:var(--border);background:var(--surface);box-shadow:none}
.kb-surface :where(.notice,.auth-message){border-radius:8px}
.kb-surface .error{color:var(--danger);font-size:13px;line-height:1.6}
.kb-surface .hint{color:var(--text-muted)}
/* The form is the focal point. The record remains explicitly fictional. */
.kb-surface .auth-main{width:min(1160px,calc(100% - 64px));padding-block:56px;align-content:center}
.kb-surface .auth-layout{grid-template-columns:minmax(0,1fr) minmax(360px,1fr);gap:36px;border:0;background:transparent;align-items:stretch}
.kb-surface .auth-story{border:1px solid var(--border);border-radius:16px;padding:44px;background:var(--surface);color:var(--text)}
.kb-surface .auth-story h2{max-width:12ch;margin:0;font-size:clamp(2.5rem,4vw,3.8rem);line-height:1.08;letter-spacing:-.04em}
.kb-surface .auth-story .tool-eyebrow{color:var(--accent-text)}
.kb-surface .auth-story-copy{color:var(--text-muted);font-size:14px;line-height:1.75;max-width:43ch}
.kb-surface .auth-record{border:0;background:var(--field);border-radius:10px;overflow:hidden;margin-top:auto}
.kb-surface :where(.auth-record-head,.auth-record-row){padding:14px 18px;border-color:var(--border);text-transform:none;letter-spacing:0;color:var(--text)}
.kb-surface .auth-record-row strong{color:var(--text);font-size:12px}
.kb-surface .auth-record-head span:last-child,
.kb-surface .auth-record-row>span,
.kb-surface .auth-record-foot{color:var(--text-muted)}
.kb-surface .auth-record-foot{font-size:11px;padding:12px 18px}
.kb-surface .auth-record-row i{background:var(--ok)}
.kb-surface .auth-story-link{color:var(--accent-text)}
.kb-surface .auth-panel{max-width:480px;padding:32px 28px;align-self:center}
.kb-surface .auth-panel-head{margin-bottom:28px}
.kb-surface .auth-panel h1{font:650 clamp(2rem,3vw,2.6rem)/1.15 var(--font-display);letter-spacing:-.035em}
.kb-surface .auth-lede{font-size:14px;line-height:1.65}
.kb-surface .auth-panel .tab-group{padding:4px;gap:4px;background:var(--field);border:1px solid var(--border);border-radius:10px}
.kb-surface .auth-panel .tab-group .btn{min-height:40px;border:1px solid transparent;color:var(--text-muted);font-size:13px}
.kb-surface .auth-panel .tab-group .btn[aria-pressed="true"]{border-color:var(--border-strong);background:var(--surface);color:var(--text)}
.kb-surface .auth-form label{font-size:12px;font-weight:650;margin-bottom:8px}
.kb-surface .auth-form .text-input{min-height:48px;font-family:var(--font-body);font-size:16px;margin-bottom:22px}
.kb-surface .auth-submit{min-height:48px;margin-top:6px;justify-content:space-between}
.kb-surface .auth-inline-link{min-height:44px;align-items:center;margin-top:10px;color:var(--accent-text);font-size:12px}
.kb-surface .auth-privacy-note{font-size:12px;line-height:1.7;padding-top:20px}
.kb-surface .forgot-password-panel{border-color:var(--border);margin-top:20px;padding-top:20px}
.kb-surface .forgot-password-panel h2{font-size:21px}
.kb-surface .reset-auth-main{width:min(620px,calc(100% - 40px))}
.kb-surface .reset-password-panel{max-width:580px;padding:clamp(24px,5vw,48px);border:1px solid var(--border);border-radius:14px}
.kb-surface .auth-message{font-size:13px}
/* Existing tool inputs and result containers retain all original IDs and semantics. */
.kb-surface .check-hero{width:100%;max-width:none;padding:48px 0 0;background:var(--background)}
.kb-surface .check-hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:64px;padding-bottom:28px}
.kb-surface .check-hero h1{font-size:clamp(2.6rem,4.7vw,4.25rem);line-height:1.07;letter-spacing:-.04em}
.kb-surface .check-hero h1 span{color:var(--accent-text)}
.kb-surface .check-hero .tool-lede{font-size:15px;line-height:1.7;max-width:55ch}
.kb-surface .check-process{padding:24px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.kb-surface .check-process-source{padding:12px;border-radius:7px;background:var(--field)}
.kb-surface .check-process-report>span{border-radius:5px;font-size:11px}
.kb-surface .check-hero-foot,.kb-surface .check-hero-foot span{font-size:11px;color:var(--text-muted)}
.kb-surface .tool-main{padding-block:32px 64px}
.kb-surface .check-runner{grid-template-columns:minmax(200px,.72fr) minmax(0,1.28fr);gap:40px;border:1px solid var(--border);border-radius:14px;padding:32px;background:var(--surface)}
.kb-surface .check-runner-copy h2{font-size:26px;line-height:1.2;letter-spacing:-.035em}
.kb-surface .check-runner-copy>p:last-child{font-size:13px;max-width:34ch}
.kb-surface .check-form-row{grid-template-columns:minmax(120px,1fr) 116px;gap:12px}
.kb-surface .check-form-row>.check-submit{grid-column:1/-1;justify-self:start}
.kb-surface .check-submit{font-size:13px}
.kb-surface .check-form-note{font-size:12px}
.kb-surface .mailcheck-search-row{grid-template-columns:minmax(0,1fr)}
/* Keep the absolute menu anchored to the split button, not the full grid track. */
.kb-surface .mailcheck-action{margin-top:12px;justify-self:start;max-width:100%}
.kb-surface .mailcheck-search-row>input{border-radius:8px}
.kb-surface .mailcheck-action>.check-submit{border-radius:8px 0 0 8px;min-width:154px}
.kb-surface .mailcheck-menu-toggle{border-radius:0 8px 8px 0;min-width:44px}
.kb-surface .mailcheck-menu{border-radius:10px;background:var(--surface);border-color:var(--border-strong);box-shadow:0 10px 26px rgba(0,0,0,.12)}
.kb-surface .mailcheck-menu button{min-height:44px}
.kb-surface .mailcheck-results{border-radius:14px;background:var(--surface)}
.kb-surface .mailcheck-card{border-radius:10px;border-width:1px;background:var(--field)}
.kb-surface .mailcheck-card:is(.state-ok,.state-warn,.state-fail){border-left-width:1px}
[data-theme="dark"] .kb-surface .mailcheck-card.state-ok{background:var(--field);border-color:var(--border);border-left:2px solid var(--ok)}
[data-theme="dark"] .kb-surface .mailcheck-card.state-warn{background:var(--field);border-color:var(--border);border-left:2px solid var(--warn)}
[data-theme="dark"] .kb-surface .mailcheck-card.state-fail{background:var(--field);border-color:var(--border);border-left:2px solid var(--danger)}
.kb-surface .check-result .card{border-radius:12px}
.kb-surface .grade{font-family:var(--font-body);font-variant-numeric:tabular-nums}
.kb-surface .facts{font-size:13px}
.kb-surface .check-disclaimer{font-size:12px}
.kb-surface .steps{max-width:none;padding:0;margin:0 0 28px}
.kb-surface .issue-form-column{min-width:0}
.kb-surface .option-card{background:var(--field);border-radius:8px}
/* Reading and link-confirmation pages use a quiet column, not a marketing hero. */
.kb-document-page>header,.kb-flow-page>header{width:min(840px,calc(100% - 40px));max-width:none;padding:56px 0 16px;margin-inline:auto}
.kb-document-page>header h1,.kb-flow-page>header h1{font-size:clamp(2rem,4vw,3.25rem);line-height:1.12;letter-spacing:-.04em}
.kb-document-page .legal-content,.kb-flow-page>main{width:min(840px,calc(100% - 40px));max-width:none;margin:0 auto;padding:16px 0 48px;gap:24px}
.kb-document-page .legal-content>.card,.kb-flow-page>main>.card{padding:clamp(24px,5vw,44px);border:1px solid var(--border);border-radius:12px}
.kb-document-page .legal-content h2{font-size:20px;line-height:1.35;margin:32px 0 12px}
.kb-document-page .legal-content :where(p,li){font-size:14px;line-height:1.85;max-width:72ch}
.kb-document-page .legal-content ul,.kb-document-page .legal-content ol{padding-left:22px}
.kb-document-page .legal-content li+li{margin-top:8px}
.kb-document-page>footer,.kb-flow-page>footer{width:min(840px,calc(100% - 40px));max-width:none;margin:0 auto;padding:24px 0;border-top:1px solid var(--border)}
.kb-flow-page .facts{grid-template-columns:minmax(100px,.4fr) minmax(0,1fr)}
/* Operator surfaces inherit the shared dashboard shell. Keep unlock and permission states visible. */
.kb-console-page .operator-title h1{font-family:var(--font-display)}
.kb-console-page .operator-unlock{max-width:600px;padding:32px;border-radius:12px;background:var(--surface)}
.kb-console-page .operator-table{font-size:13px}
.kb-console-page .operator-table-wrap{max-width:100%;overflow:auto}
.kb-console-page .operator-unlock input{font-size:16px}
.kb-console-page .operator-unlock form{max-width:430px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .kb-surface .btn{transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease}
 .kb-surface .btn:not(.btn-ghost):not(.danger-action):not(:disabled):hover{background:var(--button-primary-hover);border-color:var(--button-primary-hover)}
}
@media(max-width:1120px){
 .kb-surface .site-menu{background:var(--background)}
 .kb-surface .site-nav-in{min-height:68px}
 .kb-surface .site-menu{top:68px}
}
@media(max-width:900px){
 .kb-surface .auth-layout{gap:18px;grid-template-columns:minmax(0,.9fr) minmax(310px,1fr)}
 .kb-surface .auth-story{padding:28px}
 .kb-surface .auth-panel{padding:28px 12px}
 .kb-surface .check-hero-grid{gap:28px}
 .kb-surface .check-runner{gap:24px;padding:24px}
}
@media(max-width:700px){
 .kb-surface .site-nav-in{padding-inline:20px;gap:12px}
 .kb-surface .auth-main{width:calc(100% - 40px);padding-block:28px}
 .kb-surface .auth-layout{display:flex;flex-direction:column;gap:28px}
 .kb-surface .auth-panel{order:-1;width:100%;max-width:none;padding:12px 4px}
 .kb-surface .auth-story{padding:24px}
 .kb-surface .auth-story h2{max-width:18ch;font-size:30px}
 .kb-surface .auth-story-copy{max-width:none;margin-bottom:24px}
 .kb-surface .auth-record{margin-top:0}
 .kb-surface .auth-panel h1{font-size:32px}
 .kb-surface .auth-record-row{flex-direction:row;gap:12px}
 .kb-surface .auth-record-row strong{font-size:11px}
 .kb-surface .reset-password-panel{padding:24px;border:1px solid var(--border)}
 .kb-surface .check-hero{padding-top:28px}
 .kb-surface .check-hero-grid{grid-template-columns:1fr;gap:24px}
 .kb-surface .check-hero h1{font-size:38px}
 .kb-surface .check-process{padding:20px}
 .kb-surface .check-runner{grid-template-columns:1fr;gap:20px;padding:24px}
 .kb-surface .check-form-row{grid-template-columns:minmax(0,1fr) 102px}
 .kb-surface .check-form-row>.check-submit{justify-self:stretch}
 .kb-surface .tool-main{padding-top:20px}
 .kb-surface .tool-wrap,.kb-surface .tool-main,.kb-surface .tool-footer{width:calc(100% - 40px)}
 .kb-surface .check-disclaimer p{font-size:12px}
 .kb-surface .mailcheck-cards{grid-template-columns:1fr}
 .kb-surface .mailcheck-results{padding:20px}
 .kb-document-page>header,.kb-flow-page>header{padding-top:32px}
 .kb-console-page .operator-unlock{padding:22px}
}
@media(prefers-reduced-motion:reduce){
 .kb-surface,.kb-surface *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}


/* Keep the independent hostname and port labels on the same baseline. */
.kb-surface .check-port-field{position:relative}
.kb-surface .check-port-field label{position:absolute;bottom:calc(100% + 7px);width:100%;margin:0}
.kb-surface .check-form-row .text-input{height:48px}

/* Keep account layouts inside their grid track, including narrow link/error states. */
.kb-surface .auth-main { grid-template-columns:minmax(0,1fr); }
.kb-surface :is(.auth-layout,.auth-panel,.auth-story) { min-width:0; }
.kb-surface .auth-story h2 { overflow-wrap:anywhere; hyphens:auto; }
.kb-surface .auth-panel :is(.auth-message,.error,.auth-privacy-note) { overflow-wrap:anywhere; }
@media(max-width:700px) {
 .kb-surface .auth-panel .tab-group .btn { min-width:0; min-height:44px; padding-inline:10px; }
 .kb-surface .auth-record-head { flex-wrap:wrap; }
 .kb-surface .auth-record-row strong { min-width:0; overflow-wrap:anywhere; }
 .kb-surface .auth-inline-link { display:inline-flex; min-height:44px; }
 .kb-surface .auth-form .text-input { max-width:100%; font-size:16px; }
}

@media(min-width:701px) and (max-width:900px) {
 .kb-surface .auth-story h2 { font-size:30px; line-height:1.15; max-width:none; }
}

/* Remaining mobile surfaces: retain content and behavior, contain long text. */
.kb-document-page>header h1,.kb-flow-page>header h1 { overflow-wrap:anywhere; hyphens:auto; }
.kb-surface :is(.legal-content,.check-result,.issue-form-column) pre { max-width:100%; overflow:auto; }
.kb-surface .check-hero-note li>span { flex:none; min-width:24px; white-space:nowrap; }
@media(max-width:700px) {
 .kb-surface :is(.check-form,.issue-form-column,.operator-unlock) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; }
 .kb-surface .foot-links a { display:inline-flex; align-items:center; min-height:44px; }
 .kb-surface :is(.legal-content,.card) summary { min-height:44px; padding-block:10px; }
 .kb-surface .grade-text { min-width:0; }
 .kb-surface .check-result .grade-row { align-items:flex-start; }
 .kb-surface .legal-content>.card,.kb-flow-page>main>.card { min-width:0; }
}
@media(max-width:380px) {
 .kb-surface .check-result .grade-row { flex-direction:column; gap:14px; }
 .kb-surface .check-result .grade-text { width:100%; }
}

/* Sign-in headline: deliberate line break, no mid-word hyphenation. */
.kb-surface .auth-story .auth-story-heading{max-width:none;hyphens:none;overflow-wrap:normal;word-break:normal}

/* More compact, centered sign-in introduction. */
.kb-surface .auth-story{width:100%;max-width:520px;justify-self:center;box-sizing:border-box}
.kb-surface .auth-story .auth-story-heading{text-align:center;font-size:clamp(2.2rem,3.5vw,3.4rem)}
.kb-surface .auth-story>.tool-eyebrow{justify-content:center;text-align:center}
.kb-surface .auth-story .auth-story-copy{max-width:37ch;margin-inline:auto;text-align:center}
@media(max-width:600px){.kb-surface .auth-story .auth-story-heading{font-size:30px}}

/* Keep the sign-in card content-sized instead of stretching to the form height. */
.kb-surface .auth-story.auth-story-compact{align-self:center;min-height:0;height:auto;padding:32px}
.kb-surface .auth-story-compact .auth-record{margin-top:24px}
.kb-surface .auth-story-compact .auth-story-copy{margin-bottom:0}
@media(max-width:600px){.kb-surface .auth-story.auth-story-compact{padding:24px}}

/* Closed beta has one sign-in mode; retain hidden control IDs for existing controllers. */
.kb-closed-beta-login .auth-panel .tab-group{display:none}
.kb-closed-beta-login .auth-main{width:min(1080px,calc(100% - 48px));padding-block:36px}
.kb-closed-beta-login .auth-layout{gap:32px}
.kb-closed-beta-login .auth-panel{max-width:440px;padding:24px 20px}
.kb-closed-beta-login .auth-panel-head{margin-bottom:20px}
.kb-closed-beta-login .auth-panel-head .muted{font-size:12px;line-height:1.65;margin:12px 0 0}
.kb-closed-beta-login .auth-form .text-input{margin-bottom:14px}
.kb-closed-beta-login .auth-inline-link{margin-top:4px}
.kb-closed-beta-login .auth-privacy-note{margin-top:14px;padding-top:14px}
@media(max-width:600px){.kb-closed-beta-login .auth-main{width:calc(100% - 32px);padding-block:20px}.kb-closed-beta-login .auth-panel{max-width:none;padding:12px 0}}

/* Omit the repeated scope note below password reset on the sign-in page. */
.kb-closed-beta-login .auth-privacy-note{display:none}
