/* bullshitrank.com — design v2 (DESIGN/design01–13). Paper #F7F6F2 · Ink #181619 · Orange #FF5A1F · White · Rule #DDDAD4. Inter + IBM Plex Mono. */
:root {
  --paper: #F7F6F2; --ink: #181619; --orange: #FF5A1F; --white: #FFFFFF; --rule: #DDDAD4;
  --bg: var(--paper); --surface: var(--white); --surface-2: #F1EFEA; --text: var(--ink); --muted: #66625C; --line: #E4E1DA; --line-2: var(--rule);
  --accent: var(--orange); --accent-ink: #D9440E; --accent-soft: #FFE9DF; --accent-line: #FFC9B3;
  --good: #1F8A4C; --good-soft: #E1F2E7; --warn: #A86A10; --warn-soft: #FBEFD8; --bad: #D33A2C;
  --lv-cold: #1F8A4C; --lv-cool: #6E9F2E; --lv-mid: #C9A227; --lv-warm: #F07B26; --lv-hot: #FF5A1F;
  --dark: #1B191D; --dark-2: #2A272D; --dark-text: #F4F2EE;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 10px; --r-lg: 14px; --shadow: 0 1px 2px rgba(24,22,25,.05);
  --nav: 74px; --tab: 0px; --safe-b: env(safe-area-inset-bottom, 0px); --maxw: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121013; --surface: #1B191D; --surface-2: #242127; --text: #F4F2EE; --muted: #A39E97; --line: #2E2B32; --line-2: #3A363F;
    --accent-soft: #3A1C11; --accent-line: #6A2F1A; --good-soft: #12301F; --warn-soft: #33270F; --dark: #0C0B0D; --dark-2: #1F1C22; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #121013; --surface: #1B191D; --surface-2: #242127; --text: #F4F2EE; --muted: #A39E97; --line: #2E2B32; --line-2: #3A363F;
    --accent-soft: #3A1C11; --accent-line: #6A2F1A; --good-soft: #12301F; --warn-soft: #33270F; --dark: #0C0B0D; --dark-2: #1F1C22; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
:lang(hi), :lang(bn) { line-height: 1.7; } :lang(ar), :lang(ur) { line-height: 1.8; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; } p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; } .small { font-size: 12px; } .muted { color: var(--muted); } .o { color: var(--accent); }
.over { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.skip { position: absolute; top: -100px; inset-inline-start: 8px; } .skip:focus { top: 8px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.ic { width: 18px; height: 18px; flex: none; } .mark { width: 34px; height: 34px; color: var(--orange); flex: none; }
[hidden] { display: none !important; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav-in { max-width: var(--maxw); margin: 0 auto; height: var(--nav); display: flex; align-items: center; gap: 28px; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 6px; }
.logo .mark { width: 42px; height: 42px; }
.wm { font-weight: 900; font-size: 27px; letter-spacing: -.06em; line-height: .8; position: relative; padding-bottom: 8px; }
.wm b { color: var(--orange); font-weight: 900; } .wm i { position: absolute; right: 0; bottom: -6px; font-style: normal; font-size: 13px; letter-spacing: -.02em; font-weight: 800; }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a { position: relative; padding: 26px 14px; font-size: 14px; font-weight: 500; color: var(--text); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.on { color: var(--accent); } .nav-links a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 16px; height: 2px; background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.nav-links + .nav-right { margin-inline-start: 18px; }
.langpick { position: relative; }
.langpick summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 4px; font-size: 14px; font-weight: 500; cursor: pointer; }
.langpick summary::-webkit-details-marker, .burger summary::-webkit-details-marker { display: none; }
.langpick .chev { width: 14px; height: 14px; }
.langmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 260px; z-index: 60; }
.langmenu a { padding: 9px 10px; border-radius: 8px; font-size: 14px; } .langmenu a:hover { background: var(--surface-2); } .langmenu a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; padding: 6px; } .burger summary .ic { width: 26px; height: 26px; }
.burger .sheet { position: fixed; inset: calc(var(--nav) + env(safe-area-inset-top)) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
.burger nav { display: grid; } .burger nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; } .burger nav a.on { color: var(--accent); }
.tabbar { display: none; }
main { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px calc(48px + var(--tab) + var(--safe-b)); outline: 0; min-width: 0; }

@media (max-width: 1080px) { .nav-links { gap: 0; } .nav-links a { padding-inline: 10px; } .nav-cta span { display: none; } }
@media (max-width: 860px) {
  :root { --nav: 64px; --tab: 62px; }
  .nav-links, .nav-cta { display: none !important; }
  .burger { display: block; }
  .logo .mark { width: 36px; height: 36px; } .wm { font-size: 23px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 50; height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); min-width: 0; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .tabbar a.fab span { font-size: 0; } .tabbar a.fab span::after { content: attr(data-short); font-size: 10.5px; }
  .tabbar a .ic { width: 22px; height: 22px; } .tabbar a.on { color: var(--accent); }
  .tabbar a.fab .ic { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: var(--accent); color: #fff; margin-top: -18px; box-shadow: 0 8px 18px -8px rgba(255,90,31,.8); }
  main { padding: 16px 16px calc(32px + var(--tab) + var(--safe-b)); }
}

/* ---------- primitives ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .1s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; } .btn.primary:hover { background: #EE4C12; }
.btn.outline { background: var(--surface); border-color: var(--line-2); color: var(--text); } .btn.outline:hover, .btn.outline.on { border-color: var(--accent); color: var(--accent); }
.nav-cta.btn.outline { background: transparent; border: 1px solid var(--ink); height: 40px; padding: 0 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-cta.btn.outline { border-color: var(--line-2); } }
:root[data-theme="dark"] .nav-cta.btn.outline { border-color: var(--line-2); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; } .btn.icon-only { width: 44px; padding: 0; } .btn.disabled { opacity: .4; pointer-events: none; }
.btn.loadmore { display: flex; width: max-content; margin: 16px auto; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; color: var(--text); }
.iconbtn:hover { background: var(--surface-2); } .iconbtn.go { color: var(--accent); } .iconbtn.on .ic { fill: var(--accent); color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--text); } .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.tag.plain { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-family: var(--sans); font-size: 13px; letter-spacing: 0; padding: 4px 10px; }
.tag.cf-high { background: var(--surface-2); color: var(--text); } .tag.cf-medium { background: var(--surface-2); color: var(--muted); } .tag.cf-low { background: var(--accent-soft); color: var(--accent-ink); }
.tag.plain .ic { width: 15px; height: 15px; }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--accent); transform-origin: left; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
[dir="rtl"] .bar i { transform-origin: right; }
.bar.lv i { background: var(--lv, var(--accent)); } .bar.good i, .bar.phys i { background: var(--good); } .bar.mind i { background: #7B61FF; } .bar.cult i { background: var(--ink); } .bar.rev i { background: var(--bad); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar.cult i { background: #E8E4DE; } }
:root[data-theme="dark"] .bar.cult i { background: #E8E4DE; }
@keyframes grow { from { transform: scaleX(0); } }
.lv-cold { --lv: var(--lv-cold); } .lv-cool { --lv: var(--lv-cool); } .lv-mid { --lv: var(--lv-mid); } .lv-warm { --lv: var(--lv-warm); } .lv-hot { --lv: var(--lv-hot); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; font-size: 14px; } .more .ic { width: 16px; height: 16px; }
[dir="rtl"] .more .ic, [dir="rtl"] .btn .ic:last-child, [dir="rtl"] .iconbtn.go .ic, [dir="rtl"] .rc-h .go { transform: scaleX(-1); }
.card2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card2 h2 { font-size: 19px; font-weight: 800; }
.c2h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; } .c2h.sub { margin-top: 18px; } .c2h h3 { font-size: 15px; }
.note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .note .ic { width: 16px; height: 16px; }
.foot-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 16px; } .foot-note .btn { margin-inline-start: auto; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); } .empty .mark { width: 48px; height: 48px; opacity: .45; margin-bottom: 6px; }
.corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--accent); pointer-events: none; }
.corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; } .corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; } .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.sel { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; }
.sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding-inline-end: 18px; outline: 0; cursor: pointer; max-width: 220px; }
.sel::after { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ring .ring-bg { fill: none; stroke: var(--surface-2); } .ring .ring-fg { fill: none; stroke: var(--lv, var(--accent)); }
.spark { width: 92px; height: 26px; overflow: visible; } .spark path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark.falling path { stroke: #E0784C; } .spark.flat path { stroke: #A8A39C; }

/* ---------- headings, tabs ---------- */
.ph { padding: 10px 0 18px; } .ph.sm { padding-bottom: 8px; } .ph.center { text-align: center; padding: 60px 0; display: grid; justify-items: center; gap: 18px; }
.ph h1, .ph .h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; letter-spacing: -.05em; line-height: 1.02; margin: 4px 0 8px; }
.ph h1 em { font-style: normal; color: var(--accent); } .ph p { font-size: clamp(15px, 1.6vw, 19px); }
.ph-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.ph-side { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.big404 { font-size: 110px; color: var(--accent); font-weight: 600; }
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs > a { position: relative; padding: 12px 14px; font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--text); }
.tabs > a small { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--surface-2); font: 500 12px var(--mono); margin-inline-start: 4px; }
.tabs > a.on { color: var(--accent); font-weight: 600; } .tabs > a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); }
.tabs > a.on small { background: var(--accent); color: #fff; }
.tabs.scroll { overflow-x: auto; scrollbar-width: none; } .tabs.scroll::-webkit-scrollbar { display: none; }
.tabs-right { display: flex; gap: 10px; margin-inline-start: auto; padding-bottom: 6px; }
@media (max-width: 860px) { .tabs-right { display: none; } .ph-split { align-items: flex-start; } }

/* ---------- Discover (design01) ---------- */
.hero2 { text-align: center; padding: clamp(18px, 5vw, 46px) 0 10px; display: grid; justify-items: center; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.hero2 h1 { font-size: clamp(46px, 8.6vw, 92px); font-weight: 900; letter-spacing: -.06em; line-height: .94; display: grid; }
.hero2 h1 em { font-style: normal; color: var(--accent); }
:lang(hi) .hero2 h1, :lang(bn) .hero2 h1, :lang(ar) .hero2 h1, :lang(ur) .hero2 h1, :lang(zh) .hero2 h1 { line-height: 1.2; letter-spacing: 0; }
.hero-sub { font-size: clamp(17px, 2vw, 21px); margin: 14px 0 22px; }
.omni { width: min(780px, 100%); position: relative; }
.omni-frame { display: flex; align-items: center; gap: 10px; height: 54px; padding: 5px 5px 5px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px -22px rgba(0,0,0,.45); }
.omni-frame:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.omni-ic { width: 22px; height: 22px; color: var(--text); }
.omni input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; height: 100%; }
.omni input::placeholder { color: #8D8880; }
.omni .btn { height: 44px; padding: 0 18px; } .omni-clear { color: var(--muted); display: grid; place-items: center; width: 36px; height: 36px; }
@media (max-width: 520px) { .omni .btn span { display: none; } .omni .btn { width: 46px; padding: 0; } }
.suggest { position: absolute; z-index: 30; inset-inline: 0; top: 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); overflow: hidden; text-align: start; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; } .suggest a:hover, .suggest a.sel { background: var(--surface-2); } .suggest a b { flex: 1; font-weight: 600; }
.suggest .sc { min-width: 46px; text-align: center; padding: 3px 0; border-radius: 6px; color: #fff; background: var(--lv); font: 600 13px var(--mono); }
.types { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
@media (max-width: 640px) { .types { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: calc(100% + 32px); margin-inline: -16px; padding: 0 16px; scrollbar-width: none; } }
.or-eval { margin-top: 12px; font-size: 14px; } .or-eval a { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; } .or-eval .ic { width: 15px; height: 15px; }
.pubnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); } .pubnote .ic { width: 15px; height: 15px; }
.ts:empty { display: none; } .ts { margin-top: 10px; }
.progress { width: min(780px, 100%); margin-top: 16px; background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 16px 20px; position: relative; overflow: hidden; text-align: start; }
.progress .scan { position: absolute; inset: 0; pointer-events: none; }
.progress .scan span { position: absolute; top: 0; bottom: 0; width: 140px; background: linear-gradient(90deg, transparent, rgba(255,90,31,.35), transparent); animation: scan 1.6s linear infinite; }
@keyframes scan { from { left: -140px; } to { left: 100%; } }
.progress ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-family: var(--mono); font-size: 14px; position: relative; }
.progress li { display: flex; align-items: center; gap: 10px; opacity: .4; transition: opacity .3s; }
.progress li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #777; flex: none; }
.progress li.active { opacity: 1; } .progress li.active::before { border-color: var(--accent); background: var(--accent); animation: pulse 1.2s infinite; }
.progress li.done { opacity: .85; } .progress li.done::before { background: var(--good); border-color: var(--good); }
.progress .err { color: #FFB59A; margin-top: 10px; position: relative; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.6); } 70% { box-shadow: 0 0 0 7px transparent; } }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 30px 0 34px; }
.statrow > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 22px; position: relative; }
.statrow > div + div::before { content: ""; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; border-inline-start: 1px solid var(--line-2); }
.statrow .ic { grid-row: span 2; width: 28px; height: 28px; stroke-width: 1.6; } .statrow b { font-size: 20px; font-weight: 600; } .statrow span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .statrow { grid-template-columns: 1fr 1fr; margin: 22px 0 26px; } .statrow > div:nth-child(3)::before { display: none; } .statrow > div:nth-child(n+3) { border-top: 1px solid var(--line); } .statrow > div { padding: 14px 12px; } }
.sect { margin-bottom: 30px; } .sect-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sect-h h2 { font-size: clamp(21px, 2.8vw, 30px); font-weight: 900; letter-spacing: -.04em; }
.sect-h .more { white-space: nowrap; }
.attgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.att { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 14px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.att:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.att-h { display: flex; gap: 12px; align-items: flex-start; } .att-ic { width: 30px; height: 30px; stroke-width: 1.5; margin-top: 2px; }
.att-h .over { display: block; font-size: 11px; } .att-h b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.att-b { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; }
.att-score b { font-size: 25px; font-weight: 600; } .att-score span { color: var(--muted); font-size: 20px; margin-inline-start: 4px; } .att-score small { display: block; font-size: 12px; color: var(--muted); }
.att-trend { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; display: grid; gap: 2px; min-width: 0; }
.att-trend .spark { width: 100%; max-width: 100px; height: 24px; } .att-trend b { font-size: 16px; font-weight: 600; } .att-trend b.up { color: var(--accent); } .att-trend small { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .attgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .attgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; } .att { flex: 0 0 86%; scroll-snap-align: start; } }
.startbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 30px; }
.startbar b { font-size: 17px; font-weight: 600; } .startbar nav { display: flex; flex-wrap: wrap; }
.startbar nav a { display: flex; align-items: center; gap: 10px; padding: 4px 20px; font-size: 14px; border-inline-start: 1px solid var(--line-2); } .startbar nav a .ic:last-child { width: 15px; height: 15px; }
@media (max-width: 760px) { .startbar nav a { border: 0; padding: 8px 0; width: 100%; } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.ticker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.ticker li a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; animation: fadein .5s both; }
.ticker .q { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.ticker b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ticker .sc, .trow .sc { min-width: 44px; text-align: center; padding: 3px 0; border-radius: 6px; color: #fff; background: var(--lv); font-weight: 600; font-size: 13px; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Search (design02) ---------- */
.searchtop { margin-bottom: 14px; } .searchtop .omni { width: 100%; }
.srch { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.refine h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.refine details { border-top: 1px solid var(--line); padding: 12px 0; } .refine summary { list-style: none; font-weight: 600; cursor: pointer; }
.refine summary::-webkit-details-marker { display: none; }
.refine ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.refine li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 14px; position: relative; } .refine li a small { margin-inline-start: auto; color: var(--muted); font-family: var(--mono); }
.refine li a.on { font-weight: 600; } .refine li a.on::before { content: ""; position: absolute; inset-inline-start: -2px; top: 6px; bottom: 6px; width: 3px; background: var(--accent); border-radius: 2px; }
.refine li a:hover { background: var(--surface-2); } .refine .ic { width: 17px; height: 17px; }
.cb { width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--surface); } .cb.on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.clear { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.results > .note { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.res { display: grid; grid-template-columns: 34px minmax(0, 1fr) 170px 84px; gap: 16px; align-items: start; padding: 18px; border-bottom: 1px solid var(--line); }
.res-ic { width: 28px; height: 28px; stroke-width: 1.5; margin-top: 2px; }
.res-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .res-t h3 { font-size: 18px; font-weight: 700; } .res-t a:hover h3 { color: var(--accent); }
.res-main p { font-size: 14px; color: var(--muted); margin-top: 4px; } .res-meta { display: flex; align-items: center; gap: 6px; } .res-meta .ic { width: 15px; height: 15px; }
.res-score > div { display: flex; align-items: baseline; gap: 4px; } .res-score b { font-size: 21px; font-weight: 600; font-family: var(--mono); } .res-score span { color: var(--muted); font-family: var(--mono); }
.res-score .bar { margin: 6px 0; } .res-score small { display: block; font-size: 12px; color: var(--muted); }
.res-act { display: flex; gap: 4px; justify-content: flex-end; }
.cantfind { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px; padding: 16px 18px; border: 1px solid var(--line); }
.cantfind > div { flex: 1; min-width: 200px; } .cantfind b { font-size: 17px; } .cantfind p { font-size: 14px; color: var(--muted); } .cf-ic { width: 32px; height: 32px; stroke-width: 1.5; }
@media (max-width: 960px) { .srch { grid-template-columns: 1fr; } .refine { display: none; } }
@media (max-width: 640px) {
  .res { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "i m a" "i s s"; gap: 10px; }
  .res-ic { grid-area: i; } .res-main { grid-area: m; } .res-act { grid-area: a; } .res-score { grid-area: s; }
}

/* ---------- Rankings (design03) ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; min-width: 0; }
.kpi > div { flex: 1; min-width: 0; } .kpi span { display: block; font-size: 14px; } .kpi b { font-size: 25px; font-weight: 600; font-family: var(--mono); } .kpi b small { font-size: 18px; color: var(--muted); font-weight: 400; }
.kpi > div > small { display: block; font-size: 12px; color: var(--muted); }
.kpi-ic { width: 34px; height: 34px; stroke-width: 1.4; } .kpi-ic.up { color: var(--accent); }
.kpi .spark { width: 110px; height: 32px; } .kpi b.o { color: var(--accent); }
@media (max-width: 760px) { .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 14px; padding: 0 16px 4px; scroll-padding: 0 16px; scrollbar-width: none; } .kpi { flex: 0 0 72%; scroll-snap-align: start; padding: 14px 16px; } .kpi .spark { display: none; } .kpi b { font-size: 21px; } }
.rtools { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 14px; }
.rsearch { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; }
.rsearch input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.catpills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; } .catpills::-webkit-scrollbar { display: none; }
.catpills .chip { padding: 8px 13px; font-size: 13px; border-color: transparent; background: transparent; } .catpills .chip.on { background: var(--accent); color: #fff; } .catpills .chip:hover:not(.on) { background: var(--surface); border-color: var(--line); }
.rsel { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .rtools { grid-template-columns: 1fr; } }
.rtable2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; }
.rtable2 table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable2 th { text-align: start; font-weight: 500; font-size: 13px; color: var(--muted); padding: 11px 10px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: var(--nav); z-index: 2; }
.rtable2 td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rtable2 tbody tr { transition: background .12s; } .rtable2 tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.rtable2 tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.c-star { width: 44px; } .c-star .ic { width: 17px; height: 17px; } .c-n { width: 36px; color: var(--muted); }
.c-t a { display: grid; } .c-t b { font-weight: 600; } .c-t small { color: var(--muted); font-size: 12px; } .c-t a:hover b { color: var(--accent); }
.c-s { min-width: 150px; } .c-s div { display: flex; align-items: baseline; gap: 4px; font-family: var(--mono); } .c-s b { font-weight: 600; font-size: 15px; } .c-s span { color: var(--muted); font-size: 12px; } .c-s .bar { height: 4px; margin-top: 4px; max-width: 130px; }
.c-cf { white-space: nowrap; } .c-cf .tag { margin-inline-start: 6px; font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
.c-sp .spark { width: 84px; } .c-tr { color: var(--muted); font-size: 13px; }
.rcards { display: none; }
@media (max-width: 1000px) { .c-int, .c-sp { display: none; } }
@media (max-width: 760px) {
  .rtable2 { background: transparent; border: 0; overflow: visible; } .rtable2 table { display: none; }
  .rcards { display: grid; gap: 10px; }
  .rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; position: relative; overflow: hidden; }
  .rcard::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--lv); }
  .rc-h { display: flex; gap: 10px; align-items: center; } .rc-h .n { font-size: 16px; } .rc-h div { flex: 1; min-width: 0; } .rc-h b { display: block; font-weight: 600; } .rc-h small { color: var(--muted); font-size: 12px; } .rc-h .go { color: var(--muted); }
  .rc-s { display: flex; align-items: flex-end; gap: 12px; justify-content: space-between; } .rc-s > div { flex: 1; font-family: var(--mono); } .rc-s b { font-size: 18px; } .rc-s span { color: var(--muted); } .rc-s .bar { margin-top: 4px; }
  .rcard dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .rcard dl div { display: flex; flex-direction: column-reverse; } .rcard dl div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 8px; }
  .rcard dt { font-size: 11px; color: var(--muted); } .rcard dd { margin: 0; font: 600 14px var(--mono); }
}
.rfoot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; } .rfoot small { color: var(--muted); font-size: 12px; max-width: 360px; }
.pager { display: flex; gap: 4px; align-items: center; } .pager a, .pager span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; font: 500 13px var(--mono); }
.pager a { border: 1px solid transparent; } .pager a:hover { border-color: var(--line-2); } .pager a.on { background: var(--accent); color: #fff; } .pager .ic { width: 14px; height: 14px; }

/* ---------- Topic (design04/06/07) ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; } .crumbs a:hover { color: var(--accent); }
.th { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.th h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; letter-spacing: -.05em; line-height: 1.04; overflow-wrap: anywhere; }
.claim { font-size: 14px; margin-top: 6px; max-width: 760px; }
.th-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.th-act { display: flex; gap: 8px; } .th-act .btn { height: 40px; }
.th-act .btn[data-watch].on { border-color: var(--accent); color: var(--accent); } .th-act .btn[data-watch].on .ic { fill: var(--accent); }
.tlinks { margin-top: 16px; }
.ov { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); gap: 16px; }
.bsbox { background: var(--dark); color: var(--dark-text); border-radius: var(--r-lg); padding: 20px 22px; display: grid; justify-items: center; text-align: center; }
.bs-h { justify-self: start; display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; } .bs-h .ic { width: 17px; height: 17px; }
.sgauge { position: relative; width: min(300px, 100%); }
.sgauge svg { width: 100%; display: block; overflow: visible; } .sgauge path { fill: none; stroke-width: 15; } .sgauge .track { stroke: #3B383E; } .sgauge .fill { stroke: var(--accent); }
.sgauge text { font-size: 12px; fill: currentColor; opacity: .75; }
.sg-v { position: absolute; inset: 30% 0 auto; display: grid; justify-items: center; }
.sg-v b { font-size: clamp(42px, 6vw, 58px); font-weight: 900; color: var(--accent); letter-spacing: -.04em; line-height: 1; } .sg-v span { font-size: 22px; opacity: .9; }
.bs-lvl { font-size: 21px; font-weight: 700; margin-top: -6px; } .bs-sub { font-size: 13px; opacity: .75; margin-top: 2px; }
.bs-f { display: flex; justify-content: space-between; gap: 12px; width: 100%; border-top: 1px solid #3B383E; margin-top: 14px; padding-top: 12px; font-size: 14px; flex-wrap: wrap; }
.bs-f b { color: var(--accent); font-size: 18px; margin-inline-start: 6px; } .bs-f a { display: inline-flex; align-items: center; gap: 6px; } .bs-f .ic { width: 15px; height: 15px; }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.kv3 > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 0 12px; } .kv3 > div + div { border-inline-start: 1px solid var(--line); }
.kv3 .ic { grid-row: span 2; width: 28px; height: 28px; stroke-width: 1.4; } .kv3 span { font-size: 13px; } .kv3 b { font-size: 24px; font-weight: 600; font-family: var(--mono); } .kv3 b small { font-size: 14px; color: var(--muted); } .kv3 b.o { color: var(--accent); }
.why h2 { margin-bottom: 6px; }
.reasons { list-style: none; margin: 0 0 16px; padding: 0; }
.reasons li { border-bottom: 1px solid var(--line); } .reasons summary { display: flex; align-items: center; gap: 14px; padding: 11px 0; cursor: pointer; list-style: none; } .reasons summary::-webkit-details-marker { display: none; }
.rn { color: var(--accent); font-size: 18px; font-weight: 600; } .rt { flex: 1; } .rk { padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 12px; } .rc { transform: rotate(90deg); transition: transform .2s; color: var(--muted); }
.reasons details[open] .rc, .qacc details[open] .rc { transform: rotate(-90deg); } .reasons details p { padding: 0 0 12px 36px; font-size: 13px; color: var(--muted); }
.why-f { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lchart { width: 100%; height: auto; display: block; overflow: visible; }
.lchart .tick line { stroke: var(--line); stroke-width: 1; } .lchart text { font: 11px var(--mono); fill: var(--muted); }
.lchart .line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lchart .area { fill: color-mix(in srgb, var(--accent) 14%, transparent); } .lchart .dot { fill: var(--accent); } .lchart .last { fill: var(--accent); font-weight: 600; font-size: 13px; }
.lchart.alt .line { stroke: var(--text); stroke-dasharray: 5 4; } .lchart.alt .dot { fill: var(--text); }
.rel ul { list-style: none; margin: 0; padding: 0; } .rel li a { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rel li:last-child a { border: 0; } .rel li span { flex: 1; } .rel li b { color: var(--lv); } .rel li small { color: var(--muted); } .rel li .ic { width: 15px; height: 15px; color: var(--muted); }
@media (max-width: 900px) { .ov { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .th-act { width: 100%; } .th-act .btn:not(.icon-only) { flex: 1; } .kv3 > div { padding: 0 6px; grid-template-columns: 1fr; } .kv3 .ic { grid-row: auto; width: 22px; height: 22px; } .kv3 b { font-size: 19px; } }
.sub-lede { color: var(--muted); margin-bottom: 14px; }
.model2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dim h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 4px 0 8px; }
.dim-v { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dim-v b { font-size: clamp(34px, 5vw, 44px); font-weight: 600; color: var(--accent); font-family: var(--mono); } .dim-v small { display: block; color: var(--muted); font-size: 13px; }
.dim-c { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; } .dim-c span { display: block; font-size: 12px; } .dim-c b { font-size: 18px; color: var(--text); }
.dim-q { margin: 14px 0 10px; font-weight: 500; }
.dist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.dist li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 72px; grid-template-areas: 'w l v' 'w b b'; gap: 4px 12px; align-items: center; font-size: 14px; padding: 6px 0; }
.dist .mono { grid-area: w; } .dist .dl { grid-area: l; } .dist .db { grid-area: b; } .dist b { grid-area: v; }
.dist .dl { line-height: 1.35; } .dist .db { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .dist .db i { display: block; height: 100%; width: var(--v); background: #B9B5AE; border-radius: inherit; }
.dist li.top .db i { background: var(--accent); } .dist b { text-align: end; } .dist .mono { font-size: 12px; color: var(--muted); }
.dim-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.dimtable table { width: 100%; border-collapse: collapse; font-size: 14px; } .dimtable th { text-align: start; font-weight: 500; font-size: 13px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.dimtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); } .dimtable tr.on td { background: var(--accent-soft); } .dimtable tr.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.prov { margin-top: 16px; } .prov summary { display: flex; gap: 16px; align-items: center; cursor: pointer; list-style: none; flex-wrap: wrap; } .prov summary span { color: var(--muted); font-size: 13px; }
@media (max-width: 960px) { .model2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dist li { grid-template-columns: 44px minmax(0, 1fr) 60px; } }
.sbanner { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(220px, 300px); background: var(--dark); color: var(--dark-text); border-radius: var(--r-lg); padding: 18px 22px; align-items: center; margin-bottom: 16px; }
.sbanner > div + div { border-inline-start: 1px solid #3B383E; padding-inline-start: 22px; margin-inline-start: 22px; }
.sb-m h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; } .sb-m p { margin-top: 8px; font-size: 13px; opacity: .85; overflow-wrap: anywhere; } .sb-m .calc b { color: var(--accent); font-size: 16px; }
.sb-f { display: flex; gap: 14px; border: 1px solid #3B383E; border-radius: var(--r); padding: 14px; } .sb-f .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.sb-f b { display: block; font-size: 16px; } .sb-f .ok { display: block; color: #6FD39A; font-weight: 600; margin: 2px 0 6px; } .sb-f a { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--accent); }
.sbanner.meth { grid-template-columns: 1fr; } .sbanner.meth h3 { font-size: clamp(16px, 2.4vw, 26px); margin-top: 6px; }
@media (max-width: 900px) { .sbanner { grid-template-columns: 1fr; } .sbanner > div + div { border: 0; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid #3B383E; } }
.edh2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.edh2 h3 { font-size: 17px; margin: 4px 0; } .edh2 .big { display: block; font: 600 28px var(--mono); color: var(--accent); } .edh2 .bar { margin: 8px 0; } .edh2 p { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .edh2 { grid-template-columns: 1fr; } }
.score2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.trans, .struct { list-style: none; margin: 12px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.trans li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); } .trans li:last-child { border: 0; } .trans span { flex: 1; font-weight: 500; }
.trans .ok { color: var(--good); font-weight: 600; font-size: 14px; } .trans .ic:last-child { width: 15px; height: 15px; }
.struct { border: 0; display: grid; gap: 10px; } .struct li { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.struct li div { flex: 1; } .struct b { display: block; font-size: 18px; } .struct span { font-size: 13px; color: var(--muted); } .struct .ic:first-child { width: 28px; height: 28px; stroke-width: 1.4; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; } .steps3 > div { padding: 0 14px; } .steps3 > div + div { border-inline-start: 1px solid var(--line); } .steps3 > div:first-child { padding-inline-start: 0; }
.steps3 b { font-size: 15px; } .steps3 p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.score2 h3 { margin-top: 18px; font-size: 16px; }
@media (max-width: 900px) { .score2 { grid-template-columns: 1fr; } .steps3 { grid-template-columns: 1fr; gap: 10px; } .steps3 > div { padding: 0; border: 0 !important; } }

/* ---------- topic meters ---------- */
.mgrid { display: grid; gap: 14px; margin-bottom: 14px; }
.mgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mgrid .span2 { grid-column: span 2; } .mgrid .span3 { grid-column: 1 / -1; }
@media (max-width: 1100px) { .mgrid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mgrid.three .span2 { grid-column: 1 / -1; } }
@media (max-width: 640px) { .mgrid.three, .mgrid.four, .mgrid.two { grid-template-columns: minmax(0, 1fr); } .mgrid .span2 { grid-column: auto; } }
.meter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.meter header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .meter h3 { font-size: 16px; font-weight: 800; }
.meter .big { font-size: 24px; font-weight: 600; color: var(--lv); } .meter .big small { font-size: 13px; } .meter .hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.meter.hot { border-color: var(--bad); }
.gauge { position: relative; display: grid; justify-items: center; } .gauge svg { width: 100%; max-width: 300px; overflow: visible; } .gauge path { fill: none; stroke-width: 16; }
.gauge .z1 { stroke: var(--lv-cold); } .gauge .z2 { stroke: var(--lv-mid); } .gauge .z3 { stroke: var(--lv-warm); } .gauge .z4 { stroke: var(--lv-hot); }
.gauge .needle { transform-origin: 100px 100px; transform-box: view-box; animation: needle 1.4s cubic-bezier(.2,1.4,.4,1) both; } .gauge .needle path, .gauge .hub { fill: var(--text); }
@keyframes needle { from { transform: rotate(-90deg); } }
.gauge-v { margin-top: -18px; display: flex; align-items: baseline; gap: 2px; } .gauge-v b { font-size: 34px; font-weight: 600; } .gauge-v small { color: var(--muted); }
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; font-size: 10px; color: var(--muted); text-align: center; margin-top: 8px; }
.zones span { border-top: 3px solid; padding-top: 4px; } .zones span:nth-child(1) { border-color: var(--lv-cold); } .zones span:nth-child(2) { border-color: var(--lv-mid); } .zones span:nth-child(3) { border-color: var(--lv-warm); } .zones span:nth-child(4) { border-color: var(--lv-hot); }
.eq { display: grid; gap: 16px; } .eq div { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; } .eq .bar { grid-column: 1 / -1; height: 12px; }
.eq span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .eq b { font-size: 19px; }
.concl { font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border-inline-start: 3px solid var(--accent); }
.bipolar { display: grid; gap: 14px; } .wing { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; } .wing .bar { grid-column: 1 / -1; height: 12px; } .wing span { font-size: 12px; color: var(--muted); } .wing b { font-size: 19px; }
.radar svg { width: 100%; max-height: 340px; display: block; overflow: visible; } .radar .ring { fill: none; stroke: var(--line); } .radar line { stroke: var(--line); }
.radar .me { fill: color-mix(in srgb, var(--accent) 26%, transparent); stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.radar .cmp { fill: color-mix(in srgb, var(--text) 8%, transparent); stroke: var(--text); stroke-dasharray: 4 3; stroke-width: 1.5; transition: all .5s; }
.radar circle { fill: var(--accent); } .radar text { font: 600 9px var(--mono); fill: var(--muted); }
.radar-v { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 0; font-size: 11px; } .radar-v div { background: var(--surface-2); border-radius: 6px; padding: 6px 8px; }
.radar-v dt { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .radar-v dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .radar-v { grid-template-columns: repeat(2, 1fr); } }
.compare { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); } .compare .chip { padding: 6px 12px; font-size: 13px; }
.slicer { display: flex; flex-direction: column-reverse; height: 210px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.slicer .layer { flex: 0 0 var(--h); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 12px; font-weight: 600; min-height: 22px; transition: flex-basis .7s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.layer.core { background: var(--good); color: #fff; } .layer.common { background: #8CC152; color: #10230a; } .layer.ritual { background: var(--accent); color: #fff; } .layer.negation { background: var(--ink); color: #fff; }
.slicer.cut .layer.ritual, .slicer.cut .layer.negation { flex-basis: 0 !important; min-height: 0; opacity: 0; padding: 0; }
.funnel { display: grid; gap: 10px; } .fstep { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; } .fstep span { font-size: 13px; } .fstep b { font-size: 15px; }
.fstep i { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--v), var(--surface-2) var(--v)); }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); } .stack i { width: var(--w); }
.stack .c1, .sw.c1 { background: var(--accent); } .stack .c2, .sw.c2 { background: var(--ink); } .stack .c3, .sw.c3 { background: #7B61FF; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; } .legend li { display: flex; align-items: center; gap: 8px; } .legend b { margin-inline-start: auto; } .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fogtext { font-size: 13px; color: var(--muted); filter: blur(var(--blur)); user-select: none; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.council { display: flex; justify-content: space-between; gap: 6px; } .council span { flex: 1; aspect-ratio: 1; display: grid; place-items: center; font-size: 20px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--line); animation: wobble 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
@keyframes wobble { 50% { transform: rotate(calc(var(--chaos) * 18deg)) translateY(calc(var(--chaos) * -3px)); } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .timeline li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; opacity: .55; }
.timeline li.on { opacity: 1; background: var(--accent-soft); font-weight: 700; } .timeline .em { font-size: 17px; }
.defcon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .defcon span { display: grid; place-items: center; height: 42px; border-radius: 8px; font: 600 17px var(--mono); background: var(--surface-2); color: var(--muted); }
.defcon span.on { color: #fff; background: hsl(calc(130 - var(--lvl) * 26) 72% 44%); } .na { color: var(--muted); padding: 20px 0; text-align: center; }

/* ---------- Global meters (design05/08) ---------- */
.mtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.mtile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mtile header { display: flex; align-items: center; gap: 10px; } .mtile header h2 { font-size: 17px; font-weight: 700; flex: 1; } .mtile header .ic { width: 22px; height: 22px; } .mtile .info { color: var(--muted); }
.mv b { font: 600 30px var(--mono); } .mv span { color: var(--muted); font: 400 22px var(--mono); margin-inline-start: 6px; }
.ms { font-size: 14px; color: var(--muted); } .mf { display: flex; align-items: center; gap: 8px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; } .mf .ic { width: 16px; height: 16px; color: var(--accent); } .mf .o { color: var(--accent); }
.mgauge .sgauge { width: 210px; margin: 0 auto; color: var(--text); } .mgauge .track { stroke: var(--surface-2); } .mgauge .sg-v b { font-size: 34px; color: var(--text); } .mgauge .sg-v span { font-size: 15px; }
.segbar { position: relative; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 18px; margin-top: 16px; } .segbar i { background: var(--surface-2); border-radius: 2px; } .segbar i.on { background: var(--accent); }
.segbar .pin { position: absolute; top: -12px; inset-inline-start: var(--v); width: 0; height: 0; border: 6px solid transparent; border-top-color: var(--text); transform: translateX(-50%); }
.segax { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; max-width: 280px; } .dots i { aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); } .dots i.on { background: var(--accent); }
.bars5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 130px; }
.bars5 > div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; gap: 3px; text-align: center; } .bars5 i { align-self: end; height: var(--h); min-height: 3px; border-radius: 4px 4px 0 0; background: #CFCAC2; }
.bars5 .b3, .bars5 .b4 { background: var(--accent); } .bars5 .b0 { background: var(--good); } .bars5 span { font-size: 10px; color: var(--muted); } .bars5 b { font-size: 12px; }
.bars14 { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; height: 90px; align-items: end; } .bars14 i { height: var(--h); min-height: 3px; background: #CFCAC2; border-radius: 3px 3px 0 0; } .bars14 i.now { background: var(--accent); }
.split3 { display: flex; height: 18px; border-radius: 4px; overflow: hidden; margin-top: 10px; } .split3 i { width: var(--w); } .split3 .a { background: var(--ink); } .split3 .b { background: var(--accent); } .split3 .c { background: #CFCAC2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .split3 .a { background: #E8E4DE; } }
:root[data-theme="dark"] .split3 .a { background: #E8E4DE; }
.split3l { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; flex-wrap: wrap; }
.catbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.catbars a { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 60px; gap: 14px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.catbars a:hover span { color: var(--accent); } .catbars i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--lv) var(--v), var(--surface-2) var(--v)); } .catbars b { text-align: end; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 16px 0; }
.principles > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px 20px; align-items: center; } .principles > div + div { border-inline-start: 1px solid var(--line); }
.principles .ic { grid-row: span 2; width: 34px; height: 34px; stroke-width: 1.4; } .principles b { font-size: 15px; } .principles span { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .mtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles > div + div { border: 0; border-top: 1px solid var(--line); } .catbars a { grid-template-columns: 1fr 50px; } .catbars i { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 560px) { .mtiles { grid-template-columns: 1fr 1fr; gap: 10px; } .mtile { padding: 12px; } .mtile header h2 { font-size: 14px; } .mv b { font-size: 22px; } .mv span { font-size: 16px; } .mgauge .sgauge { width: 140px; } .mgauge .sg-v b { font-size: 22px; } .bars5 { height: 90px; } .ms { font-size: 12px; } }

/* ---------- Trends (design09/12/13) ---------- */
.kpis.three .kpi > div > small { margin-top: 2px; }
.cmpform .sel { height: 44px; } .cmpform select { max-width: 260px; }
.trendgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .trendgrid { grid-template-columns: 1fr; } }
.vs { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 10px 0 2px; flex-wrap: wrap; } .vs .sw.o { background: var(--accent); } .vs .sw.k { background: var(--text); margin-inline-start: 12px; }
.vsline { margin-top: 10px; font-size: 14px; } .vsline b { color: var(--lv); }
.rbars { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.rbars li { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 44px; gap: 12px; align-items: center; font-size: 14px; } .rbars i { height: 14px; background: linear-gradient(90deg, var(--accent) var(--v), var(--surface-2) var(--v)); border-radius: 2px; } .rbars b { text-align: end; }
.tlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.trow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 150px 70px 54px 20px; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.trow:last-child { border: 0; } .trow:hover { background: var(--surface-2); } .trow .n { color: var(--muted); } .trow b { font-weight: 600; } .trow .spark { width: 140px; height: 32px; } .trow .up { color: var(--accent); } .trow .ic { width: 15px; height: 15px; color: var(--muted); }
@media (max-width: 640px) { .trow { grid-template-columns: 24px minmax(0, 1fr) 60px 48px; } .trow .spark, .trow .ic { display: none; } }

/* ---------- Evaluate (design11) ---------- */
.evalgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
.ev1 h2, .ev2 h2 { font-size: 19px; } .lbl { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
.ev1 textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; font-size: 17px; resize: vertical; background: var(--surface); min-height: 112px; outline: 0; }
.ev1 textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 8px; padding: 14px; margin: 14px 0; font-size: 14px; } .tip .ic { width: 20px; height: 20px; margin-top: 2px; }
.evsub { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; } .evsub b { font-size: 19px; overflow-wrap: anywhere; }
.ev1 .pubnote { justify-content: flex-start; margin-top: 14px; }
.preset { border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 14px; margin-bottom: 12px; font-weight: 500; }
.qacc { display: grid; gap: 8px; } .qacc details { border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; }
.qacc summary { display: flex; align-items: center; gap: 14px; padding: 11px 0; cursor: pointer; list-style: none; } .qacc summary::-webkit-details-marker { display: none; } .qacc summary b { flex: 1; font-weight: 600; }
.qacc p { font-size: 14px; color: var(--muted); padding-bottom: 8px; } .qacc ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.qacc ol li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); font-size: 13px; } .qacc ol li .mono { min-width: 30px; color: var(--muted); }
.evbar { grid-column: 1 / -1; display: grid; gap: 14px; } .checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 4px 22px 4px 0; margin-inline-end: 22px; border-inline-end: 1px solid var(--line); color: var(--muted); font-size: 14px; } .checks li:last-child { border: 0; }
.checks li .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--surface-2); color: var(--muted); } .checks li.ok { color: var(--text); } .checks li.ok .ic { background: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checks li.ok .ic { background: #E8E4DE; color: var(--ink); } }
:root[data-theme="dark"] .checks li.ok .ic { background: #E8E4DE; color: var(--ink); }
.evact { display: flex; justify-content: flex-end; gap: 10px; } .evbar .progress { width: 100%; margin: 0; }
@media (max-width: 900px) { .evalgrid { grid-template-columns: 1fr; } .checks li { border: 0; padding-inline-end: 0; } .evact .btn { flex: 1; } }

/* ---------- footer, toast ---------- */
.foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-in { display: grid; gap: 12px; } .foot-brand { display: flex; gap: 12px; align-items: flex-start; } .foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; color: var(--text); }
#toast { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--tab) + var(--safe-b)); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; box-shadow: 0 16px 30px -16px rgba(0,0,0,.6); animation: fadein .3s both; max-width: calc(100vw - 32px); }
.xp { position: fixed; z-index: 80; inset-inline-end: 16px; bottom: calc(16px + var(--tab) + var(--safe-b)); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; font: 600 13px var(--mono); display: flex; gap: 10px; align-items: center; animation: fadein .4s both; }
.xp b { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 560px) { .bsbox { padding: 16px; } .bsbox .sgauge { width: 230px; } .th-tags .tag.plain:nth-of-type(n+4) { display: none; } .tabbar a.fab span::after { content: attr(data-short); } }

/* theme switcher */
.themepick { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.themepick button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); }
.themepick button .ic { width: 16px; height: 16px; }
.themepick button:hover { color: var(--text); }
.themepick button[aria-pressed="true"] { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .themepick button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .themepick button[aria-pressed="true"] { background: var(--text); color: var(--bg); } }
.sheet .themepick { margin-top: 14px; }
@media (max-width: 1180px) { .nav-right > .themepick { display: none; } }
@media (min-width: 1181px) { .sheet .themepick { display: none; } }
html.theme-anim, html.theme-anim * { transition: background-color .25s, color .25s, border-color .25s !important; }
