/* Locto Projects. Builds on locto-ui tokens and lt- components; only what they don't cover is here. */
html, body { margin: 0; background: var(--bg); }
body { overflow-x: hidden; }
.mock-banner { display: flex; gap: var(--space-2); align-items: center; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); padding: 8px 12px; margin-bottom: var(--space-4); }
.mock-banner b { color: var(--ink); }
.stack { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.stack > *, .cols-2 > * { min-width: 0; }
.lt-page-actions { flex-wrap: wrap; }
@media (max-width: 640px) { .lt-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } .lt-page-actions .lt-select { flex: 1 1 100%; } }
.row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-5); align-items: start; }
.side-cards { display: grid; gap: var(--space-5); align-content: start; }
@media (max-width: 1599px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } .cols-2 > .side-cards { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
.lt-page-head { margin-bottom: var(--space-4); }
.lt-page-head .lt-sync { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.filters .lt-select { width: auto; min-width: 150px; height: 32px; }
.filters { min-width: 0; max-width: 100%; }
.filters .lt-select { max-width: 280px; }
@media (max-width: 640px) { .filters { width: 100%; } .filters .lt-select { flex: 1 1 100%; max-width: 100%; min-width: 0; } }
.src { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--slate-soft); color: var(--slate); font-weight: 500; vertical-align: 1px; }
.src.halo { background: var(--brand-soft); color: var(--brand-strong); }
.src.ov { background: var(--warn-soft); color: var(--warn); }
.av { width: 24px; height: 24px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; font: 600 11px/1 var(--font-sans); background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.av.none { background: var(--slate-soft); color: var(--slate); }
.who { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lt-tile .lt-tile-delta b { color: var(--ink); font-weight: 600; }
.tile-red { --dot: var(--bad); }
.tile-amber { --dot: var(--warn); }
.tile-green { --dot: var(--ok); }
.tile-hl { --dot: var(--hl); }
.tile-brand { --dot: var(--brand); }
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); min-width: 90px; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 4px; }
.meter i.over { background: var(--bad); }
.meter i.warn { background: var(--warn); }
.meter-label { font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }
.slip { font-weight: 600; white-space: nowrap; }
.slip.bad { color: var(--bad); }
.slip.warn { color: var(--warn); }
.slip.ok { color: var(--ok); }
.attn-list { list-style: none; margin: 0; padding: 0; }
.attn-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.attn-list li > .cl { grid-column: 2 / 4; font-size: 12px; color: var(--ink-3); }
.attn-list li:last-child { border-bottom: 0; }
.attn-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); transform: translateY(-1px); }
.attn-list li.bad::before { background: var(--bad); }
.attn-list li.info::before { background: var(--slate); }
.attn-list a { font-weight: 500; }
.attn-list .why { grid-column: 2 / 4; font-size: 13px; color: var(--ink-2); }
.lt-table td .sub { display: block; font-size: 12px; color: var(--ink-3); }
.lt-table td.key a { color: var(--ink); }
.lt-table td.key a:hover { color: var(--brand-strong); }
.table-scroll { overflow-x: auto; }
.lt-card-head .meta { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* ---------- Gantt ---------- */
.gantt { --label-w: 320px; --row-h: 34px; position: relative; display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); border-top: 1px solid var(--line); }
.g-labels { position: relative; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); }
.g-scroll { overflow-x: auto; overflow-y: hidden; position: relative; }
.g-canvas { position: relative; }
.g-head { height: 48px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: relative; }
.g-labels .g-head { display: flex; align-items: flex-end; padding: 0 12px 8px; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.g-month { position: absolute; top: 0; height: 24px; line-height: 24px; padding-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.g-week { position: absolute; top: 24px; height: 24px; line-height: 24px; padding-left: 4px; font-size: 11px; color: var(--ink-3); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.g-row { height: var(--row-h); border-bottom: 1px solid var(--line); position: relative; }
.g-labels .g-row { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; cursor: pointer; }
.g-labels .g-row:hover { background: var(--surface-2); }
.g-labels .g-row .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink); }
.g-labels .g-row .lbl small { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.g-labels .g-row.k-project .lbl { font-weight: 600; font-size: 14px; }
.g-labels .g-row.k-phase .lbl { font-weight: 600; color: var(--ink-2); }
.g-labels .g-row.k-sub .lbl { color: var(--ink-2); }
.g-labels .g-row .tw { width: 16px; height: 16px; display: grid; place-items: center; color: var(--ink-3); flex: none; border: 0; background: none; padding: 0; cursor: pointer; }
.g-labels .g-row .rag { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rag.red { background: var(--bad); } .rag.amber { background: var(--warn); } .rag.green { background: var(--ok); }
.g-weekend { position: absolute; top: 0; bottom: 0; background: var(--surface-2); opacity: .7; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--hl); z-index: 3; }
.g-today::after { content: "Today"; position: absolute; top: 2px; left: 4px; font: 600 11px/14px var(--font-sans); color: var(--hl-strong); background: var(--surface); padding: 0 3px; border-radius: 3px; }
.g-base { position: absolute; height: 4px; bottom: 5px; border-radius: 2px; background: var(--line-strong); }
.g-bar { position: absolute; top: 8px; height: 16px; border-radius: 4px; background: var(--chart-1); min-width: 3px; cursor: pointer; }
.g-bar:hover { filter: brightness(1.08); }
.g-bar.s-done { background: var(--chart-2); }
.g-bar.s-waiting, .g-bar.s-active-waiting { background: repeating-linear-gradient(135deg, var(--chart-1) 0 5px, var(--chart-2) 5px 10px); }
.g-bar.s-loe { background: transparent; border: 1.5px dashed var(--slate); height: 12px; top: 10px; }
.g-bar.s-rollup, .k-phase .g-bar, .k-project .g-bar { height: 8px; top: 12px; background: var(--ink-2); border-radius: 2px; }
.k-project .g-bar.rag-red { background: var(--bad); } .k-project .g-bar.rag-amber { background: var(--warn); } .k-project .g-bar.rag-green { background: var(--ok); }
.g-bar.crit { box-shadow: 0 0 0 2px var(--hl); }
.g-bar.moved { box-shadow: 0 0 0 2px var(--hl), 0 0 0 5px var(--hl-soft); }
.g-bar .prog { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0,0,0,.22); border-radius: 4px 0 0 4px; }
.g-ms { position: absolute; top: 10px; width: 14px; height: 14px; transform: translateX(-7px) rotate(45deg); background: var(--ink); border-radius: 2px; }
.g-ms.late { background: var(--bad); }
.g-arrows { position: absolute; left: 0; top: 48px; pointer-events: none; z-index: 1; overflow: visible; }
.g-arrows path { fill: none; stroke: var(--ink-3); stroke-width: 1.25; }
.g-arrows path.crit { stroke: var(--hl); stroke-width: 1.75; }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); padding: 10px 16px; border-top: 1px solid var(--line); }
.g-legend span { display: inline-flex; align-items: center; gap: 6px; }
.g-legend i { display: inline-block; width: 18px; height: 8px; border-radius: 2px; background: var(--chart-1); }
.g-legend i.done { background: var(--chart-2); }
.g-legend i.wait { background: repeating-linear-gradient(135deg, var(--chart-1) 0 4px, var(--chart-2) 4px 8px); }
.g-legend i.base { height: 4px; background: var(--line-strong); }
.g-legend i.crit { box-shadow: 0 0 0 2px var(--hl); }
.g-legend i.loe { background: transparent; border: 1.5px dashed var(--slate); }
.g-legend i.today { width: 2px; height: 12px; background: var(--hl); }
@media (max-width: 700px) { .gantt { --label-w: 170px; } .g-labels .g-row small { display: none; } }

