:root { --bg:#f6f6f4; --card:#fff; --line:#d9d6cf; --ink:#1f1f1f; --muted:#6b6b6b; --brand:#8a6d3b; --good:#2d7a3d; --warn:#b35a00; --bad:#b34a4a; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 -apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; background:var(--bg); color:var(--ink); }
[x-cloak] { display:none !important; }
header.appbar { background:#fff; border-bottom:1px solid var(--line); padding:12px 24px; display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; z-index:10; gap:14px; flex-wrap:wrap; }
header.appbar h1 { margin:0; font-size:16px; font-weight:600; }
header.appbar .meta { color:var(--muted); font-size:12px; }
header.appbar .actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
header.appbar .crumbs { font-size:13px; color:var(--muted); display:flex; gap:6px; align-items:center; }
header.appbar .crumbs a { color:inherit; text-decoration:none; }
header.appbar .crumbs a:hover { color:var(--ink); text-decoration:underline; }
.btn { background:var(--ink); color:#fff; border:0; padding:8px 14px; border-radius:4px; cursor:pointer; font-size:13px; text-decoration:none; display:inline-block; font-family:inherit; }
.btn.secondary { background:#fff; color:var(--ink); border:1px solid var(--line); }
.btn.danger { background:var(--bad); }
.btn.brand { background:var(--brand); }
.btn.good { background:var(--good); }
.btn:hover { opacity:.9; }
.btn:disabled { opacity:.4; cursor:not-allowed; }
select, input, textarea { border:1px solid var(--line); background:#fff; padding:6px 8px; border-radius:4px; font:inherit; }
select:focus, input:focus, textarea:focus { outline:2px solid var(--brand); outline-offset:-1px; }
main { max-width:1500px; margin:0 auto; padding:20px; }
.pill { display:inline-block; padding:1px 8px; border-radius:10px; background:#efece5; font-size:11px; color:var(--muted); }
.pill.on { background:#e2f1e6; color:var(--good); }
.pill.off { background:#f6e2e2; color:var(--bad); }
.pill.warn { background:#fff1d6; color:var(--warn); }
.card { background:var(--card); border:1px solid var(--line); border-radius:6px; padding:14px 16px; margin-bottom:12px; }
.card h2 { margin:0 0 10px 0; font-size:15px; }
.modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.4); display:flex; align-items:center; justify-content:center; z-index:50; }
.modal { background:#fff; border-radius:8px; width:560px; max-width:92vw; max-height:90vh; overflow:auto; padding:20px 24px; }
.modal h2 { margin:0 0 12px 0; font-size:16px; }
.form-row { margin-bottom:12px; display:flex; flex-direction:column; gap:4px; }
.form-row label { font-size:11px; text-transform:uppercase; color:var(--muted); letter-spacing:.3px; }
.modal-foot { display:flex; gap:8px; justify-content:flex-end; margin-top:14px; }
.small, .muted { font-size:11px; color:var(--muted); }
.creds-box { font-family:'SF Mono', Consolas, monospace; background:#f3eedd; border:1px dashed var(--brand); padding:12px 16px; border-radius:6px; }
.creds-box .row { display:flex; justify-content:space-between; gap:12px; padding:4px 0; align-items:center; }
.creds-box .label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.3px; }
.creds-box code { font-size:14px; font-weight:600; }
.proj-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:12px; }
.proj-grid a { color:inherit; text-decoration:none; }
.proj-grid a .card:hover { border-color:var(--brand); box-shadow:0 4px 12px rgba(0,0,0,.04); }
.empty { text-align:center; padding:40px; color:var(--muted); }
table.simple { width:100%; border-collapse:collapse; }
table.simple th, table.simple td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; font-size:13px; }
table.simple th { font-size:11px; text-transform:uppercase; color:var(--muted); letter-spacing:.3px; }
.review-status { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.review-status.approved { background:#e2f1e6; color:var(--good); }
.review-status.rejected { background:#f6e2e2; color:var(--bad); }
.review-status.change_requested { background:#fff1d6; color:var(--warn); }
.review-status.pending { background:#efece5; color:var(--muted); }
.activity { font-size:12px; }
.activity .a-row { padding:6px 0; border-bottom:1px solid var(--line); }
.activity .a-when { color:var(--muted); font-size:11px; }
.attach-list { font-size:12px; }
.attach-list a { color:var(--brand); text-decoration:none; }
.attach-list a:hover { text-decoration:underline; }
