/* =====================================================================
   AI4Science Standalone Chrome Bridge -> Ecology v4 ledger.css
   Restores site.css base resets & scoped JL Plex Mono variable without
   altering .site-head or .site-footer typography from ai4site/chrome.css.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.ledger-shell,
.col-popover,
.jmap-tip,
.inspector-drawer,
.jl-fb-dlg {
  --paper:       #FBF9F6;
  --tint:        #F1EEE9;
  --tint-2:      #EAE6DF;
  --tag:         #F1EEE9;
  --ink:         #2E2926;
  --ink2:        #5C524B;
  --ink3:        #6E655E;
  --ink-2:       #5C524B;
  --ink-3:       #6E655E;
  --ink-4:       #A39588;
  --rule:        #E2DDD6;
  --rule-strong: #CCC5BB;
  --acc:         #94501F;
  --rust:        #94501F;
  --rust-soft:   #F6EAE1;
  --rust-bd:     #DFB79A;
  --moss:        #275D46;
  --ochre:       #8A5614;
  --slate:       #355C6E;
  --brick:       #8A3B32;
  --serif:       "NR", "WK", Georgia,"Songti SC",serif;
  --mono:        "JL Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: var(--serif);
  color: var(--ink);
}

.ledger-shell h1, .ledger-shell h2, .ledger-shell h3,
.ledger-shell p, .ledger-shell ul, .ledger-shell ol,
.inspector-drawer h2, .inspector-drawer h3,
.inspector-drawer p, .inspector-drawer ul {
  margin: 0;
  padding: 0;
}
.ledger-shell ul, .ledger-shell ol, .inspector-drawer ul { list-style: none; }
.ledger-shell a, .inspector-drawer a { color: var(--rust); text-decoration: none; }
.ledger-shell a.btn-prim, .inspector-drawer a.btn-prim { color: var(--paper); text-decoration: none; }
.ledger-shell a.btn-prim:hover, .inspector-drawer a.btn-prim:hover { color: var(--paper); text-decoration: none; opacity: 0.92; }
.ledger-shell a.btn-ghost, .inspector-drawer a.btn-ghost { color: var(--ink-2); text-decoration: none; }
.ledger-shell a.btn-ghost:hover, .inspector-drawer a.btn-ghost:hover { color: var(--rust); text-decoration: none; }
.ledger-shell a:hover, .inspector-drawer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.ledger-shell a:focus-visible, .ledger-shell button:focus-visible,
.inspector-drawer a:focus-visible, .inspector-drawer button:focus-visible,
.col-popover button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap.ledger-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4.8vw, 4rem);
  padding-right: clamp(1.25rem, 4.8vw, 4rem);
}
html .site-footer {
  margin-top: 56px;
}
@media (max-width: 760px) {
  .wrap.ledger-shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  html .site-footer {
    margin-top: 40px;
  }
}

/* =====================================================================
   Juan Li · Open Resources Unified Editorial System v4
   Applies to /resources/funding/, /conferences/, /journals/
   - Warm paper #FBF9F6, zero #FFFFFF cards, zero box-soup
   - NR + WK weight 400 (font-synthesis: none) + JL Plex Mono on pure ASCII
   - 3 bespoke interactive visualizations (>=13px readable type)
   - Linear/Notion-inspired uniform column headers + floating filter/sort popover
   ===================================================================== */
