:root {
  --paper: #f7f9fb; --background: #f7f9fb; --card: #ffffff; --surface: #f1f5f9; --surface-hover: #e8eef5;
  --foreground: #101725; --muted-foreground: #53616e; --border: #dde4ea; --border-solid: #b7c4d0;
  --accent: #225cc5; --accent-soft: #e6eefb; --glass: rgba(255, 255, 255, 0.86);
  --shadow-bar: 0 2px 18px rgba(16, 23, 37, 0.06); --shadow-card: 0 12px 36px rgba(16, 23, 37, 0.07);
  --font-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 18px; --radius-pill: 999px;
  --header-h: 76px; --sidebar-w: 244px; --rail-w: 208px; color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0d0d0d; --background: #0d0d0d; --card: #161616; --surface: #1e1e1e; --surface-hover: #282828;
  --foreground: #f3f4f6; --muted-foreground: #a1a1aa; --border: rgba(255, 255, 255, 0.1); --border-solid: rgba(255, 255, 255, 0.22);
  --accent: #8cb8ff; --accent-soft: rgba(140, 184, 255, 0.14); --glass: rgba(22, 22, 22, 0.88);
  --shadow-bar: 0 4px 22px rgba(0, 0, 0, 0.42); --shadow-card: 0 16px 46px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; padding: 0; }
body { background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.mark-dark { display: none; }
[data-theme="dark"] .mark-light { display: none; }
[data-theme="dark"] .mark-dark { display: block; }

.app { display: flex; flex-direction: column; min-height: 100vh; position: relative; isolation: isolate; }
.app::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 400px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 80% 68% at 50% -12%, rgba(122, 179, 240, 0.32) 0%, rgba(196, 224, 250, 0.14) 46%, transparent 76%), linear-gradient(180deg, rgba(169, 206, 245, 0.22) 0%, transparent 62%); }
[data-theme="dark"] .app::before { background: radial-gradient(ellipse 72% 60% at 50% -10%, rgba(255, 255, 255, 0.045) 0%, transparent 72%); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 90; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--foreground); color: var(--background); font-size: 13px; font-weight: 600; transform: translateY(-220%); }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; top: 0; flex-shrink: 0; padding: 12px 20px; z-index: 40; }
.topbar-bar { position: relative; max-width: 1320px; margin: 0 auto; min-height: 52px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-bar); display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 12px; gap: 8px; }
.topbar-start, .topbar-end { display: flex; align-items: center; gap: 4px; min-width: 0; }
.topbar-nav { display: none; align-items: center; gap: 2px; }
.topbar-link { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); transition: background-color 130ms ease, color 130ms ease; }
.topbar-link:hover { color: var(--foreground); background: var(--surface); }
.topbar-link.is-active { color: var(--foreground); font-weight: 600; background: var(--surface); }

.bar-icon-btn, .topbar-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius-pill); color: var(--muted-foreground); transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease; }
.bar-icon-btn:hover { background: var(--surface); color: var(--foreground); }
.topbar-search-btn { border: 1px solid var(--border); background: var(--card); }
.topbar-search-btn:hover { border-color: var(--border-solid); background: var(--surface); color: var(--foreground); transform: translateY(-0.5px); }
.bar-icon-btn svg, .topbar-search-btn svg { width: 16px; height: 16px; }
.icon-moon { display: block; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

.brand { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-pill); transition: background-color 130ms ease; }
.brand:hover { background: var(--surface); }
.brand-mark { display: block; width: 26px; height: 26px; object-fit: contain; }
.brand-mark.mark-dark { display: none; }
[data-theme="dark"] .brand-mark.mark-light { display: none; }
[data-theme="dark"] .brand-mark.mark-dark { display: block; }

.topbar-signin { display: none; align-items: center; height: 34px; padding: 0 11px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); transition: color 130ms ease, background-color 130ms ease; }
.topbar-signin:hover { color: var(--foreground); background: var(--surface); }
.topbar-cta { display: none; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--foreground); color: var(--background); font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity 130ms ease; }
.topbar-cta:hover { opacity: 0.88; }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 19px; padding: 0 5px; border: 1px solid var(--border); border-radius: 5px; background: var(--card); font-family: var(--font-sans); font-size: 11px; font-weight: 600; color: var(--muted-foreground); line-height: 1; }

