/* ==========================================================================
   Hipson back office — Rev 2026.3
   Sits on industry.css + site.css. Dense, fast, keyboard-friendly. Dark ground,
   Signal Orange for one thing per view.
   ========================================================================== */

body { padding-bottom: 0; }

/* The public site's scroll-reveal (.rv → opacity 0 until site.js adds .in)
   leaks into /admin through shared tile markup, and /admin never loads
   site.js — so the Funnels & assets body and the Agreement tiles rendered
   invisible (found on the 2026-09-01 live walk). The back office does not
   animate reveals; everything is visible on arrival. */
.ad-shell .rv { opacity: 1; transform: none; transition: none; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.ad-shell { display: grid; grid-template-columns: 1fr; min-height: 100svh; } /* lo4gtW7P: LD chrome full-width; ad-side is drawer */
.ad-side {
  /* lo4gtW7P: secondary drawer only — LuciDash is the chrome */
  border-right: 1px solid var(--color-divider); background: var(--color-bg-2);
  display: flex; flex-direction: column;
  position: fixed; left: -300px; top: 0; width: 280px; height: 100svh;
  z-index: 39; transition: left .2s ease;
}
.ad-side.ld-open { left: 0; }
.ad-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid var(--color-divider); }
.ad-brand .mark { flex: none; width: 32px; height: 32px; border: 2px solid var(--color-accent-700); display: grid; place-items: center; font-family: var(--font-heading); font-size: 18px; color: var(--color-accent-700); }
.ad-brand b { font-family: var(--font-heading); font-size: 17px; font-weight: 600; letter-spacing: .02em; display: block; line-height: 1.1; }
.ad-brand span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutral-600); }

/* 2026-08-22: overflow-y + min-height:0 are load-bearing. .ad-side is a
   100svh sticky flex column; without them this nav (20+ items) overflowed the
   column and pushed .ad-who — which holds SIGN OUT — off the bottom of the
   screen with no way to scroll to it. The nav scrolls, the sign-out stays put. */
.ad-nav { padding: 12px 10px; display: grid; gap: 2px; overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; }
.ad-nav button, .ad-nav a {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; border: 0; border-left: 2px solid transparent; cursor: pointer;
  color: var(--color-neutral-700); font-family: var(--font-body); font-size: 14.5px;
  padding: 11px 12px; text-decoration: none;
}
.ad-nav button:hover, .ad-nav a:hover { color: var(--color-text); background: rgba(232,237,242,.05); }
.ad-nav button[aria-current="true"] { color: var(--color-paper); border-left-color: var(--sig); background: rgba(201,112,47,.1); }
.ad-nav .ico { flex: none; width: 16px; text-align: center; color: var(--color-accent-700); font-size: 13px; }
.ad-nav .count { margin-left: auto; font-size: 11.5px; color: var(--color-neutral-600); font-variant-numeric: tabular-nums; }
/* Legacy flat group header — kept for any other page still using .grp. */
.ad-nav .grp {
  margin: 14px 0 2px; padding: 0 12px;
  font-family: var(--font-heading); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-neutral-600); user-select: none;
}

/* ── System bands + collapsible groups (2026-08-24) ─────────────────────────
   Two systems live in this sidebar — running the agency, and building the
   site. They are now labelled and visually separated, and every group folds.
   Only the daily-work groups start open, so the sidebar shows ~9 items
   instead of 20 and can no longer overflow past the Sign out button. */
.ad-sys {
  margin: 4px 0 6px; padding: 0 12px;
  font-family: var(--font-heading); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sig-l); user-select: none;
  display: flex; align-items: baseline; gap: 7px;
}
.ad-sys span { font-family: var(--font-body); font-size: 10px; letter-spacing: .06em; text-transform: none; color: var(--color-neutral-600); }
.ad-sys-2 { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--color-divider); }

/* The pinned entry point of each band — Today / Project HQ. */
.ad-nav button.ad-pin { font-size: 15px; color: var(--color-text); }
.ad-nav button.ad-pin .ico { color: var(--sig-l); font-size: 9px; }

