/* PM Control — Claude-inspired warm, editorial, analytical theme */
:root {
  --bg:        #F0EEE6;   /* warm cream canvas */
  --surface:   #FCFBF8;   /* card */
  --surface-2: #F5F3EC;   /* inset / hover */
  --border:    #E4E0D6;
  --border-2:  #D8D3C7;
  --text:      #1A1915;   /* warm near-black */
  --text-mid:  #45433D;
  --muted:     #78756C;
  --accent:    #CC785C;   /* Claude coral */
  --accent-2:  #B85F44;
  --accent-soft:#F3E2D9;
  --green:     #5E8C66;
  --green-soft:#E3ECDE;
  --amber:     #C8923B;
  --amber-soft:#F3E8D2;
  --red:       #BC5C46;
  --red-soft:  #F3DED7;
  --gray:      #A8A399;
  --gray-soft: #EBE8E0;
  --blue:      #6E8AA6;
  --shadow:    0 1px 2px rgba(40,34,25,.04), 0 4px 16px rgba(40,34,25,.05);
  --serif: "Tiempos Text", Georgia, "Times New Roman", ui-serif, serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  background: rgba(240,238,230,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
  border: 1px solid transparent; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 13px; color: var(--text-mid);
  padding: 7px 14px; border-radius: 999px; transition: all .15s;
}
.tab:hover { background: var(--surface-2); }
.tab.active { background: var(--surface); border-color: var(--border-2); color: var(--text); box-shadow: var(--shadow); }

.topright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.asof { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.4; }
.asof strong { color: var(--text-mid); font-weight: 600; }
.asof .updated { font-size: 11px; margin-top: 1px; }
.asof .updated #updatedAt { color: var(--accent-2); font-weight: 600; }
.icon-btn {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-mid);
  border-radius: 8px; cursor: pointer; font-size: 13px; padding: 7px 10px; transition: all .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent-2); }
.icon-btn.csv { font-size: 12px; font-weight: 600; }
.icon-btn.spin { animation: spin .5s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- health (RAG) banner ---------- */
.rag {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow);
}
.rag-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.rag-label { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.rag-detail { color: var(--muted); font-size: 13px; }
.rag.green  { border-left: 4px solid var(--green); }
.rag.green  .rag-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.rag.green  .rag-label { color: var(--green); }
.rag.amber  { border-left: 4px solid var(--amber); }
.rag.amber  .rag-dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.rag.amber  .rag-label { color: var(--amber); }
.rag.red    { border-left: 4px solid var(--red); }
.rag.red    .rag-dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.rag.red    .rag-label { color: var(--red); }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 28px 60px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-family: var(--serif); font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); font-size: 12px; }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 11px; margin-bottom: 18px; }
@media (max-width: 1080px) { .kpis { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2,1fr); } }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi .label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kpi .value { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.kpi .sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.kpi.accent .value { color: var(--accent); }
.kpi.warn .value { color: var(--amber); }
.kpi.bad .value { color: var(--red); }
.kpi.good .value { color: var(--green); }
.kpi .bar { position:absolute; left:0; bottom:0; height:3px; background: var(--accent); opacity:.85; }
.kpi.clickable { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.kpi.clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40,34,25,.10); border-color: var(--border-2); }
.kpi.clickable:active { transform: translateY(0); }
.kpi.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* active filter chip next to the table */
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 12px; font-weight: 600; padding: 4px 6px 4px 11px; border-radius: 999px;
}
.fchip button {
  border: 0; background: rgba(184,95,68,.18); color: var(--accent-2);
  width: 17px; height: 17px; border-radius: 999px; cursor: pointer; line-height: 1; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.fchip button:hover { background: var(--accent); color: #fff; }

/* ---------- donut ---------- */
.donut-wrap { position: relative; height: 190px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center .big { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.donut-center .cap { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; justify-content: center; }
.legend .item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mid); }
.legend .dot { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- milestones ---------- */
.ms-controls { display: flex; align-items: center; gap: 14px; }
.toggle {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-mid);
  font-family: var(--sans); font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.toggle:hover { background: var(--surface-2); }
.toggle.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
.ms-list { display: flex; flex-direction: column; }
.ms-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--border); border-radius: 8px; }
.ms-item:last-of-type { border-bottom: 0; }
.ms-item.clickable:hover { background: var(--surface-2); }
.ms-item.pay { background: linear-gradient(90deg, rgba(204,120,92,.05), transparent 60%); }
.ms-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-main { font-size: 13.5px; }
.ms-main small { display: block; color: var(--muted); font-size: 11px; }
.ms-pay { margin-right: 4px; }
.cd { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--gray-soft); color: #7d7a70; }
.cd.over { background: var(--red-soft); color: var(--red); }
.cd.soon { background: var(--amber-soft); color: var(--amber); }
.cd.near { background: var(--accent-soft); color: var(--accent-2); }
.cd.far  { background: var(--green-soft); color: var(--green); }
.cd.done { background: var(--green-soft); color: var(--green); }
.ms-done-note { padding: 10px 8px 0; font-size: 12px; }

/* ---------- section health ---------- */
.sections { display: flex; flex-direction: column; gap: 12px; }
.sec-more { padding: 6px 2px 0; font-size: 12px; }
.srow { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 14px; }
.srow .sname { font-size: 13px; font-weight: 500; }
.srow .sname small { display:block; color: var(--muted); font-weight: 400; font-size: 11px; }
.track { background: var(--gray-soft); border-radius: 999px; height: 10px; overflow: hidden; }
.track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #6fa178); border-radius: 999px; }
.srow .smeta { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; min-width: 130px; }
.srow .smeta b { color: var(--text-mid); }
.pill-overdue { color: var(--red); font-weight: 600; }

/* ---------- slip list ---------- */
.slip-list { display: flex; flex-direction: column; }
.slip-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.slip-item:last-child { border-bottom: 0; }
.slip-item .t { font-size: 13px; }
.slip-item .t small { display: block; color: var(--muted); font-size: 11px; }
.slip-badge { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--red); white-space: nowrap; }
.slip-badge small { font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--muted); }

