@font-face { font-family: 'Gilmer'; src: url('/assets/fonts/gilmer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilmer'; src: url('/assets/fonts/gilmer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilmer'; src: url('/assets/fonts/gilmer-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilmer'; src: url('/assets/fonts/gilmer-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --navy-950: #06142f;
  --navy-900: #091d43;
  --navy-800: #0d2a61;
  --navy-700: #123b82;
  --gold-500: #c8a45a;
  --gold-400: #ddc17c;
  --canvas: #f2f4f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #101828;
  --muted: #667085;
  --line: #e5e9f0;
  --accent: var(--gold-500);
  --buy: #b4233a;
  --sell: #087f4f;
  --shadow: 0 18px 48px rgba(9, 29, 67, .08);
  font-family: 'Gilmer', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--canvas); color: var(--text); -webkit-font-smoothing: antialiased; position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 18% 4%, rgba(33,92,187,.22), transparent 34%), radial-gradient(circle at 82% 12%, rgba(201,160,74,.10), transparent 28%), linear-gradient(180deg, rgba(8,20,42,.32), transparent 42%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold-400) 80%, white); outline-offset: 3px; }

.app-shell { width: min(1600px, 100%); margin: auto; padding: 20px 30px 0; position: relative; z-index: 1; }
.brand-header {
  min-height: 98px;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background-image: linear-gradient(118deg, var(--navy-950) 0%, var(--navy-800) 62%, #1a3180 100%);
  box-shadow: 0 16px 40px rgba(6, 20, 47, .18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  z-index: 20;
}
.brand-header::after { content: ''; position: absolute; width: 260px; height: 260px; right: 15%; top: -190px; border: 1px solid rgba(221,193,124,.3); border-radius: 50%; box-shadow: 0 0 0 36px rgba(221,193,124,.035), 0 0 0 72px rgba(221,193,124,.025); pointer-events: none; }
.wordmark { color: #fff; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; position: relative; z-index: 1; }
.brand-logo { display: block; width: auto; height: 54px; object-fit: contain; }
.brand-logo.logo-on-dark,.footer-logo.logo-on-dark { display: none; }
.brand-emblem { width: 54px; height: 54px; display: grid; place-items: center; flex: none; border: 1px solid rgba(221,193,124,.65); border-radius: 50%; color: var(--gold-400); font: 900 28px/1 Gilmer, sans-serif; box-shadow: inset 0 0 0 4px rgba(221,193,124,.07); }
.wordmark-copy { display: flex; flex-direction: column; }
.wordmark-copy strong { font: 900 27px/1 Gilmer, sans-serif; letter-spacing: .08em; }
.wordmark-copy small { color: var(--gold-400); font-size: 9px; font-weight: 700; letter-spacing: .34em; margin-top: 8px; }
.header-tools { position: relative; z-index: 1; text-align: right; }
.market-status { display: flex; gap: 16px; justify-content: flex-end; color: rgba(255,255,255,.64); font-size: 11px; margin-bottom: 10px; }
.market-status i { display: inline-block; width: 7px; height: 7px; background: #3ddc84; border-radius: 50%; box-shadow: 0 0 0 5px rgba(61,220,132,.13); margin-right: 7px; }
.market-status strong { color: #fff; }
.action-row { display: flex; gap: 7px; justify-content: flex-end; }
.pill { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; padding: 9px 14px; border-radius: 10px; font-size: 10px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.pill:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.pill.strong { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }

.announcement { margin: 12px 2px 0; padding: 11px 16px; border: 1px solid color-mix(in srgb, var(--gold-500) 32%, var(--line)); border-radius: 10px; background: #fffaf0; color: var(--muted); font-size: 11px; }
.announcement span { color: #987529; font-weight: 800; letter-spacing: .14em; margin-right: 10px; }
.market-summary { margin-top: 18px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.hero-heading { min-height: 108px; padding-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; }
.eyebrow { margin: 0 0 11px; color: #987529; font-size: 10px; font-weight: 800; letter-spacing: .24em; }
.hero-heading h1 { margin: 0; color: var(--navy-950); font-size: clamp(34px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -.05em; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 10px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.buy-dot { background: var(--buy); }
.sell-dot { background: var(--sell); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-card { min-width: 0; padding: 19px 18px; border: 1px solid #dfe6f1; border-radius: 14px; background: linear-gradient(145deg, #f8fafc, #f1f5fb); position: relative; }
.feature-card::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--gold-500); }
.feature-card p { margin: 0 0 10px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feature-card strong { color: var(--navy-900); font-size: clamp(27px, 2.6vw, 42px); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.feature-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.mini-change { position: absolute; right: 14px; top: 18px; color: var(--muted); font-size: 9px; font-weight: 700; }
.up { color: #168451 !important; }
.down { color: #c43c4d !important; }

.category-tabs { margin: 16px 0 10px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.88); display: flex; gap: 6px; overflow: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 9px 14px; font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; cursor: pointer; }
.category-tabs button.active { background: var(--navy-900); color: #fff; box-shadow: 0 5px 14px rgba(9,29,67,.18); }
.price-board { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.table-head, .price-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) minmax(180px, 260px); gap: 12px; align-items: center; }
.table-head { height: 44px; padding: 0 20px; background: var(--navy-950); color: rgba(255,255,255,.58); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.table-head span:nth-child(n+2) { text-align: center; }
.category-label { padding: 16px 20px 8px; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: #987529; font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.price-row { min-height: 76px; padding: 9px 14px 9px 20px; border-bottom: 1px solid var(--line); transition: background .2s, opacity .2s; }
.price-row.sell-only .price-cell.sell { grid-column: 3; }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: #fbfcfe; }
.product-name strong { color: var(--navy-950); font-size: clamp(16px, 1.35vw, 21px); letter-spacing: -.025em; }
.product-name small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.change { color: var(--muted); text-align: center; font-size: 10px; font-weight: 700; }
.price-cell { min-height: 54px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); display: grid; grid-template-columns: 1fr auto; align-items: center; position: relative; overflow: hidden; }
.price-cell::before { display: none; }
.price-cell.buy { color: #fff; border-color: #b20d2d; background: #b20d2d; }
.price-cell.sell { color: #fff; border-color: #006b35; background: #006b35; }
.price-cell small { position: absolute; top: 6px; left: 13px; color: #fff; opacity: .72; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.price-cell strong { margin-top: 7px; color: #fff; font-size: clamp(21px, 1.8vw, 29px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.price-cell span { color: #fff; opacity: .72; font-size: 8px; font-weight: 800; }
.flash-up,.flash-down { animation: pricePulse .8s; }
@keyframes pricePulse { 50% { filter: brightness(1.35); } }
.legal-note { margin: 0; padding: 12px 4px 34px; color: var(--muted); font-size: 8px; }

.calculator, .contact { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.calculator { padding: 38px; display: grid; grid-template-columns: .85fr 1.1fr .7fr; gap: 40px; }
.calculator h2, .contact h2 { margin: 0 0 12px; color: var(--navy-950); font-size: 34px; letter-spacing: -.05em; }
.calculator-copy > p:last-child, .contact > div > p:last-child { max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.calc-tabs { margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-tabs button { padding: 9px 0 11px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); text-align: left; font-size: 11px; font-weight: 700; cursor: pointer; }
.calc-tabs button.active { border-color: var(--gold-500); color: var(--navy-900); }
.calculator-form > label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.calc-input { border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.calc-input:focus-within { border-color: var(--gold-500); }
.calc-input input { width: 100%; padding: 8px 0 12px; border: 0; outline: 0; background: none; color: var(--navy-950); font: 700 27px Gilmer, sans-serif; }
.calc-input span { color: var(--muted); font-size: 10px; font-weight: 800; }
.calc-result { padding: 22px; border: 1px solid #dfe6f1; border-radius: 14px; background: #f5f8fc; }
.calc-result small { color: var(--muted); font-size: 9px; }
.calc-result strong { display: block; margin: 11px 0; color: var(--navy-900); font-size: 31px; letter-spacing: -.04em; }
.calc-result p { color: var(--muted); font-size: 8px; line-height: 1.5; }
.contact { padding: 36px 38px; display: grid; grid-template-columns: .9fr 1.2fr .55fr; align-items: center; gap: 36px; }
.contact dl { margin: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; }
.contact dl div { padding-left: 17px; border-left: 2px solid var(--gold-500); }
.contact dt { margin-bottom: 6px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .15em; }
.contact dd { margin: 0; color: var(--navy-950); font-size: 10px; font-weight: 700; line-height: 1.55; }
.contact-phone { color: inherit; text-decoration: none; }
.contact-phone:hover { color: var(--gold-500); }
.phone-cta { padding: 15px 18px; border-radius: 10px; background: var(--gold-500); color: var(--navy-950); text-align: center; text-decoration: none; font-size: 11px; font-weight: 900; }
.phone-cta span { margin-left: 7px; }
footer { height: 66px; padding: 0 4px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; font-size: 7px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.connection-note { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 10px 15px; border-radius: 8px; background: #7f1d1d; color: #fff; font-size: 10px; z-index: 50; }
.mobile-quick-nav { display: none; }
.mobile-install-chip { display: none; }
.tv-banners { display: flex; gap: 18px; padding: 18px 0; }
.tv-banners img { max-width: 100%; max-height: 12vh; }

.app-dialog { width: min(980px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 30px 100px rgba(6,20,47,.34); overflow: auto; }
.app-dialog::backdrop { background: rgba(3,10,25,.74); backdrop-filter: blur(8px); }
.dialog-head { padding: 24px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-head .eyebrow { margin-bottom: 6px; }
.dialog-head h2 { margin: 0; color: var(--navy-950); font-size: 30px; letter-spacing: -.04em; }
.dialog-head p:last-child { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 24px; cursor: pointer; }
.story-layout { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.story-template-toolbar { display: flex; align-items: end; justify-content: center; gap: 10px; }
.story-template-toolbar label { width: min(320px, 100%); color: var(--muted); font-size: 10px; font-weight: 700; }
.story-template-toolbar select { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text); font: 600 12px Gilmer, sans-serif; }
.pill.dark { background: var(--navy-900); color: #fff; }
.story-action-bar { width: min(650px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-action { width: 100%; padding: 15px 18px; border: 0; border-radius: 10px; font: 800 13px Gilmer, sans-serif; cursor: pointer; }
.story-action:disabled { opacity: .45; cursor: wait; }
.whatsapp-share { background: var(--gold-500); color: var(--navy-950); }
.story-action.secondary { border: 1px solid var(--line); background: var(--surface-soft); color: var(--text); }
#story-status { min-height: 16px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.story-preview-wrap { min-height: 590px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); display: grid; place-items: center; }
.story-preview-wrap img { display: block; max-width: 100%; height: min(65vh, 700px); aspect-ratio: 9/16; border-radius: 2px; object-fit: contain; box-shadow: 0 10px 34px rgba(0,0,0,.24); }
.story-preview-wrap img:not([src]) { opacity: 0; }
.install-dialog { width: min(560px, calc(100% - 28px)); }
.install-steps { padding: 24px 26px 12px; display: grid; gap: 12px; }
.install-steps > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; }
.install-steps strong { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; }
.install-steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.install-note { margin: 0; padding: 8px 26px 26px; color: var(--muted); font-size: 11px; line-height: 1.6; }

html[data-user-theme="dark"] { --canvas: #080d18; --surface: #0b1423; --surface-soft: #101b2b; --text: #f7f9fc; --muted: #9aa7ba; --line: #26364c; --shadow: none; color-scheme: dark; }
html[data-user-theme="dark"] .hero-heading h1,
html[data-user-theme="dark"] .feature-card strong,
html[data-user-theme="dark"] .product-name strong,
html[data-user-theme="dark"] .price-cell strong,
html[data-user-theme="dark"] .calculator h2,
html[data-user-theme="dark"] .contact h2,
html[data-user-theme="dark"] .contact dd,
html[data-user-theme="dark"] .calc-input input,
html[data-user-theme="dark"] .calc-result strong { color: #f8fafc; }
html[data-user-theme="dark"] .feature-card { border-color: var(--line); background: #090d13; }
html[data-user-theme="dark"] .price-row:hover { background: #111923; }
html[data-user-theme="dark"] .category-tabs { background: #0b1018; }
html[data-user-theme="dark"] .announcement { background: #201d20; }
html[data-user-theme="dark"] .calc-result { border-color: var(--line); background: #111923; }
html[data-user-theme="dark"] .dialog-head h2 { color: #f8fafc; }
html[data-user-theme="dark"] .logo-on-light { display: none; }
html[data-user-theme="dark"] .brand-logo.logo-on-dark,
html[data-user-theme="dark"] .footer-logo.logo-on-dark { display: block; }
html[data-user-theme="dark"] .calc-tabs button.active { color: #fff; }
html[data-lock-theme="dark"] body { background: #080d18; }
html[data-lock-theme="dark"] .brand-header,
html[data-lock-theme="dark"] .table-head { background: #05080d; }
html[data-lock-theme="dark"] .price-board { border-color: #242d39; background: #0b1018; }
html[data-lock-theme="dark"] .category-label { background: #111923; }

/* Minimal storefront — restrained surfaces, compact rhythm, clear live prices. */
html[data-design="minimal"]:not(.tv-document) .app-shell { width: min(1280px, 100%); padding: 16px 20px 0; }
html[data-design="minimal"]:not(.tv-document) .brand-header { min-height: 74px; padding: 12px 16px; border-color: rgba(221,193,124,.16); border-radius: 14px; background: var(--navy-950); box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .brand-header::after { display: none; }
html[data-design="minimal"]:not(.tv-document) .brand-emblem { width: 42px; height: 42px; border-radius: 11px; font-size: 23px; box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .brand-logo { height: 48px; }
html[data-design="minimal"]:not(.tv-document) .wordmark-copy strong { font-size: 22px; }
html[data-design="minimal"]:not(.tv-document) .wordmark-copy small { margin-top: 5px; }
html[data-design="minimal"]:not(.tv-document) .market-status { margin-bottom: 7px; }
html[data-design="minimal"]:not(.tv-document) .pill { padding: 8px 12px; border-radius: 8px; }
html[data-design="minimal"]:not(.tv-document) .market-summary { margin-top: 12px; padding: 28px 0 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .hero-heading { min-height: 88px; padding: 0 2px 22px; }
html[data-design="minimal"]:not(.tv-document) .hero-heading h1 { font-size: clamp(32px, 3.4vw, 46px); }
html[data-design="minimal"]:not(.tv-document) .featured-grid { gap: 8px; }
html[data-design="minimal"]:not(.tv-document) .feature-card { padding: 17px 16px; border-radius: 11px; background: var(--surface); box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .feature-card::before { top: 12px; bottom: 12px; width: 2px; }
html[data-design="minimal"]:not(.tv-document) .feature-card strong { font-size: clamp(25px, 2.3vw, 35px); }
html[data-design="minimal"]:not(.tv-document) .category-tabs { margin: 12px 0 8px; padding: 5px; border-radius: 10px; background: var(--surface); }
html[data-design="minimal"]:not(.tv-document) .category-tabs button { padding: 8px 12px; border-radius: 7px; }
html[data-design="minimal"]:not(.tv-document) .category-tabs button.active { box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .price-board { border-radius: 12px; box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .table-head { height: 42px; background: var(--navy-950); color: rgba(255,255,255,.6); border-bottom: 1px solid var(--line); }
html[data-design="minimal"]:not(.tv-document) .category-label { padding-top: 13px; }
html[data-design="minimal"]:not(.tv-document) .price-row { min-height: 78px; }
html[data-design="minimal"]:not(.tv-document) .price-cell { min-height: 56px; border-radius: 8px; box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .price-cell.buy { border-color: #b20d2d; background: #b20d2d; }
html[data-design="minimal"]:not(.tv-document) .price-cell.sell { border-color: #006b35; background: #006b35; }
html[data-design="minimal"]:not(.tv-document) .calculator,
html[data-design="minimal"]:not(.tv-document) .contact { margin-top: 12px; border-radius: 12px; box-shadow: none; }
html[data-design="minimal"]:not(.tv-document) .calculator { padding: 30px; }
html[data-design="minimal"]:not(.tv-document) .contact { padding: 28px 30px; }
html[data-design="minimal"]:not(.tv-document) .app-dialog { border-radius: 16px; box-shadow: 0 24px 70px rgba(3,10,25,.34); }
html[data-design="minimal"]:not(.tv-document) .story-preview-wrap { border-radius: 12px; }

/* Editorial price board — one continuous surface with restrained blue/gold atmosphere. */
html[data-design="minimal"]:not(.tv-document) .brand-header { padding-right: 0; padding-left: 0; border: 0; border-bottom: 1px solid rgba(221,193,124,.22); border-radius: 0; background: transparent; }
html[data-design="minimal"]:not(.tv-document) .market-summary { padding-top: 42px; }
html[data-design="minimal"]:not(.tv-document) .featured-grid { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,14,27,.28); }
html[data-design="minimal"]:not(.tv-document) .feature-card { padding: 22px 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; text-align: center; }
html[data-design="minimal"]:not(.tv-document) .feature-card:last-child { border-right: 0; }
html[data-design="minimal"]:not(.tv-document) .feature-card::before { display: none; }
html[data-design="minimal"]:not(.tv-document) .category-tabs { padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
html[data-design="minimal"]:not(.tv-document) .category-tabs button { border-radius: 3px; }
html[data-design="minimal"]:not(.tv-document) .category-tabs button.active { background: rgba(25,63,126,.72); }
html[data-design="minimal"]:not(.tv-document) .price-board { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(7,14,25,.38); }
html[data-design="minimal"]:not(.tv-document) .table-head { background: rgba(6,20,47,.62); }
html[data-design="minimal"]:not(.tv-document) .category-label { background: rgba(16,27,43,.76); }
html[data-design="minimal"]:not(.tv-document) .price-row { background: transparent; }
html[data-design="minimal"]:not(.tv-document) .price-cell { border-radius: 2px; }
html[data-design="minimal"]:not(.tv-document) .calculator,
html[data-design="minimal"]:not(.tv-document) .contact { border-right: 0; border-left: 0; border-radius: 0; background: rgba(11,20,35,.68); }

.tv-mode .app-shell { width: 100%; padding: 1.2vh 1.4vw 0; }
.tv-mode .brand-header { min-height: 9vh; padding: 1vh 1.2vw; border-radius: 1.2vh; }
.tv-mode .brand-emblem { width: 5.5vh; height: 5.5vh; font-size: 3vh; }
.tv-mode .brand-logo { height: 6vh; }
.tv-mode .wordmark-copy strong { font-size: 2.7vh; }
.tv-mode .market-summary { margin-top: 1.2vh; padding: 1.3vh 1.3vw; }
.tv-mode .hero-heading { min-height: 8vh; padding-bottom: 1.2vh; }
.tv-mode .hero-heading h1 { font-size: 4.3vh; }
.tv-mode .featured-grid { gap: .7vw; }
.tv-mode .feature-card { padding: 1.3vh 1vw; }
.tv-mode .feature-card strong { font-size: 3.5vh; }
.tv-mode .category-tabs { margin: 1vh 0; padding: .6vh; }
.tv-mode .price-row { min-height: 6.3vh; padding-top: .5vh; padding-bottom: .5vh; }
.tv-mode .price-cell { min-height: 4.7vh; }
.tv-mode .price-cell strong { font-size: 2.5vh; }
.tv-mode .product-name strong { font-size: 1.8vh; }

@media (max-width: 900px) {
  html { scroll-padding-top: 92px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .app-shell { padding: 0 12px; }
  .brand-header { min-height: 76px; margin: 0 -12px; padding: 12px 16px; border: 0; border-radius: 0 0 18px 18px; position: sticky; top: 0; }
  .brand-header::after { display: none; }
  .brand-emblem { width: 42px; height: 42px; font-size: 22px; }
  .brand-logo { width: 152px; height: auto; }
  .wordmark { gap: 10px; }
  .wordmark-copy strong { font-size: 20px; }
  .wordmark-copy small { margin-top: 5px; font-size: 7px; letter-spacing: .23em; }
  .market-status { margin: 0; font-size: 8px; }
  .market-status > span:not(:first-child) { display: none; }
  .market-status i { width: 6px; height: 6px; margin-right: 5px; }
  .action-row { display: none; }
  .announcement { margin-top: 10px; }
  .market-summary { margin-top: 10px; padding: 20px 14px 14px; border-radius: 16px; }
  .hero-heading { min-height: 92px; padding: 0 2px 18px; }
  .hero-heading h1 { max-width: 300px; font-size: 32px; }
  .eyebrow { font-size: 8px; letter-spacing: .18em; }
  .legend { display: none; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature-card { padding: 15px 12px; border-radius: 11px; }
  .feature-card strong { font-size: 24px; }
  .feature-card p { margin-bottom: 7px; font-size: 8px; }
  .mini-change { right: 10px; top: 13px; font-size: 7px; }
  .category-tabs { margin: 10px 0 8px; padding: 6px; position: sticky; top: 82px; z-index: 15; box-shadow: 0 8px 20px rgba(9,29,67,.08); }
  .category-tabs button { padding: 8px 11px; font-size: 9px; }
  .price-board { border-radius: 15px; }
  .table-head { display: none; }
  .category-label { padding: 14px 14px 7px; }
  .price-row { min-height: 0; padding: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-name { min-width: 0; grid-column: 1 / 3; }
  .product-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .change { grid-column: 2; grid-row: 1; text-align: right; }
  .price-cell { min-width: 0; min-height: 58px; padding: 9px 10px; }
  .price-cell.buy { grid-column: 1; }
  .price-cell.sell { grid-column: 2; }
  .price-row.sell-only .price-cell.sell { grid-column: 1 / 3; }
  .price-cell strong { overflow: hidden; font-size: clamp(17px, 5.2vw, 21px); text-overflow: ellipsis; }
  .price-cell small { left: 10px; }
  .legal-note { padding-bottom: 10px; }
  .calculator { padding: 26px 18px; grid-template-columns: 1fr; gap: 24px; }
  .calculator h2, .contact h2 { font-size: 30px; }
  .calc-result { padding: 18px; }
  .contact { padding: 26px 18px; grid-template-columns: 1fr; gap: 22px; }
  .contact dl { grid-template-columns: 1fr; }
  footer { height: auto; padding: 24px 4px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .mobile-quick-nav { height: calc(64px + env(safe-area-inset-bottom)); padding: 7px 10px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; }
  .mobile-quick-nav a,.mobile-quick-nav button { padding: 0; border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font: 800 8px Gilmer, sans-serif; }
  .mobile-quick-nav a span,.mobile-quick-nav button span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; font-size: 15px; }
  .mobile-quick-nav a.active { color: #987529; }
  .mobile-quick-nav a.active span { background: var(--navy-900); color: var(--gold-400); }
  .app-dialog { max-height: calc(100dvh - 16px); width: calc(100% - 16px); border-radius: 18px; }
  .dialog-head { padding: 18px; }
  .dialog-head h2 { font-size: 24px; }
  .story-layout { padding: 14px; gap: 12px; }
  .story-template-toolbar { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .story-template-toolbar label { flex: 1; }
  .story-template-toolbar .pill { grid-column: 1 / -1; align-self: end; }
  .story-preview-wrap { min-height: 390px; padding: 8px; }
  .story-preview-wrap img { height: min(52vh, 540px); }
  .story-action-bar { gap: 8px; }
  .story-action { padding: 13px 10px; font-size: 11px; }
  .connection-note { bottom: 78px; }
  .tv-mode { padding-bottom: 0; }
  .tv-mode .app-shell { padding: 0 8px; }
  .tv-mode .brand-header { min-height: 70px; }
  .tv-mode .market-summary { padding: 12px; }
  .tv-mode .hero-heading { min-height: 78px; }
  .tv-mode .hero-heading h1 { font-size: 29px; }
  .tv-mode .price-row { min-height: 0; }
  .tv-mode .price-cell strong { font-size: 18px; }
  .tv-mode .product-name strong { font-size: 15px; }

  html[data-design="minimal"]:not(.tv-document) .app-shell { padding: 0 14px; }
  html[data-design="minimal"]:not(.tv-document) .brand-header { min-height: 68px; margin: 0 -14px; padding: 10px 14px; border-width: 0 0 1px; border-radius: 0; }
  html[data-design="minimal"]:not(.tv-document) .brand-emblem { width: 38px; height: 38px; font-size: 20px; }
  html[data-design="minimal"]:not(.tv-document) .brand-logo { width: 145px; height: auto; }
  html[data-design="minimal"]:not(.tv-document) .wordmark-copy strong { font-size: 18px; }
  html[data-design="minimal"]:not(.tv-document) .header-tools { display: flex; align-items: center; gap: 9px; }
  html[data-design="minimal"]:not(.tv-document) .mobile-install-chip { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(221,193,124,.28); border-radius: 9px; background: rgba(255,255,255,.05); color: var(--gold-400); display: grid; place-items: center; font-size: 17px; }
  html[data-design="minimal"]:not(.tv-document) .market-summary { margin-top: 0; padding: 24px 0 6px; }
  html[data-design="minimal"]:not(.tv-document) .hero-heading { min-height: 78px; padding: 0 0 18px; }
  html[data-design="minimal"]:not(.tv-document) .hero-heading h1 { font-size: 29px; }
  html[data-design="minimal"]:not(.tv-document) .feature-card { padding: 14px 11px; border-radius: 9px; }
  html[data-design="minimal"]:not(.tv-document) .category-tabs { top: 74px; margin: 8px -2px 7px; box-shadow: none; }
  html[data-design="minimal"]:not(.tv-document) .price-board { border-radius: 10px; }
  html[data-design="minimal"]:not(.tv-document) .price-row { padding: 12px 10px; }
  html[data-design="minimal"]:not(.tv-document) .price-cell { min-height: 54px; }
  html[data-design="minimal"]:not(.tv-document) .calculator,
  html[data-design="minimal"]:not(.tv-document) .contact { padding: 23px 16px; border-radius: 10px; }
  html[data-design="minimal"]:not(.tv-document) .mobile-quick-nav { grid-template-columns: repeat(4, 1fr); }
  html[data-design="minimal"]:not(.tv-document) .story-layout { gap: 14px; }
  html[data-design="minimal"]:not(.tv-document) .story-preview-wrap { min-height: 350px; padding: 10px; }
  html[data-design="minimal"]:not(.tv-document) .featured-grid { gap: 0; }
  html[data-design="minimal"]:not(.tv-document) .feature-card { border-radius: 0; }
  html[data-design="minimal"]:not(.tv-document) .feature-card:nth-child(2) { border-right: 0; }
  html[data-design="minimal"]:not(.tv-document) .feature-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  html[data-design="minimal"]:not(.tv-document) .price-board { border-radius: 0; }
  html[data-design="minimal"]:not(.tv-document) .price-cell { border-radius: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* v14 UI/UX refinement: larger data, true themes and consistent application chrome. */
html[data-design="minimal"]:not(.tv-document) body::before { background: radial-gradient(circle at 12% 0%, rgba(35, 92, 183, .10), transparent 32%), radial-gradient(circle at 90% 4%, rgba(200, 164, 90, .08), transparent 28%); }
html[data-design="minimal"]:not(.tv-document) .brand-header { min-height: 78px; padding-top: 10px; padding-bottom: 10px; background: var(--navy-950); }
html[data-design="minimal"]:not(.tv-document) .brand-logo { width: auto; height: 58px; }
.theme-toggle { min-width: 76px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.theme-icon { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.theme-icon-sun { display: none; }
html[data-user-theme="dark"] .theme-icon-sun { display: block; }
html[data-user-theme="dark"] .theme-icon-moon { display: none; }

html[data-design="minimal"]:not(.tv-document) .market-summary,
html[data-design="minimal"]:not(.tv-document) .price-board { color: var(--text); }
html[data-design="minimal"]:not(.tv-document) .featured-grid { background: color-mix(in srgb, var(--surface) 88%, transparent); }
html[data-design="minimal"]:not(.tv-document) .feature-card strong { color: var(--text); font-size: clamp(30px, 3vw, 46px); font-weight: 700; font-variant-numeric: tabular-nums; }
html[data-design="minimal"]:not(.tv-document) .price-board { background: color-mix(in srgb, var(--surface) 96%, transparent); }
html[data-design="minimal"]:not(.tv-document) .category-label { background: var(--surface-soft); }
.price-cell { padding: 11px 16px; }
.price-cell strong { width: 100%; margin-top: 0; overflow: hidden; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-name strong { font-size: clamp(18px, 1.5vw, 23px); }

.glossary-promo { margin-top: 16px; padding: 26px 30px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 22px; text-decoration: none; }
.glossary-promo > span { width: 54px; height: 54px; border: 1px solid color-mix(in srgb, var(--gold-500) 45%, var(--line)); background: color-mix(in srgb, var(--gold-500) 10%, var(--surface)); display: grid; place-items: center; }
.glossary-promo img { width: 25px; height: 25px; color: var(--gold-500); }
.glossary-promo h2 { margin: 0 0 7px; font-size: 25px; }
.glossary-promo p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.glossary-promo > strong { color: var(--gold-500); font-size: 12px; }

.site-footer { height: auto; margin-top: 22px; padding: 42px 34px 0; background: var(--navy-950); color: #fff; display: block; font-size: 12px; letter-spacing: 0; text-transform: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 52px; }
.footer-logo { width: min(260px, 100%); height: auto; display: block; }
.footer-brand p { max-width: 410px; margin: 20px 0 0; color: #aab5c7; line-height: 1.7; }
.site-footer h2 { margin: 0 0 18px; color: var(--gold-400); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.site-footer a { color: #dfe5ef; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact > a,.footer-contact > p { margin: 0 0 16px; display: flex; align-items: flex-start; gap: 11px; color: #dfe5ef; line-height: 1.55; }
.footer-contact img { width: 18px; height: 18px; flex: 0 0 18px; filter: invert(84%) sepia(45%) saturate(492%); }
.footer-call { width: fit-content; margin-top: 8px !important; padding: 11px 16px; border: 1px solid color-mix(in srgb, var(--gold-500) 70%, var(--line)); color: var(--text) !important; font-weight: 800; }
.footer-bottom { margin-top: 34px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); color: #8793a7; font-size: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-credit { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; opacity: .9; white-space: nowrap; }
.footer-credit img { display: block; width: 68px; height: auto; max-height: 20px; object-fit: contain; filter: brightness(0) invert(1); }

.mobile-quick-nav a { min-height: 44px; }
.mobile-quick-nav a img { width: 22px; height: 22px; color: currentColor; opacity: .82; }
.mobile-quick-nav a.active img { filter: invert(70%) sepia(38%) saturate(625%); opacity: 1; }
.install-platform-panel[hidden] { display: none; }

html[data-user-theme="light"] { --canvas: #f4f6f9; --surface: #ffffff; --surface-soft: #f7f8fa; --text: #101828; --muted: #667085; --line: #dfe4eb; --shadow: 0 14px 38px rgba(9,29,67,.06); color-scheme: light; }
html[data-user-theme="light"] .hero-heading h1,
html[data-user-theme="light"] .product-name strong,
html[data-user-theme="light"] .calculator h2,
html[data-user-theme="light"] .contact h2,
html[data-user-theme="light"] .contact dd,
html[data-user-theme="light"] .calc-input input,
html[data-user-theme="light"] .calc-result strong { color: var(--text); }
html[data-user-theme="light"] .category-tabs button.active { background: var(--navy-900); }
html[data-user-theme="light"] .calculator,
html[data-user-theme="light"] .contact { background: var(--surface) !important; }
html[data-user-theme="light"] .brand-header { border-color: var(--line); background: var(--surface); color: var(--text); }
html[data-design="minimal"][data-user-theme="light"]:not(.tv-document) .brand-header { border-color: var(--line); background: var(--surface); color: var(--text); }
html[data-user-theme="light"] .wordmark { color: var(--text); }
html[data-user-theme="light"] .market-status { color: var(--muted); }
html[data-user-theme="light"] .market-status strong { color: var(--text); }
html[data-user-theme="light"] .pill { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
html[data-user-theme="light"] .pill:hover { background: color-mix(in srgb, var(--gold-500) 12%, var(--surface)); }
html[data-user-theme="light"] .pill.strong { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-950); }
html[data-user-theme="light"] .theme-icon { filter: none; }
html[data-user-theme="light"] .mobile-theme-chip { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
html[data-user-theme="light"] .site-footer { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
html[data-design="minimal"][data-user-theme="light"]:not(.tv-document) .site-footer { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
html[data-user-theme="light"] .footer-brand p,
html[data-user-theme="light"] .site-footer a,
html[data-user-theme="light"] .footer-contact > a,
html[data-user-theme="light"] .footer-contact > p { color: var(--muted); }
html[data-user-theme="light"] .footer-contact img { filter: invert(58%) sepia(36%) saturate(718%); }
html[data-user-theme="light"] .footer-bottom { border-color: var(--line); color: var(--muted); }
html[data-user-theme="light"] .footer-credit img { filter: none; }

@media (max-width: 760px) {
  html[data-design="minimal"]:not(.tv-document) .brand-logo { width: 174px; height: auto; }
  .action-row .theme-toggle { display: inline-flex; width: 36px; min-width: 36px; padding: 0; }
  .action-row .theme-toggle span { display: none; }
  .price-cell strong { font-size: clamp(22px, 7vw, 30px); }
  .glossary-promo { padding: 20px 16px; grid-template-columns: 44px 1fr; gap: 14px; }
  .glossary-promo > span { width: 44px; height: 44px; }
  .glossary-promo > strong { display: none; }
  .glossary-promo h2 { font-size: 22px; }
  .site-footer { margin-right: -14px; margin-left: -14px; padding: 34px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-logo { width: 220px; }
  html[data-design="minimal"]:not(.tv-document) .mobile-quick-nav { grid-template-columns: repeat(5, 1fr); }
}

/* Altın Sözlüğü and responsive application finishing layer. */
[hidden] { display: none !important; }
.mobile-header-actions,.mobile-theme-chip,.mobile-share-chip { display: none; }
.glossary-body { background: var(--canvas); color: var(--text); }
.glossary-shell { width: min(1280px, 100%); padding: 16px 20px 0; }
.glossary-shell .brand-header { min-height: 78px; padding: 10px 16px; border-radius: 14px; background: var(--navy-950); }
.glossary-shell .brand-logo { height: 58px; }
.glossary-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.glossary-hero { padding: clamp(54px, 8vw, 98px) 0 38px; text-align: center; }
.glossary-hero h1 { margin: 8px 0 16px; color: var(--text); font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.glossary-hero > p:not(.eyebrow) { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.75; }
.glossary-search { width: min(670px, 100%); min-height: 60px; margin: 34px auto 0; padding: 0 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; align-items: center; position: relative; }
.glossary-search span { width: 1px; height: 1px; overflow: hidden; position: absolute; clip: rect(0 0 0 0); }
.glossary-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 15px Gilmer, sans-serif; }
.glossary-search input::placeholder { color: var(--muted); }
.glossary-search b { color: var(--gold-500); font-size: 28px; font-weight: 400; }
.glossary-alphabet { padding: 14px; border-block: 1px solid var(--line); display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.glossary-alphabet button { min-width: 35px; height: 35px; padding: 0 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 700 11px Gilmer, sans-serif; }
.glossary-alphabet button:hover,.glossary-alphabet button.active { background: var(--navy-900); color: #fff; }
.glossary-count { padding: 28px 0 14px; color: var(--muted); font-size: 11px; }
.glossary-count strong { color: var(--text); }
.glossary-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.glossary-card { min-height: 150px; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); display: grid; grid-template-columns: 38px 1fr auto; align-items: start; gap: 15px; text-decoration: none; transition: background .18s ease, color .18s ease; }
.glossary-card:nth-child(3n) { border-right: 0; }
.glossary-card:hover { background: var(--surface); }
.glossary-card > span { width: 38px; height: 38px; border: 1px solid color-mix(in srgb, var(--gold-500) 45%, var(--line)); color: var(--gold-500); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.glossary-card h2 { margin: 3px 0 9px; color: var(--text); font-size: 18px; }
.glossary-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.glossary-card > b { color: var(--gold-500); font-size: 18px; }
.glossary-empty { padding: 52px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
.purity-section { margin-top: 72px; padding: 48px; background: var(--navy-950); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.purity-section h2 { margin: 8px 0 12px; font-size: clamp(28px, 3vw, 40px); }
.purity-section > div > p:last-child { max-width: 520px; color: #9eabbf; font-size: 12px; line-height: 1.75; }
.purity-table { border-top: 1px solid rgba(255,255,255,.18); }
.purity-table > div { padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 20px; }
.purity-table strong { color: #fff; }
.purity-table span { color: var(--gold-400); font-variant-numeric: tabular-nums; }
.term-main { min-height: 70vh; }
.breadcrumbs { padding: 30px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 9px; font-size: 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs strong { color: var(--text); }
.term-article { max-width: 900px; padding: clamp(60px, 8vw, 110px) 0 54px; }
.term-article h1 { margin: 10px 0 20px; color: var(--text); font-size: clamp(42px, 6vw, 72px); line-height: 1.05; letter-spacing: -.045em; }
.term-lead { max-width: 800px; margin: 0; color: var(--muted); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.5; }
.term-content { max-width: 760px; margin-top: 65px; }
.term-content h2,.related-terms h2 { color: var(--text); font-size: 25px; }
.term-content > p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.term-content aside { margin-top: 34px; padding: 24px 28px; border-left: 3px solid var(--gold-500); background: var(--surface); }
.term-content aside span { color: var(--gold-500); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.term-content aside p { margin: 8px 0 0; color: var(--text); line-height: 1.65; }
.related-terms { padding: 54px 0; border-top: 1px solid var(--line); }
.related-terms > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-terms a { min-height: 130px; padding: 24px; border: 1px solid var(--line); border-right: 0; color: var(--text); display: grid; grid-template-columns: 1fr auto; text-decoration: none; }
.related-terms a:last-child { border-right: 1px solid var(--line); }
.related-terms a strong { font-size: 17px; }
.related-terms a span { margin-top: 10px; color: var(--muted); grid-column: 1 / -1; font-size: 10px; line-height: 1.55; }
.related-terms a b { color: var(--gold-500); }
.back-to-glossary { margin: 0 0 70px; color: var(--gold-500); display: inline-block; font-size: 12px; font-weight: 800; text-decoration: none; }
html[data-user-theme="dark"] .glossary-search,html[data-user-theme="dark"] .glossary-card:hover,html[data-user-theme="dark"] .term-content aside { background: #0b1018; }
html[data-user-theme="light"] .glossary-shell .brand-header { border-color: var(--line); background: var(--surface); color: var(--text); }

@media (max-width: 900px) {
  .mobile-header-actions { display: flex; align-items: center; gap: 7px; }
  .mobile-theme-chip { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(221,193,124,.28); border-radius: 9px; background: rgba(255,255,255,.05); color: var(--gold-400); display: grid; place-items: center; }
  .mobile-theme-chip .theme-icon { width: 17px; height: 17px; }
  .mobile-share-chip { height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--gold-500); color: var(--navy-950); display: inline-flex; align-items: center; font: 800 9px Gilmer, sans-serif; }
  .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glossary-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .glossary-card:nth-child(2n) { border-right: 0; }
  .purity-section { padding: 36px; grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .mobile-header-actions { display: flex; align-items: center; gap: 7px; }
  .mobile-theme-chip { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(221,193,124,.28); border-radius: 9px; background: rgba(255,255,255,.05); color: var(--gold-400); display: grid; place-items: center; }
  .mobile-theme-chip .theme-icon { width: 17px; height: 17px; }
  .mobile-share-chip { height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--gold-500); color: var(--navy-950); display: inline-flex; align-items: center; font: 800 9px Gilmer, sans-serif; }
  .glossary-shell { padding: 0 14px; }
  .glossary-shell .brand-header { min-height: 68px; margin: 0 -14px; padding: 10px 14px; border-width: 0 0 1px; border-radius: 0; }
  .glossary-shell .brand-logo { width: 174px; height: auto; }
  .glossary-header-actions .pill:not(.theme-toggle),.glossary-header-actions .theme-toggle span { display: none; }
  .glossary-header-actions .theme-toggle { width: 36px; min-width: 36px; padding: 0; display: inline-flex; }
  .glossary-hero { padding: 52px 0 28px; text-align: left; }
  .glossary-hero h1 { font-size: 43px; }
  .glossary-hero > p:not(.eyebrow) { font-size: 13px; }
  .glossary-search { min-height: 54px; margin-top: 26px; }
  .glossary-alphabet { margin: 0 -14px; padding: 12px 14px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .glossary-alphabet button { flex: 0 0 auto; }
  .glossary-grid { grid-template-columns: 1fr; }
  .glossary-card,.glossary-card:nth-child(2n),.glossary-card:nth-child(3n) { min-height: 122px; padding: 21px 4px; border-right: 0; }
  .purity-section { margin: 55px -14px 0; padding: 34px 20px; }
  .breadcrumbs { padding-top: 20px; }
  .term-article { padding: 60px 0 42px; }
  .term-article h1 { font-size: 42px; }
  .term-content { margin-top: 48px; }
  .related-terms > div { grid-template-columns: 1fr; }
  .related-terms a,.related-terms a:last-child { border-right: 1px solid var(--line); border-bottom: 0; }
  .related-terms a:last-child { border-bottom: 1px solid var(--line); }
}

/* v15 flat-surface design system */
html[data-design="minimal"]:not(.tv-document) {
  --section-space: clamp(48px, 6vw, 84px);
  --flat-line: color-mix(in srgb, var(--line) 86%, transparent);
}
html[data-design="minimal"]:not(.tv-document) body {
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, #2f6bc7 10%, transparent), transparent 29%),
    radial-gradient(circle at 91% 4%, color-mix(in srgb, var(--gold-500) 12%, transparent), transparent 24%),
    var(--canvas);
}
html[data-design="minimal"]:not(.tv-document) body::before { display: none; }
html[data-design="minimal"]:not(.tv-document) .app-shell { width: min(1440px, 100%); padding: 0 36px; }
html[data-design="minimal"]:not(.tv-document) .brand-header {
  min-height: 96px;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--flat-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}
html[data-design="minimal"]:not(.tv-document) .brand-logo { height: 66px; }
html[data-design="minimal"]:not(.tv-document) .market-summary {
  margin: 0;
  padding: var(--section-space) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-design="minimal"]:not(.tv-document) .hero-heading { min-height: 116px; padding: 0 0 30px; }
html[data-design="minimal"]:not(.tv-document) .hero-heading h1 { font-size: clamp(42px, 4.4vw, 66px); }
html[data-design="minimal"]:not(.tv-document) .featured-grid {
  gap: 0;
  border-top: 1px solid var(--flat-line);
  border-bottom: 1px solid var(--flat-line);
  background: transparent;
}
html[data-design="minimal"]:not(.tv-document) .feature-card {
  min-height: 142px;
  padding: 30px 34px;
  border: 0;
  border-right: 1px solid var(--flat-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html[data-design="minimal"]:not(.tv-document) .feature-card:last-child { border-right: 0; }
html[data-design="minimal"]:not(.tv-document) .feature-card::before { display: none; }
html[data-design="minimal"]:not(.tv-document) .feature-card strong { font-size: clamp(34px, 3.5vw, 54px); }
html[data-design="minimal"]:not(.tv-document) .price-board {
  margin-top: 34px;
  border: 0;
  border-top: 1px solid var(--flat-line);
  border-bottom: 1px solid var(--flat-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
html[data-design="minimal"]:not(.tv-document) .table-head {
  height: 54px;
  padding-inline: 22px;
  border-bottom: 1px solid var(--flat-line);
  background: transparent;
  color: var(--muted);
}
html[data-design="minimal"]:not(.tv-document) .category-label {
  padding: 22px 22px 12px;
  border-bottom: 1px solid var(--flat-line);
  background: transparent;
}
html[data-design="minimal"]:not(.tv-document) .price-row {
  min-height: 92px;
  padding: 12px 14px 12px 22px;
  border-bottom: 1px solid var(--flat-line);
  background: transparent;
}
html[data-design="minimal"]:not(.tv-document) .price-row:hover { background: color-mix(in srgb, var(--surface) 34%, transparent); }
html[data-design="minimal"]:not(.tv-document) .price-cell {
  min-height: 62px;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}
html[data-design="minimal"]:not(.tv-document) .price-cell.buy {
  background: var(--buy) !important;
  color: #fff;
  border-left: 0;
}
html[data-design="minimal"]:not(.tv-document) .price-cell.sell {
  background: var(--sell) !important;
  color: #fff;
  border-left: 0;
}
html[data-design="minimal"]:not(.tv-document) .price-cell strong,
html[data-design="minimal"]:not(.tv-document) .price-cell small,
html[data-design="minimal"]:not(.tv-document) .price-cell span { color: inherit; }
html[data-design="minimal"]:not(.tv-document) .glossary-promo {
  margin-top: var(--section-space);
  padding: 34px 6px;
  border: 0;
  border-top: 1px solid var(--flat-line);
  border-bottom: 1px solid var(--flat-line);
  border-radius: 0;
  background: transparent;
}
html[data-design="minimal"]:not(.tv-document) .glossary-promo > span { border-radius: 50%; background: transparent; }
html[data-design="minimal"]:not(.tv-document) .calculator {
  margin-top: 0;
  padding: var(--section-space) 6px;
  border: 0;
  border-bottom: 1px solid var(--flat-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-design="minimal"]:not(.tv-document) .calc-result {
  padding: 12px 0 12px 36px;
  border: 0;
  border-left: 1px solid var(--flat-line);
  border-radius: 0;
  background: transparent;
}
html[data-design="minimal"]:not(.tv-document) .site-footer {
  margin-top: var(--section-space);
  padding: 54px 6px 0;
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}
html[data-design="minimal"]:not(.tv-document) .footer-brand p,
html[data-design="minimal"]:not(.tv-document) .site-footer a,
html[data-design="minimal"]:not(.tv-document) .footer-contact > a,
html[data-design="minimal"]:not(.tv-document) .footer-contact > p { color: var(--muted); }
html[data-design="minimal"]:not(.tv-document) .footer-bottom { border-color: var(--flat-line); color: var(--muted); }
html[data-design="minimal"]:not(.tv-document) .footer-bottom { border-top: 0; }
html[data-design="minimal"]:not(.tv-document) .footer-call { color: var(--text) !important; }
html[data-design="minimal"][data-user-theme="light"]:not(.tv-document) .brand-header,
html[data-design="minimal"][data-user-theme="dark"]:not(.tv-document) .brand-header,
html[data-design="minimal"][data-user-theme="light"]:not(.tv-document) .site-footer,
html[data-design="minimal"][data-user-theme="dark"]:not(.tv-document) .site-footer { background: transparent !important; }
html[data-design="minimal"][data-user-theme="light"]:not(.tv-document) .site-footer {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}
html[data-design="minimal"][data-user-theme="dark"]:not(.tv-document) .site-footer {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}
html[data-design="minimal"][data-user-theme="light"]:not(.tv-document) .calculator,
html[data-design="minimal"][data-user-theme="dark"]:not(.tv-document) .calculator,
html[data-design="minimal"][data-user-theme="light"]:not(.tv-document) .calc-result,
html[data-design="minimal"][data-user-theme="dark"]:not(.tv-document) .calc-result { background: transparent !important; }
html[data-design="minimal"][data-user-theme="dark"]:not(.tv-document) .price-cell.buy { background: #c8173a !important; color: #fff; border-left: 0; }
html[data-design="minimal"][data-user-theme="dark"]:not(.tv-document) .price-cell.sell { background: #087b4d !important; color: #fff; border-left: 0; }

@media (max-width: 900px) {
  html[data-design="minimal"]:not(.tv-document) .app-shell { padding: 0 18px; }
  html[data-design="minimal"]:not(.tv-document) .brand-header {
    min-height: 72px;
    margin: 0 -18px;
    padding: 9px 18px;
    border: 0;
    border-bottom: 1px solid var(--flat-line);
    border-radius: 0;
    background: color-mix(in srgb, var(--canvas) 88%, transparent);
    backdrop-filter: blur(18px);
  }
  html[data-design="minimal"]:not(.tv-document) .brand-logo { width: 154px; height: auto; }
  html[data-design="minimal"]:not(.tv-document) .market-summary { padding-top: 36px; }
  html[data-design="minimal"]:not(.tv-document) .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design="minimal"]:not(.tv-document) .feature-card { min-height: 112px; padding: 20px 16px; }
  html[data-design="minimal"]:not(.tv-document) .feature-card:nth-child(2) { border-right: 0; }
  html[data-design="minimal"]:not(.tv-document) .feature-card:nth-child(-n+2) { border-bottom: 1px solid var(--flat-line); }
  html[data-design="minimal"]:not(.tv-document) .price-board { margin-top: 22px; }
  html[data-design="minimal"]:not(.tv-document) .price-row { padding: 16px 0; }
  html[data-design="minimal"]:not(.tv-document) .category-label { padding-inline: 0; }
  html[data-design="minimal"]:not(.tv-document) .calculator { padding: 46px 0; }
  html[data-design="minimal"]:not(.tv-document) .calc-result { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--flat-line); }
  html[data-design="minimal"]:not(.tv-document) .site-footer { margin-right: 0; margin-left: 0; padding: 44px 0 0; }
}

/* v16 mobile header: iOS safe area and collision-free compact controls. */
@media (max-width: 900px) {
  html[data-design="minimal"]:not(.tv-document) .brand-header {
    min-height: calc(88px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    display: grid;
    grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    overflow: hidden;
  }
  html[data-design="minimal"]:not(.tv-document) .wordmark {
    width: 100%;
    min-width: 0;
  }
  html[data-design="minimal"]:not(.tv-document) .brand-logo {
    width: 130px;
    max-width: 100%;
    height: auto;
  }
  html[data-design="minimal"]:not(.tv-document) .header-tools {
    min-width: 0;
    display: grid;
    gap: 7px;
    justify-items: end;
  }
  html[data-design="minimal"]:not(.tv-document) .market-status {
    max-width: 100%;
    margin: 0;
    font-size: 7px;
    line-height: 1;
    white-space: nowrap;
  }
  html[data-design="minimal"]:not(.tv-document) .mobile-header-actions {
    max-width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 340px) {
  html[data-design="minimal"]:not(.tv-document) .brand-header {
    grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
    padding-right: 10px;
    padding-left: 10px;
  }
  html[data-design="minimal"]:not(.tv-document) .brand-logo { width: 112px; }
  html[data-design="minimal"]:not(.tv-document) .mobile-header-actions { gap: 5px; }
  html[data-design="minimal"]:not(.tv-document) .mobile-share-chip { padding-inline: 7px; }
}
