/* LogicDesk black-and-red; day/night per employee (spec §2/§3). */
:root { --bg:#111; --panel:#1b1b1b; --fg:#f2f2f2; --accent:#d92323; --line:#333; --muted:#aaa; --link:#ff7070; }
html[data-mode="day"] { --bg:#fafafa; --panel:#fff; --fg:#161616; --line:#ddd; --muted:#555; --link:#b91c1c; }
html[data-mode="night"] { --bg:#0b0b0b; --panel:#161616; --fg:#f2f2f2; --line:#2c2c2c; --muted:#aaa; --link:#ff7070; }
/* 'auto' falls back to the DARK (Night) palette: the black-and-red look is
   the default face of LogicDesk (Eddie, 2026-11-09). An employee who picks
   Day still gets Day; Auto no longer follows the OS into a light theme. */
@media (prefers-color-scheme: light) {
  html[data-mode="auto"] { --bg:#0b0b0b; --panel:#161616; --fg:#f2f2f2; --line:#2c2c2c; --muted:#aaa; --link:#ff7070; }
}
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui, Arial, sans-serif; background:var(--bg); color:var(--fg); }
a { color:var(--link); }
a:hover { text-decoration:underline; }
h1 { font-size:1.9rem; margin:.4rem 0 1rem; }
h2 { font-size:1.35rem; margin:1.4rem 0 .6rem; }
h3 { font-size:1.1rem; margin:1rem 0 .4rem; }
.topbar { background:#000; color:#fff; border-bottom:3px solid var(--accent); padding:.6rem 1rem; display:flex; flex-wrap:wrap; align-items:center; gap:.4rem 1.5rem; }
html[data-mode="day"] .topbar, html[data-mode="auto"] .topbar { background:#000; }
.brand { font-weight:700; font-size:1.25rem; display:flex; align-items:center; gap:.6rem; }
.brand-logo { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.brand-sub { color:#bbb; font-weight:400; font-size:.9rem; }
.topnav { display:flex; flex-wrap:wrap; gap:.25rem 1rem; align-items:center; }
.topnav a, .nav-group { color:#fff; text-decoration:none; }
.topnav a { padding:.3rem .6rem; border-radius:4px; }
.topnav a:hover { color:#ffb3b3; text-decoration:none; }
.topnav a.active { background:var(--accent); color:#fff; }
.nav-group { position:relative; cursor:pointer; padding:.3rem .6rem; }
.nav-group.active { box-shadow:inset 0 -3px 0 var(--accent); }
.nav-group .submenu { display:none; position:absolute; background:#000; border:1px solid var(--accent); padding:.5rem; z-index:10; }
.nav-group:hover .submenu, .nav-group:focus-within .submenu { display:block; }
.submenu a { display:block; padding:.25rem .5rem; }
.submenu a.active { background:var(--accent); color:#fff; }
.displaybar { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin-left:auto; font-size:.9rem; }
.displaybar a { color:#ffb3b3; }
main { padding:1rem; max-width:1400px; margin:0 auto; }
/* Dashboard stat text is large/readable (Eddie, 52 — spec §3). */
.stats { display:flex; flex-wrap:wrap; gap:1rem; }
.stat { background:var(--panel); border:1px solid var(--line); border-left:5px solid var(--accent); border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,.35); padding:.8rem 1rem; min-width:11rem; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.stat b { display:block; font-size:2.5rem; line-height:1.15; color:var(--fg); letter-spacing:0; }
.stat small { display:block; margin-top:.25rem; font-size:.85rem; text-transform:none; letter-spacing:0; color:var(--muted); }
/* Dashboard top row (Eddie, 2026-11-09): Work Clock panel on the LEFT, the
   stat bubbles in a compact block to its RIGHT, side by side in one row;
   the banner is smaller than the standard .stat treatment other pages use.
   Stacks vertically on narrow/mobile widths. The row STRETCHES so both
   columns are equal height and their bottom edges line up (Eddie: the
   Work Clock pane's bottom line comes down parallel with the Paid (YTD)
   line): the clock panel fills its column, and the compact stats spread
   their wrapped lines over the same height so the last tile's bottom
   edge meets the panel's. */
.dash-top { display:flex; flex-wrap:wrap; gap:1rem; align-items:stretch; margin:1rem 0; }
.dash-clock { flex:0 1 24rem; min-width:17rem; display:flex; }
.dash-clock .panel { margin:0; flex:1; }
.stats-compact { flex:1 1 30rem; gap:.6rem; align-content:stretch; }
.stats-compact .stat { padding:.5rem .7rem; min-width:9.5rem; }
.stats-compact .stat b { font-size:1.7rem; line-height:1.1; }
.stats-compact .stat small { font-size:.8rem; margin-top:.15rem; }
@media (max-width:760px) { .dash-top { flex-direction:column; } .dash-clock, .stats-compact { flex:none; width:100%; } }
table.list { width:100%; border-collapse:collapse; background:var(--panel); }
table.list th, table.list td { border-bottom:1px solid var(--line); padding:.5rem .6rem; text-align:left; }
table.list th { border-bottom:2px solid var(--accent); }
table.list tr.year-group td { font-weight:700; font-size:1.1rem; background:var(--panel); border-bottom:2px solid var(--accent); padding-top:.9rem; }
/* Clients list section banners (owner, 2026-11-09): ACTIVE CLIENTS at the
   top of the list, INACTIVE CLIENTS as a divider where the inactive group
   starts (extra top border + spacing so the break reads while scrolling).
   Theme variables only, so Day and Night modes both work. */
table.list tr.section-banner td { font-weight:700; letter-spacing:.08em; background:var(--panel); border-bottom:2px solid var(--accent); padding-top:.7rem; }
table.list tr.section-banner.section-divider td { border-top:4px solid var(--accent); padding-top:1.1rem; }
/* Inactive clients (Eddie, 2026-11-19): grayed-out rows in the Clients list.
   The information stays fully readable, but the row reads as dormant next to
   the active clients. A neutral gray wash + muted text/links, so it works in
   both the day and night palettes. */
table.list tr.inactive-row td { background:rgba(128,128,128,.16); color:var(--muted); }
table.list tr.inactive-row td a { color:var(--muted); }
table.list tr.inactive-row .owed { color:var(--muted); }
table.list tr[data-href] { cursor:pointer; }
table.list tr[data-href]:hover td { background:rgba(217,35,35,.08); }
.list-scroll { max-height:60vh; overflow-y:auto; }
.list-scroll table.list thead th { position:sticky; top:0; background:var(--panel); z-index:1; }
.btn, button { background:var(--accent); color:#fff; border:0; padding:.5rem 1rem; border-radius:4px; cursor:pointer; text-decoration:none; display:inline-block; }
.btn:hover { text-decoration:none; }
.btn-secondary { background:transparent; color:var(--link); border:1px solid var(--accent); padding:.5rem 1rem; border-radius:4px; cursor:pointer; text-decoration:none; display:inline-block; }
.btn-secondary:hover { background:rgba(217,35,35,.12); text-decoration:none; }
.error { color:var(--accent); font-weight:600; }
.owed { color:var(--accent); font-weight:700; }
.ticket-window { max-width:1024px; margin:0 auto; background:var(--panel); border:1px solid var(--line); padding:1rem; }
.signin { max-width:28rem; margin:4rem auto; text-align:center; background:var(--panel); padding:2rem; border-top:4px solid var(--accent); }
.signin-logo { width:72px; height:72px; }
.fine { color:var(--muted); font-size:.9rem; }
input, select, textarea { padding:.45rem; font-size:1rem; background:var(--bg); color:var(--fg); border:1px solid var(--line); border-radius:4px; }
form.row { display:flex; flex-wrap:wrap; gap:.6rem; align-items:end; margin:1rem 0; }
.spec-fields { border:1px solid var(--line); margin:.4rem 0; }
.secret-mask, .secret-value { font-family:ui-monospace, monospace; }
/* Invoice document: always a white paper, in Day and Night modes (spec §5.6). */
.paper { background:#fff; color:#000; max-width:850px; margin:1rem auto; padding:2rem; box-shadow:0 1px 6px rgba(0,0,0,.4); }
.paper table { width:100%; border-collapse:collapse; margin:1rem 0; }
.paper th, .paper td { border-bottom:1px solid #ccc; padding:.4rem .5rem; text-align:left; }
.paper .banked-block { border:1px solid #999; padding:.6rem .8rem; }
.paper button { background:#d92323; }
.paper input, .paper select, .paper textarea { background:#fff; color:#000; border-color:#ccc; }
.paper a { color:#b91c1c; }
tr.inactive-rate { opacity:.55; }
/* Team list: deactivated employees stay listed, greyed (owner, 2026-11-09). */
tr.inactive-employee { opacity:.55; }
/* Reports (spec §4.10): grouped report cards; reminders reuse .list tables. */
.report-card { border-top: 2px solid var(--accent); margin: 1.2rem 0; padding-top: .4rem; }
section.reminders { margin: 1rem 0; }
/* Panes and panels (visual polish, 2026-11-09): Invoices sections sit in a red
   ring like the Muse version; dashboard panels share the report-card look. */
.pane { border:2px solid var(--accent); border-radius:8px; padding:1rem 1.2rem; margin:1.2rem 0; background:var(--panel); }
.pane > h2:first-child { margin-top:0; }
.pane > h1:first-child { margin-top:0; }
.panel > h1:first-child { margin-top:0; }
.panel { background:var(--panel); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:6px; padding:1rem 1.2rem; margin:1rem 0; }
.panel > h2:first-child { margin-top:0; }
/* Scheduling + notifications (2026-11-15): calendar sync badges, notices. */
.badge-ok, .badge-warn, .badge-err { display:inline-block; padding:.1rem .5rem; border-radius:999px; font-size:.85rem; border:1px solid var(--line); }
.badge-ok { color:#2e9e4f; border-color:#2e9e4f; }
.badge-warn { color:#d9a023; border-color:#d9a023; }
.badge-err { color:var(--accent); border-color:var(--accent); }
.notice { border:1px solid var(--accent); border-radius:6px; padding:.6rem .9rem; background:var(--panel); }