:root {
  --paper:       #FBF9F6;
  --tint:        #F1EEE9;
  --tint-2:      #EAE6DF;
  --ink:         #2E2926;
  --ink-2:       #5C524B;
  --ink-3:       #6E655E;
  --ink-4:       #A39588;
  --rule:        #E2DDD6;
  --rule-strong: #CCC5BB;

  --rust:        #94501F;
  --rust-soft:   #F6EAE1;
  --rust-bd:     #DFB79A;
  --moss:        #275D46;
  --ochre:       #8A5614;
  --slate:       #355C6E;
  --brick:       #8A3B32;

  --serif: "NR", "WK", Georgia,"Songti SC",serif;
  --mono:  "JL Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

body.ledgerpage {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-synthesis: none;
}

.ledger-shell, .ledger-shell * {
  font-weight: 400;
  font-synthesis: none;
}

.ledger-shell {
  font-size: 15.5px;
  line-height: 1.5;
  padding-top: 16px;
  padding-bottom: 16px;
}

body.ledgerpage footer.site {
  margin-top: 56px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---- Crisp Masthead ---- */
.lg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 14px;
}
.lg-head h1 {
  font-size: clamp(26px, 2.7vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.lg-head .nw { white-space: nowrap; }
.lg-head-stamp {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---- Bespoke Top Visualizations (Unified 14px True CSS Typography) ---- */
.vis-strip {
  margin: 0 0 20px;
}
.vis-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.vis-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.vis-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0;
}
.vis-swatch-urg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #B83A1B;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px rgba(184, 58, 27, 0.55);
  margin-right: 7px;
  vertical-align: 0;
}
.vis-swatch-bar {
  display: inline-block;
  width: 14px;
  height: 7px;
  border-radius: 3.5px;
  background: var(--rust);
  margin-right: 6px;
  vertical-align: 1px;
}
.vis-swatch-pin {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate);
  border: 1.5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--slate);
  margin-right: 7px;
  vertical-align: -1px;
}
.vis-swatch-zone {
  display: inline-block;
  width: 15px;
  height: 11px;
  border-left: 2px solid #B83A1B;
  border-top: 2px solid #B83A1B;
  border-right: 1px dashed rgba(184, 58, 27, 0.45);
  background: rgba(184, 58, 27, 0.13);
  border-radius: 0 2px 2px 0;
  margin-right: 6px;
  vertical-align: -1px;
}
.vis-clear-btn {
  appearance: none;
  background: var(--rust-soft);
  border: 1px solid var(--rust-bd);
  border-radius: 4px;
  padding: 2px 9px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--rust);
  cursor: pointer;
}
.vis-clear-btn:hover { background: var(--paper); }

