:root {
  --ink: #14202b;
  --muted: #62707e;
  --line: #dce3e9;
  --line-soft: #eaf0f4;
  --paper: #ffffff;
  --surface: #f5f8fa;
  --navy: #142537;
  --blue: #1677ff;
  --blue-dark: #075dc7;
  --blue-soft: #edf5ff;
  --cyan: #24b5c4;
  --green: #18a36b;
  --amber: #d97706;
  --sidebar: 294px;
  --content: 980px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
code, pre, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { background: #eef3f6; color: #244664; border-radius: 5px; padding: 0.14em 0.38em; font-size: 0.91em; }
p { margin: 0 0 20px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; line-height: 1.28; }
h2 { font-size: 32px; margin: 0; }
h3 { font-size: 21px; margin: 34px 0 13px; }
ul { padding-left: 22px; }

.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; background: var(--paper); padding: 8px 14px; border: 2px solid var(--blue); border-radius: 8px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: #f8fafb;
  border-right: 1px solid var(--line);
}
.brand { height: 84px; padding: 20px 24px 16px; flex: 0 0 auto; }
.brand a, .mobile-brand { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px;
  color: white; font-weight: 800; font-size: 18px;
  background: linear-gradient(145deg, var(--blue), #2948d9);
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.22);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { margin-top: 5px; color: #7a8793; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.search-box { position: relative; display: flex; align-items: center; margin: 0 18px 12px; }
.search-box svg { position: absolute; left: 12px; width: 16px; fill: none; stroke: #7a8793; stroke-width: 1.8; }
.search-box input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink);
  outline: none; padding: 10px 34px 10px 36px; font: inherit; font-size: 13px;
}
.search-box input:focus { border-color: #9cc6ff; box-shadow: 0 0 0 3px var(--blue-soft); }
.search-box kbd { position: absolute; right: 10px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; color: #82909b; background: #f7f9fa; font-size: 10px; padding: 0 5px; }
.sidebar-sdk-control { flex: 0 0 auto; padding: 3px 18px 5px; }
.sidebar-sdk-control > p { margin: 0 6px 6px; color: #98a3ad; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.sidebar-sdk-control .sdk-switch { width: 100%; }
.sidebar-sdk-control .sdk-switch button { flex: 1; padding-right: 6px; padding-left: 6px; }
.docs-nav { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 14px 24px; scrollbar-width: thin; }
.nav-group { margin-top: 18px; }
.nav-group p { margin: 0 10px 6px; color: #98a3ad; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.nav-group a { display: block; position: relative; padding: 7px 10px; border-radius: 7px; color: #53616e; font-size: 13px; line-height: 1.45; }
.nav-group a:hover { color: var(--ink); background: #edf1f4; }
.nav-group a.active { color: var(--blue-dark); background: #e9f2ff; font-weight: 700; }
.nav-group a.search-hidden, .nav-group.search-hidden { display: none; }
.sidebar-footer { margin-top: auto; padding: 16px 24px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #8a96a0; }
.sidebar-footer a { font-size: 12px; font-weight: 700; }

.content { width: min(calc(100% - var(--sidebar)), var(--content)); margin-left: calc(var(--sidebar) + max(48px, (100vw - var(--sidebar) - var(--content)) / 2)); padding: 30px 0 80px; }
.top-actions { display: flex; justify-content: space-between; align-items: center; min-height: 42px; margin-bottom: 64px; }
.top-actions > div { display: flex; gap: 22px; align-items: center; }
.sdk-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f1f4f6; }
.sdk-switch button { border: 0; border-radius: 6px; padding: 7px 11px; color: #687783; background: transparent; font: 700 11px/1.2 inherit; cursor: pointer; }
.sdk-switch button:hover { color: var(--ink); }
.sdk-switch button.active { color: white; background: var(--navy); box-shadow: 0 3px 8px rgba(20,37,55,.16); }
.sdk-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.version-badge { display: inline-flex; padding: 5px 10px; background: #eff3f6; border-radius: 999px; color: #62707e; font-size: 11px; font-weight: 700; }
.subtle-link { color: #657481; font-size: 12px; font-weight: 650; }
.button-link { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.button-link small { margin-left: 6px; color: #81909c; font-size: 9px; font-weight: 650; }
.button-link:hover { border-color: #a7caff; background: var(--blue-soft); }

.doc-section { scroll-margin-top: 24px; margin-bottom: 100px; }
.doc-section > p { max-width: 860px; }
.doc-section.search-hidden { display: none; }
.hero { padding: 24px 0 12px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: 0.18em; }
.hero h1 { max-width: 800px; margin: 0 0 24px; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.12; }
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 780px; color: #52616e; font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 11px 18px; border-radius: 9px; font-size: 13px; font-weight: 750; }
.primary-button { color: white; background: var(--blue); box-shadow: 0 8px 18px rgba(22,119,255,.18); }
.primary-button:hover { color: white; background: var(--blue-dark); }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: white; }
.secondary-button:hover { border-color: #abcaff; background: var(--blue-soft); }

.section-heading { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 19px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading > span { display: grid; place-items: center; min-width: 36px; height: 25px; border-radius: 6px; background: var(--navy); color: white; font: 700 10px/1 "SFMono-Regular", monospace; }
.section-heading p { margin: 0 0 4px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.section-heading.compact { margin-bottom: 20px; }

.notice { margin: 24px 0; padding: 17px 20px; border-left: 3px solid var(--blue); border-radius: 0 9px 9px 0; background: var(--blue-soft); }
.notice strong { display: block; color: #124d8d; font-size: 14px; margin-bottom: 4px; }
.notice p { margin: 0; color: #425e78; font-size: 14px; }
.notice-security { max-width: 790px; margin-top: 40px; border-left-color: var(--green); background: #edf9f4; }
.notice-security strong { color: #13704d; }
.notice-security p { color: #43655a; }
.small-note { color: var(--muted); font-size: 14px; }

.flow-diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin: 32px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.flow-node { min-height: 138px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 3px 10px rgba(25,49,72,.04); }
.flow-node small { display: block; color: var(--blue); font-size: 11px; font-weight: 750; }
.flow-node strong { display: block; margin: 7px 0 11px; font-size: 16px; line-height: 1.25; }
.flow-node span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.flow-node.accent { border-color: #9bc8ff; box-shadow: inset 0 3px 0 var(--blue); }
.flow-arrow { color: var(--blue); font-size: 18px; text-align: center; }
.flow-arrow span { display: block; color: #85919c; font-size: 9px; white-space: nowrap; }
.storage-concept { margin: 34px 0 28px; padding: 28px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfd; box-shadow: 0 10px 28px rgba(20,37,55,.045); }
.storage-title { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.storage-title span { display: block; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.storage-title strong { display: block; margin-top: 5px; font-size: 22px; letter-spacing: -.025em; }
.storage-title p { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.storage-flow-map { display: grid; gap: 18px; margin-top: 22px; }
.storage-always-on { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; padding: 13px 16px; border: 1px dashed #afc3d3; border-radius: 10px; color: #405564; background: #f4f8fb; }
.storage-always-on > span { padding: 3px 8px; border-radius: 999px; color: #126b78; background: #dff5f6; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.storage-always-on strong { font-size: 14px; }
.storage-always-on i { color: var(--cyan); font-size: 17px; font-style: normal; }
.storage-always-on p { flex: 1 1 330px; margin: 0 0 0 6px; color: var(--muted); font-size: 13px; }
.storage-flow-lane { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.storage-flow-lane.retain { border-color: #cce8dc; background: #fcfffd; }
.storage-lane-label { display: flex; flex-direction: column; align-items: flex-start; padding-top: 3px; }
.storage-lane-label > span { display: grid; place-items: center; width: 30px; height: 23px; margin-bottom: 10px; border-radius: 6px; color: white; background: var(--navy); font: 750 10px/1 "SFMono-Regular", monospace; }
.storage-flow-lane.retain .storage-lane-label > span { background: var(--green); }
.storage-lane-label strong { font-size: 15px; }
.storage-lane-label small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.storage-path { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 5px; align-items: stretch; }
.storage-path article { min-width: 0; min-height: 142px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 9px; background: #f8fafc; }
.storage-path article > small { display: block; color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.storage-path article > strong { display: block; margin: 6px 0 8px; font-size: 15px; line-height: 1.3; }
.storage-path article > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.storage-path article code { font-size: .86em; }
.storage-path .storage-node-playback { border-color: #a9cdf8; background: #f4f9ff; box-shadow: inset 0 3px 0 var(--blue); }
.storage-path .storage-node-kept { border-color: #addcc9; background: #f3fbf7; box-shadow: inset 0 3px 0 var(--green); }
.storage-path .storage-node-browser { border-color: #b8e3e7; background: #f3fbfc; }
.storage-arrow { display: grid; place-items: center; color: var(--blue); font-size: 18px; font-style: normal; }
.storage-arrow.media { color: var(--cyan); }
.storage-stop-note { grid-column: 2; display: flex; gap: 11px; align-items: center; margin-top: -5px; padding: 11px 14px; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; color: #405a70; background: var(--blue-soft); font-size: 13px; line-height: 1.55; }
.storage-stop-note code { flex: 0 0 auto; font-weight: 800; }
.storage-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; padding-top: 21px; border-top: 1px solid var(--line); }
.storage-items > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.storage-items b { font-size: 14px; }
.storage-items p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.68; }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid #cce0fa; border-radius: 11px; background: #f8fbff; }
.callout-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 8px; color: white; background: var(--blue); font-weight: 800; }
.callout strong { font-size: 14px; }
.callout p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.callout.warning { border-color: #f1d5a8; background: #fffaf1; }
.callout.warning .callout-icon { background: var(--amber); }

.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice-card { position: relative; padding: 23px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.choice-card.recommended { border-color: #9cc7ff; box-shadow: inset 0 3px 0 var(--blue); }
.choice-card h3 { margin: 18px 0 10px; }
.choice-card p, .choice-card li { color: var(--muted); font-size: 14px; }
.choice-card ul { margin: 16px 0 0; padding-left: 18px; }
.card-label { display: inline-flex; padding: 3px 7px; border-radius: 4px; color: white; background: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.card-label.neutral { background: #71808d; }

pre { position: relative; overflow: auto; margin: 18px 0 30px; padding: 23px 23px; border: 1px solid #213950; border-radius: 11px; color: #dceaf5; background: var(--navy); font-size: 14px; line-height: 1.7; tab-size: 2; box-shadow: 0 8px 22px rgba(20,37,55,.08); }
pre code { padding: 0; color: inherit; background: none; font-size: inherit; }
.tok-keyword { color: #c586c0; }
.tok-variable { color: #9cdcfe; }
.tok-function { color: #dcdcaa; }
.tok-type { color: #4ec9b0; }
.tok-builtin { color: #4fc1ff; }
.tok-string { color: #ce9178; }
.tok-number { color: #b5cea8; }
.tok-comment { color: #6a9955; font-style: italic; }
.tok-constant { color: #4fc1ff; }
.tok-decorator { color: #dcdcaa; }
.tok-operator { color: #d4d4d4; }
.tok-property { color: #9cdcfe; }
.copy-button { position: absolute; top: 10px; right: 10px; border: 1px solid #41586d; border-radius: 6px; padding: 5px 9px; color: #b7c8d7; background: #1b3044; font: 650 10px/1.4 inherit; cursor: pointer; }
.copy-button:hover { color: white; border-color: #6d859a; }
.copy-button.copied { color: #72e0b2; border-color: #3d9e76; }

.timeline { position: relative; overflow: hidden; height: 130px; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.timeline-track { position: absolute; top: 38px; left: 7%; right: 7%; height: 5px; border-radius: 3px; background: #b8c6d1; }
.timeline-continuous { position: absolute; top: 20px; left: 7%; right: 7%; display: flex; justify-content: center; color: var(--muted); font-size: 11px; }
.timeline-window { position: absolute; left: 25%; right: 22%; bottom: 25px; display: flex; justify-content: space-between; align-items: center; height: 39px; padding: 0 10px; border-radius: 8px; color: white; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 8px 18px rgba(22,119,255,.2); }
.timeline-window span { font-size: 11px; }
.timeline-window strong { font-size: 10px; }
.timeline-window i { position: absolute; top: -42px; width: 2px; height: 42px; background: var(--blue); }
.timeline-window i:first-child { left: 0; }
.timeline-window i:last-child { right: 0; }
.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.term-grid > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; }
.term-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.status-flow { display: flex; align-items: stretch; gap: 5px; margin: 26px 0; }
.status-flow > div { flex: 1; padding: 12px 7px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.status-flow b, .status-flow span { display: block; }
.status-flow b { font-size: 10px; color: #405261; }
.status-flow span { margin-top: 3px; color: #7a8792; font-size: 9px; }
.status-flow i { align-self: center; color: #a2afba; font-style: normal; }
.status-flow .active { border-color: #9cc7ff; background: var(--blue-soft); }
.status-flow .active b { color: var(--blue-dark); }
.status-flow .success { border-color: #a9dbc8; background: #edf9f4; }
.status-flow .success b { color: #18744f; }

table { width: 100%; margin: 24px 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { color: #53616e; background: #f5f8fa; font-size: 12px; }
tr:last-child td { border-bottom: 0; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; top: 8px; color: var(--green); font-weight: 800; }
.responsibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.responsibility-grid article { padding: 20px 22px; border: 1px solid var(--line); border-radius: 11px; }
.responsibility-grid article:last-child { border-color: #add0ff; background: #f8fbff; }
.responsibility-grid h3 { margin: 0 0 10px; font-size: 16px; }
.responsibility-grid ul { margin: 0; color: var(--muted); font-size: 14px; }
.security-list { margin-top: 22px; }

.method-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.method-list article { display: grid; grid-template-columns: 245px 1fr; gap: 24px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.method-list article:last-child { border-bottom: 0; }
.method-list p { margin: 0; color: var(--muted); font-size: 13px; }
.method-list b { color: #33485a; }
.reference-intro { max-width: 760px; color: var(--ink); }
.sdk-method-reference { display: grid; gap: 24px; margin: 28px 0; }
.sdk-reference-resource { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }
.sdk-resource-header { display: grid; grid-template-columns: minmax(235px, .8fr) 1.5fr; gap: 24px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #f7f9fb; }
.sdk-resource-header p { margin: 0; color: var(--ink); font-size: 13px; }
.sdk-resource-name { justify-self: start; padding: 5px 9px; border: 1px solid #cfe3ff; color: #145ca6; background: #e8f2ff; font-size: 13px; font-weight: 750; box-shadow: inset 3px 0 0 #5aa2ff; }
.sdk-resource-methods { display: grid; }
.method-doc { border-bottom: 1px solid var(--line-soft); }
.method-doc:last-child { border-bottom: 0; }
.method-summary { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 17px 20px; cursor: pointer; list-style: none; transition: background .15s ease; }
.method-summary::-webkit-details-marker { display: none; }
.method-summary:hover { background: #f9fbfd; }
.method-summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.method-summary-main { min-width: 0; display: grid; grid-template-columns: minmax(235px, .8fr) 1.5fr; gap: 24px; align-items: center; }
.method-name { justify-self: start; padding: 4px 8px; border: 1px solid #d3e6ff; color: #075dc7; background: #eff6ff; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.method-description { color: var(--ink); font-size: 13px; line-height: 1.65; }
.method-chevron { flex: 0 0 auto; color: #7d8b97; font-size: 19px; line-height: 1; transition: transform .18s ease; }
.method-doc[open] > .method-summary { background: #f7faff; }
.method-doc[open] > .method-summary .method-chevron { transform: rotate(180deg); }
.method-content { padding: 8px 20px 22px; border-top: 1px solid #edf2f7; background: #fbfcfd; }
.method-section { margin-top: 18px; }
.method-label { margin: 0 0 8px; color: #73818d; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.method-signature { overflow-x: auto; padding: 13px 15px; border: 1px solid #243e56; border-radius: 8px; color: #dceaf5; background: var(--navy); }
.method-signature code { padding: 0; color: inherit; background: transparent; font-size: 13px; white-space: nowrap; }
.method-signature .tok-variable { color: #9cdcfe; }
.method-signature .tok-property { color: #7dd3fc; }
.method-signature .tok-function { color: #f5d76e; font-weight: 700; }
.method-signature .tok-keyword { color: #d7a6e6; font-weight: 700; }
.method-signature .tok-string { color: #f3a683; }
.method-signature .tok-number { color: #b8df9a; }
.method-signature .tok-constant { color: #64c7ff; }
.method-signature .tok-operator { color: #b8c7d4; }
.method-empty { margin: 0; padding: 13px 15px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink); font-size: 12px; }
.parameter-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
.parameter-table { min-width: 760px; margin: 0; border: 0; border-radius: 0; }
.parameter-table th { padding: 9px 11px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.parameter-table td { padding: 12px 11px; font-size: 12px; line-height: 1.6; }
.parameter-table th:nth-child(1) { width: 17%; }
.parameter-table th:nth-child(2) { width: 16%; }
.parameter-table th:nth-child(3) { width: 11%; }
.parameter-table th:nth-child(4) { width: 13%; }
.parameter-table th:nth-child(1) { color: #145ca6; background: #eef6ff; }
.parameter-table th:nth-child(2) { color: #19775b; background: #edf8f4; }
.parameter-table th:nth-child(3) { color: #9c3b2d; background: #fff4f1; }
.parameter-table th:nth-child(4) { color: #99610b; background: #fff8e8; }
.parameter-table tbody tr:hover td { background: #f9fbfd; }
.parameter-table code { padding: 2px 5px; font-size: 10px; white-space: nowrap; }
.parameter-name { border: 1px solid #d7e8ff; color: #075dc7; background: #eef6ff; font-weight: 750; }
.parameter-type { border: 1px solid #d1eee4; color: #19775b; background: #edf8f4; font-weight: 700; }
.parameter-default { border: 1px solid #f1e0b9; color: #99610b; background: #fff8e8; }
.required-badge { display: inline-flex; padding: 2px 6px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .03em; }
.required-badge.required { color: #9c3b2d; background: #fff0ed; }
.required-badge.optional { color: #64717d; background: #eef2f5; }
.parameter-description { min-width: 245px; color: var(--ink); }
.method-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.method-result { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.method-result.returns { border-left: 3px solid var(--green); }
.method-result.errors { border-left: 3px solid var(--amber); }
.method-result p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.example-card { display: block; position: relative; min-height: 190px; padding: 22px 22px 54px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.example-card:hover { transform: translateY(-2px); border-color: #9dc7ff; color: var(--ink); box-shadow: 0 10px 24px rgba(20,37,55,.08); }
.example-grid span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.example-grid h3 { margin: 7px 0 11px; font-family: "SFMono-Regular", monospace; font-size: 14px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.example-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.example-grid b { position: absolute; left: 22px; bottom: 20px; color: var(--blue-dark); font-size: 11px; }

.deployment-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.deployment-list li { display: flex; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.deployment-list li > span { color: var(--blue); font: 750 11px/1.7 "SFMono-Regular", monospace; }
.deployment-list strong { font-size: 14px; }
.deployment-list p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.search-empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.search-empty strong { display: block; color: var(--ink); font-size: 19px; }
.docs-footer { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); color: #87939d; font-size: 11px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 9px 15px; border-radius: 8px; color: white; background: var(--navy); box-shadow: 0 8px 25px rgba(20,37,55,.25); font-size: 12px; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-header, .sidebar-scrim { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 260px; --content: calc(100vw - 330px); }
  .content { margin-left: calc(var(--sidebar) + 38px); }
  .flow-diagram { grid-template-columns: 1fr; }
  .flow-node { min-height: auto; }
  .flow-arrow { transform: rotate(90deg); height: 28px; }
  .flow-arrow span { display: none; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  body.sidebar-open { overflow: hidden; }
  .mobile-header { position: fixed; z-index: 25; inset: 0 0 auto; height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  .mobile-brand { font-size: 14px; font-weight: 750; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 14px; }
  .mobile-menu-button { display: grid; gap: 4px; border: 0; padding: 9px; background: transparent; cursor: pointer; }
  .mobile-menu-button > span:not(.sr-only) { width: 20px; height: 2px; background: var(--ink); }
  .sidebar { width: min(310px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 12px 0 35px rgba(20,37,55,.16); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 29; inset: 0; background: rgba(12,26,39,.36); }
  body.sidebar-open .sidebar-scrim { display: block; }
  .content { width: auto; margin: 0; padding: 86px 22px 60px; }
  .top-actions { flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
  .hero h1 { font-size: 40px; }
  .doc-section { margin-bottom: 70px; }
  .comparison-grid, .term-grid, .responsibility-grid, .example-grid, .storage-items { grid-template-columns: 1fr; }
  .storage-concept { padding: 22px; }
  .storage-flow-lane { grid-template-columns: 1fr; }
  .storage-path { grid-template-columns: 1fr; }
  .storage-path article { min-height: auto; }
  .storage-arrow { height: 24px; transform: rotate(90deg); }
  .storage-stop-note { grid-column: 1; margin-top: 2px; }
  .storage-items > div + div { padding-top: 14px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .status-flow { display: grid; grid-template-columns: repeat(3, 1fr); }
  .status-flow i { display: none; }
  .method-list article { grid-template-columns: 1fr; gap: 9px; }
  .sdk-resource-header, .method-summary-main { grid-template-columns: 1fr; gap: 6px; }
  .method-result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { overflow-x: hidden; font-size: 15px; }
  .content { padding-left: 16px; padding-right: 16px; }
  .top-actions { align-items: flex-start; }
  .top-actions > div:last-child { display: none; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  h2 { font-size: 27px; }
  .section-heading { gap: 12px; }
  .flow-diagram { padding: 14px; }
  pre { margin-left: -4px; margin-right: -4px; padding: 19px 16px; font-size: 12px; }
  .storage-concept { margin-right: -4px; margin-left: -4px; padding: 18px; }
  .storage-title strong { font-size: 20px; }
  .storage-flow-lane { padding: 14px; }
  .status-flow { grid-template-columns: repeat(2, 1fr); }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .parameter-table { display: table; white-space: normal; }
  .method-summary, .method-content { padding-right: 14px; padding-left: 14px; }
  .timeline-window { left: 12%; right: 12%; }
}

@media print {
  .sidebar, .mobile-header, .top-actions, .copy-button, .toast { display: none !important; }
  .content { width: auto; margin: 0; padding: 0; }
  .doc-section { break-inside: avoid; margin-bottom: 50px; }
  pre { white-space: pre-wrap; }
}
