/* echo-index.css — The IRGC Echo Index node styles (claude_20261002_cobalt, 2026-10-03)
 * Node content only: the CIC shell (jcom_v0bb_shell_jslc / jcom_v0bb_shell_cic) owns the bar, drawers and rail.
 * Tokens follow jslc.io shell-tokens (--of-*) and the CIC Workbench canvas artboards.
 * Quiet by default: Arial, 12–13px body, cobalt only for selection / links / primary action.
 */
:root {
  color-scheme: light;
  --paper: #f6f7fa; --paper-soft: #e9eef9; --card: #fff;
  --ink: #111a2d; --muted: #536078; --rule: #8193bc; --line: rgba(17,26,45,.12); --line-soft: rgba(17,26,45,.07);
  --cobalt: #002eac; --link: #002eac; --accent-subtle: rgba(0,46,172,.09);
  --good: #16803d; --bad: #b62d35; --amber: #ad5b00;
  --glass: rgba(246,247,250,.74); --glass-strong: rgba(246,247,250,.94); --glass-line: rgba(17,26,45,.14);
  --blur: blur(18px) saturate(150%);
  --scrim: rgba(4,16,46,.35);
  --shadow: 0 10px 28px rgba(17,26,45,.18);
  /* marks: IRGC member = green, Western echo = orange (dashed), notes = blue */
  --m-irgc-bg: rgba(22,128,61,.13); --m-irgc-line: #16803d;
  --m-west-bg: rgba(173,91,0,.12); --m-west-line: #c06a10;
  --note-bg: rgba(0,46,172,.07); --note-line: rgba(0,46,172,.35);
  --tier-S: #b62d35; --tier-A: #c06a10; --tier-B: #002eac; --tier-C: #536078; --tier-D: #8193bc;
  --top: env(safe-area-inset-top);
  --font: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0b1324; --paper-soft: #18253e; --card: #0f1d37;
  --ink: #f3f6ff; --muted: #b3bfd8; --rule: #465c8f; --line: rgba(243,246,255,.12); --line-soft: rgba(243,246,255,.07);
  --cobalt: #93b4ff; --link: #93b4ff; --accent-subtle: rgba(147,180,255,.16);
  --good: #4ade80; --bad: #ff8189; --amber: #f0a24a;
  --glass: rgba(11,19,36,.74); --glass-strong: rgba(11,19,36,.95); --glass-line: rgba(243,246,255,.14);
  --m-irgc-bg: rgba(74,222,128,.14); --m-irgc-line: #4ade80;
  --m-west-bg: rgba(240,162,74,.14); --m-west-line: #f0a24a;
  --note-bg: rgba(147,180,255,.1); --note-line: rgba(147,180,255,.4);
  --tier-S: #ff8189; --tier-A: #f0a24a; --tier-B: #93b4ff; --tier-C: #b3bfd8; --tier-D: #465c8f;
} }
:root[data-theme="dark"] {
  --paper: #0b1324; --paper-soft: #18253e; --card: #0f1d37;
  --ink: #f3f6ff; --muted: #b3bfd8; --rule: #465c8f; --line: rgba(243,246,255,.12); --line-soft: rgba(243,246,255,.07);
  --cobalt: #93b4ff; --link: #93b4ff; --accent-subtle: rgba(147,180,255,.16);
  --good: #4ade80; --bad: #ff8189; --amber: #f0a24a;
  --glass: rgba(11,19,36,.74); --glass-strong: rgba(11,19,36,.95); --glass-line: rgba(243,246,255,.14);
  --m-irgc-bg: rgba(74,222,128,.14); --m-irgc-line: #4ade80;
  --m-west-bg: rgba(240,162,74,.14); --m-west-line: #f0a24a;
  --note-bg: rgba(147,180,255,.1); --note-line: rgba(147,180,255,.4);
  --tier-S: #ff8189; --tier-A: #f0a24a; --tier-B: #93b4ff; --tier-C: #b3bfd8; --tier-D: #465c8f;
}
* { box-sizing: border-box; }
.x { background: color-mix(in srgb, var(--ink) 8%, transparent) !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 12.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
b, strong { font-weight: 700; }
a { color: var(--link); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
sup { font-size: .62em; vertical-align: .55em; line-height: 0; }


/* ---------- type helpers ---------- */
.kk { color: var(--muted); font: 700 8.75px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.kk.c { color: var(--cobalt); }
.muted { color: var(--muted); }
.x-term { border: 0; padding: 0; background: none; border-bottom: 1.5px dotted var(--cobalt); color: inherit; font: inherit; cursor: help; }
.x-term.open { background: var(--accent-subtle); border-bottom-style: solid; }
.xi { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 2px; border-radius: 50%; border: 1.3px solid var(--cobalt); color: var(--cobalt); font: italic 700 8.5px/1 Georgia, serif; vertical-align: 1px; flex: none; }
.glass { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- controls: quiet visuals, generous targets ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); color: var(--cobalt); font: 700 11px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.pri { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
:root[data-theme="dark"] .btn.pri { color: #0b1324; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.pri { color: #0b1324; } }
.btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 40px); height: max(100%, 44px); transform: translate(-50%,-50%); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; background: var(--card); }
.seg button { position: relative; height: 28px; padding: 0 11px; border: 0; border-left: 1px solid var(--rule); background: transparent; color: var(--ink); font: 400 11px/1 var(--font); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--cobalt); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .seg button.on { color: #0b1324; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { color: #0b1324; } }
.seg.full { display: flex; } .seg.full button { flex: 1; height: 32px; font-size: 12px; }
.x { position: relative; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(17,26,45,.08); color: var(--muted); font: 700 11px/1 var(--font); cursor: pointer; flex: none; }
.x::after { content: ""; position: absolute; inset: -10px; }

/* ---------- page column ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); }
h1 { margin: 6px 0 6px; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
@media (min-width: 760px) { h1 { font-size: 24px; } .wrap { padding-top: 30px; } }

/* ---------- dock: one quiet row of controls at the bottom ---------- */
.dock { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--glass-line); border-radius: 10px; box-shadow: 0 6px 20px rgba(17,26,45,.12); }
.dock .grow { flex: 1; }
@media (min-width: 760px) { .dock { left: 50%; right: auto; transform: translateX(-50%); min-width: 560px; } }
.pager { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); height: 28px; }
.pager button { position: relative; width: 28px; height: 26px; border: 0; background: none; color: var(--cobalt); font: 700 13px/1 var(--font); cursor: pointer; }
.pager button::after { content: ""; position: absolute; inset: -9px -4px; }
.pager button:disabled { color: var(--rule); cursor: default; }
.pager span { min-width: 54px; padding: 0 6px; text-align: center; font: 700 11.5px/26px var(--font); font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- sheets, panels, scrim ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 61; left: 6px; right: 6px; bottom: calc(6px + env(safe-area-inset-bottom)); max-height: min(78dvh, 640px); display: flex; flex-direction: column; border: 1px solid var(--glass-line); border-radius: 12px; box-shadow: 0 -8px 30px rgba(17,26,45,.18); background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateY(calc(100% + 20px)); transition: transform .28s cubic-bezier(.32,.72,0,1); }
.sheet.open { transform: none; }
@media (min-width: 760px) { .sheet { left: 50%; right: auto; width: 520px; margin-left: -260px; } }
.grab { width: 36px; height: 4px; margin: 7px auto 0; border-radius: 2px; background: rgba(17,26,45,.25); flex: none; }
.shd { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px 9px; border-bottom: 1px solid var(--line); flex: none; }
.shd .ttl { margin: 4px 0 2px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.shd .sub { color: var(--muted); font-size: 11.5px; }
.shd > div { flex: 1; min-width: 0; }
.sbody { overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px 6px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid var(--line); flex: none; }
.navrow { position: relative; display: block; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.navrow b { display: block; font-size: 12.5px; }
.navrow small { color: var(--muted); font-size: 11px; }
.navrow::after { content: "›"; position: absolute; right: 12px; top: 50%; margin-top: -8px; color: var(--muted); font-weight: 700; }
.navrow.on { background: var(--accent-subtle); }
.navrow.on b { color: var(--cobalt); }
.navrow.on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--cobalt); }
.psec { padding: 12px; border-bottom: 1px solid var(--line); }
.psec p { margin: 6px 0 0; font-size: 12px; }

/* share grid */
.share-link { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
.share-link div { flex: 1; min-width: 0; }
.share-link b { display: block; font-size: 12px; }
.share-link small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; margin-top: 8px; }
.sgrid a, .sgrid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink); font: 400 10.5px/1.25 var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.sgrid i { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--cobalt); border-radius: 9px; color: var(--cobalt); font: 700 10px/1 var(--font); font-style: normal; }
.sgrid small { color: var(--muted); font-size: 9.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pills a { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 6px; border: 1px solid var(--rule); border-radius: 13px; color: var(--ink); font-size: 11px; text-decoration: none; }
.pills a i { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--cobalt); border-radius: 4px; color: var(--cobalt); font: 700 6.5px/1 var(--font); font-style: normal; }