/* ---------- Kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-2); align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); display: grid; grid-template-rows: auto 1fr; min-height: 200px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.col-head .lt-n { margin-left: auto; font-size: 12px; color: var(--ink-3); background: var(--surface); border-radius: var(--radius-pill); padding: 0 7px; }
.col-body { padding: 8px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.col.drop .col-body { outline: 2px dashed var(--brand); outline-offset: -4px; border-radius: var(--radius-md); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; display: grid; gap: 6px; cursor: grab; text-align: left; font: inherit; color: var(--ink); }
.card:hover { border-color: var(--line-strong); }
.card .t { font-weight: 500; font-size: 14px; line-height: 19px; }
.card .p { font-size: 12px; color: var(--ink-3); line-height: 16px; }
.card .f { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.card .f .grow { flex: 1; }
.card.attn { box-shadow: inset 3px 0 0 var(--hl); }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.cal-h { padding: 8px; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-d { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: grid; gap: 3px; align-content: start; min-width: 0; }
.cal-d.out { background: var(--surface-2); }
.cal-d.out .n { color: var(--ink-3); }
.cal-d.we { background: var(--surface-2); }
.cal-d .n { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.cal-d.today .n b { background: var(--hl); color: #fff; border-radius: var(--radius-pill); padding: 0 6px; }
.ev { display: block; font-size: 12px; line-height: 16px; padding: 2px 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; text-align: left; cursor: pointer; width: 100%; font-family: inherit; }
.ev.finish { background: var(--surface-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
.ev.ms { background: var(--ink); color: var(--surface); }
.ev.late { box-shadow: inset 3px 0 0 var(--bad); }
.ev.leave { background: var(--warn-soft); color: var(--warn); cursor: default; }
.ev.ph { background: var(--slate-soft); color: var(--slate); cursor: default; }
.ev.more { background: none; color: var(--ink-3); }
@media (max-width: 700px) { .cal-d { min-height: 70px; } .ev { font-size: 11px; padding: 1px 4px; } .cal-h { padding: 6px 4px; font-size: 11px; letter-spacing: 0; } }

/* ---------- Capacity heatmap ---------- */
.heat { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.heat th { font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding: 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; position: sticky; top: 0; }
.heat th:first-child, .heat td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 190px; }
.heat th:first-child { background: var(--surface-2); z-index: 2; }
.heat td { padding: 4px; border-bottom: 1px solid var(--line); text-align: center; }
.heat tr:last-child td { border-bottom: 0; }
.cell { display: grid; place-items: center; height: 44px; min-width: 64px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; font: inherit; color: var(--ink); background: var(--surface-2); width: 100%; padding: 0; }
.cell b { font-size: 14px; font-weight: 600; line-height: 16px; }
.cell small { font-size: 11px; color: var(--ink-3); line-height: 13px; }
.cell.under { background: var(--surface-2); }
.cell.ok { background: var(--ok-soft); color: var(--ok); }
.cell.ok small { color: var(--ok); }
.cell.over { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.cell.over small { color: var(--bad); }
.cell.away { background: repeating-linear-gradient(135deg, var(--warn-soft) 0 6px, var(--surface) 6px 12px); color: var(--warn); }
.cell.away.over { border-color: var(--bad); color: var(--bad); }
.heat .tot td { background: var(--surface-2); font-weight: 600; }
.heat .tot td:first-child { background: var(--surface-2); }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend-row span { display: inline-flex; gap: 6px; align-items: center; }
.legend-row i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid transparent; }

