.fi-modal-window.ctn-tracking-modal {
    --ctn-bg: #f5f7fa;
    --ctn-surface: #ffffff;
    --ctn-soft: #f0f4f7;
    --ctn-text: #182839;
    --ctn-muted: #617184;
    --ctn-line: #e2e8ef;
    --ctn-accent: #0d766e;
    --ctn-accent-soft: #e9f7f4;
    --ctn-accent-line: #bde7dc;
    --ctn-info: #146588;
    --ctn-info-soft: #e9f4fb;
    --ctn-warning: #8a5715;
    --ctn-warning-soft: #fff7e8;
    --ctn-shadow: 0 2px 3px #172b3c03, 0 8px 24px #172b3c04;
    width: 100%;
    max-width: 1220px;
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    color: var(--ctn-text);
    background: var(--ctn-bg);
    border: 1px solid var(--ctn-line);
    border-radius: 24px;
    box-shadow: 0 30px 100px #02061740;
    color-scheme: light;
}

.dark .fi-modal-window.ctn-tracking-modal {
    --ctn-bg: #0d1520;
    --ctn-surface: #131e2b;
    --ctn-soft: #1b2938;
    --ctn-text: #e9eff6;
    --ctn-muted: #98a9bb;
    --ctn-line: #283647;
    --ctn-accent: #70dec9;
    --ctn-accent-soft: #12332f;
    --ctn-accent-line: #29594f;
    --ctn-info: #8ed5f0;
    --ctn-info-soft: #163144;
    --ctn-warning: #ebc586;
    --ctn-warning-soft: #302a1f;
    --ctn-shadow: 0 2px 3px #00000008, 0 8px 24px #0000000a;
    background: var(--ctn-bg);
    box-shadow: 0 30px 100px #00000080;
    color-scheme: dark;
}

.fi-modal-window.ctn-tracking-modal > .fi-modal-header {
    flex-shrink: 0;
    gap: 12px;
    padding: 16px 60px 16px 24px;
    border-color: var(--ctn-line);
    background: var(--ctn-surface);
}

.ctn-tracking-modal .fi-modal-heading {
    color: var(--ctn-text);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.ctn-tracking-modal .fi-modal-header > div:first-of-type:not(.absolute) > div,
.ctn-tracking-modal .fi-modal-header .rounded-full {
    background: var(--ctn-accent-soft);
}

.ctn-tracking-modal .fi-modal-header .fi-modal-icon { color: var(--ctn-accent); width: 20px; height: 20px; }
.ctn-tracking-modal .fi-modal-close-btn { color: var(--ctn-muted); }

.ctn-tracking-modal > .fi-modal-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ctn-line) transparent;
    padding: 25px;
}

.fi-modal-window.ctn-tracking-modal > .fi-modal-footer {
    flex-shrink: 0;
    padding: 12px 24px;
    border-color: var(--ctn-line);
    background: var(--ctn-surface);
}

