:root{--ink:#0f172a;--ink2:#1e293b;--muted:#64748b;--line:#e2e8f0;--soft:#f1f5f9;--bg:#f7f9fc;--card:#fff;--blue:#2563eb;--blue2:#1d4ed8;--green:#059669;--amber:#d97706;--red:#dc2626;--shadow:0 12px 35px rgba(15,23,42,.07);--radius:18px}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;background:var(--bg)}a{color:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:var(--ink);color:white;padding:24px 18px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:11px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#3b82f6,#38bdf8);display:grid;place-items:center;font-weight:900;letter-spacing:-1px;box-shadow:0 8px 22px rgba(37,99,235,.35)}.brand strong,.brand span{display:block}.brand strong{font-size:15px}.brand span{font-size:11px;color:#94a3b8;margin-top:2px}.nav{display:flex;flex-direction:column;gap:5px;margin-top:34px}.nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:10px;text-decoration:none;color:#cbd5e1;font-size:14px;font-weight:650}.nav a span{width:20px;text-align:center}.nav a:hover,.nav a.active{background:#1e293b;color:white}.nav a.nav-primary{background:#2563eb;color:white;margin:7px 0 13px}.sidebar-footer{margin-top:auto;border-top:1px solid #334155;padding-top:17px}.user-chip{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;background:#334155;display:grid;place-items:center;font-weight:800}.user-chip strong,.user-chip span{display:block}.user-chip strong{font-size:13px}.user-chip span{font-size:10px;color:#94a3b8;margin-top:2px}.logout-link{display:inline-block;color:#94a3b8;font-size:11px;margin-top:12px}.main{margin-left:260px;min-height:100vh}.topbar{height:76px;padding:0 30px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.88);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:850;color:#2563eb}.eyebrow.light{color:#93c5fd}.top-date{font-size:13px;font-weight:650;margin-top:2px}.connection-pill{display:flex;align-items:center;gap:7px;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;padding:7px 10px;border-radius:999px;font-size:11px}.connection-pill span{width:7px;height:7px;background:#22c55e;border-radius:50%}.connection-pill.offline{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.connection-pill.offline span{background:#f97316}.content{padding:30px;max-width:1500px;margin:auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-head h1{font-size:30px;letter-spacing:-.03em;margin:4px 0 3px}.page-head p,.card p{color:var(--muted);font-size:13px;margin:0}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:750;font-size:12px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-primary{background:var(--blue);color:white}.btn-primary:hover{background:var(--blue2)}.btn-success{background:var(--green);color:white}.btn-light{background:white;border:1px solid var(--line);color:var(--ink)}.btn-ghost{background:transparent;color:var(--muted)}.btn-sm{padding:7px 9px;font-size:11px}.btn-block{width:100%}.button-row{display:flex;gap:8px;flex-wrap:wrap}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:18px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.card h2{font-size:17px;margin:0 0 4px}.stats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat-card{background:white;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:var(--shadow)}.stat-card span,.stat-card small,.metric-list span,.metric-list small{display:block}.stat-card span{font-size:11px;color:var(--muted);font-weight:750}.stat-card strong{font-size:25px;display:block;margin:7px 0 4px;letter-spacing:-.04em}.stat-card small{font-size:10px;color:#94a3b8}.stat-card.accent{background:var(--ink);color:white;border-color:var(--ink)}.stat-card.accent span,.stat-card.accent small{color:#cbd5e1}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:12px;border-bottom:1px solid #edf2f7;white-space:nowrap}tbody tr:hover{background:#fafcff}.empty-cell{text-align:center;color:#94a3b8;padding:30px}.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.badge-muted{background:#f1f5f9;color:#475569}.badge-warning{background:#fff7ed;color:#c2410c}.badge-success{background:#ecfdf5;color:#047857}.badge-danger{background:#fef2f2;color:#b91c1c}.text-link,.icon-link{color:var(--blue);font-size:12px;font-weight:750;text-decoration:none}.icon-link{font-size:18px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.search-input{max-width:330px}.small{font-size:11px}.muted{color:var(--muted)}.stack{display:flex;flex-direction:column;gap:0}.section-title{display:flex;gap:11px;align-items:flex-start;margin-bottom:17px}.section-title h2{margin:0 0 3px}.step{width:30px;height:30px;border-radius:9px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:900;display:grid;place-items:center;flex:none}.form-grid{display:grid;gap:13px}.cols-4{grid-template-columns:repeat(4,1fr)}.cols-3{grid-template-columns:repeat(3,1fr)}label{font-size:10px;font-weight:800;color:#475569;display:flex;flex-direction:column;gap:6px}input,select,textarea{width:100%;border:1px solid #cbd5e1;background:white;border-radius:10px;padding:10px 11px;color:var(--ink);font:inherit;font-size:12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #dbeafe}select[multiple]{padding:6px;min-height:83px}textarea{resize:vertical}.field-help{font-size:9px;color:#94a3b8;font-weight:500}.snapshot-hint{margin-top:14px;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:10px;border:1px dashed #cbd5e1}.trip-list{display:flex;flex-direction:column;gap:12px}.trip-card{border:1px solid var(--line);background:#fbfdff;border-radius:15px;padding:16px}.trip-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.trip-card-head>div{display:flex;align-items:center;gap:10px}.trip-kicker{font-size:9px;color:#2563eb;background:#eff6ff;border-radius:999px;padding:5px 7px;font-weight:900}.trip-site-label{font-size:12px}.icon-btn{border:1px solid var(--line);background:white;width:32px;height:32px;border-radius:9px;cursor:pointer}.timeline-grid{display:grid;grid-template-columns:1fr auto 1fr 1fr auto 1fr;gap:9px;align-items:end;margin:13px 0}.timeline-metric{padding:8px 9px;border-radius:9px;background:#f1f5f9;text-align:center;min-width:68px}.timeline-metric span,.timeline-metric strong{display:block}.timeline-metric span{font-size:8px;color:#64748b}.timeline-metric strong{font-size:10px;margin-top:3px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.engine-panel{display:flex;flex-direction:column;gap:10px}.engine-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:9px;align-items:end;padding:11px;background:#fbfdff;border:1px solid var(--line);border-radius:12px}.engine-row>div:first-child strong,.engine-row>div:first-child span{display:block}.engine-row>div:first-child span{font-size:9px;color:var(--muted);margin-top:3px}.calc-box{min-width:78px;background:var(--ink);color:white;padding:9px;border-radius:10px}.calc-box span,.calc-box strong{display:block}.calc-box span{font-size:8px;color:#94a3b8}.calc-box strong{font-size:12px;margin-top:2px}.fuel-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.fuel-summary div{padding:13px;border-radius:12px;background:#f8fafc;border:1px solid var(--line)}.fuel-summary span,.fuel-summary strong{display:block}.fuel-summary span{font-size:9px;color:var(--muted)}.fuel-summary strong{font-size:18px;margin-top:4px}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:15px}.sticky-actions{position:sticky;bottom:10px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid var(--line);padding:12px 14px;border-radius:15px;box-shadow:0 16px 45px rgba(15,23,42,.16);z-index:10}.autosave-state{font-size:10px;color:#64748b;display:flex;align-items:center;gap:7px}.autosave-state .dot{width:7px;height:7px;background:#22c55e;border-radius:50%}.alert{border-radius:12px;padding:12px 14px;margin-bottom:16px;font-size:12px}.alert-danger{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.detail-hero{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:18px}.detail-hero>div{background:white;padding:15px}.detail-hero span,.detail-hero strong{display:block}.detail-hero>div>span{font-size:9px;text-transform:uppercase;color:#64748b;font-weight:800;margin-bottom:5px}.detail-hero strong{font-size:13px}.trip-summary-list{display:flex;flex-direction:column;gap:8px}.trip-summary{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:11px;border:1px solid var(--line);border-radius:12px}.trip-index{width:30px;height:30px;border-radius:9px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:11px;font-weight:900}.trip-main strong,.trip-main span{display:block}.trip-main span{font-size:10px;color:var(--muted);margin-top:3px}.trip-times{display:flex;align-items:center;gap:7px;font-size:10px}.trip-times em{font-size:8px;color:#94a3b8;font-style:normal;margin:0 4px}.metric-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.metric-list>div{display:grid;grid-template-columns:1fr auto;gap:4px;padding:10px;background:#f8fafc;border-radius:10px}.metric-list span{font-size:10px;color:var(--muted)}.metric-list strong{font-size:12px}.metric-list small{grid-column:2;font-size:9px;color:#94a3b8}.comment-box{padding:13px;border-radius:11px;background:#f8fafc!important;line-height:1.6}.approval-bar{position:sticky;bottom:10px;background:var(--ink);color:white;padding:14px 16px;border-radius:15px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 15px 40px rgba(15,23,42,.28);z-index:10}.approval-bar strong,.approval-bar span{display:block}.approval-bar span{font-size:10px;color:#94a3b8;margin-top:3px}.inline-form{display:flex;gap:8px;margin:10px 0 15px}.simple-list{max-height:370px;overflow:auto;border-top:1px solid var(--line)}.simple-list>div{padding:10px 2px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.simple-list strong{font-size:12px}.simple-list span{font-size:10px;color:var(--muted)}.toast{position:fixed;right:22px;bottom:22px;background:var(--ink);color:white;padding:11px 14px;border-radius:10px;font-size:11px;font-weight:700;opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:none}.toast.warn{background:#92400e}.toast.error{background:#991b1b}.login-page{min-height:100vh;background:#eaf0f8;display:grid;place-items:center;padding:25px}.login-wrap{max-width:960px;width:100%;min-height:560px;display:grid;grid-template-columns:1.08fr .92fr;background:white;border-radius:28px;overflow:hidden;box-shadow:0 35px 90px rgba(15,23,42,.18)}.login-panel{padding:48px}.login-intro{background:linear-gradient(145deg,#0f172a,#1e3a8a);color:white;display:flex;flex-direction:column}.brand-light span{color:#bfdbfe}.login-copy{margin:auto 0}.login-copy h1{font-size:38px;line-height:1.05;letter-spacing:-.045em;max-width:500px;margin:11px 0 14px}.login-copy p{color:#cbd5e1;font-size:14px;line-height:1.6;max-width:450px}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.15);padding-top:20px}.mini-stats b,.mini-stats span{display:block}.mini-stats b{font-size:15px}.mini-stats span{font-size:9px;color:#93c5fd;margin-top:2px}.login-form-panel{display:grid;place-items:center}.login-form{width:100%;max-width:330px}.login-form h2{font-size:28px;margin:5px 0 4px}.login-form label{margin-top:14px}.login-form .btn{margin-top:18px}.demo-note{font-size:9px;color:#94a3b8;line-height:1.5;margin-top:12px}.mobile-only{display:none}.actions-cell{display:flex;gap:4px}
@media(max-width:1150px){.stats-grid{grid-template-columns:repeat(3,1fr)}.cols-4{grid-template-columns:repeat(2,1fr)}.detail-hero{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.main{margin-left:0}.mobile-only{display:grid}.topbar{padding:0 18px}.content{padding:20px 15px}.two-col{grid-template-columns:1fr}.timeline-grid{grid-template-columns:1fr auto 1fr}.timeline-grid label:nth-of-type(3){grid-column:1}.timeline-grid .timeline-metric:nth-of-type(2){grid-column:2}.timeline-grid label:nth-of-type(4){grid-column:3}.login-wrap{grid-template-columns:1fr;max-width:520px}.login-intro{display:none}.login-panel{padding:35px}.stats-grid{grid-template-columns:repeat(2,1fr)}.detail-hero{grid-template-columns:repeat(2,1fr)}.trip-summary{grid-template-columns:auto 1fr}.trip-times{grid-column:2;flex-wrap:wrap}.engine-row{grid-template-columns:1fr 1fr}.calc-box{grid-column:2}.form-actions,.approval-bar{align-items:flex-start;flex-direction:column}.sticky-actions .button-row{width:100%}.sticky-actions .btn{flex:1}}
@media(max-width:560px){.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:25px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card strong{font-size:21px}.cols-4,.cols-3{grid-template-columns:1fr}.detail-hero{grid-template-columns:1fr 1fr}.timeline-grid{grid-template-columns:1fr 64px 1fr}.engine-row{grid-template-columns:1fr 1fr}.fuel-summary{grid-template-columns:1fr 1fr}.inline-form{flex-direction:column}.trip-card{padding:13px}}

/* v1.1 revision */
.login-simple-page{background:#eef3f9;padding:24px}.login-simple-card{width:min(100%,430px);background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 28px 70px rgba(15,23,42,.14);padding:34px}.login-simple-brand{display:flex;align-items:center;gap:12px;padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--line)}.login-simple-brand>div:last-child strong,.login-simple-brand>div:last-child span{display:block}.login-simple-brand>div:last-child strong{font-size:14px}.login-simple-brand>div:last-child span{font-size:10px;color:var(--muted);margin-top:2px}.login-form-simple{max-width:none}.login-form-simple h1{font-size:30px;margin:5px 0 4px}.demo-accounts{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.demo-accounts-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:10px}.demo-accounts-head strong,.demo-accounts-head span{display:block}.demo-accounts-head strong{font-size:11px}.demo-accounts-head span{font-size:9px;color:var(--muted)}.demo-account-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eef2f7;font-size:10px}.demo-account-row:last-child{border-bottom:0}.demo-account-row span{color:#475569;font-weight:700}.demo-account-row code{font-size:10px;background:#f8fafc;border:1px solid var(--line);border-radius:7px;padding:3px 6px;color:#0f172a}
.operation-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.operation-option{position:relative;display:block;cursor:pointer}.operation-option input{position:absolute;opacity:0;pointer-events:none}.operation-option>span{display:block;padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:#fbfdff;transition:.16s}.operation-option>span strong,.operation-option>span small{display:block}.operation-option>span strong{font-size:13px;color:var(--ink)}.operation-option>span small{font-size:9px;line-height:1.45;color:var(--muted);font-weight:500;margin-top:4px}.operation-option input:checked+span{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 3px #dbeafe}.operation-option input:focus-visible+span{outline:2px solid #2563eb;outline-offset:2px}.locked-input{background:#f1f5f9!important;color:#475569;cursor:not-allowed}.is-hidden{display:none!important}.operation-logistic .trip-primary-grid{grid-template-columns:1fr}.checklist-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checklist-item{border:1px solid var(--line);background:#fbfdff;border-radius:14px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.checklist-item-wide{grid-column:1/-1;grid-template-columns:1fr auto}.checklist-item>div:first-child strong,.checklist-item>div:first-child span{display:block}.checklist-item>div:first-child strong{font-size:12px}.checklist-item>div:first-child span{font-size:9px;color:var(--muted);font-weight:500;margin-top:4px}.yes-no-group{display:flex;gap:7px}.yes-no-group label{display:block;position:relative;cursor:pointer}.yes-no-group input{position:absolute;opacity:0;pointer-events:none}.yes-no-group span{display:block;min-width:54px;text-align:center;padding:8px 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:10px;font-weight:800;color:#475569}.yes-no-group input:checked+span{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;box-shadow:0 0 0 2px #dbeafe}.yes-no-group input:focus-visible+span{outline:2px solid #2563eb;outline-offset:2px}.conditional-field{grid-column:1/-1;margin-top:2px;padding-top:12px;border-top:1px dashed #cbd5e1}.operation-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;background:#eff6ff;color:#1d4ed8}.operation-badge.logistic{background:#f5f3ff;color:#6d28d9}.service-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.service-summary-item{padding:12px;background:#f8fafc;border:1px solid var(--line);border-radius:11px}.service-summary-item span,.service-summary-item strong{display:block}.service-summary-item span{font-size:9px;color:var(--muted);margin-bottom:4px}.service-summary-item strong{font-size:12px}.service-detail{grid-column:1/-1;white-space:normal}.detail-hero.detail-hero-six{grid-template-columns:repeat(6,1fr)}
@media(max-width:850px){.detail-hero.detail-hero-six{grid-template-columns:repeat(2,1fr)}.service-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.login-simple-card{padding:24px 20px;border-radius:19px}.operation-picker{grid-template-columns:1fr}.checklist-grid{grid-template-columns:1fr}.checklist-item,.checklist-item-wide{grid-column:auto;grid-template-columns:1fr}.yes-no-group{width:100%}.yes-no-group label{flex:1}.yes-no-group span{width:100%}.service-summary-grid{grid-template-columns:1fr}.daily-grid{grid-template-columns:1fr}}

/* v1.2 — Murex Bangka master data + multi ABK */
.crew-field{grid-column:1/-1}.field-label{display:block;font-size:10px;font-weight:800;color:var(--ink);margin-bottom:7px}.field-label b{color:#dc2626}.multi-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.multi-check-option{display:block;position:relative;cursor:pointer}.multi-check-option input{position:absolute;opacity:0;pointer-events:none}.multi-check-option span{display:flex;align-items:center;min-height:38px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fbfdff;font-size:10px;font-weight:750;color:#334155;transition:.15s}.multi-check-option span:before{content:'✓';display:grid;place-items:center;width:17px;height:17px;margin-right:8px;border:1px solid #cbd5e1;border-radius:5px;color:transparent;background:#fff;font-size:10px}.multi-check-option input:checked+span{border-color:#60a5fa;background:#eff6ff;color:#1d4ed8;box-shadow:0 0 0 2px #dbeafe}.multi-check-option input:checked+span:before{background:#2563eb;border-color:#2563eb;color:#fff}.multi-check-option input:focus-visible+span{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:850px){.multi-check-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.multi-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.3 — penilaian insentif dengan denominator dinamis */
.incentive-operation-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.incentive-operation-stats>div{padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.incentive-operation-stats span,.incentive-operation-stats strong,.incentive-operation-stats small{display:block}.incentive-operation-stats span{font-size:9px;color:var(--muted);font-weight:750;text-transform:uppercase}.incentive-operation-stats strong{font-size:20px;margin:4px 0}.incentive-operation-stats small{font-size:9px;color:#94a3b8}.incentive-table-wrap{overflow:auto}.incentive-score-table{min-width:1120px}.incentive-score-table th:nth-child(1){min-width:300px}.incentive-score-table th:nth-child(2){min-width:125px}.incentive-score-table th:nth-child(7){min-width:190px}.incentive-category-row td{background:#eaf2fb;color:#1e3a5f;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;padding:9px 12px;border-bottom:1px solid #cbddeb}.criterion-name{white-space:normal}.criterion-name strong,.criterion-name small{display:block}.criterion-name small{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.45}.frequency-pill{display:inline-flex;padding:5px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:9px;font-weight:750}.applicable-switch{display:block;position:relative;cursor:pointer}.applicable-switch input{position:absolute;opacity:0;pointer-events:none}.applicable-switch span{display:block;min-width:48px;padding:7px 8px;border:1px solid #cbd5e1;border-radius:9px;text-align:center;background:#fff;color:#64748b;font-size:10px}.applicable-switch input:checked+span{background:#ecfdf5;border-color:#6ee7b7;color:#047857}.incentive-score-table input{min-width:76px;padding:8px}.criterion-row.is-na{background:#f8fafc}.criterion-row.is-na .criterion-name,.criterion-row.is-na .frequency-pill{opacity:.62}.score-preview{font-weight:850;color:#1d4ed8}.criterion-row.is-na .score-preview{color:#94a3b8}.incentive-summary-bar{position:sticky;bottom:10px;display:grid;grid-template-columns:repeat(4,minmax(110px,1fr)) auto;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 16px 45px rgba(15,23,42,.18);z-index:10}.incentive-summary-bar>div{background:#fff;padding:12px 14px}.incentive-summary-bar span,.incentive-summary-bar strong{display:block}.incentive-summary-bar span{font-size:8px;color:var(--muted);text-transform:uppercase;font-weight:800}.incentive-summary-bar strong{font-size:17px;margin-top:3px}.incentive-summary-bar .button-row{align-items:center}.incentive-detail-hero{grid-template-columns:repeat(8,1fr)}.wrap-cell{white-space:normal;min-width:160px}.incentive-detail-table{min-width:950px}.quarter-filter{display:flex;gap:10px;align-items:end}.quarter-filter label{max-width:220px}.quarter-filter .btn{height:36px}
.incentive-score-table{min-width:1320px}.incentive-score-table th:nth-child(7){min-width:165px}.incentive-score-table th:nth-child(8){min-width:190px}.evidence-cell{white-space:normal;min-width:165px}.evidence-picker{display:block;position:relative;cursor:pointer}.evidence-picker input{position:absolute;opacity:0;width:1px;height:1px}.evidence-picker span{display:inline-flex;padding:7px 9px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1d4ed8;font-size:9px;font-weight:800}.evidence-state{display:block;margin-top:5px;color:#94a3b8;font-size:8px}.evidence-link,.evidence-list a{display:block;color:#2563eb;font-size:9px;font-weight:750;margin-top:5px;text-decoration:none}.evidence-list{white-space:normal;min-width:80px}
.completion-cell{white-space:normal;min-width:145px}.completion-checklist{display:grid;gap:5px}.completion-check{display:flex;align-items:center;gap:6px;cursor:pointer}.completion-check input{min-width:0;width:17px;height:17px;margin:0;accent-color:#16a34a}.completion-check span{font-size:9px;font-weight:750;color:#334155}.completion-empty{font-size:9px;color:#94a3b8}
.evidence-cell.is-uploading .evidence-picker{pointer-events:none;opacity:.65}.evidence-cell.is-uploading .evidence-state{color:#2563eb}.evidence-cell.is-uploading .evidence-state:before{content:'';display:inline-block;width:10px;height:10px;margin-right:5px;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;vertical-align:-2px;animation:evidence-spin .7s linear infinite}.evidence-cell.upload-complete .evidence-state{color:#15803d;font-weight:750;animation:evidence-done .45s ease}.evidence-cell.upload-complete .evidence-state:before{content:'✓';display:inline-block;margin-right:5px}.evidence-cell.upload-error .evidence-state{color:#b91c1c;font-weight:750}@keyframes evidence-spin{to{transform:rotate(360deg)}}@keyframes evidence-done{0%{transform:scale(.94);opacity:.35}100%{transform:scale(1);opacity:1}}
@media(max-width:1150px){.incentive-detail-hero{grid-template-columns:repeat(4,1fr)}.incentive-summary-bar{grid-template-columns:repeat(4,1fr)}.incentive-summary-bar .button-row{grid-column:1/-1}}
@media(max-width:650px){.incentive-operation-stats{grid-template-columns:1fr 1fr}.incentive-summary-bar{grid-template-columns:1fr 1fr}.incentive-summary-bar .button-row{grid-column:1/-1}.incentive-summary-bar .button-row .btn{flex:1}.incentive-detail-hero{grid-template-columns:1fr 1fr}.quarter-filter{align-items:stretch;flex-direction:column}.quarter-filter label{max-width:none}}

/* v1.4 i18n */
.language-switcher{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#fff}.language-switcher a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 8px;border-radius:7px;text-decoration:none;color:#64748b;font-size:10px;font-weight:850;letter-spacing:.04em}.language-switcher a.active{background:#0f172a;color:#fff}.sidebar-language{margin-bottom:12px;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}.sidebar-language a{color:#cbd5e1}.sidebar-language a.active{background:#fff;color:#0f172a}.topbar-actions{display:flex;align-items:center;gap:10px}.login-language-wrap{display:flex;justify-content:flex-end;margin-bottom:10px}.top-language{display:flex}
@media(max-width:650px){.top-language{display:none}.sidebar-language{display:inline-flex}}

/* v1.4.2 — ringkasan penyelesaian seluruh captain */
.completion-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.completion-summary-card{padding:17px 18px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.04)}.completion-summary-card span,.completion-summary-card strong,.completion-summary-card small{display:block}.completion-summary-card>span{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:850}.completion-summary-card>strong{font-size:25px;line-height:1.1;margin:7px 0 5px;color:var(--ink)}.completion-summary-card>small{font-size:9px;line-height:1.45;color:#94a3b8}.completion-summary-primary{border-color:#93c5fd;background:linear-gradient(145deg,#eff6ff,#fff)}.completion-summary-primary>strong{color:#1d4ed8}.calculation-note{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;margin-bottom:16px;padding:13px 15px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff;color:#1e3a8a}.calculation-note strong{font-size:10px;white-space:nowrap}.calculation-note span{font-size:10px;line-height:1.55}.completion-table{min-width:1250px}.completion-progress-cell{min-width:150px}.completion-progress-label{display:flex;justify-content:space-between;margin-bottom:6px}.completion-progress-label strong{font-size:11px;color:#0f172a}.completion-progress{height:7px;border-radius:999px;background:#e2e8f0;overflow:hidden}.completion-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#22c55e)}.completion-no-data{background:#f8fafc;color:#94a3b8}.completion-no-data td strong{color:#64748b}
@media(max-width:1050px){.completion-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.completion-summary-grid{grid-template-columns:1fr}.calculation-note{grid-template-columns:1fr}}

/* v1.5 — administrator-managed Captain login accounts */
.captain-account-list{display:flex;flex-direction:column;gap:10px}.captain-account-row{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(170px,1fr) minmax(220px,1.2fr) auto auto;gap:12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fbfdff}.captain-account-identity{align-self:center}.captain-account-identity strong{display:block;font-size:12px;margin-bottom:6px}.account-active-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:36px;white-space:nowrap}.account-active-toggle input[type=checkbox]{width:17px;height:17px}.account-active-toggle span{font-size:10px;font-weight:800;color:#475569}.captain-account-row .btn{height:36px}
@media(max-width:1100px){.captain-account-row{grid-template-columns:1fr 1fr}.captain-account-identity{grid-column:1/-1}.captain-account-row .btn{justify-self:start}}
@media(max-width:650px){.captain-account-row{grid-template-columns:1fr}.captain-account-identity{grid-column:auto}.captain-account-row .btn{width:100%}}

/* v1.6.2 — Cloudflare R2 media evidence */
.media-storage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.media-storage-grid>div{padding:14px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}.media-storage-grid span,.media-storage-grid strong,.media-storage-grid small{display:block}.media-storage-grid span{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:850}.media-storage-grid strong{font-size:20px;margin:5px 0 3px}.media-storage-grid small{font-size:9px;color:#94a3b8}.evidence-picker span{max-width:170px;text-align:center;line-height:1.35}.evidence-link{word-break:break-word}@media(max-width:650px){.media-storage-grid{grid-template-columns:1fr}}
.r2-test-stats{margin-bottom:18px}.r2-test-value{font-size:14px!important;overflow-wrap:anywhere}.r2-test-form-grid{align-items:end}.r2-test-action-cell{display:flex;flex-direction:column;gap:6px}.r2-upload-progress{margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.r2-upload-progress-head{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#475569;margin-bottom:8px}.r2-upload-progress-track{height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden}.r2-upload-progress-track span{display:block;height:100%;width:0;background:#2563eb;transition:width .18s ease}.r2-test-result-grid{grid-template-columns:2fr 1fr 1fr 1fr}.r2-test-result-grid strong{overflow-wrap:anywhere;word-break:break-word}.r2-test-note{margin-top:10px}.button-row{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:850px){.r2-test-result-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.r2-test-result-grid{grid-template-columns:1fr}}


/* v1.6.4 — in-app private media viewer */
body.media-viewer-open{overflow:hidden}.media-viewer[hidden]{display:none!important}.media-viewer{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px}.media-viewer-backdrop{position:absolute;inset:0;border:0;background:rgba(2,6,23,.82);backdrop-filter:blur(7px);cursor:zoom-out}.media-viewer-dialog{position:relative;z-index:1;width:min(1120px,96vw);height:min(820px,92vh);display:grid;grid-template-rows:auto 1fr auto;background:#0b1220;border:1px solid rgba(255,255,255,.16);border-radius:20px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.48)}.media-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;background:rgba(15,23,42,.96);border-bottom:1px solid rgba(255,255,255,.1);color:#fff}.media-viewer-heading span,.media-viewer-heading strong{display:block}.media-viewer-heading span{font-size:9px;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.media-viewer-heading strong{font-size:13px;margin-top:3px}.media-viewer-actions{display:flex;align-items:center;gap:8px}.media-viewer-actions .btn-light{background:#fff}.media-viewer-close{width:36px;height:36px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-size:24px;line-height:1;cursor:pointer}.media-viewer-stage{position:relative;min-height:0;display:grid;place-items:center;padding:14px;background:#020617;overflow:hidden}.media-viewer-stage img,.media-viewer-stage video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px;background:#000}.media-viewer-stage video{width:100%;height:100%}.media-viewer-loading{position:absolute;color:#cbd5e1;font-size:11px;font-weight:750}.media-viewer-unsupported{max-width:440px;display:flex;flex-direction:column;gap:7px;text-align:center;color:#e2e8f0}.media-viewer-unsupported strong{font-size:15px}.media-viewer-unsupported span{font-size:11px;line-height:1.5;color:#94a3b8}.media-viewer-nav{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;background:#0f172a;border-top:1px solid rgba(255,255,255,.1)}.media-viewer-nav[hidden]{display:none}.media-viewer-nav .btn{min-width:110px}.media-viewer-link{cursor:pointer}.evidence-list .media-viewer-link{display:inline-flex;align-items:center;gap:5px;margin:4px 4px 0 0;padding:6px 8px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8}.media-evidence-icon{width:16px;height:16px;display:inline-grid;place-items:center;border-radius:5px;background:#dbeafe;font-size:8px}.r2-inline-preview{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}.r2-inline-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.r2-inline-preview-head strong,.r2-inline-preview-head span{display:block}.r2-inline-preview-head strong{font-size:12px}.r2-inline-preview-head span{font-size:9px;color:var(--muted);margin-top:3px}.r2-inline-preview-stage{min-height:220px;max-height:520px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:#020617}.r2-inline-preview-stage img,.r2-inline-preview-stage video{display:block;max-width:100%;max-height:520px;width:auto;height:auto;object-fit:contain}.r2-inline-preview-stage video{width:100%}.r2-preview-unsupported{padding:30px;color:#cbd5e1;font-size:11px;text-align:center;line-height:1.5}@media(max-width:650px){.media-viewer{padding:0}.media-viewer-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0;border:0}.media-viewer-head{padding:10px}.media-viewer-actions .btn{padding:8px 9px;font-size:9px}.media-viewer-close{width:34px;height:34px}.media-viewer-stage{padding:6px}.media-viewer-nav{padding:8px}.media-viewer-nav .btn{flex:1;min-width:0}.r2-inline-preview-stage{min-height:180px}}

/* v1.6.5 — Mobile First application pass */
.stats-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.nav{flex:none}
.sidebar-backdrop{display:none}
.guide-field{min-width:0}
.guide-picker{border:1px solid #cbd5e1;border-radius:11px;background:#fff;overflow:hidden}
.guide-picker summary{list-style:none;cursor:pointer;min-height:40px;padding:10px 38px 10px 11px;position:relative;font-size:11px;font-weight:750;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guide-picker summary::-webkit-details-marker{display:none}
.guide-picker summary:after{content:'⌄';position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:14px;color:#64748b}
.guide-picker[open] summary:after{content:'⌃'}
.guide-picker.has-selection summary{color:#1d4ed8;background:#eff6ff}
.guide-check-grid{padding:10px;border-top:1px solid var(--line);max-height:260px;overflow:auto;background:#f8fafc;grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:850px){
  body.menu-open{overflow:hidden}
  .sidebar{width:min(320px,88vw);padding:20px 16px;padding-bottom:calc(20px + env(safe-area-inset-bottom));box-shadow:24px 0 60px rgba(2,6,23,.38)}
  .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;border:0;background:rgba(2,6,23,.5);backdrop-filter:blur(2px);z-index:29}
  .nav a{min-height:44px;padding:11px 12px}
  .sidebar-footer{padding-bottom:4px}
  .topbar{min-height:68px;height:auto;padding:10px 14px;gap:10px}
  .topbar>div:nth-child(2){min-width:0;flex:1}
  .top-date{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .content{padding:18px 14px calc(24px + env(safe-area-inset-bottom))}
}

@media(max-width:720px){
  body{overflow-x:hidden}
  .card{padding:16px;border-radius:15px;margin-bottom:14px}
  .card-head{gap:10px;flex-direction:column;align-items:stretch}
  .card-head>.btn{width:100%}
  .page-head{align-items:stretch;flex-direction:column;gap:13px;margin-bottom:17px}
  .page-head h1{font-size:25px;line-height:1.12}
  .page-head>.btn,.page-head>.button-row{width:100%}
  .page-head>.button-row .btn{flex:1;min-width:130px}
  .toolbar{align-items:stretch;flex-direction:column;gap:9px}
  .search-input{max-width:none;width:100%}

  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{font-size:16px;min-height:44px;padding:10px 12px}
  textarea{min-height:96px;line-height:1.45}
  label,.field-label{font-size:11px}
  .field-help{font-size:10px;line-height:1.45}
  .btn{min-height:44px;padding:10px 14px;font-size:13px}
  .btn-sm{min-height:40px;padding:8px 11px;font-size:12px}
  .icon-btn{width:44px;height:44px;min-width:44px;font-size:18px}
  .cols-4,.cols-3{grid-template-columns:1fr}
  .operation-picker{grid-template-columns:1fr}
  .operation-option>span{min-height:54px;padding:13px 14px}
  .multi-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .multi-check-option span{min-height:44px;font-size:11px}
  .guide-picker summary{min-height:46px;padding-top:12px;padding-bottom:12px;font-size:12px}
  .guide-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px}
  .trip-card{padding:13px}
  .trip-card-head{gap:10px;align-items:flex-start}
  .trip-card-head>div{min-width:0;align-items:flex-start;flex-direction:column;gap:5px}
  .trip-site-label{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
  .timeline-grid{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);gap:8px}
  .timeline-metric{min-width:0;padding:8px 5px}
  .timeline-metric strong{font-size:9px}
  .checklist-item,.checklist-item-wide{grid-template-columns:1fr}
  .yes-no-group{width:100%}
  .yes-no-group label{flex:1}
  .yes-no-group span{width:100%;min-height:44px;display:grid;place-items:center;font-size:12px}
  .fuel-summary{grid-template-columns:1fr 1fr}

  .sticky-actions,.approval-bar{bottom:0;border-radius:14px;padding:12px 13px calc(12px + env(safe-area-inset-bottom));margin-left:-2px;margin-right:-2px}
  .sticky-actions .button-row,.approval-bar .button-row{width:100%}
  .sticky-actions .button-row .btn,.approval-bar .button-row .btn{flex:1;min-width:130px}
  .incentive-summary-bar{bottom:0;grid-template-columns:1fr 1fr;border-radius:14px}
  .incentive-summary-bar>div{padding:11px 12px}
  .incentive-summary-bar .button-row{grid-column:1/-1;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .incentive-summary-bar .button-row .btn{min-height:44px}

  /* Every data table becomes a vertical record card on phones. */
  .table-wrap,.incentive-table-wrap{overflow:visible}
  table.mobile-card-table{display:block;width:100%;font-size:12px;min-width:0!important}
  .mobile-card-table thead{display:none}
  .mobile-card-table tbody{display:grid;gap:11px;width:100%}
  .mobile-card-table tbody tr{display:block;width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(15,23,42,.04)}
  .mobile-card-table tbody tr:hover{background:#fff}
  .mobile-card-table td{display:grid;grid-template-columns:minmax(96px,36%) minmax(0,1fr);gap:12px;align-items:start;padding:11px 12px;border-bottom:1px solid #eef2f7;white-space:normal;min-width:0;overflow-wrap:anywhere}
  .mobile-card-table td:before{content:attr(data-label);font-size:9px;text-transform:uppercase;letter-spacing:.05em;font-weight:850;color:#64748b;line-height:1.4}
  .mobile-card-table td:last-child{border-bottom:0}
  .mobile-card-table td.mobile-action-cell,.mobile-card-table td.actions-cell{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
  .mobile-card-table td.mobile-action-cell:before,.mobile-card-table td.actions-cell:before{display:none}
  .mobile-card-table td.actions-cell .btn{flex:1;min-width:96px}
  .mobile-card-table .icon-link{display:inline-grid;place-items:center;width:44px;height:40px;border:1px solid var(--line);border-radius:10px;margin-left:auto}
  .mobile-card-table .empty-cell{display:block!important;text-align:center;padding:22px 14px;color:#94a3b8}
  .mobile-card-table .empty-cell:before{display:none!important}
  .mobile-card-table .mobile-table-full-row{border:0;box-shadow:none;background:transparent}
  .mobile-card-table .mobile-table-full-row td{display:block;border:0}
  .mobile-card-table .mobile-table-full-row td:before{display:none}
  .completion-table,.incentive-detail-table{min-width:0}
  .completion-progress-cell{min-width:0}
  .wrap-cell{min-width:0}

  /* Incentive assessment gets a purpose-built card layout. */
  .incentive-score-table{min-width:0!important}
  .incentive-score-table tbody{gap:9px}
  .incentive-score-table .incentive-category-row{border:0;box-shadow:none;background:transparent;overflow:visible;margin-top:10px}
  .incentive-score-table .incentive-category-row:first-child{margin-top:0}
  .incentive-score-table .incentive-category-row td{display:block!important;border:0;border-radius:10px;background:#eaf2fb;padding:10px 12px;color:#1e3a5f}
  .incentive-score-table .incentive-category-row td:before{display:none!important}
  .incentive-score-table .criterion-row{border-radius:15px}
  .incentive-score-table .criterion-row td{min-width:0!important}
  .incentive-score-table .criterion-row .criterion-name{display:block;background:#fbfdff;padding:13px 12px}
  .incentive-score-table .criterion-row .criterion-name:before{display:none}
  .incentive-score-table .criterion-name strong{font-size:12px;line-height:1.4}
  .incentive-score-table .criterion-name small{font-size:10px;line-height:1.5;margin-top:6px}
  .incentive-score-table .completion-cell,.incentive-score-table .evidence-cell,.incentive-score-table .criterion-row td:last-child{display:block}
  .incentive-score-table .completion-cell:before,.incentive-score-table .evidence-cell:before,.incentive-score-table .criterion-row td:last-child:before{display:block;margin-bottom:8px}
  .completion-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .completion-check{min-height:40px;padding:7px 8px;border:1px solid var(--line);border-radius:9px;background:#f8fafc}
  .completion-check input{width:20px;height:20px}
  .completion-check span{font-size:10px}
  .applicable-switch span{min-height:42px;display:grid;place-items:center;font-size:11px}
  .incentive-score-table input{min-width:0;padding:10px 11px}
  .evidence-picker span{width:100%;max-width:none;min-height:44px;display:grid;place-items:center;font-size:11px}
  .evidence-state,.evidence-link,.evidence-list a{font-size:10px;line-height:1.45}
  .incentive-operation-stats{grid-template-columns:1fr 1fr}

  .detail-hero,.detail-hero.detail-hero-six,.incentive-detail-hero,.r2-test-result-grid{grid-template-columns:1fr 1fr}
  .detail-hero>div{padding:12px}
  .service-summary-grid{grid-template-columns:1fr}
  .trip-summary{grid-template-columns:auto 1fr;padding:12px}
  .trip-times{grid-column:1/-1;padding-left:42px;gap:6px}
  .simple-list>div{align-items:flex-start;flex-direction:column}
  .captain-account-row{grid-template-columns:1fr}
  .captain-account-row .btn{width:100%;min-height:44px}
  .account-active-toggle{min-height:44px}
  .account-active-toggle input[type=checkbox]{width:22px;height:22px}
  .inline-form{flex-direction:column}
  .inline-form .btn{width:100%}
  .quarter-filter{align-items:stretch;flex-direction:column}
  .quarter-filter label{max-width:none}
  .quarter-filter .btn{height:auto;width:100%}
  .r2-test-action-cell .btn{width:100%}
  .r2-inline-preview{padding:9px}
  .r2-inline-preview-stage{min-height:160px;max-height:58vh}
  .r2-inline-preview-stage img,.r2-inline-preview-stage video{max-height:58vh}
  .r2-test-result-grid strong{font-size:12px}

  .media-viewer-heading{min-width:0;flex:1}
  .media-viewer-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .media-viewer-actions{flex:none}
  .media-viewer-close{min-width:44px;width:44px;height:44px}
  .media-viewer-nav .btn{min-height:44px}
}

@media(max-width:480px){
  .topbar .eyebrow{font-size:9px}
  .connection-pill{width:36px;height:36px;padding:0;justify-content:center}
  .connection-pill b{display:none}
  .stats-grid{grid-template-columns:1fr 1fr;gap:9px}
  .stat-card{padding:14px}
  .stat-card strong{font-size:21px}
  .multi-check-grid,.guide-check-grid{grid-template-columns:1fr 1fr}
  .completion-checklist{grid-template-columns:1fr}
  .mobile-card-table td{grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:9px;padding:10px}
  .incentive-summary-bar span{font-size:7px}
  .incentive-summary-bar strong{font-size:15px}
  .media-viewer-actions .btn{display:none}
}

@media(max-width:360px){
  .content{padding-left:10px;padding-right:10px}
  .card{padding:13px}
  .stats-grid{grid-template-columns:1fr}
  .multi-check-grid,.guide-check-grid{grid-template-columns:1fr}
  .fuel-summary,.incentive-operation-stats,.detail-hero,.detail-hero.detail-hero-six,.incentive-detail-hero,.r2-test-result-grid{grid-template-columns:1fr}
  .timeline-grid{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)}
  .mobile-card-table td{display:block}
  .mobile-card-table td:before{display:block;margin-bottom:5px}
}

/* v1.6.6 — persistent R2 test upload browser */
.r2-history-section-title{align-items:center}.r2-history-section-title>div:nth-child(2){flex:1;min-width:0}.r2-history-refresh{margin-left:auto}.r2-history-summary{margin:0 0 12px;color:var(--muted);font-size:10px}.r2-history-list{display:grid;gap:10px}.r2-history-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.r2-history-main{display:flex;align-items:flex-start;gap:11px;min-width:0;flex:1}.r2-history-icon{flex:0 0 42px;height:42px;border-radius:11px;display:grid;place-items:center;font-size:8px;font-weight:900;letter-spacing:.05em;background:#eef2ff;color:#3730a3}.r2-history-icon.is-image{background:#ecfdf5;color:#047857}.r2-history-icon.is-video{background:#fff7ed;color:#c2410c}.r2-history-info{min-width:0;flex:1}.r2-history-info>strong{display:block;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.r2-history-info>code{display:block;margin-top:4px;font-size:9px;line-height:1.45;color:var(--muted);white-space:normal;overflow-wrap:anywhere;word-break:break-word}.r2-history-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:7px;color:#64748b;font-size:9px}.r2-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:0 0 auto}.r2-history-actions .btn{white-space:nowrap}
@media(max-width:760px){.r2-history-section-title{align-items:flex-start;flex-wrap:wrap}.r2-history-refresh{width:100%;margin:4px 0 0}.r2-history-item{align-items:stretch;flex-direction:column}.r2-history-actions{justify-content:stretch}.r2-history-actions .btn{flex:1;min-height:44px}.r2-history-main{align-items:flex-start}.r2-history-icon{flex-basis:40px;height:40px}.r2-history-summary{font-size:11px}}
@media(max-width:420px){.r2-history-actions{display:grid;grid-template-columns:1fr}.r2-history-actions .btn{width:100%}.r2-history-meta{display:grid;gap:3px}}

/* v1.7.0 — multi-assessor incentive permissions */
.assessor-mode-alert{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a}.assessor-mode-alert strong{font-weight:900}.criterion-assessor{color:#2563eb!important;font-weight:750}.criterion-assessor-groups{color:#475569!important;font-weight:750}.criterion-row.is-readonly{background:#fbfdff}.criterion-row.is-readonly .completion-check,.criterion-row.is-readonly .applicable-switch{cursor:default}.criterion-row.is-readonly .completion-check input{opacity:.75}.assessor-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.assessor-progress-card{padding:13px;border:1px solid var(--line);border-radius:13px;background:#fbfdff}.assessor-progress-card.is-complete{border-color:#a7f3d0;background:#f0fdf4}.assessor-progress-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}.assessor-progress-card>span{display:block;color:var(--muted);font-size:9px;line-height:1.5;margin-top:4px}.assessor-progress-card p{margin:9px 0 0;padding-top:9px;border-top:1px dashed var(--line);font-size:10px;line-height:1.55}.assessor-progress-inline{display:grid;gap:5px;min-width:105px}.assessor-progress-inline strong{font-size:9px;color:#475569}.mini-progress{display:block;width:100%;height:6px;border-radius:99px;background:#e2e8f0;overflow:hidden}.mini-progress i{display:block;height:100%;background:#22c55e;border-radius:inherit}.audit-list{display:grid;gap:8px}.audit-item{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(150px,.8fr) minmax(180px,1fr);gap:12px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.audit-item>div span,.audit-item>div small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.audit-values{display:flex;gap:14px;flex-wrap:wrap}.audit-values span{color:#475569!important}.assessor-account-list .captain-account-identity small{display:block;color:var(--muted);font-size:9px;line-height:1.45;margin-top:6px}
@media(max-width:1050px){.assessor-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-item{grid-template-columns:1fr 1fr}.audit-item>div:last-child{grid-column:1/-1}}
@media(max-width:650px){.assessor-progress-grid{grid-template-columns:1fr}.assessor-progress-card{padding:12px}.audit-item{grid-template-columns:1fr;gap:8px}.audit-item>div:last-child{grid-column:auto}.assessor-mode-alert{align-items:flex-start;flex-direction:column}.assessor-progress-inline{min-width:0}}
@media(min-width:1101px){.assessor-account-list .captain-account-row{grid-template-columns:minmax(180px,1.1fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(190px,1fr) auto auto}}

/* v1.7.1 — Excel-aligned quarterly incentive report */
.quarterly-summary-grid{margin-top:16px}.quarterly-bonus-card{border-color:#bbf7d0;background:linear-gradient(145deg,#f0fdf4,#fff)}.quarterly-bonus-card>strong{color:#15803d}.quarter-category-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}.quarter-category-card{padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:#fff}.quarter-category-card span,.quarter-category-card strong,.quarter-category-card small{display:block}.quarter-category-card span{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:850}.quarter-category-card strong{font-size:20px;margin:5px 0 3px;color:#0f172a}.quarter-category-card small{font-size:9px;color:#94a3b8}.quarterly-formula-note{border-color:#fde68a;background:#fffbeb;color:#92400e}.quarterly-report-card{overflow:hidden}.quarterly-desktop-table-wrap{overflow:auto}.quarterly-excel-table{min-width:2380px;font-size:10px}.quarterly-excel-table th,.quarterly-excel-table td{text-align:center;vertical-align:middle}.quarterly-excel-table thead th{white-space:normal;line-height:1.3}.quarterly-excel-table thead tr:first-child th{background:#e8eef7;color:#334155}.quarterly-excel-table thead tr:nth-child(2) th{background:#f8fafc}.quarterly-excel-table th:first-child,.quarterly-excel-table td:first-child{text-align:left;position:sticky;left:0;z-index:2;background:#fff}.quarterly-excel-table thead th:first-child{z-index:4;background:#e8eef7}.quarterly-excel-table tfoot th:first-child{position:static}.quarterly-excel-table .quarterly-weeks-heading{letter-spacing:.04em;text-transform:uppercase}.quarter-week-head{min-width:82px}.quarter-week-head span,.quarter-week-head small{display:block}.quarter-week-head small{margin-top:3px;font-size:8px;color:#64748b}.quarter-captain-cell{min-width:150px}.quarter-captain-cell strong,.quarter-captain-cell small{display:block}.quarter-captain-cell small{margin-top:4px;font-size:8px;color:#94a3b8}.quarter-percent-cell,.quarter-total-cell{min-width:104px}.quarter-total-cell strong{color:#1d4ed8}.quarter-bonus-cell{min-width:120px;white-space:nowrap}.quarter-week-cell{min-width:82px;font-weight:750}.quarter-week-cell.week-state-na,.quarter-week-cell.week-state-none{color:#94a3b8}.quarterly-excel-table tfoot th{background:#f8fafc;border-top:2px solid #cbd5e1}.quarterly-mobile-list{display:none}.quarterly-mobile-card{border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 6px 20px rgba(15,23,42,.05)}.quarterly-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid #eef2f7}.quarterly-mobile-head strong,.quarterly-mobile-head small{display:block}.quarterly-mobile-head strong{font-size:15px}.quarterly-mobile-head small{font-size:9px;color:#94a3b8;margin-top:3px}.quarterly-mobile-total{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e2e8f0}.quarterly-mobile-total>div{background:#fff;padding:11px}.quarterly-mobile-total span,.quarterly-mobile-total strong{display:block}.quarterly-mobile-total span{font-size:8px;text-transform:uppercase;color:#64748b;font-weight:850}.quarterly-mobile-total strong{font-size:13px;margin-top:4px}.quarterly-mobile-categories{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px}.quarterly-mobile-categories>div{padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.quarterly-mobile-categories span,.quarterly-mobile-categories strong{display:block}.quarterly-mobile-categories span{font-size:8px;text-transform:uppercase;color:#64748b;font-weight:800}.quarterly-mobile-categories strong{font-size:13px;margin-top:3px}.quarterly-mobile-section-title{padding:0 12px 8px;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:850}.quarterly-week-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0 12px 13px}.quarter-week-tile{padding:8px 6px;border:1px solid #dbeafe;border-radius:9px;background:#eff6ff;text-align:center}.quarter-week-tile span,.quarter-week-tile small,.quarter-week-tile strong{display:block}.quarter-week-tile span{font-size:8px;font-weight:850;color:#475569}.quarter-week-tile small{font-size:7px;color:#94a3b8;margin:2px 0 4px}.quarter-week-tile strong{font-size:11px;color:#1d4ed8}.quarter-week-tile.week-state-na,.quarter-week-tile.week-state-none{border-color:#e2e8f0;background:#f8fafc}.quarter-week-tile.week-state-na strong,.quarter-week-tile.week-state-none strong{color:#94a3b8}
@media(max-width:1050px){.quarter-category-summary{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.quarter-category-summary{grid-template-columns:1fr 1fr}.quarterly-desktop-table-wrap{display:none}.quarterly-mobile-list{display:grid;gap:12px}.quarterly-mobile-total{grid-template-columns:1fr 1fr}.quarterly-mobile-total>div:last-child{grid-column:1/-1}.quarterly-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:400px){.quarter-category-summary{grid-template-columns:1fr}.quarterly-week-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* v1.7.2 — Murex Resorts branding */
.app-logo{display:block;max-width:100%;height:auto}
.brand-with-logo{align-items:flex-start;gap:12px}
.brand-text-block{min-width:0}
.app-logo-sidebar{width:134px;max-width:100%;height:auto;filter:drop-shadow(0 4px 12px rgba(15,23,42,.18))}
.login-simple-brand-logo{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.app-logo-login{width:220px;max-width:100%;height:auto}
@media(max-width:650px){.app-logo-login{width:180px}.app-logo-sidebar{width:118px}.brand-with-logo{gap:10px}}


/* v1.7.3 — multiple assessor accounts per group */
.assessor-groups-list{display:grid;gap:16px}.assessor-group-block{border:1px solid var(--line);border-radius:15px;background:#fbfdff;overflow:hidden}.assessor-group-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid var(--line);background:#f8fafc}.assessor-group-heading strong,.assessor-group-heading span{display:block}.assessor-group-heading>div>strong{font-size:14px}.assessor-group-heading>div>span{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.5}.assessor-group-block .captain-account-list{padding:0}.assessor-group-block .captain-account-row{border:0;border-bottom:1px solid #e9eef5;border-radius:0;background:#fff}.assessor-group-block .captain-account-row:last-child{border-bottom:0}.assessor-new-account-row{background:#f8fbff!important}.assessor-new-account-row .captain-account-identity>strong{color:#1d4ed8}
@media(max-width:650px){.assessor-group-heading{align-items:flex-start;flex-direction:column}.assessor-group-heading>.badge{align-self:flex-start}.assessor-group-block{border-radius:13px}}


/* v1.8.0 — Captain checklist -> assessor verification workflow */
.badge-info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.criterion-rejected-note{display:block;margin-top:6px;padding:7px 9px;border-radius:8px;background:#fef2f2;color:#b91c1c;font-weight:750}.verification-list{display:grid;gap:12px}.verification-category-title{margin:18px 0 2px;padding:9px 12px;border-radius:10px;background:#e8eef7;color:#334155;font-size:11px;font-weight:900}.verification-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px;box-shadow:0 6px 20px rgba(15,23,42,.04)}.verification-card.verification-status-confirmed{border-color:#a7f3d0}.verification-card.verification-status-rejected{border-color:#fecaca}.verification-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.verification-status-badge{white-space:nowrap}.verification-captain-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:13px}.verification-captain-grid>div{padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.verification-captain-grid span,.verification-captain-grid strong{display:block}.verification-captain-grid span{font-size:8px;text-transform:uppercase;color:#64748b;font-weight:850}.verification-captain-grid strong{font-size:12px;margin-top:4px}.verification-captain-note,.verification-evidence,.verification-last{margin-top:12px;padding-top:12px;border-top:1px dashed #e2e8f0}.verification-captain-note>span,.verification-evidence>span{display:block;font-size:9px;text-transform:uppercase;color:#64748b;font-weight:850;margin-bottom:5px}.verification-captain-note p{margin:0;color:#334155;white-space:pre-wrap}.verification-last{font-size:10px;color:#475569;line-height:1.6}.verification-note-label{display:block;margin-top:12px;font-size:10px;font-weight:800;color:#475569}.verification-note-label textarea{display:block;width:100%;margin-top:6px}.verification-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.verification-actions .btn{min-width:120px}
@media(max-width:760px){.verification-card{padding:12px}.verification-card-head{flex-direction:column;gap:9px}.verification-captain-grid{grid-template-columns:1fr 1fr}.verification-actions{display:grid;grid-template-columns:1fr 1fr}.verification-actions .btn{min-width:0;width:100%;min-height:44px}}
@media(max-width:420px){.verification-captain-grid{grid-template-columns:1fr}.verification-actions{grid-template-columns:1fr}}

.verification-group-statuses{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.verification-group-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;font-size:8px;font-weight:850}.verification-group-chip.is-confirmed{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}.verification-group-chip.is-rejected{background:#fef2f2;border-color:#fecaca;color:#b91c1c}

/* v2.0.0 — daily incentive + weekly penalty workflow */
.incentive-v2-today,.incentive-v2-context{margin-bottom:16px}.compact-stats .stat-card small{display:block;margin-top:5px;color:var(--muted);font-size:9px}.filter-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filter-row label{min-width:190px;flex:1}.compact-card{padding:16px}.empty-state{text-align:center;padding:28px}.incentive-v2-form{display:grid;gap:16px}.incentive-category-card-v2{padding:0;overflow:hidden}.incentive-category-card-v2>.card-head{padding:16px 18px;border-bottom:1px solid var(--line)}.daily-criterion-list,.weekly-review-list{display:grid;gap:0}.daily-criterion-card,.weekly-review-card{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(300px,1fr);gap:14px;padding:16px 18px;border-bottom:1px solid #eef2f7;background:#fff}.daily-criterion-card:last-child,.weekly-review-card:last-child{border-bottom:0}.daily-criterion-card.has-problem,.weekly-review-card.has-penalty{background:#fff8f8}.daily-criterion-copy{min-width:0}.daily-criterion-copy .criterion-code{display:inline-flex;font-size:9px;font-weight:900;letter-spacing:.06em;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:4px 7px;margin-bottom:7px}.daily-criterion-copy h3{font-size:14px;margin:0 0 5px}.daily-criterion-copy p{font-size:11px;line-height:1.55;color:var(--muted);margin:0}.daily-criterion-copy small{display:block;margin-top:6px;color:#94a3b8;font-size:9px}.daily-state-picker,.weekly-state-picker{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.state-chip{display:inline-flex;align-items:center;cursor:pointer}.state-chip input{position:absolute;opacity:0;pointer-events:none}.state-chip span{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#475569;font-size:11px;font-weight:800;transition:.15s ease}.state-chip input:checked+span{box-shadow:0 0 0 2px rgba(37,99,235,.12);border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.state-done input:checked+span,.state-ok input:checked+span{border-color:#86efac;background:#f0fdf4;color:#166534}.state-not_done input:checked+span,.state-not_ok input:checked+span{border-color:#fca5a5;background:#fef2f2;color:#b91c1c}.state-na input:checked+span{border-color:#cbd5e1;background:#f8fafc;color:#64748b}.daily-note-label,.daily-evidence-box,.weekly-review-card>label{grid-column:1/-1}.daily-evidence-box{padding:11px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.daily-evidence-box .field-label{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:850;margin-bottom:7px}.daily-evidence-input{width:100%;font-size:11px}.daily-evidence-box small{display:block;color:#64748b;font-size:9px;margin-top:5px}.evidence-upload-status{font-size:10px;color:#2563eb;font-weight:700;margin-top:5px}.incentive-v2-actions{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.weekly-penalty-rule{margin-bottom:16px}.weekly-review-card{grid-template-columns:minmax(250px,1.5fr) minmax(330px,1fr)}.weekly-penalty-summary{display:grid;grid-template-columns:minmax(180px,.5fr) 1.5fr;gap:16px;align-items:end}.weekly-penalty-summary>div span,.weekly-penalty-summary>div strong{display:block}.weekly-penalty-summary>div span{font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:850}.weekly-penalty-summary>div strong{font-size:28px;color:#b91c1c;margin-top:4px}.penalty-cell{color:#b91c1c}.quarterly-v2-table{min-width:2500px}.criterion-note{grid-column:1/-1;margin:0!important;padding:10px 12px;background:#f8fafc;border-radius:10px}.field-label{font-weight:800}.alert-info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}.alert-warning{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
@media(max-width:850px){.daily-criterion-card,.weekly-review-card{grid-template-columns:1fr}.daily-state-picker,.weekly-state-picker{justify-content:flex-start}.weekly-penalty-summary{grid-template-columns:1fr}.filter-row{align-items:stretch}.filter-row label{min-width:0;width:100%}.filter-row .btn{min-height:44px}.daily-note-label,.daily-evidence-box,.weekly-review-card>label{grid-column:auto}}
@media(max-width:520px){.daily-criterion-card,.weekly-review-card{padding:14px 12px}.daily-state-picker,.weekly-state-picker{display:grid;grid-template-columns:1fr}.state-chip span{width:100%;min-height:46px}.daily-evidence-input{font-size:16px}.incentive-v2-actions{display:grid;grid-template-columns:1fr 1fr}.incentive-v2-actions .btn{min-height:48px}.quarterly-mobile-categories{grid-template-columns:1fr 1fr}}

/* v2.2.1 — Admin database reset */
/* v2.2.3 — stability hardening; incentive formula unchanged */
.reset-warning-card{border:1px solid #f2b8b5;background:#fff8f7}
.reset-warning-card h2{color:#9f1c17}
.reset-protected-list{margin:0;padding-left:1.25rem;display:grid;gap:.45rem;color:#475569}
.reset-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0}
.reset-toolbar>div:first-child{display:flex;flex-direction:column;gap:.2rem}
.reset-toolbar>div:first-child span{color:#64748b;font-size:.92rem}
.reset-toolbar-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.reset-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem}
.reset-group-card{display:block;cursor:pointer;margin:0;transition:border-color .15s ease,transform .15s ease}
.reset-group-card:hover{border-color:#94a3b8;transform:translateY(-1px)}
.reset-group-card.is-disabled{opacity:.58;cursor:not-allowed}
.reset-group-select{display:grid;grid-template-columns:auto 1fr auto;gap:.75rem;align-items:start}
.reset-group-select input{width:1.15rem;height:1.15rem;margin-top:.15rem}
.reset-group-select>div{display:flex;flex-direction:column;gap:.2rem}
.reset-group-select>div span{font-size:.88rem;color:#64748b;line-height:1.4}
.reset-item-list{display:grid;gap:.45rem;margin-top:1rem;padding-top:.85rem;border-top:1px solid #e2e8f0}
.reset-item-row{display:flex;justify-content:space-between;gap:1rem;font-size:.88rem;color:#475569}
.reset-item-row b{white-space:nowrap;color:#0f172a}
.reset-confirm-card{border:1px solid #f1a6a1}
.reset-acknowledge{display:flex;align-items:flex-start;gap:.7rem;margin:.5rem 0 1rem;font-weight:600}
.reset-acknowledge input{width:1.15rem;height:1.15rem;margin-top:.1rem}
.reset-confirm-input{display:grid;gap:.45rem;max-width:520px}
.reset-confirm-input code{padding:.15rem .4rem;border-radius:.35rem;background:#fee2e2;color:#991b1b;font-weight:800}
.reset-confirm-input input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:700;letter-spacing:.04em}
.reset-submit-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.1rem;padding-top:1rem;border-top:1px solid #e2e8f0}
.reset-submit-row>div{display:flex;flex-direction:column;gap:.2rem}
.reset-submit-row span{font-size:.88rem;color:#64748b}
.btn-danger{background:#b42318;color:#fff;border-color:#b42318}
.btn-danger:hover{background:#912018;border-color:#912018}.btn-danger:disabled{opacity:.5;cursor:not-allowed}
.reset-result-card{border:1px solid #86d5a4;background:#f4fff7}.reset-result-groups{display:flex;gap:.5rem;flex-wrap:wrap}
.reset-error-card{border:1px solid #ef9a9a;background:#fff5f5;color:#991b1b}
@media(max-width:980px){.reset-group-grid{grid-template-columns:1fr}.reset-toolbar,.reset-submit-row{align-items:stretch;flex-direction:column}.reset-toolbar-actions{width:100%}.reset-toolbar-actions .btn{flex:1}}

/* v2.2.16 - Captain binary daily checklist (DCM/Joan/Technician remain tri-state) */
.captain-check{display:flex;align-items:center;justify-content:flex-end}
.captain-check-label{display:inline-flex;align-items:center;gap:12px;cursor:pointer;border:1px solid #dbe4ef;background:#f8fafc;border-radius:12px;padding:12px 17px;font-weight:700;color:#233653;min-height:50px}
.captain-check-label input[type=checkbox]{width:22px;height:22px;accent-color:#16a34a;cursor:pointer}
.captain-check-label:has(input:checked){border-color:#86efac;background:#f0fdf4;color:#166534}
.captain-check-label:has(input:disabled){opacity:.7;cursor:default}
.captain-check-help{font-size:13px;color:#64748b;margin:0 16px 8px}
@media(max-width:850px){.captain-check{justify-content:flex-start}}

/* Captain Log v2.2.20 — fast, accessible DCM weekly assessment */
.dcm-queue-heading{align-items:center}
.dcm-queue-weekbar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.dcm-queue-week-label strong,.dcm-queue-week-label span{display:block}
.dcm-queue-week-label strong{font-size:12px;color:#1e293b}
.dcm-queue-week-label span{font-size:17px;font-weight:800;margin-top:5px}
.dcm-queue-week-actions,.dcm-queue-week-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.dcm-queue-week-form input{min-width:165px}.dcm-queue-date-label{min-width:165px}
.dcm-queue-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.dcm-queue-stat{border:1px solid var(--line);border-radius:15px;background:#fff;padding:18px;box-shadow:var(--shadow)}
.dcm-queue-stat span,.dcm-queue-stat strong{display:block}.dcm-queue-stat span{font-size:12px;font-weight:750;color:#64748b}
.dcm-queue-stat strong{font-size:32px;letter-spacing:-.04em;margin-top:5px}
.dcm-queue-list-head{align-items:end}.dcm-queue-search-label{width:min(340px,100%);font-size:12px}
.dcm-captain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.dcm-captain-card{padding:16px;border:1px solid var(--line);border-radius:15px;background:#fcfdff;min-width:0;display:flex;flex-direction:column;gap:14px}
.dcm-captain-card[hidden],.dcm-queue-no-search[hidden]{display:none!important}
.dcm-captain-top{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.dcm-captain-avatar{flex:none;width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-size:20px}
.dcm-captain-details{min-width:0;flex:1}.dcm-captain-details h3{margin:0 0 4px;font-size:16px}.dcm-captain-details>span{color:#64748b;font-size:12px;display:block;overflow-wrap:anywhere}
.dcm-captain-top .badge{font-size:10px;flex:none}.dcm-captain-meta{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid #e2e8f0;padding-top:12px}
.dcm-captain-meta span{font-size:12px;color:#64748b}.dcm-captain-meta strong{color:#1e293b}
.dcm-captain-note{font-size:12px;color:#047857!important}
.dcm-captain-action{min-height:46px;font-size:13px;margin-top:auto}
.dcm-queue-empty{text-align:center;padding:40px 16px}.dcm-queue-empty strong{font-size:16px}.dcm-queue-empty p{margin-top:8px}
.dcm-queue-no-search{padding:25px;text-align:center;color:#64748b}
.dcm-queue-waiting summary{font-size:14px;font-weight:800;cursor:pointer}.dcm-queue-waiting p{margin:12px 0}
.dcm-queue-waiting-names{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.dcm-queue-waiting-names span{background:#f1f5f9;color:#475569;padding:8px 10px;border-radius:9px;font-size:12px}
.dcm-review-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0 18px}
.dcm-review-tab{border:1px solid #cbd5e1;background:#fff;color:#334155;min-height:44px;font-size:13px}
.dcm-review-tab.is-active{background:#2563eb;color:white;border-color:#2563eb}
@media(max-width:900px){.dcm-captain-grid{grid-template-columns:1fr}.dcm-queue-list-head{align-items:stretch}}
@media(max-width:620px){.dcm-queue-weekbar,.dcm-queue-week-actions,.dcm-queue-week-form{display:flex;flex-direction:column;align-items:stretch;width:100%}.dcm-queue-week-actions>.btn,.dcm-queue-week-form>.btn,.dcm-queue-date-label{width:100%}.dcm-queue-stats{gap:7px}.dcm-queue-stat{padding:12px}.dcm-queue-stat span{font-size:10px}.dcm-queue-stat strong{font-size:27px}.dcm-captain-card{padding:13px}.dcm-captain-top .badge{width:100%;justify-content:center}.dcm-review-tabs .btn{width:100%}}
