
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --bg: #F3F6F9; --bg-2: #EAF0F5; --panel: #FFFFFF; --panel-2: #F7F9FB; --panel-3: #EDF2F7;
  --rule: #D8E0E8; --rule-2: #BCC8D6; --text: #0B1220; --text-2: #22304A; --muted: #4E5B72;
  --gold: #7A5C20; --gold-2: #6E5320; --gold-ink: #FFFFFF; --link: #6E4F14; --focus: #6E4F14;
  --brand-blue: #053792; --brand-green: #048424; 
  --logo-blue: #053792; --logo-green: #048424; --logo-motto: #04841C; 
  --kicker: #047A21; 
  --plate-shadow: 0 0 0 1px #DCE3EB, 0 1px 2px rgba(17, 32, 61, .06), 0 6px 18px rgba(17, 32, 61, .07);
  --plate-shadow-up: 0 0 0 1px #CFD9E4, 0 2px 4px rgba(17, 32, 61, .07), 0 12px 28px rgba(17, 32, 61, .1);
  --danger: #B42318; --danger-bg: #FDECEA; --danger-rule: #F2B8B5;
  --warn: #8A5A00; --warn-bg: #FFF4DB; --ok: #1A7A4B; --ok-bg: #E8F6EE; --info: #1B4FA8; --info-bg: #EAF1FC;
  --t-system: #1F5FCC; --t-process: #6A4BD6; --t-state: #946300; --t-signal: #B8317A; --t-condition: #C0362C;
  --t-nutrient: #1A7A4B; --t-molecule: #0A7790; --t-supplement: #B4500F; --t-lifestyle: #0E7C70; --t-test: #4D586D;
  --g-established: #1A7A4B; --g-supported: #1F5FCC; --g-emerging: #8A5A00; --g-contested: #B42318;
  --c-gut: #2FA36A; --c-immune: #E0574F; --c-energy: #D39A16; --c-hormones: #7E62E0;
  --c-heart: #D8436B; --c-body: #3C7BE0; --c-rhythm: #1795B0; --c-brain: #C9478E;
  --edge: rgba(30, 55, 100, .17); --star: #8E9BB2;
  --glass: rgba(255, 255, 255, .82);
  --shadow: 0 18px 50px rgba(17, 32, 61, .14); --shadow-soft: 0 6px 20px rgba(17, 32, 61, .08);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .7);
  --body-weight: 400;
  --r-xl: 26px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --wrap: 1320px; --read: 68ch;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Lora", Georgia, serif;
  --fs: 1.0625rem;
  --header-h: 66px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070B14; --bg-2: #0A1120; --panel: #0E1526; --panel-2: #121B30; --panel-3: #17223A;
  --rule: #1D2942; --rule-2: #2A3A5C;
  --text: #E8ECF5; --text-2: #C5CEE0; --muted: #8D9AB4;
  --gold: #C6A15B; --gold-2: #E8D9B0; --gold-ink: #0B0F18; --link: #E8D9B0; --focus: #F2E3B8;
  --brand-blue: #2C6FE3; --brand-green: #0DAE3A; 
  --kicker: #0DAE3A;
  --plate-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px rgba(0, 0, 0, .4);
  --plate-shadow-up: 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 4px rgba(0, 0, 0, .45), 0 16px 36px rgba(0, 0, 0, .46);
  --danger: #FF8A8A; --danger-bg: #2A1015; --danger-rule: #6B2530;
  --warn: #F5C46B; --warn-bg: #241B0A; --ok: #6BDCA4; --ok-bg: #0C2219; --info: #7FB0FF; --info-bg: #0E1A33;
  --t-system: #6EA8FF; --t-process: #B39DFF; --t-state: #F5C451; --t-signal: #F98CC5; --t-condition: #FF8E8E;
  --t-nutrient: #6BDCA4; --t-molecule: #4FD6EE; --t-supplement: #FDA766; --t-lifestyle: #45D6C3; --t-test: #C4CEE0;
  --g-established: #6BDCA4; --g-supported: #7FB0FF; --g-emerging: #F5C451; --g-contested: #FF8E8E;
  --c-gut: #7BD9A0; --c-immune: #FF8E8E; --c-energy: #F5C451; --c-hormones: #B39DFF;
  --c-heart: #FF7A9A; --c-body: #6EA8FF; --c-rhythm: #4FD6EE; --c-brain: #F98CC5;
  --edge: rgba(150, 175, 225, .17); --star: #B9C8EA;
  --glass: rgba(14, 21, 38, .78);
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, .35);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .04);
  --body-weight: 300;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #070B14; --bg-2: #0A1120; --panel: #0E1526; --panel-2: #121B30; --panel-3: #17223A;
    --rule: #1D2942; --rule-2: #2A3A5C;
    --text: #E8ECF5; --text-2: #C5CEE0; --muted: #8D9AB4;
    --gold: #C6A15B; --gold-2: #E8D9B0; --gold-ink: #0B0F18; --link: #E8D9B0; --focus: #F2E3B8;
    --brand-blue: #2C6FE3; --brand-green: #0DAE3A; 
    --kicker: #0DAE3A;
    --plate-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px rgba(0, 0, 0, .4);
    --plate-shadow-up: 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 4px rgba(0, 0, 0, .45), 0 16px 36px rgba(0, 0, 0, .46);
    --danger: #FF8A8A; --danger-bg: #2A1015; --danger-rule: #6B2530;
    --warn: #F5C46B; --warn-bg: #241B0A; --ok: #6BDCA4; --ok-bg: #0C2219; --info: #7FB0FF; --info-bg: #0E1A33;
    --t-system: #6EA8FF; --t-process: #B39DFF; --t-state: #F5C451; --t-signal: #F98CC5; --t-condition: #FF8E8E;
    --t-nutrient: #6BDCA4; --t-molecule: #4FD6EE; --t-supplement: #FDA766; --t-lifestyle: #45D6C3; --t-test: #C4CEE0;
    --g-established: #6BDCA4; --g-supported: #7FB0FF; --g-emerging: #F5C451; --g-contested: #FF8E8E;
    --c-gut: #7BD9A0; --c-immune: #FF8E8E; --c-energy: #F5C451; --c-hormones: #B39DFF;
    --c-heart: #FF7A9A; --c-body: #6EA8FF; --c-rhythm: #4FD6EE; --c-brain: #F98CC5;
    --edge: rgba(150, 175, 225, .17); --star: #B9C8EA;
    --glass: rgba(14, 21, 38, .78);
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, .35);
    --lift: inset 0 1px 0 rgba(255, 255, 255, .04);
    --body-weight: 300;
  }
}
:root[data-text="large"] { --fs: 1.1875rem; }
:root[data-text="xlarge"] { --fs: 1.3125rem; }
:root[data-contrast="more"] { --muted: var(--text-2); --rule: var(--rule-2); --edge: rgba(150, 175, 225, .32); }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs); font-weight: var(--body-weight); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.has-field { background-image: radial-gradient(1100px 520px at 88% -8%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 62%), radial-gradient(900px 520px at -8% 18%, color-mix(in srgb, var(--t-system) 7%, transparent), transparent 62%); background-repeat: no-repeat; }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--gold-ink); }
strong, b { font-weight: 600; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--text); text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -.02em; }
h3 { font-size: 1.3125rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .3em 0; }
small, .small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
blockquote, .pull { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.25em; line-height: 1.5; color: var(--text); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.read { max-width: var(--read); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .fillme { fill: currentColor; stroke: none; }
.is-hidden { display: none !important; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 17px 6px 9px; border-radius: 15px; text-decoration: none; color: var(--logo-blue);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #F4F7FB 100%); box-shadow: var(--plate-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.brand:hover { transform: translateY(-1px); box-shadow: var(--plate-shadow-up); }
.brand:focus-visible { border-radius: 15px; }
.brand__mark { width: auto; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; align-items: center; line-height: 1.05; min-width: 0; }
.brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.brand__name .b1, .brand__name .b3 { color: var(--logo-blue); } .brand__name .b2 { color: var(--logo-green); }
.brand__tag { font-size: .7rem; font-weight: 600; letter-spacing: .03em; color: var(--logo-motto); white-space: nowrap; margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .brand, .brand:hover { transition: none; transform: none; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 6px 0 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__list a, .nav__more { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav__list a:hover, .nav__more:hover { background: var(--panel-2); color: var(--text); }
.nav__list a[aria-current="page"], .nav__more[data-current] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--gold); }
.nav__menu a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: none; }
.nav__more .icon { width: .9em; height: .9em; transition: transform .2s ease; }
.nav__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { position: relative; }
.nav__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow), var(--lift); padding: 8px; list-style: none; margin: 0; display: none; }
.nav__menu.is-open { display: block; animation: pop .16s ease-out; }
.nav__menu a { display: flex; padding: 10px 12px; width: 100%; }
.nav__menu .sep { border-top: 1px solid var(--rule); margin: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel); color: var(--text); cursor: pointer; font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none; box-shadow: var(--lift); }
.icon-btn:hover { border-color: var(--rule-2); background: var(--panel-2); }
.icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn[aria-pressed="true"], .icon-btn.has-filters { border-color: var(--gold); color: var(--gold-2); }
.search-btn kbd { font-family: inherit; font-size: .72rem; padding: 2px 7px; border: 1px solid var(--rule-2); border-radius: 6px; color: var(--muted); }
.search-btn .lbl { color: var(--muted); }
.menu-btn { display: none; }
@media (max-width: 1180px) { .nav__list { display: none; } .menu-btn { display: inline-flex; } }
.site-header .menu-btn { background: var(--logo-green); border-color: var(--logo-green); color: #FFFFFF; box-shadow: none; }
.site-header .menu-btn:hover { background: #036A1D; border-color: #036A1D; }
.theme-btn { background: #0E1526; border-color: #0E1526; color: #E8ECF5; box-shadow: none; }
.theme-btn:hover { background: #22304A; border-color: #22304A; }
:root[data-theme="dark"] .theme-btn { background: #FFFFFF; border-color: #FFFFFF; color: #0B1220; }
:root[data-theme="dark"] .theme-btn:hover { background: #DCE3EB; border-color: #DCE3EB; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .theme-btn { background: #FFFFFF; border-color: #FFFFFF; color: #0B1220; }
  :root[data-theme="system"] .theme-btn:hover { background: #DCE3EB; border-color: #DCE3EB; }
}
@media (max-width: 640px) { .search-btn kbd, .search-btn .lbl { display: none; } }
@media (max-width: 400px) { .brand { padding: 5px 13px 5px 7px; gap: 8px; border-radius: 13px; } .brand:focus-visible { border-radius: 13px; } .brand__mark { height: 34px; } .brand__name { font-size: 1.08rem; } .brand__tag { font-size: .62rem; margin-top: 2px; } }
@media (max-width: 360px) {
  .site-header__bar { gap: 8px; }
  .site-header__bar .brand { padding: 4px 10px 4px 6px; gap: 6px; border-radius: 12px; } .site-header__bar .brand:focus-visible { border-radius: 12px; } .site-header__bar .brand__mark { height: 31px; } .site-header__bar .brand__name { font-size: 1rem; } .site-header__bar .brand__tag { display: none; }
  .site-header .icon-btn { min-width: 40px; height: 40px; padding: 0 9px; border-radius: 11px; }
}
a[href^="tel:"]:not(.helpline) { white-space: nowrap; }
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(3, 6, 12, .62); animation: fade .2s ease-out; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(90vw, 390px); background: var(--panel); border-left: 1px solid var(--rule); padding: 14px 16px 24px; overflow-y: auto; box-shadow: var(--shadow); animation: slidein .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.drawer__nav { list-style: none; padding: 0; margin: 0; }
.drawer__nav li { margin: 0; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; }
.drawer__nav a .icon { color: var(--muted); }
.drawer__nav a:hover, .drawer__nav a[aria-current="page"] { background: var(--panel-2); }
.drawer__group { margin: 16px 0 4px; font-size: .82rem; font-weight: 600; color: var(--gold-2); padding: 0 10px; }
.drawer__help { margin-top: 18px; padding: 14px; border-radius: var(--r); background: var(--danger-bg); border: 1px solid var(--danger-rule); font-size: .92rem; }
.drawer__help a { color: var(--danger); font-weight: 600; }
main { display: block; }
.section { padding: clamp(44px, 6vw, 88px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--plate { background: var(--bg-2); border-block: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 58ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--text-2); max-width: 62ch; line-height: 1.6; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 500; font-size: .95rem; margin-bottom: 10px; }
.crumbs { font-size: .86rem; color: var(--muted); margin: 20px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--rule-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1080px) and (min-width: 701px) { .grid--3.grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid--3:not(.grid--even) { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 13px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; line-height: 1.2; transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: linear-gradient(180deg, #8F6E2E, #6F531B); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--gold:hover { box-shadow: 0 14px 34px color-mix(in srgb, var(--gold) 42%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
:root[data-theme="dark"] .btn--gold { background: linear-gradient(180deg, #DDBD7E, var(--gold)); color: #0B0F18; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .btn--gold { background: linear-gradient(180deg, #DDBD7E, var(--gold)); color: #0B0F18; } }
.btn--ghost { background: color-mix(in srgb, var(--panel) 40%, transparent); color: var(--text); border-color: var(--rule-2); }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--gold); }
.btn--soft { background: var(--panel-2); color: var(--text); border-color: var(--rule); box-shadow: var(--lift); }
.btn--soft:hover { border-color: var(--rule-2); }
.btn--soft[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; border-radius: 11px; gap: 8px; }
.btn--danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-rule); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--panel); color: var(--text-2); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--panel-3); color: var(--text); border-color: color-mix(in srgb, currentColor 55%, var(--rule-2)); }
.chip[aria-pressed="false"] { opacity: .55; }
.chip[aria-pressed="false"] .swatch { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip .swatch { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.chip.t-system, .chip.t-process, .chip.t-state, .chip.t-signal, .chip.t-condition, .chip.t-nutrient, .chip.t-molecule, .chip.t-supplement, .chip.t-lifestyle, .chip.t-test { color: var(--text-2); }
.chip.t-system .swatch { background: var(--t-system); } .chip.t-process .swatch { background: var(--t-process); } .chip.t-state .swatch { background: var(--t-state); }
.chip.t-signal .swatch { background: var(--t-signal); } .chip.t-condition .swatch { background: var(--t-condition); } .chip.t-nutrient .swatch { background: var(--t-nutrient); }
.chip.t-molecule .swatch { background: var(--t-molecule); } .chip.t-supplement .swatch { background: var(--t-supplement); } .chip.t-lifestyle .swatch { background: var(--t-lifestyle); }
.chip.t-test .swatch { background: var(--t-test); }
.chip[aria-pressed="false"].t-system .swatch, .chip[aria-pressed="false"].t-process .swatch, .chip[aria-pressed="false"].t-state .swatch, .chip[aria-pressed="false"].t-signal .swatch, .chip[aria-pressed="false"].t-condition .swatch, .chip[aria-pressed="false"].t-nutrient .swatch, .chip[aria-pressed="false"].t-molecule .swatch, .chip[aria-pressed="false"].t-supplement .swatch, .chip[aria-pressed="false"].t-lifestyle .swatch, .chip[aria-pressed="false"].t-test .swatch { background: transparent; }
.t-system { color: var(--t-system); } .t-process { color: var(--t-process); } .t-state { color: var(--t-state); } .t-signal { color: var(--t-signal); }
.t-condition { color: var(--t-condition); } .t-nutrient { color: var(--t-nutrient); } .t-molecule { color: var(--t-molecule); } .t-supplement { color: var(--t-supplement); }
.t-lifestyle { color: var(--t-lifestyle); } .t-test { color: var(--t-test); } .t-gold { color: var(--gold-2); }
.type-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; }
.type-badge .icon { width: 1.25em; height: 1.25em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); white-space: nowrap; line-height: 1.6; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--established { color: var(--g-established); } .badge--supported { color: var(--g-supported); }
.badge--emerging { color: var(--g-emerging); } .badge--contested { color: var(--g-contested); }
.chip.badge--established, .chip.badge--supported, .chip.badge--emerging, .chip.badge--contested { background: var(--panel); font-size: .9rem; padding: 6px 14px; line-height: inherit; }
.chip.c-gut .swatch { background: var(--c-gut); } .chip.c-immune .swatch { background: var(--c-immune); } .chip.c-energy .swatch { background: var(--c-energy); }
.chip.c-hormones .swatch { background: var(--c-hormones); } .chip.c-heart .swatch { background: var(--c-heart); } .chip.c-body .swatch { background: var(--c-body); }
.chip.c-rhythm .swatch { background: var(--c-rhythm); } .chip.c-brain .swatch { background: var(--c-brain); }
.chip[aria-pressed="false"][class*=" c-"] .swatch { background: transparent; }
.callout { border: 1px solid var(--rule-2); border-left: 3px solid var(--gold); background: var(--panel); border-radius: var(--r-sm); padding: 16px 18px; margin: 1.25rem 0; box-shadow: var(--lift); }
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3, .callout h4 { margin-top: 0; font-size: 1.06rem; }
.callout__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.callout--urgent { border-color: var(--danger-rule); border-left-color: var(--danger); background: var(--danger-bg); }
.callout--urgent .callout__label, .callout--urgent h2, .callout--urgent h3 { color: var(--danger); }
.callout--urgent a { color: var(--danger); font-weight: 600; }
.callout--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout--ok { border-left-color: var(--ok); background: var(--ok-bg); }
.callout--info { border-left-color: var(--info); background: var(--info-bg); }
.callout--myth { border-left-color: var(--g-contested); }
.callout--myth .callout__label { color: var(--g-contested); }
.hero { position: relative; min-height: min(90vh, 920px); display: flex; align-items: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--rule); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; touch-action: pan-y; opacity: 0; transition: opacity .9s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas.is-over-node { cursor: pointer; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 32%, color-mix(in srgb, var(--bg) 25%, transparent) 56%, transparent 72%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(0deg, var(--bg), transparent); }
.hero__content { width: min(100% - 32px, var(--wrap)); margin-inline: auto; padding: clamp(40px, 7vw, 96px) 0; }
.hero__inner { max-width: 600px; }
.hero__kicker { max-width: 30ch; margin: 0 0 .55em; color: var(--kicker); font-size: clamp(1.12rem, 1rem + .6vw, 1.4rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6em; }
.hero__foot { margin-top: 26px; color: var(--muted); font-size: .92rem; max-width: 52ch; }
.hero__tip { position: absolute; right: 24px; bottom: 22px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--rule-2); font-size: .85rem; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__tip.is-on { opacity: 1; transform: none; }
.hero__noscript { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 60% at 70% 45%, color-mix(in srgb, var(--t-system) 16%, transparent), transparent 70%); }
@media (max-width: 979px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__canvas { position: relative; inset: auto; height: 58vh; min-height: 340px; max-height: 560px; z-index: 0; }
  .hero::before { background: linear-gradient(180deg, transparent 0, transparent 44vh, var(--bg) 58vh); }
  .hero::after { display: none; }
  .hero__content { margin-top: -14vh; position: relative; z-index: 1; padding-top: 0; }
  .hero__inner { max-width: 100%; }
}
.safety { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 18px 22px; border-radius: var(--r-lg); border: 1px solid var(--danger-rule); background: linear-gradient(100deg, var(--danger-bg), var(--panel) 70%); }
.safety > .icon { width: 30px; height: 30px; color: var(--danger); }
.safety p { margin: 0; }
.safety strong { color: var(--text); }
@media (max-width: 760px) { .safety { grid-template-columns: auto minmax(0, 1fr); } .safety .btn-row { grid-column: 1 / -1; } }
.grammar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 960px) { .grammar { grid-template-columns: 1fr; } }
.plate { position: relative; border-radius: var(--r-xl); border: 1px solid var(--rule); background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--t-molecule) 7%, transparent), transparent 60%), var(--panel); padding: clamp(20px, 3vw, 32px); box-shadow: var(--lift); }
.plate h3 { margin-bottom: .3em; }
.plate > p { color: var(--muted); }
.typekey { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.typekey li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; margin: 0; }
.typekey .node-dot { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid currentColor; background: color-mix(in srgb, currentColor 13%, var(--panel)); box-shadow: 0 0 18px color-mix(in srgb, currentColor 40%, transparent); }
.typekey .node-dot .icon { width: 20px; height: 20px; }
.typekey strong { display: block; color: var(--text); font-size: .98rem; }
.typekey span { font-size: .85rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 520px) { .typekey { grid-template-columns: 1fr; } }
.linekey { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.linekey li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin: 0; }
.linekey svg { width: 96px; height: 16px; overflow: visible; }
.linekey line { stroke-width: 2.4; stroke-linecap: round; }
.linekey strong { display: block; }
.linekey span { color: var(--muted); font-size: .88rem; line-height: 1.45; display: block; }
.ln-established line { stroke: var(--g-established); } .ln-supported line { stroke: var(--g-supported); }
.ln-emerging line { stroke: var(--g-emerging); stroke-dasharray: 8 6; } .ln-contested line { stroke: var(--g-contested); stroke-dasharray: 1 6; }
.ln-gold line { stroke: var(--gold); stroke-width: 4; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) and (min-width: 701px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ways { grid-template-columns: 1fr; } }
.way { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--panel); color: var(--text); text-decoration: none; overflow: hidden; box-shadow: var(--lift); transition: border-color .18s ease, transform .18s ease; }
.way:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--rule)); transform: translateY(-2px); }
.way h3 { margin: 0; font-size: 1.25rem; }
.way p { margin: 0; color: var(--text-2); font-size: .97rem; }
.way__go { margin-top: auto; padding-top: 8px; color: var(--gold-2); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.way__visual { height: 112px; margin: -4px 0 6px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--rule); padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; font-size: .86rem; }
.mini-q { align-self: flex-end; background: var(--panel-3); border: 1px solid var(--rule-2); padding: 5px 10px; border-radius: 12px 12px 4px 12px; color: var(--text-2); }
.mini-a { align-self: flex-start; background: var(--panel); border: 1px solid var(--rule); padding: 5px 10px; border-radius: 12px 12px 12px 4px; color: var(--text-2); }
.mini-a b { color: var(--t-nutrient); font-weight: 600; }
.mini-steps { display: flex; align-items: center; gap: 0; }
.mini-steps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); background: var(--panel); flex: none; }
.mini-steps i.on { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.mini-steps em { flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), var(--rule-2)); }
.mini-range { position: relative; height: 10px; border-radius: 999px; display: flex; overflow: hidden; }
.mini-range span { flex: 1; }
.mini-range .r1 { background: color-mix(in srgb, var(--info) 55%, transparent); } .mini-range .r2 { background: color-mix(in srgb, var(--ok) 60%, transparent); flex: 1.6; } .mini-range .r3 { background: color-mix(in srgb, var(--warn) 55%, transparent); }
.mini-mark { position: relative; height: 16px; margin-top: -2px; }
.mini-mark i { position: absolute; left: 47%; top: 0; width: 3px; height: 16px; border-radius: 2px; background: var(--text); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mini-list li { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.mini-list .icon { width: 1em; height: 1em; }
.grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .grades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grades { grid-template-columns: 1fr; } }
.grade-card { padding: 18px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--panel); box-shadow: var(--lift); }
.grade-card p { margin: 8px 0 0; font-size: .92rem; color: var(--text-2); }
.grade-card .count { display: block; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; list-style: none; padding: 0; margin: 22px 0 0; }
@media (max-width: 900px) { .sources { grid-template-columns: 1fr; } }
.sources li { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.sources span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.tour-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; margin-bottom: 18px; }
@media (max-width: 900px) { .tour-feature { grid-template-columns: 1fr; } }
.tourcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--panel); text-decoration: none; color: var(--text); box-shadow: var(--lift); transition: border-color .18s ease, transform .18s ease; }
.tourcard:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--rule)); transform: translateY(-2px); }
.tourcard h3, .tourcard h2 { margin: 0; font-size: 1.15rem; }
.tourcard h2 a, .tourcard h3 a { color: var(--text); text-decoration: none; }
.tourcard h2 a:hover, .tourcard h3 a:hover { color: var(--gold-2); text-decoration: underline; }
.tourcard p { margin: 0; color: var(--text-2); font-size: .95rem; }
.tourcard .meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .86rem; display: flex; gap: 14px; flex-wrap: wrap; }
.tourcard--big { padding: clamp(22px, 3vw, 34px); background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%), var(--panel); }
.tourcard--big h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.tourcard .steps-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.tourcard .steps-line li { margin: 0; font-size: .82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--text-2); }
.appnote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; align-items: center; padding: clamp(18px, 3vw, 26px); border-radius: var(--r-xl); border: 1px solid var(--rule); background: var(--panel-2); box-shadow: var(--lift); }
.appnote__icon { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--t-system); background: color-mix(in srgb, var(--t-system) 10%, transparent); border: 1px solid color-mix(in srgb, var(--t-system) 28%, transparent); }
.appnote__icon .icon { width: 28px; height: 28px; }
.appnote h2 { font-size: 1.25rem; margin: 0 0 .3em; }
.appnote p { margin: 0; color: var(--text-2); max-width: 70ch; }
.appnote__platforms { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.appnote__platforms li { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--panel); font-size: .9rem; color: var(--muted); }
.appnote__platforms li strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.appnote__platforms .icon { width: 18px; height: 18px; color: var(--text-2); }
.appnote__how { grid-column: 2; justify-self: start; }
@media (max-width: 760px) { .appnote { grid-template-columns: 1fr; } .appnote__platforms, .appnote__how { grid-column: 1; } }
.venture { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--rule)); background: linear-gradient(115deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%), var(--panel); }
.venture__seal { width: 70px; height: 70px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold-2); }
.venture__seal .icon { width: 30px; height: 30px; }
.venture h2 { font-size: 1.35rem; margin: 0 0 .3em; }
.venture p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .venture { grid-template-columns: 1fr; } }
.page-head { padding: 10px 0 8px; }
.page-head h1 { margin: 14px 0 10px; }
.page-head .lead { margin-bottom: 0; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.topic-head { position: relative; padding: 8px 0 26px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
.topic-head::before { content: ""; position: absolute; inset: -40px calc(50% - 50vw) 0 calc(50% - 50vw); z-index: -1; background: radial-gradient(700px 260px at 18% 0%, color-mix(in srgb, var(--accent, var(--gold)) 13%, transparent), transparent 70%); pointer-events: none; }
.topic-head h1 { margin: 12px 0 6px; }
.aka { color: var(--muted); font-size: .98rem; margin: 0 0 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.acc-system { --accent: var(--t-system); } .acc-process { --accent: var(--t-process); } .acc-state { --accent: var(--t-state); } .acc-signal { --accent: var(--t-signal); }
.acc-condition { --accent: var(--t-condition); } .acc-nutrient { --accent: var(--t-nutrient); } .acc-molecule { --accent: var(--t-molecule); } .acc-supplement { --accent: var(--t-supplement); }
.acc-lifestyle { --accent: var(--t-lifestyle); } .acc-test { --accent: var(--t-test); }
.layout-article { display: grid; grid-template-columns: 210px minmax(0, 1fr) 340px; gap: 44px; align-items: start; padding-bottom: 72px; }
@media (max-width: 1240px) { .layout-article { grid-template-columns: minmax(0, 1fr) 320px; } .toc { display: none; } }
@media (max-width: 980px) { .layout-article { grid-template-columns: 1fr; gap: 28px; } }
.toc { position: sticky; top: calc(var(--header-h) + 22px); font-size: .9rem; }
.toc p { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--gold); }
.article { min-width: 0; max-width: var(--read); }
.article > section { scroll-margin-top: calc(var(--header-h) + 20px); }
.article h2 { margin-top: 2.4rem; font-size: 1.5rem; }
.article h2:first-child { margin-top: 0; }
.article .summary { font-size: 1.2em; line-height: 1.55; color: var(--text); font-weight: 400; }
.side { position: sticky; top: calc(var(--header-h) + 22px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 980px) { .side { position: static; } }
.card { position: relative; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; box-shadow: var(--lift); }
.card h2, .card h3 { font-size: 1.05rem; margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.keypoints { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 1.4rem; }
.keypoints li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 0; padding: 13px 16px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--rule); }
.keypoints li .icon { color: var(--accent, var(--gold)); margin-top: 3px; }
details.deeper { border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--panel); margin: 1rem 0; }
details.deeper > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
details.deeper > summary::-webkit-details-marker { display: none; }
details.deeper > summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--gold); line-height: 1; }
details.deeper[open] > summary::after { content: "\2212"; }
details.deeper > div { padding: 0 16px 16px; }
.conn-group { margin: 0 0 20px; }
.conn-group h3 { font-size: 1rem; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.conn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.conn-list li { margin: 0; }
.conn { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--panel); }
.conn__icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 12%, var(--panel)); }
.conn__body { min-width: 0; }
.conn__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.conn__rel { color: var(--muted); font-size: .88rem; }
.conn__title a, .conn__name { color: var(--text); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.conn__title a:hover, .conn__name:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.conn__why { color: var(--text-2); font-size: .93rem; margin: 3px 0 0; }
.ego { margin-inline: 0; border-radius: var(--r); border: 1px solid var(--rule); background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--accent, var(--t-system)) 10%, transparent), transparent 72%), var(--bg-2); padding: 6px; }
.ego svg { width: 100%; height: auto; display: block; }
.ego text { font-family: var(--font); font-size: 12.5px; fill: var(--text-2); }
.ego .ego-centre text { fill: var(--text); font-weight: 600; font-size: 14px; }
.ego .ego-edge { stroke: currentColor; stroke-width: 1.5; opacity: .55; fill: none; }
.ego .ego-edge.g-emerging { stroke-dasharray: 6 5; } .ego .ego-edge.g-contested { stroke-dasharray: 1.5 5; stroke-linecap: round; }
.ego .ego-n circle { fill: var(--panel); stroke: currentColor; stroke-width: 2; }
.ego .ego-n .glow { fill: currentColor; stroke: none; opacity: .14; }
.ego .ego-n use { stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ego a:hover circle, .ego a:focus-visible circle { stroke-width: 3; }
.ego .ego-n .hit { fill: transparent; stroke: none; pointer-events: all; }
.ego a:hover text, .ego a:focus-visible text { fill: var(--text); }
.ego a:focus-visible { outline: none; }
.refs { list-style: none; padding: 0; counter-reset: ref; display: grid; gap: 12px; margin: 0; }
.refs li { counter-increment: ref; position: relative; padding-left: 36px; margin: 0; font-size: .94rem; }
.refs li::before { content: counter(ref); position: absolute; left: 0; top: 1px; width: 25px; height: 25px; border-radius: 50%; background: var(--panel-3); border: 1px solid var(--rule-2); color: var(--gold-2); font-size: .76rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.refs__meta { display: block; color: var(--muted); font-size: .84rem; }
.src-line { display: flex; gap: 7px; align-items: flex-start; margin: 6px 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.src-line .icon { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--gold); }
.src-line a { color: var(--text-2); text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 2px; }
.src-line a:hover { color: var(--text); text-decoration-color: var(--gold); }
.lib-item .src-line { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.ref-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ref-item { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--panel); scroll-margin-top: calc(var(--header-h) + 18px); overflow-wrap: anywhere; }
.ref-item:target { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.ref-item__title { font-weight: 600; }
.ref-item__meta { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.ref-item__used { margin: 6px 0 0; font-size: .88rem; color: var(--text-2); }
.ref-item__links { margin-top: 6px; font-size: .88rem; }
.ref-item__links summary { cursor: pointer; color: var(--text-2); min-height: 32px; display: flex; align-items: center; }
.ref-item__links ul { margin: 6px 0 0; padding-left: 1.1em; }
.lib-group h2 .count { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.note-line { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 28px; }
.grade-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-grid .callout { margin: 0; }
.qlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.qlist li { margin: 0; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--panel); }
.qlist .btn { flex: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--panel); margin: 0 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--text); background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 22px; }
.filter-bar input[type="search"] { max-width: 380px; }
.filter-bar .count { color: var(--muted); font-size: .9rem; }
.index-group { margin: 0 0 34px; }
.index-group > h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.index-group > h2 .count { font-size: .9rem; color: var(--muted); font-weight: 400; }
.index-cols { columns: 3 280px; column-gap: 22px; list-style: none; padding: 0; margin: 0; }
.index-cols li { break-inside: avoid; margin: 0 0 8px; }
.index-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .15s ease, background-color .15s ease; }
.index-item:hover { border-color: var(--gold); background: var(--panel-2); }
.index-item .ii-icon { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 12%, var(--panel)); }
.index-item .ii-text { min-width: 0; }
.index-item .ii-name { display: block; font-weight: 600; color: var(--text); }
.index-item .ii-sub { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1000px) and (min-width: 641px) { .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .signal-grid { grid-template-columns: 1fr; } }
.signal-grid li { margin: 0; }
.signal-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.signal-card:hover { border-color: var(--t-signal); transform: translateY(-2px); }
.signal-card h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.signal-card p { margin: 0; font-size: .93rem; color: var(--text-2); }
.lib-cols { columns: 2 440px; column-gap: 18px; }
.lib-item { break-inside: avoid; margin: 0 0 18px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--panel); box-shadow: var(--lift); scroll-margin-top: calc(var(--header-h) + 18px); }
.lib-item h3 { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 1.12rem; margin-bottom: .3em; }
.lib-item .latin { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.lib-item dl { display: grid; grid-template-columns: 128px 1fr; gap: 7px 14px; margin: 10px 0 0; font-size: .94rem; }
.lib-item dt { color: var(--muted); font-weight: 500; }
.lib-item dd { margin: 0; color: var(--text-2); }
@media (max-width: 600px) { .lib-item dl { grid-template-columns: 1fr; } .lib-item dt { margin-top: 6px; } }
.lib-group { margin: 0 0 30px; }
.lib-group > h2 { font-size: 1.3rem; }
.gloss { columns: 2 420px; column-gap: 34px; margin: 0; }
.gloss div { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 18px); }
.gloss dt { font-weight: 600; color: var(--text); }
.gloss dd { margin: 4px 0 0; color: var(--text-2); font-size: .96rem; }
.gloss div:target { background: color-mix(in srgb, var(--gold) 10%, transparent); border-radius: 8px; padding-inline: 10px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; list-style: none; padding: 0; }
.az li { margin: 0; }
.az a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--rule); text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .88rem; background: var(--panel); }
.az a:hover { border-color: var(--gold); color: var(--text); }
.food-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0; list-style: none; }
.food-tags li { margin: 0; }
.food-tags a { font-size: .82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-2); text-decoration: none; color: var(--text-2); }
.food-tags a:hover { border-color: var(--gold); color: var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 16px; position: relative; }
.field label, .field legend { font-weight: 500; font-size: .96rem; color: var(--text); }
.field .hint { font-size: .86rem; color: var(--muted); }
input[type="text"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--rule-2); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 400; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--gold); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--gold); margin: 0; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check span { line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--rule); background: var(--bg-2); }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: 10px; font-weight: 500; font-size: .93rem; color: var(--text-2); }
.seg input:checked + span { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold), var(--shadow-soft); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .inline-fields { grid-template-columns: 1fr; } }
.error-text { color: var(--danger); font-size: .92rem; min-height: 1.3em; margin: 0; }
.unit-input { position: relative; }
.unit-input input { padding-right: 70px; }
.unit-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start; }
@media (max-width: 920px) { .tool { grid-template-columns: 1fr; } }
.tool__form { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--panel); box-shadow: var(--lift); }
.result { position: sticky; top: calc(var(--header-h) + 20px); min-height: 280px; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--rule); background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 60%), var(--panel); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 920px) { .result { position: static; } }
.result__empty { margin: auto; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.result__empty .icon { width: 34px; height: 34px; color: var(--rule-2); }
.result__head { animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result__big { font-size: clamp(2.3rem, 1.8rem + 2vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin: 0; color: var(--text); }
.result__unit { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.result__label { font-size: 1.12rem; font-weight: 600; margin: 6px 0 0; }
.tone-ok .result__label { color: var(--ok); } .tone-warn .result__label { color: var(--warn); } .tone-danger .result__label { color: var(--danger); } .tone-info .result__label { color: var(--info); }
.result__notes { margin: 0; padding-left: 1.1em; color: var(--text-2); font-size: .95rem; }
.result__extra { padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--rule); }
.result__extra p { margin: 0; }
.scale-wrap { margin-top: 4px; }
.scale { height: 14px; border-radius: 999px; overflow: hidden; display: flex; border: 1px solid var(--rule-2); }
.scale__seg { height: 100%; flex-basis: 0; }
.scale__seg.tone-ok { background: color-mix(in srgb, var(--ok) 70%, transparent); } .scale__seg.tone-warn { background: color-mix(in srgb, var(--warn) 70%, transparent); }
.scale__seg.tone-danger { background: color-mix(in srgb, var(--danger) 70%, transparent); } .scale__seg.tone-info { background: color-mix(in srgb, var(--info) 60%, transparent); }
.scale-marker { position: relative; height: 22px; margin-top: -18px; }
.scale__mark { position: absolute; top: 0; width: 6px; height: 22px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 3px var(--panel); transform: translateX(-3px); transition: left .35s cubic-bezier(.2, .8, .2, 1); }
.scale-legend { display: flex; justify-content: space-between; gap: 6px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.working { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 12px 14px; white-space: pre-wrap; overflow-x: auto; color: var(--text-2); margin: 0 0 10px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal div { min-height: 52px; border-radius: 9px; border: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .78rem; line-height: 1.2; }
.cal__d { font-weight: 600; color: var(--text); }
.cal__date { color: var(--muted); font-size: .7rem; }
.p-men { background: color-mix(in srgb, var(--t-condition) 30%, transparent); }
.p-fol { background: color-mix(in srgb, var(--t-system) 18%, transparent); }
.p-ov { background: color-mix(in srgb, var(--gold) 45%, transparent); border-color: var(--gold) !important; }
.p-lut { background: color-mix(in srgb, var(--t-process) 18%, transparent); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: .85rem; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--rule-2); }
.sleep-rows { display: grid; gap: 8px; }
.sleep-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--rule); }
.sleep-row strong { font-size: 1.2rem; min-width: 92px; }
.sleep-row span { color: var(--text-2); }
.tool-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) and (min-width: 641px) { .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tool-cards { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; box-shadow: var(--lift); }
.tool-card:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--rule)); transform: translateY(-2px); }
.tool-card .ti { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-3); color: var(--gold-2); border: 1px solid var(--rule-2); }
.tool-card .ti .icon { width: 24px; height: 24px; }
.tool-card h3 { margin: 4px 0 0; font-size: 1.1rem; }
.tool-card p { margin: 0; color: var(--text-2); font-size: .93rem; }
.app-body { overflow: hidden; }
.app-body .site-footer { display: none; }
.mapapp { position: relative; overflow: hidden; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--bg); }
.mapstage { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.mapstage:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.mapcanvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.mapcanvas.is-panning { cursor: grabbing; }
.mapcanvas.is-over-node { cursor: pointer; }
.mapcanvas.is-stretching { cursor: move; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 1rem; z-index: 5; text-align: center; padding: 24px; }
.map-loading.is-error { color: var(--warn); }
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid color-mix(in srgb, var(--rule-2) 75%, transparent); box-shadow: var(--shadow-soft); }
.mapapp__top { position: absolute; z-index: 20; top: 14px; left: 14px; right: 14px; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; pointer-events: none; }
.mapapp__top > * { pointer-events: auto; }
.mapsearch { position: relative; flex: 1 1 280px; max-width: 440px; }
.mapapp__top .mapsearch input { padding-left: 44px; height: 48px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-soft); }
.mapsearch > .icon { position: absolute; left: 15px; top: 15px; color: var(--muted); z-index: 2; pointer-events: none; }
.mapsearch__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: var(--panel); border: 1px solid var(--rule-2); border-radius: 14px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; display: none; }
.field .mapsearch__list { top: 100%; }
.mapsearch__list.is-open { display: block; animation: pop .14s ease-out; }
.mapsearch__list li { margin: 0; }
.mapsearch__list button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.mapsearch__list button[aria-selected="true"], .mapsearch__list button:hover { background: var(--panel-3); }
.mapsearch__list small { color: var(--muted); display: block; font-weight: 400; font-size: .8rem; }
.mapsearch__empty { padding: 10px; color: var(--muted); font-size: .9rem; }
.opt-icon { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 12%, var(--panel)); }
.opt-icon .icon { width: 16px; height: 16px; }
.toolbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbtns .icon-btn { height: 48px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-soft); }
@media (max-width: 760px) {
  .tb-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mapapp__top { top: 10px; gap: 6px; flex-wrap: nowrap; align-items: center; }
  .mapsearch { flex: 1 1 auto; min-width: 0; max-width: none; }
  .mapapp__top .mapsearch input { height: 42px; min-height: 42px; padding-left: 38px; border-radius: 12px; }
  .mapsearch > .icon { left: 12px; top: 12px; }
  .mapapp__top .mapsearch__list { right: auto; width: calc(100vw - 28px); }
  .toolbtns { flex: none; flex-wrap: nowrap; gap: 6px; }
  .toolbtns .icon-btn { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 12px; }
}
.zoomctl { position: absolute; z-index: 20; right: 14px; bottom: 18px; display: grid; gap: 6px; }
.zoomctl .icon-btn { width: 48px; height: 48px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-soft); }
.minimap { position: absolute; z-index: 15; right: 76px; bottom: 18px; width: 196px; height: 124px; border-radius: 14px; cursor: crosshair; touch-action: none; transition: right .38s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.zoomctl { transition: right .38s cubic-bezier(.2, .8, .2, 1), bottom .3s ease; }
@media (min-width: 761px) {
  .mapapp.has-panel .zoomctl { right: calc(min(440px, 100% - 24px) + 26px); }
  .mapapp.has-panel .minimap { right: calc(min(440px, 100% - 24px) + 88px); }
  .mapapp.has-panel .map-hint { opacity: 0; }
}
@media (max-width: 760px) { .mapapp.has-panel .zoomctl { bottom: calc(46vh + 18px); } .mapapp.has-panel .zoomctl #zoom-fit { display: none; } }
@media (max-width: 1000px) { .minimap { display: none; } }
.legend { position: absolute; z-index: 15; left: 14px; bottom: 18px; border-radius: 16px; padding: 12px 14px; font-size: .8rem; color: var(--text-2); max-width: min(330px, calc(100vw - 100px)); }
.legend__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legend__head h2 { font-size: .86rem; margin: 0; }
.legend__toggle { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.legend__toggle .icon { transition: transform .2s ease; }
.legend__toggle[aria-expanded="false"] .icon { transform: rotate(180deg); }
.legend__body { display: grid; gap: 8px; margin-top: 8px; }
.legend.is-collapsed .legend__body { display: none; }
.legend__row { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__item .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.legend__item .lbl { color: var(--text-2); }
.legend__line { width: 26px; height: 0; border-top: 2px solid var(--muted); }
.legend__line.l-emerging { border-top-style: dashed; } .legend__line.l-contested { border-top-style: dotted; }
.legend__line.l-gold { border-top: 3px solid var(--gold); }
@media (max-width: 760px) { .legend { display: none; } }
.map-hint { position: absolute; z-index: 16; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 9px 16px; border-radius: 999px; font-size: .9rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none; transition: opacity .6s ease, transform .6s ease; animation: rise .6s ease-out 1.2s both; }
.map-hint .icon { color: var(--gold); }
.map-hint.is-gone { animation: none; opacity: 0; transform: translate(-50%, 8px); }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .hint-touch { display: inline; } .hint-mouse { display: none; } }
@media (max-width: 760px) { .map-hint { left: 12px; bottom: 18px; transform: none; max-width: calc(100% - 88px); white-space: normal; animation-name: fade; } .map-hint.is-gone { animation: none; transform: translateY(8px); } }
.edgetip { position: absolute; z-index: 22; left: 0; top: 0; width: 290px; padding: 12px 14px; border-radius: 14px; font-size: .86rem; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.edgetip.is-on { opacity: 1; }
.edgetip p { margin: 0 0 6px; }
.edgetip__rel { color: var(--text-2); }
.edgetip__rel strong { color: var(--text); }
.edgetip__why { color: var(--text-2); }
.edgetip__grade { margin: 0 !important; }
.edgetip__src { margin: 6px 0 0 !important; color: var(--muted); font-size: .8rem; }
.storybar p.src-line { margin: -6px 0 10px; }
.panel { position: absolute; z-index: 30; top: 76px; right: 12px; bottom: 12px; width: min(440px, calc(100% - 24px)); border-radius: 22px; display: flex; flex-direction: column; transform: translateX(calc(100% + 30px)); transition: transform .38s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.panel.is-open { transform: none; }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent, var(--gold)); opacity: .85; }
.panel[data-type="system"] { --accent: var(--t-system); } .panel[data-type="process"] { --accent: var(--t-process); } .panel[data-type="state"] { --accent: var(--t-state); }
.panel[data-type="signal"] { --accent: var(--t-signal); } .panel[data-type="condition"] { --accent: var(--t-condition); } .panel[data-type="nutrient"] { --accent: var(--t-nutrient); }
.panel[data-type="molecule"] { --accent: var(--t-molecule); } .panel[data-type="supplement"] { --accent: var(--t-supplement); } .panel[data-type="lifestyle"] { --accent: var(--t-lifestyle); }
.panel[data-type="test"] { --accent: var(--t-test); } .panel[data-type="path"] { --accent: var(--gold); }
.panel__head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 18px 12px; }
.panel__title { min-width: 0; }
.panel__head h2 { font-size: 1.45rem; margin: 6px 0 4px; }
.panel__btns { margin-left: auto; flex: none; display: inline-flex; gap: 6px; }
.panel__grow { display: none; }
.panel__grow .icon { transform: rotate(180deg); transition: transform .2s ease; }
.panel__grow[aria-expanded="true"] .icon { transform: none; }
.panel__tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.panel__tabs button { background: none; border: 0; padding: 12px 10px; font: inherit; font-size: .94rem; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.panel__tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent, var(--gold)); }
.panel__body { padding: 16px 18px 26px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.panel__body .summary { font-weight: 400; font-size: 1.04rem; color: var(--text); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.panel__sub { font-size: 1rem; margin: 18px 0 10px; }
.panel .conn { padding: 10px 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.panel .keypoints li { padding: 10px 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
@media (max-width: 760px) {
  .panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 44vh; transform: translateY(calc(100% + 30px)); transition: transform .38s cubic-bezier(.2, .8, .2, 1), height .3s ease; }
  .panel.is-full { height: calc(100% - 16px); }
  .drawer-left { top: 8px; bottom: 8px; left: 8px; width: calc(100% - 16px); }
  .panel__grow { display: inline-flex; }
  .panel .aka { display: none; }
}
.storybar { position: absolute; z-index: 25; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(720px, calc(100% - 300px)); border-radius: 20px; padding: 16px 18px 18px; display: none; overflow: hidden; }
.storybar.is-open { display: block; animation: rise .3s ease-out; }
.storybar__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.storybar__head h2 { font-size: 1.02rem; margin: 0; flex: 1; min-width: 0; }
.storybar__step { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.storybar p { margin: 0 0 12px; color: var(--text-2); }
.storybar p strong { color: var(--text); }
.storybar .btn-row { justify-content: flex-end; }
.storybar .progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; border: 0; border-radius: 0; background: transparent; }
@media (max-width: 1000px) { .storybar { width: calc(100% - 90px); left: 12px; transform: none; } }
@media (max-width: 760px) { .storybar { width: auto; left: 8px; right: 8px; bottom: 8px; } }
.pathlist { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 4px; }
.pathlist li { margin: 0; }
.pathnode { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.step-rel { display: grid; gap: 4px; margin: 2px 0 2px 9px; padding: 6px 0 8px 18px; border-left: 2px solid var(--gold); font-size: .9rem; color: var(--text-2); }
.step-rel strong { color: var(--gold-2); font-weight: 600; }
.step-rel .badge { justify-self: start; }
.step-why { color: var(--muted); font-size: .86rem; }
.listview { position: absolute; inset: 0; z-index: 26; overflow-y: auto; background: var(--bg); padding: 84px 16px 48px; display: none; }
.listview.is-open { display: block; }
.listview__inner { max-width: 1080px; margin: 0 auto; }
.listview__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.listview__head h2 { margin: 0; }
.listview__group h3 { margin: 26px 0 10px; font-size: 1.1rem; color: var(--gold-2); }
.listview details { border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); margin-bottom: 8px; }
.listview summary { cursor: pointer; padding: 10px 14px; display: flex; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.listview summary .small { font-weight: 400; }
.listview details > div { padding: 0 14px 14px; }
.drawer-left { position: absolute; z-index: 28; top: 76px; left: 12px; bottom: 12px; width: min(380px, calc(100% - 24px)); border-radius: 22px; display: flex; flex-direction: column; transform: translateX(calc(-100% - 30px)); transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
.drawer-left.is-open { transform: none; }
.drawer-left__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.drawer-left__head h2 { font-size: 1.2rem; margin: 0; }
.drawer-left__body { padding: 6px 18px 24px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-left h3 { font-size: .95rem; color: var(--gold-2); margin: 20px 0 8px; }
.tourpick { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.tourpick h3 { font-size: 1.02rem; margin: 0 0 4px; }
.tourpick p { margin: 0 0 4px; }
.tours-list { list-style: none; padding: 0; margin: 0; }
.ask-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .ask-layout { grid-template-columns: 1fr; } }
.ask__log { display: grid; gap: 16px; margin-bottom: 18px; }
.msg { max-width: 94%; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--rule); background: var(--panel); animation: rise .3s ease-out; scroll-margin-top: calc(var(--header-h) + 20px); }
.msg--user { margin-left: auto; background: var(--panel-3); border-color: var(--rule-2); border-bottom-right-radius: 6px; }
.msg--bot { border-bottom-left-radius: 6px; box-shadow: var(--lift); }
.msg--bot h3 { font-size: 1.12rem; margin-bottom: .4em; display: flex; align-items: center; gap: 8px; }
.msg--bot h3:focus { outline: none; }
.msg--bot h3 .icon { color: var(--gold); }
.msg--bot h4 { margin: 14px 0 6px; font-size: 1rem; }
.msg--bot ul, .msg--bot ol { margin-bottom: .6em; }
.msg--bot li { margin: .4em 0; }
.msg__foot { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.ask__form { display: flex; gap: 10px; align-items: flex-end; position: sticky; bottom: 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); padding: 14px 0; z-index: 5; }
.ask__form textarea { min-height: 54px; max-height: 160px; border-radius: 16px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.quiz { padding: clamp(18px, 2.5vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--panel); }
.quiz-q { margin-bottom: 22px; }
.quiz-q h3 { font-size: 1.08rem; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opts button { justify-content: flex-start; text-align: left; font-weight: 500; }
.quiz-opts button.is-right { border-color: var(--ok); background: var(--ok-bg); color: var(--text); }
.quiz-opts button.is-wrong { border-color: var(--danger-rule); background: var(--danger-bg); color: var(--text); }
.quiz-why { margin: 10px 0 0; color: var(--text-2); }
.quiz-result { font-weight: 600; color: var(--gold-2); }
.my-grid { columns: 2 440px; column-gap: 18px; }
.my-grid > .card { padding: 22px; break-inside: avoid; margin: 0 0 18px; }
.my-grid > .card h2 { display: flex; align-items: center; gap: 8px; }
.empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--rule-2); border-radius: var(--r); margin: 0; }
.saved-list, .note-list, .tour-progress, .q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.saved-list li, .note-list li, .tour-progress li, .q-list li { margin: 0; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel-2); }
.saved-list__link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; min-width: 0; }
.saved-list__link:hover { color: var(--gold-2); }
.saved-list__acts { display: inline-flex; gap: 6px; }
.saved-list__acts .icon-btn, .note-list .icon-btn, .q-list .icon-btn { min-width: 40px; height: 40px; }
.note-text { margin: 4px 0 0; color: var(--text-2); font-size: .92rem; white-space: pre-wrap; }
.tour-progress li { flex-wrap: wrap; }
.tour-progress li a:first-child { font-weight: 500; flex: 1 1 200px; }
.tour-progress li.is-done a:first-child { color: var(--ok); }
.q-list li.is-done span { text-decoration: line-through; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 520px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badge-medal { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .82rem; color: var(--muted); margin: 0; }
.badge-medal strong { color: var(--text-2); font-size: .86rem; }
.badge-medal .medal { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--rule-2); background: var(--panel-2); color: var(--muted); margin-bottom: 4px; }
.badge-medal .medal .icon { width: 26px; height: 26px; }
.badge-medal.is-earned .medal { border-color: var(--gold); color: var(--gold-2); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--gold-2) 35%, transparent), transparent 60%), var(--panel-3); box-shadow: 0 0 24px color-mix(in srgb, var(--gold) 35%, transparent); }
.badge-medal.is-earned strong { color: var(--text); }
.progress { height: 8px; border-radius: 999px; background: var(--panel-3); overflow: hidden; border: 1px solid var(--rule); margin-bottom: 12px; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-blue), var(--brand-green), var(--gold)); transition: width .4s ease; }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--panel); margin: 0; }
.steps li::before { content: counter(step); position: absolute; top: -15px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #0B0F18; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .92rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-2); }
.dialog { border: 1px solid var(--rule-2); border-radius: var(--r-xl); background: var(--panel); color: var(--text); padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: var(--shadow); }
.dialog--wide { width: min(860px, calc(100vw - 24px)); }
.dialog::backdrop, .palette::backdrop { background: rgba(3, 6, 12, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dialog[open] { animation: pop .2s ease-out; }
.dialog__inner { padding: clamp(20px, 3vw, 30px); overflow-y: auto; max-height: calc(100vh - 26px); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog__head h2 { margin: 0; font-size: 1.4rem; }
.gate-mark { width: auto; height: 56px; margin-bottom: 12px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .22)); }
.gate-mark--lg { height: 96px; }
.about-logo { margin: 1.6em 0; }
.about-logo img { display: block; width: min(300px, 70vw); height: auto; border-radius: 28px; background: #fff; padding: 14px; border: 1px solid var(--rule); box-shadow: var(--shadow-soft); }
.about-logo figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--panel-3); border: 1px solid var(--rule-2); color: var(--text); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .95rem; animation: rise .25s ease-out; }
.palette { border: 1px solid var(--rule-2); border-radius: var(--r-xl); background: var(--panel); color: var(--text); padding: 0; width: min(740px, calc(100vw - 20px)); margin-top: 9vh; box-shadow: var(--shadow); }
.palette[open] { animation: pop .18s ease-out; }
.palette__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.palette__search { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--rule); }
.palette__search > .icon { color: var(--gold); width: 22px; height: 22px; }
.palette__search input { border: 0; background: transparent; min-height: 48px; font-size: 1.12rem; padding: 0; }
.palette__search input:focus-visible { outline: none; }
.palette__results { max-height: min(60vh, 540px); overflow-y: auto; padding: 8px; list-style: none; margin: 0; }
.palette__group { font-size: .8rem; font-weight: 600; color: var(--gold-2); padding: 12px 12px 4px; margin: 0; }
.palette__item { margin: 0; }
.palette__item a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.palette__item a .pi-sub { display: block; font-size: .82rem; color: var(--muted); }
.palette__item[aria-selected="true"] a, .palette__item a:hover { background: var(--panel-3); box-shadow: inset 3px 0 0 var(--gold); }
.palette__foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.palette__foot kbd { font-family: inherit; padding: 1px 6px; border: 1px solid var(--rule-2); border-radius: 5px; }
.palette__empty { padding: 20px 16px; color: var(--muted); margin: 0; }
.site-footer { border-top: 1px solid var(--rule); background: var(--bg-2); padding: 52px 0 28px; margin-top: 56px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: .95rem; color: var(--gold-2); margin-bottom: 12px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 7px 0; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { color: var(--text-2); margin: 10px 0 0; max-width: 40ch; }
.footer-brand .brand { margin-bottom: 12px; }
.site-footer .footer-grid p { text-wrap: balance; }
.stack-lines { font-style: normal; line-height: 1.65; color: var(--text-2); margin: 0; }
.stack-lines .entity { font-weight: 600; color: var(--text); letter-spacing: .02em; }
.stack-lines a { color: var(--text-2); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: start; color: var(--muted); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.version-tag { color: var(--gold); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .footer-bottom { grid-template-columns: 1fr; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 8px; }
.footer-legal li { margin: 0; }
.footer-legal a { color: var(--text-2); }
.helplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .helplines { grid-template-columns: 1fr; } }
.helpline { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .15s ease; }
.helpline:hover { border-color: var(--gold); }
.helpline strong { font-size: 1.2rem; color: var(--gold-2); font-weight: 700; letter-spacing: .02em; }
.helpline .helpline__name { font-weight: 600; color: var(--text); font-size: .95rem; }
.helpline span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.helpline--emergency { border-color: var(--danger-rule); background: var(--danger-bg); }
.helpline--emergency strong { color: var(--danger); }
.glance { margin: 0; display: grid; gap: 9px; font-size: .94rem; }
.glance div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--rule); }
.glance div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; text-align: right; color: var(--text); font-weight: 500; }
.tour-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: ts; }
.tour-steps > li { counter-increment: ts; position: relative; margin: 0; padding: 0 0 22px 52px; border-left: 2px solid var(--rule-2); margin-left: 16px; }
.tour-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tour-steps > li::before { content: counter(ts); position: absolute; left: -17px; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); border: 2px solid var(--gold); color: var(--gold-2); font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.tour-steps h3 { font-size: 1.08rem; margin: 2px 0 6px; }
.tour-steps p { margin: 0 0 6px; color: var(--text-2); }
.h3 { font-size: 1.3125rem; }
.btn-row--center { justify-content: center; }
.center .lead { margin-inline: auto; }
.ego .ego-more { font-size: 12px; fill: var(--muted); }
.ego svg.ego-narrow { display: none; }
@media (max-width: 600px) {
  .ego svg.ego-wide { display: none; }
  .ego svg.ego-narrow { display: block; max-width: 420px; margin: 0 auto; }
  .ego .ego-narrow text { font-size: 16px; }
  .ego .ego-narrow .ego-more { font-size: 13px; }
}
.doc h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.mini-list a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: 3px; }
.mini-list a:hover { color: var(--gold-2); text-decoration: underline; }
.card .mini-list li { margin: 0 0 4px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.kbd { font-family: inherit; font-size: .84em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--rule-2); background: var(--panel-2); }
.center { text-align: center; }
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
.panel__grab { display: none; }
.site-header__bar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.toast-region { bottom: calc(24px + env(safe-area-inset-bottom)); }
.drawer__panel { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.listview { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.zoomctl { right: calc(14px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); }
.mapapp__top { left: calc(14px + env(safe-area-inset-left)); right: calc(14px + env(safe-area-inset-right)); }
.hero { min-height: min(90vh, 920px); min-height: min(90svh, 920px); }
.dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.dialog__inner { max-height: calc(100vh - 26px); max-height: calc(100dvh - 26px); }
.panel.is-dragging { transition: none !important; }
@media (max-width: 760px) {
  .panel { left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); height: 44vh; height: 44svh; border-radius: 20px 20px 18px 18px; }
  .panel.is-full { height: calc(100% - 16px - env(safe-area-inset-bottom)); }
  .panel__grab { position: absolute; z-index: 3; top: 0; left: 50%; width: 120px; height: 16px; margin-left: -60px; display: flex; justify-content: center; align-items: center; cursor: grab; touch-action: none; }
  .panel__grab span { width: 36px; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text-2) 40%, transparent); }
  .panel__head { touch-action: none; align-items: center; gap: 8px; padding: 14px 8px 4px 14px; }
  .panel__title { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
  .panel__head h2 { font-size: 1.14rem; line-height: 1.25; margin: 0; }
  .panel__title .type-badge { order: 2; gap: 4px; padding: 1px 8px 1px 6px; font-size: .78rem; line-height: 1.5; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: color-mix(in srgb, currentColor 8%, transparent); }
  .panel__title .type-badge .icon { width: 14px; height: 14px; }
  .panel__btns { gap: 4px; }
  .panel__btns .icon-btn { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 11px; }
  .panel__tabs { padding: 0 6px; }
  .panel__body { padding: 12px 14px 22px; }
  .mapapp.has-panel .zoomctl { bottom: calc(44vh + 18px + env(safe-area-inset-bottom)); bottom: calc(44svh + 18px + env(safe-area-inset-bottom)); }
  .storybar { left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); }
  .drawer-left { bottom: calc(8px + env(safe-area-inset-bottom)); }
  .map-hint { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .panel__tabs button { padding: 8px 10px; font-size: .86rem; line-height: 1.3; }
  .panel__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .chip { min-height: 44px; }
  .conn__name { padding: 6px 0; }
  .linkish { padding: 10px 0; }
  .food-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; }
  .ref-item__links summary { min-height: 44px; }
  .legend__toggle { padding: 10px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
  .stack-lines a { display: inline-block; padding: 7px 0; }
}
@media print {
  :root { --bg: #fff; --bg-2: #fff; --panel: #fff; --panel-2: #fff; --panel-3: #fff; --text: #000; --text-2: #111; --muted: #444; --rule: #ccc; --rule-2: #bbb; --gold: #6E5320; --gold-2: #6E5320; --link: #000; }
  .site-header, .site-footer .footer-grid, .toolbar, .side, .toc, .skip, .no-print, .drawer, .toast-region, .palette, .btn, .icon-btn, .hero__canvas { display: none !important; }
  body { background: #fff !important; font-size: 11pt; }
  .layout-article { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .card, .callout, .conn, .lib-item { box-shadow: none; break-inside: avoid; }
  .print-only { display: block !important; }
  body.print-questions main .wrap > :not(.my-grid--main) { display: none !important; }
  body.print-questions .my-grid--main { display: block; }
  body.print-questions .my-grid--main > :not(.print-q) { display: none !important; }
  body.print-questions .print-q { border: 0; padding: 0; width: auto; max-width: none; }
  body.print-questions .print-q .q-list, body.print-questions .print-q li { max-width: none; }
}
