:root {
  --rc5-primary: #0f3b5e;
  --rc5-primary-strong: #092b47;
  --rc5-primary-soft: #1c5a82;
  --rc5-primary-tint: #e8f1f7;
  --rc5-accent: #f28c38;
  --rc5-accent-strong: #d76d16;
  --rc5-bg: #edf3f8;
  --rc5-bg-deep: #dce9f3;
  --rc5-surface: #ffffff;
  --rc5-surface-raised: #ffffff;
  --rc5-surface-soft: #f7fafc;
  --rc5-text: #1e293b;
  --rc5-text-muted: #64748b;
  --rc5-text-inverse: #ffffff;
  --rc5-border: #d7e1ea;
  --rc5-border-strong: #b9c9d8;
  --rc5-success: #24845a;
  --rc5-success-soft: #e9f7f0;
  --rc5-warning: #b66b0e;
  --rc5-warning-soft: #fff6e7;
  --rc5-danger: #b43d3d;
  --rc5-danger-soft: #fff0f0;
  --rc5-info: #2c6fa8;
  --rc5-info-soft: #edf6fd;
  --rc5-pink: #a83d78;
  --rc5-pink-soft: #fceaf2;
  --rc5-shadow-sm: 0 2px 8px rgba(15, 59, 94, 0.08);
  --rc5-shadow-md: 0 10px 30px rgba(15, 59, 94, 0.11);
  --rc5-shadow-lg: 0 24px 70px rgba(4, 32, 54, 0.24);
  --rc5-radius-sm: 8px;
  --rc5-radius-md: 12px;
  --rc5-radius-lg: 18px;
  --rc5-radius-xl: 26px;
  --rc5-topbar-height: 72px;
  --rc5-content-width: 1480px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --rc5-primary: #081f34;
  --rc5-primary-strong: #051522;
  --rc5-primary-soft: #19476a;
  --rc5-primary-tint: #17344b;
  --rc5-bg: #0e1824;
  --rc5-bg-deep: #0a121c;
  --rc5-surface: #172432;
  --rc5-surface-raised: #1d2d3d;
  --rc5-surface-soft: #12202d;
  --rc5-text: #eef5fb;
  --rc5-text-muted: #9fb2c4;
  --rc5-border: #304559;
  --rc5-border-strong: #466078;
  --rc5-success: #55c58b;
  --rc5-success-soft: #153b2b;
  --rc5-warning: #f0b35b;
  --rc5-warning-soft: #3b2d16;
  --rc5-danger: #ef8585;
  --rc5-danger-soft: #3d2023;
  --rc5-info: #78b8e6;
  --rc5-info-soft: #18334a;
  --rc5-pink: #e6a0c9;
  --rc5-pink-soft: #3a2130;
  --rc5-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
  --rc5-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.28);
  --rc5-shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
}

body.rc5-document, body.rc5-document *, body.rc5-document *::before, body.rc5-document *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body.rc5-document {
  min-height: 100vh;
  margin: 0;
  background: var(--rc5-bg);
  color: var(--rc5-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(body.rc5-document button, body.rc5-document input, body.rc5-document select, body.rc5-document textarea) { font: inherit; }
:where(body.rc5-document button, body.rc5-document a, body.rc5-document summary) { touch-action: manipulation; }
:where(body.rc5-document button) { color: inherit; }
:where(body.rc5-document a) { color: var(--rc5-info); }
:where(body.rc5-document img, body.rc5-document svg) { display: block; max-width: 100%; }
:where(body.rc5-document [hidden]) { display: none !important; }

.rc5-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rc5-skip-link {
  position: fixed;
  left: 18px;
  top: -100px;
  z-index: 5000;
  padding: 10px 16px;
  border-radius: var(--rc5-radius-sm);
  background: var(--rc5-accent);
  color: #1b2733;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--rc5-shadow-md);
}
.rc5-skip-link:focus { top: 14px; }

:where(body.rc5-document button, body.rc5-document a, body.rc5-document input, body.rc5-document select, body.rc5-document textarea, body.rc5-document summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rc5-accent) 80%, white 20%);
  outline-offset: 3px;
}

/* Authentication */
.rc5-login {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 30px 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(83, 170, 222, 0.34), transparent 28%),
    radial-gradient(circle at 80% 24%, rgba(242, 140, 56, 0.18), transparent 24%),
    linear-gradient(145deg, #082b48 0%, #0f3b5e 48%, #1c5a82 100%);
}
.rc5-auth-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.rc5-auth-scene::before,
.rc5-auth-scene::after,
.rc5-auth-scene span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.rc5-auth-scene::before { width: 520px; height: 520px; left: -180px; bottom: -260px; }
.rc5-auth-scene::after { width: 430px; height: 430px; right: -170px; top: -210px; }
.rc5-auth-scene span:nth-child(1) { width: 760px; height: 150px; left: 8%; bottom: -85px; border-radius: 50%; background: rgba(255,255,255,.04); }
.rc5-auth-scene span:nth-child(2) { width: 920px; height: 170px; right: -12%; bottom: -120px; border-radius: 50%; background: rgba(255,255,255,.035); }
.rc5-auth-scene span:nth-child(3) { width: 12px; height: 12px; right: 22%; top: 18%; background: var(--rc5-accent); border: 0; box-shadow: 0 0 34px rgba(242, 140, 56, 0.8); }
.rc5-auth-card {
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--rc5-radius-xl);
  background: color-mix(in srgb, var(--rc5-surface) 96%, transparent 4%);
  box-shadow: var(--rc5-shadow-lg);
  backdrop-filter: blur(18px);
}
.rc5-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px 19px;
  border-bottom: 1px solid var(--rc5-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--rc5-primary-tint) 72%, var(--rc5-surface) 28%), var(--rc5-surface));
}
.rc5-auth-brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--rc5-primary);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(15,59,94,.24);
}
.rc5-auth-brand div { display: grid; gap: 1px; }
.rc5-auth-brand strong { color: var(--rc5-primary); font-size: 20px; line-height: 1.15; }
:root[data-theme="dark"] .rc5-auth-brand strong { color: var(--rc5-text); }
.rc5-auth-brand small { color: var(--rc5-text-muted); }
.rc5-auth-form { display: grid; gap: 16px; margin: 0; padding: 27px 28px 24px; background: transparent; border: 0; box-shadow: none; }
.rc5-auth-heading { display: block; margin: 0 0 4px; }
.rc5-auth-heading h1 { margin: 2px 0 5px; color: var(--rc5-text); font-size: clamp(24px, 4vw, 31px); line-height: 1.14; }
.rc5-auth-heading p { margin: 0; color: var(--rc5-text-muted); }
.rc5-eyebrow { color: var(--rc5-accent-strong) !important; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rc5-auth-form label { display: grid; gap: 7px; color: var(--rc5-text); font-weight: 700; }
.rc5-auth-form label small { color: var(--rc5-text-muted); font-weight: 500; }
.rc5-auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--rc5-border-strong);
  border-radius: 11px;
  background: var(--rc5-surface-soft);
  color: var(--rc5-text);
  padding: 10px 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rc5-auth-form input:focus { border-color: var(--rc5-primary-soft); background: var(--rc5-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc5-primary-soft) 18%, transparent); outline: none; }
.rc5-primary-action,
.rc5-auth-form button[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--rc5-primary), var(--rc5-primary-soft));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(15,59,94,.2);
  cursor: pointer;
}
.rc5-auth-form button[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.04); }
.rc5-access-panel { border-top: 1px solid var(--rc5-border); }
.rc5-access-panel summary { padding: 17px 28px; color: var(--rc5-primary-soft); font-weight: 750; cursor: pointer; list-style-position: inside; }
:root[data-theme="dark"] .rc5-access-panel summary { color: var(--rc5-info); }
.rc5-access-panel[open] summary { border-bottom: 1px solid var(--rc5-border); background: var(--rc5-surface-soft); }
.rc5-auth-form--secondary { padding-top: 22px; }
.rc5-auth-footer { padding: 14px 28px 18px; color: var(--rc5-text-muted); font-size: 12px; text-align: center; }
.rc5-form-status { min-height: 1.5em; margin: 0; color: var(--rc5-text-muted); font-weight: 700; }
.rc5-form-status[data-status-type="error"], .rc5-auth-form [data-password-error]:not(:empty) { color: var(--rc5-danger); }
.rc5-form-status[data-status-type="success"] { color: var(--rc5-success); }
.rc5-form-status[data-status-type="info"] { color: var(--rc5-info); }
.rc5-password-field { position: relative; display: flex; }
.rc5-password-field input { width: 100%; padding-right: 42px; }
.rc5-password-toggle { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--rc5-text-muted); cursor: pointer; }
.rc5-password-toggle:hover { color: var(--rc5-text); background: color-mix(in srgb, var(--rc5-primary-soft) 14%, transparent); }
.rc5-password-toggle:focus-visible { outline: 2px solid var(--rc5-focus); outline-offset: 2px; }

/* Shell */
.rc5-shell { min-height: 100vh; background: var(--rc5-bg); }
.rc5-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--rc5-topbar-height);
  color: var(--rc5-text-inverse);
  background: linear-gradient(135deg, var(--rc5-primary-strong), var(--rc5-primary));
  box-shadow: 0 3px 14px rgba(4, 30, 50, .22);
}
.rc5-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rc5-accent), transparent); opacity: .8; }
.rc5-topbar__inner {
  width: min(100%, 1760px);
  min-height: var(--rc5-topbar-height);
  margin: 0 auto;
  padding: 9px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.rc5-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.rc5-brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.rc5-brand__mark svg { width: 29px; height: 29px; fill: none; stroke: #fff; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.rc5-brand__text { display: flex; align-items: baseline; gap: 5px; }
.rc5-brand__text strong { font-size: 19px; letter-spacing: .01em; }
.rc5-brand__text small { color: var(--rc5-accent); font-size: 12px; font-weight: 900; letter-spacing: .11em; }
.rc5-primary-navigation { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 3px; overflow-x: auto; scrollbar-width: thin; }
.rc5-primary-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.rc5-primary-navigation a:hover { color: #fff; background: rgba(255,255,255,.09); }
.rc5-primary-navigation a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.13); }
.rc5-primary-navigation a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--rc5-accent); }
.rc5-nav-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.rc5-nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc5-user { display: flex; align-items: center; gap: 9px; }
.rc5-user__identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rc5-user__avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; clip-path: circle(50%); background: var(--rc5-accent); color: #172033; font-weight: 900; }
.rc5-user-cell { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rc5-user-cell .rc5-user__avatar { background: var(--rc5-primary-tint); color: var(--rc5-primary); }
.rc5-user__text { display: grid; min-width: 0; line-height: 1.15; }
.rc5-user__text strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.rc5-user__text small { color: rgba(255,255,255,.62); font-size: 11px; text-transform: uppercase; }
.rc5-icon-button, .rc5-logout-button, .rc5-nav-toggle {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
}
.rc5-icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font-size: 20px; }
.rc5-logout-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; font-weight: 700; }
.rc5-icon-button:hover, .rc5-logout-button:hover, .rc5-nav-toggle:hover { background: rgba(255,255,255,.14); }
.rc5-nav-toggle { display: none; width: 40px; height: 40px; font-size: 20px; }
.rc5-topbar-status-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.rc5-topbar-status-icon--offline { color: var(--rc5-danger); }
.rc5-sync-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--rc5-text-muted); }
.rc5-sync-status-dot--success { background: var(--rc5-success); }
.rc5-sync-status-dot--warning { background: var(--rc5-warning); }
.rc5-sync-status-dot--muted { background: var(--rc5-text-muted); }

.rc5-workspace { position: relative; isolation: isolate; min-height: calc(100vh - var(--rc5-topbar-height)); overflow: clip; }
.rc5-workspace::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: var(--rc5-topbar-height) 0 0;
  background:
    radial-gradient(circle at 84% 7%, color-mix(in srgb, var(--rc5-primary-soft) 11%, transparent), transparent 28%),
    linear-gradient(180deg, var(--rc5-bg) 0%, color-mix(in srgb, var(--rc5-bg-deep) 48%, var(--rc5-bg) 52%) 100%);
}
.rc5-ocean-decoration { position: fixed; z-index: -2; left: 0; right: 0; bottom: 0; height: 170px; overflow: hidden; pointer-events: none; opacity: .62; }
.rc5-ocean-decoration::before,
.rc5-ocean-decoration::after { content: ""; position: absolute; left: -8%; width: 116%; border-radius: 50% 50% 0 0; }
.rc5-ocean-decoration::before { height: 120px; bottom: -55px; background: color-mix(in srgb, var(--rc5-primary-soft) 9%, transparent); transform: rotate(-1deg); }
.rc5-ocean-decoration::after { height: 95px; bottom: -45px; background: color-mix(in srgb, var(--rc5-primary-soft) 12%, transparent); transform: rotate(1.5deg); }
.rc5-ocean-decoration__wake { position: absolute; height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--rc5-primary-soft) 26%, transparent); }
.rc5-ocean-decoration__wake--near { width: 65px; left: 13%; bottom: 54px; }
.rc5-ocean-decoration__wake--far { width: 110px; left: 71%; bottom: 72px; opacity: .9; }
.rc5-ocean-decoration__ship { position: absolute; left: -82px; bottom: 38px; width: 62px; height: 38px; animation: rc5-ship-sail 28s linear infinite; }
.rc5-ocean-decoration__ship::before,
.rc5-ocean-decoration__ship::after { content: ""; position: absolute; display: block; }
.rc5-ocean-decoration__ship::before { left: 2px; right: 0; bottom: 0; height: 14px; border-radius: 3px 3px 15px 18px; background: color-mix(in srgb, var(--rc5-primary) 55%, var(--rc5-surface)); clip-path: polygon(0 0, 100% 0, 83% 100%, 18% 100%); }
.rc5-ocean-decoration__ship::after { left: 22px; bottom: 12px; width: 25px; height: 24px; background: color-mix(in srgb, var(--rc5-accent) 76%, #fff); clip-path: polygon(0 100%, 0 0, 100% 100%); transform-origin: 0 100%; animation: rc5-ship-sail-breathe 2.8s ease-in-out infinite; }
@keyframes rc5-ship-sail { from { left: -82px; } to { left: calc(100% + 82px); } }
@keyframes rc5-ship-sail-breathe { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(-4deg); } }
.rc5-screen {
  position: relative;
  z-index: 1;
  width: min(100%, var(--rc5-content-width));
  min-height: calc(100vh - var(--rc5-topbar-height) - 44px);
  margin: 0 auto;
  padding: 24px clamp(16px, 2vw, 30px) 136px;
  outline: none;
}
.rc5-screen > section { width: 100%; }
.rc5-footer { position: relative; z-index: 1; width: min(100%, var(--rc5-content-width)); margin: 0 auto; padding: 8px 30px 16px; display: flex; justify-content: space-between; gap: 16px; color: var(--rc5-text-muted); font-size: 12px; }

/* Shared screen surfaces */
.rc5-screen > section > header,
.rc5-screen [data-stable-view-root] > header,
.rc5-notifications-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid var(--rc5-border);
  border-radius: var(--rc5-radius-lg);
  background: color-mix(in srgb, var(--rc5-surface) 96%, transparent 4%);
  box-shadow: var(--rc5-shadow-sm);
}
.rc5-screen header h1,
.rc5-screen header h2,
.rc5-screen header h3 { margin: 0; color: var(--rc5-text); line-height: 1.2; }
.rc5-screen header h1 { font-size: clamp(25px, 3vw, 36px); }
.rc5-screen header h2 { font-size: clamp(22px, 2.4vw, 30px); }
.rc5-screen header h3 { font-size: 22px; }
.rc5-screen header p { max-width: 760px; margin: 5px 0 0; color: var(--rc5-text-muted); }
.rc5-screen header > label { min-width: min(340px, 42vw); }
.rc5-screen header > form { flex: 0 1 auto; }

:where(.rc5-screen, .rc5-modal) :where(form) {
  display: grid;
  gap: 13px;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid var(--rc5-border);
  border-radius: var(--rc5-radius-md);
  background: var(--rc5-surface-raised);
  box-shadow: var(--rc5-shadow-sm);
}
.rc5-screen :where(header form) {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
:where(.rc5-screen, .rc5-modal) :where(label) { display: grid; gap: 6px; color: var(--rc5-text); font-size: 13px; font-weight: 760; }
:where(.rc5-screen, .rc5-modal) :where(input, select, textarea) {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--rc5-border-strong);
  border-radius: 9px;
  background: var(--rc5-surface);
  color: var(--rc5-text);
  padding: 8px 11px;
  transition: border-color .17s ease, box-shadow .17s ease, background .17s ease;
}
:where(.rc5-screen, .rc5-modal) textarea { min-height: 110px; resize: vertical; }
:where(.rc5-screen, .rc5-modal) :where(input, select, textarea):focus { border-color: var(--rc5-primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc5-primary-soft) 16%, transparent); outline: none; }
:where(.rc5-screen, .rc5-modal) input[type="checkbox"], :where(.rc5-screen, .rc5-modal) input[type="radio"] { width: 17px; min-height: 17px; padding: 0; accent-color: var(--rc5-primary-soft); }
:where(.rc5-screen, .rc5-modal) label:has(> input[type="checkbox"]), :where(.rc5-screen, .rc5-modal) label:has(> input[type="radio"]) { display: flex; align-items: center; gap: 8px; min-height: 40px; }

