/* AccountManager — Docs CSS (teal theme) */
:root{--docs-primary:#0d9488;--docs-primary-bg:rgba(13,148,136,.08);--docs-primary-border:rgba(13,148,136,.2);--docs-active-bg:rgba(13,148,136,.1);--docs-side-w:260px;--docs-toc-w:220px;--docs-top-h:48px}

/* Shell layout */
.docs-shell{display:grid;grid-template-columns:var(--docs-side-w) 1fr var(--docs-toc-w);min-height:calc(100vh - 68px);margin-top:68px}
.docs-topbar{display:none;position:sticky;top:68px;z-index:200;background:#fff;border-bottom:1px solid #e5e7eb;height:var(--docs-top-h);padding:0 16px;align-items:center;gap:12px}

/* Sidebar */
.docs-side{position:sticky;top:68px;height:calc(100vh - 68px);overflow-y:auto;border-right:1px solid #e5e7eb;background:#fafafa}
.docs-side::-webkit-scrollbar{width:4px}
.docs-side::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:2px}
.docs-side-inner{padding:20px 0 40px}
.docs-search-box{position:relative;margin:0 12px 16px;display:flex;align-items:center}
.docs-search-icon{position:absolute;left:10px;color:#9ca3af;font-size:13px}
#docsSearch{width:100%;padding:8px 36px 8px 32px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:13px;outline:none;background:#fff;color:#1f2937;transition:border-color .15s}
#docsSearch:focus{border-color:var(--docs-primary)}
.docs-search-box kbd{position:absolute;right:8px;font-size:10px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;padding:1px 5px;color:#9ca3af;font-family:inherit}
.docs-search-results{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.1);z-index:300;max-height:280px;overflow-y:auto}
.docs-result-item{display:flex;flex-direction:column;padding:10px 14px;border-bottom:1px solid #f3f4f6;color:#374151;transition:background .1s}
.docs-result-item:last-child{border-bottom:none}
.docs-result-item:hover{background:#f9fafb}
.docs-result-item strong{font-size:13px;font-weight:700;color:#111827;margin-bottom:2px}
.docs-result-item span{font-size:12px;color:#6b7280}
.docs-no-result{padding:12px 14px;font-size:13px;color:#9ca3af}
.docs-group{margin-bottom:4px}
.docs-group-toggle{width:100%;background:none;border:none;cursor:pointer;padding:6px 12px 6px 16px;display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:800;color:#6b7280;text-transform:uppercase;letter-spacing:.07em;transition:color .15s}
.docs-group-toggle:hover{color:var(--docs-primary)}
.docs-group-toggle i{transition:transform .2s;font-size:10px}
.docs-group.open .docs-group-toggle i{transform:rotate(90deg)}
.docs-group-list{display:none;padding-bottom:4px}
.docs-group.open .docs-group-list{display:block}
.docs-group-list li a{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 24px;font-size:13px;color:#4b5563;border-right:3px solid transparent;transition:color .15s,background .15s,border-color .15s;text-decoration:none}
.docs-group-list li a i{font-size:12px;color:#9ca3af;width:14px;flex-shrink:0}
.docs-group-list li a:hover{color:var(--docs-primary);background:var(--docs-primary-bg)}
.docs-group-list li a.active{color:var(--docs-primary);font-weight:700;background:var(--docs-active-bg);border-right-color:var(--docs-primary)}
.docs-group-list li a.active i{color:var(--docs-primary)}

/* Main content */
.docs-main{display:flex;gap:40px;padding:40px 48px 80px;overflow-x:hidden}
.docs-content{flex:1;min-width:0}
.docs-crumb{display:flex;align-items:center;gap:8px;font-size:12px;color:#9ca3af;margin-bottom:24px}
.docs-crumb a{color:#6b7280;transition:color .15s}
.docs-crumb a:hover{color:var(--docs-primary)}
.docs-crumb i{font-size:9px}
.docs-page-header{display:flex;align-items:flex-start;gap:16px;margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid #e5e7eb}
.docs-page-icon{width:48px;height:48px;background:var(--docs-primary-bg);border:1px solid var(--docs-primary-border);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--docs-primary);font-size:20px;flex-shrink:0}
.docs-page-header h1{font-size:1.6rem;font-weight:900;color:#111827;margin-bottom:4px}
.docs-lede{font-size:15px;color:#6b7280;line-height:1.6}

/* Body typography */
.docs-body h2{font-size:1.15rem;font-weight:800;color:#111827;margin:36px 0 14px;padding-bottom:8px;border-bottom:1px solid #f3f4f6}
.docs-body h3{font-size:1rem;font-weight:700;color:#1f2937;margin:24px 0 10px}
.docs-body p{font-size:15px;color:#374151;line-height:1.8;margin-bottom:16px}
.docs-body code{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;padding:1px 6px;font-size:13px;font-family:monospace;color:#d97706}
.docs-body strong{font-weight:700;color:#111827}
.docs-body em{color:#6b7280}
.docs-body table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px}
.docs-body table th{background:#f9fafb;padding:10px 14px;text-align:left;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;border-bottom:2px solid #e5e7eb}
.docs-body table td{padding:10px 14px;border-bottom:1px solid #f3f4f6;color:#374151;vertical-align:top}
.docs-body table tr:hover td{background:#fafafa}
.doc-callout{background:var(--docs-primary-bg);border-left:4px solid var(--docs-primary);border-radius:0 8px 8px 0;padding:14px 18px;font-size:14px;color:#0f766e;margin:20px 0;line-height:1.6}
.doc-callout--warn{background:rgba(245,158,11,.08);border-color:#f59e0b;color:#92400e}
.doc-callout--info{background:rgba(59,130,246,.08);border-color:#3b82f6;color:#1e40af}
.doc-flow p{margin-bottom:12px;padding-left:16px;border-left:2px solid var(--docs-primary-border)}
.doc-list ul{margin:12px 0 20px;padding-left:0;display:flex;flex-direction:column;gap:8px}
.doc-list ul li{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:#374151;line-height:1.6}
.doc-list ul li::before{content:'→';color:var(--docs-primary);flex:none;font-weight:700;font-size:13px}
.doc-faq details{border:1px solid #e5e7eb;border-radius:8px;margin-bottom:8px;overflow:hidden}
.doc-faq summary{padding:14px 16px;font-weight:700;font-size:14px;color:#1f2937;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.doc-faq summary::-webkit-details-marker{display:none}
.doc-faq summary::after{content:'+';font-size:16px;color:#9ca3af;font-weight:400}
.doc-faq details[open] summary::after{content:'−'}
.doc-faq details[open]{background:#fafafa}
.doc-faq details p{padding:0 16px 16px;font-size:14px;color:#4b5563;line-height:1.75;margin:0}

/* Pager */
.docs-pager{display:flex;gap:16px;margin-top:48px;padding-top:24px;border-top:1px solid #e5e7eb}
.docs-pager-btn{display:flex;align-items:center;gap:12px;flex:1;padding:16px 20px;border:1.5px solid #e5e7eb;border-radius:12px;text-decoration:none;color:#374151;transition:border-color .15s,background .15s}
.docs-pager-btn:hover{border-color:var(--docs-primary);background:var(--docs-primary-bg)}
.docs-pager-btn.next{justify-content:flex-end;text-align:right}
.docs-pager-btn small{display:block;font-size:11px;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}
.docs-pager-btn strong{display:block;font-size:14px;font-weight:700;color:#1f2937}
.docs-pager-btn i{color:var(--docs-primary);font-size:16px;flex-shrink:0}

/* TOC */
.docs-toc{width:var(--docs-toc-w);flex-shrink:0}
.docs-toc-inner{position:sticky;top:calc(68px + 40px)}
.docs-toc-label{font-size:11px;font-weight:800;color:#9ca3af;text-transform:uppercase;letter-spacing:.07em;margin-bottom:12px}
.docs-toc ul{list-style:none;padding:0;border-left:2px solid #e5e7eb}
.docs-toc ul li{margin-bottom:4px}
.docs-toc-link{display:block;padding:4px 0 4px 14px;font-size:13px;color:#6b7280;text-decoration:none;transition:color .15s,border-color .15s;border-left:2px solid transparent;margin-left:-2px}
.docs-toc-link:hover,.docs-toc-link.active{color:var(--docs-primary);border-left-color:var(--docs-primary)}

/* Theme toggle */
.docs-theme-btn{background:none;border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px;color:#6b7280;cursor:pointer;font-size:14px;transition:background .15s,color .15s}
.docs-theme-btn:hover{background:#f3f4f6}
.docs-menu-btn{background:none;border:none;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#374151;padding:4px 8px}

/* Dark theme */
[data-docs-theme="dark"] body,[data-docs-theme="dark"]{background:#0a1a0f;color:#e5e7eb}
[data-docs-theme="dark"] .docs-side{background:#0d201a;border-right-color:#1f3a2e}
[data-docs-theme="dark"] .docs-group-list li a{color:#9ca3af}
[data-docs-theme="dark"] .docs-group-list li a:hover,[data-docs-theme="dark"] .docs-group-list li a.active{background:rgba(13,148,136,.15);color:#2dd4bf}
[data-docs-theme="dark"] #docsSearch{background:#0d201a;border-color:#1f3a2e;color:#e5e7eb}
[data-docs-theme="dark"] .docs-search-results{background:#0d201a;border-color:#1f3a2e}
[data-docs-theme="dark"] .docs-result-item{border-color:#1f3a2e}
[data-docs-theme="dark"] .docs-result-item:hover{background:#112d21}
[data-docs-theme="dark"] .docs-body h2{color:#f3f4f6;border-color:#1f3a2e}
[data-docs-theme="dark"] .docs-body h3{color:#e5e7eb}
[data-docs-theme="dark"] .docs-body p{color:#9ca3af}
[data-docs-theme="dark"] .docs-body code{background:#112d21;border-color:#1f3a2e;color:#fbbf24}
[data-docs-theme="dark"] .docs-body strong{color:#f3f4f6}
[data-docs-theme="dark"] .docs-body table th{background:#112d21;color:#9ca3af;border-color:#1f3a2e}
[data-docs-theme="dark"] .docs-body table td{border-color:#1f3a2e;color:#9ca3af}
[data-docs-theme="dark"] .docs-body table tr:hover td{background:#112d21}
[data-docs-theme="dark"] .doc-callout{background:rgba(13,148,136,.12);color:#2dd4bf}
[data-docs-theme="dark"] .doc-list ul li{color:#9ca3af}
[data-docs-theme="dark"] .doc-flow p{border-color:rgba(13,148,136,.25)}
[data-docs-theme="dark"] .docs-pager-btn{border-color:#1f3a2e;color:#9ca3af}
[data-docs-theme="dark"] .docs-pager-btn strong{color:#e5e7eb}
[data-docs-theme="dark"] .docs-pager-btn:hover{background:rgba(13,148,136,.12)}
[data-docs-theme="dark"] .docs-toc ul{border-color:#1f3a2e}
[data-docs-theme="dark"] .docs-toc-link{color:#6b7280}
[data-docs-theme="dark"] .docs-page-header{border-color:#1f3a2e}
[data-docs-theme="dark"] .docs-page-header h1{color:#f3f4f6}
[data-docs-theme="dark"] .docs-lede{color:#9ca3af}
[data-docs-theme="dark"] .docs-crumb{color:#6b7280}
[data-docs-theme="dark"] .docs-crumb a{color:#6b7280}
[data-docs-theme="dark"] .navbar{background:rgba(10,26,15,.98)}
[data-docs-theme="dark"] .doc-faq details{border-color:#1f3a2e}
[data-docs-theme="dark"] .doc-faq summary{color:#e5e7eb}
[data-docs-theme="dark"] .doc-faq details[open]{background:#0d201a}
[data-docs-theme="dark"] .doc-faq details p{color:#9ca3af}
[data-docs-theme="dark"] .docs-theme-btn{border-color:#1f3a2e;color:#9ca3af}

@media(prefers-color-scheme:dark){
  [data-docs-theme="auto"] body,[data-docs-theme="auto"]{background:#0a1a0f;color:#e5e7eb}
  [data-docs-theme="auto"] .docs-side{background:#0d201a;border-right-color:#1f3a2e}
  [data-docs-theme="auto"] .docs-group-list li a{color:#9ca3af}
  [data-docs-theme="auto"] .docs-group-list li a.active{background:rgba(13,148,136,.15);color:#2dd4bf}
  [data-docs-theme="auto"] #docsSearch{background:#0d201a;border-color:#1f3a2e;color:#e5e7eb}
  [data-docs-theme="auto"] .docs-body h2{color:#f3f4f6;border-color:#1f3a2e}
  [data-docs-theme="auto"] .docs-body p{color:#9ca3af}
  [data-docs-theme="auto"] .docs-body table th{background:#112d21;border-color:#1f3a2e}
  [data-docs-theme="auto"] .docs-body table td{border-color:#1f3a2e;color:#9ca3af}
  [data-docs-theme="auto"] .docs-pager-btn{border-color:#1f3a2e}
  [data-docs-theme="auto"] .docs-pager-btn strong{color:#e5e7eb}
  [data-docs-theme="auto"] .docs-page-header{border-color:#1f3a2e}
  [data-docs-theme="auto"] .docs-page-header h1{color:#f3f4f6}
  [data-docs-theme="auto"] .docs-lede{color:#9ca3af}
  [data-docs-theme="auto"] .doc-faq details{border-color:#1f3a2e}
  [data-docs-theme="auto"] .doc-faq summary{color:#e5e7eb}
  [data-docs-theme="auto"] .doc-faq details p{color:#9ca3af}
}

/* Responsive */
@media(max-width:1100px){
  .docs-shell{grid-template-columns:var(--docs-side-w) 1fr}
  .docs-toc{display:none}
  .docs-main{padding:32px 32px 64px}
}
@media(max-width:768px){
  .docs-shell{grid-template-columns:1fr;margin-top:68px}
  .docs-topbar{display:flex}
  .docs-side{position:fixed;top:calc(68px + var(--docs-top-h));bottom:0;left:-var(--docs-side-w);width:var(--docs-side-w);z-index:250;transform:translateX(-100%);transition:transform .25s;box-shadow:4px 0 20px rgba(0,0,0,.1)}
  .docs-side.open{transform:translateX(0)}
  .docs-main{padding:16px 16px 64px;flex-direction:column}
  .docs-body table{font-size:12px;overflow-x:auto;display:block}
}