.ctn-tracking-modal .fi-modal-footer-actions { justify-content: flex-end; }
.ctn-tracking { font-size: 13px; line-height: 1.5; }
.ctn-tracking *, .ctn-tracking *::before, .ctn-tracking *::after { box-sizing: border-box; }
.ctn-tracking [x-cloak] { display: none !important; }
.ctn-tracking svg { width: 20px; height: 20px; flex-shrink: 0; }
.ctn-tracking button, .ctn-tracking summary { -webkit-tap-highlight-color: transparent; }
.ctn-tracking :is(button, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--ctn-accent);
    outline-offset: 3px;
}
.ctn-muted { color: var(--ctn-muted); font-size: 11px; }
.ctn-overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ctn-identity { min-width: 0; }
.ctn-eyebrow { display: flex; align-items: center; gap: 7px; color: var(--ctn-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ctn-eyebrow svg { width: 14px; height: 14px; }
.ctn-number-row { display: flex; align-items: center; gap: 12px; margin: 5px 0 10px; }
.ctn-number { min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(23px, 3vw, 34px); font-weight: 700; line-height: 1.25; letter-spacing: -0.045em; }
.ctn-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; color: var(--ctn-muted); border: 1px solid var(--ctn-line); border-radius: 12px; background: var(--ctn-surface); transition: color .15s, border-color .15s, background .15s; }
.ctn-icon-button:hover { color: var(--ctn-accent); border-color: var(--ctn-accent-line); background: var(--ctn-accent-soft); }
.ctn-icon-button:disabled { opacity: .6; cursor: wait; }
.ctn-icon-button svg { width: 17px; height: 17px; }
.ctn-identity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ctn-muted); font-size: 12px; }
.ctn-identity-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ctn-identity-meta svg { width: 15px; height: 15px; color: var(--ctn-muted); }
.ctn-copy-feedback { margin-top: 8px; color: var(--ctn-accent); font-size: 12px; }
.ctn-report { display: flex; flex-shrink: 0; align-items: flex-end; flex-direction: column; gap: 6px; }
.ctn-report-source { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--ctn-muted); font-size: 10px; }
.ctn-provider { color: var(--ctn-text); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ctn-badge { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid transparent; border-radius: 7px; font-size: 10px; font-weight: 650; line-height: 1.35; }
.ctn-report > .ctn-badge { padding: 7px 12px; font-size: 12px; }
.ctn-badge--info { color: var(--ctn-info); background: var(--ctn-info-soft); }
.ctn-badge--positive { color: var(--ctn-accent); background: var(--ctn-accent-soft); }
.ctn-badge--warning { color: var(--ctn-warning); background: var(--ctn-warning-soft); }
.ctn-badge--neutral { color: var(--ctn-muted); background: var(--ctn-soft); }
.ctn-status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }

.ctn-route-summary { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--ctn-accent-line); border-radius: 18px; background: radial-gradient(ellipse at 50% 0, var(--ctn-accent-soft), transparent 75%), var(--ctn-surface); box-shadow: var(--ctn-shadow); }
.ctn-route-ports { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .65fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 25px 26px 27px; }
.ctn-port { min-width: 0; }
.ctn-port h4 { margin: 7px 0 8px; overflow-wrap: anywhere; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.035em; font-weight: 650; }
.ctn-port-country { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--ctn-muted); font-size: 12px; }
.ctn-country-code { padding: 2px 5px; border: 1px solid var(--ctn-line); border-radius: 4px; background: var(--ctn-surface); color: var(--ctn-text); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.ctn-locode { color: var(--ctn-muted); font-family: ui-monospace, monospace; font-size: 10px; }
.ctn-port--destination { text-align: right; }
.ctn-port--destination .ctn-eyebrow, .ctn-port--destination .ctn-port-country { justify-content: flex-end; }
.ctn-voyage-bridge { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 15px; color: var(--ctn-accent); }
.ctn-voyage-line { position: absolute; top: 43px; left: 0; right: 0; border-top: 1px dashed var(--ctn-accent-line); }
.ctn-voyage-line::before, .ctn-voyage-line::after { position: absolute; top: -4px; width: 7px; height: 7px; content: ""; border: 2px solid var(--ctn-accent); border-radius: 50%; background: var(--ctn-surface); }
.ctn-voyage-line::before { left: 0; }
.ctn-voyage-line::after { right: 0; }
.ctn-voyage-icon { z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--ctn-accent-line); border-radius: 18px; background: var(--ctn-surface); box-shadow: 0 4px 15px #0f766e0a; transform: rotate(-5deg); }
.ctn-voyage-icon svg { width: 31px; height: 31px; transform: rotate(5deg); }
.ctn-voyage-caption { margin-top: 9px; color: var(--ctn-muted); font-size: 9px; font-weight: 500; letter-spacing: .02em; }
.ctn-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ctn-line); background: var(--ctn-surface); }
.ctn-metric { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 18px 0; padding: 0 24px; }
.ctn-metric + .ctn-metric { border-left: 1px solid var(--ctn-line); }
.ctn-metric > div { min-width: 0; }
.ctn-metric-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; color: var(--ctn-muted); background: var(--ctn-soft); border-radius: 11px; }
.ctn-metric-icon svg { width: 18px; height: 18px; }
.ctn-metric-icon--arrival { color: var(--ctn-accent); background: var(--ctn-accent-soft); }
.ctn-metric dt { color: var(--ctn-muted); font-size: 10px; }
.ctn-metric abbr { margin-left: 4px; text-decoration: none; font-size: 9px; font-weight: 700; }
.ctn-metric dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.ctn-metric dd.ctn-vessel-name { font-size: 13px; letter-spacing: .01em; }
.ctn-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 11px 14px; color: var(--ctn-warning); border: 1px solid color-mix(in srgb, var(--ctn-warning) 18%, transparent); border-radius: 10px; background: var(--ctn-warning-soft); font-size: 11px; }
.ctn-notice svg { width: 16px; height: 16px; }
.ctn-notice p + p { margin-top: 4px; }

