.login-layout {
  display: grid;
  grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr);
  min-height: 100svh;
  background: #f1f6fc;
}

.login-access {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 4vh, 48px);
  padding: clamp(22px, 4vw, 58px);
  background: radial-gradient(ellipse at left top, #e3eefb 0, #f5f8fd 62%);
}

.login-brand { display: flex; align-items: center; gap: 16px; font-weight: 650; color: #153957; }
.login-brand img { display: block; object-fit: contain; }
.login-brand span { border-left: 1px solid #a9bfd4; padding-left: 16px; }
.login-card {
  align-self: center;
  justify-self: center;
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 20px;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 18px 52px #153c6712;
}

.login-card h1 { color: #123653; }
.login-description { color: #48647d; margin: 10px 0 28px; line-height: 1.55; }
.login-form, .login-field { display: grid; gap: 16px; }
.login-field { gap: 7px; }
.login-field label { color: #183a55; font-size: .88rem; font-weight: 650; }
.login-input {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline: 13px;
  background: #f8fbff;
  color: #426582;
  border: 1px solid #b9cfe2;
  border-radius: 9px;
}
.login-input:focus-within { outline: 2px solid #1875b2; outline-offset: 2px; }
.login-input > svg { flex-shrink: 0; }
.login-input input { width: 100%; background: transparent; padding: 12px 0; border: 0; border-radius: 0; }
.login-input input:focus-visible { outline: none; }
.login-input input::placeholder { color: #58728c; }
.login-visibility { display: grid; place-content: center; width: 32px; height: 36px; flex-shrink: 0; padding: 0; background: transparent; border: 0; border-radius: 6px; color: #426582; }
.login-remember { display: flex; align-items: center; gap: 8px; color: #385571; font-size: .86rem; }
.login-remember input { margin: 0; width: 17px; height: 17px; accent-color: #075995; }
.login-error { color: #982327; font-size: .9rem; }
.login-submit {
  min-height: 47px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(105deg, #064777, #086aab);
  color: #fff;
  font-weight: 700;
}
.login-submit:hover { background: #064777; }
.login-hero { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 100%; padding: clamp(28px, 5vw, 76px); background: #071c31; overflow: hidden; }
.login-seascape { position: absolute; inset: 0; z-index: -2; pointer-events: none; container-type: size; }
.login-scene {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  width: max(100cqw, 179.17cqh); aspect-ratio: 1376 / 768; transform: translate(-50%, -50%);
}
.login-ocean, .login-ship-window, .login-ship, .login-ship-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-ship-window {
  clip-path: polygon(14% 45%, 15% 25%, 23% 24%, 24% 18%, 34% 18%, 40% 28%, 48% 29%, 52% 34%, 64% 39%, 72% 54%, 73% 66%, 65% 79%, 51% 77%, 32% 64%, 19% 53%);
  mask-image: radial-gradient(ellipse at 43% 49%, #000 52%, transparent 72%);
}
.login-ship {
  transform-origin: 47% 52%;
  animation: login-voyage 9s ease-in-out infinite;
}
.login-ship-logo {
  position: absolute;
  inset-block-start: 58.2%;
  inset-inline-start: 37%;
  width: 8.5%;
  height: auto;
  transform: translate(-50%, -50%) skewY(30deg);
  opacity: .85;
}
.login-swell {
  position: absolute; inset: 54% -16% -18%; opacity: .45; mix-blend-mode: screen;
  background: repeating-radial-gradient(ellipse at 45% 12%, transparent 0 11%, #7addff31 12%, transparent 14% 20%);
  mask-image: linear-gradient(transparent, #000 65%, transparent);
  animation: login-swell 8s linear infinite;
}
.login-telemetry { position: absolute; inset: 0; overflow: hidden; }
.login-monitor {
  position: absolute; inset-inline-start: 100%; width: clamp(132px, 17vw, 216px);
  padding: 9px; border: 1px solid #8bdcfb; border-radius: 8px; color: #ccf6ff;
  background: #073955ba; box-shadow: 0 0 24px #35b2f969;
  animation: login-telemetry 18s linear infinite;
}
.login-monitor-heading { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; }
.login-monitor-map {
  position: relative; overflow: hidden; height: clamp(44px, 5vw, 70px); margin-top: 6px;
  border: 1px solid #78cdeb88; border-radius: 4px;
  background: repeating-linear-gradient(0deg, transparent 0 12px, #8dd8ed30 12px 13px),
    repeating-linear-gradient(90deg, #082945 0 12px, #4e99b9 12px 13px);
}
.login-map-land { position: absolute; background: #56bed9a8; }
.login-map-west { inset: 12% 64% 12% 4%; clip-path: polygon(0 5%, 41% 14%, 68% 0, 96% 18%, 78% 38%, 66% 42%, 76% 55%, 98% 58%, 84% 80%, 62% 99%, 52% 64%, 24% 39%); }
.login-map-east { inset: 8% 4% 13% 51%; clip-path: polygon(0 23%, 21% 9%, 67% 4%, 100% 14%, 86% 35%, 62% 33%, 51% 52%, 33% 46%, 22% 86%, 13% 100%, 8% 66%, 0 45%); }
.login-map-course { position: absolute; inset: 28% 26% 18% 23%; border-top: 2px dashed #8efff6; border-radius: 50%; transform: rotate(-15deg); }
.login-map-port { position: absolute; left: 20%; top: 43%; color: #e0ffff; }
.login-map-ship { position: absolute; right: 26%; top: 18%; color: #e0ffff; }
.login-monitor-1 { top: 11%; animation-delay: -3s; }
.login-monitor-2 { top: 31%; animation-delay: -11s; }
.login-monitor-3 { top: 20%; animation-delay: -15s; }
.login-motion { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #93bfd4; border-radius: 50%; background: #082941; color: #f3faff; }
.login-hero[data-paused="true"] :is(.login-ship, .login-swell, .login-monitor) { animation-play-state: paused; }
@keyframes login-voyage {
  0%, 100% { transform: translate(-.45%, .2%) rotate(-.52deg); }
  25% { transform: translate(.1%, -.42%) rotate(.55deg) scale(1.006); }
  50% { transform: translate(.62%, .25%) rotate(-.45deg) scale(1.013); }
  75% { transform: translate(.2%, -.35%) rotate(.45deg) scale(1.006); }
}
@keyframes login-swell {
  0% { transform: translate(-5%, -6%) scale(.96); opacity: 0; }
  28%, 70% { opacity: .43; }
  100% { transform: translate(7%, 8%) scale(1.18); opacity: 0; }
}
@keyframes login-telemetry {
  0% { transform: translateX(0); opacity: 0; }
  12%, 85% { opacity: .79; }
  100% { transform: translateX(calc(-100cqw - 100%)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .login-ship { animation: none; }
  .login-swell, .login-telemetry, .login-motion { display: none; }
}
.login-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, #061b31a0 65%, #071b31 100%); }
.login-hero-footer {
  display: grid;
  container-type: inline-size;
  gap: clamp(8px, 1.25vw, 18px);
  width: 100%;
}
.login-hero-copy { display: grid; gap: 12px; margin: 0; text-align: right; }
.login-suspension { display: block; justify-self: end; width: 40%; height: auto; }
.login-hero-title { color: #fff; font-size: clamp(1.9rem, 4vw, 4.15rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 720; text-wrap: balance; }
.login-hero-subtitle {
  justify-self: end;
  color: #82ccff;
  font-size: min(4.5cqw, 2.5rem);
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}
@supports (background-clip: text) {
  .login-hero-subtitle {
    background-image: linear-gradient(90deg, #648cff, #87ceeb);
    background-clip: text;
    color: transparent;
  }
}
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-access { padding: 24px 16px 32px; }
  .login-brand { margin-inline: 5px; }
  .login-hero { min-height: 330px; align-items: end; }
}

@media (max-width: 360px) {
  .login-suspension { width: 48%; }
  .login-brand { gap: 10px; font-size: .9rem; }
  .login-brand span { padding-left: 10px; }
  .login-card { padding: 18px; }
}
.fleet-card {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #2c4d66;
  border-radius: 14px;
  color: #e9f6ff;
  background: #102a41;
}
.fleet-heading { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 17px; }
.fleet-heading > div { display: flex; gap: 12px; align-items: center; }
.fleet-heading svg { color: #86d8f7; }
.fleet-heading p { margin-top: 3px; font-size: .8rem; color: #b1cede; }
.fleet-source { display: inline-flex; gap: 7px; align-items: center; padding: 5px 9px; border: 1px solid #51788f; border-radius: 7px; color: #d3f4ff; font-size: .82rem; }
.fleet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, 26%); border-block: 1px solid #31506a; }
.fleet-viewport {
  min-width: 0;
  position: relative;
  height: clamp(320px, 47vw, 515px);
  overflow: hidden;
  background: #081c31;
  cursor: grab;
  touch-action: none;
}
.fleet-viewport:active { cursor: grabbing; }
.fleet-viewport:focus-visible { outline: 3px solid #7adeff; outline-offset: -3px; }
.fleet-viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fleet-presets, .fleet-zoom { position: absolute; display: flex; gap: 5px; z-index: 2; }
.fleet-presets { left: 12px; top: 12px; }
.fleet-zoom { right: 12px; top: 12px; flex-direction: column; }
.fleet-viewport button {
  border: 1px solid #5c88a4;
  background: #102a43ed;
  color: #e0f5ff;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: .78rem;
}
.fleet-viewport button:hover, .fleet-viewport button[aria-pressed="true"] { background: #1e5474; }
.fleet-zoom button { display: grid; place-items: center; width: 37px; height: 35px; }
.fleet-viewport .fleet-pin {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  width: 33px;
  height: 33px;
  transform: translate(-50%, -50%);
  border-color: #96ddfd;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #79d6ff25, 0 0 17px #4db9ff9c;
}
.fleet-viewport .fleet-pin.selected { color: #0a2539; background: #a2eaff; }
.fleet-viewport .fleet-pin { grid-template-rows: 16px 6px; align-content: center; gap: 1px; }
.fleet-pin-brand { display: block; width: 17px; height: auto; filter: brightness(0) invert(1); pointer-events: none; }
.fleet-pin.selected .fleet-pin-brand { filter: brightness(0); }
.fleet-credit { position: absolute; bottom: 8px; left: 9px; border-radius: 5px; padding: 4px 7px; background: #071d33ec; color: #d5e8f8; font-size: .69rem; }
.fleet-credit:hover { text-decoration: underline; }
.fleet-side { min-width: 0; padding: 13px; border-left: 1px solid #31506a; }
.fleet-side label { color: #d3eaf8; display: block; margin-bottom: 7px; font-weight: 600; font-size: .82rem; }
.fleet-side input { width: 100%; color: #effbff; background: #0c2338; border-color: #5b7b94; font-size: .8rem; }
.fleet-side input::placeholder { color: #a2bdd1; }
.fleet-side p { margin-top: 12px; color: #c4def0; font-size: .82rem; }
.fleet-vessels { display: grid; gap: 7px; margin-top: 10px; max-height: 260px; overflow: auto; }
.fleet-item { display: flex; align-items: flex-start; gap: 9px; text-align: left; border: 1px solid #43647b; border-radius: 8px; padding: 8px; color: #eaf7ff; background: #17374f; }
.fleet-item svg { flex: none; color: #87d9fc; }
.fleet-item span, .fleet-item small { display: block; }
.fleet-item strong { font-size: .85rem; }
.fleet-item small { color: #b5d5e9; font-size: .73rem; margin-top: 3px; }
.fleet-item[aria-pressed="true"] { background: #234d65; border-color: #82d5fb; }
.fleet-detail { margin-top: 11px; display: grid; gap: 4px; font-size: .82rem; color: #bee3f5; }
.fleet-detail a { display: inline-flex; align-items: center; gap: 5px; color: #a8e7ff; }
.fleet-detail a:hover { text-decoration: underline; }
.fleet-footer { padding: 9px 15px; color: #c0dce9; font-size: .76rem; }
.fleet-card :focus-visible { outline-color: #a7e9ff; }

@media (max-width: 820px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-side { border-left: 0; border-top: 1px solid #31506a; }
  .fleet-viewport { height: clamp(290px, 57vw, 400px); }
}
.support-launch { position: fixed; right: clamp(12px, 2.5vw, 30px); bottom: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 4; min-height: 46px; border-radius: 24px; box-shadow: 0 6px 20px #102d4a46; }
.support-panel { display: grid; justify-items: start; gap: 12px; padding: 16px 18px; }
.support-views { display: flex; gap: 8px; flex-wrap: wrap; }
.support-views button[aria-pressed="true"] { background: #dceefd; border-color: #74a9cc; }
.support-select, .support-compose { display: grid; width: 100%; gap: 6px; font-size: .88rem; font-weight: 650; }
.support-log { width: 100%; margin: 0; padding: 0 3px 0 0; max-height: min(37vh, 300px); overflow: auto; display: grid; gap: 8px; list-style: none; }
.support-message { border-radius: 9px; padding: 9px 11px; background: #eef4f9; font-size: .88rem; overflow-wrap: anywhere; }
.support-message p { margin-top: 4px; white-space: pre-wrap; line-height: 1.4; }
.support-user { background: #e1f0ff; }
.support-agent { background: #e4f4ec; }
.support-compose textarea { resize: vertical; }
.support-compose button { justify-self: end; }
.support-assign { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.support-assign label { display: grid; gap: 6px; min-width: min(100%, 270px); }
.support-assign select { width: 100%; }
.support-details { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #455c70; font-size: .84rem; }
:root {
  font-family: Inter, "Segoe UI", sans-serif;
  color: #14283d;
  background: #f4f7fa;
  font-synthesis: none;
  font-weight: 400;
  color-scheme: light;
  --muted: #566b81;
  --line: #dfe7ef;
  --navy: #11263f;
  --blue: #0c628c;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
input, select, textarea {
  min-width: 0;
  background: white;
  color: #14283d;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  padding: 10px 12px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #0b75a8;
  outline-offset: 3px;
}
button:disabled { cursor: default; opacity: .52; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.04em; }
h2 { font-size: 1.05rem; letter-spacing: -.015em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 5; background: white; padding: 10px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 27px 15px 18px;
  color: #ecf4fb;
  background: var(--navy);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 27px; border-bottom: 1px solid #2c425c; }
.syd-mark { display: grid; place-items: center; flex: none; background: transparent; }
.syd-mark img { display: block; object-fit: contain; filter: brightness(0) invert(1); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; }
.brand small { font-size: .65rem; margin-top: 4px; color: #b8cbe0; letter-spacing: .13em; }
.sidebar nav { display: grid; gap: 5px; margin-top: 24px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 12px 9px; border-radius: 8px; font-size: .85rem; color: #cedceb; }
.sidebar nav a svg { flex-shrink: 0; }
.sidebar nav a:hover, .sidebar nav a.active { background: #24435f; color: #fff; }
.sidebar nav a.active { box-shadow: inset 3px 0 #f4c469; font-weight: 600; }
.sidebar nav a:focus-visible, .brand:focus-visible { outline-color: #f4c469; }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 8px; color: #bed0e3; font-size: .85rem; border-top: 1px solid #2c425c; }
.topbar { min-height: 65px; padding: 12px 30px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar > span:first-child { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .85rem; }
.topbar strong { color: var(--navy); }
.content { max-width: 1500px; margin-inline: auto; padding: 29px 30px 40px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.page-heading p { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .85rem;
  padding: 10px 14px;
  min-height: 40px;
  white-space: nowrap;
}
.primary { color: #fff; background: #0d5a80; }
.primary:hover:not(:disabled) { background: #094563; }
.secondary { color: #1a4663; background: #fff; border-color: #ccd9e5; }
.secondary:hover:not(:disabled) { background: #ecf4fa; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.panel-heading { padding: 17px 19px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-heading a, .back-link, .table-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 650; font-size: .84rem; }
.panel-heading a:hover, .back-link:hover, .table-link:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.feedback { padding: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric { padding: 15px 16px 18px; display: grid; gap: 6px; }
.metric-value { font-size: 1.95rem; font-weight: 690; letter-spacing: -.055em; line-height: 1.12; font-variant-numeric: tabular-nums; }
.metric-label { color: var(--muted); font-size: .85rem; }
.icon-box { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 9px; }
.icon-blue { color: #174b8b; background: #e8f0ff; }
.icon-cyan { color: #0b6280; background: #e4f3f9; }
.icon-green { color: #1a674a; background: #e5f4ed; }
.icon-amber { color: #814712; background: #fff0d7; }
.icon-red { color: #9b2b2c; background: #fce9e8; }
.journey { margin-top: 16px; }
.journey-track { padding: 19px 12px 21px; display: grid; grid-template-columns: repeat(4, 1fr); }
.journey-stage { display: grid; justify-items: center; gap: 5px; text-align: center; position: relative; }
.journey-stage::after { content: ""; position: absolute; width: calc(100% - 49px); height: 2px; background: #c5d9e6; top: 19px; left: calc(50% + 25px); }
.journey-stage:last-child::after { content: none; }
.journey-stage strong { font-size: 1.35rem; }
.journey-stage > span:last-child { color: var(--muted); font-size: .79rem; }
.journey-node { display: grid; place-items: center; height: 40px; width: 40px; color: #0e638c; background: #ebf5fa; border-radius: 50%; }
.dashboard-grid, .detail-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.port-list { padding: 16px 19px; display: grid; gap: 14px; }
.port-line > div:first-child { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.port-line svg { color: var(--blue); }
.port-line strong { margin-left: auto; }
.port-meter { margin-top: 6px; height: 6px; background: #edf2f6; border-radius: 4px; overflow: hidden; }
.port-meter span { display: block; height: 100%; background: #4585a5; border-radius: inherit; }
.alert-preview a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.alert-preview a:last-child { border: 0; }
.alert-preview a:hover { background: #f4f8fa; }
.alert-preview strong, .alert-preview small { display: block; }
.alert-preview strong { font-size: .85rem; }
.alert-preview small { color: var(--muted); margin-top: 3px; }
.alert-preview a > svg:last-child { margin-left: auto; color: var(--muted); }
.alert-preview > p { padding: 16px; }
.arrivals { margin-top: 16px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; padding: 4px 9px; font-size: .75rem; line-height: 1.35; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-blue { color: #215e91; background: #e8f3fb; }
.badge-green { color: #1b6449; background: #e7f5ee; }
.badge-amber { color: #744514; background: #fff0d5; }
.badge-red { color: #8d2426; background: #fae9e8; }
.badge-neutral { color: #425a70; background: #edf2f8; }
.table-scroll { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: .84rem; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { background: #f6f8fb; color: #415970; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.route-arrow { color: #57738e; }
.filters, .pager { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.pager { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search svg { position: absolute; top: 11px; left: 10px; pointer-events: none; color: var(--muted); }
.search input { padding-left: 35px; width: 100%; }
.back-link { margin-bottom: 15px; }
.details dl { margin: 0; padding: 10px 18px; }
.details dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .85rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; font-weight: 550; }
.timeline { list-style: none; padding: 0 17px; margin: 0; }
.timeline li { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline-dot { display: grid; place-items: center; border-radius: 50%; width: 30px; height: 30px; flex: none; color: #0e638c; background: #ebf5fa; }
.timeline small, .timeline p { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.stack { display: grid; gap: 10px; }
.alert-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 17px; }
.alert-card p, .integration p { margin: 5px 0; color: var(--muted); line-height: 1.5; }
.alert-card small { color: var(--muted); }
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 16px; }
.integration { padding: 16px; }
.integration > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
dialog { width: min(610px, calc(100% - 26px)); border: 1px solid var(--line); border-radius: 14px; padding: 0; color: #14283d; box-shadow: 0 14px 57px #12263e36; }
dialog::backdrop { background: #15263b8c; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 13px 18px; }
.close-button { font-size: 1.45rem; border: 0; background: transparent; color: var(--muted); border-radius: 5px; }
.edit-form { padding: 16px 18px; display: grid; gap: 12px; }
.edit-form label { display: grid; gap: 5px; font-size: .85rem; font-weight: 600; }
.edit-form label input, .edit-form label textarea, .edit-form label select { width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.form-actions { flex-wrap: wrap; }
.import-issues { max-height: 180px; overflow-y: auto; padding-left: 22px; color: #862529; font-size: .85rem; }
.field-error { color: #982327; font-size: .84rem; }

@media (max-width: 1040px) {
  .shell { grid-template-columns: 205px minmax(0, 1fr); }
  .content { padding-inline: 19px; }
  .sidebar nav a { font-size: .77rem; gap: 8px; }
  .topbar { padding-inline: 19px; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 12px; }
  .brand { border: 0; padding: 0 4px; }
  .sidebar nav { display: flex; overflow: auto; margin-top: 10px; }
  .sidebar nav a { flex: none; padding-block: 10px; }
  .sidebar-bottom { display: none; }
  .content { padding: 18px 12px 26px; }
  .topbar { min-height: 48px; padding-inline: 12px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .dashboard-grid, .detail-grid, .integration-grid { grid-template-columns: 1fr; }
  .journey-stage > span:last-child { font-size: .7rem; }
  .panel-heading { padding-inline: 12px; }
  .panel-heading .muted { text-align: right; font-size: .72rem; }
  .alert-card { grid-template-columns: 1fr; justify-items: start; }
}