.ad-grp { display: block; }
/* Overrides the generic .ad-nav button rule above. */
.ad-nav .grp-t {
  width: 100%; display: flex; align-items: center; gap: 7px;
  margin: 10px 0 1px; padding: 5px 12px; border: 0; border-left: 2px solid transparent;
  background: none; cursor: pointer; user-select: none;
  font-family: var(--font-heading); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-neutral-600);
}
.ad-nav .grp-t:hover { color: var(--color-text); background: none; }
.ad-nav .grp-t:focus-visible { outline: 2px solid var(--sig-l); outline-offset: -2px; }
.ad-nav .grp-t::before {
  content: "▸"; font-size: 9px; color: var(--sig-l);
  transition: transform .14s ease; display: inline-block;
}
.ad-nav .grp-t[aria-expanded="true"]::before { transform: rotate(90deg); }
/* Aggregate badge: when a group is folded, anything unworked inside it still
   has to be visible. No badge = nothing waiting in there. */
.ad-nav .grp-n { margin-left: auto; font-family: var(--font-body); font-size: 11px; letter-spacing: 0; }
.ad-nav .grp-n:not(:empty) {
  background: var(--sig); color: var(--color-paper);
  border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums;
}
.ad-grp .grp-i { display: grid; gap: 2px; }
.ad-grp .grp-t[aria-expanded="false"] + .grp-i { display: none; }
.ad-grp .grp-i button, .ad-grp .grp-i a { padding-left: 22px; font-size: 14px; }

/* Signed-in-as + SIGN OUT. flex:none so it can never be squeezed away by the
   nav above it; the nav scrolls instead. This block is always on screen. */
.ad-who { flex: none; margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--color-divider); font-size: 12.5px; color: var(--color-neutral-600); background: var(--color-bg-2); }
.ad-who b { display: block; color: var(--color-text); font-weight: 500; font-size: 13px; margin-bottom: 8px; word-break: break-all; }
/* A real button, not a text link — 2026-08-22. Signing out of a dashboard that
   holds client PHI should look like a control you can find in one glance. */
.ad-who button {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  background: none; border: 1px solid var(--color-divider); border-radius: 6px;
  color: var(--color-neutral-700); cursor: pointer; font-family: var(--font-body);
  font-size: 13px; padding: 8px 10px; transition: color .12s, border-color .12s, background .12s;
}
.ad-who button:hover { color: var(--color-paper); border-color: var(--sig); background: rgba(201,112,47,.1); }
.ad-who button:focus-visible { outline: 2px solid var(--sig-l); outline-offset: 2px; }

.ad-main { min-width: 0; padding: clamp(18px, 3vw, 30px); }
.ad-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ad-head h1 { font-family: var(--font-heading); font-size: clamp(24px, 3.4vw, 34px); margin: 0; letter-spacing: -.01em; }
.ad-head p { margin: 0; font-size: 14px; color: var(--color-neutral-600); }

/* ── KPI cards ─────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); border: 1px solid var(--color-divider); margin-bottom: 24px; }
.kpi { padding: 18px 20px; border: 1px solid var(--color-divider); }
.kpi b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1; color: var(--sig-l); font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-600); margin-top: 8px; }
.kpi .sub { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--color-neutral-400); margin-top: 4px; }

/* ── Table ─────────────────────────────────────────────────────────────── */
.ad-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.ad-tools input, .ad-tools select {
  background: var(--color-bg); border: 1px solid rgba(232,237,242,.32); color: var(--color-text);
  font-family: var(--font-body); font-size: 14px; padding: 9px 12px; min-width: 0;
}
.ad-tools input { flex: 1 1 200px; }
.ad-tools input:focus, .ad-tools select:focus { outline: none; border-color: var(--sig-l); }

