:root {
  --bg: #eef3f6;
  --panel: #fff;
  --ink: #122e40;
  --muted: #536a78;
  --line: #d4e0e7;
  --nav: #061725;
  --nav2: #0a2235;
  --blue: #216b8c;
  --cyan: #67d8e8;
  --green: #17694e;
  --amber: #815517;
  --red: #a92f45;
  --shadow: 0 5px 20px rgba(18, 44, 61, .05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: #175f80; text-underline-offset: 3px; }
button, input, select, textarea { min-height: 44px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #216c92;
  outline-offset: 3px;
}
.sidebar a:focus-visible, .sidebar button:focus-visible, .sidebar summary:focus-visible { outline-color: #91edf4; }
p { margin: 0 0 12px; }
small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 300; padding: 12px 18px; background: #fff; border: 2px solid #216c92; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: grid; grid-template-columns: 266px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; color: #d9e6ed; background: linear-gradient(180deg, #061725, #071b2a); border-right: 1px solid #1e3749; display: flex; flex-direction: column; z-index: 70; }
.sidebar-brand { display: flex; flex: 0 0 auto; min-height: 84px; border-bottom: 1px solid #1e3749; align-items: center; }
.brand { min-width: 0; padding: 18px 14px; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #0d2a3d; border: 1px solid #29475a; display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-size: 13px; letter-spacing: .025em; }
.brand-copy small { display: block; font-size: 13px; color: #a0bdcc; margin-top: 2px; }
.close-menu-btn { display: none; margin-right: 10px; flex: 0 0 44px; color: #d9e6ed; background: transparent; border: 1px solid #395466; border-radius: 8px; font-size: 26px; }
.nav { flex: 1 1 auto; min-height: 0; padding: 18px 10px 24px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #45687b transparent; }
.nav-group { margin-bottom: 22px; }
.nav-label { padding: 0 10px 9px; color: #a0bdcc; font-size: 13px; font-weight: 700; }
.nav-item { min-height: 44px; padding: 9px 10px; border-radius: 9px; display: flex; align-items: center; gap: 10px; color: #bed0db; text-decoration: none; font-size: 14px; margin: 3px 0; transition: background .15s ease, color .15s ease; }
.nav-item:hover { background: #102b3d; color: #fff; }
.nav-item.active { background: #143448; color: #fff; box-shadow: inset 3px 0 #7cdfe9; }
.ico { width: 24px; height: 24px; border: 1px solid #426376; border-radius: 7px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #acd1e0; flex: 0 0 auto; }
.ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active .ico { border-color: #70b6c5; color: #a4f1f5; }
.future-nav { border-top: 1px solid #2b4455; padding-top: 12px; }
.future-nav summary { min-height: 44px; padding: 10px; color: #c0d0db; font-weight: 600; font-size: 14px; }
.future-nav-help { padding: 2px 10px 8px; margin: 0; color: #a0bdcc; font-size: 13px; }
.future-nav .nav-item { font-size: 13px; }
.sidebar-foot { flex: 0 0 auto; padding: 12px; border-top: 1px solid #284153; }
.system-state { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: #0c2536; }
.system-indicator { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #a0bdcc; flex: 0 0 auto; }
.system-state strong, .system-state small { display: block; font-size: 13px; }
.system-state small { color: #a8c0cd; margin-top: 3px; }
.sidebar-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(3, 16, 28, .55); z-index: 60; }
.main { min-width: 0; }
.topbar { min-height: 84px; position: sticky; top: 0; z-index: 30; background: #f8fbfc; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 16px 24px; }
.menu-btn { display: none; width: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 22px; }
.search { flex: 1 1 300px; min-width: 180px; max-width: 570px; min-height: 46px; background: #fff; border: 1px solid #aabfcb; border-radius: 10px; display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.search-label { display: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.search input { border: 0; background: transparent; min-width: 0; width: 100%; flex: 1 1 auto; color: var(--ink); padding: 8px 2px; border-radius: 6px; }
.search input::placeholder { color: #596e7b; opacity: 1; }
.search kbd { flex: 0 0 auto; font-size: 13px; color: #536a78; border: 1px solid #cedde5; background: #f4f7f8; border-radius: 6px; padding: 3px 5px; white-space: nowrap; }
.search-submit { flex: 0 0 auto; background: #eaf4f8; color: #174d68; border: 0; border-left: 1px solid #aabfcb; border-radius: 0 9px 9px 0; padding: 8px 12px; font-weight: 600; }
.search-submit:hover { background: #d9edf4; }
.desk-switch { margin-left: auto; display: none; align-items: center; gap: 8px; font-size: 13px; color: #49616f; white-space: nowrap; }
.desk-switch b { border-left: 1px solid #aabfcb; padding-left: 8px; font-size: 13px; font-weight: 600; }
.top-actions { display: flex; gap: 12px; align-items: center; flex: 0 0 auto; }
.primary-btn, .ghost-btn, .button-link { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none; }
.primary-btn { border: 1px solid #65cad8; color: #082d3c; background: #8ddfe9; }
.primary-btn:hover { background: #71d2df; }
.ghost-btn, .button-link { border: 1px solid #aabfcb; background: #fff; color: #244e63; }
.ghost-btn:hover, .button-link:hover { background: #edf5f8; }
.site-link { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; }
.view-root { padding: 26px 26px 50px; max-width: 1720px; margin: 0 auto; outline: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head > div:first-child { min-width: 0; }
.page-head .kicker { font-size: 13px; letter-spacing: .07em; font-weight: 700; color: #536e7f; margin-bottom: 7px; }
.page-head h1 { margin: 0; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.page-head p { margin: 9px 0 0; color: var(--muted); font-size: 14px; max-width: 780px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.state-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: #e8f3f8; border: 1px solid #aacddd; border-left: 4px solid #2b7997; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; color: #234a60; font-size: 14px; }
.state-banner p { margin: 0; }
.state-banner.info { background: #e8f3f8; border-color: #aacddd; color: #234a60; }
.state-banner.warning { background: #fff5e4; border-color: #e0be87; color: #714b13; }
.state-banner.error { background: #fff0f2; border-color: #e3b1ba; color: #96233a; }
.state-banner strong { font-weight: 650; }
.stat-grid, .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat, .stat-card, .kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.stat-label, .kpi-top { color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-value, .kpi-value { font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin: 12px 0 7px; }
.stat-note, .stat-meta, .kpi-meta { color: var(--muted); font-size: 13px; }
.kpi-icon { width: 28px; height: 28px; border-radius: 8px; background: #eef7f9; display: grid; place-items: center; color: #286781; font-size: 13px; font-weight: 700; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); min-width: 0; margin-bottom: 18px; }
.panel-head { padding: 18px 20px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.panel-body { padding: 0 20px 20px; }
.panel-tag { font-size: 13px; font-weight: 600; color: #385d72; background: #eaf2f6; border-radius: 8px; padding: 5px 8px; }
.action-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #175f80; font-size: 14px; font-weight: 600; }
.toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search-field { flex: 1 1 300px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field > span, .field-label, label.field { font-weight: 600; color: #284d62; font-size: 14px; }
.field input, .field select, .field textarea, .search-field input, .vessel-search input { width: 100%; border: 1px solid #aabfcb; border-radius: 8px; padding: 10px 12px; color: var(--ink); background: #fff; min-width: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: #627581; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { border-color: #216c92; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #a92f45; }
.field-help { font-size: 13px; font-weight: 400; color: var(--muted); margin: 0; }
.search-field { display: grid; gap: 6px; min-width: 0; }
.search-field label { font-weight: 600; }
.filter-group, .vessel-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip { border: 1px solid #aabfcb; background: #fff; border-radius: 9px; padding: 9px 12px; min-height: 44px; font-size: 13px; color: #2b5267; }
.filter-chip:hover { background: #edf5f8; }
.filter-chip.active, .filter-chip[aria-pressed="true"] { background: #10364c; color: #fff; border-color: #10364c; }
.table-wrap, .vessel-table-wrap { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; overscroll-behavior-x: contain; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.data-table th { text-align: left; color: #3f6174; background: #eff5f8; font-size: 13px; font-weight: 650; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid #dfe8ed; color: #355365; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f6fafc; }
.data-table strong { color: #163849; }
.compact-table { min-width: 720px; }
.db-table, .vessel-table { min-width: 900px; }
.db-table th, .vessel-table th { position: sticky; top: 0; z-index: 2; }
.table-link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: #175f80; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cell-note { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; max-width: 280px; }
.source-link { color: #175f80; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; background: #e8f5ef; color: #17694e; font-size: 13px; font-weight: 600; line-height: 1.4; }
.status-pill.blue { background: #eaf4f9; color: #225c78; }
.status-pill.amber, .status-pill.warning { background: #fff2de; color: #815517; }
.status-pill.violet { background: #f0edfb; color: #574592; }
.status-pill.gray, .status-pill.muted { background: #edf1f4; color: #536773; }
.status-pill.red, .status-pill.error { background: #ffecef; color: #9d2940; }
.risk-badge { display: inline-flex; padding: 4px 8px; border-radius: 7px; background: #fff2de; color: #815517; font-size: 13px; font-weight: 600; }
.risk-badge.high { background: #ffecef; color: #9d2940; }
.risk-badge.ok { background: #e8f5ef; color: #17694e; }
.priority-A, .priority-B, .priority-C { display: inline-flex; padding: 4px 8px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.priority-A { background: #e8f5ef; color: #17694e; }
.priority-B { background: #eaf4f9; color: #225c78; }
.priority-C { background: #edf1f4; color: #536773; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.detail-grid > div { min-width: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-grid dt, dl dt { color: var(--muted); font-size: 13px; }
.detail-grid dd, dl dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.empty-state, .loading-state { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--ink); font-size: 18px; margin: 0 0 8px; }
.empty-state p { max-width: 560px; margin: 0 auto 14px; font-size: 14px; }
.loading-state { padding: 28px 20px; }
.loading-state::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 9px; border: 2px solid #b1cbd8; border-top-color: #216c92; border-radius: 50%; vertical-align: -2px; animation: loading 1s linear infinite; }
@keyframes loading { to { transform: rotate(360deg); } }
.radar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.radar-plot { position: relative; min-width: 0; overflow: hidden; background: #092334; color: #c8e4ed; border: 1px solid #2b536a; border-radius: 10px; }
.radar-plot svg { display: block; width: 100%; height: auto; min-height: 250px; }
.radar-plot text { fill: #bad6e1; font-size: 13px; }
.radar-plot .radar-point { fill: #84e0ed; stroke: #092334; stroke-width: 2px; }
.radar-plot circle.selected { fill: #f8d17b; }
.radar-list { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; padding: 2px; }
.radar-vessel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; text-align: left; width: 100%; background: #fff; color: #163c50; border: 1px solid #c5d7e1; border-radius: 9px; padding: 12px; min-height: 58px; }
.radar-vessel:hover { background: #eef6fa; }
.radar-vessel.active, .radar-vessel[aria-pressed="true"] { background: #e8f4f8; border-color: #216c92; box-shadow: inset 3px 0 #216c92; }
.radar-vessel strong { display: block; }
.radar-vessel small, .radar-vessel .muted { display: block; font-size: 13px; color: #536a78; }
.radar-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.form-feedback { min-height: 0; color: #234a60; margin: 12px 0 0; font-size: 14px; }
.form-feedback:empty { display: none; }
.form-feedback[role="alert"], .form-feedback.error { color: #96233a; }
.form-feedback.success { color: #17694e; }
[role="status"], [role="alert"] { overflow-wrap: anywhere; }
.summary-list, .roadmap-list, .integrate-list, .integration-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.summary-list > li, .roadmap-list > li, .integrate-list > li, .integration-list > li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-list > li:last-child, .roadmap-list > li:last-child, .integrate-list > li:last-child, .integration-list > li:last-child { border-bottom: 0; }
.summary-list strong, .roadmap-list strong, .integrate-list strong, .integration-list strong { display: block; font-size: 14px; }
.summary-list small, .roadmap-list small, .integrate-list small, .integration-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.summary-list p, .roadmap-list p, .integrate-list p { margin: 5px 0 0; color: var(--muted); }
.integrate-list > li, .integration-list > li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-card { border: 1px solid var(--line); border-radius: 10px; background: #f7fbfd; padding: 16px; color: var(--ink); text-decoration: none; }
.quick-card:hover { border-color: #8ab2c5; background: #eaf4f8; }
.quick-card strong { display: block; font-size: 14px; }
.quick-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.muted { color: var(--muted); }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); background: #0a293d; color: #edf9fc; border: 1px solid #375d72; padding: 14px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; z-index: 200; }
dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; color: var(--ink); background: #fff; border: 1px solid #9bb5c3; border-radius: 14px; box-shadow: 0 24px 90px rgba(0, 18, 32, .28); overflow: auto; }
dialog::backdrop { background: rgba(3, 18, 31, .58); }
.dialog-head, .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-head, .dialog-header { position: sticky; top: 0; z-index: 3; background: var(--panel); }
.dialog-head h2, .dialog-header h2 { margin: 0; font-size: 23px; line-height: 1.3; }
.dialog-head p, .dialog-header p { margin: 5px 0 0; color: var(--muted); }
.dialog-body { padding: 24px; }
.dialog-close, .close-dialog, dialog .close-btn { flex: 0 0 44px; width: 44px; border: 1px solid #aabfcb; border-radius: 8px; background: #fff; color: #244e63; font-size: 24px; }
.dialog-foot, .dialog-footer { padding: 16px 24px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: #f7fafc; }
@media (min-width: 1550px) { .desk-switch, .search-label { display: flex; } }
@media (max-width: 1200px) {
  .stat-grid, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search kbd { display: none; }
  .topbar { padding: 16px 20px; gap: 10px; }
  .radar-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 288px; max-width: calc(100vw - 32px); transform: translateX(-101%); transition: transform .18s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0, 0, 0, .25); }
  body.menu-open { overflow: hidden; }
  .menu-btn, .close-menu-btn { display: block; }
  .sidebar-brand .brand { flex: 1 1 auto; padding: 16px 10px; }
  .sidebar-brand .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .topbar { padding: 12px 14px; }
  .view-root { padding: 22px 16px 36px; }
  .radar-layout { grid-template-columns: 1fr; }
  .radar-list { max-height: 360px; }
  .page-head { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 144px; }
  .topbar { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .menu-btn { grid-column: 1; grid-row: 1; }
  .top-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 14px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; width: 100%; min-width: 0; }
  .site-link { font-size: 13px; }
  .top-actions .primary-btn { padding-inline: 10px; font-size: 13px; }
  .view-root { padding: 20px 12px 32px; }
  .page-head { gap: 14px; }
  .page-head p { font-size: 14px; }
  .head-actions { width: 100%; }
  .head-actions > * { flex: 1 1 auto; }
  .stat-grid, .kpis { gap: 10px; }
  .stat, .stat-card, .kpi { padding: 14px 12px; }
  .stat-value, .kpi-value { font-size: 26px; }
  .panel-head { flex-wrap: wrap; padding: 16px; }
  .panel-body { padding: 0 16px 16px; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .filter-group, .vessel-filter-row { gap: 6px; }
  .filter-chip { flex: 1 0 auto; padding-inline: 9px; }
  .toolbar { align-items: stretch; }
  .toolbar > .field, .toolbar > .search-field { width: 100%; }
  .integrate-list > li, .integration-list > li { flex-wrap: wrap; }
  .quick-grid { grid-template-columns: 1fr; }
  .dialog-head, .dialog-header, .dialog-body, .dialog-foot, .dialog-footer { padding: 18px; }
  dialog { max-height: calc(100dvh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Real AIS fleet map and API-backed notifications. */
.badge { margin-left: auto; min-width: 24px; min-height: 24px; padding: 2px 7px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #224e66; color: #e4f9fc; font-size: 13px; font-weight: 700; }
.fleet-map { width: 100%; min-height: 380px; height: 550px; position: relative; isolation: isolate; z-index: 0; background: #d9edf4; border: 1px solid #bdced8; border-radius: 10px; }
.fleet-map-panel { min-width: 0; }
.radar-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.radar-toolbar .field { flex: 1 1 180px; }
.radar-status { margin-bottom: 16px; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 10px 0; color: #355a70; font-size: 13px; }
.radar-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #236c9b; }
.legend-dot.fleet { background: #17694e; }
.legend-dot.other { background: #236c9b; }
.legend-dot.stale { background: #a96d16; }
.fleet-tag { display: inline-block; padding: 1px 5px; border-radius: 4px; background: #e5f2e9; color: #17694e; font-size: 11px; }
.map-sea-label, .map-port-label { white-space: nowrap; text-align: center; font-size: 11px; color: #3c6576; text-shadow: 0 1px 2px #fff; }
.map-sea-label { letter-spacing: 1px; font-weight: 600; }
.map-port-label { color: #304d54; font-size: 12px; }
.fleet-map .leaflet-container, .leaflet-container { font-family: inherit; font-size: 13px; }
.leaflet-popup-content-wrapper { background: #fff; color: #173b50; border: 1px solid #a9c1ce; border-radius: 9px; }
.leaflet-popup-content { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.leaflet-popup-content strong { font-size: 14px; color: #0e354b; }
.leaflet-popup-content p { margin: 8px 0; }
.leaflet-popup-content small { font-size: 13px; color: #466777; }
.leaflet-popup-content a { color: #175f80; }
.leaflet-popup-tip { background: #fff; }
.leaflet-container a.leaflet-popup-close-button { width: 44px; height: 44px; padding: 4px; font-size: 24px; line-height: 32px; color: #31566a; }
.leaflet-container .leaflet-popup-content { margin: 18px 32px 18px 18px; }
.leaflet-control-zoom a { min-width: 44px; min-height: 44px; line-height: 44px; color: #173b50; }
.leaflet-container .leaflet-control-attribution { font-size: 13px; line-height: 1.5; background: rgba(255, 255, 255, .96); color: #35586d; }
.leaflet-control-attribution a { color: #175f80; }
.leaflet-container a:focus-visible { outline: 3px solid #216c92; outline-offset: 2px; }
.cc-ship { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 21px solid #236c9b; filter: drop-shadow(0 0 2px #fff); transform-origin: 50% 55%; }
.cc-ship.priority { border-bottom-color: #17694e; }
.ship-marker, .fleet-marker { color: #17694e; }
.track { display: inline-flex; padding: 4px 8px; border-radius: 7px; font-size: 13px; font-weight: 600; background: #edf1f4; color: #536773; }
.track.live, .panel-tag.live { background: #e8f5ef; color: #17694e; }
.track.wait { background: #eaf4f9; color: #225c78; }
.track.missing { background: #fff2de; color: #815517; }
.fleet-missing, .fleet-unpositioned { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fleet-missing h3, .fleet-unpositioned h3 { font-size: 16px; margin: 0 0 8px; }
.fleet-missing p, .fleet-unpositioned p { font-size: 13px; color: var(--muted); }
.fleet-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
#alertsList, .alerts-list { display: grid; gap: 12px; }
.alert-item { display: grid; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-wrap: anywhere; }
.alert-item.alert-unread, .alert-unread { background: #f0f8fb; border-left: 4px solid #216c92; }
.alert-item h2, .alert-item h3, .alert-item strong { margin: 0; font-size: 16px; line-height: 1.4; color: #183e52; }
.alert-item p { margin: 0; color: #34576c; font-size: 14px; }
.alert-item small, .alert-item time, .alert-meta { color: #536a78; font-size: 13px; }
.alert-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.alert-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.alert-item > button, .alert-read-btn { justify-self: start; min-height: 44px; padding: 9px 12px; border: 1px solid #aabfcb; border-radius: 8px; background: #fff; color: #244e63; font-size: 14px; }
.alert-item > button:hover, .alert-read-btn:hover { background: #e6f1f6; }

/* Authenticated company database. */
.clients-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.clients-counts .kpi { padding: 15px 17px; }
.clients-counts .kpi-value { font-size: 27px; margin-bottom: 0; }
.clients-filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.clients-table { min-width: 760px; }
.clients-table td:first-child { min-width: 175px; }
.clients-table td:nth-child(2) { max-width: 310px; }
.clients-table td { overflow-wrap: anywhere; }
.clients-table .ghost-btn { white-space: nowrap; }
.clients-dialog { width: min(950px, calc(100vw - 32px)); }
.clients-dialog .dialog-head { position: sticky; top: 0; background: #fff; z-index: 1; }
.clients-dialog h2 { overflow-wrap: anywhere; }
.clients-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.clients-section { margin-bottom: 24px; }
.clients-section > h3 { margin: 0 0 16px; font-size: 17px; }
.clients-contact-lines { display: grid; gap: 5px; }
.clients-edit-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.clients-edit-fields textarea { min-height: 84px; }
.clients-evidence { margin: 16px 0 0; overflow-wrap: anywhere; }
.clients-evidence h3 { margin: 0 0 6px; font-size: 14px; color: #315e74; }
.clients-evidence p { white-space: pre-wrap; margin: 0; font-size: 14px; }
.clients-research { border-top: 1px solid var(--line); padding-top: 6px; }
.clients-research > summary, .clients-draft > summary { padding: 12px 0; cursor: pointer; font-weight: 650; font-size: 15px; }
.clients-research-body { padding-bottom: 4px; }
.clients-sources { padding-left: 20px; margin: 10px 0 0; }
.clients-sources li { margin-bottom: 9px; overflow-wrap: anywhere; font-size: 13px; }
.clients-draft { margin-top: 14px; border: 1px solid #d7ba88; background: #fff8ed; border-radius: 8px; padding: 0 14px 14px; }
.clients-draft .detail-grid { margin-top: 14px; }
.clients-draft dd { white-space: pre-wrap; font-weight: 400; }
.clients-draft button { margin-top: 14px; }
#clientConflict:not(:empty) { margin-top: 12px; }
#clientConflict > .field-help { margin-top: 8px; }
@media (max-width: 1200px) {
  .clients-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .clients-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .clients-counts .kpi:first-child { grid-column: 1 / -1; }
  .clients-counts .kpi { padding: 12px; }
  .clients-filters { grid-template-columns: 1fr; }
  .clients-dialog .dialog-head, .clients-dialog .dialog-body { padding: 16px; }
  .clients-dialog .dialog-head h2 { font-size: 20px; }
  .clients-dialog .form-grid, .clients-dialog .detail-grid { grid-template-columns: 1fr; }
  .clients-dialog .form-actions .primary-btn { width: 100%; }
}

/* Authenticated client support desk. */
.support-login { max-width: 680px; margin: 28px auto; }
.support-login form { display: grid; gap: 16px; }
.support-login .form-actions, .support-login .field-help { margin: 0; }
.support-login .panel-body { padding-top: 8px; }
.support-operator { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.support-operator strong { color: var(--ink); }
.support-provider { padding: 15px 18px; border: 1px solid #b9d1dd; background: #f5fbfd; border-radius: 11px; margin-bottom: 20px; }
.support-provider-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.support-provider p { color: var(--muted); margin: 9px 0 0; font-size: 13px; }
.support-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.support-count { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
.support-count span { font-size: 13px; font-weight: 600; }
.support-count strong { color: var(--ink); font-size: 27px; line-height: 1; }
.support-count:hover { border-color: #6d9db5; }
.support-count[aria-pressed="true"] { background: #e6f5f8; border-color: #26718e; box-shadow: inset 0 -3px #26718e; }
.support-count[aria-pressed="true"] span { color: #174d66; }
.support-filters { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; margin-bottom: 18px; }
.support-workspace { display: grid; grid-template-columns: minmax(280px, 345px) minmax(0, 1fr); gap: 18px; align-items: start; }
.support-workspace > .panel { min-width: 0; margin-bottom: 0; }
.support-queue .panel-head { padding: 18px; }
.support-queue-list { padding: 0 10px 12px; display: grid; gap: 7px; max-height: 740px; overflow-y: auto; scrollbar-width: thin; }
.support-queue-item { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; padding: 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; text-align: left; overflow-wrap: anywhere; }
.support-queue-item:hover { background: #f3f8fb; border-color: #91b8ca; }
.support-queue-item[aria-pressed="true"] { background: #eaf5f9; border-color: #397e9d; box-shadow: inset 3px 0 #26718e; }
.support-queue-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.support-queue-top > strong { font-size: 13px; }
.support-queue-topic { font-size: 15px; font-weight: 650; line-height: 1.35; }
.support-queue-preview { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.support-queue-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.support-queue-item > .status-pill { align-self: flex-start; }
#supportQueueFeedback .state-banner { margin: 0 10px 12px; }
#supportDeskFeedback:not(:empty) { margin-bottom: 16px; }
.support-conversation .panel-head { gap: 12px; }
.support-conversation .panel-head h2 { font-size: 19px; overflow-wrap: anywhere; }
.support-conversation-head { flex-wrap: wrap; }
.support-conversation-head > div { min-width: 0; }
#supportConversationStatus { display: flex; flex-wrap: wrap; gap: 7px; }
.support-case-summary { border: 1px solid #c3dbe5; background: #f0f7fa; border-radius: 9px; padding: 14px 16px; margin-bottom: 16px; overflow-wrap: anywhere; }
.support-case-summary h3 { margin: 0 0 7px; font-size: 13px; color: #315e74; }
.support-case-summary p { margin: 0; white-space: pre-wrap; }
.support-case-summary .field-help { margin-top: 10px; }
.support-case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.support-status-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.support-status-form select { min-width: 0; color: var(--ink); border: 1px solid #aabfcb; border-radius: 8px; padding: 8px 30px 8px 10px; background: #fff; max-width: 100%; }
.support-transcript-title, .support-reply h3 { margin: 20px 0 12px; font-size: 16px; }
.support-transcript { display: flex; flex-direction: column; gap: 12px; padding: 14px; max-height: 480px; min-height: 160px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfc; scrollbar-width: thin; }
.support-message { align-self: flex-start; max-width: 92%; border: 1px solid #d5e0e6; border-radius: 10px; padding: 11px 14px; background: #fff; overflow-wrap: anywhere; min-width: 0; }
.support-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.support-message-meta strong { font-weight: 650; }
.support-message p { margin: 0; line-height: 1.6; white-space: pre-wrap; }
.support-message-assistant, .support-message-operator { align-self: flex-end; background: #e9f4f8; border-color: #bdd7e3; }
.support-message-operator { background: #ebf5ef; border-color: #c1dbc9; }
.support-message-system { align-self: center; background: transparent; border: 0; color: var(--muted); font-size: 13px; max-width: 100%; }
.support-reply { padding-top: 4px; }
.support-reply .field { margin-bottom: 12px; }
.support-reply textarea { resize: vertical; min-height: 96px; }
.support-draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.support-draft-actions .field-help { margin: 0; }
.support-draft-preview { border: 1px solid #bcd8c9; background: #f4faf6; border-radius: 10px; padding: 14px; margin-top: 16px; }
.support-draft-preview textarea { min-height: 125px; background: #fff; }
.support-draft-preview > .primary-btn { width: 100%; }
@media (max-width: 1200px) {
  .support-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-workspace { grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .support-workspace { grid-template-columns: 1fr; }
  .support-queue-list { max-height: 370px; }
}
@media (max-width: 750px) {
  .support-workspace { grid-template-columns: 1fr; }
  .support-queue-list { max-height: 350px; }
  .support-filters { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .support-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .support-count:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .support-count { padding: 12px; gap: 7px; }
  .support-count strong { font-size: 25px; }
  .support-status-form { width: 100%; }
  .support-status-form select { flex: 1 1 140px; }
  .support-status-form button { flex: 1 1 auto; }
  .support-case-actions > button { width: 100%; }
  .support-message { max-width: 100%; }
  .support-transcript { max-height: 420px; padding: 10px; }
  .support-draft-actions > button { width: 100%; }
  .support-provider { padding: 12px; }
}
@media (max-width: 900px) {
  .fleet-map { height: 460px; }
}
@media (max-width: 650px) {
  .fleet-map { height: 400px; }
  .radar-toolbar { align-items: stretch; }
  .radar-toolbar > .field { flex-basis: 100%; }
  .radar-toolbar > button { width: 100%; }
  .alert-item { padding: 14px; }
  .alert-item > button, .alert-read-btn { width: 100%; }
  .leaflet-container .leaflet-control-attribution { max-width: calc(100vw - 55px); font-size: 13px; }
}


/* EKHEEV_DOMAIN_NAV_20261025: accessible link back to the public company site */
.sidebar-foot .site-shortcut{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;margin-bottom:11px;border:1px solid #345568;border-radius:10px;background:rgba(27,81,105,.3);color:#d7edf5;text-decoration:none;font-size:13px;font-weight:650;transition:background .18s ease,border-color .18s ease}
.sidebar-foot .site-shortcut:hover{background:#153c53;border-color:#74cad8;color:#fff}
.sidebar-foot .site-shortcut:focus-visible{outline:3px solid #7bdce8;outline-offset:2px}
.site-shortcut-icon{font-size:17px;line-height:1;flex:0 0 auto;color:#9beaf3}


/* Full width Maritime mailbox workspace, authenticated by Roundcube. */
.mail-open-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border:1px solid #b2d6e3;border-radius:10px;background:#eaf6fa;color:#174c64;text-decoration:none;font-weight:700;font-size:13px}
.mail-open-link:hover{background:#d6eefa}
.mail-workspace{border:1px solid #b8d0dc;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 14px 40px rgba(18,44,61,.08)}
.mail-workspace-top{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:13px 18px;background:linear-gradient(110deg,#071b2d,#153f58);color:#f3fbff}
.mail-workspace-account{display:flex;align-items:center;gap:12px;min-width:0}
.mail-workspace-account strong{display:block;overflow-wrap:anywhere;font-size:14px}
.mail-workspace-account small{display:block;color:#b9d8e7;font-size:12px;margin-top:2px}
.mail-workspace-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:11px;background:#23688b;color:#fff;font-size:20px}
.mail-reload{background:#194b66;color:#edfbff;border:1px solid #72a8c2;border-radius:9px;padding:9px 13px;min-height:40px;cursor:pointer}
.mail-reload:hover{background:#286587}
.mail-workspace-frame{display:block;width:100%;height:clamp(560px,calc(100dvh - 270px),1250px);border:0;background:#0e1116}
.mail-workspace-note{margin:0;padding:10px 17px;font-size:12px;color:#4e6674;border-top:1px solid #d7e2e8;background:#f4f8fa;line-height:1.5}
@media(max-width:760px){.mail-workspace-frame{height:calc(100dvh - 245px);min-height:550px}.mail-workspace-top{padding:10px 12px}.mail-workspace-account small{font-size:11px}.mail-workspace-note{padding:8px 12px}}
