:root { --bg:#f3f4f6; --card:#fff; --ink:#172033; --muted:#596377; --line:#d8dce4; --brand:#14284b; --accent:#b7791f; --ok:#176b45; --okbg:#dcf3e7; --warn:#8a5a00; --warnbg:#fff0cf; --bad:#b3261e; --badbg:#fde4e1; color-scheme: light; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.45 system-ui,"Segoe UI",sans-serif; }
header { display:flex; align-items:center; gap:12px; padding:12px 16px; background:var(--brand); color:#fff; }
.brand { color:#fff; font-weight:800; text-decoration:none; letter-spacing:.02em; }
header span { margin-left:auto; font-size:14px; }
main { max-width:1120px; margin:0 auto; padding:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:16px; margin-bottom:16px; }
.narrow { max-width:620px; margin-left:auto; margin-right:auto; }
h1 { font-size:22px; margin:0 0 6px; } h2 { font-size:17px; margin:0 0 10px; }
label { display:block; font-size:14px; font-weight:600; }
input,select,textarea { display:block; width:100%; margin-top:4px; padding:9px 10px; font:inherit; border:1px solid #858ea0; border-radius:6px; background:#fff; color:var(--ink); }
textarea { min-height:68px; }
button,.button { display:inline-block; padding:9px 14px; font:inherit; font-weight:600; border:0; border-radius:6px; background:var(--brand); color:#fff; cursor:pointer; text-decoration:none; text-align:center; }
button.ghost { background:transparent; border:1px solid #ffffff99; padding:5px 12px; font-size:14px; }
button.light,.button.light { background:#e8ebf1; color:var(--ink); }
.button.wa { background:#176b45; }
:focus-visible { outline:3px solid #e0a100; outline-offset:2px; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.full { grid-column:1/-1; }
.trap { position:absolute; left:-9999px; }
.muted { color:var(--muted); font-size:14px; margin:0 0 12px; }
.error { color:var(--bad); font-weight:600; min-height:22px; margin:8px 0 0; }
.toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:end; justify-content:space-between; margin-bottom:12px; }
.toolbar label { width:190px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px 14px; }
.stat b { display:block; font-size:24px; }
.job { border:1px solid var(--line); border-radius:8px; padding:12px; margin-bottom:12px; }
.job-head { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; font-weight:700; }
.job p { margin:4px 0; }
.assign { display:grid; grid-template-columns:1.2fr 1.2fr .7fr .7fr auto; gap:8px; align-items:end; margin-top:8px; }
.actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.tag { padding:2px 9px; border-radius:99px; font-size:13px; font-weight:700; background:#e8ebf1; white-space:nowrap; }
.tag.assigned,.tag.onway { background:var(--warnbg); color:var(--warn); } .tag.done { background:var(--okbg); color:var(--ok); } .tag.cancelled { background:var(--badbg); color:var(--bad); }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:15px; }
th,td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
th { font-size:13px; color:var(--muted); }
.num { text-align:right; font-variant-numeric:tabular-nums; }
.pay { display:flex; gap:6px; } .pay input { width:100px; margin:0; }
@media (max-width:760px) { .grid,.assign { grid-template-columns:1fr; } .stats { grid-template-columns:1fr 1fr; } .full { grid-column:auto; } }
