/* ============================================================
   veradis account app — component styles
   Layers on assets/brand.css (tokens + .container/.btn/.kicker).
   Reuses the collections vocabulary from the account.html mock.
   ============================================================ */

/* the hidden attribute must always win over display-setting classes (.center-load, etc.) */
[hidden] { display: none !important; }

/* ---- app shell / nav ---- */
.app-nav { position: sticky; top: 0; z-index: 100; background: rgba(26,23,20,0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.10); }
.app-nav-inner { max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-nav-logo img { height: 40px; display: block; }
.app-nav-actions { display: flex; align-items: center; gap: 20px; }
.app-nav-link { font-family: var(--sans); font-weight: 500; font-size: 14px; color: #E6E0D0;
  transition: color var(--motion-fast) var(--ease); cursor: pointer; background: none; border: 0; }
.app-nav-link:hover { color: #fff; }
.app-nav-cta { font-family: var(--sans); font-weight: 600; font-size: 14px; background: #7ED4A6;
  color: #0F2E1C; padding: 9px 18px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  transition: background var(--motion-fast) var(--ease); }
.app-nav-cta:hover { background: #93DEB5; }

/* currency picker (in the dark app nav) */
.cur-pick { display: inline-flex; align-items: center; }
.cur-select { font-family: var(--sans); font-weight: 500; font-size: 13px; color: #E6E0D0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-pill);
  padding: 6px 10px; cursor: pointer; transition: border-color var(--motion-fast) var(--ease); }
.cur-select:hover { border-color: rgba(255,255,255,0.4); }
.cur-select option { color: #1A1714; }

@media (max-width: 720px){ .app-nav-inner { padding: 14px 20px; } }

/* ---- generic layout ---- */
.app-main { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 80px; }
@media (max-width: 720px){ .app-main { padding: 28px 20px 64px; } }
.portal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px){ .portal-grid { grid-template-columns: 1fr; gap: 24px; } }

.portal-head .kicker { display: block; margin-bottom: 8px; }
.portal-head h1 { font-family: var(--serif); font-size: clamp(30px,4vw,42px); line-height: 1.06;
  color: var(--obsidian); margin: 0 0 8px; }
.portal-head p.lede { font-family: var(--sans); font-size: 16px; color: var(--graphite); margin: 0; max-width: 60ch; }

/* ---- left rail ---- */
.rail { position: sticky; top: 96px; }
.rail-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--brass-gradient);
  color: var(--parchment); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }
.rail-name { font-family: var(--serif); font-size: 20px; color: var(--obsidian); line-height: 1.15; }
.rail-sub { font-family: var(--sans); font-size: 13px; color: var(--stone); margin-top: 2px; word-break: break-all; }
.rail-plan { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill); }
.rail-plan--free { background: #EFECE4; border: 1px solid var(--ash); color: var(--graphite); }
.rail-plan--living { background: var(--mint); border: 1px solid #B8E0A4; color: var(--forest); }
.rail-nav { margin-top: 22px; display: flex; flex-direction: column; }
.rail-nav a { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--stone);
  padding: 9px 0 9px 14px; border-left: 2px solid transparent; transition: color var(--motion-fast) var(--ease); }
.rail-nav a:hover { color: var(--obsidian); }
.rail-nav a[aria-current="page"] { color: var(--obsidian); border-left-color: var(--brass-deep); }
@media (max-width: 900px){
  .rail { position: static; }
  .rail-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--bone); margin-top: 16px; padding-top: 8px; }
  .rail-nav a { border-left: none; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .rail-nav a[aria-current="page"] { border-bottom-color: var(--brass-deep); }
}

/* ---- object grid + cards (from mock) ---- */
.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1024px){ .obj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .obj-grid { grid-template-columns: 1fr; } }

