/* Envisage ERP — web styles
   Ink navy + lime, IBM Plex. One stylesheet, plain CSS. */
:root {
  --ink: #0b1220;
  --ink-2: #1b2740;
  --ink-3: #22314f;
  --ink-text: #c7ceDB;
  --bg: #eef1f5;
  --card: #ffffff;
  --line: #dce1e8;
  --line-2: #cbd2dd;
  --soft: #f4f6f9;
  --text: #0b1220;
  --muted: #5b6577;
  --lime: #92d050;
  --green: #2f6b0a;
  --green-bg: #ddf2c6;
  --green-ink: #1f3b05;
  --blue: #1d4ed8;
  --blue-bg: #e3ecfd;
  --amber: #9a5b00;
  --amber-bg: #fce3ae;
  --amber-ink: #6b4500;
  --orange: #9a4a06;
  --red: #b91c1c;
  --red-bg: #fdecec;
  --red-ink: #8a1c1c;
  --purple: #5b21b6;
  --purple-bg: #ede9fe;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.12);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
#root { min-height: 100%; }
a { color: #3f6212; }
a:hover { color: #1a2e05; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.b { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.gap4 { gap: 4px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1; }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--text); transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--ink-2); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover:not(:disabled) { background: #a5dc6c; }
.btn.danger { color: var(--red-ink); border-color: #e9b4b4; }
.btn.danger:hover:not(:disabled) { background: var(--red-bg); }
.btn.solid-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.warn { color: var(--amber-ink); border-color: #e8b44c; }
.btn.warn:hover:not(:disabled) { background: #fff4e0; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: rgba(11,18,32,.06); }
.btn.sm { height: 34px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 50px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 34px; }
.btn.block { width: 100%; }

/* ── form ── */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: #2b3445; }
.req { color: var(--red); }
.input, .select, .textarea { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; padding: 0 12px; font-size: 14px; width: 100%; min-width: 0; }
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,18,32,.08); }
.input.mono { font-family: var(--mono); }
.input[readonly] { background: var(--soft); }
.input.error, .select.error { border-color: var(--red); }
.hint { font-size: 12px; color: var(--muted); }
.ferr { font-size: 12px; color: var(--red-ink); }
.search { position: relative; width: 100%; min-width: 0; }
.row .search, .page-h .search { flex: 1 1 260px; width: auto; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search .input { padding-left: 38px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }

/* ── cards & layout ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.pad0 { padding: 0; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.section-title { font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.page { padding: 24px clamp(14px, 3vw, 32px) 48px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.page-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-h .titles { flex: 1 1 260px; min-width: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
button.stat { cursor: pointer; font: inherit; }
button.stat:hover { border-color: var(--ink); }
.stat .v { font-family: var(--mono); font-size: 26px; font-weight: 600; line-height: 1.1; }
.stat .l { font-size: 12.5px; color: var(--muted); }
.stat.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat.dark .l { color: var(--ink-text); }
.split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.split > .side { flex: 1 1 320px; min-width: 0; max-width: 100%; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv > div { background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv .k { font-size: 11px; letter-spacing: .06em; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.kv .v { font-weight: 600; overflow-wrap: anywhere; }

/* ── badges ── */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; background: var(--soft); color: #334155; }
.badge.pending { background: #fbebc8; color: #5b3a00; }
.badge.progress { background: var(--blue-bg); color: var(--blue); }
.badge.done { background: var(--green-bg); color: var(--green-ink); }
.badge.delivered { background: var(--purple-bg); color: var(--purple); }
.badge.hold { background: var(--amber-bg); color: var(--amber-ink); }
.badge.run { background: var(--green); color: #fff; }
.badge.late { background: var(--red-bg); color: var(--red-ink); }
.badge.dark { background: var(--ink); color: #fff; }
.badge.lime { background: var(--lime); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; padding: 0 12px; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chip .x { font-weight: 700; }
.pill-num { font-family: var(--mono); font-size: 11px; background: var(--ink-3); color: #fff; border-radius: 10px; padding: 1px 8px; }

/* ── progress ── */
.bar { height: 8px; border-radius: 4px; background: #e6eaf0; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.bar.thin { height: 5px; }
.bar.amber > i { background: #d97706; }
.bar.red > i { background: #ef4444; }

/* ── tables ── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--soft); padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fafbfc; }
table.t.dark th { background: var(--ink); color: #fff; }

/* ── app shell ── */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex-shrink: 0; background: var(--ink); color: var(--ink-text); display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; color: #fff; font-weight: 700; letter-spacing: .04em; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; color: var(--ink); font-weight: 800; }
.brand b { color: var(--lime); }
.nav-sec { font-size: 10.5px; letter-spacing: .12em; color: #8a93a3; padding: 16px 12px 6px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-text); text-decoration: none; font-size: 14px; border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; }
.nav:hover { background: #142037; color: #fff; }
.nav.on { background: var(--ink-2); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--lime); }
.nav svg { flex-shrink: 0; }
.nav .pill-num { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.conn .dot { width: 8px; height: 8px; }
.conn.online .dot { background: #4ade80; }
.conn.connecting .dot { background: #fbbf24; }
.conn.offline .dot { background: #f87171; }
.offline-banner { background: #fff4e0; color: var(--amber-ink); border-bottom: 1px solid #f1d39a; padding: 8px 16px; font-size: 13px; text-align: center; }
.scrim { display: none; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(11,18,32,.45); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 12px; position: sticky; top: 0; z-index: 20; }
  .topbar .t { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .btn { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
}

/* ── mobile app (operator / salesman / store) ── */
.mapp { min-height: 100vh; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: var(--bg); }
@media (min-width: 761px) { .mapp { box-shadow: 0 0 0 1px var(--line); } }
.mhead { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.mhead .t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mhead .t b { font-size: 16.5px; }
.mhead .t span { font-size: 12px; color: var(--ink-text); }
.mhead .btn { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.mhead .btn.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.mbody { flex: 1; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.mnav { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; padding: 4px 8px 10px; }
.mnav button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); padding: 8px 0; cursor: pointer; min-height: 52px; }
.mnav button.on { color: var(--ink); font-weight: 700; }
.timer { font-family: var(--mono); font-size: clamp(44px, 12vw, 60px); font-weight: 600; letter-spacing: .02em; line-height: 1; }

/* ── job cards ── */
.job { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.job.available { border-color: #9bc66a; }
.job.held { background: #fff8eb; border-color: #e8b44c; }
.job.locked { background: #fbfbfc; }
.job.late { border-color: #e58c8c; }
.job.run { border-color: #7baf3e; box-shadow: 0 0 0 3px rgba(146,208,80,.25); }
.job.done { border-color: var(--green); }
.job.drag-over { outline: 3px dashed var(--lime); outline-offset: 2px; }
.job .no { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.job .pos { font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 7px; }
.job .name { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.procs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.proc { background: var(--soft); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proc .n { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proc .v { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.drag { cursor: grab; color: var(--muted); }
.holdnote { font-size: 12.5px; color: var(--amber-ink); background: #fcf0d6; border-radius: 8px; padding: 7px 10px; }

/* ── modal ── */
.modal-back { position: fixed; inset: 0; background: rgba(11,18,32,.55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: none; }
.modal.wide { max-width: 1040px; }
.modal.mid { max-width: 760px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-h h2 { flex: 1; }
.modal-b { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; background: #fafbfc; border-radius: 0 0 18px 18px; }
@media (max-width: 600px) { .modal-back { padding: 0; } .modal { border-radius: 0; min-height: 100vh; } .modal-f { border-radius: 0; } }

/* ── notices ── */
.notice { border-radius: 12px; padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice.err { background: var(--red-bg); color: var(--red-ink); }
.notice.warn { background: #fff4e0; color: var(--amber-ink); }
.notice.ok { background: #f0f7e6; color: #2f4f0a; }
.notice.info { background: var(--blue-bg); color: #1e3a8a; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
@media (max-width: 600px) { .toasts { top: 12px; bottom: auto; right: 12px; left: 12px; max-width: none; } }
.toast { background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; animation: tin .2s ease-out; }
.toast.ok { border-left: 4px solid var(--lime); }
.toast.err { border-left: 4px solid #f87171; }
.toast.info { border-left: 4px solid #60a5fa; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty b { color: var(--text); font-size: 15px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #cbd2dd; border-top-color: var(--ink); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading-screen { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #fff; }

/* ── login ── */
.login { min-height: 100vh; background: var(--ink); display: flex; align-items: stretch; justify-content: center; position: relative; overflow: hidden; }
.login::after { content: ""; position: absolute; right: -140px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 64px solid var(--lime); opacity: .9; pointer-events: none; }
.login-inner { width: 100%; max-width: 1100px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 40px 20px; position: relative; z-index: 1; }
.login-hero { flex: 1 1 340px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.login-hero .kick { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--lime); }
.login-hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.02; }
.login-hero p { color: var(--ink-text); font-size: 16px; max-width: 420px; margin: 0; }
.login-card { flex: 1 1 360px; max-width: 440px; background: #f4f6f9; border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }

/* ── charts ── */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 190px; border-bottom: 1px solid var(--line); padding: 0 6px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 56px; background: var(--green); border-radius: 6px 6px 0 0; min-height: 2px; }
.bars .b.cur i { background: var(--lime); }
.bars-x { display: flex; gap: 12px; padding: 0 6px; }
.bars-x span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ── steps (paint) ── */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line-2); }
.steps li.done:not(:last-child)::before { background: var(--green); }
.steps .ic { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; border: 2px solid var(--line-2); background: #fff; }
.steps li.done .ic { background: var(--green); border-color: var(--green); }
.steps li.cur .ic { background: var(--lime); border: 3px solid var(--ink); }

/* ── timeline ── */
.tl { list-style: none; margin: 0 0 0 6px; padding: 0; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 14px 18px; }
.tl li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.tl li.paint::before { background: #7c3aed; }

/* ── print ── */
.print-only { display: none; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  body.printing #root { display: none; }
  body.printing .print-only { display: block; }
  .no-print { display: none !important; }
}
.pdoc { font-family: var(--sans); color: #000; font-size: 11px; }
.pdoc h1 { font-size: 18px; }
.pdoc .phead { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--lime); padding-bottom: 8px; margin-bottom: 10px; }
.pdoc table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.pdoc th { background: #0b1220; color: #fff; text-align: left; padding: 5px 6px; font-size: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pdoc td { border-bottom: 1px solid #ddd; padding: 5px 6px; vertical-align: top; }
.pdoc .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #ccc; margin-bottom: 10px; }
.pdoc .grid > div { border: 1px solid #e5e5e5; padding: 5px 7px; }
.pdoc .grid .k { font-size: 9px; color: #555; font-weight: 700; letter-spacing: .05em; }
.pdoc .sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pdoc .sign div { border: 1px dashed #999; height: 50px; padding: 5px; font-size: 9px; font-weight: 700; color: #555; }
.pdoc .hl-done { background: #92d050 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pdoc .hl-late { background: #fecaca !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pdoc .hl-y { background: #fde047 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Extra work (cut pieces / manual lipping outside the main plan) */
.badge.extra { background: #ffe4cc; color: #8a3a00; }
.xw-row { background: #fff8f1; border: 1px solid #f6d3b4; border-radius: 10px; padding: 10px; }
.xw-item { display: flex; flex-direction: column; gap: 2px; text-align: left; background: #fff8f1; border: 1.5px solid #f6d3b4; border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: inherit; min-height: 44px; }
.xw-item[aria-pressed="true"] { border-color: var(--ink); }
.xw-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tl li.extra::before { background: #ea7a1f; }

/* Planned vs actual difference */
.varb { display: inline-block; font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.var-over { background: #ffe4cc; color: #8a3a00; }
.var-short { background: var(--blue-bg); color: var(--blue); }
.var-ok { background: var(--green-bg); color: var(--green-ink); }
.var-open { background: var(--soft); color: var(--muted, #5b6474); }
.t.dark .varb { box-shadow: none; }