:where(.rc5-screen, .rc5-modal) :where(button),
.rc5-notification-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--rc5-border-strong);
  border-radius: 9px;
  background: var(--rc5-surface);
  color: var(--rc5-text);
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,59,94,.04);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
:where(.rc5-screen, .rc5-modal) :where(button):hover,
.rc5-notification-link:hover { transform: translateY(-1px); border-color: var(--rc5-primary-soft); background: var(--rc5-primary-tint); box-shadow: var(--rc5-shadow-sm); }
:where(.rc5-screen, .rc5-modal) :where(button):disabled { opacity: .55; transform: none; cursor: default; box-shadow: none; }
:where(.rc5-screen, .rc5-modal) :where(button[type="submit"], [data-action$="create"], [data-action="lookup-create"], [data-action="cargo-create"], [data-action="agent-create"], [data-action="charterer-create"], [data-request-review="approve"]) {
  border-color: var(--rc5-primary);
  background: linear-gradient(135deg, var(--rc5-primary), var(--rc5-primary-soft));
  color: #fff;
}
:where(.rc5-screen, .rc5-modal) :where([data-action*="archive"], [data-user-action="block"], [data-request-review="reject"], [data-health-action="cancel-job"]) {
  border-color: color-mix(in srgb, var(--rc5-danger) 45%, var(--rc5-border));
  background: var(--rc5-danger-soft);
  color: var(--rc5-danger);
}

:where(.rc5-screen, .rc5-modal) :where(fieldset) { display: grid; gap: 9px; margin: 0; padding: 14px; border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-sm); }
:where(.rc5-screen, .rc5-modal) :where(legend) { padding: 0 7px; color: var(--rc5-primary-soft); font-weight: 800; }

.rc5-table-responsive {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--rc5-border);
  border-radius: var(--rc5-radius-md);
  background: var(--rc5-surface);
  box-shadow: var(--rc5-shadow-sm);
}
:where(.rc5-screen, .rc5-modal) table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--rc5-surface); color: var(--rc5-text); }
:where(.rc5-screen, .rc5-modal) thead { position: sticky; top: 0; z-index: 2; }
:where(.rc5-screen, .rc5-modal) th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rc5-border-strong);
  background: color-mix(in srgb, var(--rc5-primary-tint) 72%, var(--rc5-surface) 28%);
  color: var(--rc5-primary-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .025em;
  text-align: left;
  white-space: nowrap;
}
:root[data-theme="dark"] :where(.rc5-screen, .rc5-modal) th { color: var(--rc5-text); }
:where(.rc5-screen, .rc5-modal) td { padding: 11px 12px; border-bottom: 1px solid var(--rc5-border); vertical-align: top; }
:where(.rc5-screen, .rc5-modal) tbody tr:last-child td { border-bottom: 0; }
:where(.rc5-screen, .rc5-modal) tbody tr { transition: background .14s ease; }
:where(.rc5-screen, .rc5-modal) tbody tr:hover { background: color-mix(in srgb, var(--rc5-primary-tint) 48%, transparent); }
:where(.rc5-screen, .rc5-modal) tbody tr.is-selected { background: color-mix(in srgb, var(--rc5-primary-tint) 82%, var(--rc5-surface) 18%); box-shadow: inset 4px 0 var(--rc5-accent); }
:where(.rc5-screen, .rc5-modal) td:last-child { white-space: nowrap; text-align: right; }
:where(.rc5-screen, .rc5-modal) td:last-child button { margin: 2px 4px 2px 0; }
.rc5-actions-cell { text-align: right; }
.rc5-actions-cell > * { vertical-align: middle; }
.rc5-table__actions-heading { width: 1%; min-width: 112px; text-align: right; }
.rc5-table__actions { width: 1%; text-align: right; }
.rc5-row-actions { display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; min-width: 96px; }
.rc5-row-actions button, .rc5-row-actions a { margin: 0; }

/* Dashboard */
.rc5-dashboard { display: grid; gap: 16px; }
.rc5-dashboard > header { margin-bottom: 0 !important; }
.rc5-global-search { min-width: min(460px, 40vw); }
.rc5-search-results {
  position: absolute;
  z-index: 30;
  right: clamp(16px, 2vw, 30px);
  width: min(650px, calc(100vw - 32px));
  max-height: min(520px, 65vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--rc5-border);
  border-radius: var(--rc5-radius-md);
  background: var(--rc5-surface-raised);
  box-shadow: var(--rc5-shadow-lg);
}
.rc5-search-results > button { width: 100%; display: grid; justify-items: start; gap: 3px; margin: 0; border: 0; border-bottom: 1px solid var(--rc5-border); border-radius: 7px; box-shadow: none; text-align: left; }
.rc5-search-results > button:last-child { border-bottom: 0; }
.rc5-search-results span { color: var(--rc5-text-muted); font-size: 12px; }
.rc5-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 13px; }
.rc5-metrics button {
  position: relative;
  min-height: 118px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  padding: 18px 19px;
  border: 1px solid var(--rc5-border);
  border-radius: var(--rc5-radius-lg);
  background: linear-gradient(145deg, var(--rc5-surface), color-mix(in srgb, var(--rc5-primary-tint) 42%, var(--rc5-surface) 58%));
  box-shadow: var(--rc5-shadow-sm);
  text-align: left;
}
.rc5-metrics button::after { content: ""; position: absolute; right: -26px; bottom: -38px; width: 96px; height: 96px; border-radius: 50%; background: color-mix(in srgb, var(--rc5-primary-soft) 10%, transparent); }
.rc5-metrics strong { position: relative; z-index: 1; color: var(--rc5-primary); font-size: clamp(28px, 3vw, 38px); line-height: 1; }
:root[data-theme="dark"] .rc5-metrics strong { color: var(--rc5-info); }
.rc5-metrics span { position: relative; z-index: 1; color: var(--rc5-text-muted); }
.rc5-quality { display: flex; flex-wrap: wrap; gap: 16px 25px; padding: 15px 18px; border: 1px solid var(--rc5-border); border-left: 5px solid var(--rc5-success); border-radius: var(--rc5-radius-md); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-quality--warning { border-left-color: var(--rc5-warning); background: var(--rc5-warning-soft); }
.rc5-quality--error { border-left-color: var(--rc5-danger); background: var(--rc5-danger-soft); }
.rc5-quality span { color: var(--rc5-text-muted); }
.rc5-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 15px; }
.rc5-dashboard-grid > section { min-width: 0; padding: 19px; border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-lg); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-dashboard-grid h2 { margin: 0 0 13px; font-size: 19px; }

/* Tabs, list/detail and information */
.rc5-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.rc5-tabs button { min-height: 35px; padding: 7px 11px; }
.rc5-tabs button[aria-current="page"] { border-color: var(--rc5-primary); background: var(--rc5-primary); color: #fff; box-shadow: 0 5px 14px rgba(15,59,94,.16); }
.rc5-master-detail { display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); gap: 16px; min-height: 430px; }
.rc5-master-detail > .rc5-list,
.rc5-detail { min-width: 0; padding: 13px; border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-lg); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-list { display: grid; align-content: start; gap: 7px; }
.rc5-list > button,
.rc5-list > div { width: 100%; display: grid; justify-items: start; gap: 3px; padding: 12px 13px; border-color: transparent; border-radius: 10px; background: var(--rc5-surface-soft); box-shadow: none; text-align: left; }
.rc5-list > button:hover { border-color: var(--rc5-border-strong); background: var(--rc5-primary-tint); }
.rc5-list strong { overflow-wrap: anywhere; }
.rc5-list span { color: var(--rc5-text-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.rc5-detail { padding: 19px; }
.rc5-detail > h3 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rc5-border); font-size: 23px; }
.rc5-detail dl { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.rc5-detail dt { color: var(--rc5-text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.rc5-detail dd { margin: 0; overflow-wrap: anywhere; }
.rc5-information-screen [data-information-content] { min-height: 300px; }
.rc5-information-screen [data-information-content] > section { padding: 0; }
.rc5-information-screen [data-information-content] > section > header { box-shadow: none; }
.rc5-screen :is([data-agent-editor], [data-cargo-editor], [data-lookup-editor], [data-charterer-editor], [data-user-editor], [data-request-editor]) { scroll-margin-top: calc(var(--rc5-topbar-height) + 14px); }
.rc5-screen :is([data-agent-editor], [data-cargo-editor], [data-lookup-editor], [data-charterer-editor], [data-user-editor], [data-request-editor]) > form {
  margin-bottom: 18px;
  border-left: 5px solid var(--rc5-accent);
}

/* Health */
.rc5-health-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.rc5-health-toolbar > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rc5-health-status { min-width: 260px; display: grid; gap: 2px; padding: 14px 17px; border: 1px solid var(--rc5-border); border-left: 6px solid var(--rc5-info); border-radius: var(--rc5-radius-md); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-health-status strong { font-size: 23px; }
.rc5-health-status--ok { border-left-color: var(--rc5-success); background: var(--rc5-success-soft); }
.rc5-health-status--warning { border-left-color: var(--rc5-warning); background: var(--rc5-warning-soft); }
.rc5-health-status--error { border-left-color: var(--rc5-danger); background: var(--rc5-danger-soft); }
.rc5-health-checks { display: grid; gap: 10px; margin: 16px 0; }
.rc5-health-check { display: grid; grid-template-columns: minmax(250px, 1fr) auto; gap: 10px 18px; padding: 15px 17px; border: 1px solid var(--rc5-border); border-left: 5px solid var(--rc5-info); border-radius: var(--rc5-radius-md); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-health-check > div { display: grid; gap: 3px; }
.rc5-health-check code { color: var(--rc5-text-muted); font-size: 12px; }
.rc5-health-check details { grid-column: 1 / -1; }
.rc5-health-check summary { display: flex; align-items: center; min-height: 36px; padding: 6px 0; color: var(--rc5-primary-soft); font-weight: 750; cursor: pointer; }
.rc5-health-check pre { max-height: 300px; overflow: auto; margin: 9px 0 0; padding: 13px; border-radius: 9px; background: var(--rc5-surface-soft); color: var(--rc5-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.rc5-health-check--ok { border-left-color: var(--rc5-success); }
.rc5-health-check--warning { border-left-color: var(--rc5-warning); background: var(--rc5-warning-soft); }
.rc5-health-check--error { border-left-color: var(--rc5-danger); background: var(--rc5-danger-soft); }

/* Notifications */
.rc5-notifications-screen { display: grid; align-content: start; gap: 0; }
.rc5-notifications-header > div > p { margin: 5px 0 0; color: var(--rc5-text-muted); }
.rc5-notifications-content { display: grid; align-content: start; gap: 12px; }
.rc5-notification-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 15px; border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-md); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-notification-summary span { color: var(--rc5-text-muted); }
.rc5-notification-list { display: grid; align-content: start; gap: 10px; }
.rc5-notification-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 17px; border: 1px solid var(--rc5-border); border-left: 5px solid var(--rc5-info); border-radius: var(--rc5-radius-md); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-notification-card--read { border-left-color: var(--rc5-border-strong); background: var(--rc5-surface-soft); }
.rc5-notification-card__body { min-width: 0; display: grid; gap: 7px; }
.rc5-notification-card__body h2 { margin: 0; font-size: 18px; }
.rc5-notification-card__body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc5-notification-card__body small { color: var(--rc5-text-muted); }
.rc5-notification-card__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rc5-empty-state { margin: 0; padding: 20px; border: 1px dashed var(--rc5-border-strong); border-radius: var(--rc5-radius-md); background: var(--rc5-surface-soft); color: var(--rc5-text-muted); text-align: center; }

/* Transfer and generic result blocks */
.rc5-transfer-screen :is([data-transfer-summary], [data-transfer-result]) { margin-top: 12px; padding: 15px; border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-md); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-transfer-screen [data-transfer-result] pre { overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Inline warning callout - used across instruction route chronology, transfer import
   preview, and elsewhere; previously had no rule at all (unstyled browser default). */
.rc5-inline-warning { margin: 0 0 10px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--rc5-warning) 45%, var(--rc5-border)); border-left: 4px solid var(--rc5-warning); border-radius: var(--rc5-radius-md); background: var(--rc5-warning-soft); color: var(--rc5-text); overflow-wrap: anywhere; }
.rc5-inline-warning ul { margin: 6px 0 0; padding-left: 18px; }
.rc5-inline-warning li { min-width: 0; overflow-wrap: anywhere; }

/* Notices */
.rc5-notice-host { position: fixed; z-index: 9000; top: calc(var(--rc5-topbar-height) + 12px); right: 18px; width: min(520px, calc(100vw - 36px)); pointer-events: none; }
.rc5-notice { pointer-events: auto; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--rc5-success) 44%, var(--rc5-border)); border-left: 5px solid var(--rc5-success); border-radius: var(--rc5-radius-md); background: var(--rc5-success-soft); color: var(--rc5-text); font-weight: 720; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--rc5-shadow-lg); }
.rc5-notice--warning { border-color: color-mix(in srgb, var(--rc5-warning) 45%, var(--rc5-border)); border-left-color: var(--rc5-warning); background: var(--rc5-warning-soft); }
.rc5-notice--error { border-color: color-mix(in srgb, var(--rc5-danger) 45%, var(--rc5-border)); border-left-color: var(--rc5-danger); background: var(--rc5-danger-soft); }

/* Busy state and reduced motion */
body.rc5-document [aria-busy="true"] { cursor: progress; }
body.rc5-document [aria-busy="true"] button[type="submit"] { position: relative; overflow: hidden; }
body.rc5-document [aria-busy="true"] button[type="submit"]::after { content: ""; width: 15px; height: 15px; margin-left: 5px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rc5-spin .7s linear infinite; }
@keyframes rc5-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .rc5-topbar__inner { gap: 12px; padding-inline: 14px; }
  .rc5-primary-navigation a { padding-inline: 8px; font-size: 12.5px; }
  .rc5-user__text { display: none; }
  .rc5-brand__text small { display: none; }
}

@media (max-width: 1040px) {
  :root { --rc5-topbar-height: 64px; }
  .rc5-topbar__inner { grid-template-columns: 1fr auto auto; min-height: var(--rc5-topbar-height); }
  .rc5-nav-toggle { display: inline-grid; place-items: center; }
  .rc5-primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 10px;
    right: 10px;
    display: none;
    max-height: min(72vh, 620px);
    overflow: auto;
    padding: 9px;
    border: 1px solid var(--rc5-border);
    border-radius: 0 0 var(--rc5-radius-lg) var(--rc5-radius-lg);
    background: var(--rc5-surface-raised);
    box-shadow: var(--rc5-shadow-lg);
  }
  .rc5-primary-navigation.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc5-primary-navigation a { color: var(--rc5-text); }
  .rc5-primary-navigation a:hover { color: var(--rc5-text); background: var(--rc5-primary-tint); }
  .rc5-primary-navigation a[aria-current="page"] { color: #fff; background: var(--rc5-primary); }
  .rc5-primary-navigation a[aria-current="page"]::after { display: none; }
  .rc5-user { justify-self: end; }
  .rc5-logout-button span:last-child { display: none; }
  .rc5-screen { padding: 16px 13px 112px; }
  .rc5-screen > section > header,
  .rc5-screen [data-stable-view-root] > header,
  .rc5-notifications-header { display: grid; padding: 16px; }
  .rc5-screen header > label, .rc5-global-search { min-width: 0; width: 100%; }
  .rc5-screen :where(header form) { justify-content: stretch; }
  .rc5-screen :where(header form) > * { flex: 1 1 160px; }
  .rc5-master-detail { grid-template-columns: 1fr; min-height: 0; }
  .rc5-dashboard-grid { grid-template-columns: 1fr; }
  .rc5-health-toolbar { display: grid; align-items: stretch; }
  .rc5-health-toolbar > div:last-child { justify-content: flex-start; }
  .rc5-health-status { min-width: 0; }
  .rc5-health-check { grid-template-columns: 1fr; }
  .rc5-health-check details { grid-column: auto; }
  .rc5-notification-card { grid-template-columns: 1fr; }
  .rc5-notification-card__actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .rc5-brand__mark { width: 37px; height: 37px; }
  .rc5-brand__mark svg { width: 25px; height: 25px; }
  .rc5-brand__text strong { font-size: 16px; }
  .rc5-user__identity { display: none; }
  .rc5-primary-navigation.is-open { grid-template-columns: 1fr; }
  .rc5-auth-card { border-radius: 20px; }
  .rc5-auth-brand, .rc5-auth-form { padding-inline: 20px; }
  .rc5-access-panel summary { padding-inline: 20px; }
  :where(.rc5-screen, .rc5-modal) :where(form) { padding: 14px; }
  .rc5-screen :where(header form) { display: grid; grid-template-columns: 1fr; }
  .rc5-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc5-metrics button { min-height: 104px; padding: 14px; }
  .rc5-metrics strong { font-size: 27px; }
  .rc5-detail dl { grid-template-columns: 1fr; gap: 3px; }
  .rc5-detail dd { margin-bottom: 10px; }
  .rc5-notification-summary { display: grid; }
  .rc5-footer { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration__ship, .rc5-ocean-decoration__ship::after { animation: none !important; }
  .rc5-ocean-decoration__ship { left: 84%; }
  body.rc5-document, body.rc5-document *, body.rc5-document *::before, body.rc5-document *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --rc5-border: #8799aa; --rc5-border-strong: #536a80; }
  :where(body.rc5-document button, body.rc5-document a, body.rc5-document input, body.rc5-document select, body.rc5-document textarea, body.rc5-document summary):focus-visible { outline-width: 4px; outline-offset: 4px; }
  .rc5-topbar, .rc5-screen > section > header, .rc5-screen [data-stable-view-root] > header, .rc5-card, .rc5-detail, .rc5-table-responsive { border-width: 2px; }
}

@media print {
  .rc5-topbar, .rc5-footer, .rc5-ocean-decoration, .rc5-notice-host { display: none !important; }
  .rc5-screen { width: 100%; padding: 0; }
  .rc5-screen > section > header, .rc5-screen [data-stable-view-root] > header, .rc5-table-responsive, .rc5-detail, .rc5-master-detail > .rc5-list { box-shadow: none; }
}

/* Explicit owners introduced by the visual DOM contract. */
.rc5-information-screen > [data-information-content] { display: grid; align-content: start; gap: 14px; }
.rc5-transfer-form > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rc5-screen [data-users-list] > .rc5-table-responsive,
.rc5-screen [data-request-list] > .rc5-table-responsive { margin-bottom: 12px; }
.rc5-screen .actions button { margin: 2px 4px 2px 0; }

/* Canonical CRM presentation on the accepted visual shell. */
.rc5-primary-navigation { overflow: visible; scrollbar-width: none; }
.rc5-primary-navigation::-webkit-scrollbar { display: none; }

.rc5-utility-navigation { display: flex; align-items: center; gap: 6px; }
.rc5-utility-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}
.rc5-utility-link:hover,
.rc5-utility-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); }
.rc5-utility-link[aria-current="page"]::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: -5px; height: 3px; border-radius: 4px; background: var(--rc5-accent); }