/* tiers */
.tdot { display: inline-flex; align-items: center; gap: 4px; font: 700 11px/1 var(--font); }
.tdot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-S { color: var(--tier-S); } .t-A { color: var(--tier-A); } .t-B { color: var(--tier-B); } .t-C { color: var(--tier-C); } .t-D { color: var(--tier-D); }

/* empty / notice */
.empty { padding: 14px 0; color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 12px; opacity: 0; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }

/* ---------- in-page "View options" disclosure (replaces the alpha's ◧ node panel) ---------- */
details.opts { margin-top: 14px; border-top: 1px solid var(--line); }
details.opts > summary { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; min-height: 44px; padding-top: 12px; cursor: pointer; font-weight: 700; font-size: 12.5px; list-style: none; }
details.opts > summary::-webkit-details-marker { display: none; }
details.opts > summary small { color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
details.opts > summary::after { content: "›"; margin-left: auto; color: var(--muted); transition: transform .2s; }
details.opts[open] > summary::after { transform: rotate(90deg); }
details.opts .psec { padding: 0 0 12px; border-bottom: 0; }

/* ---------- utilities (no inline style attributes anywhere: CSP style-src 'self') ---------- */
.mt-0 { margin-top: 0 !important; } .mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; }
.mb-4 { margin-bottom: 4px; } .mb-6 { margin-bottom: 6px; } .mb-8 { margin-bottom: 8px; }
.fs-10 { font-size: 10.5px; } .fs-11 { font-size: 11px; } .fs-115 { font-size: 11.5px; } .fs-12 { font-size: 12px; } .fs-15 { font-size: 15px; } .fs-17 { font-size: 17px; } .fs-20 { font-size: 20px; }
.fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.c-ink { color: var(--ink); } .c-cobalt { color: var(--cobalt); }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; }
.w-full { width: 100%; } .h-34 { height: 34px; } .h-36 { height: 36px; }
.hidden { display: none !important; }
.share-btn-pri { width: 100%; height: 36px; }