.ad-tablewrap { border: 1px solid var(--color-divider); overflow-x: auto; }
table.ad { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.ad th {
  text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-neutral-600);
  padding: 12px 14px; border-bottom: 1px solid var(--color-divider-2); white-space: nowrap;
  background: var(--color-bg-2); position: sticky; top: 0;
}
table.ad td { padding: 13px 14px; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
table.ad tbody tr:hover { background: rgba(232,237,242,.04); cursor: pointer; }
table.ad .nm { font-family: var(--font-heading); font-size: 16px; color: var(--color-paper); }
table.ad .mut { color: var(--color-neutral-600); font-size: 12.5px; }

.pill { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border: 1px solid; white-space: nowrap; }
.p-new  { color: var(--sig-l); border-color: var(--sig-l); }
.p-work { color: #94bce3; border-color: #94bce3; }
.p-won  { color: #7fc99a; border-color: #7fc99a; }
.p-lost { color: var(--color-neutral-600); border-color: var(--color-divider-2); }
.p-hot  { color: #e0685e; border-color: #e0685e; }

.empty { padding: 44px 20px; text-align: center; color: var(--color-neutral-600); }
.empty b { display: block; font-family: var(--font-heading); font-size: 20px; color: var(--color-text); margin-bottom: 8px; }

/* ── Drawer ────────────────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); background: var(--color-bg-2);
  border-left: 1px solid var(--color-divider-2); z-index: 40; overflow-y: auto; padding: 24px; }
.drawer-back { position: fixed; inset: 0; background: rgba(14,23,32,.66); z-index: 39; }
.drawer h2 { font-family: var(--font-heading); font-size: 26px; margin: 0 0 4px; }
.drawer .row { display: grid; grid-template-columns: 116px 1fr; gap: 10px 14px; padding: 11px 0; border-top: 1px solid var(--color-divider); font-size: 14px; }
.drawer .row dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-600); padding-top: 2px; }
.drawer textarea { width: 100%; background: var(--color-bg); border: 1px solid rgba(232,237,242,.32); color: var(--color-text); font-family: var(--font-body); font-size: 14px; padding: 11px; min-height: 90px; resize: vertical; }

/* ── Growth plan ───────────────────────────────────────────────────────── */
.gp-phase { border: 1px solid var(--color-divider); margin-bottom: 14px; }
.gp-phase > summary { padding: 16px 18px; cursor: pointer; font-family: var(--font-heading); font-size: 19px; display: flex; align-items: center; gap: 12px; list-style: none; }
.gp-phase > summary::-webkit-details-marker { display: none; }
.gp-phase > summary::before { content: "▸"; color: var(--sig-l); font-size: 13px; }
.gp-phase[open] > summary::before { content: "▾"; }
.gp-phase .body { padding: 0 18px 18px; }
.gp-task { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--color-divider); font-size: 14.5px; }
.gp-task input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: #c9702f; cursor: pointer; }
.gp-task.done label { color: var(--color-neutral-600); text-decoration: line-through; }
.gp-task .meta { margin-left: auto; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-600); white-space: nowrap; }
.gp-bar { height: 4px; background: var(--color-divider); margin-top: 10px; }
.gp-bar i { display: block; height: 100%; background: var(--sig); }

/* ── Login ─────────────────────────────────────────────────────────────── */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login .card { max-width: 420px; width: 100%; text-align: center; padding: 40px 32px; }
.login h1 { font-family: var(--font-heading); font-size: 30px; margin: 18px 0 10px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; width: 100%;
  background: #fff; color: #1f1f1f; border: 0; padding: 13px 20px; font-family: var(--font-body);
  font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 20px; }
.gbtn:hover { background: #f1f1f1; }

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ad-shell { grid-template-columns: 1fr; }
  /* lo4gtW7P: Menu drawer keeps vertical sidebar layout on small screens too */
  .ad-side { /* base drawer wins */ }
  .drawer { width: 100%; }
  table.ad { min-width: 560px; }
}
@media print { .ad-side, .ad-tools, .drawer-back { display: none !important; } .ad-shell { display: block; } }

/* ── Strategy view ─────────────────────────────────────────────────────── */
.fig { border: 1px solid var(--color-divider); background: var(--color-bg-2); padding: 20px 22px; margin-bottom: 20px; }
.fig > h3 { font-family: var(--font-heading); font-weight: 400; font-size: 19px; margin: 0 0 4px; color: var(--color-paper); }
.fig > p.cap { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--color-neutral-600); }
.fig > p.src { margin: 14px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--color-neutral-400); }
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.fig-2 .fig { margin-bottom: 0; }
.sv-lab { font: 400 11px/1.2 Barlow, sans-serif; fill: var(--color-neutral-600); letter-spacing: .04em; }
.sv-lab-s { font: 400 9.5px/1.2 Barlow, sans-serif; fill: var(--color-neutral-400); }
.sv-num { font: 400 15px/1 "Barlow Condensed", sans-serif; fill: var(--sig-l); }
.sv-num-lg { font: 400 22px/1 "Barlow Condensed", sans-serif; fill: var(--sig-l); }
.sv-ttl { font: 600 11px/1.2 Barlow, sans-serif; fill: var(--color-paper); letter-spacing: .06em; text-transform: uppercase; }
.sv-box { fill: none; stroke: var(--color-divider-2); }
.sv-grid { stroke: var(--color-divider); stroke-width: 1; }