/* ---------- Charts ---------- */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .track { height: 18px; display: flex; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.hbar .track i { height: 100%; }
.hbar .v { text-align: right; font-weight: 600; }
.c-remote { background: var(--chart-1); } .c-onsite { background: var(--chart-2); } .c-after { background: var(--chart-3); } .c-nc { background: var(--line-strong); } .c-travel { background: var(--ink-3); }
@media (max-width: 640px) { .hbar { grid-template-columns: 96px minmax(0, 1fr) 52px; } }

/* ---------- Drawer ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 45; display: flex; justify-content: flex-end; }
.drawer-wrap .lt-scrim { position: absolute; }
.drawer-wrap .lt-drawer { position: relative; z-index: 1; }
.lt-drawer-foot { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line); background: var(--surface-2); display: flex; gap: var(--space-2); justify-content: flex-end; align-items: center; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp th { text-align: left; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cmp td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp td:first-child { color: var(--ink-3); width: 130px; }
.dq-count { font-size: 28px; line-height: 32px; font-weight: 650; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-3); }
.flow > div { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; background: var(--surface); display: grid; gap: 4px; align-content: start; }
.flow b { font-size: 14px; }
.flow small { color: var(--ink-3); font-size: 12px; }
.rule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.rule:last-child { border-bottom: 0; }
.rule h3 { margin: 0; font-size: 14px; font-weight: 600; }
.rule p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.rule .steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rule .steps .lt-chip b { color: var(--ink); font-weight: 600; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--line-strong); border: 0; cursor: pointer; padding: 0; flex: none; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { left: 18px; }
.log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.log li { padding: 9px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--ink-3); }
.whatif { display: flex; align-items: center; gap: 6px; }
.whatif input { width: 64px; height: 28px; }
.lt-tabs { margin-bottom: var(--space-4); }
.tpl { display: grid; gap: 6px; }
.tpl ol { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .lt-main { padding: var(--space-4); } }
@media (max-width: 700px) {
  .lt-page-actions { margin-left: 0; width: 100%; }
  .hide-sm { display: none; }
  .lt-table.cards thead { display: none; }
  .lt-table.cards tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .lt-table.cards td { padding: 0; border: 0; }
  .lt-table.cards td.key { grid-column: 1 / -1; }
  .lt-table.cards td.hide-sm { display: none; }
}

.phase-seg { flex-wrap: wrap; max-width: 100%; }
.phase-seg button { white-space: nowrap; }
.phase-seg button[aria-pressed="true"] .muted { color: inherit; opacity: .8; }
.board-proj { grid-auto-columns: minmax(190px, 1fr); }
@media (max-width: 640px) { .phase-seg button { white-space: normal; text-align: left; } .board-proj { grid-auto-columns: minmax(240px, 85%); } }
.lt-tabs { overflow-x: auto; scrollbar-width: none; }
.lt-tab { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .lt-tabs { gap: var(--space-4); } }

/* ---------- added for the working build ---------- */
.halo-link { white-space: nowrap; }
.halo-link .lt-icon { width: 12px; height: 12px; margin-left: 2px; vertical-align: -1px; opacity: .7; }
.blk-txt { color: var(--warn); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.blk-txt .lt-icon { width: 13px; height: 13px; }
.card.blocked { box-shadow: inset 3px 0 0 var(--warn); }
.ell { overflow: hidden; text-overflow: ellipsis; }
.h3 { margin: 0; font-size: 15px; font-weight: 600; }
.cols-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-5); align-items: start; }
.cols-even > * { min-width: 0; }
.attn-list li .acts { grid-column: 2 / 4; margin-top: 4px; }
/* drawer without dimming the page */
.drawer-wrap { pointer-events: none; }
.drawer-wrap .drawer-catch { position: absolute; inset: 0; pointer-events: auto; background: transparent; }
.drawer-wrap .lt-drawer { pointer-events: auto; box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,.18)); max-width: 100vw; }
.lt-drawer.wide { width: min(720px, 100vw); }
.lt-drawer-body { display: grid; gap: var(--space-4); align-content: start; }
.task-form { display: grid; gap: var(--space-3); }
.lt-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { border: 0; background: none; padding: 0 0 0 4px; cursor: pointer; color: var(--ink-3); display: inline-flex; }
.chip-x .lt-icon { width: 12px; height: 12px; }
details.facts summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
details.facts .cmp { margin-top: 8px; }
.note-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.activity-scroll { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 10px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.activity li:last-child { border-bottom: 0; }
.activity li.priv { box-shadow: inset 2px 0 0 var(--line-strong); padding-left: 8px; }
.act-note { white-space: pre-wrap; overflow-wrap: anywhere; }
/* health list */
.health-list { list-style: none; margin: 0 0 12px; padding: 0; }
.health-list > li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.health-list > li:last-child { border-bottom: 0; }
.health-list > li.acked > div > .row > span:not(.lt-pill) { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.ack-note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 8px; margin-top: 6px; }
.ack-note .lt-icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ack-note.expired { background: var(--warn-soft); }
/* gantt additions */
.g-labels .g-head .g-colh { position: relative; display: flex; align-items: flex-end; height: 100%; min-width: 0; }
.g-labels .g-head.multi { display: grid; padding: 0; }
.g-labels .g-head.multi .g-colh { padding: 0 12px 8px; }
.g-rz { position: absolute; right: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 3; touch-action: none; }
.g-rz::after { content: ""; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: var(--line-strong); opacity: 0; }
.g-rz:hover::after, .g-rz:focus-visible::after { opacity: 1; }
.g-labels .g-row.multi { display: grid; padding: 0; gap: 0; }
.g-labels .g-row.multi .cell { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; height: 100%; overflow: hidden; }
.g-labels .g-row.multi .cell + .cell { border-left: 1px solid var(--line); }
.g-labels .g-row.multi.k-project .cell:first-child .lbl { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.g-note { position: absolute; top: 9px; font-size: 11px; line-height: 16px; color: var(--ink-3); white-space: nowrap; pointer-events: none; }
.g-ms { border: 0; padding: 0; cursor: pointer; }
.g-ms.sm { width: 11px; height: 11px; top: 11px; transform: translateX(-5px) rotate(45deg); z-index: 2; cursor: default; box-shadow: 0 0 0 2px var(--surface); }
.g-ms.done { background: var(--ok); }
.g-blk { position: absolute; top: 6px; height: 20px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--warn-soft) 0 5px, transparent 5px 10px); border: 1.5px dashed var(--warn); z-index: 1; pointer-events: auto; }
.g-bar { z-index: 2; }
.g-bar.open-ended { -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.gantt.editing .g-bar.editable { cursor: grab; touch-action: none; }
.gantt.editing .g-bar.editable:active { cursor: grabbing; }
.g-h-r { position: absolute; right: -3px; top: -2px; bottom: -2px; width: 8px; cursor: ew-resize; }
.g-h-l { position: absolute; right: -16px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); cursor: crosshair; opacity: 0; transition: opacity .1s; }
.g-bar.editable:hover .g-h-l, .g-bar.editable:focus-within .g-h-l { opacity: 1; }
@media (hover: none) { .g-h-l { opacity: 1; } }
.g-arrows path.hit { stroke: transparent; stroke-width: 10; pointer-events: stroke; cursor: pointer; }
.g-arrows path.hit:hover { stroke: var(--bad-soft); }
.g-arrows .g-temp { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 4 3; fill: none; }
.gantt.editing .g-arrows { pointer-events: none; }
.g-legend i.blk { background: repeating-linear-gradient(135deg, var(--warn-soft) 0 3px, transparent 3px 6px); border: 1.5px dashed var(--warn); }
.g-legend i.ms { width: 9px; height: 9px; transform: rotate(45deg); background: var(--ink); }
.g-week.day { top: 24px; color: var(--ink-3); border-left-color: transparent; }
.plan-unsaved { margin: 0 16px 12px; }
/* budget */
.budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-3); }
.bud { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; display: grid; gap: 8px; align-content: start; }
.bud.total { background: var(--surface-2); }
.bud-bars { display: grid; gap: 3px; }
.bb { display: block; height: 8px; border-radius: 4px; min-width: 2px; }
.bb.plan { background: var(--line-strong); }
.bb.over { box-shadow: 0 0 0 2px var(--bad); }
.phase-row td { background: var(--surface-2); font-weight: 600; }
tr.grp td { background: var(--surface-2); }
.lt-table tr.blocked-row td.key { box-shadow: inset 3px 0 0 var(--warn); }
/* reports */
.hbar-group { display: grid; gap: 4px; }
.hbar.sub { font-size: 12px; }
.hbar.sub .track { height: 12px; }
.print-only { display: none; }
.digest { white-space: pre-wrap; font: 13px/1.5 var(--font-sans); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; margin: 10px 0; max-height: 360px; overflow: auto; }
.cap-set input { width: 72px; height: 30px; text-align: right; }
.test-card { border-color: var(--hl); }
@media print {
  locto-bar, .lt-side, .lt-page-actions, .no-print, .lt-toolbar, #drawerHost, .mock-banner { display: none !important; }
  .lt-shell { display: block; } .lt-main { padding: 0; } .print-only { display: block; margin-bottom: 12px; }
  .lt-card { break-inside: avoid; box-shadow: none; } body { background: #fff; }
  .table-scroll { overflow: visible; } .hide-sm { display: table-cell !important; }
}
@media (max-width: 700px) { .note-add { grid-template-columns: 1fr; } .lt-form-grid { grid-template-columns: 1fr 1fr; } }
.gantt { grid-template-columns: min(var(--label-w), 55vw) minmax(0, 1fr); }
.g-labels { overflow: hidden; }
