/* DeskWork Flow — slate & bronze. Newsreader (display), Schibsted Grotesk (UI), DM Mono (numbers, stamps). */
:root {
  --ink: #17242b; --ink-2: #1f3038; --slate: #30485f; --slate-2: #3e5a75; --bronze: #a8805a; --bronze-2: #c19a72;
  --bronze-soft: #f1e6d9; --paper: #eef0ee; --card: #ffffff; --line: #d9ddd9; --line-2: #e8ebe8;
  --text: #1c262d; --muted: #66727c; --faint: #97a1a9;
  --ok: #3f7d5a; --ok-soft: #e3efe7; --warn: #b8862b; --warn-soft: #f6ecd6; --bad: #a94a3c; --bad-soft: #f4e2de;
  --info-soft: #e2e8ee;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif; --serif: 'Newsreader', Georgia, serif; --mono: 'DM Mono', ui-monospace, monospace;
  --r: 6px; --side: 224px; --shadow: 0 1px 2px rgba(23,36,43,.06), 0 4px 16px rgba(23,36,43,.05);
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.45; min-height: 100vh; }
a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--bronze); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; color: var(--ink); }
h1 { font-size: 2rem; line-height: 1.1; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; }
.mono, .num, td.num, th.num, .stamp { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num, td.num, th.num { text-align: right; white-space: nowrap; }
small, .small { font-size: .82rem; color: var(--muted); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .neg { color: var(--bad); } .pos { color: var(--ok); }
.serif { font-family: var(--serif); }
.i { font-style: italic; font-family: var(--serif); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- shell */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--ink); color: #dfe4e2; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1.1rem 1.25rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { height: 24px; width: auto; max-width: 100%; }
.brand-sub { font-family: var(--serif); font-style: italic; color: var(--bronze-2); font-size: 1rem; letter-spacing: .02em; }
.nav { padding: .75rem .75rem; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: var(--r); color: #c5cdcb; font-size: .95rem; }
.nav a i { font-style: normal; width: 1.1rem; text-align: center; color: var(--faint); font-size: .95rem; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: var(--slate); color: #fff; }
.nav a.on i { color: var(--bronze-2); }
.nav a.plat { margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: .75rem; border-radius: 0; }
.side-foot { padding: .9rem 1rem 1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.side-org { color: var(--faint); margin-bottom: .6rem; line-height: 1.3; } .side-org b { color: var(--bronze-2); font-weight: 500; }
.me { display: flex; align-items: center; gap: .6rem; color: #fff; margin-bottom: .35rem; }
.me span b { display: block; font-weight: 500; } .me span small { color: var(--faint); font-size: .75rem; }
.side .link { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 0; font: inherit; font-size: .8rem; }
.side .link:hover { color: #fff; }
.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.75rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.burger { display: none; background: none; border: 0; font-size: 1.3rem; cursor: pointer; }
.search { flex: 1; max-width: 520px; }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font: inherit; background: var(--paper); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.timer { display: flex; align-items: center; gap: .55rem; padding: .25rem .35rem .25rem .7rem; border-radius: 999px; border: 1px solid transparent; }
.timer.running { border-color: var(--bronze); background: var(--bronze-soft); }
.timer .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.tclock { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 1rem; }
.tjob { font-size: .8rem; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell { position: relative; color: var(--muted); font-size: 1.1rem; }
.bell b { position: absolute; top: -6px; right: -10px; background: var(--bronze); color: #fff; font-size: .65rem; border-radius: 999px; padding: 0 .35rem; font-weight: 500; }
.content { padding: 1.75rem 1.75rem 4rem; max-width: 1360px; width: 100%; }
.content.bare { max-width: none; padding: 0; margin: 0; }
.flashes { padding: .75rem 1.75rem 0; }
.flash { padding: .6rem .9rem; border-radius: var(--r); background: var(--info-soft); border-left: 3px solid var(--slate); margin-bottom: .5rem; font-size: .92rem; }
.flash.ok { background: var(--ok-soft); border-color: var(--ok); } .flash.error { background: var(--bad-soft); border-color: var(--bad); }

/* ---------- page furniture */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin: .25rem 0 0; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); margin-bottom: .3rem; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; } .crumb a { color: var(--muted); } .crumb a:hover { color: var(--bronze); }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card h2, .card h3 { margin-bottom: .75rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card-head h2, .card-head h3 { margin: 0; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.tabs { display: flex; gap: .15rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .55rem .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: .93rem; }
.tabs a.on { color: var(--ink); border-color: var(--bronze); }
.tabs a b { font-family: var(--mono); font-weight: 400; font-size: .75rem; margin-left: .3rem; color: var(--faint); }
.filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filters select, .filters input { padding: .4rem .6rem; width: auto; }
.pills { display: flex; gap: .25rem; flex-wrap: wrap; }
.pills a { padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; color: var(--muted); border: 1px solid transparent; }
.pills a.on { background: var(--card); border-color: var(--line); color: var(--ink); }

/* ---------- stats */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.stat .lbl { font-size: .8rem; color: var(--muted); }
.stat .val { font-family: var(--mono); font-size: 1.6rem; color: var(--ink); line-height: 1.15; margin: .15rem 0; }
.stat .val.serif { font-family: var(--serif); font-size: 1.8rem; }
.stat .sub { font-size: .78rem; color: var(--faint); }
.stat.warn .val { color: var(--bad); }
.stat.accent { border-left: 3px solid var(--bronze); }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; padding: .55rem .75rem; border-bottom: 1px solid var(--line); background: #fafbfa; white-space: nowrap; }
td { padding: .6rem .75rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfaf7; }
tfoot td { font-weight: 500; border-top: 1px solid var(--line); background: #fafbfa; }
td a.strong, .strong { color: var(--ink); font-weight: 500; }
.t-wrap { overflow-x: auto; }
tr.warn td { background: var(--warn-soft); }
tr.dim td { color: var(--faint); }
.rowlink { cursor: pointer; }

/* ---------- badges / avatars */
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 500; letter-spacing: .01em; background: var(--info-soft); color: var(--slate); white-space: nowrap; text-transform: capitalize; }
.badge.job-in_progress, .badge.st-in_progress, .badge.st-sent, .badge.lead-proposal, .badge.task-doing { background: var(--bronze-soft); color: #7d5b38; }
.badge.job-completed, .badge.st-completed, .badge.st-paid, .badge.st-accepted, .badge.lead-won, .badge.task-done { background: var(--ok-soft); color: var(--ok); }
.badge.job-on_hold, .badge.st-on_hold, .badge.st-expired, .badge.lead-contacted { background: var(--warn-soft); color: #7a5a17; }
.badge.job-cancelled, .badge.st-cancelled, .badge.st-void, .badge.st-declined, .badge.lead-lost, .badge.st-overdue { background: var(--bad-soft); color: var(--bad); }
.badge.st-draft, .badge.task-todo, .badge.lead-new { background: var(--paper); color: var(--muted); }
.badge.prio-urgent { background: var(--bad); color: #fff; } .badge.prio-high { background: var(--bad-soft); color: var(--bad); } .badge.prio-low { background: var(--paper); color: var(--faint); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--slate)); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .02em; flex: none; }
.avatar.sm { width: 22px; height: 22px; font-size: .6rem; } .avatar.lg { width: 44px; height: 44px; font-size: 1rem; }
.avatars { display: inline-flex; } .avatars .avatar { margin-left: -6px; border: 2px solid var(--card); } .avatars .avatar:first-child { margin-left: 0; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: .35rem; }

/* ---------- buttons / forms */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: var(--r); border: 1px solid var(--slate); background: var(--slate); color: #fff; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--slate-2); border-color: var(--slate-2); color: #fff; }
.btn.bronze { background: var(--bronze); border-color: var(--bronze); } .btn.bronze:hover { background: #966f4a; border-color: #966f4a; }
.btn.ghost { background: transparent; color: var(--slate); border-color: var(--line); } .btn.ghost:hover { background: var(--card); color: var(--ink); border-color: var(--slate); }
.btn.danger { background: transparent; color: var(--bad); border-color: transparent; } .btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: .32rem .65rem; font-size: .8rem; } .btn.tiny { padding: .15rem .45rem; font-size: .72rem; }
.btn.block { width: 100%; justify-content: center; }
button.link { background: none; border: 0; color: var(--slate); cursor: pointer; font: inherit; padding: 0; }
button.link:hover { color: var(--bronze); }
form.inline { display: inline; }
input, select, textarea { font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .65rem; background: var(--card); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--bronze); outline: 0; box-shadow: 0 0 0 3px rgba(168,128,90,.15); }
textarea { resize: vertical; min-height: 2.5rem; }
label.f { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
label.f em { color: var(--bronze); font-style: normal; }
label.f small { font-size: .75rem; color: var(--faint); }
label.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem 1.25rem; }
.form-grid .span { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: .75rem; padding: 0; }
.quick { display: grid; grid-template-columns: 2fr 1.5fr 1fr 2fr auto; gap: .5rem; align-items: end; }
.quick label.f { font-size: .75rem; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 30%); padding: 1rem 0 0; margin-top: 1rem; display: flex; gap: .5rem; justify-content: flex-end; }

/* ---------- gauge (signature: the hour-block ledger) */
.gauge { --fill: var(--bronze); }
.gauge-label { font-size: .88rem; color: var(--ink); margin-bottom: .3rem; display: flex; justify-content: space-between; }
.gauge-bar { height: 10px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10%); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; position: relative; }
.gauge-bar span { display: block; height: 100%; background: var(--fill); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.gauge.low { --fill: var(--warn); } .gauge.over { --fill: var(--bad); }
.gauge-stamps { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: .3rem; }
.gauge-stamps b { color: var(--ink); font-weight: 500; }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; } .bar span { display: block; height: 100%; background: var(--slate); }
.bar.over span { background: var(--bad); } .bar.bronze span { background: var(--bronze); }

/* ---------- lists & misc */
.list { display: flex; flex-direction: column; }
.list > * { padding: .6rem 0; border-bottom: 1px solid var(--line-2); display: flex; gap: .75rem; align-items: center; }
.list > *:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { color: var(--ink); font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list small { display: block; }
.kv { display: flex; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.kv dt { color: var(--muted); width: 140px; flex: none; } .kv dd { margin: 0; flex: 1; min-width: 0; color: var(--ink); }
dl { margin: 0; }
.empty, .empty-state p { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1rem; }
.empty-state { text-align: center; padding: 2rem 1rem; }
.note-form { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: 1rem; }
.note-form textarea { flex: 1; }
.note { padding: .7rem 0; border-bottom: 1px solid var(--line-2); } .note:last-child { border-bottom: 0; }
.note-meta { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; } .note-meta b { color: var(--ink); font-weight: 500; }
.note p { margin: 0; white-space: normal; }
.feed { display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.feed div { display: flex; gap: .6rem; align-items: baseline; } .feed .when { font-family: var(--mono); font-size: .72rem; color: var(--faint); width: 64px; flex: none; }
.feed b { font-weight: 500; color: var(--ink); }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: .5rem; }
.trend div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; position: relative; }
.trend .b { background: var(--line); border-radius: 2px 2px 0 0; position: relative; }
.trend .b i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bronze); border-radius: 2px 2px 0 0; }
.trend small { font-family: var(--mono); font-size: .62rem; color: var(--faint); text-align: center; margin-top: .3rem; white-space: nowrap; }
.today-line { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); font-style: italic; }

/* ---------- boards (leads/jobs) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.col { background: #e6e9e6; border-radius: var(--r); padding: .6rem; min-height: 200px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: .2rem .35rem .6rem; font-size: .85rem; font-weight: 500; color: var(--ink); }
.col-head .mono { color: var(--muted); font-size: .72rem; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .8rem; margin-bottom: .55rem; box-shadow: var(--shadow); cursor: grab; font-size: .9rem; }
.kcard.dragging { opacity: .5; }
.kcard .title { color: var(--ink); font-weight: 500; display: block; margin-bottom: .2rem; }
.kcard .meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.col.over { outline: 2px dashed var(--bronze); }

/* ---------- timesheet */
.ts { table-layout: fixed; }
.ts th.day { text-align: center; } .ts th.day small { display: block; font-family: var(--mono); font-size: .68rem; text-transform: none; }
.ts th.day.today, .ts td.today { background: var(--bronze-soft); }
.ts td.cell { padding: .3rem; text-align: center; }
.ts td.cell input { text-align: center; font-family: var(--mono); padding: .35rem .2rem; border-color: transparent; background: transparent; }
.ts td.cell input:hover { border-color: var(--line); background: var(--card); }
.ts td.cell input:focus { background: var(--card); }
.ts td.cell input.has { color: var(--ink); font-weight: 500; }
.ts td.tot, .ts th.tot { text-align: center; font-family: var(--mono); font-weight: 500; background: #fafbfa; }
.ts .jobcell { overflow: hidden; }
.ts .jobcell b { display: block; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts .jobcell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-nav { display: flex; align-items: center; gap: .5rem; }
.wk-nav h2 { min-width: 200px; text-align: center; }
.entries .e { display: grid; grid-template-columns: 70px 1fr auto auto; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
.entries .e:last-child { border-bottom: 0; }
.entries .e .dur { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.src { font-family: var(--mono); font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- schedule */
.sched td { vertical-align: top; }
.sched .cap { font-family: var(--mono); font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; }
.sched .cap b { color: var(--ink); font-weight: 500; }
.sched .items { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.sched .items div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- print docs (quote/invoice) */
.doc { background: var(--card); max-width: 820px; margin: 0 auto; padding: 3rem 3.25rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.doc-head img { height: 34px; }
.doc-title { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); text-align: right; line-height: 1; }
.doc-title small { display: block; font-family: var(--mono); font-size: .85rem; color: var(--bronze); margin-top: .4rem; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: .9rem; margin-bottom: 2rem; }
.doc-parties .eyebrow { margin-bottom: .4rem; }
.doc table th { background: transparent; border-bottom: 2px solid var(--ink); color: var(--ink); }
.doc .totals { margin-left: auto; width: 300px; margin-top: 1rem; }
.doc .totals div { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.doc .totals div.grand { border-bottom: 0; border-top: 2px solid var(--ink); font-family: var(--serif); font-size: 1.3rem; color: var(--ink); padding-top: .6rem; }
.doc .terms { margin-top: 2.5rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.doc-actions { max-width: 820px; margin: 0 auto 1rem; display: flex; gap: .5rem; justify-content: flex-end; }
@media print { .side, .top, .flashes, .doc-actions, .no-print { display: none !important; } .main { margin: 0; } .content { padding: 0; } .doc { border: 0; box-shadow: none; max-width: none; padding: 0; } body { background: #fff; } }

/* ---------- modal */
.modal { position: fixed; inset: 0; background: rgba(23,36,43,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: 8px; padding: 1.5rem; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: 90vh; overflow: auto; }
.modal-card h3 { margin-bottom: 1rem; }

/* ---------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-art { background: var(--ink); color: #dfe4e2; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art img { width: 220px; height: auto; }
.login-art h1 { color: #fff; font-size: 3rem; font-weight: 400; line-height: 1.05; max-width: 14ch; }
.login-art h1 em { color: var(--bronze-2); font-style: italic; }
.login-art p { color: #a9b3b1; max-width: 42ch; font-size: 1.05rem; }
.login-art .ledger { font-family: var(--mono); font-size: .78rem; color: var(--faint); display: grid; gap: .4rem; }
.login-art .ledger > div { display: grid; grid-template-columns: 60px 1fr 100px; gap: 1rem; align-items: center; }
.login-art .ledger .gauge-bar { border-color: rgba(255,255,255,.12); background: none; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-form form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 1.8rem; margin-bottom: .25rem; }
.login-form .sub { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- error */
.err { text-align: center; padding: 5rem 1rem; } .err h1 { font-size: 5rem; color: var(--line); }

/* ---------- responsive */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s; } body.nav-open .side { transform: none; }
  .main { margin-left: 0; } .burger { display: block; } .content, .top, .flashes { padding-left: 1rem; padding-right: 1rem; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; } .login-art { display: none; }
  .quick { grid-template-columns: 1fr 1fr; } .tjob { display: none; } h1 { font-size: 1.6rem; }
  .kv { flex-direction: column; gap: .1rem; } .kv dt { width: auto; }
}

/* ---------- floating timer */
.ftimer { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 300px; z-index: 40; background: var(--ink); color: #e6eae8; border-radius: 10px; box-shadow: 0 12px 40px rgba(23,36,43,.35), 0 0 0 1px rgba(255,255,255,.06); font-size: .88rem; }
.ftimer.dragging { opacity: .92; }
.ftimer.flash { box-shadow: 0 0 0 3px var(--bronze), 0 12px 40px rgba(23,36,43,.35); }
.ft-head { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; cursor: grab; user-select: none; border-bottom: 1px solid rgba(255,255,255,.08); touch-action: none; }
.ft-head:active { cursor: grabbing; }
.ft-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bronze-2); animation: pulse 1.6s infinite; flex: none; }
.ft-head .tclock { color: #fff; font-size: 1.25rem; font-weight: 500; }
.ft-tools { margin-left: auto; display: flex; gap: .15rem; }
.ft-btn { background: none; border: 0; color: var(--faint); cursor: pointer; font: inherit; font-size: 1rem; width: 26px; height: 26px; border-radius: 5px; line-height: 1; }
.ft-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.ft-body { padding: .7rem .75rem .75rem; display: flex; flex-direction: column; gap: .45rem; }
.ft-job { color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-job b { color: var(--bronze-2); font-family: var(--mono); font-weight: 500; margin-right: .3rem; }
.ft-job:hover { color: var(--bronze-2); }
.ft-client { color: var(--faint); font-size: .78rem; margin-top: -.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-note input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; padding: .4rem .6rem; font-size: .85rem; }
.ft-note input::placeholder { color: var(--faint); }
.ft-note input:focus { border-color: var(--bronze); box-shadow: none; }
.ft-actions { display: flex; gap: .35rem; align-items: center; }
.ft-actions form { display: inline; }
.ft-actions .btn.ghost { color: #dfe4e2; border-color: rgba(255,255,255,.2); } .ft-actions .btn.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.ft-actions .btn.danger { color: #e0a79c; margin-left: auto; } .ft-actions .btn.danger:hover { background: rgba(169,74,60,.25); }
.ftimer.collapsed { width: auto; }
.ftimer.collapsed .ft-body { display: none; }
.ftimer.collapsed .ft-head { border-bottom: 0; }
.timer .chip { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; color: inherit; }
@media (max-width: 860px) { .ftimer { left: .75rem !important; right: .75rem; bottom: .75rem; top: auto !important; width: auto; } }
@media print { .ftimer { display: none; } }