/* ==========================================================================
   ABA coverage-review queue (Tab: ABA quotes) — added 2026-08-11
   Owned by admin/quotes.js. Two columns: the queue on the left, one enquiry
   open on the right. Collapses to one column under 1100px because this panel
   gets read on a phone between appointments.
   ========================================================================== */

.ad-note { padding: 12px 14px; border: 1px solid var(--color-divider-2); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.ad-note b { color: var(--color-text); }
.ad-note code { font-size: 12.5px; background: rgba(232,237,242,.06); padding: 1px 5px; }
.ad-note.ok   { border-color: #7fc99a; color: #b9dcc6; }
.ad-note.warn { border-color: #e0685e; color: #f0b6b1; background: rgba(224,104,94,.07); }

.ad-split { display: grid; grid-template-columns: minmax(min(300px, 100%), 360px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .ad-split { grid-template-columns: 1fr; } }
.ad-col { min-width: 0; }

.ad-list { display: grid; gap: 2px; max-height: 72svh; overflow-y: auto; }
.ad-row {
  display: grid; gap: 3px; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-left: 2px solid transparent;
  padding: 12px 14px; font-family: var(--font-body); color: var(--color-neutral-700); font-size: 14px;
}
.ad-row:hover { background: rgba(232,237,242,.05); color: var(--color-text); }
.ad-row.on { border-left-color: var(--sig); background: rgba(201,112,47,.1); color: var(--color-paper); }
.ad-row b { font-weight: 500; color: var(--color-text); margin-right: 6px; }
.ad-row .sub { font-size: 12px; color: var(--color-neutral-600); }

/* ── Notifications panel (2026-08-25) ──────────────────────────────────────
   Rows here are read-only receipts, not a queue: no click target, no .on
   state, cursor stays default. The status pill sits on the header line so the
   eye can scan a column of outcomes without reading any of the summaries. */
#n-list .ad-row { cursor: default; gap: 6px; padding: 14px; border-bottom: 1px solid var(--color-divider); }
#n-list .ad-row:hover { background: none; color: var(--color-neutral-700); }
.ad-row-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-row-h .n-ico { color: var(--sig); font-size: 13px; width: 14px; text-align: center; }
.ad-row-h .n-when { margin-left: auto; font-size: 12px; color: var(--color-neutral-600); white-space: nowrap; }
.n-sum { color: var(--color-text); font-size: 14px; }
.n-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--color-neutral-600); }
.n-meta b { font-weight: 500; color: var(--color-neutral-700); margin: 0; }
/* The one thing on this panel that must not be missable. */
.n-drop {
  font-size: 12px; color: #e0685e;
  border-left: 2px solid #e0685e; padding: 4px 0 4px 10px; margin-top: 2px;
}
.lnk {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; color: var(--sig-l);
  text-decoration: underline; text-underline-offset: 2px;
}
.lnk:hover { color: var(--color-paper); }

.ad-card { border: 1px solid var(--color-divider); padding: clamp(16px, 2.4vw, 24px); }
.ad-card h2 { font-family: var(--font-heading); font-size: 25px; margin: 0 0 4px; }
.ad-card h3 { font-family: var(--font-heading); font-size: 18px; margin: 26px 0 8px; padding-top: 16px; border-top: 1px solid var(--color-divider); }
.ad-card h4 { font-family: var(--font-heading); font-size: 15px; margin: 20px 0 8px; }
.ad-card .sub { font-size: 12.5px; line-height: 1.6; color: var(--color-neutral-600); }
.ad-card textarea { width: 100%; }

/* `table.ad` carries min-width: 720px so the leads grid can scroll inside
   .ad-tablewrap. These key/value tables are not wrapped and must not inherit
   it, or the whole panel gains a horizontal scrollbar on a phone — the exact
   overflow bug that cost a round on the public pages. */
table.ad.kv { width: 100%; min-width: 0; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
table.ad.kv th { text-align: left; width: min(180px, 38%); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-neutral-600); font-weight: 400; padding: 9px 12px 9px 0;
  border-top: 1px solid var(--color-divider); vertical-align: top; }
table.ad.kv td { padding: 9px 0; border-top: 1px solid var(--color-divider); vertical-align: top; }

.ad-resolve { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--color-divider); font-size: 14px; }
.ad-resolve b { flex: 1 1 min(220px, 100%); font-weight: 500; }
.ad-resolve input, .ad-resolve select { flex: 0 1 160px; }
.ad-resolve .sub { flex: 1 1 100%; }

.ad-plan { border: 1px solid var(--color-divider); margin-bottom: 8px; }
.ad-plan > summary { padding: 13px 16px; cursor: pointer; display: grid; gap: 4px; font-size: 14px; }
.ad-plan > summary:hover { background: rgba(232,237,242,.04); }
.ad-plan > summary b { font-weight: 500; margin-right: 8px; }
.ad-plan > summary .sub { font-size: 12.5px; color: var(--color-neutral-600); }
.ad-plan[open] > summary { border-bottom: 1px solid var(--color-divider); background: rgba(232,237,242,.03); }
.ad-plan > table, .ad-plan > ul, .ad-plan > p { margin-left: 16px; margin-right: 16px; }

.ad-flags { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.ad-flags li { padding: 10px 12px; border-left: 2px solid var(--color-divider-2); font-size: 13.5px; line-height: 1.55; }
.ad-flags li.sev-high   { border-left-color: #e0685e; background: rgba(224,104,94,.06); }
.ad-flags li.sev-medium { border-left-color: var(--sig-l); background: rgba(201,112,47,.06); }
.ad-flags li.sev-low    { border-left-color: var(--color-divider-2); }
.ad-flags li b { color: var(--color-text); font-weight: 500; }

/* Pill modifiers used by quotes.js. The older .p-* classes stay as they are
   so nothing in the leads table shifts. */
.pill.ok   { color: #7fc99a; border-color: #7fc99a; }
.pill.warn { color: var(--sig-l); border-color: var(--sig-l); }
.pill.bad  { color: #e0685e; border-color: #e0685e; }
.pill.hot  { color: #e0685e; border-color: #e0685e; }

/* ==========================================================================
   Gameplan dashboard (default tab) — added 2026-08-11.
   shadcn/dashboard-design conventions in the house tokens: one KPI row above
   the fold, cards for summary, explicit loading/empty states, click-to-edit
   scorecard values.
   ========================================================================== */

.gpd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; align-items: start; }
.gpd-h { font-family: var(--font-heading); font-size: 18px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gpd-sub { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .02em; text-transform: none; color: var(--color-neutral-600); font-weight: 400; }
.gpd-loading { color: var(--color-neutral-600); font-size: 13px; padding: 18px 0; }
.gpd-empty { font-size: 13px; line-height: 1.6; color: var(--color-neutral-600); border-left: 2px solid var(--sig-l); padding: 8px 12px; background: rgba(201,112,47,.06); }
.gpd-chart svg { width: 100%; height: auto; }

.gpd-score th { position: relative; }
.gpd-target { display: block; font-size: 10px; color: var(--color-neutral-600); letter-spacing: .04em; margin-top: 2px; }
.gpd-val { background: none; border: 1px dashed var(--color-divider-2); color: var(--color-paper); font-family: var(--font-heading); font-size: 19px; padding: 4px 12px; cursor: pointer; min-width: 76px; }
.gpd-val:hover, .gpd-val:focus-visible { border-color: var(--sig-l); background: rgba(226,149,74,.08); }
.gpd-val.empty { color: var(--color-neutral-600); font-size: 13px; font-family: var(--font-body); font-style: italic; }

.gpd-ph { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-700); margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--color-divider); }
.gpd-ph:first-child { margin-top: 0; }
.gpd-msrow { display: flex; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--color-divider); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.gpd-msrow input { margin-top: 3px; flex: none; width: 15px; height: 15px; accent-color: #c9702f; }
.gpd-msrow.done span { color: var(--color-neutral-600); text-decoration: line-through; text-decoration-color: rgba(226,149,74,.5); }
.gpd-msrow:hover { background: rgba(232,237,242,.03); }

.gpd-link { display: block; padding: 7px 0 7px 2px; font-size: 13.5px; color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-divider); }
.gpd-link:hover { color: var(--sig-l); padding-left: 6px; transition: padding .12s, color .12s; }
.gpd-note { font-size: 11.5px; color: var(--color-neutral-600); margin: 10px 0 0; }

/* Overview tab additions (2026-08-11 fix release) */
.gpd-attn { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-left: 2px solid #e0685e; background: rgba(224,104,94,.06); margin-bottom: 8px; text-decoration: none; color: var(--color-text); font-size: 13.5px; line-height: 1.5; }
.gpd-attn:hover { background: rgba(224,104,94,.12); }
.gpd-attn b { font-family: var(--font-heading); font-size: 22px; color: #e0685e; min-width: 30px; text-align: center; }
.gpd-mini { min-width: 0 !important; }
.gpd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 4px 18px; }

/* === LuciDash framework shell stamp (GPT-Astra lo4gtW7P visual completion 2026-09-06) === */
/* LuciDash = chrome. Old .ad-side/.ad-nav = Menu drawer only (all breakpoints). */
.ad-main.ld-chrome { padding-top: 12px; }
.ld-topbar{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:14px 16px;margin:0 0 16px;
  border:1px solid var(--color-divider);border-top:3px solid var(--sig);
  background:var(--color-bg-2);
  position:sticky;top:0;z-index:4;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.ld-topbar .ld-brand{min-width:0;flex:1}
.ld-topbar .ld-brand .kicker{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--sig-l);font-weight:700}
.ld-topbar .ld-brand h1{font-family:var(--font-heading);font-size:clamp(22px,2.6vw,28px);margin:2px 0 0;line-height:1.15;font-weight:600}
.ld-menu-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:48px;min-height:44px;padding:8px 14px;
  border:1px solid var(--sig);background:rgba(201,112,47,.12);color:var(--color-text);
  font-weight:700;font-family:var(--font-body);cursor:pointer;letter-spacing:.04em;
}
.ld-menu-btn:hover,.ld-menu-btn:focus-visible{background:rgba(201,112,47,.22)}
.ld-drawer-backdrop{display:none;position:fixed;inset:0;background:rgba(14,23,32,.66);z-index:38}
.ld-drawer-backdrop.open{display:block}
.ld-sync{display:flex;align-items:center;gap:10px;border:1px solid var(--color-divider);background:var(--color-bg);padding:10px 14px;min-width:140px}
.ld-sync .dot{width:11px;height:11px;border-radius:50%;background:var(--color-neutral-600);flex:none}
.ld-sync .dot.ok{background:#2e7d4f}.ld-sync .dot.warn{background:#b5761a}.ld-sync .dot.bad{background:#a83232}
.ld-sync .lbl{font-size:.85rem;font-weight:700}.ld-sync .sub{font-size:.7rem;color:var(--color-neutral-600);font-variant-numeric:tabular-nums}
.ld-agents{
  display:flex;gap:12px;overflow-x:auto;
  padding:12px 14px;margin-bottom:16px;
  border:1px solid var(--color-divider);background:var(--color-bg-2);
}
.ld-agent{display:flex;align-items:center;gap:10px;border:1px solid var(--color-divider);background:var(--color-bg);padding:10px 14px;min-width:max-content}
.ld-agent .av{width:32px;height:32px;display:grid;place-items:center;background:var(--color-accent-700);color:#0e1720;font-weight:700;font-family:var(--font-heading)}
.ld-agent .nm{font-size:.9rem;font-weight:700}.ld-agent .rl{font-size:.72rem;color:var(--color-neutral-600)}
.ld-agent .bd{font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;border:1px solid var(--sig);color:var(--sig-l);padding:2px 6px}
.ld-delivery{
  border:1px solid var(--color-divider);border-top:3px solid var(--sig);
  background:var(--color-bg-2);padding:16px 18px;margin-bottom:16px;
}
.ld-delivery .row{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-start;justify-content:space-between}
.ld-delivery h2{margin:0 0 4px;font-family:var(--font-heading);font-size:1.35rem}
.ld-delivery .meta{color:var(--color-neutral-600);font-size:.88rem;margin:0 0 12px}
.ld-delivery .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:10px 0 14px;width:100%}
.ld-delivery .cell{border:1px solid var(--color-divider);background:var(--color-bg);padding:12px}
.ld-delivery .cell .k{font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;color:var(--color-neutral-600)}
.ld-delivery .cell .v{font-weight:600;margin-top:6px;font-size:.98rem;line-height:1.35}
.ld-delivery .actions{display:flex;gap:8px;flex-wrap:wrap}
.ld-delivery .actions a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--color-divider);background:var(--color-bg);color:var(--color-text);text-decoration:none;font-weight:600;font-size:13.5px}
.ld-delivery .actions a.gold{background:var(--sig);border-color:var(--sig);color:#0e1720}
.ld-health{display:inline-flex;align-items:center;gap:6px;font-weight:700;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em}
.ld-health:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--color-neutral-600)}
.ld-health.green:before{background:#2e7d4f}.ld-health.amber:before{background:#b5761a}.ld-health.red:before{background:#a83232}
.ld-section{border:1px solid var(--color-divider);background:var(--color-bg-2);margin-bottom:14px}
.ld-section > .ld-sec-h{display:flex;align-items:center;gap:8px;padding:8px 10px}
.ld-section > .ld-sec-h button.ld-sec-btn{flex:1;min-height:48px;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--color-divider);background:var(--color-bg);color:var(--color-text);text-align:left;font-weight:700;font-family:var(--font-heading);font-size:1.08rem;cursor:pointer}
.ld-section.open > .ld-sec-h button.ld-sec-btn{background:rgba(201,112,47,.1);border-color:rgba(201,112,47,.45)}
.ld-section .chev{color:var(--sig-l);width:16px;transition:transform .15s;display:inline-block}
.ld-section.open .chev{transform:rotate(90deg)}
.ld-section .ld-sec-state{font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;color:var(--color-neutral-600);margin-left:auto}
.ld-section .ld-sec-body{display:none;padding:8px 16px 18px;border-top:1px solid var(--color-divider)}
.ld-section.open .ld-sec-body{display:block}
.ld-activity{border:1px solid var(--color-divider);background:var(--color-bg-2);padding:16px 18px;margin:20px 0 10px}
.ld-activity h2{margin:0 0 8px;font-family:var(--font-heading);font-size:1.2rem}
.ld-activity .e{padding:8px 0;border-top:1px solid var(--color-divider);font-size:13.5px}
.ld-activity .e .d{display:block;font-size:11px;color:var(--color-neutral-600);margin-bottom:2px}
/* Drawer nav density (secondary to LD chrome) */
.ad-side .ad-brand small,.ad-side .ad-brand .ld-nav-cue{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--sig-l);margin-top:2px}

/* AgentLuci HQ v1 — Hipson skin. The React shell owns its scoped shadcn tokens. */
.ad-main.ld-chrome { padding: 24px clamp(16px, 3.5vw, 48px); min-width: 0; width: 100%; max-width: 1600px; margin-inline: auto; }
.ad-side { width: min(320px, 90vw); left: -340px; box-shadow: 12px 0 48px #0005; }
.ad-side .ad-brand { padding: 24px 20px 18px; }
.ad-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.ad-nav > * { flex-shrink: 0; }
.ad-nav button, .ad-nav a { border-radius: 7px; min-height: 42px; }
.ad-nav .grp-t { font-size: 12px; color: #a8b8c7; }
.ad-nav button[aria-current="true"] { background: #eda45f1a; border-left-color: #eda45f; }
.hq-close-menu { margin: 12px 18px 0; padding: 10px; border: 1px solid var(--color-divider-2); border-radius: 7px; background: none; color: var(--color-text); cursor: pointer; }
.hq-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--color-divider); border-radius: 10px; margin-block: 12px; }
.hq-table-scroll table.ad { margin: 0; border: 0; min-width: 640px; }
.hq-table-scroll table.ad th { background: #182735; color: #b6c4d0; letter-spacing: .07em; }
.hq-table-scroll table.ad td { padding-block: 14px; }
.hq-explanation { font-size: 14px; color: #b6c4d0; max-width: 70ch; }
.hq-explanation summary { cursor: pointer; padding: 8px 0; color: #eda45f; }
.hq-explanation p { line-height: 1.6; margin: 8px 0; }
.hq-explanation summary:focus-visible { outline: 2px solid #eda45f; outline-offset: 3px; }
#ldWorkspaceBody { min-width: 0; }
#ldWorkspaceBody [data-panel] { outline: none; }
#ldWorkspaceBody .sec-head { margin-bottom: 22px; }
#ldWorkspaceBody .sec-head h1, #ldWorkspaceBody .sec-head h2 { font-size: clamp(24px, 3vw, 32px); }
#view-app input:not([type=checkbox]):not([type=radio]), #view-app textarea, #view-app select { border-radius: 6px; min-height: 40px; }
#view-app .pill { border-radius: 6px; }
#view-app button.pill { min-height: 36px; }
#view-app :is(button, a, input, textarea, select):focus-visible, .hq-table-scroll:focus-visible { outline: 2px solid #eda45f; outline-offset: 3px; }
.login .card { border-radius: 14px; box-shadow: 0 24px 80px #0004; }
.login .gbtn, .login input { border-radius: 7px; }
#rq-list { min-width: 0; }
#requests-root input:not([type=file]), #requests-root textarea, #requests-root select { background: #0e1720; color: #e8edf2; border: 1px solid #455a6c; padding: 11px 12px; font: 15px/1.5 Barlow, sans-serif; }
#requests-root input::placeholder, #requests-root textarea::placeholder { color: #9daebb; opacity: 1; }
#requests-root > div:first-child { border-radius: 12px; background: #14212d; }
#requests-root label { display: block; margin-bottom: 6px; }
#requests-root button.pill { background: #223343; color: #d5e0e8; border: 1px solid #455a6c; min-height: 44px; padding: 8px 12px; }
#requests-root button[aria-pressed="true"], #requests-root #rq-send { background: #eda45f; color: #0e1720; border-color: #eda45f; }
#requests-root button:disabled { opacity: .6; cursor: wait; }
.rq-summary { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.rq-summary span { border: 1px solid var(--color-divider); border-radius: 8px; padding: 10px 14px; color: #b6c4d0; }
.rq-summary b { color: var(--color-text); font-size: 20px; margin-right: 6px; }
.rq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 18px 0; }
.rq-tools label { display: grid; gap: 5px; font-size: 12px; color: #b6c4d0; }
.rq-tools input { min-width: 230px; }
@media (max-width: 600px) {
  .ad-main.ld-chrome { padding: 16px 12px; }
  #ldWorkspaceBody .grid { grid-template-columns: minmax(0, 1fr); }
  .rq-tools input { min-width: 0; width: 100%; }
  .rq-tools label { flex: 1; min-width: 140px; }
}
