/* © 2026 SwiftSku Inc. Proprietary and confidential.
   Swift Operations prototype: components added on top of the SwiftDesk design system.
   SwiftSku Blue and its shades only; status colours only on status elements, always with a word. */
.proto-pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--control-border); color: var(--text-muted); }
.greet { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.subline { color: var(--text-muted); margin: 4px 0 0; }
.card + .card { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mb12 { margin-bottom: 12px; } .mt16 { margin-top: 16px; } .mt12 { margin-top: 12px; } .mt8 { margin-top: 8px; }
.split-60 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.split-50 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stat .d { font-size: 12px; margin-top: 4px; color: var(--text-muted); }
.stat .d b { font-weight: 700; }
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat.warn-b { border-color: color-mix(in srgb, var(--warning) 60%, var(--border)); }
.stat.bad-b { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }

/* target bar: fill = actual, thin line = where you should be today, dashed = stretch */
.tbar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); min-width: 120px; }
.tbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--brand); }
.tbar .pace { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 2px; }
.tbar .stretch { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dotted var(--text-muted); }
.tbar.lg { height: 14px; }
.tcell { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.tcell .nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; gap: 8px; }
.tcell .nums b { color: var(--text); font-weight: 600; }

/* bullet chart */
.bullet { position: relative; height: 34px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid var(--border); }
.bullet .band { position: absolute; top: 0; bottom: 0; }
.bullet .bar { position: absolute; top: 11px; height: 12px; left: 0; background: var(--brand); border-radius: 3px; }
.bullet .mk { position: absolute; top: 4px; bottom: 4px; width: 3px; background: var(--text); border-radius: 2px; }
.bullet .mk.pace { background: var(--text-muted); width: 2px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; background: var(--brand); }
.legend i.line { width: 3px; height: 12px; background: var(--text); }
.legend i.pace { width: 2px; height: 12px; background: var(--text-muted); }
.kpi-hero { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.kpi-hero > div { border-left: 1px solid var(--border); padding-left: 12px; }
.kpi-hero > div:first-child { border-left: 0; padding-left: 0; }
.kpi-hero .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-hero .l { font-size: 12px; color: var(--text-muted); }

/* tree rows */
.tree td:first-child { white-space: nowrap; }
.tree .lvl1 td:first-child { padding-left: 10px; font-weight: 700; }
.tree .lvl2 td:first-child { padding-left: 30px; }
.tree .lvl3 td:first-child { padding-left: 52px; }
.tree .lvl4 td:first-child { padding-left: 74px; }
.tree .grp td { background: var(--surface-2); }
.tw { display: inline-flex; align-items: center; gap: 6px; }
.tw .ico { color: var(--text-muted); }
.lock { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; margin-left: 6px; font-weight: 600; }
.late { font-size: 11px; color: var(--warning); font-weight: 700; margin-left: 6px; }

/* heatmap + load bars */
.heat-cell { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 7px 4px; font-size: 13px; position: relative; overflow: hidden; }
.heat-cell.over { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(11, 34, 51, .14) 5px 8px) !important; }
.loadbar { position: relative; height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.loadbar .in { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); }
.loadbar .ov { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--brand) 0 4px, color-mix(in srgb, var(--brand) 35%, transparent) 4px 8px); }
.loadbar .cap { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); }
.reasons { font-size: 12px; color: var(--text-muted); }

