:root { --navy: #1d2b4f; --ink: #16181d; --muted: #6b7280; --line: #e5e7eb; --bg: #f6f7f9; --ok: #1e7d32; --warn: #b45309; --bad: #b91c1c; --blue: #2563eb; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
.bar { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; padding: 10px 14px 0; }
.brand b { font-size: 18px; margin-right: 8px; } .brand span { opacity: .75; }
#tabs { display: flex; gap: 4px; margin-top: 8px; overflow-x: auto; }
.tab { background: none; border: 0; color: #cfd6e6; padding: 10px 14px; font-size: 15px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tab.on { color: #fff; border-bottom-color: #fff; font-weight: 600; }
.tab i { font-style: normal; background: #fff3; border-radius: 10px; padding: 0 7px; margin-left: 4px; font-size: 13px; }
.tab i:empty { display: none; }
.banner { background: #fff7e6; color: #7c4a03; border-bottom: 1px solid #f3d19c; padding: 8px 14px; font-size: 14px; }
main { max-width: 980px; margin: 0 auto; padding: 12px; }
.pad { padding: 16px; } .muted { color: var(--muted); }
h2 { font-size: 18px; margin: 18px 4px 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #eef2ff; color: #3730a3; }
.chip.gmail { background: #fee2e2; color: #991b1b; } .chip.otter { background: #e0f2fe; color: #075985; } .chip.claude { background: #fde8d7; color: #9a3412; } .chip.manual { background: #eee; color: #333; }
.chip.flag { background: #fef3c7; color: #92400e; }
.entry-text { white-space: pre-wrap; margin: 8px 0; font-size: 15px; cursor: text; }
textarea { width: 100%; min-height: 140px; font: inherit; padding: 8px; border: 1px solid #c7cbd3; border-radius: 8px; }
button, .btn { font: inherit; border: 1px solid #c7cbd3; background: #fff; border-radius: 9px; padding: 9px 14px; cursor: pointer;
  transition: transform .06s ease, background .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
button:active, .btn:active { transform: scale(.96); background: #eef0f4; }
button.primary { background: var(--navy); color: #fff; border-color: var(--navy); } button.primary:active { background: #2c3f70; }
button.good { background: var(--ok); color: #fff; border-color: var(--ok); }
button.ghost { border-color: transparent; background: transparent; color: var(--blue); }
button[disabled] { opacity: .5; pointer-events: none; }
.hours { display: inline-flex; align-items: center; border: 1px solid #c7cbd3; border-radius: 9px; overflow: hidden; }
.hours button { border: 0; border-radius: 0; padding: 8px 12px; font-size: 18px; line-height: 1; }
.hours span { min-width: 54px; text-align: center; font-weight: 600; }
.total { font-weight: 600; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
table.list td, table.list th { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.list td.num { text-align: right; white-space: nowrap; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
iframe.invoice { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.sheet { position: fixed; inset: 0; background: #0006; display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet-card { background: #fff; width: min(640px, 100%); max-height: 90vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 16px; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 16px; } }
.sheet-card label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.sheet-card select, .sheet-card input { width: 100%; font: inherit; padding: 8px; border: 1px solid #c7cbd3; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 30; max-width: 90vw; }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }
body:not(.admin) .admin-only { display: none; }
form.login { max-width: 360px; margin: 60px auto; background: #fff; padding: 20px; border-radius: 14px; border: 1px solid var(--line); }
form.login input { width: 100%; font: inherit; padding: 10px; margin: 6px 0 12px; border: 1px solid #c7cbd3; border-radius: 8px; }
.sheet-card h4 { margin: 16px 0 4px; }
.card.warn { background: #fff7e6; border-color: #f3d19c; }
select { font: inherit; padding: 8px; border: 1px solid #c7cbd3; border-radius: 8px; background: #fff; }
