:root {
  color-scheme: light;
  --background: #fafafa;
  --foreground: #17181a;
  --card: #ffffff;
  --card-elevated: #ffffff;
  --secondary: #f0f0f2;
  --muted: #f0f0f2;
  --muted-foreground: #6b7078;
  --border: #e6e7e9;
  --border-strong: #d4d6da;
  --blue: #0a6cff;
  --blue-subtle: #0a6cff17;
  --marker: #dba400;
  --marker-subtle: #dba40024;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --overlay: rgba(16, 18, 22, .56);
  --radius: 10px;
  --sans: "Geist", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b0c0e;
  --foreground: #edeef0;
  --card: #121316;
  --card-elevated: #16181c;
  --secondary: #1a1c20;
  --muted: #1a1c20;
  --muted-foreground: #8a8f98;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --blue: #4ea1ff;
  --blue-subtle: #4ea1ff1a;
  --marker: #ffd60a;
  --marker-subtle: #ffd60a29;
  --shadow: 0 1px 2px rgba(0, 0, 0, .22);
  --overlay: rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: 100%;
  max-width: 1024px;
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.025em;
  user-select: none;
}
.logo-ui-wrap { position: relative; display: flex; align-items: flex-start; margin-left: 7px; }
.logo-ui { position: relative; z-index: 1; color: var(--blue); }
.logo-domain { margin-left: 12px; color: var(--muted-foreground); font: 500 11px/1 var(--mono); letter-spacing: .04em; opacity: .5; }
.logo-mark {
  position: absolute;
  inset: -2px -4px;
  border-radius: 5px;
  background: var(--marker-subtle);
  box-shadow: 0 0 0 2px var(--marker);
  animation: logo-flash 1.7s ease-out 1;
}
.logo-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 50;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--foreground) 90%, transparent);
  color: var(--background);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: .18s ease;
  pointer-events: none;
}
.logo:hover .logo-tip { opacity: 1; transform: translate(-50%, 0); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-search, .icon-button, .hero-search {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.header-search {
  width: 240px;
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: var(--muted-foreground);
  text-align: left;
  font-size: 13px;
}
.header-search > span { flex: 1; }
.header-search svg, .hero-search svg, .dialog-search-row svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  flex: 0 0 auto;
}
kbd {
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--secondary);
  color: var(--muted-foreground);
  font: 500 10px/1 var(--sans);
}
.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--secondary) 50%, transparent);
  color: var(--muted-foreground);
}
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }
.header-search:hover, .icon-button:hover, .hero-search:hover { border-color: var(--border-strong); }

.hero {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 92px 24px 58px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font: 600 13px/1.1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 span { color: var(--blue); }
.hero-copy {
  max-width: 540px;
  margin: 18px auto 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.75;
}
.hero-search {
  width: 100%;
  max-width: 576px;
  height: 56px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  color: var(--muted-foreground);
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.hero-search:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); transform: translateY(-1px); }
.hero-search:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rotating-prompt { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; transition: opacity .24s, filter .24s; }
.rotating-prompt.changing { opacity: 0; filter: blur(3px); }