.obj-card { background: var(--parchment); border: 1px solid var(--bone); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--motion-mid) var(--ease), transform var(--motion-mid) var(--ease), box-shadow var(--motion-mid) var(--ease); }
a.obj-card { color: inherit; }
.obj-card:hover { border-color: var(--brass-deep); transform: translateY(-2px); box-shadow: var(--elev-1); }
.obj-photo { aspect-ratio: 4 / 3; background: var(--veil); border-bottom: 1px solid var(--bone); position: relative; }
.obj-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obj-photo--pending { display: flex; align-items: center; justify-content: center; }
.obj-photo--pending span { font-family: var(--label); font-weight: 600; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.obj-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.obj-name { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--obsidian); line-height: 1.35; }
.obj-story { font-size: 12.5px; color: var(--stone); line-height: 1.5; }
.obj-val { display: flex; align-items: baseline; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--brass-deep); }
.obj-val-tag { font-family: var(--label); font-weight: 600; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.obj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.obj-links { border-top: 1px solid var(--bone); margin-top: 12px; padding-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.obj-link { font-family: var(--sans); font-weight: 500; font-size: 12.5px; color: var(--brass-deep); cursor: pointer; }
.obj-link::after { content: ' →'; }

/* status chips */
.pchip { display: inline-block; font-family: var(--label); font-weight: 600; font-size: 8.5px;
  letter-spacing: .14em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.pchip--gold { background: var(--brass-gradient); border: 1px solid #7A5818; color: var(--parchment); box-shadow: 0 2px 8px rgba(168,125,46,.38); }
.pchip--mint { background: var(--mint); border: 1px solid #B8E0A4; color: var(--forest); }
.pchip--brass { background: #F4EDDD; border: 1px solid #E4D5B4; color: var(--brass-deep); }
.pchip--grey { background: #EFECE4; border: 1px solid var(--ash); color: var(--graphite); }
.pchip--brass-dashed { background: var(--veil); border: 1px dashed var(--brass-deep); color: var(--brass-deep); }

/* empty add card */
.obj-card--empty { border: 1.5px dashed var(--ash); background: transparent; align-items: center;
  justify-content: center; min-height: 260px; text-align: center; padding: 32px 24px; cursor: pointer; }
.obj-card--empty:hover { border-color: var(--brass-deep); transform: none; box-shadow: none; }
.empty-plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed var(--ash);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--stone); margin: 0 auto 14px; }
.empty-copy { font-size: 13px; color: var(--stone); line-height: 1.5; }
.empty-copy b { display: block; color: var(--obsidian); font-size: 14px; margin-bottom: 2px; }

/* ---- action pills ---- */
.actions { margin-top: 12px; border-top: 1px solid var(--bone); padding-top: 24px; }
.actions-label { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.action-pill { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--sans); font-weight: 500;
  font-size: 14px; padding: 13px 24px; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease); }
.action-pill:hover:not([disabled]) { transform: translateY(-1px); box-shadow: var(--elev-1); }
.action-pill[disabled] { opacity: .55; cursor: not-allowed; }
.action-pill small { font-family: var(--label); font-weight: 600; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.action-verify { background: var(--obsidian); color: var(--parchment); }
.action-appraise { background: var(--brass-gradient); color: var(--parchment); }
.action-enrich { background: var(--forest); color: var(--parchment); }
.action-ghost { background: transparent; border: 1.5px solid var(--bone); color: var(--graphite); }

/* ---- cards / panels ---- */
.panel { background: #FCFAF3; border: 1px solid var(--bone); border-radius: var(--radius-card);
  padding: 26px 28px; box-shadow: 0 10px 40px rgba(26,23,20,.05); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-family: var(--serif); font-size: 24px; color: var(--obsidian); margin: 0 0 6px; }
.panel h3 { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--obsidian); margin: 0 0 4px; }
.panel p { font-family: var(--sans); font-size: 14.5px; color: var(--graphite); margin: 0; line-height: 1.55; }
.panel--living { background: linear-gradient(180deg,#FCF7EC 0%, var(--parchment) 100%); border-color: #E4D5B4; }

/* ---- forms ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--label); font-weight: 600; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 7px; }
.field input[type=text], .field input[type=email], .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--obsidian); background: #fff;
  border: 1px solid var(--bone); border-radius: 10px; padding: 12px 14px; transition: border-color var(--motion-fast) var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brass-deep); }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.field-hint { font-family: var(--sans); font-size: 12.5px; color: var(--stone); margin-top: 6px; }

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
button.btn { cursor: pointer; border: 1.5px solid transparent; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Unified: primary actions are forest green across the account app (the store keeps its own styling). */
.btn-primary { background: var(--forest); color: var(--parchment); border-color: var(--forest); }
.btn-primary:hover { background: #143728; border-color: #143728; }

/* ---- auth pages (minimal, Plausible-clean) ---- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 20px; background: var(--parchment); }
.auth-logo { margin-bottom: 30px; }
.auth-logo img { height: 40px; display: block; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-family: var(--serif); font-size: 28px; line-height: 1.12; color: var(--obsidian);
  margin: 0 0 26px; text-align: center; }
.auth-card h1 .it { font-style: italic; color: var(--forest); }
.auth-card .btn-primary { background: var(--forest); color: var(--parchment); }
.auth-card .btn-primary:hover { background: #143728; }
.auth-note { font-family: var(--sans); font-size: 13px; color: var(--stone); margin-top: 14px; text-align: center; line-height: 1.5; }
.auth-alt { font-family: var(--sans); font-size: 14px; color: var(--stone); margin-top: 28px; text-align: center; }
.auth-alt a { color: var(--brass-deep); font-weight: 600; border-bottom: 1px solid rgba(138,100,32,.4); }
.msg { border-radius: 10px; padding: 12px 14px; font-family: var(--sans); font-size: 14px; margin-bottom: 18px; line-height: 1.5; }
.msg--ok { background: var(--mint); border: 1px solid #B8E0A4; color: var(--forest); }
.msg--err { background: #FBEAE5; border: 1px solid #E9C3B7; color: #A2432B; }
.msg--info { background: var(--veil); border: 1px solid var(--bone); color: var(--graphite); }

/* ---- modal ---- */
.modal-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(16,13,11,.5);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; align-items: flex-start;
  justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-scrim[hidden] { display: none; }
.modal { width: 100%; max-width: 540px; background: var(--parchment); border: 1px solid var(--bone);
  border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); padding: 30px 32px; margin: auto 0; }
.modal h2 { font-family: var(--serif); font-size: 26px; color: var(--obsidian); margin: 0 0 4px; }
.modal .modal-sub { font-family: var(--sans); font-size: 14px; color: var(--stone); margin: 0 0 22px; }
.modal-actions { display: flex; gap: 12px; margin-top: 8px; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1200;
  background: var(--obsidian); color: var(--parchment); font-family: var(--sans); font-size: 14px;
  padding: 13px 22px; border-radius: var(--radius-pill); box-shadow: 0 14px 40px -12px rgba(0,0,0,.5);
  max-width: 90vw; text-align: center; }
.toast[hidden] { display: none; }

/* ---- misc ---- */
.spinner { width: 34px; height: 34px; border: 3px solid var(--bone); border-top-color: var(--forest);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { min-height: 60vh; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; }
.muted { color: var(--stone); font-family: var(--sans); font-size: 14px; }
.livewire { display:inline-flex; align-items:center; gap:7px; font-family: var(--label); font-weight:600;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); }
.livewire .dot { width: 7px; height: 7px; border-radius: 50%; background: #37B26F; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; margin-top: 6px; }
.photo-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--bone); }
.rowbtn { display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }
.section-gap { margin-top: 26px; }
.report-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding: 14px 0; border-top: 1px solid var(--bone); }
.report-row:first-child { border-top: 0; }
.report-meta { font-family: var(--sans); font-size: 14px; color: var(--obsidian); }
.report-meta small { display:block; color: var(--stone); font-size: 12.5px; margin-top: 2px; }

/* ============================================================
   Enrich — the living layer (What's new, timeline, stories,
   story graph, agents, threads, reports, value, export)
   ============================================================ */

/* ENRICHED badge — mirrors the FREE·HOLD pill, in Forest */
.rail-plan--enriched { background: var(--forest); border: 1px solid var(--forest); color: var(--parchment); }

/* rail stats */
.rail-stat { margin-top: 16px; }
.rail-stat-label { font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone); }
.rail-stat-value { font-family: var(--serif); font-size: 19px; color: var(--obsidian); line-height: 1.2; margin-top: 3px; }
.rail-stat-note { font-family: var(--sans); font-size: 11.5px; color: var(--stone); margin-top: 3px; }

/* pricing pill + frozen panel + upgrade/resume button row */
.pchip--forest { background: var(--forest); border: 1px solid var(--forest); color: var(--parchment); }
.panel--frozen { background: repeating-linear-gradient(135deg,#F4F1E8,#F4F1E8 10px,#F0ECE1 10px,#F0ECE1 20px);
  border-color: var(--ash); }
.enrich-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }

/* collapsible-style section head (rebuilt from the demo, non-collapsing here) */
.acc-sec { scroll-margin-top: 96px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--bone); padding-bottom: 12px; margin-bottom: 18px; flex-wrap: wrap;
  cursor: pointer; user-select: none; }
.acc-head-txt .kicker { display: block; margin-bottom: 5px; }
.acc-title { font-family: var(--serif); font-size: 24px; color: var(--obsidian); margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.acc-count { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-deep); white-space: nowrap; }
.acc-head-right { display: inline-flex; align-items: center; gap: 12px; }
.acc-toggle { background: none; border: 0; padding: 4px; margin: -4px -4px -4px 0; cursor: pointer; color: var(--stone);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; line-height: 0; }
.acc-toggle:hover { color: var(--obsidian); background: var(--veil); }
.acc-toggle:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.acc-chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease; position: relative; top: -2px; }
.acc-sec.is-collapsed .acc-chev { transform: rotate(-45deg); top: 2px; }
.acc-sec.is-collapsed .acc-head { margin-bottom: 0; }
.acc-sec.is-collapsed .acc-body { display: none; }
.acc-body { }

/* Unread count badges (What's new) */
.wn-badge, .nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--brass-deep); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 11px; line-height: 1; vertical-align: middle; }
.nav-badge { min-width: 15px; height: 15px; font-size: 9.5px; padding: 0 4px; }
.wn-new { display: inline-block; font-family: var(--label); font-weight: 600; font-size: 8.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-deep); border: 1px solid var(--brass); border-radius: 4px;
  padding: 1px 5px; margin-right: 5px; vertical-align: middle; }
