:root{--ink:#121726;--muted:#667385;--line:#e0e6ef;--canvas:#f5f7fa;--primary:#4f61f2;--primary-pale:#edf0ff;--green:#087650;--pale:#e6f8ef;--amber:#916300}
*{box-sizing:border-box;letter-spacing:0}
body{margin:0;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}
button,input{font:inherit}
button{cursor:pointer;border:1px solid #bdc5d1;border-radius:6px;background:white;padding:10px 14px;font-size:12px;font-weight:650;color:#343e4d;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;line-height:18px;transition:background-color .12s,border-color .12s,box-shadow .12s}
button img{width:17px;height:17px;flex-shrink:0}
button:hover:not(:disabled){background:#f3f5ff;border-color:#a6b1ee;box-shadow:0 2px 5px #1217260b}
button:active:not(:disabled){box-shadow:none;opacity:.82}
button:disabled{opacity:.4;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b8c2ff;outline-offset:3px}
button.btn-primary{background:var(--primary);border-color:var(--primary);color:white}
button.btn-primary img{filter:brightness(0) invert(1)}
button.btn-primary:hover:not(:disabled){background:#3849cd;border-color:#3849cd}
button.btn-secondary{background:var(--primary-pale);border-color:#d5dcff;color:#3849cd}
button.btn-secondary:hover:not(:disabled){background:#dfe5ff;border-color:#a6b1ee}
button.btn-outline{background:white;border-color:#bdc5d1}
button.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}
button.btn-ghost:hover:not(:disabled){background:#eceef4;border-color:#dce1e9}
a{color:var(--primary)}[hidden]{display:none!important}
header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:80px;padding:14px 36px;background:white;border-top:3px solid var(--primary);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:20px}.brand img{width:116px;height:44px;object-fit:contain}
.brand-divider{height:32px;width:1px;background:var(--line)}
.brand div{display:flex;flex-direction:column;gap:4px}.brand strong{font-size:17px}.brand div>span{font-size:11px;color:var(--muted)}
.header-actions{display:flex;align-items:center;gap:12px}
header small{font-size:9px;color:var(--amber);background:#fff2d7;padding:5px 7px;border-radius:3px;font-weight:750}
.officer-mark{width:36px;height:36px;border-radius:7px;display:grid;place-items:center;background:var(--primary-pale);border:1px solid #d5dcff;color:#3849cd;font-size:11px;font-weight:750}
.report-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:50%;background:#edb23c;color:#3f3012;font-size:11px;padding:0 6px}
.toolbar{max-width:1480px;margin:auto;display:flex;justify-content:space-between;gap:20px;padding:28px 36px 24px;align-items:center}
.eyebrow{color:var(--primary);font-size:10px;font-weight:750;margin:0 0 7px}
.toolbar h1{font-size:26px;line-height:33px;margin:0;font-weight:750}
.subtitle{color:var(--muted);margin:6px 0 0;font-size:12px}
.toolbar-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:flex-end}
#updated{font-size:11px;color:var(--muted);margin-right:6px}
input{min-height:44px;border:1px solid #c5ccd7;border-radius:6px;padding:11px 13px;background:white;min-width:0;color:var(--ink)}
input::placeholder{color:#7c8595;font-size:12px}#code{width:210px}
#error{max-width:1408px;margin:0 auto 12px;color:#ad3444;font-size:12px}#error:empty{display:none}
main{max-width:1480px;padding:0 36px 24px;margin:auto}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:22px;background:white}
.stats>div{padding:0 24px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.stats>div:last-child{border-right:0}
.stats span{font-size:10px;font-weight:750;color:var(--muted);display:flex;gap:7px;align-items:center;min-height:18px}
.stats span img{width:16px;height:16px}.stats strong{font-size:29px;line-height:36px;font-weight:750}.stats small{font-size:11px;color:var(--muted)}
.green{color:var(--green)}.amber{color:var(--amber)}
.filters{display:flex;gap:16px;align-items:center;margin-bottom:22px}
.tabs{display:flex;border:1px solid #e0e4ec;background:#e9ecf2;border-radius:7px;padding:4px;flex-shrink:0;gap:3px}
.tabs button{border:0;border-radius:4px;background:transparent;min-width:105px;color:#606b7c;padding:9px 14px;min-height:38px}
.tabs button[aria-selected="true"]{color:#3849cd;background:white;box-shadow:0 1px 3px #1217260d}
.tabs button[aria-selected="true"] img{filter:none}
.filters input{margin-left:auto;width:350px;max-width:100%;padding-left:38px;background:white url('/icons/search.svg') no-repeat 13px center;background-size:16px}
.layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,1fr);gap:28px}
.map-column{min-width:0}.map-actions{display:flex;gap:16px;align-items:center;justify-content:space-between;min-height:54px;margin-bottom:10px}
.map-actions h2,.list-heading h2{font-size:15px;margin:0 0 5px;display:flex;align-items:center;gap:8px}.map-actions h2 img,.list-heading h2 img{width:17px;height:17px}
.map-actions p{margin:0;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.map-actions>button{flex-shrink:0}
.list-heading{min-height:54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:10px}.list-heading span{font-size:10px;color:var(--muted)}
#map{height:490px;border:1px solid #cbd3df;border-radius:7px;background:#e7ece8}
#summary{font-size:11px;color:var(--muted);padding:12px 0}.map-note{font-size:11px;color:var(--amber);margin-top:10px}
#list{max-height:555px;overflow:auto;display:grid;gap:12px;padding-right:3px;align-content:start}
.trip{border:1px solid var(--line);border-left:3px solid #d2d9e5;border-radius:7px;padding:17px 16px 18px;min-width:0;background:white}
.trip.selected{border-color:#aab6f6;border-left-color:var(--primary);background:#f7f9ff}
.trip h2{font-size:12px;margin:0 0 10px;overflow-wrap:anywhere;font-weight:750;color:var(--primary)}
.trip .captain{font-size:17px;font-weight:750;color:var(--ink);margin-bottom:9px}
.trip p{font-size:11px;line-height:18px;margin:5px 0;color:var(--muted);overflow-wrap:anywhere}
.trip-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.status{float:right;padding:4px 7px;background:var(--pale);color:var(--green);border:1px solid #c8e2d3;border-radius:4px;font-size:9px;font-weight:750;margin-left:7px}.stale{background:#fff2dd;color:var(--amber);border-color:#edd6ac}
.dot{background:var(--green);border:3px solid white;border-radius:50%;box-shadow:0 1px 4px #0004}.dot.stale{background:#c48b26}.dot.selected{outline:3px solid #4f61f244}
.empty{padding:30px 16px;color:var(--muted);font-size:13px}
.workspace-foot{border-top:1px solid var(--line);padding-top:16px;margin-top:18px;font-size:9px;font-weight:700;color:var(--muted);display:flex;gap:12px;justify-content:space-between}.workspace-foot span{font-weight:400}
#unread-reports{border-bottom:1px solid var(--line);padding:0 0 20px;margin:0 0 20px}
#unread-reports h2{font-size:15px;display:flex;align-items:center;gap:10px}
#reports-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:280px;overflow:auto;gap:12px}
.report-item{display:block;text-align:left;min-width:0;font-weight:400;border-color:#e2d0ab;background:#fffcf5}
.report-item strong{display:block;margin-bottom:6px}.report-item p{font-size:12px;line-height:19px;margin:4px 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.report-item small{font-size:10px;color:var(--muted)}
.report-pages{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:12px}.report-pages span{margin-right:auto;font-size:12px;color:var(--muted)}
dialog{width:590px;max-width:calc(100% - 28px);max-height:88vh;border:1px solid var(--line);border-radius:8px;padding:26px;color:var(--ink);box-shadow:0 20px 70px #20273526}
dialog::backdrop{background:#24273599}dialog h2{font-size:21px;margin:5px 0 20px;overflow-wrap:anywhere}
dialog dl{margin:0 0 20px}dialog dl>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:16px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:19px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}
dialog footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;padding-top:12px}
#report-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:23px}#report-meta{color:var(--muted);font-size:11px}#report-photos img{display:block;width:100%;max-height:430px;object-fit:contain;margin:12px 0}
@media(max-width:1000px){header{padding:14px 24px}.toolbar{padding:26px 24px 20px}.toolbar-actions{max-width:45%}#updated{width:100%;text-align:right}main{padding:0 24px 22px}.layout{grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:20px}.stats>div{padding:0 16px}.stats small{font-size:10px}.stats span{font-size:9px;gap:5px}.stats span img{width:14px;height:14px}.trip-actions button{flex:1}}
@media(max-width:720px){header{padding:12px 16px}.brand{gap:12px}.brand img{width:83px}.brand strong{font-size:15px}.brand div>span{font-size:10px}.brand-divider{display:none}.officer-mark{display:none}.header-actions{gap:8px}.toolbar{padding:24px 16px 18px;align-items:flex-start;flex-wrap:wrap}.toolbar h1{font-size:25px}.toolbar-actions{max-width:none;width:100%;justify-content:flex-start}#updated{width:auto;text-align:left;margin-right:auto;font-size:10px}main{padding:0 16px 20px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 0;padding:17px 0}.stats>div:nth-child(2){border-right:0}.stats strong{font-size:25px;line-height:31px}.stats span{font-size:9px}.filters{flex-wrap:wrap;gap:13px}.filters input{width:100%;margin:0}.layout{grid-template-columns:1fr}.map-actions{align-items:flex-start}#map{height:330px}#list{max-height:none}.workspace-foot{flex-wrap:wrap;line-height:16px}#reports-list{grid-template-columns:1fr}dialog{padding:20px}dialog dl>div{grid-template-columns:105px minmax(0,1fr);gap:12px}#report-shortcut{font-size:0;padding:0}#report-shortcut .report-badge{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