.ctn-main-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.ctn-map-column { display: grid; gap: 18px; min-width: 0; }
.ctn-card { min-width: 0; overflow: hidden; border: 1px solid var(--ctn-line); border-radius: 16px; background: var(--ctn-surface); box-shadow: var(--ctn-shadow); }
.ctn-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; }
.ctn-section-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ctn-section-title h4 { font-size: 14px; font-weight: 650; letter-spacing: -.015em; }
.ctn-section-title p { margin-top: 2px; color: var(--ctn-muted); font-size: 11px; }
.ctn-section-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--ctn-line); border-radius: 10px; color: var(--ctn-muted); }
.ctn-section-icon svg { width: 17px; height: 17px; }
.ctn-small-tag { padding: 3px 7px; border: 1px solid var(--ctn-line); border-radius: 6px; color: var(--ctn-muted); font-size: 9px; font-weight: 600; }
.ctn-map { position: relative; isolation: isolate; background: var(--ctn-soft); }
.ctn-map-canvas, .ctn-map-placeholder { height: 310px; }
.ctn-map-canvas { width: 100%; }
.ctn-map-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: var(--ctn-soft); }
.ctn-map-loading { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ctn-muted); font-size: 11px; }
.ctn-map-loading strong { margin-top: 6px; color: var(--ctn-text); font-size: 14px; font-weight: 600; }
.ctn-map-orbit { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--ctn-accent-line); border-radius: 50%; background: var(--ctn-accent-soft); color: var(--ctn-accent); animation: ctn-map-breathe 1.8s ease-in-out infinite; }
.ctn-map-orbit svg { width: 30px; height: 30px; }
@keyframes ctn-map-breathe { 50% { box-shadow: 0 0 0 10px #0f766e0c; } }
.ctn-map-reset { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 11px; border: 1px solid var(--ctn-line); border-radius: 9px; background: var(--ctn-surface); color: var(--ctn-text); box-shadow: 0 2px 8px #00000010; font-size: 11px; font-weight: 600; }
.ctn-map-reset:hover { background: var(--ctn-accent-soft); color: var(--ctn-accent); }
.ctn-map-reset svg { width: 16px; height: 16px; }
.ctn-map-types { position: absolute; bottom: 31px; left: 12px; z-index: 1; display: flex; gap: 3px; padding: 3px; border: 1px solid var(--ctn-line); border-radius: 8px; background: var(--ctn-surface); box-shadow: 0 2px 8px #00000010; }
.ctn-map-types button { min-height: 32px; padding: 5px 10px; border-radius: 5px; color: var(--ctn-muted); font-size: 10px; font-weight: 600; }
.ctn-map-types button[aria-pressed="true"] { color: var(--ctn-accent); background: var(--ctn-accent-soft); }
.ctn-map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 16px; color: var(--ctn-muted); font-size: 11px; }
.ctn-map-legend > span:first-child { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.ctn-map-legend i { width: 7px; height: 7px; border: 2px solid var(--ctn-accent); border-radius: 50%; }
.ctn-map-note { padding: 0 16px 12px; color: var(--ctn-warning); font-size: 10px; }
.ctn-map-card .gm-style button:focus-visible { outline-offset: -3px; }
.ctn-map-card .gm-style img { max-width: none; }
.ctn-map-card .gm-style svg { width: revert; height: revert; }
.ctn-vessels .ctn-card-heading { padding-bottom: 12px; }
.ctn-vessel { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--ctn-line); }
.ctn-vessel-symbol { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ctn-soft); color: var(--ctn-muted); }
.ctn-vessel-symbol svg { width: 18px; height: 18px; }
.ctn-vessel-info { min-width: 0; flex: 1; }
.ctn-vessel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ctn-vessel-title h5 { overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.ctn-vessel-title .ctn-badge { padding: 3px 6px; font-size: 8px; }
.ctn-vessel-info p { margin-top: 6px; color: var(--ctn-muted); overflow-wrap: anywhere; font-size: 10px; }
.ctn-vessel-info p span { padding: 0 4px; color: var(--ctn-accent); }
.ctn-voyage-number { max-width: 100px; text-align: right; }
.ctn-voyage-number span { display: block; color: var(--ctn-muted); font-size: 9px; }
.ctn-voyage-number strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 600; }
.ctn-card-empty { padding: 6px 18px 20px; color: var(--ctn-muted); font-size: 12px; }

.ctn-events-card { display: flex; flex-direction: column; align-self: stretch; }
.ctn-event-filters { display: flex; gap: 3px; margin: 0 18px 5px; padding: 4px; border: 1px solid var(--ctn-line); border-radius: 9px; background: var(--ctn-bg); }
.ctn-event-filters button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 5px; min-height: 35px; padding: 6px 7px; color: var(--ctn-muted); border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 600; transition: background .15s, color .15s; }
.ctn-event-filters button span { font-size: 9px; opacity: .8; font-variant-numeric: tabular-nums; }
.ctn-event-filters button[aria-pressed="true"] { color: var(--ctn-text); border-color: var(--ctn-line); background: var(--ctn-surface); box-shadow: 0 1px 3px #00000008; }
.ctn-event-filters button:hover { color: var(--ctn-accent); }
.ctn-timeline-scroll { flex: 1; max-height: 420px; padding: 20px 20px 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ctn-line) transparent; }
.ctn-timeline { padding-left: 9px; }
.ctn-event { position: relative; margin-left: 4px; padding: 0 0 24px 26px; border-left: 1px solid var(--ctn-line); }
.ctn-event:last-child { padding-bottom: 10px; border-color: transparent; }
.ctn-event-marker { position: absolute; top: 0; left: -12px; display: grid; place-items: center; width: 23px; height: 23px; border: 4px solid var(--ctn-surface); border-radius: 50%; background: var(--ctn-accent-soft); color: var(--ctn-accent); }
.ctn-event-marker svg { width: 12px; height: 12px; stroke-width: 2.5px; }
.ctn-event--planned .ctn-event-marker { color: var(--ctn-info); background: var(--ctn-info-soft); }
.ctn-event-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 3px; color: var(--ctn-muted); font-size: 9px; }
.ctn-event-state { color: var(--ctn-accent); font-weight: 650; }
.ctn-event--planned .ctn-event-state { color: var(--ctn-info); }
.ctn-event h5 { margin-top: 6px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
.ctn-event-location { margin-top: 4px; overflow-wrap: anywhere; color: var(--ctn-muted); font-size: 12px; }
.ctn-event-date { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
.ctn-event-date > span { color: var(--ctn-muted); font-size: 9px; }
.ctn-event-vessel { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; color: var(--ctn-muted); overflow-wrap: anywhere; font-size: 10px; }
.ctn-event-vessel svg { width: 13px; height: 13px; }
.ctn-event-original { margin-top: 8px; color: var(--ctn-muted); font-size: 11px; }
.ctn-event-original summary { width: fit-content; padding: 3px 0; cursor: pointer; }
.ctn-event-original p { margin-top: 5px; padding: 8px; overflow-wrap: anywhere; border-radius: 6px; background: var(--ctn-soft); }
.ctn-events-footnote { display: flex; align-items: flex-start; gap: 7px; padding: 13px 18px; border-top: 1px solid var(--ctn-line); color: var(--ctn-muted); font-size: 10px; }
.ctn-events-footnote svg { width: 14px; height: 14px; }
.ctn-filter-empty { padding: 24px 10px; text-align: center; color: var(--ctn-muted); font-size: 12px; }

.ctn-transfers { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px 18px; border: 1px solid var(--ctn-line); border-radius: 13px; background: var(--ctn-surface); }
.ctn-transfer-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--ctn-soft); color: var(--ctn-muted); }
.ctn-transfer-icon svg { width: 17px; height: 17px; }
.ctn-transfers h4 { font-size: 12px; font-weight: 600; }
.ctn-transfers p { margin-top: 3px; color: var(--ctn-muted); font-size: 11px; overflow-wrap: anywhere; }
.ctn-transfers p + p { margin-top: 9px; }
.ctn-transfers--reported .ctn-transfer-icon { color: var(--ctn-warning); background: var(--ctn-warning-soft); }
.ctn-transfer-status { white-space: nowrap; font-size: 10px; }
.ctn-source-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 20px; color: var(--ctn-muted); font-size: 10px; }
.ctn-source-note span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.ctn-source-note svg { width: 14px; height: 14px; }
.ctn-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px 24px; text-align: center; color: var(--ctn-muted); }
.ctn-empty > svg { width: 32px; height: 32px; }
.ctn-empty strong, .ctn-empty h4 { color: var(--ctn-text); font-size: 14px; font-weight: 600; }
.ctn-empty p { max-width: 340px; color: var(--ctn-muted); font-size: 12px; line-height: 1.7; }
.ctn-empty--large { min-height: 320px; border: 1px dashed var(--ctn-line); border-radius: 18px; background: var(--ctn-surface); }
.ctn-empty--large h4 { margin-top: 10px; font-size: 19px; }
.ctn-empty--large .ctn-badge { margin-top: 8px; }
.ctn-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid var(--ctn-accent-line); border-radius: 18px; background: var(--ctn-accent-soft); color: var(--ctn-accent); }
.ctn-empty-icon svg { width: 30px; height: 30px; }
.ctn-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; margin-top: 5px; padding: 8px 13px; color: var(--ctn-accent); background: var(--ctn-accent-soft); border: 1px solid var(--ctn-accent-line); border-radius: 9px; font-size: 12px; font-weight: 600; }
.ctn-text-button svg { width: 15px; height: 15px; }

