/* Shared adapter for the separately served documentation, support, education and Studio UIs. */
@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}
html[data-tf-page]{--bg:#f7f8fa;--surface:#fff;--paper:#f7f8fa;--ink:#202227;--muted:#606671;--line:#dce0e6;--border:#dce0e6;--soft:#eff1f4;--pale:#eff1f4;--cream:#eff1f4;--accent:#994c2f;--green:#994c2f;--teal:#994c2f;--code-bg:#f2f4f7;--hover:#e8ebf0;color-scheme:light}
html[data-tf-theme=dark]{--bg:#08090a;--surface:#111214;--paper:#08090a;--ink:#eceef1;--muted:#a0a5af;--line:#2b2e35;--border:#2b2e35;--soft:#17191d;--pale:#17191d;--cream:#17191d;--accent:#dea27f;--green:#dea27f;--teal:#dea27f;--code-bg:#0b0c0e;--hover:#202329;color-scheme:dark}
html[data-tf-page] body{background:var(--bg);color:var(--ink);font-family:'DM Sans','PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:-.01em}
html[data-tf-page] :is(h1,h2,h3){font-family:'DM Sans','PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:-.035em;font-weight:550}
html[data-tf-page] :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html[data-tf-page] :is(input,textarea,select){background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:6px}
html[data-tf-page] button{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:6px;box-shadow:none}
html[data-tf-page] button:hover:not(:disabled){background:var(--hover);color:var(--ink)}
html[data-tf-page] :is(.primary,.login,.primary-link){background:var(--ink);color:var(--bg);border-color:transparent;border-radius:6px}
html[data-tf-page] :is(.primary,.login,.primary-link):hover{background:var(--ink);color:var(--bg);filter:brightness(.9)}
html[data-tf-page] :is(header,.topbar){background:var(--bg);color:var(--ink);border-color:var(--line)}
html[data-tf-page] :is(.brand,.brand small,.privacy,.side-label,.sidefoot,.eyebrow,.muted,.quiet){color:var(--muted)}
html[data-tf-page] .brand{color:var(--ink);font-weight:600;letter-spacing:-.5px}
html[data-tf-page] :is(.brand-mark,.mark,.logo){background:var(--ink);color:var(--bg);border:0;border-radius:5px;font-family:'DM Sans',sans-serif;font-style:normal}
html[data-tf-page] :is(.sidebar,aside){background:var(--code-bg);border-color:var(--line)}
html[data-tf-page] :is(.card,.claim,.composer,.note,.context-bar,.directory-body,.code,.tablewrap,details){background:var(--surface);border-color:var(--line);border-radius:8px;box-shadow:none}
html[data-tf-page] :is(nav,nav a,.suggestions,.suggestions button,.side-footer,footer,.card-head,.input-footer,.account,.school,.rules,.campaign){border-color:var(--line)}
html[data-tf-page] :is(.secondary,.button.secondary,.drop,.account,.availability,.format-help,.notice,.mode,.empty-state,.empty){background:var(--soft);color:var(--muted);border-color:var(--line)}
html[data-tf-page] :is(.nav.active,.side-link.active,.os-switch button.active,.client-switch button.active,.mode.chosen){background:var(--hover);color:var(--ink);border-color:var(--line);box-shadow:none}
html[data-tf-page] :is(table,pre,code){font-variant-numeric:tabular-nums}
html[data-tf-page] :is(pre,.codehead,th){background:var(--code-bg);color:var(--ink);border-color:var(--line)}
html[data-tf-page] :is(td,tr){border-color:var(--line)}
html[data-tf-page] .tf-standalone-theme{position:fixed;right:18px;bottom:18px;z-index:60;font-size:12px;min-height:36px;padding:8px 12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px}

html[data-tf-page=documentation] body{font-size:15px;line-height:1.95}
html[data-tf-page=documentation] header{height:68px}
html[data-tf-page=documentation] :is(.context-bar,.hero,.stage-entry,.quick-connect,.summary,.address,.search-results,.on-this-page,.generator,.linkgrid a){background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:none}
html[data-tf-page=documentation] .hero{background:none;border-radius:0}
html[data-tf-page=documentation] :is(.hero h1,.article-title){font-size:36px;letter-spacing:-.04em}
html[data-tf-page=documentation] .hero>p{color:var(--muted)}
html[data-tf-page=documentation] :is(.context-bar,.stage-entry,.linkgrid a,.on-this-page){border-radius:7px}
html[data-tf-page=documentation] .stage-entry:hover{background:var(--hover);transform:none}
html[data-tf-page=documentation] .side-link:hover{background:var(--soft);color:var(--ink)}
html[data-tf-page=documentation] :is(nav a,.side-link){color:var(--muted)}
html[data-tf-page=documentation] nav a:hover{background:var(--soft);color:var(--ink)}
html[data-tf-page=documentation] nav a.active{background:var(--hover);color:var(--ink);font-weight:550}
html[data-tf-page=documentation] :is(.context-row,.address,.pager,.on-this-page a){border-color:var(--line)}
html[data-tf-page=documentation] :is(.os-switch,.client-switch){background:var(--code-bg);border-color:var(--line)}
html[data-tf-page=documentation] .note{border-left:2px solid var(--accent)}
html[data-tf-page=documentation] a:hover{color:var(--accent)}
html[data-tf-page=documentation] :is(.muted,.context-current,.context-hint,.context-label,.breadcrumb,.navcaption,.codehead,.summary p){color:var(--muted)}

html[data-tf-page=edu-gift] main{max-width:1184px}
html[data-tf-page=edu-gift] h1{font-size:clamp(32px,4vw,48px);line-height:1.4}
html[data-tf-page=edu-gift] .claim{border-radius:9px;padding:28px;border:1px solid var(--line)}
html[data-tf-page=edu-gift] :is(.wallet-rules,.wallet-example,.domains,.receipt,.directory-results){background:var(--soft);border-color:var(--line);color:var(--ink)}
html[data-tf-page=edu-gift] :is(.receipt>span,.suffix-button){background:var(--surface);border-color:var(--line);color:var(--accent)}
html[data-tf-page=edu-gift] .journey{border-color:var(--line)}
html[data-tf-page=edu-gift] .rules span{font-family:'DM Sans',sans-serif;font-style:normal;color:var(--accent)}

html[data-tf-page=session-studio] header{height:68px;border-bottom:1px solid var(--line)}
html[data-tf-page=session-studio] .shell{min-height:calc(100vh - 68px)}
html[data-tf-page=session-studio] .card{border-radius:9px}
html[data-tf-page=session-studio] :is(.stats-title,.side-note,.input-meta,.format-help,.stats-grid,.empty-state,.privacy,.section-title){color:var(--muted)}
html[data-tf-page=session-studio] :is(.card-head,.drop,.mode,.mode.chosen,.input-footer,.result-toolbar,.table-head){border-color:var(--line)}
html[data-tf-page=session-studio] :is(.drop-icon,.nav-dot,.status,.side-note,.side-footer,.stats-grid,.format-help){background:var(--soft);color:var(--muted)}
html[data-tf-page=session-studio] :is(dialog,.modal,.modal-box,.modal-card){background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:9px}
html[data-tf-page=session-studio] .page-head h1{font-size:29px}
html[data-tf-page=session-studio] .notice{border-left-color:var(--accent)}
html[data-tf-page=session-studio] textarea{background:var(--code-bg)}
html[data-tf-page=session-studio] :is(.input-footer,.result-footer,thead){background:var(--code-bg);color:var(--muted)}
html[data-tf-page=session-studio] :is(dd,.empty h3,.side-note b,.execution strong){color:var(--ink)}
html[data-tf-page=session-studio] :is(dl>div,.mode small,.drop small,.empty p,.empty-steps,.section-title span,.bottom-note,dialog p,dialog li){color:var(--muted)}
html[data-tf-page=session-studio] :is(.empty-art,.empty-art::before,.empty-art::after){background:var(--soft);border-color:var(--line);box-shadow:none;transform:none}
html[data-tf-page=session-studio] .empty-art span{color:var(--accent);transform:none}
html[data-tf-page=session-studio] :is(h2>span,.filter.current,.mode b span){background:var(--hover);color:var(--ink)}

html[data-tf-page=support] .shell{grid-template-columns:260px minmax(0,1fr)}
html[data-tf-page=support] .sidebar{padding:30px 26px}
html[data-tf-page=support] .main{padding-left:48px;padding-right:48px}
html[data-tf-page=support] .topbar{min-height:70px}
html[data-tf-page=support] .welcome h1{font-size:39px;letter-spacing:-.04em}
html[data-tf-page=support] .sidebar h2{font-size:25px;letter-spacing:-.03em}
html[data-tf-page=support] .message.user .message-body{background:var(--soft);border:1px solid var(--line);border-radius:8px}
html[data-tf-page=support] .sources a{background:var(--soft);color:var(--accent);border-color:var(--line)}
html[data-tf-page=support] .composer{background:var(--surface);border-color:var(--line);border-radius:9px}
html[data-tf-page=support] .composer-area{background:var(--bg)}
html[data-tf-page=support] :is(.composer textarea,.composer-footer){background:var(--surface);color:var(--ink)}
html[data-tf-page=support] :is(.ticket-panel,.ticket-card,.staff-login,.human-card,.attachment-list){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-tf-page=support] :is(.send-button,.send){background:var(--ink);color:var(--bg)}
html[data-tf-page=support] .ai-hero{background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:none;color:var(--ink)}
html[data-tf-page=support] .ai-hero::before,html[data-tf-page=support] .ai-hero::after,html[data-tf-page=support] .ai-hero-glow{display:none}
html[data-tf-page=support] .ai-hero h1{color:var(--ink)}
html[data-tf-page=support] .ai-hero h1 em{color:var(--muted)}
html[data-tf-page=support] :is(.ai-hero p,.ai-hero-badge){color:var(--muted)}
html[data-tf-page=support] .ai-hero-spark{color:var(--accent)}
html[data-tf-page=support] :is(.hero-primary,.topbar-cta,.composer button[type=submit]){background:var(--ink);color:var(--bg);box-shadow:none;border:0}
html[data-tf-page=support] :is(.hero-primary,.topbar-cta):hover{background:var(--ink);color:var(--bg);filter:brightness(.9);transform:none}
html[data-tf-page=support] .support-spotlight{background:var(--soft);border:1px solid var(--line);box-shadow:none;color:var(--ink);border-radius:7px}
html[data-tf-page=support] :is(.support-spotlight-copy,.support-spotlight-copy strong){color:var(--ink)}
html[data-tf-page=support] :is(.support-spotlight-copy small,.support-spotlight-arrow){color:var(--muted)}
html[data-tf-page=support] :is(.support-spotlight-icon,.orbit-core){background:var(--soft);color:var(--accent);border:1px solid var(--line);box-shadow:none}
html[data-tf-page=support] .orbit-ring{border-color:var(--line)}
html[data-tf-page=support] .orbit-label{background:var(--code-bg);border-color:var(--line);color:var(--muted)}
#tf-preview-bar details{margin:0;padding:0;border:0;background:transparent;border-radius:0;color:inherit}
#tf-preview-bar summary{margin:0;padding:0;border:0;background:transparent;min-height:0;line-height:1.5;font-size:11px;font-weight:400;color:inherit}

@media(max-width:800px){
 html[data-tf-page=support] .shell{grid-template-columns:1fr}
 html[data-tf-page=support] .sidebar{display:none}
 html[data-tf-page=support] .main{padding:0 22px}
 html[data-tf-page=support] .welcome h1{font-size:32px}
 html[data-tf-page=documentation] :is(.hero h1,.article-title){font-size:29px}
 html[data-tf-page=edu-gift] .claim{padding:22px}
 html[data-tf-page] .tf-standalone-theme{bottom:64px;right:12px}
}
@media(prefers-reduced-motion:reduce){html[data-tf-page]{scroll-behavior:auto}html[data-tf-page] *,html[data-tf-page] *::before,html[data-tf-page] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
