:root{--navy:#163b59;--blue:#187ac1;--accent:#086cb1;--ink:#173952;--muted:#627b8d;--line:#dce6ed;--paper:#fff;--bg:#eef3f7;--shadow:0 3px 15px #163b5907}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,-apple-system,'Segoe UI','Noto Sans JP',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cbd9e4;border-radius:7px;background:#fff;color:var(--navy);padding:9px 15px;font-weight:700;transition:background .15s}button:hover:not(:disabled){background:#e9f4fc}button:disabled,input:disabled,select:disabled,fieldset:disabled{cursor:default}button:disabled{background:#e6eaee;color:#8896a0;border-color:#dce2e7}input:disabled,select:disabled,textarea:disabled{background:#edf0f3;color:#87949e;border-color:#e0e5e9;opacity:1}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 6px #0965a320}button.primary:hover:not(:disabled){background:#07588e}button.primary:disabled{background:#dce3e8;border-color:#dce3e8;color:#8493a0;box-shadow:none}.top{height:76px;background:linear-gradient(115deg,#14334e,#1c5e8e);color:white;display:flex;align-items:center;gap:24px;padding:10px 25px}.top img{width:182px;height:52px;object-fit:contain}.title{border-left:1px solid #ffffff38;padding-left:23px}.title span{font-size:10px;letter-spacing:.15em;color:#c4d9e8}.title h1{font-size:19px;margin:0;font-weight:650}.top-right{display:flex;margin-left:auto;gap:14px;align-items:center}.demo-badge{font-size:11px;border:1px solid #c0ddf079;border-radius:20px;padding:3px 12px}.top-right small{font-size:10px;color:#c0d7e7}.quiet{background:transparent;color:#fff;border-color:#c0d7e750;padding:6px 12px;font-size:12px}.quiet:hover:not(:disabled){background:#ffffff16}main{max-width:1600px;margin:auto;padding:14px 22px 8px}.guide{display:flex;align-items:center;gap:16px;padding:13px 18px;background:#e1eef8;border:1px solid #c5ddec;border-radius:10px;margin-bottom:12px;min-height:87px}.step-number{background:#156fa9;color:white;width:43px;height:43px;display:grid;place-items:center;border-radius:12px;font-size:20px;flex-shrink:0}.guide-copy{flex:1}.guide small{font-size:10px;letter-spacing:.1em;color:#426e8b}.guide h2{font-size:18px;margin:0}.guide p{font-size:12px;color:#4b6b82;margin:2px 0 0}.guide>button{flex-shrink:0;min-width:134px}.workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(350px,1fr);gap:12px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);height:43px;padding:8px 15px}.panel-heading h2{font-size:14px;margin:0;display:flex;align-items:center;gap:8px}.section-icon{font-size:10px;color:#7895aa;font-weight:500}.muted{font-size:11px;color:var(--muted)}.tag{border-radius:20px;background:#edf3f7;color:#55788f;font-size:11px;padding:2px 12px}.report{background:#f4f8fb;border-left:3px solid #408fc2;margin:12px 14px 9px;padding:8px 12px}.report-title{font-size:11px;color:#2c6d97;font-weight:700;display:flex;justify-content:space-between}.report-title span{font-weight:400;color:#7891a2;font-size:10px}.report p{font-size:12px;min-height:36px;margin:4px 0 0}form{padding:0 14px 11px}label{display:block;font-size:11px;font-weight:650;margin-bottom:8px}label>span{font-size:10px;color:#677f92;font-weight:400;margin-left:8px}input,select,textarea{width:100%;border:1px solid #d2dfe8;border-radius:5px;padding:6px 8px;color:var(--ink);background:#fff;font-size:12px;margin-top:4px;height:32px}textarea{resize:none;height:47px;display:block;line-height:1.5}.fields{display:grid;grid-template-columns:1fr 1fr .8fr;gap:10px}.fields.detail{grid-template-columns:2fr 1fr}.focus-step{outline:2px solid #2f94d4;outline-offset:3px;border-radius:5px;background:#f2faff}.focus-step select,.focus-step input{border-color:#2785c3}.focus-step#vehicle-wrap{background:#f2faff}fieldset{border:1px solid var(--line);border-radius:6px;padding:7px 8px 8px;margin:0 0 8px}legend{font-size:11px;font-weight:700;padding:0 4px}legend span{font-weight:400;color:#658095;font-size:10px;margin-left:8px}.vehicle-options{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.vehicle-option{margin:0;border:1px solid #d4e2ed;border-radius:5px;padding:5px 3px;display:flex;justify-content:center;gap:5px;align-items:center;font-size:10px;white-space:nowrap;cursor:pointer;background:#fff}.vehicle-option input{width:12px;height:12px;margin:0;accent-color:var(--accent)}.vehicle-option:has(input:checked){background:#dceeff;border-color:#2384c3}.vehicle-option:has(input:disabled){background:#edf0f3;color:#8997a1;border-color:#e1e6ea;cursor:default}.dispatch-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.dispatch-footer>span{font-size:11px;color:#5c778c}.dispatch-footer button{font-size:12px;padding:7px 13px}.side{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-height:0}.map-stage{height:calc(100% - 43px);min-height:160px;position:relative;background:#f1f5ef}.map-stage img{width:100%;height:100%;position:absolute;object-fit:cover}.map-caption{position:absolute;bottom:6px;right:8px;background:#ffffffe8;border-radius:4px;font-size:9px;color:#566d72;padding:1px 6px}.fleet-list{padding:8px 12px;display:grid;grid-template-columns:1fr 1fr;gap:5px 16px}.fleet-item{display:flex;align-items:center;justify-content:space-between;font-size:11px;border-bottom:1px solid #edf1f4;padding:3px 0;gap:5px}.vehicle-status{font-size:10px;border-radius:4px;padding:1px 7px;background:#edf3f7;color:#718697;white-space:nowrap}.vehicle-status[data-state="出動"]{background:#dceeff;color:#086cad}.vehicle-status[data-state="現着"]{background:#dfe8f7;color:#284f82}.fleet-key{text-align:center;font-size:10px;color:#8a9ca9;margin-bottom:5px}.incidents{margin-top:12px}.incidents .panel-heading{height:37px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;color:#678095;background:#f5f8fb;font-size:10px;font-weight:600;padding:5px 12px;white-space:nowrap}td{padding:8px 12px;border-top:1px solid #edf1f4;white-space:nowrap}td.empty{text-align:center;color:#96a6b2;padding:14px}footer{display:flex;justify-content:space-between;font-size:9px;color:#8495a2;padding:6px 1px}.triage-pill{display:inline-block;background:#fff0f1;color:#be2e3f;border-radius:4px;padding:1px 11px;font-weight:700}.progress-state{font-size:10px;font-weight:600}.complete-note{color:#197450}dialog{border:1px solid var(--line);border-radius:12px;padding:25px;color:var(--ink);max-width:400px}dialog::backdrop{background:#122b4380}dialog h2{margin:0;font-size:20px}dialog p{font-size:13px}dialog>div{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}:focus-visible{outline:3px solid #3aa2e3;outline-offset:2px}button[hidden]{display:none}@media(min-width:1100px) and (max-height:790px){.top{height:61px}.top img{height:43px;width:157px}main{padding-top:9px}.guide{min-height:73px;padding:9px 15px;margin-bottom:9px}.guide h2{font-size:16px}.panel-heading{height:35px}.report{margin:7px 11px;padding:6px 9px}.report p{min-height:32px;font-size:11px}form{padding:0 11px 8px}label{margin-bottom:6px}input,select{height:28px;padding:3px 7px;margin-top:3px}textarea{height:38px;margin-top:3px}fieldset{padding:4px 6px 5px;margin-bottom:5px}.vehicle-option{padding:3px 2px}.map-stage{height:calc(100% - 35px);min-height:140px}.fleet-list{padding:5px 11px;gap:3px 13px}.fleet-item{padding:1px 0}.workspace{gap:9px}.side{gap:9px}.incidents{margin-top:9px}.incidents .panel-heading{height:30px}td{padding:6px 12px}.table-scroll{max-height:98px}.dispatch-footer button{padding:6px 11px}footer{padding:5px 1px}}@media(max-width:1000px){.top{padding:9px 14px;gap:12px}.top img{width:130px}.title{padding-left:12px}.title h1{font-size:15px}.top-right{gap:8px}.top-right small{display:none}main{padding:10px}.workspace{grid-template-columns:1.3fr 1fr}.vehicle-options{grid-template-columns:repeat(2,1fr)}.fleet-list{grid-template-columns:1fr}.side{grid-template-rows:210px 1fr}.guide h2{font-size:15px}footer{display:block}}@media(max-width:700px){.top{height:auto;flex-wrap:wrap;gap:8px}.top img{width:120px;height:36px}.title h1{font-size:13px}.title span{font-size:8px}.top-right{width:100%;justify-content:flex-end}.top-right small{display:block}.guide{flex-wrap:wrap;padding:12px;gap:10px}.guide-copy{min-width:200px}.guide>button{margin-left:auto}.workspace{grid-template-columns:1fr}.side{grid-template-columns:1fr;grid-template-rows:220px auto}.fleet-list{grid-template-columns:1fr 1fr}.vehicle-options{grid-template-columns:repeat(2,1fr)}.fields{grid-template-columns:1fr 1fr}.fields label:last-child{grid-column:span 2}.fields.detail label:last-child{grid-column:auto}.guide h2{font-size:16px}footer span{display:block}}

.dispatch-actions{display:flex;gap:8px;flex-shrink:0}.dispatch-actions #empty-dispatch:not(:disabled){background:#187ac1;color:#fff;border-color:#187ac1}.recall-case{padding:3px 10px;font-size:11px;white-space:nowrap}.recall-case:not(:disabled){background:#0870b3;color:white;border-color:#0870b3;outline:2px solid #78bee8;outline-offset:2px}.recall-case:disabled{font-weight:400}.table-scroll td:last-child{width:80px}.dispatch-footer{min-height:35px}@media(max-width:700px){.dispatch-footer{flex-wrap:wrap}.dispatch-actions{margin-left:auto}}

/* 操作中の区域だけを着色。入力済みの値は読める濃さで保持する。 */
.workspace .panel,.incidents{background:#e8ebee;border-color:#d3d9df}.panel-heading{background:#e1e5e9;color:#647280}.dispatch .panel-heading{background:#e1e5e9}.dispatch:has(.focus-step)>.panel-heading{background:#dcebf6;color:#174b70}
.visual-muted{filter:grayscale(1);background-color:#e1e5e9!important;color:#737f89!important}.report.visual-muted{border-left-color:#aab4bd}.report.visual-muted .report-title,.report.visual-muted .report-title span{color:#78848e}.visual-muted input:disabled,.visual-muted select:disabled,.visual-muted textarea:disabled{background:#dce1e6;color:#737e88;border-color:#d0d7de}
form>label.visual-muted,.fields>label.visual-muted{border-radius:5px;padding:3px 5px;margin-bottom:5px}fieldset.visual-muted{border-color:#cbd3db}.visual-muted .vehicle-option:has(input:disabled){background:#d9dfe5;color:#7b858e;border-color:#cbd3db}
label.focus-step,fieldset.focus-step{background:#eff8ff!important;color:#174b70;box-shadow:0 0 0 4px #e0f0fc}.focus-step input:not(:disabled),.focus-step select:not(:disabled){background:#fff;border-color:#1982c4;color:#153c59}.vehicle-option:has(input:not(:disabled)){background:#edf7ff;color:#164e77;border-color:#94bcdc}.vehicle-option:has(input:checked):has(input:not(:disabled)){background:#cce8fc;border-color:#0d7ebd}
.incidents table{background:#e7ebef}.incidents th{background:#dce2e8;color:#788590}.incidents td{color:#6f7d88;border-color:#d7dee5}.incidents .triage-pill{background:#d9dfe5;color:#77838d}.incidents:has(.recall-case:not(:disabled))>.panel-heading{background:#dcebf6;color:#174b70}.recall-case:not(:disabled){background:#0870b3!important;color:white!important}.map-stage{background:#e8edf0}.map-stage img{object-fit:contain;object-position:center}.map-stage img[hidden],.map-placeholder[hidden],.map-caption[hidden]{display:none}.map-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;color:#8a969f;background:#e3e8ec}.map-placeholder>span{font-size:32px;line-height:1.2;color:#9aa7b0}.map-placeholder>strong{font-size:12px;font-weight:500}.map-placeholder>small{font-size:10px}.fleet-list{background:#e8edf1}.fleet.visual-muted .vehicle-status{background:#d4dce2;color:#78858e}.fleet-key{color:#7c8b95}
/* 非操作部分を明確な無彩色に統一する。 */
.workspace .panel,.incidents{background:#d8dde2}.workspace .panel>.panel-heading,.incidents>.panel-heading{background:#cdd3d9!important;color:#626d76!important;border-bottom-color:#bfc7cf}.visual-muted{background-color:#d2d8de!important;color:#626c75!important}.report.visual-muted{background:#d2d8de;border-left-color:#a7afb7}.report.visual-muted .report-title,.report.visual-muted .report-title span{color:#68747e}.visual-muted input:disabled,.visual-muted select:disabled,.visual-muted textarea:disabled{background:#c9d0d7;color:#626c75;border-color:#bfc7cf}.visual-muted .vehicle-option:has(input:disabled){background:#c9d0d7;border-color:#bfc7cf;color:#68727a}.fleet-list,.map-stage{background:#d4dae0}.fleet-item{border-color:#bec7ce}.incidents table{background:#d4dae0}.incidents th{background:#c8d0d8;color:#65717b}.incidents td{border-color:#bbc5ce;color:#626f79}.incidents .triage-pill{background:#bfc8d1;color:#626d77}.map-placeholder{background:#cfd6dd;color:#66747f}.map-placeholder>span{color:#8a969f}button:disabled,button.primary:disabled{background:#c3cbd3;color:#717c86;border-color:#b8c2cb}.top #reset{background:#cdd4da;color:#606d77;border-color:#b6c0c8}.dispatch .panel-heading .tag{background:#bdc8d1;color:#65727c}

/* 本指令後は動態の変化を色で表示する。非対象車両はグレーのまま。 */
.fleet:not(.visual-muted) .fleet-item[data-highlight="true"]{border:1px solid #b7c8de;border-radius:5px;padding:3px 6px;font-weight:700}.fleet:not(.visual-muted) .fleet-item[data-highlight="true"][data-state="出動"]{background:#ede4fc;color:#633a91;border-color:#c7afe5}.fleet:not(.visual-muted) .fleet-item[data-highlight="true"][data-state="現着"]{background:#d9edff;color:#125b91;border-color:#96c0e0}.fleet:not(.visual-muted) .fleet-item[data-highlight="true"][data-state="帰署"]{background:#e1edf3;color:#3d647a;border-color:#aec5d2}
.fleet:not(.visual-muted) .fleet-item[data-highlight="true"] .vehicle-status{color:inherit;background:#ffffffa8;font-weight:750}.fleet:not(.visual-muted) .state-key{display:inline-block;border-radius:3px;padding:1px 7px}.fleet:not(.visual-muted) .state-key[data-state="出動"]{background:#ede4fc;color:#633a91}.fleet:not(.visual-muted) .state-key[data-state="現着"]{background:#d9edff;color:#125b91}.fleet:not(.visual-muted) .state-key[data-state="帰署"]{background:#e1edf3;color:#3d647a}
.incidents .triage-pill[data-color="赤"]{background:#fbe3e6;color:#a92c3b}.incidents .triage-pill[data-color="黄"]{background:#fff0bd;color:#735900}.incidents .triage-pill[data-color="緑"]{background:#d9efdf;color:#256a3f}

/* 入力時は参照する通報も読みやすく表示する */
.report.report-readable{background:#edf7ff;border-left:4px solid #1685c4;color:#173c57}
.report-readable .report-title{font-size:12px;color:#126da3}
.report-readable p{font-size:14px;line-height:1.6;font-weight:600}
#address-example:empty{display:none}
#address-wrap.focus-step #address-example{display:block;font-size:12px;line-height:1.5;color:#175d88;font-weight:600;margin:2px 0 5px;user-select:text}
@media(min-width:1100px) and (max-height:790px){.report-readable p{font-size:13px;line-height:1.5}.report-readable .report-title{font-size:11px}#address-wrap.focus-step #address-example{margin:1px 0 3px;font-size:11px}}
