@import url('./design-tokens.css');

/* Selected monochrome Help / assistant direction; the landing keeps its dark design. */
@font-face{font-family:'CardLab Silkscreen';src:url('assets/fonts/silkscreen.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Sofia Sans Extra Condensed';src:url('assets/fonts/sofia-sans-extra-condensed-800-latin.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:'Sofia Sans Extra Condensed';src:url('assets/fonts/sofia-sans-extra-condensed-800-cyrillic.woff2') format('woff2');font-weight:800;font-display:swap;unicode-range:U+0400-052F}

.brand-pixel,.footer-wordmark{font-family:'CardLab Silkscreen',sans-serif!important;letter-spacing:.015em!important;font-weight:400!important;white-space:nowrap;display:inline-flex;align-items:baseline;gap:.32em}
.brand-pixel .brand-name{font:inherit!important;letter-spacing:inherit!important;display:inline!important}
.brand-pixel img,.footer-wordmark img{display:none!important}
.header .brand-pixel{font-size:26px!important;line-height:1}
.header .brand-pixel{flex-shrink:0}
.header nav a,.header-actions .button-label{white-space:nowrap}
@media(min-width:1101px){.header-inner{gap:24px}.header nav{gap:22px}}
.help-header .brand-pixel{font-size:28px!important;line-height:1}
.footer-wordmark{justify-content:flex-start;font-size:clamp(30px,10vw,160px)!important;line-height:1.1!important}
@media(max-width:1100px){.header-inner{gap:14px}}
@media(max-width:760px){.header .brand-pixel{font-size:20px!important}.help-header .brand-pixel{font-size:22px!important}.help-header>.wrap{height:auto;min-height:68px;flex-wrap:wrap;padding-block:12px;gap:8px 14px}.help-header nav{order:3;width:100%;margin-left:0;display:flex;flex-wrap:wrap;gap:8px 15px;font-size:11px}.help-header nav a{white-space:nowrap}}
@media(max-width:500px){.header-inner{gap:5px}.header .brand-pixel{font-size:18px!important}.header .button.compact{width:35px;min-width:35px;min-height:35px;padding:2px;justify-content:center}.header .button.compact .button-label{display:none}.header .button.compact .button-orbit{margin:0}.header .menu-toggle{flex:none}}
@media(max-width:380px){.header .brand-pixel{font-size:17px!important}}
/* Registration is a peer action beside the project CTA. */
.header-actions{--header-action-size:12px;gap:18px;flex-shrink:0}
.header .header-register,.header .button.arrow-button.compact{font-family:inherit;font-size:var(--header-action-size);font-weight:600;line-height:1.2}
.header-register{display:inline-flex;align-items:center;min-height:43px;padding:8px 0;color:#f4f4f2;white-space:nowrap}
.header-register:hover{color:#fff;text-decoration:none}
@media(min-width:1101px){.header-register{margin-right:50px}}
@media(max-width:760px){.header-actions{--header-action-size:10px;gap:12px}.header-register{min-height:38px}}
@media(max-width:500px){.header{height:112px}.header-inner{flex-wrap:wrap;align-content:center;gap:5px 12px}.header-actions{--header-action-size:12px;width:100%;justify-content:flex-end;margin-left:0}.header nav{top:111px}}


:root{--lab-bg:#f7f8f8;--lab-paper:#fff;--lab-soft:#e9eaec;--lab-card:#fff;--lab-ink:#17191c;--lab-muted:#58606b;--lab-border:#cfd3d8;--lab-accent:#111316;--lab-on-accent:#fff;--lab-modal:#15171b;--lab-modal-field:#25282e;--lab-modal-border:#4b5059;--lab-modal-text:#f8f9fa;--lab-modal-muted:#b8bec7;--lab-pop:#d4d7dc;--lab-modal-action:#f4f4f2;--lab-on-modal-action:#111316;--lab-launcher:var(--cardlab-question-surface);--lab-on-launcher:var(--cardlab-question-ink)}
.help-page,.help-widget{--focus-color:#717780;--control-accent:var(--lab-accent)}
.contact-modal-surface,.site-register-dialog{--focus-color:#b8bec7}

.help-page{background:var(--lab-bg);color:var(--lab-ink);color-scheme:light}
.help-page h1,.help-page h2,.help-page h3{font-family:'Sofia Sans Extra Condensed',Impact,'Arial Narrow',sans-serif;font-weight:800;letter-spacing:-.025em;text-transform:uppercase}
.help-page p,.help-page .eyebrow,.help-page .help-fine{color:var(--lab-muted)}
.help-header{background:var(--lab-paper);border-bottom:1px solid var(--lab-border)}
.help-header .brand,.help-header nav a,.help-footer a{color:var(--lab-ink)}
.help-header>.wrap>span{border-color:var(--lab-border);color:var(--lab-muted)}
.help-page .button{background:var(--lab-accent);border-color:var(--lab-accent);color:var(--lab-on-accent);border-radius:7px}
.help-page .button:hover{filter:brightness(1.12);background:var(--lab-accent)}
.help-preview,.help-note,.help-route-card,.help-modes article,.help-factors article,.help-section details,.help-page th{background:var(--lab-soft);border-color:var(--lab-border);color:var(--lab-ink)}
.help-route-card{background:var(--lab-card);border-radius:16px}
.help-route-illustration{display:block;width:100%;height:auto;margin:48px auto 24px}
.help-route-card p,.help-route-card i,.help-factors p,.help-section details p,.help-section details ol,.help-steps p,.help-example p,.help-note p{color:var(--lab-muted)}
.help-route-card>div,.help-section,.help-page th,.help-page td,.help-footer,.help-page .brief-form fieldset{border-color:var(--lab-border)}
.help-route-card>div{font-size:12px}
.help-route-card>div{flex-wrap:wrap;row-gap:5px}
.help-big-number{color:var(--lab-accent)}
.help-contact{background:var(--lab-ink);color:var(--lab-bg)}
.help-contact h2,.help-contact .eyebrow,.help-contact p,.help-contact small{color:var(--lab-bg)}
.help-contact .button,.help-contact .button:hover{background:var(--lab-paper);border-color:var(--lab-paper);color:var(--lab-ink)}
.help-page .brief-form,.request-layout .brief-form{background:var(--lab-card);border:1px solid var(--lab-border);color:var(--lab-ink)}
.help-page .brief-form input,.help-page .brief-form textarea,.help-page .brief-form select,.request-layout .brief-form input,.request-layout .brief-form textarea,.request-layout .brief-form select{background:var(--lab-paper);color:var(--lab-ink);border-color:var(--lab-border)}
.request-layout .scenario-options label{background:var(--lab-paper);color:var(--lab-ink);border-color:var(--lab-border)}
.help-page input[type='radio'],.help-page input[type='checkbox']{accent-color:var(--lab-accent)}
.help-page :focus-visible,.help-widget :focus-visible{outline:3px solid var(--lab-accent);outline-offset:2px}

.help-page .help-layout,.help-page .help-example,.help-page .help-checklist li,.help-page .help-hero-actions>a:last-child{border-color:var(--lab-border)}
.help-page .help-note b,.help-page .help-checklist b,.help-page .help-volume-result,.help-page .brief-form label{color:var(--lab-ink)}
.help-page .help-checklist,.help-page .help-steps small,.help-page caption,.help-page .help-footer span,.help-page .request-privacy{color:var(--lab-muted)}
.help-page .help-steps li::before{background:var(--lab-soft);color:var(--lab-ink)}
.help-page .request-secondary{color:var(--lab-ink);border-color:var(--lab-border)}
.help-page #clear-draft{background:var(--lab-soft);color:var(--lab-ink);border:1px solid var(--lab-border);border-radius:7px}

.help-widget{color:var(--lab-ink);color-scheme:light}
.help-widget{--launcher-background:#000;--launcher-foreground:#fff;--launcher-hover:#222}
.help-widget[data-surface="dark"]{--launcher-background:#fff;--launcher-foreground:#000;--launcher-hover:#f2f2f2}
.help-widget .help-launcher{background:var(--launcher-background);border-color:var(--launcher-background);color:var(--launcher-foreground);border-radius:12px}
.help-widget .help-launcher:hover{background:var(--launcher-hover);border-color:var(--launcher-hover)}
.help-widget .help-chat{background:var(--lab-paper);color:var(--lab-ink);border-color:var(--lab-border);border-radius:16px}
.help-widget .help-chat-head,.help-widget .help-voice-settings{background:var(--lab-soft);border-color:var(--lab-border)}
.help-widget #help-chat-title,.help-widget .help-chat-form label,.help-widget .help-message p{color:var(--lab-ink)}
.help-widget .help-chat-head p,.help-widget .help-chat-privacy,.help-widget .help-message small,.help-widget .help-chat-status,.help-widget .help-voice-settings,.help-widget .help-voice-settings span,.help-widget .help-voice-hint{color:var(--lab-muted)}
.help-widget .help-message{background:var(--lab-card);color:var(--lab-ink);border-color:var(--lab-border)}
.help-widget .help-message.user{background:var(--lab-soft);border-color:var(--lab-border)}
.help-widget .help-suggestions button,.help-widget .help-speaker,.help-widget .help-input-row .help-mic,.help-widget .help-stop-request,.help-widget .help-record-actions button,.help-widget .help-voice-draft button,.help-widget .help-listen,.help-widget .help-record-panel select{background:var(--lab-card);color:var(--lab-ink);border-color:var(--lab-border)}
.help-widget .help-avatar,.help-widget .help-input-row .help-send,.help-widget .help-record-actions .help-record-start,.help-widget .help-record-actions .help-record-stop,.help-widget .help-listen[aria-pressed='true']{background:var(--lab-accent);color:var(--lab-on-accent);border-color:var(--lab-accent)}
.help-widget .help-chat-form,.help-widget .help-chat-links{background:var(--lab-paper);border-color:var(--lab-border)}
.help-widget .help-chat-form textarea{background:var(--lab-card);color:var(--lab-ink);border-color:var(--lab-border)}
.help-widget .help-chat-form textarea::placeholder{color:var(--lab-muted)}
.help-widget .help-chat-links a,.help-widget .help-chat-links button,.help-widget .help-answer-sources a,.help-widget .help-answer-sources button{color:var(--lab-accent)}
.help-widget .help-record-panel,.help-widget .help-thinking,.help-widget .help-voice-draft{background:var(--lab-soft);color:var(--lab-ink);border-color:var(--lab-border)}
.help-widget .help-record-panel p,.help-widget .help-record-panel label,.help-widget .help-thinking,.help-widget .help-voice-draft>span{color:var(--lab-muted)}
.help-widget .help-close{color:var(--lab-ink)}
.help-widget .help-spinner{border-color:var(--lab-border);border-top-color:var(--lab-accent)}

.contact-modal-surface,.site-register-dialog{background:var(--lab-modal);color:var(--lab-modal-text);border:1px solid var(--lab-modal-border)}
#contact-form .dialog-top .eyebrow,.site-register-dialog .dialog-top .eyebrow,#contact-form .form-intro,.site-register-dialog .form-intro,#contact-form .contact-privacy,#contact-form label,.site-register-dialog label{color:var(--lab-modal-muted)}
#contact-form h2,#lead-success h2,.site-register-dialog h2{font-family:'Sofia Sans Extra Condensed',Impact,'Arial Narrow',sans-serif;font-weight:800;letter-spacing:-.02em;text-transform:uppercase}
#contact-form input,#contact-form textarea,#contact-form select,.site-register-dialog input{background:var(--lab-modal-field);color:var(--lab-modal-text);border:1px solid var(--lab-modal-border)}
#contact-form input:focus,.site-register-dialog input:focus,#contact-form textarea:focus{outline:2px solid var(--lab-accent);outline-offset:1px}
#contact-dialog .close:not(.contact-modal-close),.site-register-dialog .close{background:var(--lab-modal-field);color:var(--lab-modal-text)}
#contact-dialog .lead-assist-actions button{background:var(--lab-modal-field);border-color:var(--lab-accent);color:var(--lab-modal-text)}
#contact-dialog .button[type='submit'],.site-register-dialog .button[type='submit']{background:var(--lab-modal-action);color:var(--lab-on-modal-action);border-color:var(--lab-modal-action)}
#contact-dialog .button[type='submit'] .button-orbit{background:var(--lab-modal);color:var(--lab-modal-text)}
#contact-form .contact-privacy a,#contact-form a:not(.button),#lead-success a:not(.button),.site-register-dialog a{color:var(--lab-pop)}
#contact-dialog [hidden],.site-register-dialog [hidden]{display:none!important}
.lead-success{text-align:center;padding:8px 8px 16px;max-width:560px;margin:auto}
.lead-success img{display:block;width:min(100%,300px);height:auto;margin:4px auto 18px}
.lead-success-check{display:grid;place-items:center;width:48px;height:48px;margin:-18px auto 12px;border:3px solid var(--lab-modal);border-radius:50%;background:#52cb8f;color:#11251d;font:700 30px/1 Arial;position:relative}
.lead-success .eyebrow{font-size:11px;color:var(--lab-pop)}
.lead-success h2{font-size:clamp(38px,5vw,58px);margin:10px 0 15px}
.lead-success p{color:var(--lab-modal-muted);font-size:14px;line-height:1.55;margin:9px 0}
.lead-success .lead-success-number{font-weight:700;color:var(--lab-modal-text)}
.lead-success-actions{display:grid;gap:10px;margin:22px auto;max-width:420px}
.lead-success-actions .button{padding:13px 17px;text-align:center;border:1px solid var(--lab-modal-action);background:var(--lab-modal-action);color:var(--lab-on-modal-action);border-radius:9px;font-weight:700}
.lead-success-actions .button.secondary{background:transparent;color:var(--lab-modal-text)}
.lead-success-actions a,.lead-success-actions .text-button{font-size:12px;text-decoration:underline;text-underline-offset:3px;color:var(--lab-pop);background:none;border:0;padding:7px}
.lead-success small{display:block;color:var(--lab-modal-muted);font-size:11px;line-height:1.5}
#contact-dialog.with-assistant .contact-modal-surface>.lead-success{overflow:auto;overscroll-behavior:contain;min-width:0;min-height:0;max-height:none}
.request-success{align-self:start;background:var(--lab-card);border:1px solid var(--lab-border);border-radius:16px;padding:30px;color:var(--lab-ink);text-align:center}
.request-success img{display:block;width:min(100%,300px);height:auto;margin:0 auto 18px}
.request-success .lead-success-check{border-color:var(--lab-card)}
.request-success h2{margin:10px 0;font-size:clamp(32px,3.5vw,48px)}
.request-success p{color:var(--lab-muted);font-size:14px;line-height:1.55}
.request-success #request-success-number{color:var(--lab-ink);font-weight:700;overflow-wrap:anywhere}
.request-success-actions{display:grid;gap:10px;margin:20px auto;max-width:420px}
.request-success-actions .button{display:block;width:100%;padding:13px;border:1px solid var(--lab-accent);background:var(--lab-accent);color:var(--lab-on-accent);border-radius:8px;font-weight:700;text-align:center}
.request-success-actions .button:nth-child(2){background:transparent;color:var(--lab-ink)}
.request-success-actions>a:not(.button),.request-success-actions>button:not(.button){background:none;border:0;padding:7px;color:var(--lab-accent);text-decoration:underline;text-underline-offset:3px}
.request-success small{color:var(--lab-muted);font-size:11px;line-height:1.5}
.site-register-dialog{width:min(510px,calc(100% - 30px));max-width:510px}
.site-register-dialog form{display:grid;gap:13px}
.site-register-dialog label{display:grid;gap:6px;font-size:12px}
.site-register-dialog input{width:100%;padding:13px 14px;border-radius:7px}
.site-register-dialog .button[type='submit']{padding:14px;margin-top:7px;border-radius:8px}
.site-register-dialog #site-register-status{font-size:12px;color:var(--lab-pop);margin:0}
@media(max-width:850px){#contact-dialog.with-assistant .contact-modal-surface>.lead-success{display:none}}


/* Help callouts: reference green at 50% surface alpha; all foregrounds stay solid. */
.help-page :is(.help-note,.help-example,.help-preview){background:var(--cardlab-green-soft);color:var(--cardlab-green-ink);border-color:var(--cardlab-green-ink)}
.help-page :is(.help-note,.help-example,.help-preview) :is(p,b,strong,a,svg){color:var(--cardlab-green-ink)}
.help-page :is(.help-note,.help-example,.help-preview) .button{background:var(--cardlab-green-ink);border-color:var(--cardlab-green-ink);color:var(--cardlab-green-surface)}
/* This footer belongs to the light Help page, independently of the landing footer. */
.help-page .help-footer-clean{display:block;background:#fff;padding:30px 0 100px;border-color:var(--lab-border)}
.help-footer-clean>.wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.help-page .help-footer-clean .brand,.help-page .help-footer-clean .brand-name{color:var(--lab-ink)}
.help-footer-clean .brand{font-size:22px;line-height:1}
@media(max-width:700px){.help-footer-clean>.wrap{align-items:flex-start}.help-footer-clean>.wrap>span{order:3;width:100%}}

/* Readable tracking for condensed headings on the light Help surfaces only. */
.help-guide .help-hero h1{letter-spacing:0;word-spacing:.06em}
.help-guide :is(.help-route-card,.help-section) h2{letter-spacing:.02em;word-spacing:.06em}
.help-guide .help-section h3{letter-spacing:.035em;word-spacing:.06em}
/* The old brief input:not() rule has higher specificity than the shared theme. */
.help-guide #volume-calculator input{background:var(--lab-paper);color:var(--lab-ink);border-color:var(--lab-border)}
.help-guide #volume-calculator label{color:var(--lab-muted)}
.help-guide #volume-result{color:var(--lab-ink)}