.rc5-account { position: relative; }
.rc5-account__toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 4px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}
.rc5-account__toggle:hover,
.rc5-account__toggle[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.rc5-account__chevron { color: rgba(255,255,255,.65); font-size: 15px; transition: transform .18s ease; }
.rc5-account__toggle[aria-expanded="true"] .rc5-account__chevron { transform: rotate(180deg); }
.rc5-account__menu {
  position: absolute;
  z-index: 2400;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--rc5-border);
  border-radius: 14px;
  background: var(--rc5-surface-raised);
  color: var(--rc5-text);
  box-shadow: var(--rc5-shadow-lg);
}
.rc5-account__link,
.rc5-account__logout {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rc5-text);
  text-decoration: none;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.rc5-account__link:hover,
.rc5-account__link[aria-current="page"],
.rc5-account__logout:hover { background: var(--rc5-primary-tint); color: var(--rc5-text); }
.rc5-account__link .rc5-nav-icon { color: var(--rc5-primary-soft); }
.rc5-account__logout { border-top: 1px solid var(--rc5-border); border-radius: 0 0 9px 9px; color: var(--rc5-danger); }

.rc5-page-table { display: grid; align-content: start; gap: 16px; }
.rc5-page-table > header { margin-bottom: 0 !important; }
.rc5-header-tools { min-width: min(520px, 48vw); display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 10px; }
.rc5-header-tools label { flex: 1 1 250px; min-width: 220px; }
.rc5-header-tools .rc5-inline-check { flex: 0 0 auto; min-width: 0; }
.rc5-header-tools > button { flex: 0 0 auto; }

.rc5-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rc5-border);
  border-radius: var(--rc5-radius-lg);
  background: var(--rc5-surface);
  box-shadow: var(--rc5-shadow-sm);
}
.rc5-card__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rc5-border); }
.rc5-card__header h2 { margin: 0; font-size: 20px; }
.rc5-card__header p { margin: 4px 0 0; color: var(--rc5-text-muted); }
.rc5-card > .rc5-table-responsive { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.rc5-dashboard-voyages { margin-top: 0; }

.rc5-actions-cell { min-width: 230px; white-space: normal !important; }
.rc5-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin: 2px 5px 2px 0;
  padding: 6px 10px;
  border: 1px solid var(--rc5-border-strong);
  border-radius: 8px;
  background: var(--rc5-surface);
  color: var(--rc5-primary-soft);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}
.rc5-row-action:hover { border-color: var(--rc5-primary-soft); background: var(--rc5-primary-tint); }
.rc5-row-action--primary { border-color: var(--rc5-primary); background: var(--rc5-primary); color: #fff; }
.rc5-row-action--primary:hover { background: var(--rc5-primary-soft); color: #fff; }
.rc5-action-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.rc5-action-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rc5-empty-cell { padding: 30px 18px !important; color: var(--rc5-text-muted); text-align: center; }
.rc5-status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: var(--rc5-info-soft); color: var(--rc5-info); font-size: 12px; font-weight: 800; white-space: normal; }
.rc5-status-badge--online { background: var(--rc5-success-soft); color: var(--rc5-success); }
.rc5-status-badge--offline { background: var(--rc5-surface-soft); color: var(--rc5-text-muted); }
.rc5-status-badge--blocked { background: var(--rc5-danger-soft); color: var(--rc5-danger); }
.rc5-status-badge--underway { background: var(--rc5-info-soft); color: var(--rc5-info); }
.rc5-status-badge--in-port { background: var(--rc5-success-soft); color: var(--rc5-success); }
.rc5-status-badge--waiting { background: var(--rc5-warning-soft); color: var(--rc5-warning); }
.rc5-status-badge--non-operational { background: var(--rc5-pink-soft); color: var(--rc5-pink); }
.rc5-status-badge--emergency { background: var(--rc5-danger-soft); color: var(--rc5-danger); }
.rc5-status-badge--clarifying { background: var(--rc5-surface-soft); color: var(--rc5-text-muted); }
.rc5-status-badge--clickable { cursor: pointer; border: none; font: inherit; }
.rc5-status-picker-wrap { position: relative; display: inline-block; }
.rc5-status-picker-backdrop { position: fixed; inset: 0; z-index: 40; }
.rc5-status-picker { position: absolute; top: calc(100% + 6px); left: 0; z-index: 41; display: grid; gap: 2px; min-width: 220px; padding: 6px; background: var(--rc5-surface-raised); border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-md); box-shadow: var(--rc5-shadow-md); }
.rc5-status-picker__option { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: none; border-radius: var(--rc5-radius-sm); background: transparent; color: var(--rc5-text); font-size: 13px; text-align: left; cursor: pointer; }
.rc5-status-picker__option:hover { background: var(--rc5-surface-soft); }
.rc5-status-picker__option.is-active { background: var(--rc5-primary-tint); font-weight: 700; }
.rc5-status-picker__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rc5-status-picker__dot.rc5-status-badge--underway { background: var(--rc5-info); }
.rc5-status-picker__dot.rc5-status-badge--in-port { background: var(--rc5-success); }
.rc5-status-picker__dot.rc5-status-badge--waiting { background: var(--rc5-warning); }
.rc5-status-picker__dot.rc5-status-badge--non-operational { background: var(--rc5-pink); }
.rc5-status-picker__dot.rc5-status-badge--emergency { background: var(--rc5-danger); }
.rc5-status-picker__dot.rc5-status-badge--clarifying { background: var(--rc5-text-muted); }
.rc5-vessel-dashboard-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.rc5-vessel-dashboard-dot--on { background: var(--rc5-success); }
.rc5-vessel-dashboard-dot--off { background: var(--rc5-danger); }

.rc5-modal-overlay {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: rgba(4, 21, 34, .62);
  backdrop-filter: blur(5px);
}
.rc5-modal {
  width: min(1040px, 100%);
  min-height: min(720px, 92vh);
  max-height: min(92vh, 980px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--rc5-border);
  border-radius: 20px;
  background: var(--rc5-surface-raised);
  color: var(--rc5-text);
  box-shadow: var(--rc5-shadow-lg);
}
.rc5-modal--xl,
.rc5-modal--sm { width: min(1040px, 100%); }
.rc5-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--rc5-border); background: var(--rc5-surface-soft); }
.rc5-modal__header h2 { margin: 0; font-size: 22px; }
.rc5-modal__header p { margin: 4px 0 0; color: var(--rc5-text-muted); }
.rc5-modal__close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--rc5-border); border-radius: 10px; background: var(--rc5-surface); color: var(--rc5-text); cursor: pointer; }
.rc5-icon-button-neutral { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--rc5-border); border-radius: 10px; background: var(--rc5-surface); color: var(--rc5-text); cursor: pointer; }
.rc5-icon-button-neutral:hover { border-color: var(--rc5-primary-soft); background: var(--rc5-primary-tint); }
.rc5-modal__body { overflow: auto; padding: 22px; }
.rc5-modal__body > form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rc5-modal__footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--rc5-border); background: var(--rc5-surface-soft); }
.rc5-modal__footer > button { min-height: 36px; }

.rc5-form-grid { display: grid; gap: 14px; }
.rc5-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc5-form-span-2 { grid-column: 1 / -1; }
.rc5-modal-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--rc5-border); }
.rc5-modal-form-actions button { display: inline-flex; align-items: center; gap: 7px; }
.rc5-danger-action { margin-right: auto !important; border-color: var(--rc5-danger) !important; background: var(--rc5-danger-soft) !important; color: var(--rc5-danger) !important; }

.rc5-definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.rc5-definition-grid > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--rc5-border); border-radius: 11px; background: var(--rc5-surface-soft); }
.rc5-definition-grid dt { color: var(--rc5-text-muted); font-size: 11.5px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.rc5-definition-grid dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc5-route-plan { margin-top: 20px; }
.rc5-route-plan h3 { margin: 0 0 10px; }

@media (max-width: 1040px) {
  :root { --rc5-topbar-height: 64px; }
  .rc5-topbar__inner { grid-template-columns: 1fr auto auto; min-height: var(--rc5-topbar-height); }
  .rc5-nav-toggle { display: inline-grid; place-items: center; }
  .rc5-primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 10px;
    right: 10px;
    display: none;
    max-height: min(72vh, 620px);
    overflow: auto;
    padding: 9px;
    border: 1px solid var(--rc5-border);
    border-radius: 0 0 var(--rc5-radius-lg) var(--rc5-radius-lg);
    background: var(--rc5-surface-raised);
    box-shadow: var(--rc5-shadow-lg);
  }
  .rc5-primary-navigation.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc5-primary-navigation a { color: var(--rc5-text); }
  .rc5-primary-navigation a:hover { color: var(--rc5-text); background: var(--rc5-primary-tint); }
  .rc5-primary-navigation a[aria-current="page"] { color: #fff; background: var(--rc5-primary); }
  .rc5-primary-navigation a[aria-current="page"]::after { display: none; }
  .rc5-user { justify-self: end; }
}

@media (max-width: 760px) {
  .rc5-utility-navigation { gap: 4px; }
  .rc5-utility-link, .rc5-icon-button { width: 34px; height: 34px; }
  .rc5-account__toggle { padding-right: 4px; }
  .rc5-account__toggle .rc5-user__text, .rc5-account__chevron { display: none; }
  .rc5-header-tools { min-width: 0; width: 100%; justify-content: stretch; }
  .rc5-header-tools label, .rc5-header-tools > button { flex: 1 1 100%; min-width: 0; }
  .rc5-header-tools .rc5-inline-check { flex: 1 1 100%; min-width: 0; }
  .rc5-actions-cell { min-width: 180px; }
  .rc5-row-action { width: 38px; min-height: 36px; padding: 6px; }
  .rc5-modal-overlay { padding: 10px; place-items: end center; }
  .rc5-modal { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .rc5-form-grid--2, .rc5-definition-grid { grid-template-columns: 1fr; }
  .rc5-form-span-2 { grid-column: auto; }
}

@media (max-width: 560px) {
  .rc5-primary-navigation.is-open { grid-template-columns: 1fr; }
  .rc5-modal__header, .rc5-modal__body, .rc5-modal__footer { padding-inline: 15px; }
}

/* Global layering contract: dialogs are fixed above the sticky topbar. */
.rc5-workspace { isolation: auto; }
.rc5-workspace::before,
.rc5-ocean-decoration { z-index: 0; pointer-events: none; }
.rc5-screen,
.rc5-footer { z-index: auto; }
.rc5-modal-overlay { z-index: 3000; }


/* Unified production interaction contract. */
body.rc5-modal-open { overflow: hidden; }

.rc5-utility-link {
  appearance: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.rc5-notification-trigger { overflow: visible; }
.rc5-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--rc5-primary-deep, #07385b);
  border-radius: 999px;
  background: var(--rc5-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.rc5-actions-cell { min-width: 104px; white-space: nowrap !important; }
.rc5-row-action {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  margin: 2px 4px 2px 0;
  padding: 0;
  gap: 0;
}

.rc5-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--rc5-border-strong);
  border-radius: 10px;
  background: var(--rc5-surface);
  color: var(--rc5-text);
  font-weight: 800;
  cursor: pointer;
}
.rc5-text-action:hover { border-color: var(--rc5-primary-soft); background: var(--rc5-primary-tint); }
.rc5-text-action--primary { border-color: var(--rc5-primary); background: var(--rc5-primary); color: #fff; }
.rc5-text-action--primary:hover { background: var(--rc5-primary-soft); color: #fff; }
.rc5-text-action:disabled { opacity: .55; cursor: not-allowed; }

.rc5-modal__body { overscroll-behavior: contain; }
.rc5-detail-section,
.rc5-form-section {
  min-width: 0;
  margin: 0 0 16px;
  padding: 17px;
  border: 1px solid var(--rc5-border);
  border-radius: 14px;
  background: var(--rc5-surface);
}
.rc5-detail-section:last-child,
.rc5-form-section:last-child { margin-bottom: 0; }
.rc5-detail-section > h3,
.rc5-form-section > legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  padding: 0;
  color: var(--rc5-text);
  font-size: 15px;
  font-weight: 900;
}
.rc5-form-section > legend { width: 100%; }
.rc5-form-section__description { margin: -5px 0 14px; color: var(--rc5-text-muted); }
.rc5-form-section__content { min-width: 0; }

.rc5-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc5-form-span-3 { grid-column: 1 / -1; }
.rc5-form-grid label,
.rc5-header-tools label { min-width: 0; }
.rc5-form-grid label > small { display: block; margin-top: 5px; color: var(--rc5-text-muted); }

.rc5-route-eta-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rc5-route-eta-block { display: flex; flex-direction: column; gap: 6px; }
.rc5-route-eta-block__inputs { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) { .rc5-route-eta-group { grid-template-columns: 1fr; } }

.rc5-form-tabs {
  position: sticky;
  z-index: 3;
  top: -22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: -2px 0 16px;
  padding: 8px;
  border: 1px solid var(--rc5-border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--rc5-surface-raised) 94%, transparent);
  backdrop-filter: blur(8px);
}
.rc5-form-tabs button {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--rc5-text-muted);
  font-weight: 850;
  cursor: pointer;
}
.rc5-form-tabs button:hover { background: var(--rc5-primary-tint); color: var(--rc5-text); }
.rc5-form-tabs button[aria-selected="true"] { border-color: var(--rc5-primary); background: var(--rc5-primary); color: #fff; }
.rc5-tab-panels [hidden] { display: none !important; }

.rc5-route-editor__list { display: grid; gap: 14px; }
.rc5-route-editor__row {
  overflow: hidden;
  border: 2px solid var(--rc5-accent);
  border-radius: 13px;
  background: var(--rc5-surface-soft);
}
.rc5-route-editor__row > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--rc5-border);
  background: var(--rc5-surface);
}
.rc5-route-editor__row > header > div { display: flex; align-items: center; gap: 9px; }
.rc5-route-editor__row > .rc5-form-grid { padding: 14px; }
.rc5-route-index { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--rc5-primary); color: #fff; font-weight: 900; }
.rc5-icon-danger { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--rc5-danger); border-radius: 9px; background: var(--rc5-danger-soft); color: var(--rc5-danger); cursor: pointer; }

.rc5-permission-matrix { overflow: auto; border: 1px solid var(--rc5-border); border-radius: 13px; }
.rc5-permission-matrix table { min-width: 780px; margin: 0; border: 0; }
.rc5-permission-matrix th,
.rc5-permission-matrix td { text-align: center; vertical-align: middle; }
.rc5-permission-matrix thead th { position: sticky; z-index: 2; top: 0; background: var(--rc5-surface-soft); }
.rc5-permission-matrix thead th:first-child,
.rc5-permission-matrix tbody th[scope="row"] { position: sticky; z-index: 1; left: 0; text-align: left; background: var(--rc5-surface-raised); }
.rc5-permission-matrix tbody th[scope="row"] { min-width: 330px; }
.rc5-permission-matrix tbody th strong,
.rc5-permission-matrix tbody th small { display: block; }
.rc5-permission-matrix tbody th small { margin-top: 3px; color: var(--rc5-text-muted); font-weight: 500; }
.rc5-permission-group th { position: static !important; padding: 10px 13px !important; background: var(--rc5-primary-tint) !important; color: var(--rc5-primary-soft); font-size: 12px; letter-spacing: .04em; text-align: left !important; text-transform: uppercase; }
.rc5-permission-na { color: var(--rc5-text-muted); }
.rc5-permission-check { position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.rc5-permission-check input { position: absolute; opacity: 0; pointer-events: none; }
.rc5-permission-check > span[aria-hidden="true"] {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--rc5-border-strong);
  border-radius: 7px;
  background: var(--rc5-surface);
  transition: .15s ease;
}
.rc5-permission-check input:checked + span[aria-hidden="true"] { border-color: var(--rc5-primary); background: var(--rc5-primary); }
.rc5-permission-check input:checked + span[aria-hidden="true"]::after { content: "✓"; color: #fff; font-weight: 950; }
.rc5-permission-check input:focus-visible + span[aria-hidden="true"] { outline: 3px solid var(--rc5-focus); outline-offset: 3px; }
.rc5-permission-check input:disabled + span[aria-hidden="true"] { opacity: .55; cursor: not-allowed; }

.rc5-profile-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 12px 15px; border-radius: 12px; background: var(--rc5-primary-tint); }
.rc5-profile-summary strong { font-size: 17px; }
.rc5-profile-summary span { color: var(--rc5-text-muted); }
.rc5-profile-photo { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 17px; margin-bottom: 15px; }
.rc5-profile-photo__preview { width: 112px; height: 112px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--rc5-border); border-radius: 50%; background: var(--rc5-primary-tint); color: var(--rc5-primary); font-size: 38px; font-weight: 950; }
.rc5-profile-photo__preview img,
.rc5-user__avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.rc5-profile-photo > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.rc5-profile-photo small { flex-basis: 100%; color: var(--rc5-text-muted); }
.rc5-file-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--rc5-border-strong); border-radius: 10px; background: var(--rc5-surface); color: var(--rc5-text); font-weight: 800; cursor: pointer; }
.rc5-file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.rc5-notification-filter { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto auto; align-items: center; gap: 9px; margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.rc5-notification-summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--rc5-text-muted); }
.rc5-notification-list { display: grid; gap: 10px; }
.rc5-notification-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px; border: 1px solid var(--rc5-border); border-radius: 12px; background: var(--rc5-surface); }
.rc5-notification-card--read { opacity: .72; }
.rc5-notification-card h3 { margin: 0 0 5px; }
.rc5-notification-card p { margin: 0 0 7px; white-space: pre-wrap; }
.rc5-notification-card small { color: var(--rc5-text-muted); }
.rc5-notification-card__actions { display: flex; align-items: center; gap: 7px; }

