:root{--g:#0d418d;--g2:#1a56b5;--y:#1e6cff;--bg:#f3f5f8;--card:#fff;--mut:#6b6c70;--red:#c62828;--ok:#1a56b5;--gray:#76777a}
*{box-sizing:border-box}body{margin:0;font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:#1b1f1d}
header{position:sticky;top:0;z-index:5;background:var(--g);color:#fff;padding:calc(env(safe-area-inset-top) + 12px) 16px 12px;display:flex;justify-content:space-between;align-items:center}
#title{font-weight:700;font-size:18px;display:flex;gap:10px;align-items:center}#title button{background:none;border:0;color:#fff;font-size:22px;padding:0 4px}
#net{font-size:12px;opacity:.9}main{padding:14px 14px 100px;max-width:640px;margin:0 auto}
.card{background:var(--card);border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
h2{font-size:15px;margin:0 0 8px;color:var(--g2);text-transform:uppercase;letter-spacing:.04em}
.btn{display:block;width:100%;border:0;border-radius:12px;padding:15px;font-size:17px;font-weight:600;background:var(--g);color:#fff;margin-top:10px}
.btn.y{background:var(--y);color:#fff}.btn.o{background:#fff;color:var(--g);border:2px solid var(--g)}.btn:disabled{opacity:.45}
input,select,textarea{width:100%;font-size:17px;padding:12px;border:1px solid #ccd;border-radius:10px;background:#fff}textarea{min-height:90px}
label.f{display:block;font-weight:600;margin:14px 0 6px}label.f .req{color:var(--red)}
.appt{display:flex;gap:12px;align-items:stretch;text-decoration:none;color:inherit}.appt .t{min-width:64px;font-weight:700;color:var(--g)}
.tag{display:inline-block;font-size:12px;font-weight:700;padding:2px 8px;border-radius:99px;background:#e8eef8;color:var(--g2);margin-right:4px}
.tag.done{background:#e8eef8;color:var(--g)}.tag.warn{background:#fff3cd;color:#8a6100}
.muted{color:var(--mut);font-size:14px}.row{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #eef}.row:last-child{border:0}
.row b{font-weight:600;color:var(--mut);font-size:14px;min-width:110px}.row span{text-align:right}
.datebar{display:flex;gap:8px;align-items:center;margin-bottom:12px}.datebar button{flex:0 0 44px;height:44px;border-radius:10px;border:1px solid #ccd;background:#fff;font-size:20px}
.steps{display:flex;gap:6px;margin-bottom:12px}.steps div{flex:1;text-align:center;font-size:12px;font-weight:700;padding:8px 2px;border-radius:10px;background:#e2e6e4;color:#556}
.steps .on{background:var(--y);color:#fff}.steps .ok{background:var(--g2);color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #bcc;border-radius:99px;padding:8px 12px;background:#fff;font-size:15px}.chip.on{background:var(--g);color:#fff;border-color:var(--g)}
.ph{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef}.ph:last-child{border:0}.ph .n{flex:1}.ph .c{font-weight:700;min-width:34px;text-align:center;border-radius:8px;padding:4px}
.ph .c.z{background:#fdecea;color:var(--red)}.ph .c.p{background:#e8eef8;color:var(--g)}.ph .c.opt{background:#eee;color:#777}
.ph label.cam{background:var(--g);color:#fff;border-radius:10px;padding:9px 12px;font-weight:600;font-size:14px}.ph input{display:none}
.bar{height:10px;background:#e2e6e4;border-radius:99px;overflow:hidden;margin:6px 0}.bar i{display:block;height:100%;background:var(--g2)}
.err{background:#fdecea;color:var(--red);padding:10px;border-radius:10px;margin:10px 0}.toast{position:fixed;left:14px;right:14px;bottom:calc(env(safe-area-inset-bottom) + 16px);background:#1b1f1d;color:#fff;padding:12px 14px;border-radius:12px;z-index:9}
.sticky{position:fixed;left:0;right:0;bottom:0;background:#fff;padding:10px 14px calc(env(safe-area-inset-bottom) + 10px);box-shadow:0 -2px 8px rgba(0,0,0,.08)}.sticky .btn{margin:0;max-width:612px;margin:0 auto}
a.lnk{color:var(--g2);font-weight:600}
.tabs{display:flex;gap:6px;margin-bottom:12px;background:#e2e6e4;border-radius:12px;padding:4px}.tabs a{flex:1;text-align:center;padding:10px;border-radius:9px;font-weight:700;color:#445;text-decoration:none}.tabs a.on{background:#fff;color:var(--g);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.ro{background:#fff8e1;color:#6b5000;font-weight:600;font-size:14px}.pl{font-size:14px;margin:8px 0 4px}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block;background:#eee}
.lb{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px}.lb img{max-width:100%;max-height:80vh;object-fit:contain}.lb .cap{color:#fff;margin-top:10px}.lb button{position:absolute;top:calc(env(safe-area-inset-top) + 12px);right:12px;background:none;border:0;color:#fff;font-size:28px}
.tabs a{padding:8px 2px;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:2px}.tabs a span{font-size:17px}
.stage{background:#fff;border-radius:14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.08);border-left:6px solid var(--g2);overflow:hidden}
.stage summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:14px;font-weight:700;font-size:17px;cursor:pointer}.stage summary::-webkit-details-marker{display:none}
.stage summary span::before{content:'▸ ';color:#99a}.stage[open] summary span::before{content:'▾ '}
.stage .cnt{min-width:34px;text-align:center;background:#e8eef8;color:var(--g2);border-radius:99px;padding:3px 10px}
.stage .hint{padding:0 14px 6px}.stage .sl{padding:0 10px}.stage .lm{margin:0 10px 12px;width:calc(100% - 20px)}
.st-upcoming{border-color:#1565c0}.st-today{border-color:var(--g2)}.st-awaiting{border-color:#ef6c00}.st-awaiting .cnt{background:#fff3e0;color:#b45300}.st-completed{border-color:var(--ok)}
.appt.mini{background:#f7f8fb;box-shadow:none;border:1px solid #e3e8f0;margin-bottom:8px;padding:10px}.appt.mini .t{min-width:56px;font-size:13px}

.ph .acts{display:flex;gap:6px;flex-shrink:0}
.ph label.cam.lib{background:#fff;color:var(--g);border:1.5px solid var(--g)}
.ph-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0 4px 44px}
.ph-thumbs .pt{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#eee}
.ph-thumbs .pt img{width:100%;height:100%;object-fit:cover;display:block}
.ph-thumbs .pt button.del{position:absolute;top:4px;right:4px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:16px;line-height:1;padding:0}
.jobnav{display:flex;gap:6px;margin:0 0 12px;background:#e2e6e4;border-radius:12px;padding:4px}
.jobnav a{flex:1;text-align:center;padding:10px 4px;border-radius:9px;font-weight:700;font-size:13px;color:#445;text-decoration:none}
.jobnav a.on{background:#fff;color:var(--g);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.save-hint{font-size:13px;color:#567;margin:0 4px 10px}

header .brand{display:flex;align-items:center;gap:10px;min-width:0}
header .brand img{height:28px;width:auto;display:block}
header #title{font-weight:700;font-size:16px;display:flex;gap:10px;align-items:center;min-width:0}
header #title .ttl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.login-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin:8px 0 18px}
.login-brand img{height:48px;width:auto}
.login-brand .sub{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gray)}

.crewbar{display:flex;align-items:center;gap:8px;margin:0 0 10px}.crewbar label{font-weight:600;color:#0D418D;font-size:14px}.crewbar select{flex:1;padding:8px 10px;border:1px solid #0D418D;border-radius:10px;background:#fff;color:#0D418D;font-size:15px}
.crew{font-size:13px;color:#0D418D;margin-top:4px}

.lead .lh{display:flex;gap:10px;align-items:center;font-size:17px}.lead .rk{background:var(--g);color:#fff;border-radius:99px;min-width:28px;text-align:center;font-weight:700;padding:2px 8px}
.lead .lg{margin-top:10px}.lead .lgh{font-size:12px;font-weight:700;color:#0D418D;margin:0 0 4px 2px;text-transform:uppercase;letter-spacing:.03em}.lead .ls{display:flex;flex-wrap:wrap;gap:6px}.lead .ls div{flex:1;min-width:70px;background:#e8eef8;color:var(--g);border-radius:10px;padding:6px;text-align:center;font-size:12px;font-weight:600}
.lead .ls i{display:block;font-style:normal;font-size:22px;font-weight:800}.lead .ls div.bad{background:#fdecea;color:var(--red)}