@media (max-width: 1023px) {
    .ctn-main-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
    .ctn-metric { gap: 9px; padding: 0 16px; }
    .ctn-metric dd { font-size: 14px; }
    .ctn-vessel { flex-wrap: wrap; }
    .ctn-voyage-number { padding-left: 46px; max-width: 100%; text-align: left; }
    .ctn-voyage-number span, .ctn-voyage-number strong { display: inline; }
    .ctn-voyage-number strong { margin-left: 6px; }
    .ctn-event-filters { margin-right: 12px; margin-left: 12px; }
    .ctn-event-filters button { padding-right: 4px; padding-left: 4px; }
}

@media (max-width: 767px) {
    .fi-modal-window.ctn-tracking-modal { max-height: calc(100dvh - 2rem); border-radius: 18px; }
    .ctn-tracking-modal > .fi-modal-content { padding: 18px; }
    .ctn-overview { align-items: flex-start; gap: 14px; }
    .ctn-identity-meta { flex-direction: column; align-items: flex-start; gap: 7px; }
    .ctn-report { max-width: 45%; text-align: right; }
    .ctn-report .ctn-badge { font-size: 10px; }
    .ctn-report-source { flex-wrap: wrap; justify-content: flex-end; }
    .ctn-route-ports { grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr); gap: 12px; padding: 22px 18px; }
    .ctn-voyage-caption { display: none; }
    .ctn-voyage-icon { width: 46px; height: 46px; border-radius: 14px; }
    .ctn-voyage-line { top: 38px; }
    .ctn-voyage-icon svg { width: 26px; height: 26px; }
    .ctn-main-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ctn-map-column { gap: 16px; }
    .ctn-map-canvas, .ctn-map-placeholder { height: 300px; }
    .ctn-timeline-scroll { max-height: none; overflow: visible; }
    .ctn-event-filters { margin-right: 18px; margin-left: 18px; }
    .ctn-event-filters button { min-height: 40px; font-size: 11px; }
    .ctn-voyage-number { padding-left: 0; margin-left: auto; }
    .ctn-metric { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 14px; }
    .ctn-metric-icon { width: 30px; height: 30px; border-radius: 9px; }
    .ctn-metric-icon svg { width: 15px; height: 15px; }
}