@media (max-width: 900px) {
  .rc5-form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc5-form-span-3 { grid-column: 1 / -1; }
  .rc5-form-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc5-notification-filter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .rc5-actions-cell { min-width: 94px; }
  .rc5-form-grid--3 { grid-template-columns: 1fr; }
  .rc5-form-span-3 { grid-column: auto; }
  .rc5-form-tabs { position: static; grid-template-columns: 1fr 1fr; }
  .rc5-form-tabs button { justify-content: flex-start; }
  .rc5-profile-photo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rc5-profile-photo > div:last-child { justify-content: center; }
  .rc5-notification-filter { grid-template-columns: 1fr; }
  .rc5-notification-card { grid-template-columns: 1fr; }
  .rc5-permission-matrix tbody th[scope="row"] { min-width: 240px; }
}


.rc5-field-label { margin: 0 0 8px; color: var(--rc5-text); font-weight: 850; }
.rc5-choice-grid {
  max-height: 250px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--rc5-border);
  border-radius: 11px;
  background: var(--rc5-surface-soft);
}
.rc5-choice {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--rc5-surface);
  cursor: pointer;
}
.rc5-choice:hover { border-color: var(--rc5-primary-soft); background: var(--rc5-primary-tint); }
.rc5-choice input { flex: 0 0 auto; margin-top: 3px; }
.rc5-choice span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .rc5-choice-grid { grid-template-columns: 1fr; } }


/* Canonical Fleet section owner and zero-access state. */
.rc5-section-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--rc5-border);
  border-radius: 14px;
  background: var(--rc5-surface-soft);
}
.rc5-section-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--rc5-text-muted);
  font-weight: 900;
  cursor: pointer;
}
.rc5-section-tabs button:hover { color: var(--rc5-text); background: var(--rc5-surface); }
.rc5-section-tabs button[aria-selected="true"] { border-color: var(--rc5-primary); background: var(--rc5-primary); color: #fff; box-shadow: 0 7px 20px color-mix(in srgb, var(--rc5-primary) 24%, transparent); }
.rc5-section-tabs .rc5-action-icon { width: 18px; height: 18px; }
.rc5-fleet-panel { min-width: 0; }
.rc5-fleet-panel td small { display: block; margin-top: 3px; color: var(--rc5-text-muted); }

.rc5-no-access {
  min-height: min(620px, calc(100vh - 150px));
  display: grid;
  place-items: center;
  padding: 30px 18px;
}
.rc5-no-access__card {
  width: min(620px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--rc5-border);
  border-radius: 24px;
  background: var(--rc5-surface-raised);
  box-shadow: var(--rc5-shadow-lg);
  text-align: center;
}
.rc5-no-access__icon {
  width: 68px;
  height: 68px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 20px;
  background: var(--rc5-primary-tint);
  color: var(--rc5-primary);
  font-size: 32px;
  font-weight: 950;
}
.rc5-no-access h1 { margin: 0 0 12px; }
.rc5-no-access p { margin: 0 auto 10px; color: var(--rc5-text-muted); line-height: 1.65; }
.rc5-no-access__hint { font-size: 13px; }


/* Information overview: only implemented product sections are exposed. */
.rc5-information-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rc5-information-overview__card {
  min-width: 0;
  min-height: 170px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--rc5-border);
  border-radius: 18px;
  background: var(--rc5-surface-raised);
  color: var(--rc5-text);
  text-align: left;
  box-shadow: var(--rc5-shadow-sm);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.rc5-information-overview__card:hover,
.rc5-information-overview__card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--rc5-primary);
  box-shadow: var(--rc5-shadow-md);
}
.rc5-information-overview__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--rc5-primary-tint);
  color: var(--rc5-primary);
}
.rc5-information-overview__icon .rc5-action-icon { width: 24px; height: 24px; }
.rc5-information-overview__card strong { font-size: 18px; }
.rc5-information-overview__card > span:last-child { color: var(--rc5-text-muted); line-height: 1.55; }
@media (max-width: 900px) { .rc5-information-overview { grid-template-columns: 1fr; } }

/* Dashboard current voyages: mobile cards preserve every operational field without horizontal scrolling. */
@media (max-width: 760px) {
  .rc5-dashboard-voyages > .rc5-table-responsive { overflow: visible; background: transparent; }
  .rc5-dashboard-voyages table,
  .rc5-dashboard-voyages tbody { display: block; width: 100%; background: transparent; }
  .rc5-dashboard-voyages thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .rc5-dashboard-voyages tbody { display: grid; gap: 12px; padding: 12px; }
  .rc5-dashboard-voyages tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--rc5-border);
    border-radius: 14px;
    background: var(--rc5-surface);
    box-shadow: var(--rc5-shadow-sm);
  }
  .rc5-dashboard-voyages tbody td {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid var(--rc5-border);
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .rc5-dashboard-voyages tbody td:nth-child(odd) { border-right: 1px solid var(--rc5-border); }
  .rc5-dashboard-voyages tbody td::before {
    content: attr(data-label);
    color: var(--rc5-text-muted);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
  .rc5-dashboard-voyages tbody td:nth-last-child(-n+2) { border-bottom: 0; }
  .rc5-dashboard-voyages .rc5-status-badge { width: fit-content; max-width: 100%; }
  .rc5-dashboard-voyages .rc5-actions-cell { min-width: 0; align-items: start; }
  .rc5-dashboard-voyages .rc5-empty-cell {
    grid-column: 1 / -1;
    display: block;
    border: 0 !important;
  }
  .rc5-dashboard-voyages .rc5-empty-cell::before { content: none; }
}

@media (max-width: 420px) {
  .rc5-dashboard-voyages tbody tr { grid-template-columns: 1fr; }
  .rc5-dashboard-voyages tbody td,
  .rc5-dashboard-voyages tbody td:nth-child(odd),
  .rc5-dashboard-voyages tbody td:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--rc5-border); }
  .rc5-dashboard-voyages tbody td:last-child { border-bottom: 0; }
}

/* Canonical agent relationships and profile presentation. */
.rc5-agent-relations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.rc5-choice-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--rc5-border);
  border-radius: 14px;
  background: var(--rc5-surface-soft);
}
.rc5-choice-panel > header { display: grid; gap: 3px; }
.rc5-choice-panel > header strong { font-size: 15px; }
.rc5-choice-panel > header small { color: var(--rc5-text-muted); }
.rc5-choice-grid--scroll { max-height: 310px; min-height: 180px; align-content: start; }
.rc5-profile-notes {
  width: 100%;
  min-height: 250px;
  resize: vertical;
  line-height: 1.55;
}
.rc5-profile-protected-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--rc5-accent) 48%, var(--rc5-border));
  border-left: 5px solid var(--rc5-accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--rc5-accent) 10%, var(--rc5-surface));
  font-weight: 750;
}
.rc5-profile-photo--readonly { align-items: center; }
.rc5-profile-photo--readonly > div:last-child { display: grid; justify-items: start; gap: 3px; }
.rc5-protected-user-row { background: color-mix(in srgb, var(--rc5-accent) 7%, var(--rc5-surface)); }
.rc5-protected-user-row > td:first-child strong::after {
  content: "DEV";
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--rc5-accent);
  color: #1b2733;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  vertical-align: middle;
}
@media (max-width: 820px) {
  .rc5-agent-relations-grid { grid-template-columns: 1fr; }
  .rc5-choice-grid--scroll { min-height: 0; }
}

/* 6.85 canonical pagination, dashboard date filter, route timeline and ocean motion. */
.rc5-date-filter--inline {
  display: inline-grid;
  grid-template-columns: auto minmax(150px, 190px) auto;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.rc5-date-filter--inline label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
  font-weight: 850;
}
.rc5-date-filter--inline label .rc5-ui-icon { width: 18px; height: 18px; }
.rc5-date-filter--inline input { width: 100%; min-width: 0; }
.rc5-dashboard--voyages-only { display: block; }
.rc5-dashboard--voyages-only .rc5-dashboard-voyages { margin: 0; }
.rc5-dashboard--voyages-only .rc5-card__header { align-items: center; }