/* Unified HTML+CSS Positioning Stage (Funding & Journals — True 14px CSS Pixels, Never Shrunk) */
.pos-scroll {
  overflow-x: auto;
  max-width: 100%;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.pos-stage {
  position: relative;
  min-width: 880px;
  height: 368px;
  user-select: none;
}
.pos-stage.is-journals {
  height: 446px;
}
.pos-free-subhd {
  position: absolute;
  top: 32px;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  pointer-events: none;
}
.pos-free-div {
  position: absolute;
  top: 34px;
  bottom: 34px;
  border-left: 1px dashed rgba(206, 196, 181, 0.65);
  pointer-events: none;
}
.jmap-subblock {
  margin-top: 20px;
}
.pos-yhead {
  position: absolute;
  top: 10px;
  left: 0;
  width: 48px;
  text-align: right;
  font-size: 13px;
  color: var(--ink-3);
  pointer-events: none;
}
.pos-zone {
  position: absolute;
  top: 10px;
  bottom: 34px;
  border-radius: 4px;
}
.pos-zone-hd {
  position: absolute;
  top: 7px;
  left: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.pos-grid-h {
  position: absolute;
  left: 54px;
  right: 10px;
  border-top: 1px dashed #DBD5CC;
  pointer-events: none;
}
.pos-ytick {
  position: absolute;
  left: 0;
  width: 48px;
  transform: translateY(-50%);
  text-align: right;
  font-size: 13px;
  color: var(--ink-3);
  pointer-events: none;
}
.pos-grid-v {
  position: absolute;
  top: 36px;
  bottom: 34px;
  border-left: 1px solid #EAE6DF;
  pointer-events: none;
}
.pos-xtick {
  position: absolute;
  bottom: 7px;
  transform: translateX(-50%);
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 1px 4px;
  font-family: var(--serif);
}
button.pos-xtick { cursor: pointer; border-radius: 3px; }
button.pos-xtick:hover { color: var(--rust); background: var(--tint); }
button.pos-xtick.is-on { color: var(--rust); background: var(--rust-soft); }
.pos-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  margin-top: -5.5px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.pos-dot:hover { transform: scale(1.28); z-index: 5; border-color: var(--ink); }
.pos-dot.is-urg {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  background: #B83A1B !important;
  box-shadow: 0 0 0 2.5px rgba(184, 58, 27, 0.35);
  z-index: 3;
}
.pos-lbl {
  position: absolute;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

/* Unified 15-Month Horizon Timeline (Shared by Funding, Conferences & Open Special Issues) */
.gantt-scroll { overflow-x: auto; max-width: 100%; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.gantt-board { min-width: 780px; display: flex; flex-direction: column; }
.gt-head {
  display: flex;
  align-items: center;
  background: var(--tint);
  border-bottom: 1px solid var(--rule-strong);
  height: 32px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.gt-name-col {
  flex: 0 0 282px;
  padding: 0 10px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  min-width: 0;
}
.gt-name-col.is-fund {
  flex: 0 0 292px;
  justify-content: space-between;
}
.gt-name-col.is-cfp {
  flex: 0 0 436px;
}
@media (max-width: 1120px) {
  .gt-name-col.is-cfp { flex: 0 0 360px; }
}
.gt-name-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.gt-amt {
  flex: none;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-left: 6px;
  white-space: nowrap;
}
.gt-hd-lbl { padding-left: 16px; color: var(--ink-2); }
.gt-track-col {
  flex: 1 1 auto;
  position: relative;
  height: 100%;
}
.gt-ticks {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  align-items: center;
}
.gt-tick {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  padding: 0;
  white-space: nowrap;
  border-left: 1px solid var(--rule);
  height: 32px;
  line-height: 32px;
  position: relative;
  z-index: 1;
}
.gt-tick.is-yr { color: var(--ink); border-left-color: var(--rule-strong); }
.gt-tick.is-now { color: #B83A1B; }
.gt-row {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(228, 221, 210, 0.7);
  padding: 0;
  margin: 0;
  width: 100%;
  height: 29px;
  display: flex;
  align-items: center;
  font-family: var(--serif);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, opacity 0.14s ease;
}
.gt-row.is-compact { height: 26.5px; }
.gt-row:last-child { border-bottom: 0; }
.gt-row:hover { background: var(--tint); }
.gt-row.is-dim { opacity: 0.2; }
.gt-tg-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
}
.gt-src-dot {
  flex: none;
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
}
.gt-src-dot.is-gov { background: var(--slate); }
.gt-src-dot.is-ngo { background: var(--moss); }
.gt-tg-spacer { flex: none; width: 7px; height: 7px; }
.gt-name-txt {
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-cfp-jrnl {
  color: var(--ink-2);
  margin-right: 5px;
}
.gt-row:hover .gt-name-txt { color: var(--rust); }
.gt-bars {
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0,
    var(--rule) 1px,
    transparent 1px,
    transparent calc(100% / 15)
  );
}
/* Unified Today Anchor Line + 45-Day Countdown Warning Band */
.gt-warn-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(184, 58, 27, 0.068);
  border-left: 1.5px solid rgba(184, 58, 27, 0.72);
  border-right: 1px dashed rgba(184, 58, 27, 0.34);
  pointer-events: none;
  z-index: 0;
}
.gt-head .gt-warn-band {
  border-top: 2.5px solid #B83A1B;
  border-left: 0;
  background: rgba(184, 58, 27, 0.095);
}
.gt-abs-bar {
  position: absolute;
  top: 9.5px;
  height: 8px;
  min-width: 10px;
  border-radius: 4px;
  background: var(--rust);
  opacity: 0.88;
  z-index: 1;
}
.gt-abs-bar.is-urg { background: #B83A1B; opacity: 0.95; }
.gt-win-bar {
  position: absolute;
  top: 9px;
  height: 7.5px;
  min-width: 8px;
  border-radius: 4px;
  opacity: 0.82;
  z-index: 1;
}
.gt-row.is-compact .gt-win-bar { top: 8.5px; height: 7px; }
.gt-win-bar.is-gov { background: var(--slate); }
.gt-win-bar.is-ngo { background: var(--moss); }
.gt-win-bar.is-cfp { background: var(--rust); opacity: 0.86; }
.gt-win-bar.is-urg { background: #B83A1B; opacity: 0.94; }
.gt-conn-line {
  position: absolute;
  top: 13px;
  height: 1.5px;
  background: #B8AB9B;
  z-index: 1;
}
.gt-evt-pin {
  position: absolute;
  top: 8px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--slate);
  border: 1.5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--slate);
  z-index: 2;
}
.gt-cut-pin {
  position: absolute;
  top: 8px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  z-index: 2;
}
.gt-row.is-compact .gt-cut-pin { top: 7px; }
.gt-cut-pin.is-gov { background: var(--slate); box-shadow: 0 0 0 1px var(--slate); }
.gt-cut-pin.is-ngo { background: var(--moss); box-shadow: 0 0 0 1px var(--moss); }
.gt-cut-pin.is-cfp { background: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.gt-cut-pin.is-urg {
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: #B83A1B;
  box-shadow: 0 0 0 2.5px rgba(184, 58, 27, 0.36);
  z-index: 3;
}
.gt-pin-date {
  position: absolute;
  top: 5px;
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.gt-pin-date.is-urg { color: #B83A1B; margin-left: 11px; }
.gt-biennial-note {
  position: absolute;
  left: 14px;
  top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  z-index: 1;
}
.gt-roll-dock {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 0;
  background: #F1EEE9;
  border-top: 1px solid var(--rule-strong);
}
.gt-roll-hd {
  flex: 0 0 292px;
  padding: 0 10px 0 16px;
  font-size: 13.5px;
  color: var(--moss);
}
.gt-roll-list {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  padding: 2px 8px;
}
.gt-roll-pill {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.12s ease, opacity 0.14s ease;
}
.gt-roll-pill:hover { border-color: var(--rust); color: var(--rust); }
.gt-roll-pill.is-dim { opacity: 0.25; }

.lg-fb-inline {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--rust);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 3) Journals Legend Pills & Open Special Issues Shelf */
.jbar-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.jbar-btn {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jbar-btn .vis-swatch {
  width: 9px;
  height: 9px;
  margin-right: 0;
}
.jbar-btn:hover { background: var(--tint); color: var(--ink); }
.jbar-btn.is-on { background: var(--rust-soft); border-color: var(--rust-bd); color: var(--rust); }
.jbar-btn .jb-n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.jbar-btn.is-on .jb-n { color: var(--rust); }
.cfp-shelf {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.cfp-shelf-hd {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.cfp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
}
.cfp-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.cfp-item:hover .cfp-topic { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }
.cfp-due {
  flex: none;
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--tint);
  padding: 1px 6px;
  border-radius: 3px;
}
.cfp-due.is-urg {
  color: var(--rust);
  background: var(--rust-soft);
}
.cfp-jrnl {
  flex: none;
  color: var(--ink-2);
  font-size: 14px;
}
.cfp-sep { color: var(--ink-4); flex: none; }
.cfp-topic {
  color: var(--ink);
}
@media (max-width: 960px) {
  .cfp-grid { grid-template-columns: 1fr; }
}

/* Floating Tooltip for Positioning Map */
.jmap-tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 8px 24px rgba(44, 34, 28, 0.14);
  border-radius: 5px;
  padding: 8px 11px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.jmap-tip[hidden] { display: none; }
.jmap-tip-t { font-size: 14px; color: var(--ink); display: block; }
.jmap-tip-m { font-size: 12.5px; color: var(--ink-2); display: block; margin-top: 2px; }

/* ---- Flush Sticky Table Control Cap + Uniform Column Headers ---- */
.ledger-frame {
  border-top: 1.5px solid var(--ink);
}
.cmd-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 0;
  min-height: 50px;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  background: var(--paper);
}
.cmd-bar.is-sticky {
  position: sticky;
  top: 0;
  z-index: 15;
}
.cmd-inline-leg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
  margin-right: 4px;
}
.sw-bar-solid {
  display: inline-block;
  width: 13px;
  height: 7px;
  border-radius: 3.5px;
  background: var(--rust);
  margin-right: 5px;
  vertical-align: 1px;
}
.sw-bar-hollow {
  display: inline-block;
  width: 13px;
  height: 7px;
  border-radius: 3.5px;
  background: var(--rust-soft);
  border: 1.4px solid var(--rust);
  margin-right: 5px;
  vertical-align: 1px;
}
.cmd-search {
  flex: 1 1 180px;
  max-width: 240px;
  min-height: 33px;
  padding: 4px 10px;
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}
.cmd-search:focus { outline: none; background: var(--paper); border-color: var(--rust); }

.cmd-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 33px;
  padding: 4px 28px 4px 10px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%235C524B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 11px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  cursor: pointer;
}
.cmd-select:focus { outline: none; border-color: var(--rust); }

.cmd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  min-height: 33px;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.cmd-toggle:hover { border-color: var(--ink-2); color: var(--ink); }
.cmd-toggle.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cmd-toggle.is-pop-active { background: var(--rust-soft); color: var(--rust); border-color: var(--rust-bd); }

.cmd-reset {
  appearance: none;
  background: none;
  border: 0;
  color: var(--rust);
  font-family: var(--serif);
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 6px;
}
.cmd-reset[hidden] { display: none; }

.cmd-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cmd-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.cmd-cmp-btn {
  appearance: none;
  background: var(--rust-soft);
  border: 1px solid var(--rust-bd);
  color: var(--rust);
  border-radius: 4px;
  padding: 4px 10px;
  min-height: 33px;
  font-family: var(--serif);
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}
.cmd-cmp-btn[hidden] { display: none; }

/* ---- Compare Strip ---- */
.cmp-panel {
  margin: 0;
  padding: 14px 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--rule-strong);
}
.cmp-panel[hidden] { display: none; }
.cmp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cmp-panel-head h2 { font-size: 15.5px; color: var(--ink); margin: 0; }
.cmp-scroll { overflow-x: auto; max-width: 100%; }
.cmp-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.cmp-tbl th, .cmp-tbl td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--rule-strong);
  text-align: left;
  vertical-align: top;
}
.cmp-tbl thead th { border-bottom: 1.5px solid var(--ink); color: var(--ink); font-size: 14.5px; }
.cmp-tbl tbody th { color: var(--ink-3); width: 120px; font-size: 13px; }
.cmp-x {
  float: right;
  appearance: none;
  background: none;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
}
.cmp-x:hover { color: var(--brick); }

/* ---- Editorial Precision Table & Unified Inline Timeline Column ---- */
.ed-table-wrap { overflow-x: visible; max-width: 100%; }
@media (max-width: 1024px) {
  .ed-table-wrap { overflow-x: auto; }
}
@media (max-width: 760px) {
  .cmd-inline-leg { display: none; }
}
.ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.ed-table thead th {
  position: sticky;
  top: 50px;
  background: var(--tint);
  border-bottom: 1px solid var(--rule-strong);
  padding: 0;
  height: 44px;
  vertical-align: middle;
  text-align: left;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  z-index: 12;
}
@media (max-width: 1024px) {
  .ed-table thead th { top: 0; }
}
.ed-table thead th.is-num { text-align: right; }
.th-plain {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.th-btn {
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0 6px;
  height: 44px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.ed-table thead th.is-num .th-btn { justify-content: flex-end; }
.th-btn:hover { background: var(--tint-2); color: var(--ink); }
.th-btn.is-active { color: var(--rust); }

/* Two-Tier Sticky Timeline Column Header (Title + 15-Month Ruler) */
.ed-table thead th.th-tl-col {
  min-width: 310px;
  border-left: 1px solid var(--rule-strong);
}
.th-tl-btn {
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--serif);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.th-tl-btn:hover { background: var(--tint-2); }
.th-tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px 1px;
  font-size: 12.5px;
  line-height: 1.15;
  color: var(--ink-2);
  width: 100%;
}
.th-tl-btn.is-active .th-tl-top { color: var(--rust); }
.th-tl-ticks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  width: 100%;
  height: 21px;
  border-top: 1px solid rgba(206, 196, 181, 0.7);
}
.th-tl-tick {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  color: var(--ink-3);
  text-align: center;
  border-left: 1px solid rgba(228, 221, 210, 0.8);
  position: relative;
  z-index: 1;
}
.th-tl-tick:first-child { border-left: 0; }
.th-tl-tick.is-yr {
  color: var(--ink);
  border-left: 1px solid var(--rule-strong);
}
.th-tl-tick.is-now { color: #B83A1B; }
.th-tl-warn30 {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(184, 58, 27, 0.10);
  border-top: 2px solid #B83A1B;
  pointer-events: none;
  z-index: 0;
}

/* Inline Timeline Table Body Cell */
.ed-table tbody td.td-tl {
  padding: 0;
  border-left: 1px solid var(--rule);
  vertical-align: middle;
}
.tl-box {
  position: relative;
  width: 100%;
  height: 44px;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 15 - 1px),
    rgba(228, 221, 210, 0.65) calc(100% / 15 - 1px),
    rgba(228, 221, 210, 0.65) calc(100% / 15)
  );
}
.tl-warn30 {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(184, 58, 27, 0.065);
  border-left: 1.5px solid rgba(184, 58, 27, 0.68);
  pointer-events: none;
  z-index: 0;
}
.tl-bar {
  position: absolute;
  top: 17.5px;
  height: 8.5px;
  min-width: 8px;
  border-radius: 4.5px;
  z-index: 1;
}
.tl-bar.is-solid {
  background: var(--rust);
  opacity: 0.86;
}
.tl-bar.is-hollow {
  background: var(--rust-soft);
  border: 1.5px solid var(--rust);
}
.tl-bar.is-urg {
  background: #B83A1B;
  opacity: 0.94;
}
.tl-conn {
  position: absolute;
  top: 21px;
  height: 1.5px;
  background: #B8AB9B;
  z-index: 1;
}
.tl-pin {
  position: absolute;
  top: 16.5px;
  width: 10.5px;
  height: 10.5px;
  margin-left: -5.25px;
  border-radius: 50%;
  z-index: 2;
}
.tl-pin.is-solid {
  background: var(--rust);
  border: 1.5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--rust);
}
.tl-pin.is-hollow {
  background: var(--paper);
  border: 2px solid var(--rust);
}
.tl-pin.is-evt {
  width: 11px;
  height: 11px;
  top: 16px;
  margin-left: -5.5px;
  background: var(--slate);
  border: 1.5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--slate);
}
.tl-pin.is-urg {
  width: 11.5px;
  height: 11.5px;
  top: 16px;
  margin-left: -5.75px;
  background: #B83A1B;
  border: 1.5px solid var(--paper);
  box-shadow: 0 0 0 2.5px rgba(184, 58, 27, 0.36);
  z-index: 3;
}
.tl-date {
  position: absolute;
  top: 13.5px;
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.tl-date.is-urg { color: #B83A1B; margin-left: 11px; }
.tl-roll {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 11px;
  height: 22px;
  border-radius: 4px;
  border: 1px dashed #C7B6A2;
  background: rgba(246, 234, 225, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-2);
  z-index: 1;
}
.tl-note {
  position: absolute;
  left: 10px;
  right: 8px;
  top: 13px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}
.th-btn .th-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  flex: none;
}
.th-ico {
  width: 11px;
  height: 11px;
  flex: none;
  opacity: 0.55;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.th-btn:hover .th-ico { opacity: 0.95; }
.th-btn.is-active .th-ico { opacity: 1; color: var(--rust); }
.th-sort-ghost {
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.th-btn:hover .th-sort-ghost { opacity: 0.5; }
.th-sort-live {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
}

/* Linear / Notion Column Header Popover Menu */
.col-popover {
  position: fixed;
  z-index: 45;
  min-width: 196px;
  max-width: 260px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(44, 34, 28, 0.15);
  padding: 5px;
  font-size: 13.5px;
}
.col-popover[hidden] { display: none; }
.pop-sec-lbl {
  display: block;
  padding: 4px 9px 3px;
  font-size: 12px;
  color: var(--ink-3);
}
.pop-sep {
  height: 1px;
  background: var(--rule);
  margin: 4px 4px;
}
.pop-item {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  padding: 6px 9px;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.pop-item:hover { background: var(--tint); }
.pop-item.is-sel { background: var(--rust-soft); color: var(--rust); }
.pop-item-r {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.pop-item.is-sel .pop-item-r { color: var(--rust); }

/* Table Body Rows */
.ed-table tbody tr {
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.ed-table tbody tr:hover { background: var(--tint); }
.ed-table tbody tr.is-selected { background: var(--rust-soft); }
.ed-table tbody tr.is-dim { opacity: 0.58; }
.ed-table tbody tr.is-dim:hover { opacity: 0.92; }
.ed-table tbody td {
  padding: 10px 7px;
  vertical-align: middle;
}
.ed-table tbody td.is-num { text-align: right; white-space: nowrap; }

.t-name { font-size: 15.5px; color: var(--ink); line-height: 1.35; display: block; }
.t-name a { color: var(--ink); }
.t-name a:hover { color: var(--rust); }
.t-sub  { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; display: block; line-height: 1.38; }

.t-art-hint {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--moss);
}
.t-art-hint.is-pitch { color: var(--ochre); }

.ni-tag {
  display: inline-block;
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
}

.ed-table.is-unified tbody td { padding: 8px 6px; }
.ed-table.is-unified tbody td.td-tl { padding: 0; }
.ed-table.is-unified .t-name { font-size: 14.5px; line-height: 1.32; }
.ed-table.is-unified .t-sub  { font-size: 12.5px; line-height: 1.32; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-rust-solid  { background: var(--rust); }
.dot-rust-hollow { width: 8px; height: 8px; background: var(--paper); border: 1.7px solid var(--rust); vertical-align: 0; }
.dot-moss  { background: var(--moss); }
.dot-slate { background: var(--slate); }
.dot-ink   { background: var(--ink-3); }
.dot-ochre { background: var(--ochre); }
.dot-brick { background: var(--brick); }

.c-moss  { color: var(--moss); }
.c-ochre { color: var(--ochre); }
.c-brick { color: var(--brick); }
.c-rust  { color: var(--rust); }
.c-slate { color: var(--slate); }
.c-muted { color: var(--ink-3); }

.vol-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.mag-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; max-width: 172px; min-width: 0; }
.mag-main { display: block; max-width: 100%; font-size: 13px; color: var(--ink); line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.mag-sub  { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.mag-bar  { width: 76px; height: 4px; background: var(--tint-2); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.mag-fill { height: 100%; background: var(--ink-2); border-radius: 2px; }
.mag-fill.is-equip { background: var(--slate); }

.stage-inline { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.stage-inline .st-off { color: #CCC5BB; }
.stage-inline .st-sep { color: #CCC5BB; margin: 0 1.5px; }

.chk-cmp { width: 15px; height: 15px; accent-color: var(--rust); cursor: pointer; }

/* ---- Slide-Over Right Inspector Drawer ---- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 34, 28, 0.22);
  z-index: 46;
}
.drawer-backdrop[hidden] { display: none; }
.inspector-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 94vw);
  background: var(--paper);
  border-left: 1px solid var(--rule-strong);
  box-shadow: -12px 0 36px rgba(44, 34, 28, 0.12);
  z-index: 47;
  overflow-y: auto;
  padding: 24px 28px 40px;
}
.inspector-drawer[hidden] { display: none; }
.insp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.insp-hint { font-size: 12.5px; color: var(--ink-3); }
.insp-close {
  appearance: none;
  background: var(--tint);
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  flex: none;
}
.insp-close:hover { color: var(--ink); border-color: var(--ink); }

.dos-kicker { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.dos-title  { font-size: 22px; line-height: 1.25; color: var(--ink); margin: 0 0 4px; }
.dos-sub    { font-size: 14px; color: var(--ink-3); margin: 0; }
.dos-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 14px 0;
  margin: 14px 0 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.dos-kpi-k { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 2px; }
.dos-kpi-v { font-size: 14.5px; color: var(--ink); display: block; line-height: 1.38; }
.dos-sec   { margin-bottom: 15px; }
.dos-sec-h { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; display: block; }
.dos-p     { font-size: 14.5px; line-height: 1.62; color: var(--ink); margin: 0; }
.dos-p.muted { color: var(--ink-2); }
.dos-ul    { margin: 4px 0 0; padding-left: 18px; list-style: disc; font-size: 14px; line-height: 1.58; color: var(--ink-2); }
.dos-ul li { margin-bottom: 4px; }

.dos-types-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}
.dos-types-tbl th, .dos-types-tbl td {
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}
.dos-types-tbl thead th {
  font-size: 12px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule-strong);
  padding-top: 2px;
}
.dos-types-tbl td:first-child { color: var(--ink); white-space: nowrap; }
.dos-types-tbl td:nth-child(2) { white-space: nowrap; }
.dos-types-tbl td:nth-child(3) { color: var(--ink-2); }

.dos-actions { display: flex; flex-wrap: wrap; gap: 8px 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.btn-prim {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 4px;
  background: var(--rust); color: var(--paper); font-size: 13.5px; text-decoration: none;
}
.btn-prim:hover { opacity: 0.92; text-decoration: none; }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 4px;
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink-2);
  font-size: 13px; text-decoration: none; cursor: pointer; font-family: var(--serif);
}
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); text-decoration: none; }

/* ---- Quiet Single-Line Methodology & Reference Fold Below Table ---- */
.lg-foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; line-height: 1.65; }
.lg-foot-links a { color: var(--rust); }
.stoten-inline { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

.gov-details {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.gov-details summary { cursor: pointer; color: var(--ink-2); list-style: none; padding: 4px 0; display: inline-block; }
.gov-details summary:hover { color: var(--rust); }
.gov-details summary::-webkit-details-marker { display: none; }
.gov-details summary::before { content: "▸ "; color: var(--rust); }
.gov-details[open] summary::before { content: "▾ "; }

.gov-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  max-width: 960px;
  border-top: 1px solid var(--rule);
}
.gov-list li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
}
.gov-list .gov-k { color: var(--ink); font-size: 13.5px; }
.gov-list .gov-v { color: var(--ink-2); font-size: 13.5px; }

@media (max-width: 1120px) {
  .cal-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cal-cell { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .ledger-shell { padding-top: 12px; }
  .cal-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd-search { max-width: none; flex: 1 1 100%; }
  .cmd-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .ed-table tbody td { padding: 9px 8px; font-size: 13.5px; }
  .ed-table tbody td:first-child { min-width: 195px; }
  .t-name { font-size: 14.5px; }
  .inspector-drawer { padding: 18px 18px 32px; }
  .gov-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ledger-shell *,
  .col-popover,
  .inspector-drawer {
    transition: none !important;
    animation: none !important;
  }
}


/* ---- Shared 4-Subpage Open Resources Sub-Tab Bar (1:1 from static/v6/site.css) ---- */
.res-subnav { border-bottom: 1px solid var(--rule); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.res-subnav::-webkit-scrollbar { display: none; }
.res-tabs { display: flex; align-items: center; gap: 24px; min-width: max-content; }
.res-tab { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 0 11px; font-size: 15.5px; color: var(--ink2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s ease; }
.ledger-shell a.res-tab { color: var(--ink2); }
.ledger-shell a.res-tab:hover { color: var(--ink); text-decoration: none; }
.ledger-shell a.res-tab.is-curr, .res-tab.is-curr { color: var(--acc); border-bottom-color: var(--acc); }
.res-tab .tab-cnt { font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.res-tab.is-curr .tab-cnt { color: var(--acc); }
@media (max-width: 760px) {
  .res-tabs { gap: 18px; }
  .res-tab { font-size: 14.5px; padding: 6px 0 10px; }
}

/* ---- Inline Feedback Button & Modal (#jl-fb-dlg from static/v6/site.css) ---- */
.lg-fb-inline {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--rust);
  cursor: pointer;
}
.lg-fb-inline:hover { text-decoration: underline; text-underline-offset: 3px; }

.jl-fb-dlg { width: min(460px, calc(100vw - 28px)); margin: auto; padding: 0; background: var(--paper, #FBF9F6); color: var(--ink, #2E2926); border: 1px solid var(--rule, #E2DDD6); border-radius: 6px; box-shadow: 0 24px 64px rgba(44, 34, 28, .18); font-weight: 400; font-synthesis: none; }
.jl-fb-dlg::backdrop { background: rgba(44, 34, 28, .28); }
.jl-fb-box { padding: 22px 24px 20px; }
.jl-fb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.jl-fb-top h2 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 400; color: var(--ink); }
.jl-fb-x { appearance: none; background: none; border: 0; font-size: 20px; line-height: 1; color: var(--ink3); cursor: pointer; padding: 2px 6px; }
.jl-fb-x:hover { color: var(--ink); }
.jl-fb-ctx { font-size: 12.5px; color: var(--ink3); background: var(--tag, #F1EEE9); padding: 5px 9px; border-radius: 4px; margin-bottom: 12px; word-break: break-all; }
.jl-fb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.jl-fb-cat { appearance: none; background: var(--paper, #FBF9F6); border: 1px solid var(--rule, #E2DDD6); border-radius: 4px; padding: 4px 10px; font: inherit; font-size: 13.5px; color: var(--ink2); cursor: pointer; font-weight: 400; }
.jl-fb-cat.is-on { background: #F6EAE1; border-color: #DFB79A; color: var(--acc, #94501F); }
.jl-fb-lbl { display: block; font-size: 13px; color: var(--ink2); margin: 10px 0 4px; }
.jl-fb-ta, .jl-fb-in { width: 100%; box-sizing: border-box; padding: 8px 10px; background: var(--tag, #F1EEE9); border: 1px solid var(--rule, #E2DDD6); border-radius: 4px; font: inherit; font-size: 14.5px; color: var(--ink); font-weight: 400; font-synthesis: none; }
.jl-fb-ta { min-height: 92px; resize: vertical; line-height: 1.5; }
.jl-fb-ta:focus, .jl-fb-in:focus { outline: none; background: var(--paper, #FBF9F6); border-color: var(--acc, #94501F); }
.jl-fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.jl-fb-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.jl-fb-send { appearance: none; background: var(--acc, #94501F); color: var(--paper, #FBF9F6); border: 0; border-radius: 4px; padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer; font-weight: 400; }
.jl-fb-send:hover { opacity: .92; }
.jl-fb-send:disabled { opacity: .55; cursor: default; }
.jl-fb-mail { font-size: 13px; color: var(--ink3); text-decoration: none; }
.jl-fb-mail:hover { color: var(--acc, #94501F); text-decoration: underline; }
.jl-fb-msg { margin: 8px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.45; }

/* ---- Compute API Purchasing-Power Bar inside Inspector Drawer ---- */
.ed-table tbody td.td-mag { white-space: normal; min-width: 116px; max-width: 180px; }
.ed-table .mag-cell { width: 100%; max-width: 172px; min-width: 0; gap: 3px; }
.ed-table .mag-main { display: block; max-width: 100%; font-size: 13px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
.api-power-box { background: var(--tint); border-radius: 4px; padding: 11px 13px; margin-top: 8px; }
.api-power-row { margin-bottom: 8px; }
.api-power-row:last-of-type { margin-bottom: 6px; }
.api-power-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.api-power-box .mag-bar { width: 100%; height: 6px; }
.api-rk-link { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--rust); }