@media (max-width: 479px) {
    .fi-modal-window.ctn-tracking-modal > .fi-modal-header { padding: 14px 52px 14px 16px; }
    .ctn-tracking-modal > .fi-modal-content { padding: 16px; }
    .fi-modal-window.ctn-tracking-modal > .fi-modal-footer { padding: 10px 16px; }
    .ctn-tracking-modal .fi-modal-footer-actions > button { width: 100%; min-height: 42px; }
    .ctn-overview { flex-direction: column; margin-bottom: 18px; }
    .ctn-report { align-items: flex-start; max-width: none; text-align: left; gap: 5px; }
    .ctn-report-source { justify-content: flex-start; margin-top: 3px; }
    .ctn-number-row { margin-top: 7px; }
    .ctn-number { font-size: 27px; }
    .ctn-identity-meta { flex-direction: row; gap: 6px 12px; font-size: 11px; }
    .ctn-route-ports { position: relative; grid-template-columns: minmax(0, 1fr); gap: 27px; padding: 20px; }
    .ctn-route-ports::before { position: absolute; top: 45px; bottom: 55px; left: 26px; border-left: 1px dashed var(--ctn-accent-line); content: ""; }
    .ctn-port, .ctn-port--destination { padding-left: 24px; text-align: left; }
    .ctn-port h4 { margin-top: 7px; font-size: 23px; }
    .ctn-port .ctn-eyebrow { position: relative; font-size: 9px; }
    .ctn-port .ctn-eyebrow svg { position: absolute; left: -25px; top: 0; color: var(--ctn-accent); background: var(--ctn-surface); }
    .ctn-port--destination .ctn-eyebrow, .ctn-port--destination .ctn-port-country { justify-content: flex-start; }
    .ctn-voyage-bridge { display: none; }
    .ctn-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ctn-metric { margin: 14px 0; padding: 0 16px; }
    .ctn-metric:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; margin: 0; padding: 13px 16px; border-top: 1px solid var(--ctn-line); border-left: 0; }
    .ctn-metric abbr { display: inline-block; margin-left: 2px; font-size: 8px; }
    .ctn-metric dd { font-size: 14px; }
    .ctn-card-heading { padding: 15px; }
    .ctn-map-canvas, .ctn-map-placeholder { height: 270px; }
    .ctn-map-legend { flex-direction: column; align-items: flex-start; gap: 5px; }
    .ctn-vessel { padding: 14px; gap: 9px; }
    .ctn-voyage-number { width: 100%; padding-left: 45px; margin-left: 0; }
    .ctn-event-filters { margin-left: 12px; margin-right: 12px; gap: 1px; }
    .ctn-event-filters button { gap: 3px; font-size: 10px; }
    .ctn-timeline-scroll { padding-left: 17px; padding-right: 17px; }
    .ctn-transfers { align-items: flex-start; padding: 14px; gap: 10px; }
    .ctn-source-note { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .ctn-tracking *, .ctn-tracking *::before, .ctn-tracking *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