/* sparkline */
svg.spark { display: block; }
svg.spark path.l { fill: none; stroke: var(--brand); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.spark path.a { fill: color-mix(in srgb, var(--brand) 14%, transparent); stroke: none; }
svg.spark circle { fill: var(--brand); }

/* chart (line) */
svg.chart text { fill: var(--text-muted); font-size: 11px; font-family: inherit; }
svg.chart .grid { stroke: var(--border); stroke-width: 1; }
svg.chart .act { fill: none; stroke: var(--brand); stroke-width: 2.25; }
svg.chart .exp { fill: none; stroke: var(--text-muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
svg.chart .area { fill: color-mix(in srgb, var(--brand) 12%, transparent); }
svg.chart .bar { fill: color-mix(in srgb, var(--brand) 55%, transparent); }
svg.chart .bar.hi { fill: var(--brand); }
svg.chart .tgt { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 2 3; }

/* status mini bar */
.sbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); min-width: 120px; }
.sbar span { display: block; height: 100%; }
.sbar .s1 { background: var(--brand); } .sbar .s2 { background: color-mix(in srgb, var(--brand) 45%, transparent); } .sbar .s3 { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.scount { font-size: 12px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; }

/* attention list */
.att { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.att:last-child { border-bottom: 0; }
.att .t { font-weight: 600; }
.att .m { font-size: 12px; color: var(--text-muted); }
.att a { font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* priority map */
.pmap { position: relative; }
.pmap svg text { fill: var(--text-muted); font-family: inherit; }
.pmap svg .q { fill: color-mix(in srgb, var(--brand) 5%, transparent); stroke: var(--border); }
.pmap svg .qn { fill: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pmap svg .dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.pmap svg .lbl { fill: var(--text); font-size: 12px; font-weight: 600; }
.bk { display: inline-flex; min-width: 54px; justify-content: center; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; border: 1px solid var(--control-border); color: var(--text-muted); }
.bk.must { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.bk.should { border-color: var(--brand); color: var(--brand-text); }
.bk.could { border-style: dashed; }

/* drag list (my priorities) */
.dl { display: flex; flex-direction: column; gap: 8px; }
.dl-item { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.dl-item .grip { color: var(--text-muted); cursor: grab; display: inline-flex; }
.dl-item .rk { font-weight: 700; font-size: 18px; color: var(--brand-text); text-align: center; font-variant-numeric: tabular-nums; }
.dl-item .ttl { font-weight: 600; }
.dl-item .why { margin-top: 6px; min-height: 34px; padding: 6px 10px; font-size: 13px; }
.dl-item.lift { box-shadow: 0 10px 30px rgba(5, 14, 22, .18); border-color: var(--brand); transform: translateX(6px); }

/* grid editor (access) */
.grid-ed td { vertical-align: middle; }
.grid-ed .seg button { padding: 5px 10px; font-size: 12px; }
.grid-ed .seg button.on.wr { background: color-mix(in srgb, var(--brand) 70%, var(--text)); }
.grid-ed .seg.dis { opacity: .6; }
.grid-ed .scope { font-size: 13px; color: var(--text-muted); }
.chg { font-size: 11px; font-weight: 700; color: var(--brand-text); border: 1px solid var(--brand); border-radius: 999px; padding: 0 6px; margin-left: 6px; }
.na { font-size: 12px; color: var(--text-muted); font-style: italic; }
.grp-row td { background: var(--surface-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding-top: 6px; padding-bottom: 6px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.switch .tg { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--control-border); position: relative; flex: none; }
.switch .tg::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--control-border); }
.switch.on .tg { background: var(--brand); border-color: var(--brand); }
.switch.on .tg::after { left: 18px; background: #fff; }
.switch small { display: block; color: var(--text-muted); font-size: 12px; }
.sw-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }

/* key + code */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.method { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; border: 1px solid var(--control-border); border-radius: 4px; padding: 1px 5px; color: var(--brand-text); }

/* ask ops slide-over */
.ask-scrim { position: fixed; inset: 0; background: rgba(5, 14, 22, .42); z-index: 80; }
.ask { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; background: var(--surface); border-left: 1px solid var(--border); z-index: 90; display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(5, 14, 22, .18); }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ask-body { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ask-foot { border-top: 1px solid var(--border); padding: 12px 18px; }
.bubble { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.bubble.me { background: color-mix(in srgb, var(--brand) 14%, transparent); align-self: flex-end; max-width: 85%; }
.bubble.ai { background: var(--bg); border: 1px solid var(--border); }
.bubble.ai ul { margin: 6px 0; padding-left: 18px; }
.src { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.src span { font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; color: var(--brand-text); }
.sugg { display: flex; flex-direction: column; gap: 6px; }
.sugg button { text-align: left; }

/* timeline */
ol.tl { list-style: none; margin: 0; padding: 0; }
ol.tl li { position: relative; padding: 0 0 14px 22px; }
ol.tl li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
ol.tl li::after { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
ol.tl li:last-child::after { display: none; }
ol.tl .w { font-size: 12px; color: var(--text-muted); }

/* gantt */
.gantt { display: grid; grid-template-columns: 220px minmax(0, 1fr); font-size: 13px; }
.gantt .gh { color: var(--text-muted); font-size: 11px; display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.gantt .gr { position: relative; height: 34px; border-bottom: 1px solid var(--border); }
.gantt .gn { height: 34px; display: flex; align-items: center; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.gantt .gb { position: absolute; top: 9px; height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 55%, transparent); }
.gantt .gb.done { background: var(--brand); }
.gantt .gm { position: absolute; top: 10px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--surface); border: 2px solid var(--brand); }
.gantt .gm.done { background: var(--brand); }
.gantt .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .5; }

/* calendar week */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk .day { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; min-height: 180px; display: flex; flex-direction: column; gap: 6px; }
.wk .day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.wk .dh { font-size: 12px; color: var(--text-muted); font-weight: 700; display: flex; justify-content: space-between; }
.wk .ev { font-size: 12px; border-radius: 8px; padding: 6px 8px; background: var(--surface-2); border: 1px solid var(--border); }
.wk .ev b { display: block; font-size: 12px; }
.wk .ev .badge { margin-top: 4px; font-size: 10px; padding: 0 6px; }

/* sign-in extras */
.reason-banner { margin-bottom: 14px; border: 1px solid var(--brand); color: var(--text); background: rgba(66, 158, 216, .08); border-radius: 10px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.reason-banner .ico { color: var(--brand-text); margin-top: 2px; }
.reason-banner small { display: block; color: var(--text-muted); margin-top: 4px; font-size: 12px; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes span { height: 56px; border: 1px solid var(--control-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; background: var(--bg); font-variant-numeric: tabular-nums; }
.code-boxes span.f { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(66, 158, 216, .25); }
.stepper { font-size: 12px; color: var(--text-muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

/* phone frame tweaks */
@media (max-width: 640px) {
  .stats.six, .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-60, .split-50 { grid-template-columns: minmax(0, 1fr); }
  .att { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .kpi-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .greet { font-size: 22px; }
  .m-hide { display: none !important; }
  .mcards { display: flex; flex-direction: column; gap: 10px; }
  .ask { width: 100vw; }
  .wk { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 641px) { .m-only { display: none !important; } }
@media (max-width: 1180px) { .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .split-60 { grid-template-columns: minmax(0, 1fr); } }
.mcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.mcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.mcard .top b { font-size: 14px; }
.mcard .sub { font-size: 12px; color: var(--text-muted); }
.auth { color: var(--text); }
@media (max-width: 640px) { .pbar .seg button { padding: 6px 8px; } .pbar strong { font-size: 13px; } }
.side-brand { gap: 10px; }
.side-brand .logo-full { width: 96px; min-width: 96px; }
.side-brand .name { font-size: 15px; padding-left: 10px; }
.bk { white-space: nowrap; }
.person-head .ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lock .ico { vertical-align: -1px; }
@media (max-width: 640px) { .stats.six, .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.chip { text-decoration: none; }
/* Layout audit fixes (15 Oct): six/five-up stat rows never spill their values. */
.stats.six .stat .v, .stats.five .stat .v { font-size: clamp(17px, 1.5vw, 24px); overflow-wrap: anywhere; }
@media (max-width: 1640px) { .stats.six .stat .s-ico { display: none; } }
@media (max-width: 1100px) { .stats.five .stat .s-ico { display: none; } }
.stat .d, .stat .l { white-space: normal; overflow-wrap: anywhere; }
.side-brand { min-width: 0; gap: 8px; }
.side-brand .logo-full { width: 84px; min-width: 84px; height: auto; }
.side-brand .name { padding-left: 8px; }
.kv dd, .kv dt { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .tbl.tree th:nth-child(4), .tbl.tree td:nth-child(4), .tbl.tree th:nth-child(5), .tbl.tree td:nth-child(5) { display: none; } .tbl.tree td:first-child { min-width: 150px; } .tbl.tree .tcell { min-width: 120px; } }