.dictionary {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.section-label {
  margin: 0;
  color: var(--muted-foreground);
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.term-card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-intro { margin: 7px 0 0; color: var(--muted-foreground); font-size: 13px; }
.filter-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: var(--secondary); }
.filter-tab { padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-foreground); font-size: 12px; cursor: pointer; }
.filter-tab.active { background: var(--card); color: var(--foreground); box-shadow: var(--shadow); }
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.term-card {
  min-width: 0;
  min-height: 176px;
  padding: 16px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, transform .16s, background .16s;
}
.term-card:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--border)); transform: translateY(-2px); }
.term-visual {
  height: 54px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--secondary);
  color: var(--muted-foreground);
}
.mini-ui { width: 76%; height: 24px; position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; }
.mini-ui::before, .mini-ui::after { content: ""; display: block; border: 1px solid var(--border-strong); background: var(--card); }
.mini-ui::before { width: 62%; height: 8px; border-radius: 5px; }
.mini-ui::after { width: 18px; height: 18px; border-radius: 5px; }
.mini-ui[data-demo="slider"]::before, .mini-ui[data-demo="progress"]::before { width: 80%; height: 4px; border: 0; background: linear-gradient(90deg, var(--blue) 55%, var(--border) 55%); }
.mini-ui[data-demo="slider"]::after { position: absolute; left: 52%; width: 14px; height: 14px; border-radius: 50%; border-color: var(--blue); }
.mini-ui[data-demo="lights"]::before { width: 36px; height: 9px; border: 0; background: radial-gradient(circle at 5px 50%, #ff5f57 0 4px, transparent 4.5px), radial-gradient(circle at 18px 50%, #febc2e 0 4px, transparent 4.5px), radial-gradient(circle at 31px 50%, #28c840 0 4px, transparent 4.5px); }
.mini-ui[data-demo="lights"]::after { display: none; }
.mini-ui[data-demo="dots"]::before { width: 32px; border: 0; background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px) 0 0/11px 8px; }
.mini-ui[data-demo="dots"]::after { display: none; }
.mini-ui[data-demo="scrim"]::before, .mini-ui[data-demo="lightbox"]::before { width: 84%; height: 36px; border: 0; border-radius: 5px; background: color-mix(in srgb, var(--foreground) 28%, transparent); }
.mini-ui[data-demo="scrim"]::after, .mini-ui[data-demo="lightbox"]::after { position: absolute; width: 30px; height: 22px; }
.mini-ui[data-demo="chips"]::before { width: 38px; height: 17px; border-radius: 999px; background: var(--blue-subtle); border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.mini-ui[data-demo="chips"]::after { width: 28px; height: 17px; border-radius: 999px; }
.mini-ui[data-demo="skeleton"]::before { width: 64%; height: 7px; border: 0; background: linear-gradient(100deg, var(--border) 30%, var(--card) 50%, var(--border) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.mini-ui[data-demo="skeleton"]::after { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--blue); background: transparent; animation: spin .8s linear infinite; }
.mini-ui[data-demo="focus"]::after { box-shadow: 0 0 0 2px var(--secondary), 0 0 0 4px var(--blue); }
.mini-ui[data-demo="divider"]::before { width: 80%; height: 1px; border: 0; background: var(--border-strong); }
.mini-ui[data-demo="divider"]::after { display: none; }
.mini-ui[data-demo="marquee"]::before { width: 85%; height: 16px; border: 0; background: linear-gradient(90deg, transparent, var(--foreground) 30% 70%, transparent); opacity: .35; animation: marquee 1.8s linear infinite; }
.mini-ui[data-demo="marquee"]::after { display: none; }
.term-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.term-zh { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 620; }
.term-category { flex: 0 0 auto; color: var(--muted-foreground); font: 500 9px/1 var(--mono); }
.term-en { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue); font: 500 11px/1.3 var(--mono); }
.term-desc { margin: 10px 0 0; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted-foreground); font-size: 12px; line-height: 1.55; }
.empty-results { padding: 48px 0; color: var(--muted-foreground); text-align: center; font-size: 14px; }

footer { max-width: 976px; margin: 0 auto; padding: 26px 0 36px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 11px; }
footer p { margin: 0; }

dialog { color: var(--foreground); }
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.search-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--card-elevated);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  overflow: hidden;
}
.search-dialog[open], .term-dialog[open] { animation: dialog-in .18s ease-out; }
.dialog-shell { min-height: 160px; }
.dialog-search-row { height: 60px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); }
.dialog-search-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--foreground); font-size: 15px; }
.dialog-search-row input::placeholder { color: var(--muted-foreground); }
.close-search { padding: 5px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--secondary); color: var(--muted-foreground); font: 500 10px/1 var(--mono); cursor: pointer; }
.search-hint { padding: 28px 22px; color: var(--muted-foreground); text-align: center; font-size: 13px; line-height: 1.65; }
.search-results { max-height: 540px; overflow: auto; padding: 8px; }
.search-result { width: 100%; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus-visible { background: var(--secondary); }
.search-result strong { font-size: 14px; }
.search-result .result-en { align-self: center; color: var(--blue); font: 500 10px/1 var(--mono); }
.search-result p { grid-column: 1 / -1; margin: 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.5; }

.term-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--card-elevated); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.term-detail { position: relative; padding: 28px; }
.term-detail .detail-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--secondary); color: var(--muted-foreground); cursor: pointer; }
.detail-kicker { margin: 0 0 12px; color: var(--blue); font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.term-detail h2 { margin: 0; padding-right: 36px; font-size: 28px; letter-spacing: -.04em; }
.detail-en { margin: 6px 0 0; color: var(--muted-foreground); font: 500 13px/1.4 var(--mono); }
.detail-desc { margin: 24px 0 0; font-size: 14px; line-height: 1.8; }
.detail-box { margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--secondary); }
.detail-box span { display: block; margin-bottom: 7px; color: var(--muted-foreground); font: 600 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.detail-box p { margin: 0; font-size: 12px; line-height: 1.6; }

@keyframes logo-flash { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes marquee { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }

@media (max-width: 720px) {
  .header-inner { padding: 0 16px; }
  .logo-domain { display: none; }
  .header-search { width: 32px; padding: 0; justify-content: center; }
  .header-search > span, .header-search kbd { display: none; }
  .hero { padding: 64px 16px 48px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 14px; }
  .hero-search { padding: 0 15px; }
  .hero-search kbd { display: none; }
  .dictionary { padding-right: 16px; padding-left: 16px; }
  .term-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; }
  .term-card { min-height: 160px; }
  footer { margin: 0 16px; flex-direction: column; gap: 6px; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .term-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Source-matched visual index */
.dictionary { max-width: 1216px; padding-top: 24px; }
.section-heading-row { align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.section-heading-row > div:first-child { padding-bottom: 18px; }
.filter-tabs { order: -1; align-self: stretch; padding: 0; gap: 30px; background: transparent; }
.filter-tab { position: relative; padding: 0 0 18px; border-radius: 0; background: transparent; font-size: 15px; }
.filter-tab small { margin-left: 4px; color: var(--muted-foreground); font-size: 11px; }
.filter-tab.active { background: transparent; box-shadow: none; color: var(--foreground); }
.filter-tab.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--foreground); }
.term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; }
.term-card { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; text-decoration: none; }
.term-card:hover { border-color: transparent; transform: none; }
.term-card:hover .term-visual { border-color: var(--border-strong); transform: translateY(-2px); }
.term-visual { width: 100%; aspect-ratio: 16 / 9; height: auto; margin-bottom: 16px; border-radius: 12px; background-color: #181a1e; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 24px 24px; transition: .18s ease; }
[data-theme="light"] .term-visual { background-color: #eef0f3; background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.08) 1px, transparent 0); }
.term-meta { padding: 0 5px; }
.term-zh { font-size: 16px; }
.term-en { margin: 6px 5px 0; font-size: 12px; }
.term-api { display: block; margin: 4px 5px 0; overflow: hidden; color: var(--blue); font: 500 11px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.term-desc { margin: 8px 5px 0; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.55; }

/* Reusable demo primitives */
.demo-scene { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #f3f4f6; font-family: var(--sans); font-size: 12px; }
.demo-scene * { box-sizing: border-box; }
.mock-window { width: 76%; min-height: 66%; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: #2a2a2d; box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.mock-titlebar { height: 32px; padding: 0 11px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.08); color: #c8c8cc; }
.mock-titlebar .traffic { position: absolute; margin-left: -58%; }
.mock-titlebar b { font-size: 11px; }
.mock-body { position: relative; min-height: 118px; padding: 12px; }
.traffic { display: inline-flex; gap: 6px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.mac-menu { width: 60%; min-width: 142px; padding: 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(42,42,46,.94); box-shadow: 0 12px 28px rgba(0,0,0,.25); backdrop-filter: blur(14px); }
.mac-menu-row { min-height: 21px; padding: 3px 8px; display: flex; align-items: center; justify-content: space-between; border-radius: 5px; font-size: 11px; }
.mac-menu-row.selected { background: #1675f8; color: white; }
.mac-menu-row:empty { min-height: 1px; margin: 4px 7px; padding: 0; background: rgba(255,255,255,.16); }
.mac-menu-row b { color: #999aa0; font-weight: 500; }
.mac-menu-row.selected b { color: white; }
.system-bar { height: 30px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-radius: 11px 11px 0 0; background: rgba(38,36,61,.94); font-size: 11px; }
.menu-desktop { width: 78%; height: 75%; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: linear-gradient(135deg,#44396e,#242242); }
.menu-desktop .mac-menu { margin: 2px 0 0 7px; }
.status-highlight { padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.22); }
.context-stage { position: relative; width: 82%; height: 80%; }
.context-stage .folder { position: absolute; top: 8%; left: 20%; }
.context-stage .mac-menu { position: absolute; right: 0; bottom: 0; }
.folder { width: 74px; height: 62px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: rgba(10,108,255,.13); }
.folder span { color: #62aaff; font-size: 27px; }
.folder b { margin-top: 3px; font-size: 10px; }
.line-list { font-size: 11px; line-height: 1.9; }
.line-list div { white-space: nowrap; }
.file-window .mock-body { padding: 14px 18px; }
.file-window .line-list div:nth-child(1), .file-window .line-list div:nth-child(4) { font-weight: 700; color: #f2f2f3; }
.dock-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mock-dock { padding: 8px 10px; display: flex; align-items: flex-end; gap: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(255,255,255,.10); box-shadow: 0 10px 25px rgba(0,0,0,.25); backdrop-filter: blur(12px); }
.app { position: relative; width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.22); }
.app.blue { background: linear-gradient(145deg,#5ac8fa,#0a6cff); }
.app.green { background: linear-gradient(145deg,#34d058,#1d9c46); }
.app.purple { background: linear-gradient(145deg,#a78bfa,#7c3aed); }
.app.orange { background: linear-gradient(145deg,#fbbf24,#f97316); }
.red-badge { position: absolute; top: -7px; right: -5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #ff453a; color: white; font-size: 10px; }
.callout { position: absolute; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.17); color: #d7d8db; font-size: 10px; }
.callout.one { top: -28px; left: 28%; }
.callout.two { top: 45px; left: 30%; background: rgba(78,161,255,.65); }
.demo-action, .demo-button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: #242529; font-weight: 600; }
.dock-stage small { color: #8a8f98; font-size: 9px; }
.focus-stage { display: flex; align-items: center; gap: 9px; }
.mock-field { min-width: 130px; height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #55575d; border-radius: 7px; background: #303136; color: #989ba2; }
.mock-field.focused { border-color: #4ea1ff; box-shadow: 0 0 0 3px rgba(78,161,255,.35); }
.mock-field.error { border-color: #ff6568; box-shadow: none; }
.mock-field em { font-style: normal; }
.check, .checkbox { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 5px; background: #1675f8; }
.inspector-window { width: 78%; }
.inspector-window .mock-body { height: 125px; padding: 0; display: grid; grid-template-columns: 58% 42%; }
.canvas-object { display: grid; place-items: center; background: #343438; }
.canvas-object i { width: 38px; height: 38px; border-radius: 9px; background: #1e64d6; }
.inspector { padding: 12px; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 7px; }
.inspector b { color: #9296a0; text-transform: uppercase; }
.inspector label { font-size: 9px; }
.inspector span { height: 3px; background: linear-gradient(90deg,#2578eb 48%,#51535a 48%); }
.back-window { position: absolute; left: 18%; top: 22%; width: 58%; height: 58%; opacity: .75; }
.fake-lines, .content-lines { display: flex; flex-direction: column; gap: 9px; }
.fake-lines i, .content-lines i, .tab-content i { width: 76%; height: 7px; border-radius: 4px; background: #46474d; }
.fake-lines i:nth-child(2), .content-lines i:nth-child(2) { width: 55%; }
.floating-panel { position: absolute; right: 14%; bottom: 14%; width: 43%; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #2b2b30; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.floating-panel > span { display: block; height: 4px; margin-top: 10px; background: linear-gradient(90deg,#ef4444,#f59e0b,#22c55e,#3b82f6,#a855f7); }
.swatches { margin-top: 10px; display: flex; gap: 5px; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; background: #ff5f57; }
.swatches i:nth-child(2) { background: #ff9f0a; }.swatches i:nth-child(3) { background: #ffd60a; }.swatches i:nth-child(4) { background: #30d158; }.swatches i:nth-child(5) { background: #bf5af2; }
.popover-stage { display: flex; flex-direction: column; align-items: center; }
.bubble { width: 170px; padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: #303035; }
.bubble p { margin: 5px 0 0; color: #9b9da4; }
.bubble-arrow { width: 14px; height: 14px; margin-top: -8px; background: #303035; transform: rotate(45deg); }
.popover-stage .demo-button { margin-top: 8px; }
.select-stage { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.select-button { width: 155px; padding: 8px 10px; display: flex; justify-content: space-between; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: #303136; }
.select-stage .mac-menu { width: 155px; }
.segments, .toggle-stage { padding: 3px; display: flex; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #242529; }
.segments span, .toggle-stage span { padding: 7px 13px; border-radius: 6px; color: #aaaeb7; }
.segments .active, .toggle-stage .active { background: #4b4c52; color: white; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sheet-window .mock-body { height: 130px; padding: 0; }
.dim-page { position: absolute; inset: 0; background: #1d1e22; }
.attached-sheet { position: absolute; top: 0; left: 15%; width: 70%; padding: 12px; border-radius: 0 0 10px 10px; background: #3a3b40; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,.3); }
.attached-sheet p { margin: 5px 0 12px; color: #a4a6ad; }.attached-sheet strong { padding: 4px 10px; border-radius: 5px; background: #1675f8; }
.sidebar-window .mock-body { height: 126px; padding: 0; display: grid; grid-template-columns: 38% 62%; }
.sidebar-demo { padding: 12px; background: rgba(255,255,255,.06); line-height: 2; color: #aaaeb6; }
.sidebar-demo b { display: block; margin: 0 -5px; padding: 0 5px; border-radius: 4px; background: rgba(255,255,255,.12); color: white; }
.sidebar-window .content-lines { padding: 17px; }
.stepper-stage, .token-stage { display: flex; align-items: center; gap: 10px; }
.number-field { width: 70px; padding: 8px; border: 1px solid #53555b; border-radius: 7px; background: #303136; }
.stepper { overflow: hidden; border: 1px solid #53555b; border-radius: 7px; }
.stepper span { width: 28px; height: 20px; display: grid; place-items: center; background: #3a3b40; }.stepper span + span { border-top: 1px solid #53555b; }
.toolbar-window .mock-body { padding: 0; }.toolbar-row { height: 42px; padding: 5px 8px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.08); }.toolbar-row > span { padding: 5px; border-radius: 5px; background: #3a3b40; }.toolbar-row .mock-field { min-width: 80px; height: 27px; margin-left: auto; }.toolbar-window .content-lines { padding: 16px; }
.lights-focus { padding: 18px 24px; display: flex; flex-direction: column; gap: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #2a2a2d; }.lights-focus .traffic i { width: 18px; height: 18px; }.lights-focus > span { color: #999ca4; word-spacing: 8px; }
.vibrancy-bg { position: relative; width: 78%; height: 72%; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg,#fc5c7d,#6a82fb); }.vibrancy-bg > i { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #ffd60a; filter: blur(5px); }.vibrancy-bg > i:nth-child(2){right:5%;top:10%;background:#30d158}.vibrancy-bg > i:nth-child(3){left:35%;bottom:-15%;background:#bf5af2}.glass-panel{position:absolute;inset:18% 16%;padding:14px;border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(255,255,255,.18);backdrop-filter:blur(14px)}.glass-panel span{display:block;width:80%;height:6px;margin-top:9px;border-radius:4px;background:rgba(255,255,255,.35)}
.full-window { width: 82%; min-height: 74%; }.full-window .content-lines { padding: 10px; }
.split-window .mock-body { height: 126px; padding: 0; display: flex; }.split-pane { padding: 12px; }.split-pane.left { width: 36%; background: rgba(255,255,255,.06); line-height: 2; }.split-pane.right { flex: 1; }.split-pane.right i { display: block; height: 8px; margin: 10px; border-radius: 5px; background: #46474d; }.split-handle { width: 3px; background: #4ea1ff; box-shadow: 0 0 0 3px rgba(78,161,255,.14); }
.scroll-box { position: relative; width: 65%; height: 72%; overflow: hidden; padding: 9px 22px 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #292a2e; }.scroll-box p { margin: 0 0 7px; padding: 6px; background: #35363b; }.scrollbar { position: absolute; top: 5px; right: 5px; bottom: 5px; width: 6px; border-radius: 4px; background: #202125; }.scrollbar i { display: block; height: 35%; border-radius: 4px; background: #696c74; }
.search-demo, .combobox-stage { position: relative; width: 62%; }.search-suggestions, .combo-options { margin-top: 5px; padding: 7px; display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: #292a2e; }.search-suggestions span, .combo-options span { color: #8f929a; font-size: 9px; }.search-suggestions b, .combo-options b { padding: 4px; border-radius: 4px; }.search-suggestions b:last-child, .combo-options b:first-child { background: #1675f8; }
.save-window { width: 82%; }.save-label { display: flex; align-items: center; gap: 7px; }.save-label span { flex: 1; padding: 5px; border: 1px solid #51535a; border-radius: 5px; background: #33343a; }.finder-list { margin-top: 8px; padding: 8px; border: 1px solid rgba(255,255,255,.08); line-height: 1.7; color: #aaaeb6; }.save-actions { margin-top: 8px; text-align: right; }.save-actions b { padding: 5px 10px; border-radius: 5px; background: #1675f8; }
.token-stage { flex-direction: column; align-items: flex-start; }.token-field { width: 235px; min-height: 37px; padding: 5px; display: flex; align-items: center; gap: 5px; border: 1px solid #51535a; border-radius: 7px; background: #303136; }.token-field span { padding: 4px 6px; border-radius: 5px; background: #145bb5; }.token-field i { color: #8c8f97; font-style: normal; }
.combo-stage { position: relative; display: flex; }.combo-main,.combo-arrow { padding: 9px 12px; border: 1px solid #55575d; background: #34353a; }.combo-main { border-radius: 7px 0 0 7px; }.combo-arrow { border-left: 0; border-radius: 0 7px 7px 0; }.combo-stage .mac-menu { position: absolute; top: 43px; left: 18px; }
.level-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }.stars { color: #ffd60a; font-size: 23px; letter-spacing: 4px; }.meter { display: flex; align-items: flex-end; gap: 5px; }.meter i { width: 15px; height: 16px; background: #30d158; }.meter i:nth-child(2){height:24px}.meter i:nth-child(3){height:32px}.meter i:nth-child(4){height:40px;background:#ffd60a}.meter i:nth-child(5){height:48px;background:#4a4b50}
.column-window { width: 84%; }.column-window .mock-body { padding: 0; }.columns-demo { height: 136px; display: grid; grid-template-columns: repeat(3,1fr); }.columns-demo div { padding: 10px; border-right: 1px solid rgba(255,255,255,.09); line-height: 2; color: #a9abb2; }.columns-demo b { display: block; margin: 0 -5px; padding: 0 5px; background: #1675f8; color: white; }
.outline-window .mock-body { padding: 10px 18px; }
.pointer-stage { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }.cursor { font-size: 28px; filter: drop-shadow(0 2px 2px #000); }.cursor.hand { color: #4ea1ff; }.cursor.text { font-family: serif; }.cursor.resize { color: #ff9f0a; }.pointer-stage small { grid-column: 1 / -1; color: #91949c; }
.alert-window { min-height: 54%; }.alert-box { display: flex; gap: 12px; }.alert-box > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; background: #ff9f0a; font-size: 22px; font-weight: 800; }.alert-box p { margin: 5px 0 12px; color: #999ca4; }.alert-box em { font-style: normal; }.alert-box strong { padding: 5px 10px; border-radius: 5px; background: #e5484d; }
.slider-stage { width: 70%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }.slider-track { position: relative; height: 5px; border-radius: 4px; background: #55575d; }.slider-track i { display: block; width: 62%; height: 100%; border-radius: inherit; background: #4ea1ff; }.slider-track b { position: absolute; top: 50%; left: 58%; width: 17px; height: 17px; border-radius: 50%; background: white; transform: translateY(-50%); box-shadow: 0 2px 5px #0008; }.slider-stage small { grid-column: 1 / -1; text-align: center; color: #9598a0; }
.color-stage { display: flex; align-items: center; gap: 14px; }.color-well { width: 55px; height: 36px; border: 4px solid #eee; border-radius: 7px; background: #bf5af2; box-shadow: 0 0 0 1px #555; }.color-panel { width: 160px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #292a2e; }.hue { display: block; height: 7px; margin-top: 9px; border-radius: 4px; background: linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); }
.dots-stage { position: relative; }.dots-button { width: 42px; height: 32px; display: grid; place-items: center; border: 1px solid #55575d; border-radius: 7px; background: #34353a; letter-spacing: 2px; }.dots-stage .mac-menu { position: absolute; top: 38px; right: 0; }
.drag-stage { position: relative; display: flex; align-items: center; gap: 13px; }.drag-card,.drop-zone { padding: 15px; border-radius: 8px; background: #34353a; box-shadow: 0 5px 15px #0004; }.drag-card { transform: rotate(-4deg); }.drop-zone { border: 2px dashed #4ea1ff; background: rgba(78,161,255,.08); color: #8cc1ff; }.drag-cursor { position: absolute; left: 38%; bottom: -18px; }.drag-arrow { color: #4ea1ff; font-size: 22px; }
.divider-stage { position: relative; width: 60%; padding: 5px 18px; border-radius: 8px; background: #292a2e; }.divider-stage p { margin: 8px 0; }.divider-stage hr { border: 0; border-top: 1px solid #484a50; }.vertical-divider { position: absolute; top: 12px; right: 25%; bottom: 12px; width: 1px; background: #62646b; }
.progress-stage { width: 65%; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }.progress-bar { height: 7px; border-radius: 5px; background: #474950; }.progress-bar i { display: block; width: 68%; height: 100%; border-radius: inherit; background: #4ea1ff; }.progress-stage b { grid-column: 1 / -1; }.spinner { width: 24px; height: 24px; display: block; border: 3px solid #4b4d54; border-top-color: #4ea1ff; border-radius: 50%; animation: spin .8s linear infinite; }.progress-stage small { color: #989ba2; }
.toast-stage { display: flex; flex-direction: column; gap: 10px; }.toast { min-width: 235px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #2d2e33; box-shadow: 0 9px 24px #0006; }.toast span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #4ea1ff; }.toast.success span { background: #30d158; }.toast em { margin-left: auto; color: #4ea1ff; font-style: normal; }
.drawer-stage,.scrim-stage,.lightbox-stage { position: relative; width: 82%; height: 78%; overflow: hidden; border-radius: 10px; background: #25262a; }.scrim-bg,.page-behind { position: absolute; inset: 0; background: linear-gradient(135deg,#30323a,#1e2025); }.center-dialog,.modal-card { position: absolute; top: 28%; left: 27%; width: 46%; padding: 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #38393f; text-align: center; z-index: 2; }.side-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 34%; padding: 13px; background: #34353a; }.side-drawer span { display: block; height: 6px; margin-top: 10px; background: #55575d; }.bottom-sheet { position: absolute; right: 18%; bottom: 0; left: 18%; padding: 13px; border-radius: 9px 9px 0 0; background: #45464c; text-align: center; }
.float-stage { position: relative; width: 80%; height: 72%; }.anchor-button { position: absolute; left: 16%; bottom: 18%; padding: 8px 12px; border-radius: 7px; background: #3a3b40; }.tooltip { position: absolute; left: 8%; bottom: 48%; padding: 6px 8px; border-radius: 5px; background: #eceef2; color: #202125; }.popover-card { position: absolute; top: 5%; right: 5%; width: 45%; padding: 11px; border-radius: 8px; background: #35363b; }.popover-card p { margin: 5px 0 0; color: #9b9da4; }.dropdown-list { position: absolute; right: 12%; bottom: 0; width: 38%; padding: 8px; border-radius: 7px; background: #2e2f34; line-height: 1.8; }
.page-behind i { display: block; width: 70%; height: 8px; margin: 16px; border-radius: 5px; background: #51535a; }.dark-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.62); }.modal-card p { margin-bottom: 0; color: #a0a3aa; }
.skeleton-stage { width: 65%; display: grid; grid-template-columns: 45px 1fr; gap: 14px; align-items: start; }.skeleton-avatar { width: 45px; height: 45px; border-radius: 50%; background: #3b3c42; }.skeleton-lines { display: flex; flex-direction: column; gap: 8px; }.skeleton-lines i { height: 9px; border-radius: 5px; background: linear-gradient(100deg,#36373c 30%,#4b4c52 50%,#36373c 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }.skeleton-lines i:nth-child(2){width:70%}.skeleton-lines i:nth-child(3){width:85%}.skeleton-stage .spinner { grid-column: 1 / -1; justify-self: center; }
.command-stage { width: 72%; padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #292a2f; box-shadow: 0 14px 32px #0007; }.command-input { padding: 9px; border-bottom: 1px solid #45464c; color: #9ca0a8; }.command-input kbd { float: right; }.command-list { padding-top: 6px; display: flex; flex-direction: column; }.command-list span { padding: 7px; border-radius: 5px; }.command-list span.active { background: #1675f8; }.command-list b { float: right; color: #adb0b7; }
.accordion-stage { width: 70%; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #292a2e; }.accordion-stage > div { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.09); }.accordion-stage span { float: right; }.accordion-stage p { margin: 8px 0 0; color: #999ca4; }
.tabs-stage { width: 72%; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #292a2e; }.tabs-stage nav { display: flex; border-bottom: 1px solid #45464c; }.tabs-stage nav > * { padding: 10px 14px; }.tabs-stage nav b { border-bottom: 2px solid #4ea1ff; }.tab-content { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chips-stage { display: grid; grid-template-columns: repeat(3,auto); gap: 12px; align-items: center; }.badge-demo { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #ff453a; }.chip-demo,.pill-demo { padding: 7px 12px; border-radius: 999px; background: #34353a; }.pill-demo { background: rgba(48,209,88,.15); color: #5ee986; }.chips-stage small { grid-column: 1 / -1; color: #93969e; word-spacing: 25px; }
.crumb-stage { width: 70%; }.crumb-stage nav { padding: 10px; border-radius: 8px; background: #292a2e; color: #9699a1; }.crumb-stage nav b { color: white; }.crumb-card { margin-top: 13px; padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #999ca4; }.crumb-card strong { display: block; margin-top: 5px; color: white; }
.sticky-stage { position: relative; width: 65%; height: 70%; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #292a2e; }.sticky-head { position: sticky; top: 0; z-index: 2; padding: 9px; background: #1675f8; }.sticky-stage p { margin: 10px; padding: 14px; background: #3a3b40; }.fixed-button { position: absolute; right: 8px; bottom: 8px; padding: 7px 10px; border-radius: 999px; background: #ff9f0a; }
.empty-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: #34353a; color: #70737b; font-size: 28px; }.empty-stage p { margin: 0; color: #9699a1; }
.hover-stage { position: relative; display: flex; align-items: center; gap: 8px; }.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #4ea1ff; }.hover-link { color: #7cb8ff; }.hover-card-demo { position: absolute; left: 25px; top: 50px; width: 190px; padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: #2d2e33; box-shadow: 0 12px 26px #0006; }.hover-card-demo p { margin: 5px 0; color: #999ca4; }
.checks-stage { display: flex; flex-direction: column; gap: 14px; }.checks-stage label { display: flex; align-items: center; gap: 10px; }.switch { width: 38px; height: 22px; padding: 3px; display: block; border-radius: 999px; background: #55575d; }.switch i { display: block; width: 16px; height: 16px; border-radius: 50%; background: white; }.switch.on { background: #30d158; }.switch.on i { margin-left: 16px; }.radio { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #63656c; border-radius: 50%; }.radio i { width: 9px; height: 9px; border-radius: 50%; background: #4ea1ff; }
.form-stage { width: 68%; display: flex; flex-direction: column; gap: 6px; }.form-stage .mock-field { width: 100%; }.form-stage small { color: #8f929a; }.form-stage > b { color: #ff6568; font-size: 10px; }
.truncate-stage { width: 70%; display: flex; flex-direction: column; gap: 12px; }.truncate-stage > div { padding: 10px; border-radius: 8px; background: #2e2f34; }.truncate-stage p { margin: 6px 0 0; color: #9ca0a8; white-space: nowrap; overflow: hidden; }.truncate-stage > div:last-child p { max-width: 190px; text-overflow: ellipsis; }
.gallery-thumb { position: absolute; top: 35%; left: 10%; font-size: 32px; }.lightbox-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.72); }.photo-large { position: absolute; inset: 12% 20%; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg,#1d4ed8,#7c3aed); font-size: 48px; }.photo-large span { position: absolute; top: 7px; right: 9px; font-size: 15px; }
.marquee-stage { width: 76%; overflow: hidden; }.marquee-track { display: flex; gap: 10px; white-space: nowrap; animation: marquee 4s linear infinite; }.marquee-track span { padding: 10px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: #2e2f34; }.marquee-stage small { display: block; margin-top: 18px; color: #93969e; text-align: center; }

/* Full term page */
#detail-view { min-height: calc(100vh - 56px); }
.detail-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 24px 90px; }
.breadcrumbs { margin-bottom: 24px; display: flex; gap: 12px; color: var(--muted-foreground); font-size: 13px; }
.breadcrumbs a:hover { color: var(--foreground); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: start; gap: 40px; }
.detail-demo-column { position: sticky; top: 80px; }
.detail-demo-mat { position: relative; height: 340px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background-color: #181a1e; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 24px 24px; }
.detail-demo-mat .demo-scene { font-size: 15px; transform: scale(1.2); }
.detail-copy-column { position: relative; min-width: 0; }
.detail-page-actions { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
.page-action { height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-foreground); font-size: 12px; cursor: pointer; }
.page-action:hover { border-color: var(--border-strong); color: var(--foreground); }
.detail-copy-column > h1 { margin: 0; padding: 54px 120px 0 0; font-size: clamp(34px,4vw,46px); line-height: 1; letter-spacing: -.055em; }
.detail-apis { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 9px; color: var(--blue); }
.detail-apis code { font: 500 13px/1.5 var(--mono); }.detail-apis span { opacity: .65; }
.detail-aliases { margin: 14px 0 0; color: var(--muted-foreground); font-size: 13px; }.detail-aliases em { font-family: Georgia,serif; }
.detail-description { margin: 26px 0 0; font-size: 15px; line-height: 1.8; }
.detail-section { margin-top: 32px; }
.detail-section > h2 { margin: 0; color: var(--muted-foreground); font: 600 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.section-help { margin: 8px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.6; }
.anatomy-list { margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.anatomy-row { min-height: 98px; padding: 14px 14px 14px 16px; display: grid; grid-template-columns: 26px 1fr 24px; gap: 10px; border-bottom: 1px solid var(--border); }
.anatomy-row:last-child { border-bottom: 0; }.anatomy-number { width: 21px; height: 21px; margin-top: 3px; display: grid; place-items: center; border-radius: 50%; background: var(--secondary); color: var(--muted-foreground); font: 500 10px/1 var(--mono); }.anatomy-row h3 { margin: 0; font-size: 14px; }.anatomy-row code { display: block; margin-top: 4px; color: var(--blue); font: 500 11px/1.3 var(--mono); }.anatomy-row p { margin: 7px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.55; }.anatomy-row button,.code-table button { border: 0; background: transparent; color: var(--muted-foreground); cursor: pointer; }
.copy-block { position: relative; margin-top: 12px; padding: 14px 42px 14px 14px; border: 1px solid var(--border); border-radius: 9px; background: color-mix(in srgb,var(--secondary) 45%,transparent); }.copy-block pre { margin: 0; white-space: pre-wrap; color: color-mix(in srgb,var(--foreground) 82%,var(--muted-foreground)); font: 500 12px/1.75 var(--mono); }.copy-block button { position: absolute; top: 9px; right: 9px; border: 0; background: transparent; color: var(--muted-foreground); cursor: pointer; }
.code-table { margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; }.code-table > div { min-height: 51px; padding: 10px 12px; display: grid; grid-template-columns: 90px 1fr 24px; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }.code-table > div:last-child { border-bottom: 0; }.code-table span { color: var(--muted-foreground); font-size: 11px; }.code-table code { overflow-wrap: anywhere; color: var(--blue); font: 500 11px/1.5 var(--mono); }
.related-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }.related-links a { min-width: 140px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: 8px; }.related-links a:hover { border-color: var(--border-strong); }.related-links b { font-size: 12px; }.related-links span { color: var(--muted-foreground); font-size: 10px; }
.detail-active footer { display: none; }

@media (max-width: 900px) {
  .term-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-demo-column { position: static; }
  .detail-demo-mat { height: 360px; }
  .detail-copy-column > h1 { padding-top: 10px; }
}
@media (max-width: 640px) {
  .dictionary { padding-top: 12px; }
  .section-heading-row { align-items: stretch; }
  .section-heading-row > div:first-child { display: none; }
  .filter-tabs { width: auto; gap: 22px; overflow-x: auto; }
  .filter-tab { flex: none; }
  .term-grid { grid-template-columns: 1fr; gap: 38px; }
  .term-visual { aspect-ratio: 16/10; }
  .detail-page { padding: 24px 16px 60px; }
  .detail-demo-mat { height: 280px; }
  .detail-demo-mat .demo-scene { transform: scale(.95); }
  .detail-page-actions { position: static; margin-bottom: 24px; }
  .detail-copy-column > h1 { padding: 0; font-size: 36px; }
  .code-table > div { grid-template-columns: 66px 1fr 24px; }
}