.wn-item--new .wn-dot { box-shadow: 0 0 0 3px rgba(201,150,59,.14); }
.psec-sub { font-family: var(--sans); font-size: 14.5px; color: var(--graphite); line-height: 1.55; margin: 0 0 18px; max-width: 68ch; }

.enrich-empty { font-family: var(--sans); font-size: 14px; color: var(--stone); line-height: 1.55;
  background: var(--veil); border: 1px dashed var(--ash); border-radius: var(--radius-card); padding: 20px 22px; }

/* What's new feed */
.wn-live { width: 9px; height: 9px; border-radius: 50%; background: #37B26F; display: inline-block;
  box-shadow: 0 0 0 0 rgba(55,178,111,.55); animation: wnpulse 2s infinite; }
@keyframes wnpulse { 0%{box-shadow:0 0 0 0 rgba(55,178,111,.5);} 70%{box-shadow:0 0 0 8px rgba(55,178,111,0);} 100%{box-shadow:0 0 0 0 rgba(55,178,111,0);} }
.wn-sub { font-family: var(--sans); font-size: 14px; color: var(--stone); margin: 0 0 16px; max-width: 68ch; line-height: 1.55; }
.wn-list { display: flex; flex-direction: column; }
.wn-item { display: grid; grid-template-columns: 16px 1fr auto; gap: 14px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--bone); }
.wn-item:first-child { border-top: 0; }
.wn-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--ash); }
.wn-dot--link { background: #7B9DBF; }
.wn-dot--data { background: #7FA88C; }
.wn-dot--value { background: var(--brass); }
.wn-dot--attention { background: #C8826F; box-shadow: 0 0 0 0 rgba(200,130,111,.5); animation: wnpulse 2.4s infinite; }
.wn-line { font-family: var(--sans); font-size: 14.5px; color: var(--graphite); line-height: 1.55; }
.wn-line b { color: var(--obsidian); }
.wn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.wn-obj { font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }
.wn-when { font-family: var(--sans); font-size: 12px; color: var(--stone); }
.wn-act a { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--brass-deep); cursor: pointer; white-space: nowrap; }
.wn-act a::after { content: ' →'; }

/* Timeline */
.tl-list { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--bone); }
.tl-row:first-child { border-top: 0; }
.tl-row--open { opacity: .82; }
.tl-year { font-family: var(--serif); font-size: 20px; color: var(--obsidian); line-height: 1.1; }
.tl-year small { display: block; font-family: var(--label); font-weight: 600; font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone); margin-top: 4px; }
.tl-txt b { display: block; font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--obsidian); margin-bottom: 3px; }
.tl-txt span { font-family: var(--sans); font-size: 13.5px; color: var(--graphite); line-height: 1.55; }

