.studio-help { color:var(--studio-text,#172033); background:var(--studio-surface,#fff); }
.page-wrap:has([data-help-root]) { display:block; padding:88px 24px 24px; min-height:auto; }
.studio-help-content { min-width:0; }
.studio-help-interactive { width:100%; max-width:none; }
.studio-help-page-header { padding:24px 28px; border-bottom:1px solid var(--studio-border,#d1d5db); text-align:left; }
.studio-help-page-header h1 { margin:0 0 6px; font-size:28px; line-height:1.3; font-weight:700; }
.studio-help-page-header p { margin:0; color:var(--studio-muted,#526078); }
.studio-help-interactive > .studio-help-layout { display:grid; grid-template-columns:380px minmax(0,1fr); align-items:start; }
.studio-help-interactive .studio-help-sidebar { position:sticky; top:16px; width:auto; min-width:0; max-height:calc(100dvh - 32px); padding:20px; border-color:var(--studio-border,#d1d5db); border-radius:0 0 0 12px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; }
.studio-help-interactive .studio-help-content { padding:24px; text-align:left; font-size:15px; line-height:1.7; }
.studio-help-interactive .studio-help-section-body :is(p,ul,ol) { max-width:none; }
.studio-help-interactive .studio-help-section-body table { display:block; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; border-collapse:collapse; font-size:14px; }
.studio-help-interactive .studio-help-section-body table { overflow-wrap:normal; }
.studio-help-interactive .studio-help-section-body :is(td,th) { min-width:160px; }
.studio-help-interactive [data-help-toc] a { display:block; margin:0!important; padding:10px 8px; font-size:14px!important; line-height:1.45; font-weight:600; border-radius:7px; text-decoration:none; overflow-wrap:anywhere; }
.studio-help-interactive [data-help-toc] a:hover { background:var(--studio-raised,#e5e7eb); text-decoration:none; }
.studio-help-interactive [data-help-toc] a[aria-current=location] { color:var(--studio-link,#2563eb); text-decoration:none; }
.studio-help-toc-title { margin:0 0 8px; padding:10px 0; font-size:16px; line-height:1.5; font-weight:700; }
.studio-help-interactive [data-help-toc] .ml-4 { margin-left:0; }
.studio-help-toc-row { display:flex; align-items:center; gap:4px; }
.studio-help-toc-row > a { flex:1; min-width:0; }
.studio-help-toc-row > button { display:flex; align-items:center; justify-content:center; flex:0 0 36px; height:36px; padding:0; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--studio-muted,#526078); cursor:pointer; }
.studio-help-toc-row > button:hover { border-color:var(--studio-border,#d1d5db); background:var(--studio-surface,#fff); }
.studio-help-toc-row > button i { font-size:11px; transition:transform .15s; transform:rotate(-90deg); }
.studio-help-toc-row > button[aria-expanded=true] i { transform:rotate(0); }
.studio-help-interactive [data-help-toc-group-body] { margin:0 0 6px 8px!important; padding-left:10px; border-left:1px solid var(--studio-border,#d1d5db); }
.studio-help-interactive [data-help-toc-group-body] a { font-size:13px!important; font-weight:400; padding-top:8px; padding-bottom:8px; }
@media(max-width:1099px) {
    .studio-help-interactive > .studio-help-layout { grid-template-columns:minmax(0,1fr); }
    .studio-help-interactive .studio-help-sidebar { position:static; top:auto; width:100%; max-height:none; border-right:0; border-radius:0; padding:16px 20px; }
    .studio-help-interactive .studio-help-search { margin-bottom:8px; }
    .studio-help-interactive [data-help-toc] { max-height:min(55dvh,440px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:8px 2px; }
    .studio-help-interactive [data-help-toc] a { min-height:44px; }
    .studio-help-toc-row > button { flex-basis:44px; height:44px; }
}
@media(max-width:600px) {
    .studio-help-page-header { padding:18px 16px; }
    .studio-help-page-header h1 { font-size:24px; }
    .studio-help-interactive .studio-help-sidebar { padding:14px 16px; }
    .studio-help-interactive .studio-help-content { padding:16px 12px; font-size:14px; }
    .studio-help-interactive .studio-help-section-tools { display:grid; grid-template-columns:1fr 1fr; }
    .studio-help-interactive .studio-help-section-body { padding:16px 14px; }
    .studio-help-interactive .studio-help-section-title { overflow-wrap:anywhere; }
}
.studio-help-section-tools { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-bottom:16px; }
.studio-help-section-tools button { min-height:40px; padding:8px 12px; border:1px solid var(--studio-border,#d1d5db); border-radius:8px; background:var(--studio-field,#f9fafb); color:var(--studio-text,#172033); font-size:13px; font-weight:600; cursor:pointer; }
.studio-help-section { margin-bottom:12px; border:1px solid var(--studio-border,#d1d5db); border-radius:12px; background:var(--studio-surface,#fff); scroll-margin-top:16px; }
.studio-help-section > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:60px; padding:16px 20px; border-radius:12px; list-style:none; cursor:pointer; text-align:left; scroll-margin-top:16px; }
.studio-help-section > summary::-webkit-details-marker { display:none; }
.studio-help-section > summary::marker { content:''; }
.studio-help-section > summary:hover { background:var(--studio-field,#f9fafb); }
.studio-help-section-title { margin:0!important; font-size:19px!important; line-height:1.4; font-weight:700; color:var(--studio-text,#172033); }
.studio-help-section-chevron { flex-shrink:0; font-size:12px; color:var(--studio-muted,#526078); transition:transform .15s; transform:rotate(-90deg); }
.studio-help-section[open] > summary { border-bottom:1px solid var(--studio-border,#d1d5db); border-radius:12px 12px 0 0; }
.studio-help-section[open] > summary .studio-help-section-chevron { transform:rotate(0); }
.studio-help-section[data-help-current] { border-color:var(--studio-link,#2563eb); }
.studio-help [data-help-toc] a[aria-current=location] { color:var(--studio-link,#2563eb); text-decoration:none; }
.studio-help-section-body { min-width:0; padding:20px; overflow-wrap:anywhere; }
.studio-help-section-body > hr:last-child { display:none; }
.studio-help-section-tools button:focus-visible,.studio-help-section > summary:focus-visible { outline:2px solid var(--studio-link,#2563eb); outline-offset:3px; }
.studio-help-content :is(h2,h3,h4,h5)[id] { scroll-margin-top:20px; }
@media(max-width:767px) { .studio-help-section > summary { padding:14px; } .studio-help-section-title { font-size:17px!important; } .studio-help-section-body { padding:16px; } .studio-help-section-tools button { min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .studio-help-section-chevron { transition:none; } }
.studio-help-search { margin-bottom:24px; color:var(--studio-text,#172033); text-align:left; }
.studio-help-search label { display:block; margin-bottom:8px; font-weight:700; font-size:16px; }
.studio-help-search-controls { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; }
.studio-help-search input { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--studio-border,#d1d5db); border-radius:8px; background:var(--studio-surface,#fff); color:var(--studio-text,#172033); font:inherit; text-align:left; }
.studio-help-search button { min-height:44px; border-radius:8px; padding:8px 12px; cursor:pointer; font:inherit; font-weight:600; }
.studio-help-search-submit { border:1px solid transparent; background:#2563eb; color:#fff; }
.studio-help-search-submit:hover { background:#1d4ed8; }
.studio-help-search-clear { grid-column:1 / -1; display:flex; align-items:center; justify-content:center; gap:8px; width:100%; margin:0; background:var(--studio-field,#f9fafb); color:var(--studio-text,#172033); border:1px solid var(--studio-border,#d1d5db); }
.studio-help-search-clear:hover { background:var(--studio-raised,#e5e7eb); }
.studio-help-search :is(input,button,a):focus-visible { outline:2px solid var(--studio-link,#2563eb); outline-offset:3px; }
.studio-help-search-status { margin:12px 0; color:var(--studio-muted,#526078); font-size:13px; }
.studio-help-search-status:empty { display:none; }
.studio-help-results { display:grid; gap:10px; margin:12px 0 0; padding:0; list-style:none; }
.studio-help-results li { min-width:0; }
.studio-help-results a { display:block; padding:12px 14px; border:1px solid var(--studio-border,#d1d5db); border-radius:10px; background:var(--studio-surface,#fff); color:var(--studio-text,#172033); text-decoration:none; overflow-wrap:anywhere; }
.studio-help-results a:hover { border-color:var(--studio-link,#2563eb); background:var(--studio-field,#f9fafb); }
.studio-help-results strong { display:block; color:var(--studio-link,#2563eb); font-size:14px; line-height:1.5; }
.studio-help-result-section { display:block; margin-bottom:4px; color:var(--studio-muted,#526078); font-size:12px; }
.studio-help-result-excerpt { display:block; margin-top:7px; color:var(--studio-muted,#526078); font-size:13px; line-height:1.6; }
.studio-help-results mark { padding:0 1px; border-radius:2px; background:#fef08a; color:#422006; }
.studio-help [hidden] { display:none!important; }
@media(max-width:767px) { .studio-help-search input { font-size:16px; } }

/* Public manuals inherit the signup shell's palette; Studio keeps its own theme. */
.studio-auth-shell .studio-help{
 --studio-text:var(--text);--studio-muted:var(--text-dim);--studio-surface:var(--bg2);
 --studio-field:var(--bg3);--studio-raised:var(--bg4);--studio-border:var(--border);--studio-link:var(--gold);
 font-family:'DM Sans',sans-serif;border:1px solid var(--border);
}
.studio-auth-shell .studio-help-page-header h1{font-family:'Bebas Neue','Arial Narrow',sans-serif;font-size:40px;line-height:1.1;font-weight:400;letter-spacing:1px}
.studio-auth-shell .studio-help .studio-help-sidebar{background:var(--bg3)}
.studio-auth-shell .studio-help .bg-white{background:var(--bg2)}
.studio-auth-shell .studio-help .bg-gray-50{background:var(--bg3)}
.studio-auth-shell .studio-help :is(.text-gray-600,.text-gray-700){color:var(--text-dim)}
.studio-auth-shell .studio-help .text-blue-500{color:var(--gold)}
.studio-auth-shell .studio-help :is(table,th,td,.border-gray-200){border-color:var(--border)}
.studio-auth-shell .studio-help-section-body a{color:var(--gold);text-underline-offset:3px}
.studio-auth-shell .studio-help-section-body a:hover{color:var(--gold-light)}
.studio-auth-shell .studio-help-search-submit{background:var(--red)}
.studio-auth-shell .studio-help-search-submit:hover{background:var(--red-hot)}
.studio-auth-shell .studio-help-results mark{background:var(--glow);color:var(--gold-light)}