/* ---------- look-ahead ---------- */
.lookahead { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }

/* ---------- critical path ---------- */
.crit-list { display: flex; flex-direction: column; }
.crit-item { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.crit-item:last-child { border-bottom: 0; }
.crit-item.clickable:hover { background: var(--surface-2); }
.crit-item .t { font-size: 13px; }
.crit-item .t small { display: block; color: var(--muted); font-size: 11px; }
.cf { font-family: var(--serif); font-weight: 600; font-size: 14px; text-align: center; padding: 4px 6px; border-radius: 8px; white-space: nowrap; }
.cf.neg  { background: var(--red-soft); color: var(--red); }
.cf.zero { background: var(--amber-soft); color: var(--amber); }
.cf.near { background: var(--gray-soft); color: #7d7a70; }
.la-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; color: var(--text-mid); display:flex; gap:8px; align-items:center; }
.la-col h3 .count { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--muted); }
.la-col.overdue h3 .count { background: var(--red-soft); border-color: transparent; color: var(--red); }
.la-item { font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.la-item:last-child { border-bottom: 0; }
.la-item .when { color: var(--muted); font-size: 11px; }
.empty { color: var(--muted); font-size: 12px; font-style: italic; padding: 4px 0; }

/* ---------- change log ---------- */
.changes { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.chg { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.chg:last-child { border-bottom: 0; }
.chg .ts { font-size: 11.5px; color: var(--muted); }
.chg .ts .proj { display:inline-block; margin-top:3px; font-size:10px; padding:1px 7px; border-radius:999px; background:var(--accent-soft); color:var(--accent-2); }
.chg .body { font-size: 13px; }
.chg .body .act { font-weight: 500; }
.chg .body .raw { color: var(--text-mid); }
.chg .body .chg-basis { font-size: 11.5px; color: var(--accent-2); margin-top: 3px; }
.chg .tags { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.loadmore { width: 100%; margin-top: 10px; padding: 8px; border: 1px dashed var(--border-2); background: var(--surface-2); color: var(--text-mid); border-radius: 8px; cursor: pointer; font-size: 12px; }
.loadmore:hover { border-color: var(--accent); color: var(--accent-2); }
.tl-basis { font-size: 11.5px; color: var(--accent-2); margin: 2px 0 4px; }
.act .flag { margin-right: 3px; }
.quickchip { border: 1px solid var(--border-2); background: var(--surface); color: var(--text-mid); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; margin-right: 6px; }
.quickchip:hover { border-color: var(--accent); color: var(--accent-2); background: var(--surface-2); }

/* ---------- table ---------- */
.filters { display: flex; align-items: center; gap: 10px; }
.filters input, .filters select {
  font-family: var(--sans); font-size: 13px; color: var(--text);
  border: 1px solid var(--border-2); background: var(--surface); border-radius: 8px; padding: 7px 11px;
}
.filters input { width: 240px; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.table-scroll { max-height: 460px; overflow: auto; border-radius: 8px; }
/* spreadsheet feel: gridlines, zebra rows, tabular figures, denser rows */
.atable { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.atable thead th {
  position: sticky; top: 0; background: var(--surface-2); text-align: left;
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  padding: 7px 10px; border-bottom: 2px solid var(--border-2); border-right: 1px solid var(--border);
}
.atable td { padding: 6px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; }
.atable th:last-child, .atable td:last-child { border-right: none; }
.atable tbody tr:nth-child(even) { background: rgba(120,117,108,.035); }
.atable tbody tr:hover { background: var(--surface-2); }
.atable .num { text-align: right; }
.atable td:first-child { color: var(--muted); }
.atable .act small { color: var(--muted); }

/* ---------- SPI ---------- */
.spi-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.spi-now { text-align: center; }
.spi-val { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--text-mid); }
.spi-val.good { color: var(--green); }
.spi-val.warn { color: var(--amber); }
.spi-val.bad  { color: var(--red); }
.spi-sub { font-size: 11px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .spi-wrap { grid-template-columns: 1fr; } }

/* ---------- starts ---------- */
.starts { display: flex; flex-direction: column; gap: 14px; }
.starts-grp { display: flex; flex-direction: column; gap: 6px; }
.starts-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--muted); }
.starts-h.now { color: var(--accent-2); }
.start-item { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 12px; padding: 5px 6px; border-radius: 8px; cursor: pointer; }
.start-item:hover { background: var(--surface-2); }
.start-item .sw { font-size: 11px; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 5px; }
.start-item .sw.now { background: var(--accent-soft); color: var(--accent-2); }
.start-item .sw.soon { background: var(--gray-soft); color: var(--text-mid); }
.start-item .t { font-size: 13px; }
.start-item .t b { color: var(--accent-2); }
.start-item .t small { display: block; color: var(--muted); font-size: 11px; }
.slip-pos { color: var(--red); font-weight: 600; }
.slip-zero { color: var(--muted); }

/* ---------- status pills ---------- */
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.completed   { background: var(--green-soft); color: var(--green); }
.pill.in_progress { background: var(--amber-soft); color: var(--amber); }
.pill.not_started { background: var(--gray-soft);  color: #7d7a70; }
.pill.blocked, .pill.at_risk { background: var(--red-soft); color: var(--red); }

.foot { text-align: center; color: var(--muted); font-size: 11px; margin-top: 30px; letter-spacing: .03em; }

/* ---------- login page ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 32px; width: 350px; max-width: 100%; box-shadow: 0 10px 40px rgba(40,34,25,.10);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-form { display: flex; flex-direction: column; gap: 15px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.login-form input {
  border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 9px;
  padding: 11px 13px; font-size: 14px; font-family: var(--sans); color: var(--text);
}
.login-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); background: var(--surface); }
.login-form button {
  margin-top: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 9px;
  padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.login-form button:hover { background: var(--accent-2); }
.login-error { color: var(--red); font-size: 12.5px; background: var(--red-soft); padding: 8px 11px; border-radius: 8px; }
.login-foot { margin-top: 20px; text-align: center; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.logout-link { font-size: 12px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; }
.logout-link:hover { color: var(--accent-2); background: var(--surface-2); border-color: var(--border); }

/* ---------- clickable affordances ---------- */
.srow.clickable, .slip-item.clickable, .la-item.clickable, .chg.clickable, .atable tbody tr.clickable { cursor: pointer; }
.srow.clickable:hover { background: var(--surface-2); border-radius: 8px; }
.slip-item.clickable:hover, .la-item.clickable:hover, .chg.clickable:hover { background: var(--surface-2); }
.atable tbody tr.rowdue td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.atable tbody tr.rowdue { background: rgba(188,92,70,.045); }

/* ---------- sortable headers ---------- */
.atable th.sortable { cursor: pointer; user-select: none; }
.atable th.sortable:hover { color: var(--text-mid); }
.atable th.sortable::after { content: "⇅"; opacity: .3; margin-left: 5px; font-size: 10px; }
.atable th.sortable.sorted { color: var(--accent-2); }
.atable th.sortable.sorted[data-dir="asc"]::after { content: "↑"; opacity: 1; }
.atable th.sortable.sorted[data-dir="desc"]::after { content: "↓"; opacity: 1; }

/* ---------- detail drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(26,25,21,.32); backdrop-filter: blur(1px);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 460px; max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--border-2);
  box-shadow: -8px 0 30px rgba(40,34,25,.12); z-index: 50;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
}
.drawer-eyebrow { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 5px; }
.drawer-head h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.drawer-close { border: 0; background: var(--surface-2); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.drawer-close:hover { background: var(--accent-soft); color: var(--accent-2); }
.drawer-body { padding: 18px 22px 40px; overflow-y: auto; }

.dfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.dfact { background: var(--surface); padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; }
.dfact .dk { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dfact .dv { font-size: 13.5px; color: var(--text); }
.dsub { font-family: var(--serif); font-size: 14px; font-weight: 600; margin: 0 0 14px; }

.timeline { position: relative; padding-left: 4px; }
.tl { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-top: 3px; box-shadow: 0 0 0 3px var(--accent-soft); z-index: 1; }
.tl-when { font-size: 11px; color: var(--muted); }
.tl-text { font-size: 13px; margin: 2px 0 5px; }

@media (max-width: 520px) { .drawer { width: 100vw; } .dfacts { grid-template-columns: 1fr; } }

/* ---------- dependency chain (drawer) + held markers ---------- */
.dchain { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px; }
.dep { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface-2); font-size: 13px; cursor: pointer; transition: border-color .12s; }
.dep:hover { border-color: var(--accent); }
.dep b { font-variant-numeric: tabular-nums; }
.dep-arrow { flex: none; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  background: rgba(0,0,0,.05); padding: 2px 7px; border-radius: 20px; }
.dep-arrow.feeds { color: var(--accent-2); background: var(--accent-soft); }
.held-tag { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.start-item.held { opacity: .7; }