.rc5-vessel-map-summary { margin: 0 0 12px; color: var(--rc5-text-muted); font-size: 13px; }
.rc5-vessel-map { width: 100%; height: min(70vh, 640px); min-height: 320px; border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-md); overflow: hidden; }
.rc5-map-marker { width: 16px; height: 16px; border-radius: 50%; background: var(--rc5-accent); border: 2px solid var(--rc5-surface); box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.rc5-weather-canvas { position: absolute; inset: 0; pointer-events: none; }

.rc5-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
}
.rc5-pagination__summary { color: var(--rc5-text-muted); font-size: 13px; }
.rc5-pagination__pages { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.rc5-pagination__pages button {
  min-width: 38px;
  min-height: 38px;
  padding: 7px 10px;
  display: inline-grid;
  place-items: center;
}
.rc5-pagination__pages button[aria-current="page"] {
  border-color: var(--rc5-primary);
  background: var(--rc5-primary);
  color: #fff;
}
.rc5-pagination__ellipsis { min-width: 24px; text-align: center; color: var(--rc5-text-muted); }

.rc5-route-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rc5-route-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rc5-primary), color-mix(in srgb, var(--rc5-primary) 25%, var(--rc5-border)));
}
.rc5-route-timeline__stop {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
}
.rc5-route-timeline__stop:last-child { padding-bottom: 0; }
.rc5-route-timeline__point {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 14px 0 0 4px;
  border: 3px solid var(--rc5-surface);
  border-radius: 50%;
  background: var(--rc5-primary);
  box-shadow: 0 0 0 2px var(--rc5-primary);
}
.rc5-route-timeline__card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--rc5-border);
  border-radius: 14px;
  background: var(--rc5-surface-soft);
}
.rc5-route-timeline__card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.rc5-route-timeline__card > header > div { display: grid; gap: 3px; }
.rc5-route-timeline__card > header small { color: var(--rc5-text-muted); }
.rc5-route-timeline__card > header > span { color: var(--rc5-text-muted); text-align: right; }
.rc5-route-timeline__dates,
.rc5-route-timeline__details { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.rc5-route-timeline__dates { margin-bottom: 10px; }
.rc5-route-timeline__dates span,
.rc5-route-timeline__details span { display: inline-flex; gap: 6px; }
.rc5-route-stop-symbol {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 auto;
  border: 3px solid var(--rc5-surface);
  border-radius: 50%;
  background: var(--rc5-primary);
  box-shadow: 0 0 0 2px var(--rc5-primary);
}
.rc5-route-editor { position: relative; display: grid; gap: 16px; }
.rc5-route-editor::before {
  content: "";
  position: absolute;
  top: 23px;
  bottom: 23px;
  left: 21px;
  width: 2px;
  background: color-mix(in srgb, var(--rc5-primary) 52%, var(--rc5-border));
}
.rc5-route-editor__row { position: relative; z-index: 1; }
.rc5-route-editor__row > header > div { display: flex; align-items: center; gap: 11px; }

.rc5-profile-photo__preview,
.rc5-profile-photo__preview img { border-radius: 50%; }
.rc5-profile-photo__preview img { aspect-ratio: 1; }
.rc5-profile-notes { min-height: 300px; }

.rc5-ocean-decoration::before { animation: rc5-wave-drift-a 26s ease-in-out infinite alternate; }
.rc5-ocean-decoration::after { animation: rc5-wave-drift-b 31s ease-in-out infinite alternate; }
.rc5-ocean-decoration span:nth-child(1) { animation: rc5-ripple-a 15s ease-in-out infinite alternate; }
.rc5-ocean-decoration span:nth-child(2) { animation: rc5-ripple-b 19s ease-in-out infinite alternate; }
.rc5-ocean-decoration span:nth-child(3) {
  left: -48px;
  animation: rc5-ship-sail 88s linear infinite;
  animation-delay: -22s;
  will-change: left, transform;
}
@keyframes rc5-wave-drift-a { from { transform: translateX(-1.5%) rotate(-1deg); } to { transform: translateX(1.5%) rotate(.5deg); } }
@keyframes rc5-wave-drift-b { from { transform: translateX(1.25%) rotate(1.5deg); } to { transform: translateX(-1.25%) rotate(.25deg); } }
@keyframes rc5-ripple-a { from { transform: translateX(-10px); opacity: .55; } to { transform: translateX(28px); opacity: .9; } }
@keyframes rc5-ripple-b { from { transform: translateX(20px); opacity: .5; } to { transform: translateX(-24px); opacity: .85; } }
@keyframes rc5-ship-sail {
  0% { left: -48px; transform: translateY(0) rotate(-1deg); }
  12% { transform: translateY(-3px) rotate(1deg); }
  24% { transform: translateY(1px) rotate(-.5deg); }
  36% { transform: translateY(-2px) rotate(.8deg); }
  48% { transform: translateY(1px) rotate(-.8deg); }
  60% { transform: translateY(-3px) rotate(1deg); }
  72% { transform: translateY(0) rotate(-.5deg); }
  84% { transform: translateY(-2px) rotate(.7deg); }
  100% { left: calc(100% + 48px); transform: translateY(0) rotate(-1deg); }
}

@media (max-width: 760px) {
  .rc5-date-filter--inline { width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; margin-left: 0; }
  .rc5-pagination { align-items: flex-start; flex-direction: column; }
  .rc5-pagination__pages { justify-content: flex-start; }
  .rc5-additional-agent-grid { grid-template-columns: 1fr; }
  .rc5-route-timeline__card > header { flex-direction: column; }
  .rc5-route-timeline__card > header > span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration::before,
  .rc5-ocean-decoration::after,
  .rc5-ocean-decoration span { animation: none !important; }
}

.rc5-row-action .rc5-action-icon { display: inline-grid; place-items: center; }

/* 6.87.6 sync/visual cleanup: darker theme ship contrast, gentle wave rocking, no stray wake stripes. */
.rc5-ocean-decoration { height: 154px; opacity: .74; contain: paint; }
.rc5-ocean-decoration__wake { display: none !important; }
.rc5-ocean-decoration__ship {
  left: -76px;
  bottom: 42px;
  width: 68px;
  height: 42px;
  z-index: 1;
  filter: drop-shadow(0 7px 10px rgba(3, 18, 32, .28));
  animation: rc5-ship-travel-6874 74s linear infinite, rc5-ship-rock-6874 4.8s ease-in-out infinite;
  will-change: left, transform;
}
.rc5-ocean-decoration__ship::before {
  height: 16px;
  border-radius: 4px 4px 17px 20px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--rc5-primary-soft) 72%, #ffffff 28%),
    color-mix(in srgb, var(--rc5-primary) 82%, #061928 18%)
  );
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.20);
}
.rc5-ocean-decoration__ship::after {
  left: 25px;
  bottom: 14px;
  width: 27px;
  height: 26px;
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--rc5-accent) 88%, #ffffff 12%),
    color-mix(in srgb, var(--rc5-accent-strong) 82%, #ffffff 18%)
  );
  animation: rc5-ship-sail-breathe-6874 3.2s ease-in-out infinite;
}
:root[data-theme="dark"] .rc5-ocean-decoration { opacity: .9; }
:root[data-theme="dark"] .rc5-ocean-decoration::before { background: color-mix(in srgb, #4fb6ff 16%, transparent); }
:root[data-theme="dark"] .rc5-ocean-decoration::after { background: color-mix(in srgb, #7fd4ff 12%, transparent); }
:root[data-theme="dark"] .rc5-ocean-decoration__ship { filter: drop-shadow(0 0 10px rgba(125, 211, 252, .38)) drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
:root[data-theme="dark"] .rc5-ocean-decoration__ship::before {
  background: linear-gradient(180deg, #9bdcff 0%, #4da3d8 48%, #1b5f8e 100%);
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.32), 0 0 0 1px rgba(255,255,255,.20);
}
:root[data-theme="dark"] .rc5-ocean-decoration__ship::after {
  background: linear-gradient(140deg, #ffd19a 0%, #ffae5f 70%, #f28c38 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
@keyframes rc5-ship-travel-6874 { from { left: -76px; } to { left: calc(100% + 76px); } }
@keyframes rc5-ship-rock-6874 {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  25% { transform: translateY(-4px) rotate(1.6deg); }
  50% { transform: translateY(1px) rotate(-.7deg); }
  75% { transform: translateY(-3px) rotate(1deg); }
}
@keyframes rc5-ship-sail-breathe-6874 { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(-5deg); } }
@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration__ship,
  .rc5-ocean-decoration__ship::after { animation: none !important; }
}

/* 6.87.12 import/export table rebuild */
.rc5-transfer-tabs { display: inline-flex; gap: 8px; margin: 0 0 14px; padding: 5px; border: 1px solid var(--rc5-border); border-radius: 999px; background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-transfer-tabs button { border: 0 !important; background: transparent !important; color: var(--rc5-text-muted) !important; box-shadow: none !important; }
.rc5-transfer-tabs button[aria-selected="true"] { background: var(--rc5-primary) !important; color: #fff !important; }
.rc5-transfer-entity-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.rc5-transfer-entity-matrix button { min-width: 0; min-height: 112px; align-items: flex-start !important; justify-content: flex-start !important; padding: 14px !important; border: 1px solid var(--rc5-border) !important; border-radius: var(--rc5-radius-md) !important; background: var(--rc5-surface) !important; color: var(--rc5-text) !important; text-align: left !important; box-shadow: var(--rc5-shadow-sm) !important; }
.rc5-transfer-entity-matrix button strong,
.rc5-transfer-entity-matrix button span,
.rc5-transfer-entity-matrix button small { display: block; min-width: 0; overflow-wrap: anywhere; }
.rc5-transfer-entity-matrix button strong { margin-bottom: 5px; font-size: 15px; }
.rc5-transfer-entity-matrix button span { color: var(--rc5-text-muted); font-size: 12px; line-height: 1.35; }
.rc5-transfer-entity-matrix button small { margin-top: auto; color: var(--rc5-accent-strong); font-weight: 800; letter-spacing: .02em; }
.rc5-transfer-entity-matrix button.is-selected { border-color: var(--rc5-primary) !important; background: var(--rc5-primary-tint) !important; }
.rc5-transfer-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 0 0 13px; }
.rc5-transfer-table-card,
.rc5-import-preview,
.rc5-import-source,
.rc5-transfer-result { padding: 14px; border: 1px solid var(--rc5-border); border-radius: var(--rc5-radius-md); background: var(--rc5-surface); box-shadow: var(--rc5-shadow-sm); }
.rc5-import-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); gap: 14px; align-items: start; }
.rc5-import-layout > * { min-width: 0; }
.rc5-import-source textarea { min-height: 180px; max-width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rc5-transfer-table { min-width: 760px; }
.rc5-transfer-table th { background: var(--rc5-primary) !important; color: #fff !important; white-space: nowrap; }
.rc5-transfer-table td { vertical-align: top; max-width: 360px; overflow-wrap: anywhere; }
.rc5-transfer-table tbody tr:nth-child(even) td { background: var(--rc5-surface-soft); }
.rc5-transfer-table-note { margin: 8px 0 0; color: var(--rc5-text-muted); font-size: 12px; }
.rc5-transfer-mapping { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--rc5-border); border-radius: 12px; background: var(--rc5-surface-soft); }
.rc5-transfer-mapping ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 12px; margin: 7px 0 0; padding: 0; list-style: none; }
.rc5-transfer-mapping li { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 840px) { .rc5-import-layout { grid-template-columns: 1fr; } .rc5-transfer-tabs { display: flex; width: 100%; } .rc5-transfer-tabs button { flex: 1; justify-content: center !important; } }


/* 6.88 session-safe startup and instruction form layout rebuild. */
.rc5-modal-form-actions {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  justify-content: flex-end;
  margin: 20px -22px -22px;
  padding: 14px 22px;
  background: var(--rc5-surface-raised);
}
.rc5-modal-form-actions .rc5-text-action--danger,
.rc5-modal-form-actions .rc5-danger-action {
  margin-right: 0 !important;
}
.rc5-text-action--danger,
.rc5-danger-action {
  border-color: var(--rc5-danger) !important;
  background: var(--rc5-danger-soft) !important;
  color: var(--rc5-danger) !important;
}
.rc5-route-port-field {
  display: grid !important;
  gap: 7px;
}
.rc5-route-port-field select,
.rc5-route-port-field input,
.rc5-compact-select {
  min-width: 0;
  max-width: 100%;
}
[data-charterer-pagination] .rc5-pagination {
  justify-content: center;
  text-align: center;
}
[data-charterer-pagination] .rc5-pagination__pages {
  justify-content: center;
}

/* Audit log in Users */
.rc5-audit-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,220px) minmax(180px,240px) auto auto;gap:12px;align-items:end;margin-bottom:16px}
.rc5-audit-toolbar label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:var(--rc5-ink,#17324d)}
.rc5-audit-toolbar label span{font-size:.82rem;color:var(--rc5-muted,#65758a)}
.rc5-audit-toolbar input,.rc5-audit-toolbar select{min-height:38px;border:1px solid var(--rc5-border,#d8e1ea);border-radius:10px;padding:8px 10px;background:var(--rc5-card,#fff);color:var(--rc5-ink,#17324d)}
.rc5-audit-toolbar button{min-height:38px;border:1px solid var(--rc5-border,#d8e1ea);border-radius:10px;padding:8px 14px;background:var(--rc5-card,#fff);color:var(--rc5-ink,#17324d);font-weight:700;cursor:pointer}
.rc5-audit-toolbar button[type="submit"]{background:var(--rc5-primary,#0f5c8f);border-color:var(--rc5-primary,#0f5c8f);color:#fff}
.rc5-audit-table table{table-layout:auto}
.rc5-audit-table td{vertical-align:top}
.rc5-audit-table td:first-child{white-space:nowrap;min-width:150px}
.rc5-audit-table td:nth-child(2){min-width:120px}
.rc5-audit-table td:nth-child(3){min-width:190px}
.rc5-audit-table td small{display:block;margin-top:4px;color:var(--rc5-muted,#65758a)}
.rc5-audit-changes{display:grid;gap:8px;margin:0;padding:0;list-style:none;min-width:320px}
.rc5-audit-changes li{display:grid;grid-template-columns:minmax(120px,180px) minmax(120px,1fr) minmax(120px,1fr);gap:8px;padding:8px;border:1px solid var(--rc5-border,#d8e1ea);border-radius:10px;background:rgba(15,92,143,.04)}
.rc5-audit-changes strong{color:var(--rc5-ink,#17324d)}
.rc5-audit-changes span{overflow-wrap:anywhere;color:var(--rc5-ink,#17324d)}
.rc5-audit-changes em{font-style:normal;color:var(--rc5-muted,#65758a);font-weight:700}
.rc5-muted{color:var(--rc5-muted,#65758a)}
@media (max-width: 900px){.rc5-audit-toolbar{grid-template-columns:1fr}.rc5-audit-changes li{grid-template-columns:1fr}}

/* 6.88.3 regression rollback: compact instruction fields, dark audit readability, route line visibility. */
/* 6.88.5 form cleanup: remove unused blocks and align participant field widths. */
.rc5-form-grid :where(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
}
.rc5-field--compact :where(input, select) {
  width: 100%;
  max-width: 340px;
}
.rc5-field--participant :where(input, select),
.rc5-field--charterer :where(select) {
  width: 100%;
  max-width: 340px;
}
.rc5-route-timeline::before,
.rc5-route-editor::before {
  background: var(--rc5-accent) !important;
  opacity: .95;
}
.rc5-route-timeline__point,
.rc5-route-stop-symbol {
  border-color: var(--rc5-surface-raised);
  background: var(--rc5-accent);
  box-shadow: 0 0 0 2px var(--rc5-accent-strong);
}
.rc5-audit-toolbar label,
.rc5-audit-changes strong,
.rc5-audit-changes span {
  color: var(--rc5-text) !important;
}
.rc5-audit-toolbar label span,
.rc5-audit-table td small,
.rc5-audit-changes em,
.rc5-muted {
  color: var(--rc5-text-muted) !important;
}
.rc5-audit-toolbar input,
.rc5-audit-toolbar select,
.rc5-audit-toolbar button {
  background: var(--rc5-surface) !important;
  color: var(--rc5-text) !important;
  border-color: var(--rc5-border) !important;
}
.rc5-audit-toolbar button[type="submit"] {
  background: var(--rc5-primary) !important;
  color: var(--rc5-text-inverse) !important;
  border-color: var(--rc5-primary) !important;
}
.rc5-audit-changes li {
  background: var(--rc5-surface-soft) !important;
  border-color: var(--rc5-border) !important;
}
:root[data-theme="dark"] .rc5-route-timeline::before,
:root[data-theme="dark"] .rc5-route-editor::before {
  background: var(--rc5-accent) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc5-accent) 55%, transparent);
}



/* 6.88.7 route per-port details: separate cards, 5-line preview, animated full text. */
.rc5-route-editor__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.rc5-route-more-hint {
  color: var(--rc5-text-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.rc5-route-more {
  margin: 0 14px 14px;
  border: 1px solid var(--rc5-border);
  border-radius: 12px;
  background: var(--rc5-surface);
}
.rc5-route-timeline__card .rc5-route-more {
  margin: 12px 0 0;
  background: var(--rc5-surface-soft);
}
.rc5-route-more > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 10px 12px;
  padding: 7px 14px;
  border: 1px solid var(--rc5-border);
  border-radius: 999px;
  background: var(--rc5-surface-raised);
  color: var(--rc5-text);
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}
.rc5-route-more > summary::marker,
.rc5-route-more > summary::-webkit-details-marker {
  display: none;
}
.rc5-route-more > summary::after {
  content: "▾";
  margin-left: 8px;
  color: var(--rc5-text-muted);
  transition: transform .18s ease;
}
.rc5-route-more[open] > summary::after {
  transform: rotate(180deg);
}
.rc5-route-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px;
  align-items: stretch;
}
.rc5-route-detail-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--rc5-border);
  border-radius: 12px;
  background: var(--rc5-surface);
  color: var(--rc5-text);
  overflow: hidden;
}
.rc5-route-detail-card--note {
  grid-column: 1 / -1;
}
.rc5-route-detail-card h4,
.rc5-route-detail-card > span {
  margin: 0;
  color: var(--rc5-text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.rc5-route-detail-card.is-empty .rc5-route-detail-text {
  color: var(--rc5-text-muted);
}
.rc5-route-detail-text {
  position: relative;
  max-height: calc(1.45em * 5);
  overflow: hidden;
  color: var(--rc5-text);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  transition: max-height .28s ease;
}
.rc5-route-detail-text.is-expanded {
  max-height: 1200px;
}
.rc5-route-detail-card.is-collapsible:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--rc5-surface) 68%);
}
.rc5-route-read-more {
  position: relative;
  z-index: 1;
  align-self: stretch;
  margin: auto -4px -4px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc5-primary) 9%, transparent), color-mix(in srgb, var(--rc5-primary) 16%, transparent));
  color: var(--rc5-primary);
  font-weight: 900;
  cursor: pointer;
}
.rc5-route-detail-card.is-expanded .rc5-route-read-more {
  background: var(--rc5-surface-soft);
  color: var(--rc5-text-muted);
}
.rc5-route-detail-grid--edit .rc5-route-detail-card {
  padding: 10px;
}
.rc5-route-detail-grid--edit textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
}
.rc5-route-detail-grid--edit .rc5-route-detail-card--note textarea {
  min-height: 96px;
}
:root[data-theme="dark"] .rc5-route-detail-card.is-collapsible:not(.is-expanded)::after {
  background: linear-gradient(180deg, transparent, var(--rc5-surface) 68%);
}
@media (max-width: 900px) {
  .rc5-route-detail-grid { grid-template-columns: 1fr; }
  .rc5-route-detail-card--note { grid-column: auto; }
}
@media (max-width: 700px) {
  .rc5-route-editor__actions { flex-wrap: wrap; }
  .rc5-route-more-hint { display: none; }
}

/* 6.88.8 release-safe audit readability: user actions and system events. */
.rc5-audit-list{display:grid;gap:12px;max-height:min(68vh,760px);overflow:auto;padding-right:4px}
.rc5-audit-card{border:1px solid var(--rc5-border,#d8e1ea);border-radius:16px;background:var(--rc5-card,#fff);box-shadow:0 10px 24px rgba(15,38,61,.08);padding:14px;display:grid;gap:10px;color:var(--rc5-text,var(--rc5-ink,#17324d))}
.rc5-audit-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--rc5-border,#d8e1ea);padding-bottom:10px}
.rc5-audit-card__head strong{display:block;font-size:1rem;color:var(--rc5-text,var(--rc5-ink,#17324d))}
.rc5-audit-card__head small{display:block;margin-top:3px;color:var(--rc5-text-muted,var(--rc5-muted,#65758a))}
.rc5-audit-card__head time{white-space:nowrap;color:var(--rc5-text-muted,var(--rc5-muted,#65758a));font-weight:700;font-size:.86rem}
.rc5-audit-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.86rem;color:var(--rc5-text-muted,var(--rc5-muted,#65758a))}
.rc5-audit-card__meta>span:first-child{font-weight:800;color:var(--rc5-text,var(--rc5-ink,#17324d))}
.rc5-audit-source{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;border:1px solid var(--rc5-border,#d8e1ea);background:rgba(15,92,143,.08);font-weight:800;color:var(--rc5-text,var(--rc5-ink,#17324d))}
.rc5-audit-source--system{background:rgba(117,130,151,.12)}
.rc5-audit-source--user{background:rgba(15,92,143,.12)}
.rc5-audit-changes{display:grid;gap:8px;margin:0;padding:0;list-style:none;min-width:0}
.rc5-audit-change{display:grid;gap:8px;align-items:center;border:1px solid var(--rc5-border,#d8e1ea);border-radius:12px;background:rgba(15,92,143,.045);padding:9px 10px;color:var(--rc5-text,var(--rc5-ink,#17324d))}
.rc5-audit-change--diff{grid-template-columns:minmax(120px,180px) minmax(120px,1fr) auto minmax(120px,1fr)}
.rc5-audit-change--text{grid-template-columns:minmax(120px,180px) minmax(160px,1fr)}
.rc5-audit-change strong{color:var(--rc5-text,var(--rc5-ink,#17324d))}
.rc5-audit-value{overflow-wrap:anywhere;border-radius:9px;padding:6px 8px;background:var(--rc5-surface,#f5f8fb);border:1px solid var(--rc5-border,#d8e1ea)}
.rc5-audit-value--before{opacity:.82}
.rc5-audit-value--after{font-weight:700}
.rc5-audit-arrow{font-weight:900;color:var(--rc5-text-muted,var(--rc5-muted,#65758a))}
:root[data-theme="dark"] .rc5-audit-card,
[data-theme="dark"] .rc5-audit-card{background:var(--rc5-surface,#132132);border-color:var(--rc5-border,#28435f);box-shadow:none}
:root[data-theme="dark"] .rc5-audit-change,
[data-theme="dark"] .rc5-audit-change{background:rgba(255,255,255,.045);border-color:var(--rc5-border,#28435f)}
:root[data-theme="dark"] .rc5-audit-value,
[data-theme="dark"] .rc5-audit-value{background:rgba(255,255,255,.055);border-color:var(--rc5-border,#28435f);color:var(--rc5-text,#e7eef7)}
@media (max-width: 900px){.rc5-audit-card__head{display:grid}.rc5-audit-card__head time{white-space:normal}.rc5-audit-change--diff,.rc5-audit-change--text{grid-template-columns:1fr}.rc5-audit-arrow{display:none}}

/* 6.88.9 audit detail cards and pagination sanity. */
.rc5-audit-card__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
.rc5-audit-detail-button{border:1px solid var(--rc5-primary,#0f5c8f);background:rgba(15,92,143,.08);color:var(--rc5-primary,#0f5c8f);border-radius:999px;padding:7px 12px;font-weight:800;cursor:pointer}
.rc5-audit-detail-button:hover{background:rgba(15,92,143,.14)}
.rc5-audit-card--expanded{border-color:var(--rc5-primary,#0f5c8f);box-shadow:0 14px 34px rgba(15,92,143,.14)}
.rc5-audit-detail{border-top:1px dashed var(--rc5-border,#d8e1ea);padding-top:12px;display:grid;gap:12px;animation:rc5AuditDetailIn .18s ease-out}
.rc5-audit-detail h4{margin:0;color:var(--rc5-text,var(--rc5-ink,#17324d))}
.rc5-audit-detail__meta{margin:0}
.rc5-audit-changes--detail{gap:10px}
.rc5-audit-change--detailed{align-items:start}
.rc5-audit-change--detailed .rc5-audit-value{display:grid;gap:4px;white-space:pre-wrap;line-height:1.42}
.rc5-audit-change--detailed .rc5-audit-value em{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--rc5-text-muted,var(--rc5-muted,#65758a));font-weight:900}
.rc5-audit-changes--preview .rc5-audit-change:nth-child(n+5){display:none}
@keyframes rc5AuditDetailIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
:root[data-theme="dark"] .rc5-audit-card--expanded,
[data-theme="dark"] .rc5-audit-card--expanded{border-color:rgba(91,181,255,.7);box-shadow:none}
:root[data-theme="dark"] .rc5-audit-detail-button,
[data-theme="dark"] .rc5-audit-detail-button{background:rgba(91,181,255,.12);border-color:rgba(91,181,255,.6);color:var(--rc5-text,#e7eef7)}
:root[data-theme="dark"] .rc5-audit-detail,
[data-theme="dark"] .rc5-audit-detail{border-color:var(--rc5-border,#28435f)}

/* 6.88.14 live dashboard vessel animation: visible dashboard panel, isolated layers, corrected waterline alignment. */
.rc5-ocean-decoration[data-ocean-animation] {
  height: 198px;
  opacity: .88;
  contain: paint;
}
.rc5-ocean-decoration[data-ocean-animation]::before,
.rc5-ocean-decoration[data-ocean-animation]::after::before::after {
  z-index: 0;
  pointer-events: none;
}
.rc5-ocean-decoration[data-ocean-animation]::before::before { bottom: -74px; height: 126px; }
.rc5-ocean-decoration[data-ocean-animation]::after::after { bottom: -66px; height: 108px; }
.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-waterline,
.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-vessels > .rc5-ocean-waterline > .rc5-ocean-vessels { animation: none; }
.rc5-ocean-waterline {
  position: absolute;
  left: -8%;
  right: -8%;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rc5-primary-soft) 42%, transparent);
  opacity: .55;
}
.rc5-ocean-waterline--far,
.rc5-ocean-waterline--near { display: none !important; }
.rc5-ocean-vessels { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.rc5-ocean-vessel {
  position: absolute;
  left: 0;
  bottom: var(--vessel-bottom, 38px);
  width: var(--vessel-width, 180px);
  height: calc(var(--vessel-width, 180px) * .47);
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 11px 12px rgba(4, 19, 32, .24));
  will-change: transform;
}
.rc5-ocean-vessel--eastbound,
.rc5-ocean-vessel--neutral { animation: rc5-ocean-vessel-east var(--vessel-duration, 76s) linear infinite; animation-delay: var(--vessel-delay, -12s); }
.rc5-ocean-vessel--westbound { animation: rc5-ocean-vessel-west var(--vessel-duration, 76s) linear infinite; animation-delay: var(--vessel-delay, -12s); }
.rc5-ocean-vessel__body {
  position: absolute;
  inset: 0;
  display: block;
  animation: rc5-ocean-vessel-bob 5.2s ease-in-out infinite;
  transform-origin: 50% 82%;
}
.rc5-ocean-vessel__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rc5-ocean-vessel--westbound .rc5-ocean-vessel__svg { transform: scaleX(-1); transform-origin: 50% 50%; }
.rc5-vessel-hull {
  fill: color-mix(in srgb, var(--rc5-primary) 64%, #0b2237 36%);
  stroke: color-mix(in srgb, var(--rc5-primary) 42%, #ffffff 18%);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.rc5-vessel-hull--fishing { fill: color-mix(in srgb, var(--rc5-primary) 70%, #12344f 30%); }
.rc5-vessel-deck,
.rc5-vessel-mast,
.rc5-vessel-window-line,
.rc5-vessel-ramp,
.rc5-vessel-crane-detail,
.rc5-vessel-pipe-detail,
.rc5-vessel-fishing-gear {
  fill: none;
  stroke: color-mix(in srgb, var(--rc5-text) 46%, #ffffff 54%);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rc5-vessel-superstructure,
.rc5-vessel-roro-box {
  fill: color-mix(in srgb, var(--rc5-surface) 78%, var(--rc5-primary-soft) 22%);
  stroke: color-mix(in srgb, var(--rc5-primary) 44%, #ffffff 32%);
  stroke-width: 2;
  rx: 2;
}
.rc5-vessel-roro-box { fill: color-mix(in srgb, var(--rc5-surface) 64%, var(--rc5-primary-soft) 36%); }
.rc5-vessel-container-stack rect,
.rc5-vessel-cargo-detail rect {
  fill: color-mix(in srgb, var(--rc5-accent) 72%, #ffffff 28%);
  stroke: color-mix(in srgb, var(--rc5-accent-strong) 68%, #172033 32%);
  stroke-width: 1.4;
}
.rc5-vessel-container-stack rect:nth-child(3n+2) { fill: color-mix(in srgb, var(--rc5-primary-soft) 76%, #ffffff 24%); }
.rc5-vessel-container-stack rect:nth-child(3n) { fill: color-mix(in srgb, var(--rc5-warning) 58%, #ffffff 42%); }
.rc5-vessel-cargo-detail path,
.rc5-vessel-pipe-detail path,
.rc5-vessel-pipe-detail rect {
  fill: none;
  stroke: color-mix(in srgb, var(--rc5-text) 39%, #ffffff 61%);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rc5-vessel-light--mast,
.rc5-vessel-light--stern,
.rc5-vessel-light--fishing-white {
  fill: #fffdf0;
  color: #fffdf0;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.95)) drop-shadow(0 0 9px rgba(255,255,255,.55));
}
.rc5-vessel-light--side,
.rc5-vessel-light--fishing-green,
.rc5-vessel-light--fishing-red { filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 9px currentColor); }
.rc5-vessel-light--fishing-green { fill: #36e184; color: #36e184; }
.rc5-vessel-light--fishing-red { fill: #ff4a55; color: #ff4a55; }
.rc5-ocean-vessel--eastbound .rc5-vessel-light--side,
.rc5-ocean-vessel--neutral .rc5-vessel-light--side { fill: #36e184; color: #36e184; }
.rc5-ocean-vessel--westbound .rc5-vessel-light--side { fill: #ff4a55; color: #ff4a55; }
.rc5-ocean-vessel__name-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
}
.rc5-ocean-vessel__name-text {
  fill: rgba(255,255,255,.96);
  font-family: Inter, Arial, sans-serif;
  font-weight: 950;
  letter-spacing: .055em;
  paint-order: stroke fill;
  stroke: rgba(0,0,0,.42);
  stroke-width: 1.15px;
  stroke-linejoin: round;
  dominant-baseline: middle;
}
.rc5-ocean-vessel--neutral .rc5-ocean-vessel__name-svg { display: none; }
:root[data-theme="dark"] .rc5-ocean-decoration[data-ocean-animation] { opacity: .95; }
:root[data-theme="dark"] .rc5-vessel-hull { fill: #1d6f9f; stroke: rgba(202,240,255,.44); }
:root[data-theme="dark"] .rc5-vessel-superstructure,
:root[data-theme="dark"] .rc5-vessel-roro-box { fill: #d8edf7; stroke: rgba(255,255,255,.5); }
:root[data-theme="dark"] .rc5-vessel-deck,
:root[data-theme="dark"] .rc5-vessel-mast,
:root[data-theme="dark"] .rc5-vessel-window-line,
:root[data-theme="dark"] .rc5-vessel-ramp,
:root[data-theme="dark"] .rc5-vessel-crane-detail,
:root[data-theme="dark"] .rc5-vessel-pipe-detail,
:root[data-theme="dark"] .rc5-vessel-fishing-gear { stroke: rgba(235,249,255,.78); }
@keyframes rc5-ocean-vessel-east {
  from { transform: translateX(calc(-1 * var(--vessel-width, 180px) - 44px)); }
  to { transform: translateX(calc(100vw + var(--vessel-width, 180px) + 44px)); }
}
@keyframes rc5-ocean-vessel-west {
  from { transform: translateX(calc(100vw + var(--vessel-width, 180px) + 44px)); }
  to { transform: translateX(calc(-1 * var(--vessel-width, 180px) - 44px)); }
}
@keyframes rc5-ocean-vessel-bob {
  0%, 100% { transform: translateY(0) rotate(-.35deg); }
  25% { transform: translateY(-1.4px) rotate(.45deg); }
  50% { transform: translateY(.7px) rotate(-.2deg); }
  75% { transform: translateY(-.8px) rotate(.3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration[data-ocean-animation]::before,
  .rc5-ocean-decoration[data-ocean-animation]::after,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-waterline,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body .rc5-ocean-vessel__body { animation: none !important; }
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel { left: var(--vessel-static-left, 50%); transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .rc5-ocean-decoration[data-ocean-animation] { height: 172px; }
  .rc5-ocean-vessel { width: min(var(--vessel-width, 180px), 176px); bottom: calc(var(--vessel-bottom, 38px) - 2px); }
  .rc5-ocean-vessel--fishingVessel { bottom: 43px; }
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--eastbound,
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--neutral .rc5-ocean-vessel--eastbound .rc5-ocean-vessel--neutral { animation: rc5-ocean-vessel-east var(--vessel-duration, 76s) linear infinite !important; animation-delay: var(--vessel-delay, -12s) !important; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--westbound .rc5-ocean-vessel--westbound { animation: rc5-ocean-vessel-west var(--vessel-duration, 76s) linear infinite !important; animation-delay: var(--vessel-delay, -12s) !important; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body .rc5-ocean-vessel__body { animation: rc5-ocean-vessel-bob 5.2s ease-in-out infinite !important; }
@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body .rc5-ocean-vessel__body { animation: none !important; }
}


/* 6.88.16 perspective ocean animation: seamless depth planes, per-plane direction, even spacing. */
.rc5-ocean-decoration[data-ocean-animation] {
  height: 214px;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
  background:
    radial-gradient(ellipse at 52% 8%, rgba(255,255,255,.16) 0 1px, transparent 2px 100%),
    linear-gradient(180deg, rgba(130,211,255,.16) 0%, rgba(48,143,199,.14) 46%, rgba(6,48,84,.36) 100%);
}
.rc5-ocean-decoration[data-ocean-animation]::before,
.rc5-ocean-decoration[data-ocean-animation]::after::before::after {
  display: none;
}
.rc5-ocean-plane {
  position: absolute;
  left: -10%;
  width: 120%;
  pointer-events: none;
  background-repeat: repeat-x;
  mix-blend-mode: screen;
}
.rc5-ocean-plane--far {
  z-index: 4;
  inset: 8px -10% auto -10%;
  height: 92px;
  opacity: .18;
  background:
    radial-gradient(ellipse at 18% 36%, rgba(240,250,255,.34) 0 1px, transparent 2px 100%),
    radial-gradient(ellipse at 64% 54%, rgba(130,211,255,.18) 0 1px, transparent 2px 100%);
  background-size: 260px 100%, 380px 100%;
  animation: rc5-ocean-plane-drift-far 36s linear infinite;
}
.rc5-ocean-plane--mid {
  z-index: 14;
  inset: 48px -10% auto -10%;
  height: 104px;
  opacity: .24;
  background:
    radial-gradient(ellipse at 42% 48%, rgba(240,250,255,.32) 0 1px, transparent 2px 100%),
    radial-gradient(ellipse at 76% 62%, rgba(130,211,255,.2) 0 1px, transparent 2px 100%);
  background-size: 230px 100%, 340px 100%;
  animation: rc5-ocean-plane-drift-mid 28s linear infinite;
}
.rc5-ocean-plane--front {
  z-index: 24;
  inset: 104px -10% auto -10%;
  height: 120px;
  opacity: .3;
  background:
    radial-gradient(ellipse at 30% 48%, rgba(255,255,255,.34) 0 1px, transparent 2px 100%),
    radial-gradient(ellipse at 70% 66%, rgba(130,211,255,.24) 0 1px, transparent 2px 100%);
  background-size: 190px 100%, 290px 100%;
  animation: rc5-ocean-plane-drift-front 22s linear infinite;
}
.rc5-ocean-waterline { display: none !important; }
.rc5-ocean-vessels { z-index: 40; overflow: hidden; }
.rc5-ocean-vessel {
  bottom: var(--vessel-bottom, 44px) !important;
  width: var(--vessel-width, 180px);
  height: calc(var(--vessel-width, 180px) * .47);
  z-index: var(--vessel-z-index, 20);
  opacity: var(--vessel-opacity, 1);
  filter: drop-shadow(0 9px 10px rgba(2, 15, 26, .22));
  transform-origin: 50% 92%;
}
.rc5-ocean-vessel--plane-far { z-index: 10; }
.rc5-ocean-vessel--plane-mid { z-index: 20; }
.rc5-ocean-vessel--plane-front { z-index: 30; }
.rc5-ocean-vessel__scale {
  position: absolute;
  inset: 0;
  transform: scale(var(--vessel-scale, 1));
  transform-origin: 50% 92%;
  will-change: transform;
}
.rc5-ocean-vessel__body {
  inset: 0;
  transform-origin: 50% 86%;
  animation: rc5-ocean-vessel-bob-v7 5.8s ease-in-out infinite !important;
}
.rc5-ocean-vessel--plane-far .rc5-ocean-vessel__body { animation-duration: 7.2s !important; }
.rc5-ocean-vessel--plane-front .rc5-ocean-vessel__body { animation-duration: 4.9s !important; }
.rc5-ocean-vessel__svg,
.rc5-ocean-vessel__name-svg { overflow: visible; }
.rc5-vessel-plane-wake {
  position: absolute;
  left: 13%;
  right: 8%;
  bottom: 5px;
  height: 8px;
  border-radius: 999px;
  opacity: .58;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), rgba(130,211,255,.28), transparent);
  transform: skewX(-12deg);
  filter: blur(.25px);
}
.rc5-ocean-vessel--plane-far .rc5-vessel-plane-wake { height: 4px; bottom: 7px; opacity: .32; }
.rc5-ocean-vessel--plane-mid .rc5-vessel-plane-wake { height: 6px; bottom: 6px; opacity: .48; }
.rc5-ocean-vessel--plane-front .rc5-vessel-plane-wake { height: 9px; bottom: 4px; opacity: .66; }
.rc5-vessel-hull { stroke-width: 2; }
.rc5-vessel-hull--bulk { fill: #2f5670; stroke: rgba(207,236,246,.52); }
.rc5-vessel-hull--container { fill: #183f63; stroke: rgba(207,236,246,.52); }
.rc5-vessel-hull--roro { fill: #275f89; stroke: rgba(207,236,246,.54); }
.rc5-vessel-hull--tanker { fill: #513438; stroke: rgba(234,215,205,.44); }
.rc5-vessel-hull--cargo { fill: #344e57; stroke: rgba(213,232,236,.48); }
.rc5-vessel-hull--fishing { fill: #1e5b73; stroke: rgba(213,239,246,.52); }
.rc5-vessel-bootline {
  fill: none;
  stroke: rgba(205,91,66,.84);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.rc5-vessel-hatch-detail rect {
  fill: #8a4936;
  stroke: rgba(255,220,192,.44);
  stroke-width: 1.3;
}
.rc5-vessel-hatch-detail path {
  fill: none;
  stroke: rgba(237,221,206,.64);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rc5-vessel-container-stack rect {
  stroke: rgba(15,27,42,.72);
  stroke-width: 1.2;
}
.rc5-vessel-container--red { fill: #b95842 !important; }
.rc5-vessel-container--blue { fill: #2b79a8 !important; }
.rc5-vessel-container--sand { fill: #d59b54 !important; }
.rc5-vessel-container--teal { fill: #2f8c96 !important; }
.rc5-vessel-cargo-detail rect {
  fill: #80624a;
  stroke: rgba(240,220,190,.56);
}
.rc5-vessel-roro-box {
  fill: #dce8ec;
  stroke: rgba(66,105,130,.72);
}
.rc5-vessel-superstructure {
  fill: #edf5f7;
  stroke: rgba(66,105,130,.7);
}
.rc5-vessel-deck,
.rc5-vessel-mast,
.rc5-vessel-window-line,
.rc5-vessel-ramp,
.rc5-vessel-crane-detail,
.rc5-vessel-pipe-detail,
.rc5-vessel-fishing-gear {
  stroke: rgba(235,246,249,.82);
}
.rc5-vessel-crane-detail { stroke: #d8a64f; stroke-width: 3; }
.rc5-vessel-pipe-detail,
.rc5-vessel-pipe-detail path,
.rc5-vessel-pipe-detail rect { stroke: rgba(222,232,231,.82); }
.rc5-vessel-fishing-gear { stroke: rgba(218,232,229,.86); }
.rc5-vessel-navigation-lights .rc5-vessel-mast {
  stroke-width: 2.1;
  stroke: rgba(240,250,255,.9);
}
.rc5-vessel-light--mast,
.rc5-vessel-light--stern,
.rc5-vessel-light--fishing-white {
  fill: #fffdf0;
  color: #fffdf0;
  filter: drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 0 7px rgba(255,255,255,.68));
}
.rc5-vessel-light--side,
.rc5-vessel-light--fishing-green,
.rc5-vessel-light--fishing-red {
  filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 7px currentColor);
}
.rc5-ocean-vessel--eastbound .rc5-vessel-light--side,
.rc5-ocean-vessel--neutral .rc5-vessel-light--side { fill: #32df7c; color: #32df7c; }
.rc5-ocean-vessel--westbound .rc5-vessel-light--side { fill: #ff4e5f; color: #ff4e5f; }
.rc5-vessel-light--fishing-green { fill: #32df7c; color: #32df7c; }
.rc5-vessel-light--fishing-red { fill: #ff4e5f; color: #ff4e5f; }
.rc5-ocean-vessel__name-text {
  fill: rgba(255,255,255,.98);
  stroke: rgba(3,13,22,.72);
  stroke-width: 1.35px;
  letter-spacing: .045em;
}
@keyframes rc5-ocean-vessel-bob-v7 {
  0%, 100% { transform: translateY(0) rotate(-.22deg); }
  25% { transform: translateY(calc(-1 * var(--vessel-bob, .7px))) rotate(.24deg); }
  50% { transform: translateY(calc(var(--vessel-bob, .7px) * .45)) rotate(-.12deg); }
  75% { transform: translateY(calc(-1 * var(--vessel-bob, .7px) * .6)) rotate(.18deg); }
}
@keyframes rc5-ocean-plane-drift-far { from { transform: translateX(-16px); } to { transform: translateX(28px); } }
@keyframes rc5-ocean-plane-drift-mid { from { transform: translateX(24px); } to { transform: translateX(-30px); } }
@keyframes rc5-ocean-plane-drift-front { from { transform: translateX(-34px); } to { transform: translateX(42px); } }
@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body,
  .rc5-ocean-plane { animation: none !important; }
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel { left: var(--vessel-static-left, 50%); transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .rc5-ocean-decoration[data-ocean-animation] { height: 176px; }
  .rc5-ocean-vessel { width: min(var(--vessel-width, 180px), 172px); }
}


/* 6.88.17 prettier detailed vessel artwork: richer UI-vector ships, no generated bitmap assets. */
.rc5-ocean-vessel__svg { shape-rendering: geometricPrecision; }
.rc5-vessel-hull {
  stroke-width: 2.15;
  paint-order: stroke fill;
}
.rc5-vessel-hull-shadow {
  fill: rgba(1, 10, 18, .22);
  stroke: none;
}
.rc5-vessel-hull--bulk { fill: #244f65; stroke: rgba(214,240,248,.54); }
.rc5-vessel-hull--container { fill: #163e62; stroke: rgba(214,240,248,.54); }
.rc5-vessel-hull--roro { fill: #245b83; stroke: rgba(220,242,249,.56); }
.rc5-vessel-hull--tanker { fill: #4a3336; stroke: rgba(236,218,211,.5); }
.rc5-vessel-hull--cargo { fill: #263f4d; stroke: rgba(218,238,242,.52); }
.rc5-vessel-hull--fishing { fill: #1d5a76; stroke: rgba(217,243,249,.56); }
.rc5-vessel-superstructure {
  fill: #edf6f8;
  stroke: rgba(54, 93, 119, .74);
  stroke-width: 1.65;
}
.rc5-vessel-roro-box {
  fill: #dbe8ed;
  stroke: rgba(54, 93, 119, .72);
  stroke-width: 1.7;
}
.rc5-vessel-roro-shadow { fill: rgba(60, 96, 122, .18); stroke: none; }
.rc5-vessel-deck,
.rc5-vessel-rail,
.rc5-vessel-mast,
.rc5-vessel-window-line,
.rc5-vessel-ramp,
.rc5-vessel-crane-detail,
.rc5-vessel-pipe-detail,
.rc5-vessel-fishing-gear {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rc5-vessel-deck { stroke: rgba(236,247,250,.9); stroke-width: 1.9; }
.rc5-vessel-rail { stroke: rgba(225,239,244,.68); stroke-width: 1.15; }
.rc5-vessel-window-detail rect {
  fill: #5e8fab;
  stroke: rgba(255,255,255,.46);
  stroke-width: .45;
}
.rc5-vessel-window-detail--roro path {
  fill: none;
  stroke: rgba(73,105,129,.58);
  stroke-width: 1.35;
}
.rc5-vessel-hatch-detail--bulk rect {
  fill: #8b4937;
  stroke: rgba(255,224,198,.48);
  stroke-width: 1.2;
}
.rc5-vessel-hatch-detail--bulk path {
  stroke: rgba(238,219,203,.66);
  stroke-width: 1.45;
}
.rc5-vessel-hatch-shadow { fill: rgba(28, 16, 12, .22); stroke: none !important; }
.rc5-vessel-container-stack rect,
.rc5-vessel-cargo-detail rect:not(.rc5-vessel-cargo--hold) {
  stroke: rgba(11, 23, 37, .72);
  stroke-width: 1.05;
  rx: 1.25;
}
.rc5-vessel-container--red { fill: #b95742 !important; }
.rc5-vessel-container--blue { fill: #2e79a8 !important; }
.rc5-vessel-container--sand { fill: #d69a50 !important; }
.rc5-vessel-container--teal { fill: #2f8b96 !important; }
.rc5-vessel-container--slate { fill: #64748b !important; }
.rc5-vessel-container-line {
  fill: none;
  stroke: rgba(12,23,35,.28);
  stroke-width: .8;
}
.rc5-vessel-cargo--hold {
  fill: #7b604a;
  stroke: rgba(238,219,194,.58);
  stroke-width: 1.1;
}
.rc5-vessel-crane-detail {
  stroke: #d9aa50;
  stroke-width: 2.75;
}
.rc5-vessel-crane-cable {
  stroke: rgba(247,233,192,.86);
  stroke-width: 1.1;
}
.rc5-vessel-pipe-detail,
.rc5-vessel-pipe-detail path,
.rc5-vessel-pipe-detail rect {
  stroke: rgba(222,232,231,.86);
  stroke-width: 1.65;
}
.rc5-vessel-pipe-detail circle {
  fill: rgba(223,235,234,.68);
  stroke: rgba(82,98,100,.68);
  stroke-width: .8;
}
.rc5-vessel-fishing-gear {
  stroke: rgba(218,232,229,.9);
  stroke-width: 1.75;
}
.rc5-vessel-net {
  stroke: rgba(194, 176, 133, .9);
  stroke-width: 1.25;
}
.rc5-vessel-net-reel {
  fill: none;
  stroke: rgba(194, 176, 133, .92);
  stroke-width: 1.8;
}
.rc5-vessel-anchor-mark {
  fill: rgba(255,255,255,.38);
  stroke: rgba(5,14,24,.42);
  stroke-width: .75;
}
.rc5-vessel-navigation-lights .rc5-vessel-mast {
  stroke: rgba(238,249,252,.95);
  stroke-width: 2.0;
}
.rc5-vessel-light--mast,
.rc5-vessel-light--stern,
.rc5-vessel-light--fishing-white {
  r: 3.15;
  filter: drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 0 8px rgba(255,255,255,.72));
}
.rc5-ocean-vessel--plane-far .rc5-vessel-container-line,
.rc5-ocean-vessel--plane-far .rc5-vessel-rail { opacity: .64; }
.rc5-ocean-vessel--plane-far .rc5-vessel-window-detail,
.rc5-ocean-vessel--plane-far .rc5-vessel-pipe-detail circle { opacity: .78; }
.rc5-ocean-vessel--plane-front { filter: drop-shadow(0 12px 14px rgba(2, 15, 26, .27)); }

/* 6.88.19 single-source ocean animation: collision-safe scheduling and soft upper fade. */
.rc5-ocean-decoration[data-ocean-animation] {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 214px;
  z-index: 0;
  pointer-events: none;
  opacity: .92;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.18) 12px, #000 38px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.18) 12px, #000 38px, #000 100%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 18%, rgba(255,255,255,0) 38%),
    radial-gradient(ellipse at 52% 8%, rgba(255,255,255,.16) 0 1px, transparent 2px 100%),
    linear-gradient(180deg, rgba(130,211,255,.16) 0%, rgba(48,143,199,.14) 46%, rgba(6,48,84,.36) 100%);
}
.rc5-ocean-decoration[data-ocean-animation]::before,
.rc5-ocean-decoration[data-ocean-animation]::after { display: none !important; }
.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-decoration__wake,
.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-decoration__ship { display: none !important; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessels { position: absolute; inset: 0; z-index: 40; overflow: hidden; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel {
  position: absolute;
  left: 0;
  bottom: var(--vessel-bottom, 44px) !important;
  width: var(--vessel-width, 180px);
  height: calc(var(--vessel-width, 180px) * .47);
  z-index: var(--vessel-z-index, 20);
  opacity: var(--vessel-opacity, 1);
  pointer-events: none;
  filter: drop-shadow(0 9px 10px rgba(2, 15, 26, .22));
  transform-origin: 50% 92%;
  will-change: transform;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--eastbound,
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--neutral {
  animation: rc5-ocean-vessel-east var(--vessel-duration, 76s) linear infinite !important;
  animation-delay: var(--vessel-delay, -12s) !important;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--westbound {
  animation: rc5-ocean-vessel-west var(--vessel-duration, 76s) linear infinite !important;
  animation-delay: var(--vessel-delay, -12s) !important;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__scale {
  position: absolute;
  inset: 0;
  transform: scale(var(--vessel-scale, 1));
  transform-origin: 50% 92%;
  will-change: transform;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body {
  position: absolute;
  inset: 0;
  display: block;
  animation: rc5-ocean-vessel-bob-v7 5.8s ease-in-out infinite !important;
  transform-origin: 50% 86%;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-far { z-index: 10; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-mid { z-index: 20; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-front { z-index: 30; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-far .rc5-ocean-vessel__body { animation-duration: 7.2s !important; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-front .rc5-ocean-vessel__body { animation-duration: 4.9s !important; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-waterline { display: none !important; }
:root[data-theme="dark"] .rc5-ocean-decoration[data-ocean-animation] { opacity: .95; }
@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-plane { animation: none !important; }
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel { left: var(--vessel-static-left, 50%); transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .rc5-ocean-decoration[data-ocean-animation] { height: 176px; }
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel { width: min(var(--vessel-width, 180px), 172px); }
}

/* 6.88.21 non-grid water rendering: irregular waves, hull contact foam, no crossed repeat patterns. */
.rc5-ocean-decoration[data-ocean-animation] {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 16%, rgba(255,255,255,0) 34%),
    radial-gradient(ellipse at 22% 66%, rgba(255,255,255,.10) 0 16px, transparent 17px 100%),
    radial-gradient(ellipse at 74% 72%, rgba(117,207,255,.10) 0 22px, transparent 23px 100%),
    linear-gradient(180deg, rgba(136,215,255,.22) 0%, rgba(49,151,207,.22) 48%, rgba(5,48,86,.44) 100%);
}

.rc5-ocean-decoration[data-ocean-animation]::before,
.rc5-ocean-decoration[data-ocean-animation]::after { display: none !important; }

.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-decoration__wake,
.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-decoration__ship { display: none !important; }

.rc5-ocean-wavefield {
  position: absolute;
  left: -14%;
  width: 128%;
  pointer-events: none;
  background-repeat: repeat-x;
  mix-blend-mode: screen;
  opacity: .8;
}

.rc5-ocean-wavefield--back {
  z-index: 6;
  top: 46px;
  height: 92px;
  opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='90' viewBox='0 0 360 90'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M6 52 C34 42 56 43 82 51 S134 62 160 52 S214 41 246 53 S310 62 354 48' stroke='%23ffffff' stroke-opacity='.30' stroke-width='2.2'/%3E%3Cpath d='M36 69 C58 61 82 61 102 68 S154 76 184 66 S238 58 278 70' stroke='%238adcff' stroke-opacity='.22' stroke-width='1.5'/%3E%3Cpath d='M216 36 C235 31 252 32 270 37 S312 44 342 34' stroke='%23ffffff' stroke-opacity='.18' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 90px;
  animation: rc5-ocean-wavefield-back 42s linear infinite;
}

.rc5-ocean-wavefield--front {
  z-index: 26;
  bottom: -5px;
  height: 122px;
  opacity: .56;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='430' height='116' viewBox='0 0 430 116'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M8 74 C42 61 72 63 102 73 S164 89 202 73 S270 57 318 76 S388 88 424 70' stroke='%23ffffff' stroke-opacity='.42' stroke-width='2.6'/%3E%3Cpath d='M18 92 C52 82 86 82 122 92 S196 104 238 90 S322 80 404 94' stroke='%237fd8ff' stroke-opacity='.30' stroke-width='1.8'/%3E%3Cpath d='M138 50 C164 41 190 42 218 52 S280 64 324 48' stroke='%23ffffff' stroke-opacity='.24' stroke-width='1.8'/%3E%3Cpath d='M284 30 C306 24 326 25 350 31 S392 38 416 29' stroke='%23def7ff' stroke-opacity='.18' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 430px 116px;
  animation: rc5-ocean-wavefield-front 32s linear infinite;
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body {
  overflow: visible;
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body::before {
  content: '';
  position: absolute;
  left: 7%;
  right: 8%;
  bottom: 5.2%;
  height: 10px;
  z-index: 3;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 12% 50%, rgba(255,255,255,.82) 0 2px, transparent 3px 100%),
    radial-gradient(ellipse at 31% 58%, rgba(236,251,255,.64) 0 1.8px, transparent 3px 100%),
    radial-gradient(ellipse at 58% 42%, rgba(255,255,255,.52) 0 1.4px, transparent 2.6px 100%),
    linear-gradient(92deg, transparent 0%, rgba(255,255,255,.64) 17%, rgba(142,224,255,.28) 54%, transparent 100%);
  filter: blur(.2px);
  opacity: .82;
  transform: skewX(-9deg);
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--westbound .rc5-ocean-vessel__body::before {
  transform: skewX(9deg);
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-far .rc5-ocean-vessel__body::before {
  height: 5px;
  bottom: 6.7%;
  opacity: .46;
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-mid .rc5-ocean-vessel__body::before {
  height: 8px;
  opacity: .66;
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--plane-front .rc5-ocean-vessel__body::before {
  height: 12px;
  bottom: 4.8%;
  opacity: .88;
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-vessel-plane-wake {
  z-index: 1;
  left: 2%;
  right: 3%;
  bottom: 0;
  height: 13px;
  opacity: .76;
  background:
    radial-gradient(ellipse at 10% 54%, rgba(255,255,255,.72) 0 2px, transparent 3.3px 100%),
    radial-gradient(ellipse at 29% 60%, rgba(255,255,255,.52) 0 1.4px, transparent 2.7px 100%),
    linear-gradient(88deg, transparent, rgba(255,255,255,.66), rgba(130,211,255,.30), transparent);
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--westbound .rc5-vessel-plane-wake {
  transform: skewX(12deg);
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__svg {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__name-svg {
  position: absolute;
  inset: 0;
  z-index: 4;
}

@keyframes rc5-ocean-wavefield-back {
  from { transform: translateX(-34px); }
  to { transform: translateX(72px); }
}

@keyframes rc5-ocean-wavefield-front {
  from { transform: translateX(58px); }
  to { transform: translateX(-86px); }
}

@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-wavefield { animation: none !important; }
}


/* Unified relationship cards, whitespace-preserving text, and search-based agent voyages. */
.rc5-long-text,
.rc5-route-detail-text {
  white-space: pre-wrap;
  tab-size: 4;
}

.rc5-two-line-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.rc5-choice-panel--wide,
.rc5-agent-voyage-search,
.rc5-agent-voyage-list,
.rc5-agent-voyage-group,
.rc5-agent-voyage-choice {
  min-width: 0;
  max-width: 100%;
}

.rc5-agent-voyage-search {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.rc5-agent-voyage-list {
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.rc5-agent-voyage-group {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--rc5-border);
  border-radius: 10px;
  background: var(--rc5-surface-soft);
  overflow: hidden;
}

.rc5-agent-voyage-group > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc5-agent-voyage-group > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rc5-agent-voyage-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  overflow: hidden;
}

.rc5-agent-voyage-choice > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc5-route-detail-grid--edit .rc5-route-detail-card input {
  width: 100%;
  margin-top: 8px;
}

.rc5-ocean-vessel__name-text {
  paint-order: stroke fill;
  stroke-width: 2px;
}

/* Unified import drop-zone, route cargo grid, and dashboard route columns. */
.rc5-preserve-whitespace {
  white-space: pre-wrap;
  tab-size: 4;
}

.rc5-import-dropzone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  border: 2px dashed var(--rc5-border-strong, var(--rc5-border));
  border-radius: 16px;
  background: var(--rc5-surface-soft);
  text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rc5-import-dropzone.is-drag-over {
  border-color: var(--rc5-accent);
  background: rgba(29, 105, 171, .08);
  transform: translateY(-1px);
}
.rc5-import-dropzone input[type="file"] {
  display: block;
  max-width: 100%;
  margin-top: 6px;
}

.rc5-route-cargo-editor {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--rc5-border);
  border-radius: 12px;
  background: var(--rc5-surface-soft);
  min-width: 0;
}
.rc5-route-cargo-editor > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.rc5-route-cargo-editor > header span {
  display: block;
  color: var(--rc5-muted);
  font-size: 12px;
}
.rc5-route-cargo-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(120px, .8fr) minmax(120px, .75fr) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
  max-width: 100%;
}
.rc5-route-cargo-row label,
.rc5-route-cargo-row input,
.rc5-route-cargo-summary,
.rc5-instruction-route-col {
  min-width: 0;
  max-width: 100%;
}
.rc5-route-cargo-summary {
  margin: 0;
  padding-left: 18px;
}
.rc5-instruction-route-col {
  width: 38%;
  white-space: normal;
}
.rc5-transfer-table th,
.rc5-transfer-table td {
  max-width: 260px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
@media (max-width: 920px) {
  .rc5-route-cargo-row {
    grid-template-columns: 1fr;
  }
  .rc5-route-cargo-row .rc5-icon-danger {
    justify-self: end;
  }
}

/* 6.88.31 unified route expenses and shell-owned ocean. */
.rc5-route-extra-expenses-block,
.rc5-route-extra-expenses-editor {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--rc5-border);
  border-radius: 12px;
  background: var(--rc5-surface-soft);
  min-width: 0;
  max-width: 100%;
}
.rc5-route-extra-expenses-block h4,
.rc5-route-extra-expenses-editor span {
  margin: 0;
  color: var(--rc5-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rc5-route-extra-expenses-editor label {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.rc5-route-extra-expenses-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  resize: vertical;
}
.rc5-ocean-decoration[data-ocean-animation] {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 214px;
  z-index: 0;
  pointer-events: none;
  opacity: .92;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.18) 12px, #000 38px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.18) 12px, #000 38px, #000 100%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 16%, rgba(255,255,255,0) 34%),
    radial-gradient(ellipse at 22% 66%, rgba(255,255,255,.10) 0 16px, transparent 17px 100%),
    radial-gradient(ellipse at 74% 72%, rgba(117,207,255,.10) 0 22px, transparent 23px 100%),
    linear-gradient(180deg, rgba(136,215,255,.22) 0%, rgba(49,151,207,.22) 48%, rgba(5,48,86,.44) 100%);
}
.rc5-ocean-decoration[data-ocean-animation][hidden] { display: none !important; }
.rc5-ocean-decoration[data-ocean-animation]::before,
.rc5-ocean-decoration[data-ocean-animation]::after,
.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-decoration__wake,
.rc5-ocean-decoration[data-ocean-animation] > .rc5-ocean-decoration__ship {
  display: none !important;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessels {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
}
.rc5-ocean-decoration[data-ocean-animation].rc5-ocean-decoration--fallback .rc5-ocean-vessels::before,
.rc5-ocean-decoration[data-ocean-animation].rc5-ocean-decoration--live .rc5-ocean-vessels::before {
  content: none;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel {
  position: absolute;
  left: 0;
  bottom: var(--vessel-bottom, 44px) !important;
  width: var(--vessel-width, 180px);
  height: calc(var(--vessel-width, 180px) * .47);
  z-index: var(--vessel-z-index, 20);
  opacity: var(--vessel-opacity, 1);
  pointer-events: none;
  filter: drop-shadow(0 9px 10px rgba(2, 15, 26, .22));
  transform-origin: 50% 92%;
  will-change: transform;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--eastbound,
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--neutral {
  animation: rc5-ocean-vessel-east var(--vessel-duration, 76s) linear infinite !important;
  animation-delay: var(--vessel-delay, -12s) !important;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--westbound {
  animation: rc5-ocean-vessel-west var(--vessel-duration, 76s) linear infinite !important;
  animation-delay: var(--vessel-delay, -12s) !important;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body {
  position: absolute;
  inset: 0;
  display: block;
  animation: rc5-ocean-vessel-bob-v7 5.8s ease-in-out infinite !important;
  transform-origin: 50% 86%;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__name-text {
  font-size: 8px;
  letter-spacing: .03em;
  paint-order: stroke fill;
  stroke-width: 1.35px;
}
@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__body,
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-wavefield {
    animation: none !important;
  }
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel {
    left: var(--vessel-static-left, 50%);
    transform: translateX(-50%);
  }
}
@media (max-width: 760px) {
  .rc5-ocean-decoration[data-ocean-animation] { height: 176px; }
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel { width: min(var(--vessel-width, 180px), 172px); }
}

/* 6.88.33 compact country SVG flags without visible ISO suffix and without broken oversized images. */
.rc5-country-flag {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  max-width: 100%;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.2;
}
.rc5-country-flag__icon.fi {
  flex: 0 0 14px;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(31, 41, 55, .14);
  background-color: #fff;
  background-size: cover;
  background-position: 50%;
  line-height: 10px;
}
.rc5-country-flag__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc5-country-flag--plain { white-space: normal; }
.rc5-dashboard-port { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rc5-hazard-class-row {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rc5-hazard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--hazard-color, #8a8f98) 22%, transparent);
  color: color-mix(in srgb, var(--hazard-color, #8a8f98) 78%, var(--rc5-text) 22%);
  border: 1px solid color-mix(in srgb, var(--hazard-color, #8a8f98) 55%, transparent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.rc5-vessel-hull--sailing {
  fill: #245a72;
  stroke: rgba(217,243,249,.58);
}
.rc5-vessel-sail-mast,
.rc5-vessel-sail-line {
  fill: none;
  stroke: rgba(234,247,250,.92);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rc5-vessel-sail-mast { stroke-width: 2.35; }
.rc5-vessel-sail {
  fill: rgba(241,248,249,.90);
  stroke: rgba(75,119,145,.58);
  stroke-width: 1.35;
}
.rc5-vessel-sail--jib { fill: rgba(218,239,245,.84); }
.rc5-vessel-superstructure--sailing {
  fill: #eaf4f6;
  stroke: rgba(54,93,119,.68);
}
.rc5-vessel-light--sailing-red,
.rc5-vessel-light--sailing-green {
  filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 7px currentColor);
}
.rc5-vessel-light--sailing-red { fill: #ff4e5f; color: #ff4e5f; }
.rc5-vessel-light--sailing-green { fill: #32df7c; color: #32df7c; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--sailingVessel .rc5-vessel-plane-wake {
  opacity: .52;
  height: 7px;
  bottom: 4px;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--sailingVessel .rc5-ocean-vessel__body::before {
  left: 19%;
  right: 14%;
  bottom: 3.8%;
  height: 7px;
  opacity: .62;
}

/* 6.88.31 final alignment and route form consistency. */
:where(.rc5-screen, .rc5-modal) td.rc5-empty-cell,
.rc5-table-responsive table tbody tr td.rc5-empty-cell {
  text-align: center !important;
  vertical-align: middle;
  white-space: normal !important;
}
.rc5-table-responsive table tbody tr:has(> td.rc5-empty-cell:only-child) td.rc5-empty-cell {
  text-align: center !important;
}
.rc5-route-cargo-row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, .8fr) minmax(130px, .75fr) minmax(110px, .6fr) auto;
}
.rc5-route-cargo-row label:last-of-type {
  min-width: 0;
}
.rc5-additional-agent-choice {
  grid-template-columns: minmax(0, 1fr);
}
.rc5-additional-agent-choice select,
.rc5-additional-agent-choice [data-additional-agent-role] {
  display: none !important;
}
.rc5-instruction-text-preview {
  position: relative;
  display: grid;
  gap: 0;
  min-width: 0;
}
.rc5-instruction-text-preview .rc5-long-text {
  position: relative;
  line-height: 1.48;
  max-height: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rc5-instruction-text-preview.is-collapsed .rc5-long-text {
  max-height: calc(1.48em * 5);
  overflow: hidden;
}
.rc5-instruction-text-preview.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--rc5-surface) 72%);
}
.rc5-instruction-text-readmore {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  margin-top: -1px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc5-primary) 8%, transparent), color-mix(in srgb, var(--rc5-primary) 16%, transparent));
  color: var(--rc5-primary);
  font-weight: 900;
  cursor: pointer;
}
.rc5-instruction-text-preview.is-expanded::after { content: none; }
.rc5-instruction-text-preview.is-expanded .rc5-instruction-text-readmore {
  background: var(--rc5-surface-soft);
  color: var(--rc5-text-muted);
}
.rc5-definition-grid .rc5-country-flag { white-space: normal; }


/* 6.88.33 final flag-size and missing-image override. */
.rc5-table-responsive .rc5-country-flag,
.rc5-definition-grid .rc5-country-flag {
  font-size: inherit;
}

/* 6.88.37 production fixes: modal-safe notices, route viewer contrast, COLREG side lights. */
.rc5-notice-host { z-index: 2147483000 !important; }
body.rc5-modal-open .rc5-notice-host { top: 18px; }
.rc5-route-cargo-on-board { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; min-width: 0; }
.rc5-route-cargo-on-board > strong { white-space: nowrap; }
.rc5-route-cargo-on-board > span { color: var(--rc5-text); }
.rc5-route-cargo-on-board .rc5-route-cargo-summary { margin: 0; }
:root[data-theme="dark"] .rc5-route-read-more,
:root[data-theme="dark"] .rc5-instruction-text-readmore {
  background: rgba(125, 211, 252, .18);
  color: #d9f4ff;
  border: 1px solid rgba(125, 211, 252, .46);
}
:root[data-theme="dark"] .rc5-route-read-more:hover,
:root[data-theme="dark"] .rc5-instruction-text-readmore:hover {
  background: rgba(125, 211, 252, .28);
  color: #ffffff;
}
.rc5-vessel-light--side-port,
.rc5-vessel-light--side-starboard,
.rc5-vessel-light--side,
.rc5-vessel-light--fishing-green,
.rc5-vessel-light--fishing-red {
  filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 7px currentColor);
}
.rc5-vessel-light--side-port { fill: #ff4e5f; color: #ff4e5f; }
.rc5-vessel-light--side-starboard { fill: #32df7c; color: #32df7c; }
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--eastbound,
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--neutral {
  animation-delay: var(--vessel-delay, 0s) !important;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--westbound {
  animation-delay: var(--vessel-delay, 0s) !important;
}


/* 6.88.43 COLREG Rule 23/25: fixed SVG light colors, no direction-based side-light recoloring. */
.rc5-vessel-light[data-colregs-rule="23"][data-colregs-color="white"] { fill: #fffdf0; color: #fffdf0; }
.rc5-vessel-light[data-colregs-rule="23"][data-colregs-color="red"] { fill: #ff4e5f; color: #ff4e5f; }
.rc5-vessel-light[data-colregs-rule="23"][data-colregs-color="green"] { fill: #32df7c; color: #32df7c; }
.rc5-vessel-navigation-lights[data-colregs-config="A"] .rc5-vessel-light { opacity: 1; }
.rc5-vessel-navigation-lights[data-colregs-config="B"] .rc5-vessel-light { opacity: 1; }

.rc5-vessel-light[data-colregs-rule="25"][data-colregs-color="white"] { fill: #fffdf0; color: #fffdf0; }
.rc5-vessel-light[data-colregs-rule="25"][data-colregs-color="red"] { fill: #ff4e5f; color: #ff4e5f; }
.rc5-vessel-light[data-colregs-rule="25"][data-colregs-color="green"] { fill: #32df7c; color: #32df7c; }
.rc5-vessel-navigation-lights[data-colregs-rule="25"][data-colregs-config="S"] .rc5-vessel-light { opacity: 1; }

/* 6.88.44 ocean fallback contract: sailboat is Rule 25-only and retires before live dashboard vessels render. */
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--retiring-fallback {
  animation: rc5-ocean-fallback-sailboat-retire 1.35s ease-in forwards !important;
  animation-delay: 0s !important;
}

@keyframes rc5-ocean-fallback-sailboat-retire {
  from { transform: translateX(var(--retire-from, 0)); opacity: var(--vessel-opacity, .82); }
  to { transform: translateX(calc(100vw + var(--vessel-width, 180px) + 64px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel--retiring-fallback {
    animation-duration: .01s !important;
  }
}

/* ==========================================================================================
   6.89.0 МППСС-72 reference livery — single source of truth for vessel artwork.
   Every visual property here is !important so this block wins the cascade unconditionally,
   in both themes, regardless of any earlier-declared rule. Do not restyle vessel hull/light/
   name colors anywhere else in this file — this is the only place to edit them.
   ========================================================================================== */
.rc5-vessel-hull,
.rc5-vessel-hull--bulk,
.rc5-vessel-hull--container,
.rc5-vessel-hull--roro,
.rc5-vessel-hull--tanker,
.rc5-vessel-hull--cargo,
.rc5-vessel-hull--fishing,
.rc5-vessel-hull--sailing {
  fill: #1c3a55 !important;
  stroke: rgba(13, 30, 46, .9) !important;
  stroke-width: 1.6px !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
  paint-order: fill stroke !important;
  filter: none !important;
}
.rc5-vessel-bootline {
  fill: none !important;
  stroke: #e8973f !important;
  stroke-width: 1.5px !important;
  stroke-linecap: round !important;
  opacity: .95 !important;
}
.rc5-vessel-superstructure,
.rc5-vessel-roro-box {
  fill: #edf4f7 !important;
  stroke: rgba(13, 30, 46, .8) !important;
  stroke-width: 1.6px !important;
  stroke-linejoin: round !important;
  filter: none !important;
}
.rc5-vessel-window-detail rect,
.rc5-vessel-window-detail--roro rect {
  fill: #16324a !important;
  stroke: none !important;
}
.rc5-vessel-hatch-detail rect,
.rc5-vessel-cargo--hold {
  fill: #24455f !important;
  stroke: rgba(212, 237, 249, .5) !important;
  stroke-width: 1.4px !important;
}
.rc5-vessel-container-stack rect,
.rc5-vessel-cargo-detail rect:not(.rc5-vessel-cargo--hold) {
  stroke: rgba(10, 22, 34, .4) !important;
  stroke-width: 1px !important;
  rx: 1px !important;
}
.rc5-vessel-container--blue { fill: #2f6f9e !important; }
.rc5-vessel-container--red { fill: #b8563f !important; }
.rc5-vessel-container--slate { fill: #37485a !important; }
.rc5-vessel-container--sand { fill: #d99a4e !important; }
.rc5-vessel-container-line {
  fill: none !important;
  stroke: rgba(10, 22, 34, .3) !important;
  stroke-width: .8px !important;
}
.rc5-vessel-mast,
.rc5-vessel-pipe-detail,
.rc5-vessel-pipe-detail path,
.rc5-vessel-pipe-detail rect,
.rc5-vessel-crane-detail,
.rc5-vessel-fishing-gear,
.rc5-vessel-sail-mast {
  fill: none !important;
  stroke: rgba(13, 30, 46, .92) !important;
  stroke-width: 1.6px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: none !important;
}
.rc5-vessel-pipe-detail circle {
  fill: rgba(237, 244, 247, .55) !important;
  stroke: rgba(13, 30, 46, .92) !important;
  stroke-width: 1.2px !important;
}
.rc5-vessel-sail {
  fill: #eef4f6 !important;
  stroke: rgba(13, 30, 46, .8) !important;
  stroke-width: 1.6px !important;
  stroke-linejoin: round !important;
  filter: none !important;
}

/* Lamp = small housing (decoration only, never glows) + light core (the only glowing element). */
.rc5-vessel-lamp-housing {
  fill: #14273a !important;
  stroke: rgba(255, 255, 255, .3) !important;
  stroke-width: .6px !important;
  filter: none !important;
}
.rc5-vessel-light {
  stroke: none !important;
  filter: drop-shadow(0 0 1.6px currentColor) drop-shadow(0 0 4px currentColor) !important;
}
.rc5-vessel-light[data-colregs-color="white"] { fill: #fffdf2 !important; color: #fffdf2 !important; }
.rc5-vessel-light[data-colregs-color="green"] { fill: #34d97e !important; color: #34d97e !important; }
.rc5-vessel-light[data-colregs-color="red"] { fill: #ff5064 !important; color: #ff5064 !important; }

/* Navigation lights only actually shine at night: lit (glowing) in dark theme, unlit
   (dim housing colour, no glow) in light theme - same COLREGs light/aspect logic either way. */
:root[data-theme="light"] .rc5-vessel-light {
  fill: rgba(120, 132, 148, .55) !important;
  color: rgba(120, 132, 148, .55) !important;
  filter: none !important;
}

.rc5-ocean-vessel__name-text {
  fill: rgba(240, 248, 253, .96) !important;
  stroke: none !important;
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  filter: none !important;
}
.rc5-ocean-decoration[data-ocean-animation] .rc5-ocean-vessel__name-svg { z-index: 5 !important; }

/* 6.88.59 compact unit selector for route cargo quantity. */
.rc5-cargo-quantity-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.rc5-cargo-quantity-control input,
.rc5-cargo-quantity-control select {
  min-width: 0;
  max-width: 100%;
}
.rc5-cargo-quantity-control select {
  height: 40px;
  padding: 0 8px;
  font-weight: 700;
}
@media (max-width: 520px) {
  .rc5-cargo-quantity-control { grid-template-columns: 1fr 58px; }
}

/* 6.88.59 request approval temporary password generator. */
.rc5-temporary-password-field { gap: 6px; }
.rc5-password-generator-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.rc5-password-generator-row input {
  width: 100%;
  font-family: var(--rc5-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  letter-spacing: .03em;
}
@media (max-width: 640px) {
  .rc5-password-generator-row { grid-template-columns: 1fr; }
}

/* 6.88.61 import/export tiles: prevent single-letter wrapping and force vertical card layout. */
.rc5-transfer-entity-matrix {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}
.rc5-transfer-entity-matrix button {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 7px !important;
  min-height: 128px;
}
.rc5-transfer-entity-matrix button strong,
.rc5-transfer-entity-matrix button span,
.rc5-transfer-entity-matrix button small {
  width: 100%;
  max-width: 100%;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
}
.rc5-transfer-entity-matrix button strong {
  margin-bottom: 0;
  line-height: 1.15;
}
.rc5-transfer-entity-matrix button span {
  line-height: 1.3;
}
.rc5-transfer-entity-matrix button small {
  align-self: end;
  white-space: normal;
}
@media (max-width: 640px) {
  .rc5-transfer-entity-matrix { grid-template-columns: 1fr; }
}

/* 6.88.62 stable dashboard badges, compact country labels and inline agent creation. */
.rc5-row-action--danger {
  border-color: var(--rc5-danger);
  background: var(--rc5-danger-soft);
  color: var(--rc5-danger);
}
.rc5-row-action--danger:hover {
  border-color: var(--rc5-danger);
  background: color-mix(in srgb, var(--rc5-danger-soft) 70%, #fff);
  color: var(--rc5-danger);
}
.rc5-status-badge--compact {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11.5px;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  max-width: 142px;
}
.rc5-dashboard-status-cell { min-width: 128px; }
.rc5-dashboard-voyages td[data-label="Порт"] { min-width: 220px; }
.rc5-dashboard-voyages td[data-label="Груз"] { max-width: 130px; }
.rc5-dashboard-port {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-items: start;
  justify-items: start;
}
.rc5-dashboard-port__name {
  min-width: 0;
  max-width: 100%;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc5-dashboard-port__country {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
}
.rc5-dashboard-port__berth {
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  color: var(--rc5-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc5-dashboard-agent {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-items: start;
  justify-items: start;
}
.rc5-dashboard-agent__name {
  min-width: 0;
  max-width: 100%;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc5-dashboard-agent__additional {
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  color: var(--rc5-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc5-country-flag--compact .rc5-country-flag__name,
.rc5-dashboard-port .rc5-country-flag__name,
.rc5-route-timeline__card .rc5-country-flag__name {
  max-width: clamp(100px, 18vw, 190px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc5-route-timeline__card > header > div {
  min-width: 0;
}
.rc5-route-timeline__card > header > div > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc5-route-timeline__card > header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 150px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rc5-info-soft);
  color: var(--rc5-info);
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 850;
  text-align: center;
}
.rc5-route-agent-picker {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.rc5-route-agent-picker > label {
  min-width: 0;
}
.rc5-route-agent-create {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rc5-primary);
  border-radius: 10px;
  background: var(--rc5-primary-tint);
  color: var(--rc5-primary);
  cursor: pointer;
}
.rc5-route-agent-create:hover {
  background: var(--rc5-primary);
  color: #fff;
}
.rc5-route-agent-create .rc5-action-icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .rc5-dashboard-voyages tbody td[data-label="Статус"] {
    align-content: center;
  }
  .rc5-dashboard-voyages tbody td[data-label="Порт"] {
    overflow-wrap: normal;
    word-break: normal;
  }
  .rc5-dashboard-voyages .rc5-status-badge--compact {
    max-width: 118px;
  }
  .rc5-dashboard-port__name,
  .rc5-dashboard-port .rc5-country-flag__name {
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .rc5-route-agent-picker {
    grid-template-columns: 1fr;
  }
  .rc5-route-agent-create {
    width: 100%;
  }
}

.rc5-maintenance-countdown {
  position: fixed;
  top: calc(var(--rc5-topbar-height) + 12px);
  right: 16px;
  z-index: 3600;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--rc5-warning) 38%, var(--rc5-border));
  border-radius: var(--rc5-radius-md);
  background: color-mix(in srgb, var(--rc5-warning-soft) 94%, var(--rc5-surface));
  color: var(--rc5-text);
  box-shadow: var(--rc5-shadow-md);
  pointer-events: none;
}
.rc5-maintenance-countdown span { color: var(--rc5-text-muted); font-size: 13px; white-space: nowrap; }
.rc5-maintenance-countdown strong { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.rc5-maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--rc5-bg-deep) 88%, rgba(0,0,0,.55));
  backdrop-filter: blur(8px);
}
.rc5-maintenance-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--rc5-border-strong);
  border-radius: var(--rc5-radius-xl);
  background: var(--rc5-surface-raised);
  text-align: center;
  box-shadow: var(--rc5-shadow-lg);
}
.rc5-maintenance-card h2 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 36px); }
.rc5-maintenance-card p { margin: 0 auto 22px; max-width: 420px; color: var(--rc5-text-muted); }
.rc5-maintenance-frog {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--rc5-success-soft);
  font-size: 56px;
  transform-style: preserve-3d;
  animation: rc5-maintenance-frog-spin 1.25s linear infinite;
}
@keyframes rc5-maintenance-frog-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.rc5-maintenance-admin {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--rc5-border);
  border-radius: var(--rc5-radius-lg);
  background: var(--rc5-surface);
  box-shadow: var(--rc5-shadow-sm);
}
.rc5-maintenance-admin h2 { margin: 0 0 8px; }
.rc5-maintenance-admin p { margin: 0 0 14px; color: var(--rc5-text-muted); }
.rc5-maintenance-admin__form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.rc5-maintenance-admin__form label {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--rc5-text-muted);
  font-size: 13px;
}
.rc5-maintenance-admin__form input { min-width: 0; }