/* Stories & significance */
.sig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px){ .sig-grid { grid-template-columns: 1fr; } }
.sig-card { background: var(--parchment); border: 1px solid var(--bone); border-radius: var(--radius-card); padding: 20px 22px; }
.sig-name { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--obsidian); margin-bottom: 8px; }
.sig-why { font-family: var(--sans); font-size: 14px; color: var(--graphite); line-height: 1.6; }
.sig-why p { margin: 0 0 10px; }
.sig-src { font-family: var(--sans); font-size: 12.5px; color: var(--stone); margin-top: 12px; line-height: 1.5; }
.sig-src b { font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-right: 6px; }
.sig-card .obj-link { margin-top: 12px; display: inline-block; }

/* Story graph (simple list) */
.graph-list { display: flex; flex-direction: column; gap: 10px; }
.graph-edge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px;
  background: var(--parchment); border: 1px solid var(--bone); border-radius: 10px; }
.graph-node { font-family: var(--sans); font-weight: 600; font-size: 13.5px; color: var(--obsidian); }
.graph-rel { font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); }
.graph-conf { font-family: var(--sans); font-size: 12px; color: var(--stone); }
.graph-src { flex-basis: 100%; font-family: var(--sans); font-size: 12px; color: var(--stone); }

/* Enrich agents status */
.agent-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 560px){ .agent-stats { grid-template-columns: repeat(2, 1fr); } }
.agent-stat { background: var(--parchment); border: 1px solid var(--bone); border-radius: 10px; padding: 16px; text-align: center; }
.agent-num { font-family: var(--serif); font-size: 22px; color: var(--forest); line-height: 1.1; }
.agent-lbl { font-family: var(--label); font-weight: 600; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }

