@font-face { font-family: "Bmes Sans"; font-weight: 400; font-display: swap; src: url("/static/f/a4.woff2") format("woff2"); }
@font-face { font-family: "Bmes Sans"; font-weight: 500; font-display: swap; src: url("/static/f/a5.woff2") format("woff2"); }
@font-face { font-family: "Bmes Sans"; font-weight: 600; font-display: swap; src: url("/static/f/a6.woff2") format("woff2"); }
@font-face { font-family: "Bmes Sans"; font-weight: 700; font-display: swap; src: url("/static/f/a7.woff2") format("woff2"); }

:root {
  --bg: #f3f5f8; --surface: #ffffff; --ink: #18273a; --muted: #5a6878; --faint: #8a96a3;
  --line: #e4e9ef; --line-strong: #cdd6e0;
  --navy: #14395f; --navy-soft: #e7eef7;
  --ok: #25704f; --ok-bg: #e2f2ea; --warn: #8f5f00; --warn-bg: #fcf0d4; --bad: #a93a2e; --bad-bg: #fae3e0;
  --info: #1c5d9b; --info-bg: #e1edf9;
  --tint-a: #edf2f8; --tint-b: #ecf4ef; --tint-c: #f7f2e7; --tint-d: #eff1f6;
  --b1: #173f73; --b2: #1f6fb2; --b3: #2c7a4b; --b4: #c26a10; --b5: #b3372f; --b6: #5b4d8f; --b7: #138276;
  --radius: 8px;
  --side: #0f2b4c; --side-on: #1f4a7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font-family: "Bmes Sans", sans-serif; font-size: 13.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; }
h1 { font-size: 20px; } h2 { font-size: 15px; } h3 { font-size: 13.5px; }
p { margin: 0 0 6px; }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13px; color: var(--ink); }
.muted { color: var(--muted); } .fine { color: var(--muted); font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.i { flex: none; vertical-align: -3px; }
.link { background: none; border: 0; padding: 0; color: var(--info); text-decoration: none; }
.link:hover { text-decoration: underline; }
.nw, .row-link, .vessel-meta b, th { white-space: nowrap; }

.msg { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: 720px; background: #fff;
  border: 1px solid var(--bad); border-left: 5px solid var(--bad); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(20, 40, 70, .18); font-weight: 500; }
.msg[hidden] { display: none; }

.wordmark { font-weight: 700; font-size: 17px; letter-spacing: .02em; color: var(--navy); white-space: nowrap; }
.wordmark span { color: var(--muted); font-weight: 400; margin: 0 2px; }

.entry { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.entry-card { width: 380px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 9px; }
.entry-card label { font-weight: 500; margin-top: 6px; }
.entry-card input { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 16px; letter-spacing: .08em; }

.btn { border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; border-radius: 6px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; color: var(--ink); }
.btn:hover { background: #f1f5f9; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #0f2e4f; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell.console { display: grid; grid-template-columns: 252px minmax(0, 1fr); align-items: start; background: linear-gradient(90deg, var(--side) 252px, var(--bg) 252px); }
.shell.console.collapsed { grid-template-columns: 68px minmax(0, 1fr); background: linear-gradient(90deg, var(--side) 68px, var(--bg) 68px); }
.col { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 7px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 380px; }
.search input { width: 100%; padding: 6px 10px 6px 30px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fb; }
.search-i { position: absolute; left: 9px; top: 6px; color: var(--muted); }
.top-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.copilot-launch { color: var(--navy); }
.copilot-launch[aria-pressed="true"] { background: var(--navy-soft); border-color: var(--navy); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 3px 5px; border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: #f1f5f9; }
.menu-pop { position: absolute; top: 40px; left: 0; z-index: 20; min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 40, 70, .14); padding: 5px; }
.menu-pop.right, .bell .menu-pop { right: 0; left: auto; }
.menu-h { padding: 6px 9px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.menu-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 6px; font-size: 13px; }
.btn-row { width: 100%; border: 0; background: none; text-align: left; align-items: center; }
.btn-row:hover { background: #f1f5f9; }
.btn-row.current { background: var(--navy-soft); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.who { display: grid; line-height: 1.2; text-align: left; }
.who small { color: var(--muted); font-size: 11.5px; }
.nav { display: flex; gap: 2px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav-i { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px 8px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.nav-i:hover { color: var(--ink); }
.nav-i.on { color: var(--navy); border-bottom-color: var(--navy); }

.band { display: flex; align-items: center; gap: 12px; color: #fff; padding: 8px 24px; }
.band .bn { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.band strong { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.band small { opacity: .9; font-size: 12.5px; }
.band .who-band { margin-left: auto; font-size: 12.5px; opacity: .95; }
.b1 { background: var(--b1); } .b1 .bn { color: var(--b1); }
.b2 { background: var(--b2); } .b2 .bn { color: var(--b2); }
.b3 { background: var(--b3); } .b3 .bn { color: var(--b3); }
.b4 { background: var(--b4); } .b4 .bn { color: var(--b4); }
.b5 { background: var(--b5); } .b5 .bn { color: var(--b5); }
.b6 { background: var(--b6); } .b6 .bn { color: var(--b6); }
.b7 { background: var(--b7); } .b7 .bn { color: var(--b7); }

.body { flex: 1; display: flex; align-items: flex-start; }
.stage { flex: 1; min-width: 0; padding: 14px 24px 40px; max-width: 1640px; margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; color: var(--muted); font-size: 12.5px; }
.crumbs .sep { display: inline-flex; }
.flash { display: flex; gap: 8px; align-items: center; background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe0cd; border-radius: 7px; padding: 7px 12px; margin-bottom: 12px; font-weight: 500; }
.notice { display: flex; gap: 8px; border-radius: 7px; padding: 8px 12px; margin: 10px 0; border: 1px solid var(--line); background: var(--tint-d); }
.notice.warn { background: var(--warn-bg); border-color: #efd9a0; color: #6d4800; }
.notice.bad { background: var(--bad-bg); border-color: #efc2bc; color: #7e281f; }
.notice.info { background: var(--info-bg); border-color: #bcd5ee; color: #164a7c; }
.notice.ok { background: var(--ok-bg); border-color: #bfe0cd; color: var(--ok); }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.page-h .sub { color: var(--muted); margin-top: 2px; }
.grid { display: grid; gap: 12px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cols-cc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.cols-v { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-h { padding: 7px 14px; background: var(--tint-a); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.card-h h2, .card-h h3 { font-size: 13.5px; display: flex; gap: 7px; align-items: center; }
.card-h .muted { font-size: 12px; }
.card-h.b { background: var(--tint-b); } .card-h.c { background: var(--tint-c); } .card-h.d { background: var(--tint-d); }
.card-b { padding: 11px 14px; }
.card-b.flush { padding: 0; }
.kpi { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 2px; }
.kpi .n { font-size: 25px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.kpi .l { color: var(--muted); font-size: 12px; }
.kpi .s { font-size: 12px; }
.kpi.warn .n { color: var(--warn); } .kpi.bad .n { color: var(--bad); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--tint-d); color: var(--muted); }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); }
.chip.big { font-size: 12.5px; padding: 3px 12px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 6px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; }
td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
table.dense td { padding: 5px 12px; }
table.tight th, table.tight td { padding-left: 6px; padding-right: 6px; }
table.tight th { text-transform: none; letter-spacing: 0; }
.row-link { background: none; border: 0; padding: 0; text-align: left; font-weight: 600; color: var(--navy); }

.attn { display: grid; }
.attn-i { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.attn-i:last-child { border-bottom: 0; }
.attn-i:hover { background: #f7fafc; }
.attn-i .t { font-weight: 600; } .attn-i .d { color: var(--muted); font-size: 12.5px; }
.dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.dot.warn { background: var(--warn-bg); color: var(--warn); } .dot.bad { background: var(--bad-bg); color: var(--bad); }
.dot.info { background: var(--info-bg); color: var(--info); } .dot.ok { background: var(--ok-bg); color: var(--ok); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 7px 14px 6px; color: var(--muted); font-weight: 500; }
.tab.on { color: var(--navy); border-bottom-color: var(--navy); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 5px 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.kv.two { grid-template-columns: 120px 1fr 120px 1fr; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.strip > div { padding: 8px 14px; border-right: 1px solid var(--line); display: grid; gap: 3px; }
.strip > div:last-child { border-right: 0; }
.strip .l { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.vessel-h { display: flex; gap: 18px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.vessel-h .frame { width: 240px; flex: none; }
.vessel-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; flex: none; }
.vessel-meta { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); }
.vessel-meta b { color: var(--ink); font-weight: 500; }

.frame { position: relative; overflow: hidden; background: #e8ecf1; border-radius: 6px; border: 1px solid var(--line); }
.frame.r16x9 { aspect-ratio: 16 / 9; } .frame.r1x1 { aspect-ratio: 1 / 1; } .frame.r4x3 { aspect-ratio: 4 / 3; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #a7b2be; }
.frame.round { border-radius: 50%; }
.frame.flat { border-radius: 0; border-width: 0 0 1px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--line); align-items: start; }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.timeline .by { color: var(--muted); font-size: 12px; }
.timeline .dot { width: 22px; height: 22px; }

.hist { position: relative; height: 136px; margin: 16px 6px 0; }
.hist .track { position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: var(--line-strong); }
.hist .yr { position: absolute; top: 40px; width: 1px; height: 14px; background: var(--line-strong); }
.hist .yr span { position: absolute; top: 16px; left: -14px; font-size: 11px; color: var(--faint); }
.hist .ev { position: absolute; top: 0; transform: translateX(-50%); text-align: center; width: 104px; font-size: 11.5px; line-height: 1.25; }
.hist .ev .pin { width: 12px; height: 12px; border-radius: 50%; background: var(--b2); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--b2); margin: 34px auto 0; }
.hist .ev.cur .pin { background: #fff; box-shadow: 0 0 0 2px var(--warn); }
.hist .ev .t { position: absolute; top: 0; left: 0; right: 0; font-weight: 600; }
.hist .ev .d { margin-top: 18px; color: var(--muted); }
.hist .ev.alt .t { top: -16px; }
.hist .ev.alt .d { margin-top: 50px; }
.hist .now { position: absolute; top: 30px; height: 34px; width: 0; border-left: 1px dashed var(--warn); }

.cand { display: grid; grid-template-columns: 56px minmax(0, 1fr) 210px auto; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.cand:last-child { border-bottom: 0; }
.cand .frame { width: 56px; }
.cand.sel { background: #f3f8fd; box-shadow: inset 3px 0 0 var(--navy); }
.cand.rec { background: #f4faf6; }
.cand .nm { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.facts { display: flex; gap: 2px 14px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); font-size: 12px; align-items: center; }
.facts b { color: var(--ink); font-weight: 600; }
.score { display: grid; gap: 3px; font-size: 11.5px; }
.score .total { display: flex; justify-content: space-between; font-weight: 600; font-size: 12.5px; }
.score .stack { display: flex; height: 8px; border-radius: 3px; overflow: hidden; background: #edf1f5; gap: 1px; }
.score .stack i { display: block; height: 100%; }
.score .parts { display: grid; grid-template-columns: 1fr auto auto; gap: 0 8px; color: var(--muted); }
.score .parts b { color: var(--ink); font-weight: 600; text-align: right; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.tile { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.bar { height: 7px; border-radius: 999px; background: #e9eef4; position: relative; overflow: visible; min-width: 100px; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--ok); }
.bar > i.t-info { background: #3f7fb8; } .bar > i.t-warn { background: #c58a14; } .bar > i.t-bad { background: var(--bad); }
.bar > u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; text-decoration: none; }
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.impact > div { background: #f7f9fb; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.impact .l { color: var(--muted); font-size: 11.5px; } .impact .n { font-size: 22px; font-weight: 600; }
.req { display: grid; grid-template-columns: 1.3fr .9fr .8fr .7fr 1.1fr 2fr; gap: 14px; }
.req > div { display: grid; gap: 1px; }
.req .l { color: var(--muted); font-size: 11.5px; }

.cal { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.cal th { background: none; border: 0; padding: 2px; text-align: center; font-size: 10.5px; }
.cal col.sv-name { width: 200px; }
.cal th.sv-name { text-align: left; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink); }
.cal th.we, .cal td.we { background: #f6f7f9; }
.cal td { border: 0; padding: 0; height: 40px; border-radius: 4px; background: #f9fafb; font-size: 10px; line-height: 14px; overflow: hidden; }
.cal td.sv-name { background: none; padding-right: 8px; }
.cal td.sv-name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal td.sv-name .nm { font-size: 12.5px; font-weight: 600; line-height: 18px; }
.cal td.sv-name .bk { font-size: 11px; color: var(--muted); line-height: 16px; }
.cal td div { box-sizing: border-box; height: 40px; padding: 6px 5px; overflow: hidden; }
.cal td div span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal th.today { color: var(--navy); font-weight: 700; }
.cal td.busy div { background: #dbe6f2; color: #23476e; border-radius: 4px; }
.cal td.assigned div { background: var(--ok); color: #fff; border-radius: 4px; font-weight: 600; }
.cal td.proposed div { background: repeating-linear-gradient(135deg, #e2f2ea, #e2f2ea 4px, #cfe8da 4px, #cfe8da 8px); color: var(--ok); border-radius: 4px; font-weight: 600; }
.cal td.proposed-clash div { background: repeating-linear-gradient(135deg, #fae3e0, #fae3e0 4px, #f3cdc8 4px, #f3cdc8 8px); color: var(--bad); border-radius: 4px; font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); align-items: center; }

.checks { list-style: none; margin: 0; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.check:hover:not([disabled]) { background: #f7fafc; }
.check .box { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; color: #fff; flex: none; }
.check.done .box { background: var(--ok); border-color: var(--ok); }
.check.done span.t { color: var(--muted); }
.progress { height: 6px; background: #e9eef4; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--navy); }
.form { display: grid; gap: 9px; }
.form label { font-weight: 500; font-size: 12.5px; display: grid; gap: 4px; }
.form input, .form select, .form textarea { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; width: 100%; }
.form textarea { min-height: 64px; resize: vertical; }
.form .ro { background: #f4f6f9; color: var(--muted); }
.ev { display: grid; grid-template-columns: repeat(auto-fill, 112px); gap: 8px; }
.ev .frame { width: 112px; }
.ev-cap { font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-add { width: 112px; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-strong); border-radius: 6px; background: #fafbfc; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.ev-add:hover { border-color: var(--navy); color: var(--navy); }

.map { width: 100%; height: auto; display: block; }
.map .land { fill: #dfe7ef; stroke: #c8d3de; stroke-width: .6; }
.map .pin circle { fill: var(--b2); fill-opacity: .72; stroke: #fff; stroke-width: 1; }
.map .pin.focus circle { fill: var(--b4); fill-opacity: .9; }
.map text { font-size: 8.5px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; }
.map text .num { font-weight: 400; fill: var(--muted); }
.map.mini { max-height: 250px; margin: 0 auto; }
.map.mini .route { stroke: var(--b3); stroke-width: 1; stroke-dasharray: 3 2; }
.map.mini .cand-pin circle { fill: var(--b3); fill-opacity: 1; }
.map.mini .target rect { fill: var(--b4); stroke: #fff; stroke-width: 1; }
.map.mini text { font-size: 8px; }
.map.mini text.strong { font-weight: 700; }
.chart { width: 100%; height: auto; display: block; }
.chart .ax { font-size: 9.5px; fill: var(--muted); }
.chart .val { font-size: 10.5px; fill: var(--ink); font-weight: 600; }
.chart .grid { stroke: #edf1f5; stroke-width: 1; }
.chart .line { fill: none; stroke: var(--b2); stroke-width: 2; }
.chart .pt circle { fill: var(--b2); stroke: #fff; stroke-width: 1.5; }
.chart .last { fill: #fff; stroke: var(--b2); stroke-width: 2; }
.donut { width: 112px; height: 112px; flex: none; }
.donut .big { font-size: 19px; font-weight: 600; fill: var(--ink); }
.donut .small { font-size: 8.5px; fill: var(--muted); }

.drawer { width: 410px; flex: none; position: sticky; top: 0; align-self: flex-start; height: calc(100vh - 80px); overflow: auto; background: var(--surface); border-left: 1px solid var(--line); }
.drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 2; }
.drawer-h h2 { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.drawer-h .btn { color: #fff; border-color: rgba(255,255,255,.4); }
.drawer-b { padding: 12px 16px 24px; display: grid; gap: 10px; }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; }
.cp-sec { border: 1px solid var(--line); border-radius: 8px; }
.cp-sec > h3 { padding: 5px 12px; background: var(--tint-a); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cp-sec ul { margin: 0; padding: 7px 12px 7px 28px; display: grid; gap: 3px; font-size: 13px; line-height: 1.4; }
.cp-why { padding: 8px 12px; background: #fafbfd; border-top: 1px solid var(--line); font-size: 12.5px; }
.cp-why li { list-style: none; }
.drawer .notice { font-size: 12.5px; padding: 7px 10px; margin: 0; }
.ref { display: inline-flex; gap: 4px; align-items: center; }

.modal-wrap { position: fixed; inset: 0; background: rgba(20, 35, 55, .45); display: grid; place-items: center; z-index: 40; padding: 24px; overflow: auto; }
.modal { width: 500px; max-width: 100%; background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 20px 60px rgba(10, 25, 45, .3); display: grid; gap: 9px; }
.modal.wide { width: 620px; }
.modal label { display: grid; gap: 4px; font-weight: 500; font-size: 12.5px; }
.modal input[type=text], .modal input[type=password], .modal select, .modal textarea { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; width: 100%; }
.modal textarea { min-height: 64px; }
.modal .check-row { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }

.cert-paper { position: relative; aspect-ratio: 1.414 / 1; background: #fffdf8; border: 1px solid #c9b98f; padding: 10px; box-shadow: 0 2px 10px rgba(20, 40, 70, .08); max-width: 860px; }
.cert-paper .inner { height: 100%; border: 2px solid var(--navy); outline: 1px solid #c9b98f; outline-offset: 3px; padding: 18px 26px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #d9cfb3; padding-bottom: 8px; }
.doc-top .wordmark { font-size: 20px; }
.doc-top .no { text-align: right; font-size: 11.5px; color: var(--muted); }
.doc-top .no b { display: block; color: var(--ink); font-size: 13px; }
.doc-title { text-align: center; }
.doc-title .kind { font-size: 11px; letter-spacing: .22em; color: var(--muted); font-weight: 600; }
.doc-title h2 { font-size: 24px; color: var(--navy); margin-top: 2px; font-weight: 600; }
.doc-body { display: grid; grid-template-columns: 1fr 190px; gap: 22px; align-items: start; }
.doc-body dl { display: grid; grid-template-columns: 130px 1fr; gap: 5px 12px; margin: 0; font-size: 13px; }
.doc-body dt { color: var(--muted); } .doc-body dd { margin: 0; font-weight: 600; }
.doc-qr { text-align: center; display: grid; gap: 6px; justify-items: center; }
.doc-qr .qr { width: 168px; height: 168px; padding: 6px; background: #fff; border: 1px solid #d9cfb3; }
.doc-qr .qr svg { width: 100%; height: 100%; }
.stamp { font-weight: 700; letter-spacing: .08em; font-size: 11.5px; color: var(--navy); }
.doc-foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid #d9cfb3; padding-top: 8px; font-size: 11.5px; color: var(--muted); }
.doc-foot .sig { min-width: 220px; }
.doc-foot .sig .line { border-bottom: 1px solid var(--ink); height: 22px; margin-bottom: 3px; font-family: inherit; font-style: italic; color: var(--navy); font-size: 14px; }
.doc-mark { font-weight: 700; letter-spacing: .06em; color: #8f5f00; }
.doc-state { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-size: 44px; font-weight: 700; color: rgba(169, 58, 46, .25); border: 4px solid rgba(169, 58, 46, .25); padding: 4px 18px; letter-spacing: .1em; pointer-events: none; }

.verify { max-width: 720px; margin: 0 auto; padding: 18px 20px 50px; display: grid; gap: 14px; }
.verify .demo { background: var(--warn-bg); border: 1px solid #efd9a0; color: #6d4800; padding: 8px 12px; border-radius: 7px; font-weight: 600; text-align: center; }
.verify .res { border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.verify .res.ok { background: var(--ok-bg); color: var(--ok); } .verify .res.bad { background: var(--bad-bg); color: var(--bad); }

@media (max-width: 1100px) {
  .cols-2, .cols-3, .cols-main, .cols-5, .cols-cc, .cols-v { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cand { grid-template-columns: 56px 1fr; }
  .drawer { width: 100%; position: fixed; right: 0; top: 0; height: 100vh; z-index: 30; }
}

/* console shell */
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); color: #c3d0e0; display: flex; flex-direction: column; padding: 14px 10px 10px; gap: 2px; }
.side-brand { display: grid; line-height: 1; padding: 4px 10px 16px; color: #fff; }
.side-brand .mark { font-weight: 700; font-size: 26px; letter-spacing: .02em; }
.side-brand .sub { font-weight: 600; font-size: 15px; letter-spacing: .12em; color: #d8e2ee; margin-top: 2px; }
.side-nav { display: grid; gap: 2px; align-content: start; flex: 1; }
.side-g { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #8ea4bf; padding: 14px 12px 5px; font-weight: 600; }
.side .nav-i, .side .nav-p { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border: 0; border-radius: 7px; background: none; color: #d4dfeb; font-size: 13px; font-weight: 500; line-height: 20px; text-align: left; }
.side .nav-p { color: #7f93ab; cursor: not-allowed; }
.side .nav-i:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side .nav-i.on { background: var(--side-on); color: #fff; box-shadow: inset 3px 0 0 #7fb2e5; }
.side .nav-i .lbl, .side .nav-p .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d4553f; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.side-collapse { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); background: none; color: #b8c7d9; margin-top: 10px; }
.side-collapse:hover { color: #fff; }
.collapsed .side { padding: 14px 8px; }
.collapsed .side .lbl, .collapsed .side-g, .collapsed .side .cnt, .collapsed .side-brand .sub { display: none; }
.collapsed .side-brand { padding: 4px 6px 14px; text-align: center; }
.collapsed .side-brand .mark { font-size: 18px; }
.collapsed .side .nav-i, .collapsed .side .nav-p, .collapsed .side-collapse { justify-content: center; padding: 10px 0; }
.updated { color: var(--muted); font-size: 12px; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.bell summary { position: relative; }
.badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; background: #d4553f; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.bell .menu-pop { width: 380px; max-height: 70vh; overflow: auto; }
.menu-row .grow, .grow { flex: 1; min-width: 0; }
.menu-row .dot { flex: none; }
.portal .topbar { gap: 14px; }
.product { color: var(--b6); font-weight: 600; border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
.search input[type=search] { -webkit-appearance: none; appearance: none; }

/* page header and cards */
.console-h h1 { font-size: 24px; color: var(--navy); }
.greet { font-weight: 600; font-size: 15px; margin-top: 4px; }
.sep-dot { margin: 0 4px; color: var(--faint); }
.kgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kgrid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.kc-h { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.kc-b { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; flex: 1; }
.kc-n { font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.kc-s { color: var(--muted); font-size: 12px; }
.kc-i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-a); color: var(--navy); flex: none; }
.kc-i.ok { background: var(--ok-bg); color: var(--ok); } .kc-i.warn { background: var(--warn-bg); color: #b9770e; } .kc-i.bad { background: var(--bad-bg); color: var(--bad); }
.kc-f { border-top: 1px solid var(--line); margin: 0 14px; padding: 7px 0 9px; font-size: 12px; display: flex; gap: 5px; align-items: center; }
.kc.slim .kc-b { padding: 10px 14px; }
.kc.slim .kc-n { font-size: 24px; }
.pct { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; vertical-align: 4px; }
.pct.ok { background: var(--ok-bg); color: var(--ok); } .pct.warn { background: var(--warn-bg); color: var(--warn); } .pct.bad { background: var(--bad-bg); color: var(--bad); }
.pn { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; background: var(--b1); flex: none; }
.ta .kc-h, .ph.ta { background: #e8f0fa; } .ta .pn { background: #2d63a8; }
.tb .kc-h, .ph.tb { background: #e7f3ec; } .tb .pn { background: #2f8a5b; }
.tc .kc-h, .ph.tc { background: #fbefe2; } .tc .pn { background: #d27b1f; }
.td .kc-h, .ph.td { background: #fbe8e6; } .td .pn { background: #c4473a; }
.te .kc-h, .ph.te { background: #eceff5; } .te .pn { background: #56657a; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
td.ok, td.warn, td.bad, span.bad, b.bad, div.bad { font-weight: 600; }
.pnl { display: flex; flex-direction: column; }
.ph { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-bottom: 1px solid var(--line); min-height: 40px; }
.ph h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; flex: 1; display: flex; gap: 6px; align-items: center; }
.ph h2 .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ph .link { font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.small { font-size: 12px; } .center { text-align: center; } .pad { padding: 10px 14px; }
.card-b.tight { padding: 8px 14px 0; }
.plist { display: grid; }
.pl-i { display: flex; align-items: center; gap: 11px; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; color: inherit; }
button.pl-i:hover, .act:hover, .ev-row:hover, tr.clickable:hover { background: #f5f8fc; cursor: pointer; }
.pl-i:last-child { border-bottom: 0; }
.pl-i strong { display: block; font-weight: 600; }
.pl-i small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.pl-i.slim { padding: 7px 14px; }
.pl-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--tint-a); color: var(--navy); display: grid; place-items: center; flex: none; }
.pl-n { font-size: 20px; font-weight: 600; min-width: 28px; text-align: right; }
.pl-n.muted { color: var(--faint); }
b.big { font-size: 18px; font-weight: 600; }
.rank { width: 24px; height: 24px; border-radius: 50%; background: var(--tint-a); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
table.flat th { background: none; }
tr.total td { font-weight: 600; background: #f7f9fb; }
.dd-row1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); margin-bottom: 12px; }
.dd-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-bottom: 12px; }
.dd-row3 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.dd-row4 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); margin-bottom: 12px; }
.ts-row1 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 12px; }
.ts-row2 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.eo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; padding: 12px 14px 4px; }
.eo h3, .geo h3, .wc h3 { font-size: 12.5px; margin-bottom: 6px; }
.donut-row { display: flex; gap: 14px; align-items: center; }
.donut-row.pad { padding: 12px 14px; }
.donut { flex: none; }
.donut .big { font-size: 15px; font-weight: 600; fill: var(--ink); }
.donut .small { font-size: 7px; fill: var(--muted); }
.legend-v { display: grid; gap: 6px; flex: 1; min-width: 0; }
.legend-v.small { font-size: 12px; gap: 4px; }
.lg { display: flex; gap: 8px; align-items: center; }
.lg.tall { align-items: flex-start; }
.lg.tall small { display: block; }
.sw.round { border-radius: 50%; }
.geo { border-top: 1px solid var(--line); padding: 10px 14px 12px; }
.geo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.geo-row > div { display: grid; gap: 2px; font-size: 11.5px; border-left: 1px solid var(--line); padding-left: 8px; }
.geo-row > div:first-child { border-left: 0; padding-left: 0; }
.geo-row b { font-size: 19px; color: var(--b4); font-weight: 600; }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; }
.vt { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }
.vt:hover { border-color: var(--navy); background: #f4f8fd; }
.vt-i { color: var(--b3); }
.vt-n { font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.15; }
.vt-l { font-size: 12.5px; font-weight: 500; }
.vt-a { font-size: 11.5px; color: var(--info); display: inline-flex; gap: 4px; align-items: center; }
.wc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; align-items: start; }
.wc-d { padding: 8px 14px 12px; display: grid; justify-items: center; gap: 6px; }
.wc-d .legend-v { width: 100%; }
.qa { display: flex; flex-wrap: wrap; padding: 10px 6px; }
.qa button { flex: 1; min-width: 104px; display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--navy); font-size: 12px; font-weight: 500; }
.qa button:last-child { border-right: 0; }
.qa button:hover { background: #f4f8fd; }
.qa button span { color: var(--ink); }
.next-b { display: flex; gap: 14px; align-items: center; padding: 14px; flex: 1; }
.next-b p { margin: 0; flex: 1; }
.next-i { width: 48px; height: 48px; border-radius: 50%; background: #fdf3e2; color: #c78316; display: grid; place-items: center; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 6px 13px; font-weight: 500; font-size: 12.5px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--navy); color: #fff; }

/* side sheet */
.sheet-wrap { position: fixed; inset: 0; background: rgba(20, 35, 55, .35); z-index: 35; display: flex; justify-content: flex-end; }
.sheet-panel, .modal.sheet { width: 560px; max-width: 100%; height: 100vh; overflow-y: auto; background: #fff; box-shadow: -10px 0 40px rgba(10, 25, 45, .25); }
.modal-wrap.side-sheet { place-items: stretch end; padding: 0; }
.modal.sheet { border-radius: 0; align-content: start; padding: 0 22px 22px; }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal.sheet .sheet-h { margin: 0 -22px 6px; }
.sheet-h h2 { font-size: 18px; color: var(--navy); display: flex; gap: 8px; align-items: center; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.sheet-b { padding: 14px 20px 24px; display: grid; gap: 10px; }
.sheet-b.flush { padding: 0 0 20px; gap: 0; }
.fine.pad { padding: 10px 20px; }
.gap-callout { background: #fdf3e2; border: 1px solid #f0d6a8; border-radius: 9px; padding: 10px 14px; font-weight: 500; }
.gap-callout .num { font-size: 26px; font-weight: 700; color: #a8650b; margin-right: 4px; }
.chain { position: relative; height: 62px; margin: 10px 8px 0; }
.chain-track { position: absolute; left: 0; right: 0; top: 16px; height: 3px; background: linear-gradient(90deg, #e3a23b, #c9483b); border-radius: 2px; }
.chain-ev { position: absolute; top: 8px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; font-size: 11px; }
.chain-ev .pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e3a23b; background: #e3a23b; }
.chain-ev.psc .pin { background: #c9483b; box-shadow: 0 0 0 2px #c9483b; }
.chain-ev.now .pin { background: #fff; box-shadow: 0 0 0 2px var(--navy); }
.chain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 9px; }
.chain-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chain-list li:last-child { border-bottom: 0; }
.chain-list .when { font-size: 12px; color: var(--muted); }
.value-big { font-size: 34px; font-weight: 600; color: var(--navy); margin-top: 6px; }
.formula { font-family: inherit; background: #f5f7fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.modal h3 { margin-top: 8px; }

/* operations */
.op-tabs { margin-bottom: 10px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; padding: 0 0 0 9px; color: var(--muted); }
.filt select { border: 0; background: none; padding: 6px 8px 6px 2px; font-weight: 500; max-width: 230px; }
.r { text-align: right; }
.kstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.kstrip > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 1px 10px; padding: 10px 16px; border-right: 1px solid var(--line); align-items: center; }
.kstrip > div:last-child { border-right: 0; }
.kstrip .l { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; display: flex; gap: 5px; align-items: center; }
.kstrip > div:first-child .l { grid-column: 2; }
.kstrip .ks-i { grid-row: 1 / span 2; color: var(--navy); }
.kstrip b { font-size: 24px; font-weight: 600; }
.op-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 12px; align-items: start; margin-bottom: 12px; }
.op-main, .op-side { display: grid; gap: 12px; min-width: 0; }
.hbar { display: inline-block; vertical-align: middle; width: calc(100% - 44px); height: 7px; border-radius: 999px; background: #e9eef4; position: relative; margin-right: 6px; }
.hbar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--ok); }
.hbar > i.t-info { background: #3f7fb8; } .hbar > i.t-warn { background: #d6912a; } .hbar > i.t-bad { background: var(--bad); }
.prog { display: inline-block; vertical-align: middle; width: 70px; height: 6px; background: #e9eef4; border-radius: 999px; overflow: hidden; margin-right: 6px; }
.prog > i { display: block; height: 100%; background: #2f6fb3; }
.side-panel .sp-top { display: flex; gap: 14px; align-items: center; padding: 14px; }
.pt-lg { width: 72px; flex: none; } .pt-sm { width: 34px; flex: none; } .pt-xl { width: 92px; flex: none; }
.frame .ph.initials { font-weight: 700; color: var(--navy); background: var(--navy-soft); font-size: 15px; letter-spacing: .03em; }
.pt-sm .ph.initials { font-size: 11px; } .pt-xl .ph.initials { font-size: 26px; } .pt-lg .ph.initials { font-size: 20px; }
.sp-name { font-size: 17px; font-weight: 600; }
.comp-chips, .comp-list { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 10px; }
.sp-head .comp-chips { padding: 6px 0 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef2f7; border: 1px solid var(--line); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.sp-block { border-top: 1px solid var(--line); padding: 10px 14px; display: grid; gap: 6px; }
.asg { display: flex; gap: 10px; align-items: flex-start; }
.asg.big { padding: 12px 14px; }
.asg-i { width: 38px; height: 38px; border-radius: 9px; background: var(--tint-a); color: var(--navy); display: grid; place-items: center; flex: none; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mini-stats > div { display: grid; justify-items: center; text-align: center; padding: 9px 4px; border-right: 1px solid var(--line); gap: 1px; }
.mini-stats > div:last-child { border-right: 0; }
.mini-stats .l { font-size: 11px; color: var(--muted); }
.mini-stats b { font-size: 19px; font-weight: 600; }
.tabs.slim { margin: 0; padding: 0 10px; border-top: 1px solid var(--line); }
.tabs.slim .tab { padding: 8px 10px 7px; font-size: 12.5px; }
.wk-mini, .cal14 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(30px, auto); gap: 3px; padding: 8px 12px 12px; }
.cal14 { grid-template-columns: repeat(14, minmax(0, 1fr)); padding: 10px 14px 4px; grid-auto-rows: minmax(40px, auto); }
.wk-d { grid-row: 1; font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; padding-bottom: 2px; }
.wk-d.today { color: var(--navy); }
.wk-d.we { color: var(--faint); }
.wk-b { border-radius: 5px; padding: 4px 6px; font-size: 11px; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 0; text-align: left; min-width: 0; }
.wk-b strong, .wk-b small, .blk strong, .blk small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-b small { white-space: normal; overflow-wrap: anywhere; }
.wk-b small, .blk small { font-weight: 400; opacity: .8; font-size: 10.5px; }
.k-ship { background: #dce9f8; color: #1d4e85; } .k-yard { background: #e8e1f5; color: #4f3a85; } .k-audit { background: #fbecd7; color: #8a5208; }
.k-office { background: #dff0e6; color: #23683f; } .k-travel { background: #eceff3; color: #4a5767; } .k-report { background: #e3f1f8; color: #24607e; }
.sw.k-ship, .sw.k-yard, .sw.k-audit, .sw.k-office, .sw.k-travel, .sw.k-report { border: 1px solid rgba(0, 0, 0, .08); }
.sp-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sp-actions .btn { flex: 1; justify-content: center; }
.small-kv { padding: 10px 14px; grid-template-columns: 110px 1fr; font-size: 12.5px; }
.kv.two.small-kv { grid-template-columns: 82px 1fr 70px 1fr; }
.map-card { overflow: hidden; }
.map-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.map-box { background: #eaf1f8; padding: 6px; }
.map .land { fill: #f7f4ec; stroke: #c9c1ad; stroke-width: .5; }
.map .land.other { fill: #eceae4; stroke: #d6d2c8; }
.map.ops, .map.region, .map.route { display: block; width: 100%; height: auto; }
.map.ops .pp { cursor: pointer; }
.map.ops .pp circle { stroke: #fff; stroke-width: .7; }
.map.ops .pp.sel circle { stroke: var(--ink); stroke-width: 1.4; }
.map.ops .cl { cursor: pointer; }
.map.ops .cl circle { fill: #fff; stroke: var(--navy); stroke-width: 1.4; fill-opacity: .92; }
.map.ops .cl text { font-size: 7.5px; font-weight: 700; fill: var(--navy); stroke: none; }
.map.ops text.cl-l { font-size: 6.5px; font-weight: 600; fill: #3b4b5e; }
.map.ops .heat circle { fill: #e3a23b; fill-opacity: .38; stroke: #d0881e; stroke-width: .8; }
.map.ops .heat.hot circle { fill: #c9483b; fill-opacity: .32; stroke: #b23a2e; }
.map.ops .heat text { font-size: 7px; font-weight: 700; fill: #5a3505; stroke: none; }
.map.region .zone { stroke: #fff; stroke-width: .5; }
.map.route { background: #eaf1f8; border-radius: 8px; }
.map.route .leg { stroke: #2f6fb3; stroke-width: 1.3; stroke-dasharray: 3 2; }
.map.route .home circle { fill: #fff; stroke: #2f6fb3; stroke-width: 1.2; }
.map.route .here circle { fill: #c9483b; stroke: #fff; stroke-width: 1; }
.map.route text { font-size: 6.5px; }
.route-box { padding: 0 14px 12px; }
.ring { background: #fff; border: 2px solid var(--navy); }
.heat-sw { background: #f0c37f; } .hot-sw { background: #e09389; }
.op-bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.op-bottom.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr 38px; gap: 8px; align-items: center; font-size: 12px; }
.bar-row .hbar { width: 100%; }
.cnt-b { min-width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--info); }
.cnt-b.bad { background: var(--bad); } .cnt-b.warn { background: #d6912a; } .cnt-b.info { background: #2f6fb3; }
.work-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.weeknav { display: flex; gap: 6px; align-items: center; }
.toggle { display: inline-flex; gap: 8px; align-items: center; border: 0; background: none; color: var(--muted); font-weight: 500; }
.toggle .knob { width: 34px; height: 19px; border-radius: 999px; background: #cfd8e3; position: relative; }
.toggle .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on .knob { background: var(--navy); } .toggle.on .knob::after { left: 17px; } .toggle.on { color: var(--ink); }
.btn.primary-soft { background: #e5eefa; border-color: #b9cfec; color: var(--navy); margin-left: auto; }
.btn.primary-soft:hover { background: #d8e6f8; }
.proposals { margin-bottom: 12px; }
.pager { display: inline-flex; gap: 6px; align-items: center; }
.sched { display: grid; }
.sched-h, .sched-r { display: grid; grid-template-columns: 236px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.sched-h { grid-template-columns: 236px repeat(7, minmax(0, 1fr)); font-size: 11.5px; color: var(--muted); font-weight: 600; background: #fafbfd; }
.sched-h > div { padding: 7px 8px; }
.sched-h > div.today { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.sched-r .who { display: flex; gap: 9px; align-items: center; padding: 8px 10px; border: 0; border-right: 1px solid var(--line); background: none; text-align: left; min-width: 0; }
.sched-r .who:hover { background: #f5f8fc; }
.sched-r .who strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-r .who small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-r.clash .who { box-shadow: inset 3px 0 0 var(--bad); }
.lane { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--lanes), minmax(44px, auto)); gap: 4px 3px; padding: 5px 4px; position: relative; }
.cellbg { grid-row: 1 / -1; border-right: 1px dashed #edf1f5; }
.cellbg.today { background: #f4f8fd; }
.blk { position: relative; z-index: 1; border: 0; border-radius: 6px; padding: 5px 8px; text-align: left; font-size: 11.5px; line-height: 1.25; min-width: 0; overflow: hidden; }
.blk:hover { filter: brightness(.97); box-shadow: 0 0 0 1px rgba(20, 57, 95, .25); }
.blk.sel { box-shadow: 0 0 0 2px var(--navy); }
.blk.one strong, .blk.one small { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.blk.one { padding: 5px 6px; }
.sched-r .who small { white-space: normal; }
.clash-sw { background: var(--bad-bg); border: 1px solid var(--bad); }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; }
.tgrid > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: center; color: var(--navy); }
.tgrid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.tgrid .l { color: var(--muted); font-size: 11.5px; }
.tgrid b { grid-column: 2; font-size: 20px; font-weight: 600; color: var(--ink); }
.sp-head { display: flex; gap: 16px; align-items: center; }

/* superintendent */
.act { display: grid; grid-template-columns: 78px 150px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.act:last-child { border-bottom: 0; }
.act strong { display: block; font-weight: 600; font-size: 13px; }
.act small { display: block; color: var(--muted); font-size: 12px; }
.lvl { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 0; border-radius: 6px; text-align: center; border: 1px solid; }
.lvl.critical { color: var(--bad); background: var(--bad-bg); border-color: #efc2bc; }
.lvl.high { color: #a8650b; background: #fdf3e2; border-color: #f0d6a8; }
.lvl.medium { color: var(--info); background: var(--info-bg); border-color: #bcd5ee; }
.fao { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; padding: 14px; align-items: center; }
.ev-row { display: flex; gap: 12px; align-items: center; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.ev-row small { display: block; color: var(--muted); font-size: 12px; }
.date-tile { width: 42px; display: grid; justify-items: center; line-height: 1.05; border: 1px solid var(--line); border-radius: 7px; padding: 4px 0; flex: none; }
.date-tile b { font-size: 16px; } .date-tile small { font-size: 9.5px; color: var(--muted); font-weight: 600; }

@media (max-width: 1500px) {
  .op-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .act { grid-template-columns: 72px 130px minmax(0, 1fr) auto auto; }
}
@media (max-width: 1100px) {
  .shell.console { grid-template-columns: 68px minmax(0, 1fr); }
  .shell.console .side .lbl, .shell.console .side-g, .shell.console .side .cnt { display: none; }
  .kgrid, .kgrid.six, .kgrid.four, .dd-row1, .dd-row2, .dd-row3, .dd-row4, .ts-row1, .ts-row2, .op-grid, .op-bottom, .op-bottom.five, .vgrid, .eo { grid-template-columns: 1fr; }
}

.eo .donut-row { flex-direction: column; align-items: flex-start; }
.eo .legend-v { width: 100%; }
.ind-l, .eo .lg .grow { white-space: nowrap; }
.eo .lg { gap: 6px; }
.eo .lg .trend { min-width: 26px; }
.eo table.dense td { padding-left: 8px; padding-right: 8px; }
.vt-n { white-space: nowrap; font-size: 20px; }
.wc-d { border-top: 1px solid var(--line); }
.next-b { flex-wrap: wrap; }
.next-b p { min-width: 220px; }
.dd-row3 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.op-main .dense td, .op-main .dense th { padding-left: 9px; padding-right: 9px; }
.op-main .legend-v.small { font-size: 11.5px; }
.kgrid.six .kc-i { width: 40px; height: 40px; }
.kgrid.six .kc-s:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kgrid.six .kc-b > div { min-width: 0; }
.op-bottom.five .donut-row { flex-direction: column; align-items: stretch; }
.op-bottom.five .donut-row .donut { align-self: center; }
.live-h { padding: 9px 14px 6px; border-top: 1px solid var(--line); background: #fbf6ee; }
.pnl .attn-i { padding: 7px 14px; }
.pnl .attn-i .t { font-size: 12.5px; }
.pnl .attn-i .d { font-size: 11.5px; }
.trend { font-size: 11.5px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; min-width: 52px; justify-content: flex-end; }
.trend.muted { color: var(--faint); font-weight: 400; }
.lg .trend { min-width: 34px; }
.map-box { position: relative; }
.map-float { position: absolute; top: 14px; right: 14px; z-index: 2; box-shadow: 0 2px 8px rgba(20, 40, 70, .15); }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; display: grid; gap: 4px; font-size: 11.5px; box-shadow: 0 2px 8px rgba(20, 40, 70, .12); }
.map-legend .sep { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.map-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(20, 40, 70, .12); }
.map-zoom button { border: 0; background: #fff; width: 34px; height: 32px; display: grid; place-items: center; color: var(--ink); }
.map-zoom button + button { border-top: 1px solid var(--line); }
.map-zoom button[disabled] { color: var(--faint); cursor: default; }
.ring.hot { border-color: #c9483b; border-width: 2.5px; }
.map.ops { --k: 1; }
.map.ops .pp circle { stroke-width: calc(.7px * var(--k)); }
.map.ops .cl circle { stroke: #fff; stroke-width: calc(1.6px * var(--k)); fill-opacity: .95; }
.map.ops .cl.hot circle { stroke: #c9483b; stroke-width: calc(2.4px * var(--k)); }
.map.ops .cl text { font-size: calc(7.5px * var(--k)); font-weight: 700; fill: #fff; stroke: none; }
.map.ops text.cl-l { font-size: calc(6.6px * var(--k)); font-weight: 600; fill: #26364a; paint-order: stroke; stroke: #fff; stroke-width: calc(2px * var(--k)); }
.map.ops .rg-l { font-size: calc(8px * var(--k)); letter-spacing: .14em; fill: #9a907b; font-weight: 600; stroke: none; }
.map.ops .city circle { fill: #6d7c8c; }
.map.ops .city text { font-size: calc(5.6px * var(--k)); fill: #4d5c6c; paint-order: stroke; stroke: #fff; stroke-width: calc(1.6px * var(--k)); }
.map.ops .heat text { font-size: calc(7px * var(--k)); }
.map.ops .scale line { stroke: #4d5c6c; stroke-width: calc(1px * var(--k)); }
.map.ops .scale text { font-size: calc(6px * var(--k)); fill: #4d5c6c; stroke: none; }
.spark-card { padding: 10px 14px; display: grid; gap: 4px; }
.sc-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.25; }
.sc-i { width: 28px; height: 28px; border-radius: 7px; background: var(--tint-a); color: var(--navy); display: grid; place-items: center; flex: none; }
.sc-b { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.sc-b .kc-n { font-size: 24px; }
.spark { width: 92px; height: 30px; flex: none; }
.sc-s { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.icon-btn { border: 0; background: none; color: var(--muted); width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; }
.icon-btn:hover { background: #f1f5f9; color: var(--ink); }
.help-list { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.side-pin { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); background: none; color: #d4dfeb; margin-top: 10px; font-weight: 500; text-align: left; }
.side-pin .lbl { flex: 1; }
.side-pin:hover { color: #fff; }
.side-pin + .side-collapse { margin-top: 0; }
.collapsed .side-pin .lbl { display: none; }
.collapsed .side-pin { justify-content: center; padding: 10px 0; }
.side-g { padding-top: 12px; }
.side-nav { grid-template-columns: minmax(0, 1fr); }
.side { overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.pfoot { margin-top: auto; padding: 8px 14px; border-top: 1px solid var(--line); text-align: center; font-size: 12.5px; }
.pfoot .link { display: inline-flex; gap: 4px; align-items: center; }
.pfoot.left { text-align: left; border-top: 0; padding-left: 0; }
