/* Store Inventory – console theme: pale gradient sidebar, white bordered cards, strong blue accent, small caps labels */
:root {
  --bg: #f7fafd; --card: #ffffff; --text: #14283f; --muted: #66788c; --line: #dfe7f0; --hover: #f2f7fc; --thead: #e8f0fa; --zebra: #f6f8fb;
  --accent: #0a58ad; --accent-dark: #084a93; --accent-soft: #e3effb; --navy: #0f2a4a;
  --green: #14946b; --orange: #e08a00; --amber: #e0a100; --red: #c0392b; --teal: #0d9488;
  --err: #c0392b; --err-bg: #fdecea; --ok: #17703f; --ok-bg: #e4f5ec;
  --shadow: 0 1px 2px rgba(15,42,74,.05); --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 13px/1.5 Inter, "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 20px; font-weight: 700; margin: 0 0 12px; } h2 { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.page-head > h1:first-child:not(:has(*)) { display: none; }          /* the header bar already shows the plain page title */

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 226px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 10px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf0 0%, #f1f6fb 45%, #e3f1fb 100%); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; border-bottom: 1px solid rgba(15,42,74,.08); margin-bottom: 10px; }
.brand .logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #1f7bd8, #0a58ad); display: grid; place-items: center; flex: none; box-shadow: 0 2px 6px rgba(10,88,173,.35); }
.brand b { display: block; font-size: 13px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.brand small { display: block; font-size: 11px; color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar nav { flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 2px 0; color: #2b3f55; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.sidebar nav a svg { width: 16px; height: 16px; flex: none; stroke: #5c7189; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar nav a:hover { background: rgba(255,255,255,.65); text-decoration: none; }
.sidebar nav a.on { background: #fff1c4; border-color: #f0c860; color: var(--navy); font-weight: 800; }
.sidebar nav a.on svg { stroke: var(--navy); }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #7d8fa3; padding: 12px 10px 3px; font-weight: 700; }
.navbadge { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #fffdf6 0, var(--bg) 140px); }
.topbar { display: flex; gap: 12px; align-items: center; padding: 12px 24px; background: rgba(255,255,255,.85); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.topbar .ptitle { font-size: 16px; font-weight: 800; color: var(--navy); margin-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.topbar .spacer { flex: 1; } .topbar .who { color: var(--muted); font-size: 12px; }
.topbar select, .search input { border-radius: 6px; padding: 6px 10px; font-size: 12px; }
.search input { width: 220px; }
.btn-logout { background: #c62f3d; color: #fff; border: 0; border-radius: 6px; padding: 7px 12px; font-weight: 700; font-size: 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.btn-logout:hover { filter: brightness(1.1); }
.menu-btn { display: none; background: var(--card); border: 1px solid var(--line); font-size: 18px; color: var(--text); border-radius: 6px; padding: 3px 9px; }
.content { padding: 18px 24px 40px; max-width: 1640px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.page-head h1 { margin: 0; }

/* ---------- cards, tiles, kpis ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card > h2:first-child, .sect { margin-top: 0; }
.sect { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 16px 14px; display: block; color: var(--text); box-shadow: var(--shadow); }
a.kpi:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(15,42,74,.1); }
.kpi.green { border-left-color: var(--green); } .kpi.amber { border-left-color: var(--amber); } .kpi.red { border-left-color: var(--red); } .kpi.teal { border-left-color: var(--teal); }
.kpi .lab { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.kpi .lab svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.kpi b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.15; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 11px; color: var(--muted); margin-bottom: 8px; } .kpi .sub .up { color: var(--green); font-weight: 600; }
.track { height: 5px; background: #e7edf4; border-radius: 99px; overflow: hidden; display: flex; } .track > i { display: block; height: 100%; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e3effb; color: #0a58ad; }
.tag.g { background: #dff4ec; color: #0f7a58; } .tag.a { background: #fdf0d2; color: #92650a; } .tag.r { background: #fbe4e1; color: #a52a1f; } .tag.n { background: #eef1f5; color: #4a5b6e; }
.cols3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); } .cols-2-1 { grid-template-columns: 2fr 1fr; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); } .legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .seg button { border: 0; background: #fff; padding: 3px 12px; font-size: 11px; cursor: pointer; color: var(--muted); } .seg button.on { background: var(--navy); color: #fff; font-weight: 700; }
.qrow { display: grid; grid-template-columns: 1fr 70px; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.qrow:first-of-type { border-top: 0; } .qrow .t b { display: block; font-size: 13px; } .qrow .t span { font-size: 11px; color: var(--muted); } .qrow .n { font-size: 20px; font-weight: 800; text-align: right; color: var(--navy); }
.qrow .track { grid-column: 1 / -1; }
.oldrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); } .oldrow:first-of-type { border-top: 0; }
.oldrow .mid { flex: 1; min-width: 0; } .oldrow .mid b { display: block; font-size: 12px; font-family: Consolas, monospace; font-weight: 600; } .oldrow .mid span { font-size: 11px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age { font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #fbe4e1; color: #a52a1f; white-space: nowrap; }
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.filterbar .l { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .filterbar label { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.qpills { display: flex; gap: 6px; flex-wrap: wrap; } .qpill { font-size: 11px; padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); } .qpill:hover { text-decoration: none; background: var(--hover); } .qpill.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.statusline { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-size: 11px; color: var(--muted); margin: 10px 0; flex-wrap: wrap; }
.dotlive { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1aa766; margin-right: 5px; }
.switch { position: relative; width: 30px; height: 16px; display: inline-block; vertical-align: middle; } .switch input { opacity: 0; width: 0; height: 0; } .switch span { position: absolute; inset: 0; background: #b9c5d3; border-radius: 99px; transition: .2s; cursor: pointer; } .switch span:before { content: ""; position: absolute; width: 12px; height: 12px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; } .switch input:checked + span { background: var(--accent); } .switch input:checked + span:before { transform: translateX(14px); }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut-stats { display: flex; justify-content: space-between; width: 100%; gap: 8px; } .donut-stats div { font-size: 11px; color: var(--muted); } .donut-stats b { display: block; font-size: 16px; color: var(--text); }

/* audit */
.banner { display: flex; gap: 10px; align-items: flex-start; background: #e6f1fc; border: 1px solid #c4dcf3; color: #1b4f84; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 12px; line-height: 1.6; }
.banner svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 12px 8px; box-shadow: var(--shadow); } .stat b { display: block; font-size: 26px; font-weight: 800; color: #17446f; line-height: 1.1; } .stat.bad b { color: var(--red); } .stat span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cat { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #e8eef7; color: #36506d; white-space: nowrap; } .cat.auth { background: #dde9fb; color: #0a58ad; } .cat.bad { background: #fbe4e1; color: #a52a1f; } .cat.ok { background: #dff4ec; color: #0f7a58; } .cat.dark { background: #14283f; color: #fff; }
.holdlist { display: flex; flex-wrap: wrap; gap: 8px; } .hold { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px; background: #fff; border: 1px solid #cfd9e5; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 12px; }
.hold:hover { border-color: var(--accent); background: var(--accent-soft); } .hold span { color: var(--muted); font-size: 11px; }
.actionpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.act { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; align-items: start; border: 1px solid #cfd9e5; border-radius: 8px; padding: 10px 12px; cursor: pointer; margin: 0; color: var(--text); background: #fff; }
.act input { grid-row: 1 / span 2; margin-top: 3px; } .act b { font-size: 13px; } .act span { font-size: 11px; color: var(--muted); font-weight: 400; }
.act:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
#lines select.cond { font-size: 12px; padding: 4px 6px; }
.uipop-bg { position: fixed; inset: 0; background: transparent; display: flex; align-items: center; justify-content: center; z-index: 300; padding: 16px; opacity: 0; transition: opacity .14s; }
.uipop-bg.in { opacity: 1; } .uipop-bg.out { opacity: 0; }
.uipop { background: #fff; border-radius: 14px; width: 420px; max-width: 100%; padding: 26px 24px 20px; text-align: center; border: 1px solid #cfd9e5; box-shadow: 0 18px 50px rgba(15,42,74,.28), 0 2px 8px rgba(15,42,74,.12); position: relative; overflow: hidden; transform: translateY(8px) scale(.98); transition: transform .14s; }
.uipop-bg.in .uipop { transform: none; }
.uipop-ico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; background: var(--accent); }
.uipop.ok .uipop-ico { background: var(--green); } .uipop.error .uipop-ico { background: var(--red); } .uipop.warn .uipop-ico { background: var(--orange); }
.uipop h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.uipop p { margin: 0 0 18px; color: var(--text); font-size: 13px; white-space: pre-line; text-align: left; max-height: 40vh; overflow-y: auto; line-height: 1.6; }
.uipop.ok p, .uipop.error p { text-align: center; }
.uipop-btns { display: flex; gap: 10px; justify-content: center; } .uipop-btns .btn { min-width: 96px; justify-content: center; padding: 8px 18px; }
.uipop-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #e7edf4; } .uipop-bar i { display: block; height: 100%; width: 100%; background: var(--green); animation: uibar linear forwards; transform-origin: left; }
@keyframes uibar { to { transform: scaleX(0); } }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 11px; }

/* ---------- forms & buttons ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: #fff; border: 1px solid #cfd9e5; border-radius: 6px; padding: 7px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(10,88,173,.35); border-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); }
label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: 7px 14px; cursor: pointer; font-weight: 700; font-size: 12px; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.green { background: #fff; color: #0f7a58; border-color: #14946b; } .btn.green:hover { background: #e4f5ec; }
.btn.orange { background: #fff; color: #b45309; border-color: #e08a00; } .btn.orange:hover { background: #fdf0d2; }
.btn.ghost { background: #fff; color: var(--text); border-color: #cfd9e5; font-weight: 600; } .btn.ghost:hover { background: var(--hover); }
.btn.dark { background: #fff; color: var(--navy); border-color: var(--navy); } .btn.dark:hover { background: var(--navy); color: #fff; }
.btn.outline { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn.danger { background: #c62f3d; border-color: #c62f3d; color: #fff; } .btn.small { padding: 4px 11px; font-size: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .form-grid .wide { grid-column: 1 / -1; } .form-grid input, .form-grid select, .form-grid textarea { width: 100%; }

/* ---------- tables ---------- */
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--thead); color: #1c3b5d; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; border-bottom: 1px solid #c9d8ea; }
th a { color: inherit; } tbody tr:last-child td { border-bottom: 0; } tbody tr:nth-child(even) { background: var(--zebra); } tbody tr:hover { background: #eef4fb; }
tfoot th { background: #f1f5fa; color: var(--text); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); } .tablewrap table { border: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 11px; } .nowrap { white-space: nowrap; }
.recv-text { color: var(--green); font-weight: 700; } .iss-text { color: var(--orange); font-weight: 700; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(0,0,0,.06); }
.st-CRITICAL { background: var(--st-critical-bg); color: var(--st-critical-fg); } .st-WARNING { background: var(--st-warning-bg); color: var(--st-warning-fg); }
.st-OUT { background: var(--st-out-bg); color: var(--st-out-fg); } .st-NEGATIVE { background: var(--st-negative-bg); color: var(--st-negative-fg); } .st-OK { background: var(--st-ok-bg); color: var(--st-ok-fg); }
.pill.st-OK { background: var(--ok-bg); color: var(--ok); }
tr.st-CRITICAL, tr.st-WARNING, tr.st-OUT, tr.st-NEGATIVE, tr.st-OK { background: transparent; color: inherit; }
td.st-CRITICAL, td.st-WARNING, td.st-OUT, td.st-NEGATIVE { font-weight: 700; }
body.row-mode tr.st-CRITICAL { background: var(--st-critical-bg); color: var(--st-critical-fg); } body.row-mode tr.st-WARNING { background: var(--st-warning-bg); color: var(--st-warning-fg); }
body.row-mode tr.st-OUT { background: var(--st-out-bg); color: var(--st-out-fg); } body.row-mode tr.st-NEGATIVE { background: var(--st-negative-bg); color: var(--st-negative-fg); }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted); }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-left-color: var(--ok); } .flash.error { background: var(--err-bg); color: var(--err); border-left-color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 12px; } .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; } .chip:hover { text-decoration: none; background: var(--hover); } .chip.on:hover { background: var(--accent); }
.pager { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.badge { font-size: 10px; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 4px; white-space: nowrap; } .badge.void { background: var(--err-bg); color: var(--err); }
.login-box { max-width: 380px; margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: 0 10px 40px rgba(15,42,74,.12); } .login-box h1 { text-align: center; } .login-box input { width: 100%; margin-bottom: 12px; } .login-box .btn { width: 100%; justify-content: center; padding: 10px; }

/* entry grid & pickers */
.picker { position: relative; } .picker input { width: 100%; }
.picker.right .dropdown { left: auto; right: 0; width: 380px; max-width: 90vw; }
.dropdown { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 3px; background: #fff; border: 1px solid #cfd9e5; border-radius: 8px; box-shadow: 0 10px 26px rgba(15,42,74,.18); max-height: 320px; overflow-y: auto; min-width: 300px; }
.dropdown div { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; } .dropdown div.act, .dropdown div:hover { background: var(--hover); }
.dropdown .add { color: var(--accent); font-weight: 700; border-top: 1px solid var(--line); }
#lines input.qty { width: 100px; text-align: right; } #lines input.bad { border-color: var(--err); background: var(--err-bg); } .line-note { font-size: 11px; color: var(--err); }
.modal-bg { position: fixed; inset: 0; background: rgba(15,42,74,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; } .modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: 460px; max-width: 100%; max-height: 92vh; overflow-y: auto; }
.footer-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.typechips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .typechips .chip { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.bars .row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 12px; } .bars .lab { width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .trackb { flex: 1; background: #e7edf4; border-radius: 99px; height: 7px; } .bars .bar { height: 7px; background: var(--accent); border-radius: 99px; } .bars .val { min-width: 56px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
canvas { max-width: 100%; } .swatch { width: 38px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; }

@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 50; left: -250px; transition: left .2s; height: 100%; } .sidebar.open { left: 0; box-shadow: 6px 0 30px rgba(0,0,0,.25); }
  .menu-btn { display: block; } .search { display: none; } .content { padding: 12px; } .topbar { padding: 8px 12px; } .topbar .who { display: none; }
  .cols2, .cols-2-1 { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, .no-print, .flash { display: none !important; } .content { padding: 0; max-width: none; } body, .main { background: #fff; color: #000; } .card, .tablewrap, .kpi { box-shadow: none; }
}

/* ---------- sidebar: minimize + foldable sections ---------- */
.sidebar { transition: width .18s ease; }
.brand .coll { margin-left: auto; flex: none; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(15,42,74,.14); background: rgba(255,255,255,.7); border-radius: 7px; cursor: pointer; display: grid; place-items: center; color: #46607a; }
.brand .coll:hover { background: #fff; color: var(--navy); }
.brand .coll svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.sidebar nav .gl { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; cursor: pointer; font: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #7d8fa3; font-weight: 700; padding: 12px 10px 3px; text-align: left; }
.sidebar nav .gl:hover { color: var(--navy); }
.sidebar nav .gl .chev { margin-left: auto; width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.grp.shut .chev { transform: rotate(-90deg); } .grp.shut .gi { display: none; }
.sbtip { position: fixed; z-index: 400; transform: translateY(-50%); background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; box-shadow: 0 4px 14px rgba(15,42,74,.3); }
.sbtip.show { opacity: 1; }
@media (min-width: 901px) {
  html.sb-min .sidebar { width: 66px; padding: 14px 8px; }
  html.sb-min .brand { flex-direction: column; gap: 8px; padding: 0 0 12px; align-items: center; }
  html.sb-min .brand .bt, html.sb-min .sidebar nav .lbl, html.sb-min .sidebar nav .gl span, html.sb-min .sidebar nav .gl .chev { display: none; }
  html.sb-min .brand .coll { margin-left: 0; } html.sb-min .brand .coll svg { transform: rotate(180deg); }
  html.sb-min .sidebar nav a { justify-content: center; padding: 11px 0; position: relative; }
  html.sb-min .sidebar nav .gl { height: 1px; padding: 0; margin: 8px 12px; background: rgba(15,42,74,.12); pointer-events: none; }
  html.sb-min .grp.shut .gi { display: block; }
  html.sb-min .sidebar nav .navbadge { position: absolute; top: 5px; right: 9px; width: 9px; height: 9px; padding: 0; font-size: 0; border-radius: 50%; margin: 0; }
}
@media (max-width: 900px) { .brand .coll { display: none; } }

/* ---------- sidebar colour themes (pick one with the palette button at the bottom of the menu) ---------- */
:root { --sb-bg: linear-gradient(180deg,#fffaf0 0%,#f1f6fb 45%,#e3f1fb 100%); --sb-text: #2b3f55; --sb-icon: #5c7189; --sb-muted: #7d8fa3; --sb-hover: rgba(255,255,255,.65); --sb-active-bg: #fff1c4; --sb-active-bd: #f0c860; --sb-active-text: #0f2a4a; --sb-line: rgba(15,42,74,.08); --sb-brand: #0f2a4a; --sb-brand-sub: #66788c; --sb-btn-bg: rgba(255,255,255,.7); --sb-btn-bd: rgba(15,42,74,.14); --sb-btn-text: #46607a; }
html[data-sb="white"] { --sb-bg: #ffffff; --sb-text: #334155; --sb-icon: #64748b; --sb-muted: #94a3b8; --sb-hover: #f1f5f9; --sb-active-bg: #e3effb; --sb-active-bd: #b5d4f4; --sb-active-text: #0a58ad; --sb-line: rgba(15,42,74,.1); --sb-brand: #0f2a4a; --sb-brand-sub: #66788c; --sb-btn-bg: #f1f5f9; --sb-btn-bd: rgba(15,42,74,.14); --sb-btn-text: #46607a; }
html[data-sb="sand"] { --sb-bg: #f6efe3; --sb-text: #4a3b26; --sb-icon: #7a6a4f; --sb-muted: #8f7f64; --sb-hover: rgba(255,255,255,.55); --sb-active-bg: #e7d3a8; --sb-active-bd: #d2b37a; --sb-active-text: #2e2210; --sb-line: rgba(74,59,38,.14); --sb-brand: #2e2210; --sb-brand-sub: #7a6a4f; --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(74,59,38,.2); --sb-btn-text: #5a4a30; }
html[data-sb="navy"] { --sb-bg: #0f2a4a; --sb-text: #cfdcec; --sb-icon: #9db6d3; --sb-muted: #7f97b3; --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #1d5a9c; --sb-active-bd: #3b82c9; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: #9db6d3; --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #cfdcec; }
html[data-sb="charcoal"] { --sb-bg: #1f2430; --sb-text: #d5d9e2; --sb-icon: #98a2b8; --sb-muted: #7d869b; --sb-hover: rgba(255,255,255,.07); --sb-active-bg: #3b4256; --sb-active-bd: #5a6482; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.12); --sb-brand: #ffffff; --sb-brand-sub: #98a2b8; --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.2); --sb-btn-text: #d5d9e2; }
html[data-sb="teal"] { --sb-bg: #0f3d3a; --sb-text: #cfe8e4; --sb-icon: #8fc7bf; --sb-muted: #78aaa3; --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #14776f; --sb-active-bd: #2fa79d; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: #8fc7bf; --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #cfe8e4; }
html[data-sb="indigo"] { --sb-bg: #1e1b4b; --sb-text: #d9d7f5; --sb-icon: #a8a4e6; --sb-muted: #8b87cf; --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #4338ca; --sb-active-bd: #6d63e8; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: #a8a4e6; --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #d9d7f5; }
.sidebar { background: var(--sb-bg); border-right-color: var(--sb-line); overflow-x: hidden; }
.brand { border-bottom-color: var(--sb-line); }
.brand .bt { flex: 1; min-width: 0; } .brand .bt b, .brand .bt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand b { color: var(--sb-brand); } .brand small { color: var(--sb-brand-sub); }
.sidebar nav a { color: var(--sb-text); } .sidebar nav a svg { stroke: var(--sb-icon); }
.sidebar nav a:hover { background: var(--sb-hover); }
.sidebar nav a.on { background: var(--sb-active-bg); border-color: var(--sb-active-bd); color: var(--sb-active-text); } .sidebar nav a.on svg { stroke: var(--sb-active-text); }
.sidebar nav .gl { color: var(--sb-muted); } .sidebar nav .gl:hover { color: var(--sb-text); }
.brand .coll { background: var(--sb-btn-bg); border-color: var(--sb-btn-bd); color: var(--sb-btn-text); } .brand .coll:hover { filter: brightness(1.1); color: var(--sb-text); }
@media (min-width: 901px) { html.sb-min .sidebar nav .gl { background: var(--sb-line); } }
.sbtheme { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--sb-line); }
.sbtheme .tb { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; color: var(--sb-muted); padding: 8px 10px; border-radius: 8px; }
.sbtheme .tb:hover { background: var(--sb-hover); color: var(--sb-text); }
.sbtheme .tb svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sbtheme .pal { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 4px; }
.sbtheme .pal[hidden] { display: none; }
.sbtheme .pal button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(128,128,128,.45); cursor: pointer; padding: 0; }
.sbtheme .pal button.cur { border-color: var(--sb-active-bd); box-shadow: 0 0 0 2px var(--sb-active-bd); }
@media (min-width: 901px) {
  html.sb-min .sbtheme .tb { justify-content: center; padding: 8px 0; } html.sb-min .sbtheme .tb span { display: none; }
  html.sb-min .sbtheme .pal { flex-direction: column; align-items: center; padding: 6px 0; }
}

/* ---------- more sidebar colours ---------- */
html[data-sb="mint"] { --sb-bg: #e9f6ef; --sb-text: #1d4a3a; --sb-icon: rgba(29,74,58,.72); --sb-muted: rgba(29,74,58,.58); --sb-hover: rgba(255,255,255,.6); --sb-active-bg: #c6ead8; --sb-active-bd: #8fd0b2; --sb-active-text: #1d4a3a; --sb-line: rgba(29,74,58,.14); --sb-brand: #1d4a3a; --sb-brand-sub: rgba(29,74,58,.68); --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(29,74,58,.2); --sb-btn-text: rgba(29,74,58,.85); }
html[data-sb="sky"] { --sb-bg: #e8f2fc; --sb-text: #1b3d5e; --sb-icon: rgba(27,61,94,.72); --sb-muted: rgba(27,61,94,.58); --sb-hover: rgba(255,255,255,.6); --sb-active-bg: #c3dcf6; --sb-active-bd: #8bb9ea; --sb-active-text: #1b3d5e; --sb-line: rgba(27,61,94,.14); --sb-brand: #1b3d5e; --sb-brand-sub: rgba(27,61,94,.68); --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(27,61,94,.2); --sb-btn-text: rgba(27,61,94,.85); }
html[data-sb="lavender"] { --sb-bg: #f1eefb; --sb-text: #3b2f6b; --sb-icon: rgba(59,47,107,.72); --sb-muted: rgba(59,47,107,.58); --sb-hover: rgba(255,255,255,.6); --sb-active-bg: #dcd3f6; --sb-active-bd: #b3a3ea; --sb-active-text: #3b2f6b; --sb-line: rgba(59,47,107,.14); --sb-brand: #3b2f6b; --sb-brand-sub: rgba(59,47,107,.68); --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(59,47,107,.2); --sb-btn-text: rgba(59,47,107,.85); }
html[data-sb="rose"] { --sb-bg: #fdeef1; --sb-text: #6b2a3a; --sb-icon: rgba(107,42,58,.72); --sb-muted: rgba(107,42,58,.58); --sb-hover: rgba(255,255,255,.6); --sb-active-bg: #f8cdd6; --sb-active-bd: #eb9bad; --sb-active-text: #6b2a3a; --sb-line: rgba(107,42,58,.14); --sb-brand: #6b2a3a; --sb-brand-sub: rgba(107,42,58,.68); --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(107,42,58,.2); --sb-btn-text: rgba(107,42,58,.85); }
html[data-sb="peach"] { --sb-bg: #fff0e6; --sb-text: #6b3a1b; --sb-icon: rgba(107,58,27,.72); --sb-muted: rgba(107,58,27,.58); --sb-hover: rgba(255,255,255,.6); --sb-active-bg: #fbd3b3; --sb-active-bd: #eeaa7a; --sb-active-text: #6b3a1b; --sb-line: rgba(107,58,27,.14); --sb-brand: #6b3a1b; --sb-brand-sub: rgba(107,58,27,.68); --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(107,58,27,.2); --sb-btn-text: rgba(107,58,27,.85); }
html[data-sb="lemon"] { --sb-bg: #fcf8dc; --sb-text: #5c5217; --sb-icon: rgba(92,82,23,.72); --sb-muted: rgba(92,82,23,.58); --sb-hover: rgba(255,255,255,.6); --sb-active-bg: #f3e79a; --sb-active-bd: #dcc95a; --sb-active-text: #5c5217; --sb-line: rgba(92,82,23,.14); --sb-brand: #5c5217; --sb-brand-sub: rgba(92,82,23,.68); --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(92,82,23,.2); --sb-btn-text: rgba(92,82,23,.85); }
html[data-sb="coolgray"] { --sb-bg: #eef0f4; --sb-text: #2f3a4d; --sb-icon: rgba(47,58,77,.72); --sb-muted: rgba(47,58,77,.58); --sb-hover: rgba(255,255,255,.6); --sb-active-bg: #d5dbe6; --sb-active-bd: #aeb8ca; --sb-active-text: #2f3a4d; --sb-line: rgba(47,58,77,.14); --sb-brand: #2f3a4d; --sb-brand-sub: rgba(47,58,77,.68); --sb-btn-bg: rgba(255,255,255,.6); --sb-btn-bd: rgba(47,58,77,.2); --sb-btn-text: rgba(47,58,77,.85); }
html[data-sb="royal"] { --sb-bg: #14307a; --sb-text: #d6e1fb; --sb-icon: rgba(214,225,251,.78); --sb-muted: rgba(214,225,251,.62); --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #2d5ad1; --sb-active-bd: #6f95ee; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: rgba(214,225,251,.78); --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #d6e1fb; }
html[data-sb="steel"] { --sb-bg: #26405c; --sb-text: #d3e1f0; --sb-icon: rgba(211,225,240,.78); --sb-muted: rgba(211,225,240,.62); --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #3f6a94; --sb-active-bd: #7ea6cc; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: rgba(211,225,240,.78); --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #d3e1f0; }
html[data-sb="olive"] { --sb-bg: #2c3a1f; --sb-text: #dbe6cd; --sb-icon: rgba(219,230,205,.78); --sb-muted: rgba(219,230,205,.62); --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #56742f; --sb-active-bd: #8fb35c; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: rgba(219,230,205,.78); --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #dbe6cd; }
html[data-sb="plum"] { --sb-bg: #3a1d4d; --sb-text: #ead9f3; --sb-icon: rgba(234,217,243,.78); --sb-muted: rgba(234,217,243,.62); --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #7a3da0; --sb-active-bd: #b074d6; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: rgba(234,217,243,.78); --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #ead9f3; }
html[data-sb="burgundy"] { --sb-bg: #4a1530; --sb-text: #f3d6e2; --sb-icon: rgba(243,214,226,.78); --sb-muted: rgba(243,214,226,.62); --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #8e2a57; --sb-active-bd: #c86391; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: rgba(243,214,226,.78); --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #f3d6e2; }
html[data-sb="espresso"] { --sb-bg: #2e211c; --sb-text: #eadccf; --sb-icon: rgba(234,220,207,.78); --sb-muted: rgba(234,220,207,.62); --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #6a4a3b; --sb-active-bd: #a07a65; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: rgba(234,220,207,.78); --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #eadccf; }
html[data-sb="black"] { --sb-bg: #0b0d12; --sb-text: #d0d4de; --sb-icon: rgba(208,212,222,.78); --sb-muted: rgba(208,212,222,.62); --sb-hover: rgba(255,255,255,.08); --sb-active-bg: #2a3040; --sb-active-bd: #4c5670; --sb-active-text: #ffffff; --sb-line: rgba(255,255,255,.14); --sb-brand: #ffffff; --sb-brand-sub: rgba(208,212,222,.78); --sb-btn-bg: rgba(255,255,255,.1); --sb-btn-bd: rgba(255,255,255,.22); --sb-btn-text: #d0d4de; }
.sbtheme .pal .pl { flex-basis: 100%; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--sb-muted); margin: 4px 0 -2px; }
@media (min-width: 901px) { html.sb-min .sbtheme .pal .pl { display: none; } }

#navbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 500; opacity: 0; transition: width .25s ease, opacity .2s; pointer-events: none; }
/* ============================ Task Tracker ============================ */
.tt-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tt-bar .sp { flex: 1; }
.tt-date { font-weight: 800; font-size: 16px; color: var(--navy); }
.tt-banner { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; background: #fff8e1; border: 1px solid #f0d98a; color: #6b5200; }
.tt-banner.red { background: var(--err-bg); border-color: #f1b6b0; color: var(--err); } .tt-banner.blue { background: #e8f2fc; border-color: #b5d4f4; color: #0a4a8a; }
.tt-prog { height: 8px; background: #e6edf5; border-radius: 99px; overflow: hidden; min-width: 120px; } .tt-prog > i { display: block; height: 100%; background: var(--green); }
.tt-quick { display: flex; gap: 8px; margin-bottom: 14px; } .tt-quick input[type=text] { flex: 1; padding: 10px 12px; font-size: 14px; }
.tt-hint { font-size: 11px; color: var(--muted); margin: -8px 0 14px; }
.tt-sec { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.tt-sec .n { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 0 8px; font-size: 11px; }
.tt-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tt-card.md { border-left-color: var(--red); } .tt-card.done { opacity: .62; } .tt-card.over { background: #fff7f6; }
.tt-card .tl { flex: 1 1 260px; min-width: 0; } .tt-card .tl a.t { font-weight: 700; color: var(--navy); } .tt-card .tl .meta { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tt-act { display: flex; flex-wrap: wrap; gap: 4px; }
.tt-act button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 700; cursor: pointer; color: var(--text); }
.tt-act button:hover { background: var(--hover); } .tt-act button.on { color: #fff; border-color: transparent; }
.tt-pill { border-radius: 99px !important; padding: 1px 10px !important; }
.tt-chip { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #eef3f9; color: #46607a; }
.tt-chip.red { background: var(--err-bg); color: var(--err); } .tt-chip.amber { background: #fff3d1; color: #8a5a00; } .tt-chip.green { background: var(--ok-bg); color: var(--ok); } .tt-chip.blue { background: var(--accent-soft); color: var(--accent); }
.tt-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tt-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.tt-col { background: #eef3f9; border-radius: 10px; padding: 10px; min-height: 120px; } .tt-col h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; }
.tt-col .tt-card { display: block; border-left-width: 4px; } .tt-col .tt-card .tl { flex: none; }
.tt-cal { border-collapse: separate; border-spacing: 0; font-size: 11px; } .tt-cal th, .tt-cal td { padding: 3px 4px; text-align: center; border: 1px solid #edf1f6; min-width: 26px; }
.tt-cal th.nm, .tt-cal td.nm { text-align: left; position: sticky; left: 0; background: var(--card); min-width: 190px; max-width: 260px; z-index: 1; white-space: normal; font-weight: 600; }
.tt-cal td.off { background: #eceff4; color: #98a3b3; } .tt-cal td.hol { background: #fdeccb; color: #8a5a00; } .tt-cal td.today, .tt-cal th.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.tt-cal td.c-DONE { background: #c6efce; color: #006100; } .tt-cal td.c-PROGRESS { background: #ffeb9c; color: #9c5700; } .tt-cal td.c-PENDING, .tt-cal td.c-MISSED { background: #ffc7ce; color: #9c0006; } .tt-cal td.c-WAITING { background: #e4dfec; color: #5b2c6f; } .tt-cal td.c-CANCELLED { background: #e3e7ee; color: #666; }
.tt-cal td.guess { opacity: .55; } .tt-cal td.p100 { background: #c6efce; } .tt-cal td.p50 { background: #ffeb9c; } .tt-cal td.p0 { background: #ffc7ce; }
.tt-tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; } .tt-tl .ev { position: relative; padding-bottom: 12px; } .tt-tl .ev::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.tt-wa { white-space: pre-wrap; background: #e7f7e4; border: 1px solid #b6e0ae; border-radius: 10px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.tt-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; } .tt-bars div { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; } .tt-bars div span { position: absolute; top: -15px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.tt-bars-l { display: flex; gap: 4px; font-size: 9px; color: var(--muted); } .tt-bars-l span { flex: 1; text-align: center; }
.tt-modal { position: fixed; inset: 0; background: rgba(15,42,74,.35); display: flex; align-items: center; justify-content: center; z-index: 9999; } .tt-modal .box { background: #fff; border-radius: 12px; padding: 20px; width: min(440px, 92vw); box-shadow: 0 20px 60px rgba(15,42,74,.3); }
.tt-modal textarea { width: 100%; min-height: 70px; margin: 8px 0 12px; }
.tt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .tt-tabs a { padding: 5px 12px; border-radius: 99px; background: #eef3f9; color: #46607a; font-weight: 700; font-size: 12px; } .tt-tabs a.on { background: var(--accent); color: #fff; text-decoration: none; }
.tt-checks label { display: inline-flex; gap: 5px; align-items: center; margin: 0 12px 4px 0; font-weight: 500; cursor: pointer; } .tt-checks input { width: auto; margin: 0; }
.tt-monthcal { table-layout: fixed; } .tt-monthcal td { height: 64px; vertical-align: top; font-size: 11px; border: 1px solid var(--line); background: #fff; } .tt-monthcal td.dim { background: #f6f8fb; color: #aab; } .tt-monthcal td b { display: block; font-size: 12px; }
@media (max-width: 720px) { .tt-card { padding: 10px; } .tt-quick { flex-direction: column; } }

.tt-act button.bdone { background: #14946b; color: #fff; border-color: #14946b; } .tt-act button.bdone:hover { background: #0f7a58; }
.tt-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; } .tt-strip a { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; padding: 8px 12px; color: var(--text); } .tt-strip a:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(15,42,74,.1); } .tt-strip b { display: block; font-size: 22px; color: var(--navy); } .tt-strip span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