.shell { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1320px; width: 100%; margin: 0 auto; }
.sidebar { position: fixed; top: var(--header-h); bottom: 0; left: 0; width: 280px; padding: 14px 14px 20px; background: var(--background); border-right: 1px solid var(--border); overflow-y: auto; z-index: 50; display: flex; flex-direction: column; gap: 16px; transform: translateX(-100%); visibility: hidden; pointer-events: none; transition: transform 200ms ease, visibility 200ms ease; }
.sidebar.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.scrim { position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: rgba(16, 23, 37, 0.36); backdrop-filter: blur(2px); }
.sidebar-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.sidebar-pill { height: 30px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); transition: background-color 120ms ease, color 120ms ease; }
.sidebar-pill[aria-pressed="true"] { background: var(--card); color: var(--foreground); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 23, 37, 0.08); }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.nav-section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 5px; font-size: 11.5px; font-weight: 600; color: var(--muted-foreground); letter-spacing: 0.01em; }
.nav-section-count { font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.nav-list { display: flex; flex-direction: column; gap: 1px; }
.nav-link { display: flex; align-items: center; min-height: 34px; padding: 5px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); transition: background-color 110ms ease, color 110ms ease; }
.nav-link:hover { color: var(--foreground); background: var(--surface); }
.nav-link[aria-current="page"] { color: var(--foreground); background: var(--card); border: 1px solid var(--border); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 23, 37, 0.04); }
.sidebar-mobile-site { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.sidebar-mobile-site a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); font-size: 13px; font-weight: 500; }
.sidebar-whats-new { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); font-size: 12.5px; font-weight: 500; transition: border-color 120ms ease; }
.sidebar-whats-new:hover { border-color: var(--border-solid); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; margin-right: 7px; }

.main { min-width: 0; }
.article { max-width: 760px; margin: 0 auto; padding: 18px 18px 64px; }
.tool-page .article { max-width: 840px; width: 100%; padding-top: 24px; }
.article-head-copy { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-foreground); margin-bottom: 12px; }
.breadcrumbs a:hover { color: var(--foreground); }
.docs-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--card); font-size: 12px; font-weight: 600; color: var(--foreground); letter-spacing: -0.01em; box-shadow: 0 1px 2px rgba(16, 23, 37, 0.04); }
.crumb-current { color: var(--foreground); font-weight: 500; }
.article-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.page-title { margin: 0; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; }
.page-description { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted-foreground); max-width: 620px; }
.copy-split { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--card); overflow: hidden; flex-shrink: 0; }
.copy-split-btn, .copy-split-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; font-size: 12.5px; font-weight: 500; color: var(--foreground); transition: background-color 120ms ease; }
.copy-split-btn:hover, .copy-split-link:hover { background: var(--surface); }
.copy-split-link { border-left: 1px solid var(--border); padding: 0 10px; color: var(--muted-foreground); }
.copy-split svg { width: 13px; height: 13px; }

