:root { --navy:#0F2847; --navy2:#16365f; --gold:#F2B84B; --blue:#1f6fd1; --text:#1A1F2C; --muted:#5B6575; --border:#dfe4ec; --bg:#f4f6f9; --red:#c62828; --redbg:#fde8e8; --green:#1b7a36; --greenbg:#e3f6e8; --amber:#8a5a00; --amberbg:#fff4d6; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font-family:"Segoe UI",system-ui,-apple-system,Roboto,sans-serif; color:var(--text); background:var(--bg); font-size:15px; line-height:1.4; }
a { color:var(--blue); }
.muted { color:var(--muted); } .small { font-size:12px; } .pad { padding:16px; } .grow { flex:1; }
.err { color:var(--red); min-height:1em; margin:6px 0; }
h1 { margin:0; font-size:24px; color:var(--navy); } h2 { margin:0 0 10px; font-size:18px; color:var(--navy); } h3 { margin:0 0 6px; font-size:15px; color:var(--navy); }
.top { background:var(--navy); color:#fff; display:flex; align-items:center; gap:12px; padding:0 14px; padding-top:env(safe-area-inset-top); height:calc(54px + env(safe-area-inset-top)); position:sticky; top:0; z-index:50; border-bottom:3px solid var(--gold); }
.brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:700; letter-spacing:.03em; } .brand img { height:30px; display:block; }
.me { display:flex; align-items:center; gap:8px; font-size:13px; white-space:nowrap; } .me .who { max-width:120px; overflow:hidden; text-overflow:ellipsis; }
.role { background:var(--gold); color:#222; border-radius:10px; padding:1px 8px; font-size:11px; font-weight:700; text-transform:uppercase; }
main { max-width:1100px; margin:0 auto; padding:14px 14px 80px; }
.btn { border:1px solid var(--border); background:#fff; color:var(--text); padding:9px 14px; border-radius:8px; cursor:pointer; font:inherit; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; }
.btn:hover { background:#f0f3f8; } .btn:disabled { opacity:.45; cursor:default; }
.btn.primary { background:var(--navy); border-color:var(--navy); color:#fff; } .btn.primary:hover { background:var(--navy2); }
.btn.gold { background:var(--gold); border-color:var(--gold); color:#1d1d1d; } .btn.gold:hover { background:#e6aa38; }
.btn.danger { color:var(--red); border-color:#f2b8b8; } .btn.sm { padding:5px 10px; font-size:13px; min-height:32px; } .btn.wide { width:100%; }
.btn.big { min-height:56px; font-size:18px; border-radius:12px; }
.top .btn { background:transparent; color:#fff; border-color:#35547d; min-height:32px; padding:4px 10px; font-size:13px; }
.card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:14px; margin-bottom:14px; box-shadow:0 1px 2px rgba(15,40,71,.04); }
.card.flat { box-shadow:none; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; } .between { justify-content:space-between; }
.crumbs { font-size:13px; margin-bottom:8px; } .crumbs a { text-decoration:none; }
.pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:700; border:1px solid transparent; white-space:nowrap; }
.pill.green { background:var(--greenbg); color:var(--green); border-color:#bfe6c9; } .pill.amber { background:var(--amberbg); color:var(--amber); border-color:#f3dc9a; }
.pill.red { background:var(--redbg); color:var(--red); border-color:#f5c0c0; } .pill.blue { background:#e6f0ff; color:#1f58b8; border-color:#c3d7fb; } .pill.gray { background:#eef0f4; color:#667; } .pill.navy { background:var(--navy); color:#fff; }
.chip { display:inline-block; background:#eef2f8; color:var(--navy); border-radius:6px; padding:1px 8px; font-size:12px; font-weight:600; }
.tag { font-size:11px; color:#8a5a00; background:var(--amberbg); border-radius:4px; padding:0 5px; margin-left:4px; font-weight:600; }
label { display:block; font-size:12px; font-weight:700; color:var(--muted); margin-bottom:10px; text-transform:uppercase; letter-spacing:.03em; }
input, select, textarea { width:100%; font:inherit; font-size:16px; padding:10px 11px; border:1px solid #cfd6e2; border-radius:8px; background:#fff; color:var(--text); margin-top:4px; text-transform:none; letter-spacing:0; font-weight:400; }
textarea { min-height:84px; resize:vertical; } input[type=checkbox] { width:auto; margin:0; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--gold); border-color:var(--gold); }
/* login */
.login-body { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(rgba(15,40,71,.86),rgba(15,40,71,.9)),url(/login-bg.jpg) center/cover; padding:16px; }
.login-card { background:#fff; border-radius:16px; padding:26px 24px; width:min(400px,100%); box-shadow:0 20px 50px rgba(0,0,0,.35); border-top:5px solid var(--gold); }
.login-logo { height:54px; display:block; margin:0 auto 10px; } .login-card h1 { text-align:center; } .login-card p { text-align:center; margin:4px 0 16px; }
/* project cards */
.pcard { display:block; text-decoration:none; color:inherit; border-radius:14px; overflow:hidden; background:#fff; border:1px solid var(--border); box-shadow:0 2px 6px rgba(15,40,71,.06); }
.pcard:hover { box-shadow:0 6px 16px rgba(15,40,71,.14); }
.pcard .cover { height:140px; background:var(--navy) center/cover; position:relative; } .pcard .cover .badge { position:absolute; right:10px; top:10px; }
.pcard .body { padding:12px 14px 14px; } .pcard h3 { font-size:17px; margin-bottom:2px; }
.stats { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; } .stat b { display:block; font-size:20px; color:var(--navy); line-height:1; } .stat span { font-size:11px; color:var(--muted); text-transform:uppercase; }
/* project header */
.hero { background:linear-gradient(135deg,var(--navy),var(--navy2)); color:#fff; border-radius:14px; padding:16px; margin-bottom:14px; border-bottom:4px solid var(--gold); }
.hero h1 { color:#fff; font-size:22px; } .hero .meta { color:#cfdaec; font-size:13px; margin-top:4px; display:flex; flex-wrap:wrap; gap:4px 16px; }
.hero .counts { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; } .hero .count { background:rgba(255,255,255,.1); border-radius:10px; padding:6px 12px; min-width:76px; } .hero .count b { font-size:22px; display:block; line-height:1.1; color:var(--gold); } .hero .count span { font-size:11px; text-transform:uppercase; color:#cfdaec; }
.tbd { background:var(--amberbg); color:var(--amber); border-radius:4px; padding:0 6px; font-weight:700; }
.tabs { display:flex; gap:6px; overflow-x:auto; margin-bottom:12px; padding-bottom:2px; } .tabs a { padding:9px 14px; border-radius:999px; background:#fff; border:1px solid var(--border); color:var(--navy); text-decoration:none; font-weight:700; white-space:nowrap; font-size:14px; } .tabs a.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.actions-big { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; } @media (max-width:520px){ .actions-big .btn { font-size:16px; } }
/* days strip */
.status-banner { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.status-banner .big { font-size:18px; font-weight:800; } .status-banner .sq { width:14px; height:14px; border-radius:50%; display:inline-block; }
.strip { display:grid; grid-template-columns:repeat(14,minmax(0,1fr)); gap:4px; margin-top:10px; }
.day { border:0; border-radius:8px; padding:6px 0 5px; text-align:center; cursor:pointer; font:inherit; color:#fff; min-height:58px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; }
.day .d1 { font-size:10px; opacity:.85; text-transform:uppercase; } .day .d2 { font-size:15px; font-weight:800; line-height:1; } .day .d3 { font-size:14px; line-height:1; margin-top:2px; }
.day.submitted { background:#2e9d4f; } .day.missing { background:#d13b3b; } .day.off { background:#b9c0cb; color:#4a5464; } .day.today { background:#fff; color:var(--navy); border:2px solid var(--navy); } .day.future { background:#eef1f5; color:#98a1b0; } .day.na { background:repeating-linear-gradient(45deg,#eef1f5,#eef1f5 4px,#e3e7ee 4px,#e3e7ee 8px); color:#98a1b0; }
.day.sel { outline:3px solid var(--gold); }
.legend { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-top:8px; } .legend i { display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:4px; vertical-align:-1px; }
@media (max-width:640px) { .strip { grid-template-columns:repeat(7,minmax(0,1fr)); } }
/* media */
.mgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:8px; }
.thumb { position:relative; aspect-ratio:1/1; border-radius:8px; overflow:hidden; background:#dfe4ec; cursor:pointer; border:0; padding:0; display:block; width:100%; }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; } .thumb .play { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:28px; color:#fff; background:rgba(0,0,0,.22); }
.thumb .sel { position:absolute; left:6px; top:6px; width:24px; height:24px; border-radius:50%; background:#fff; border:2px solid var(--navy); display:flex; align-items:center; justify-content:center; font-weight:900; color:#fff; } .thumb.chosen { outline:3px solid var(--gold); } .thumb.chosen .sel { background:var(--navy); }
.thumb .dur { position:absolute; right:5px; bottom:5px; background:rgba(0,0,0,.65); color:#fff; font-size:11px; padding:1px 6px; border-radius:6px; }
.minis { display:flex; gap:6px; flex-wrap:wrap; } .minis .thumb { width:64px; height:64px; aspect-ratio:auto; }
.area-h { display:flex; align-items:center; gap:8px; margin:16px 0 8px; } .area-h h3 { margin:0; font-size:16px; } .area-h .n { color:var(--muted); font-size:13px; }
.filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; } .filters label { margin:0; } .filters input, .filters select { font-size:14px; padding:7px 9px; }
/* item cards */
.item { border-left:5px solid var(--gold); } .item.resolved { border-left-color:#2e9d4f; opacity:.92; } .item.noted { border-left-color:#8fa3bf; }
.item h3 { font-size:16px; } .item .lbl { font-size:11px; text-transform:uppercase; color:var(--muted); font-weight:700; margin-top:8px; }
.scope { border-radius:8px; padding:8px 10px; font-size:13px; margin-top:10px; background:#f5f7fb; border:1px solid var(--border); } .scope.conf { background:var(--redbg); border-color:#f5c0c0; } .scope.ok { background:var(--greenbg); border-color:#bfe6c9; } .scope.ver { background:var(--amberbg); border-color:#f3dc9a; }
.edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; } @media (max-width:560px){ .edit-grid { grid-template-columns:1fr; } }
.next { background:#fffaf0; border:1px solid #f0d9a4; border-left:5px solid var(--gold); }
.next .who { font-weight:800; color:var(--navy); margin-top:8px; } .next ul { margin:4px 0 0; padding-left:20px; }
details.fold > summary { cursor:pointer; font-weight:800; color:var(--navy); font-size:16px; padding:2px 0; list-style:none; } details.fold > summary::before { content:'▸ '; } details.fold[open] > summary::before { content:'▾ '; }
.notes-text { white-space:pre-wrap; font-size:14px; background:#f7f9fc; border:1px solid var(--border); border-radius:8px; padding:10px 12px; max-height:420px; overflow:auto; }
/* modal / lightbox */
.modal { position:fixed; inset:0; background:rgba(10,20,36,.72); z-index:100; display:flex; align-items:flex-start; justify-content:center; overflow:auto; padding:16px 10px; } .modal[hidden]{ display:none; }
.sheet { background:#fff; border-radius:14px; width:min(640px,100%); padding:16px; margin:auto; position:relative; } .sheet.wide { width:min(980px,100%); }
.x { position:absolute; right:10px; top:8px; font-size:26px; background:none; border:0; cursor:pointer; color:#555; line-height:1; padding:6px; }
.lb img, .lb video { width:100%; max-height:66vh; object-fit:contain; background:#000; border-radius:8px; display:block; }
.toast { position:fixed; left:50%; bottom:20px; transform:translateX(-50%); background:var(--navy); color:#fff; padding:10px 18px; border-radius:10px; z-index:200; font-weight:600; box-shadow:0 6px 20px rgba(0,0,0,.3); max-width:92vw; } .toast[hidden]{ display:none; } .toast.bad { background:var(--red); }
/* upload */
.drop { border:2px dashed #b8c3d6; border-radius:14px; padding:18px; text-align:center; background:#fafcff; }
.up-buttons { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.uprow { display:flex; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #eef1f5; } .uprow img { width:52px; height:52px; object-fit:cover; border-radius:8px; background:#dfe4ec; flex:none; } .uprow .nm { flex:1; min-width:0; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bar { height:8px; background:#e6ebf3; border-radius:6px; overflow:hidden; margin-top:4px; } .bar > i { display:block; height:100%; background:var(--gold); width:0; transition:width .2s; } .bar.done > i { background:#2e9d4f; } .bar.fail > i { background:var(--red); }
/* report form */
.steps { display:flex; gap:4px; margin-bottom:12px; } .steps span { flex:1; text-align:center; font-size:11px; font-weight:700; padding:6px 2px; border-radius:6px; background:#e6ebf3; color:#66738a; } .steps span.on { background:var(--navy); color:#fff; }
.subrow { display:grid; grid-template-columns:1fr 84px 40px; gap:8px; align-items:center; margin-bottom:8px; } .subrow input { margin:0; }
canvas.sig { width:100%; height:190px; background:#fff; border:2px dashed #9fb0c9; border-radius:10px; touch-action:none; display:block; }
.sigimg { max-width:320px; width:100%; background:#fff; border:1px solid var(--border); border-radius:8px; }
.lock { background:var(--greenbg); border:1px solid #bfe6c9; color:var(--green); border-radius:8px; padding:8px 12px; font-weight:700; font-size:13px; }
.ver-list { font-size:13px; } .ver-list a { display:block; padding:6px 0; border-bottom:1px solid #eef1f5; text-decoration:none; }
table.tbl { width:100%; border-collapse:collapse; font-size:14px; } .tbl th { text-align:left; font-size:11px; text-transform:uppercase; color:var(--muted); padding:6px 8px; border-bottom:2px solid var(--border); } .tbl td { padding:9px 8px; border-bottom:1px solid #eef1f5; vertical-align:top; } .tbl tr.click { cursor:pointer; } .tbl tr.click:hover td { background:#f5f8fc; }
@media (max-width:560px) { .hide-sm { display:none; } .hero h1 { font-size:19px; } main { padding:10px 10px 80px; } }
@media print { .top, .tabs, .btn, .actions-big { display:none !important; } body { background:#fff; } }
/* ===== Superintendent experience (body.super) ===== */
.menubtn { background:transparent; color:#fff; border:1px solid #35547d; border-radius:10px; width:56px; height:44px; font-size:26px; line-height:1; cursor:pointer; }
.menu { position:fixed; inset:0; z-index:60; } .menu-bg { position:absolute; inset:0; background:rgba(10,20,36,.55); }
.menu-panel { position:absolute; right:0; top:calc(54px + env(safe-area-inset-top)); width:min(320px,100%); background:#fff; border-radius:0 0 0 16px; padding:8px 0 14px; box-shadow:0 12px 30px rgba(0,0,0,.35); border-bottom:4px solid var(--gold); }
.menu-who { padding:14px 20px; border-bottom:1px solid var(--border); } .menu-who b { display:block; font-size:19px; color:var(--navy); } .menu-who span { color:var(--muted); font-size:14px; }
.menu-item { display:flex; align-items:center; width:100%; min-height:60px; padding:0 20px; font:inherit; font-size:18px; font-weight:700; color:var(--navy); background:none; border:0; border-bottom:1px solid #eef1f5; text-decoration:none; cursor:pointer; text-align:left; }
.btn.xl { min-height:72px; font-size:20px; font-weight:800; letter-spacing:.02em; border-radius:14px; }
.btn.wide { width:100%; } .btn.navy { background:var(--navy); color:#fff; border-color:var(--navy); }
body.super .top { height:calc(56px + env(safe-area-inset-top)); } body.super .brand { font-size:20px; } body.super .brand span { font-size:22px; }
body.super .btn { min-height:56px; }
.s-proj { margin:2px 0 14px; } .s-proj h1 { font-size:26px; line-height:1.15; } .s-h { font-size:24px; margin:8px 0 6px; line-height:1.2; }
.s-actions { display:grid; gap:12px; margin-bottom:14px; } .s-actions .btn { min-height:84px; font-size:22px; }
.s-status { border-radius:12px; padding:14px 16px; margin-bottom:14px; display:flex; flex-direction:column; gap:2px; font-size:17px; } .s-status span { font-size:14px; font-weight:600; opacity:.85; }
.s-status.ok { background:var(--greenbg); color:var(--green); border:2px solid #bfe6c9; cursor:pointer; } .s-status.warn { background:var(--amberbg); color:var(--amber); border:2px solid #f3dc9a; } .s-status.off { background:#eef0f4; color:#556; border:2px solid #dfe4ec; }
.s-links { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; } .s-links .btn { font-size:16px; }
body.super .day { min-height:64px; }
.s-rep { display:flex; flex-direction:column; gap:3px; background:#fff; border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin:10px 0; text-decoration:none; color:var(--text); min-height:64px; } .s-rep b { font-size:18px; color:var(--navy); } .s-rep .pill { align-self:flex-start; }
.backbtn { margin-bottom:10px; justify-content:flex-start; }
.s-meta { color:var(--muted); font-size:15px; font-weight:600; padding:8px 0 4px; } .s-saved { font-size:13px; color:var(--green); min-height:1.2em; }
.s-sec { font-size:20px; margin:22px 0 8px; color:var(--navy); } .s-sec .opt { font-size:14px; font-weight:600; color:var(--muted); }
.s-colh { display:grid; grid-template-columns:1fr 88px 44px; gap:8px; font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; margin-bottom:4px; }
.s-sub { display:grid; grid-template-columns:1fr 88px 44px; gap:8px; margin-bottom:8px; align-items:center; } .s-sub input { margin:0; min-height:56px; font-size:18px; } .s-sub input[data-k=headcount] { text-align:center; font-weight:800; }
.s-x { min-height:56px; width:44px; border:1px solid #f2b8b8; background:#fff; color:var(--red); border-radius:10px; font-size:18px; cursor:pointer; }
.s-total { font-size:22px; font-weight:800; color:var(--navy); margin:12px 0 0; padding:10px 0; }
.s-ta { min-height:120px; font-size:18px; margin-top:0; }
.s-toggle { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; } .s-toggle .btn { min-height:68px; font-size:18px; font-weight:800; }
.s-toggle .btn[aria-pressed=true] { background:var(--navy); color:#fff; border-color:var(--navy); } .s-toggle .btn#ai[aria-pressed=true] { background:var(--red); border-color:var(--red); }
.s-err { background:var(--redbg); color:var(--red); border:2px solid #f5c0c0; border-radius:10px; padding:12px 14px; margin-top:12px; font-weight:700; } .s-err[hidden] { display:none; }
.s-form .up-buttons, .up-buttons.stack { grid-template-columns:1fr; } body.super .up-buttons .btn.big, .up-buttons.caps .btn.big { min-height:72px; font-size:19px; }
.up-buttons.caps .btn { text-transform:uppercase; letter-spacing:.02em; }
body.super canvas.sig { height:170px; } body.super .thumb { border-radius:10px; }
.s-grid { grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); } .s-day { margin:18px 0 8px; font-size:17px; }
.s-upok { font-size:22px; font-weight:800; color:var(--green); background:var(--greenbg); border:2px solid #bfe6c9; border-radius:12px; padding:16px; text-align:center; margin-bottom:12px; }
.s-done { text-align:center; padding:24px 6px; } .s-done .tick { width:110px; height:110px; line-height:110px; border-radius:50%; background:#2e9d4f; color:#fff; font-size:70px; margin:0 auto 16px; font-weight:900; }
.s-done h1 { font-size:28px; color:var(--green); margin-bottom:6px; } .s-sub1 { font-size:22px; font-weight:800; color:var(--navy); } .s-date { font-size:18px; margin:8px 0 4px; } .s-count { font-size:20px; font-weight:800; margin:6px 0 26px; }
.s-projs { display:grid; gap:12px; }
@media (max-width:560px) { body.super main { padding:12px 12px 80px; } }