/* Threads */
.trow { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: start;
  padding: 15px 0; border-top: 1px solid var(--bone); }
.trow:first-child { border-top: 0; }
.trow-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.trow-dot--open { background: #C8826F; }
.trow-dot--res { background: #7FA88C; }
.trow-title { display: block; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--obsidian); }
.trow-obj { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--stone); margin-top: 3px; line-height: 1.5; }

/* Reports rows */
.rrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--bone); }
.rrow:first-child { border-top: 0; }
.rrow-title { display: block; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--obsidian); }
.rrow-meta { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--stone); margin-top: 3px; }

/* ---- batch scoring (volume discount) ---- */
.score-toolbar { margin-bottom: 18px; }
.score-panel { margin-top: 14px; padding: 16px 18px; background: var(--veil); border: 1px solid var(--bone);
  border-radius: var(--radius-card); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.score-types { display: flex; gap: 18px; }
.score-types label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 14px; color: var(--obsidian); cursor: pointer; }
.score-types small { font-family: var(--label); font-weight: 600; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.score-summary { font-family: var(--sans); font-size: 14px; color: var(--graphite); flex: 1 1 220px; }
.score-summary b { color: var(--obsidian); }
.score-was { text-decoration: line-through; color: var(--stone); font-size: 12.5px; margin: 0 2px; }
.score-off { font-family: var(--label); font-weight: 600; font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--forest); background: var(--mint); border: 1px solid #B8E0A4; border-radius: var(--radius-pill); padding: 2px 8px; }
.score-actions { display: flex; gap: 10px; }

.obj-card--select { cursor: pointer; }
.obj-card--select:hover { border-color: var(--brass-deep); }
.obj-card--select.is-selected { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset; }
.obj-card--disabled { opacity: .5; cursor: not-allowed; }
.obj-card--disabled:hover { border-color: var(--bone); transform: none; box-shadow: none; }
.obj-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1.5px solid var(--forest); color: var(--forest);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.is-selected .obj-check { background: var(--forest); color: var(--parchment); }