.ai-search-stage { margin-top: 22px; }
.ai-search-card { width: 100%; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
.ai-search-input-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 14px; border-bottom: 1px solid var(--border); }
.ai-search-input-row svg { width: 16px; height: 16px; color: var(--muted-foreground); flex-shrink: 0; }
.ai-search-input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; font-size: 15px; line-height: 1.4; color: var(--foreground); outline: none; }
.ai-search-input::placeholder { color: var(--muted-foreground); }
.ai-search-clear { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); }
.ai-search-clear:hover { background: var(--surface); color: var(--foreground); }
.ai-ask-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--card); text-align: left; font-size: 13.5px; transition: background-color 100ms ease; }
.ai-ask-row:hover, .ai-ask-row[aria-selected="true"] { background: var(--surface); }
.ai-ask-left { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.ai-ora-mark { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.ai-answer-box { margin: 10px 12px 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.ai-answer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ai-answer-title { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.ai-answer-sep { color: var(--muted-foreground); }
.ai-answer-sources { font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.ai-answer-tools { display: inline-flex; align-items: center; gap: 2px; }
.ai-answer-icon-btn { width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); }
.ai-answer-icon-btn:hover, .ai-answer-icon-btn[data-copied="true"] { background: var(--surface-hover); color: var(--accent); }
.ai-answer-body { margin: 0; font-size: 14px; line-height: 1.62; color: var(--foreground); }
.ai-answer-body code { font-family: var(--font-mono); font-size: 12.5px; padding: 1px 6px; border-radius: 5px; background: var(--card); border: 1px solid var(--border); }
.ai-cite { display: inline; padding: 1px 6px; margin: 0 2px; border-radius: 5px; background: var(--card); border: 1px solid var(--border); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--foreground); vertical-align: 1px; transition: background-color 110ms ease, border-color 110ms ease, color 110ms ease; }
.ai-cite:hover, .ai-cite.is-hot { background: var(--accent); border-color: var(--accent); color: #ffffff; }
[data-theme="dark"] .ai-cite:hover, [data-theme="dark"] .ai-cite.is-hot { color: #0d0d0d; }

.ai-results-body { max-height: 296px; overflow-y: auto; padding: 6px 6px 8px; }
.ai-group-label { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--muted-foreground); }
.ai-result-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 10px; width: 100%; text-align: left; transition: background-color 80ms ease; }
.ai-result-row:hover, .ai-result-row[aria-selected="true"], .ai-result-row.is-cited-hot { background: var(--surface); }
.ai-result-row.is-cited-hot { box-shadow: inset 0 0 0 1px var(--accent); }
.ai-result-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; }
.ai-result-icon { width: 15px; height: 15px; margin-top: 3px; color: var(--muted-foreground); flex-shrink: 0; }
.ai-result-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ai-result-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--foreground); }
.ai-result-title mark { background: var(--accent-soft); color: var(--foreground); border-radius: 3px; padding: 0 2px; }
.ai-result-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ai-result-meta { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; margin-top: 2px; font-size: 11.5px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.ai-cite-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--foreground); }
.ai-result-row.is-cited-hot .ai-cite-badge { background: var(--accent); border-color: var(--accent); color: #ffffff; }
[data-theme="dark"] .ai-result-row.is-cited-hot .ai-cite-badge { color: #0d0d0d; }
.ai-search-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--muted-foreground); }
.ai-footer-hints { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-footer-hint { display: inline-flex; align-items: center; gap: 4px; }
.ai-footer-model { font-weight: 500; color: var(--muted-foreground); }

.search-modal-backdrop { position: fixed; inset: 0; z-index: 80; padding: 10vh 16px 24px; background: rgba(16, 23, 37, 0.44); backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; }
.search-modal-dialog { width: 100%; max-width: 640px; }

.page-body { margin-top: 28px; }
.page-body > * + * { margin-top: 16px; }
.page-body > .doc-section + .doc-section { margin-top: 34px; }
.doc-section > * + * { margin-top: 14px; }
.doc-heading-row { position: relative; display: flex; align-items: center; gap: 8px; }
.doc-heading { position: relative; scroll-margin-top: 84px; margin: 0; }
h2.doc-heading { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; padding-top: 22px; border-top: 1px solid var(--border); }
.doc-section:first-child > h2.doc-heading, .doc-section:first-child > .doc-heading-row > h2.doc-heading { border-top: 0; padding-top: 0; }
h3.doc-heading { font-size: 16.5px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.doc-heading-copy { position: absolute; left: -24px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted-foreground); opacity: 0; visibility: hidden; }
.doc-heading:hover .doc-heading-copy, .doc-heading-row:hover .doc-heading-copy, .doc-heading-copy:focus-visible { opacity: 1; visibility: visible; }
.doc-p, .doc-paragraph, .doc-list { margin: 0; font-size: 15.5px; line-height: 1.7; }
.doc-strong { font-weight: 600; color: var(--foreground); }
.doc-muted { color: var(--muted-foreground); font-size: 14.5px; line-height: 1.6; }
.doc-list { padding-left: 20px; list-style: disc; }
.doc-list li + li { margin-top: 6px; }
.doc-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-inline-code { font-family: var(--font-mono); font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.doc-table th, .doc-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table th { font-size: 12px; font-weight: 600; color: var(--muted-foreground); background: var(--surface); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-code { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.doc-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.doc-code-copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 11.5px; font-weight: 500; color: var(--muted-foreground); }
.doc-code-copy:hover { color: var(--foreground); }
.doc-cards { display: grid; gap: 12px; }
.doc-card { display: block; padding: 15px 17px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); transition: border-color 140ms ease, transform 140ms ease; }
.doc-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.doc-card-title { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.doc-card-summary { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted-foreground); line-height: 1.5; }
.doc-callout { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.doc-callout-warning { border-color: rgba(217, 119, 6, 0.35); background: rgba(254, 243, 199, 0.25); }
[data-theme="dark"] .doc-callout-warning { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.doc-overline { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 6px; }
.doc-callout-title { margin: 6px 0 0; font-weight: 600; }
.doc-callout-body { margin: 6px 0 0; color: var(--muted-foreground); font-size: 14.5px; }
.doc-steps { counter-reset: step; display: grid; gap: 18px; }
.doc-step { counter-increment: step; position: relative; padding-left: 38px; }
.doc-step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.doc-step-title { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; }
.doc-step-body { display: inline; color: var(--muted-foreground); font-size: 15px; line-height: 1.65; }
.doc-family-list, .tool-list, .tool-arguments { display: grid; gap: 10px; margin-top: 16px; }
.doc-family-row, .tool, .tool-argument { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.tool-argument { display: flex; flex-direction: column; gap: 6px; }
.tool-argument-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tool-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--muted-foreground); }
.tool-tag-neutral { background: var(--surface); color: var(--muted-foreground); border-color: var(--border); }
.tool-tag-read { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.tool-tag-write { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.tool-tag-consent { color: #9a3412; background: #ffedd5; border-color: #fed7aa; }
[data-theme="dark"] .tool-tag-read { color: #86efac; background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.3); }
[data-theme="dark"] .tool-tag-write { color: #93c5fd; background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); }
[data-theme="dark"] .tool-tag-consent { color: #fdba74; background: rgba(249, 115, 22, 0.15); border-color: rgba(249, 115, 22, 0.3); }
.tool-answer { padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); margin: 16px 0; }
.tool-browser { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.tool-search-row { display: flex; flex-direction: column; gap: 6px; }
.tool-search { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); font-size: 14.5px; }
.tool-search-hint { margin: 0; font-size: 12.5px; color: var(--muted-foreground); }
.tool-families { display: flex; flex-direction: column; gap: 22px; }
.tool-family { margin-top: 8px; }
.tool-empty { margin: 8px 0; padding: 18px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.tool-details { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 12px 16px; }
.tool-summary { cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.tool-summary-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tool-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.tool-limits { padding-left: 20px; list-style: disc; margin: 0; display: grid; gap: 4px; font-size: 14px; color: var(--muted-foreground); }
.doc-faq { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc-faq h2 { margin: 0 0 14px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.doc-faq dl { margin: 0; display: grid; gap: 14px; }
.doc-faq dt { font-size: 15px; font-weight: 600; }
.doc-faq dd { margin: 4px 0 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }
.pager { display: grid; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.pager-card { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); transition: border-color 140ms ease; }
.pager-card:hover { border-color: var(--border-solid); }
.pager-card.next { text-align: right; }
.pager-label { display: block; font-size: 12px; color: var(--muted-foreground); }
.pager-title { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 600; }
.footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-foreground); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-mark { width: 18px; height: 18px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-links a:hover { color: var(--foreground); }

.rail { display: none; }
.rail-title { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--foreground); }
.rail-list { border-left: 1px solid var(--border); }
.rail-link { display: block; margin-left: -1px; padding: 4px 0 4px 12px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.4; color: var(--muted-foreground); transition: color 120ms ease, border-color 120ms ease; }
.rail-link.level-3 { padding-left: 22px; }
.rail-link:hover { color: var(--foreground); }
.rail-link[aria-current="true"] { border-color: var(--foreground); color: var(--foreground); font-weight: 500; }
.rail-meta { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted-foreground); }
.rail-meta a:hover, .rail-meta button:hover { color: var(--foreground); }
.rail-meta a, .rail-meta button { display: inline-flex; align-items: center; gap: 6px; text-align: left; }

@media (min-width: 640px) {
  .doc-cards, .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { padding: 20px 28px 64px; }
  .topbar-cta { display: inline-flex; }
}
@media (min-width: 860px) {
  .topbar-nav { display: flex; }
  .topbar-signin { display: inline-flex; }
}
@media (max-width: 639px) {
  .topbar { padding: 10px 12px; }
  .topbar-bar { padding: 4px 6px; min-height: 52px; }
  .bar-icon-btn, .topbar-search-btn { width: 44px; height: 44px; }
  .brand { width: 44px; height: 44px; }
  .copy-split-btn, .copy-split-link { min-height: 44px; min-width: 44px; justify-content: center; }
  .ai-search-input { min-height: 44px; }
  .ai-search-clear, .ai-answer-icon-btn { width: 44px; height: 44px; }
  .ai-footer-hints .ai-footer-hide-sm { display: none; }
  .doc-code-copy { min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .footer-links a { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 6px; }
  .sidebar-pill, .nav-link, .sidebar-whats-new { min-height: 44px; }
}
@media (min-width: 1024px) {
  .menu-button, .scrim, .sidebar-mobile-site { display: none; }
  .shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rail-w); column-gap: 28px; padding: 0 24px; align-items: start; }
  .sidebar { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); width: auto; transform: none; visibility: visible; pointer-events: auto; transition: none; border-right: 0; background: transparent; padding: 16px 0 24px; }
  .article { padding: 16px 8px 72px; }
  .rail { display: block; position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
