/* Pristanište — stilovi (računar + telefon) */
:root {
  --ink: #0F1B2D; --ink-2: #1D2D45; --ink-3: #26374F;
  --bg: #F4F5F7; --card: #FFFFFF; --line: #E3E6EB; --line-2: #EDEFF3; --field: #C9D0DA;
  --muted: #5B6575; --muted-dark: #A9B4C2;
  --accent: #E8590C; --accent-dark: #C2410C; --accent-soft: #FFF1E7; --accent-line: #F7CFB3; --accent-light: #F08A4B;
  --blue: #1A56B8; --green: #1E7044; --green-bg: #E5F4EC; --red: #B42318; --red-bg: #FDECEA;
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
a:hover { color: #123E87; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; margin-top: 22px; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #F1F3F6; padding: 2px 6px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #93B4F0; outline-offset: 2px; }
.muted { color: var(--muted); }
.muted-on-dark { color: var(--muted-dark); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.accent { color: var(--accent-dark); }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 236px; background: var(--ink); color: #DCE2EA; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand:hover { color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #C3CBD6; text-decoration: none; font-size: 14px; min-height: 44px; }
.nav-link:hover { background: #17263B; color: #fff; }
.nav-link.is-active { background: var(--ink-2); color: #fff; font-weight: 600; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #17263B; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent-light); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.side-user-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.side-user-text strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-text span { color: var(--muted-dark); font-size: 12px; }
.side-user-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; text-decoration: none; border-radius: 8px; }
.side-user-link:hover .side-user-text strong { text-decoration: underline; }
.side-user.is-active { background: var(--ink-2); }
.link-btn { background: none; border: 0; color: var(--muted-dark); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.link-btn:hover { color: #fff; }
.main { flex: 1; min-width: 0; }
.page { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1320px; }
.narrow-page { max-width: 880px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head > div { display: flex; flex-direction: column; gap: 4px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.head-actions { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 12px !important; }
.tabbar, .m-hero, .m-only { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--field); color: var(--ink); }
.btn-ghost:hover { background: #F1F3F6; color: var(--ink); }
.btn-danger-ghost { background: #fff; border-color: #F1B7B0; color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-bg); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ink-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--ink-3); color: #fff; }
.icon-btn-light { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn-light:hover { background: var(--red-bg); color: var(--red); }
.small-link { font-size: 14px; font-weight: 600; align-self: center; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad, .pad { padding: 20px 22px; }
.card.pad { display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi span, .kpi small { color: var(--muted); font-size: 13px; }
.kpi span { font-weight: 500; }
.kpi strong { font-family: var(--display); font-size: 36px; line-height: 1; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }

/* ---------- search, pills ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid #D9DEE5; border-radius: 10px; background: #fff; width: 300px; max-width: 100%; color: var(--muted); }
.search input { border: 0; outline: none; flex: 1; min-width: 0; background: transparent; font-size: 14px; color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid #D9DEE5; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.pill:hover { background: #F1F3F6; color: var(--ink); }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.table-compact { min-width: 600px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 12px; }
.table td { padding: 14px 12px; border-top: 1px solid var(--line-2); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.row-title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.row-title:hover { text-decoration: underline; color: var(--ink); }
.sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.col-progress { width: 230px; }
.progress-line { display: flex; align-items: center; gap: 10px; }
.progress-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.progress-meta .sub { margin: 0; }
.pct { width: 42px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 8px; border-radius: 99px; background: #E9ECF1; overflow: hidden; }
.bar > div { height: 100%; border-radius: 99px; }
.bar-lg { height: 10px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge-paid { color: var(--green); background: var(--green-bg); font-size: 13px; }
.badge-unpaid { color: var(--red); background: var(--red-bg); font-size: 13px; }
.badge-muted { color: #4A5363; background: #EEF0F3; }
.dot-warn { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; vertical-align: 1px; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.table-files { min-width: 860px; }
.file-cell { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.file-cell:hover strong { text-decoration: underline; }
.right { text-align: right; }
.files-pad { padding: 0 16px; }
.alert-text a { font-weight: 600; }
.ext-link { font-weight: 600; white-space: nowrap; }
.empty { padding: 28px 20px; color: var(--muted); text-align: center; }

/* ---------- alert ---------- */
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.alert > svg { flex: none; }
.alert-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- arrivals, activity ---------- */
.arrival { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 2px 0; }
.arrival:hover .arrival-text strong { text-decoration: underline; }
.cal { width: 52px; height: 52px; border-radius: 10px; background: #F1F3F6; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.cal strong { font-family: var(--display); font-size: 18px; line-height: 1; }
.cal small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.arrival-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.arrival-text small { color: var(--muted); font-size: 13px; }
.arrival-days { font-size: 13px; font-weight: 600; white-space: nowrap; }
.activity { display: flex; gap: 12px; font-size: 14px; }
.activity small { display: block; color: var(--muted); font-size: 12px; }
.adot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: #2563EB; }
.adot-eta, .log-eta .log-dot { background: var(--accent) !important; }
.adot-ais, .log-ais .log-dot { background: #7C8BA1 !important; }
.adot-paid, .log-paid .log-dot { background: #1E8A52 !important; }
.adot-deleted { background: var(--red); }

/* ---------- forms ---------- */
.form-grid, .card.pad.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; background: #fff; font-weight: 400; font-size: 15px; width: 100%; }
.field input:focus, .field select:focus { border-color: #6B8FD6; outline: 3px solid #DCE7FB; }
.field-error { color: var(--red); font-size: 13px; font-weight: 500; }
.field-end { display: flex; align-items: flex-end; }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 14px; margin: 0; font-weight: 500; }
.form-ok { background: var(--green-bg); color: var(--green); border-radius: 10px; padding: 12px 14px; margin: 0; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.ship-form { display: flex; flex-direction: column; gap: 16px; }
.advanced { border-top: 1px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.advanced summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); min-height: 32px; }
.advanced[open] summary { margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; }
.secret { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; background: #FFF8E6; border: 1px solid #F2DBA0; }
.secret small { color: #6B5A2B; }

/* ---------- upload ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border: 2px dashed #B9C3D0; border-radius: 12px; background: #F8FAFC; cursor: pointer; text-align: center; }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: #EEF4FD; }
.dropzone small { color: var(--muted); }
.dropzone .u { color: var(--blue); text-decoration: underline; }
.pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pick-list:empty { display: none; }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.pick-list li small { color: var(--muted); white-space: nowrap; }
.pick-list li.err small { color: var(--red); }
.pick-list li.ok small { color: var(--green); }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.files li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line-2); }
.files li:last-child { border-bottom: 0; }
.file-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.file-link:hover strong { text-decoration: underline; }
.file-link > svg { color: var(--muted); flex: none; }
.file-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-text small { color: var(--muted); font-size: 12px; }
.ftype { width: 40px; height: 40px; flex: none; border-radius: 8px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tone-red { background: var(--red-bg); color: var(--red); }
.tone-green { background: var(--green-bg); color: var(--green); }
.tone-blue { background: #E7F0FD; color: var(--blue); }
.tone-gray { background: #EEF0F3; color: #4A5363; }

/* ---------- detail ---------- */
.hero { background: var(--ink); color: #fff; padding: 22px 32px 30px; display: flex; flex-direction: column; gap: 16px; }
.hero-top { display: flex; justify-content: space-between; max-width: 1256px; }
.hero-title { display: flex; flex-direction: column; gap: 4px; }
.hero-title h1 { font-size: 30px; }
.hero-title span { color: #B8C2CF; font-size: 15px; }
.hero-body { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ring { width: 150px; height: 150px; flex: none; }
.ring-pct { font-family: var(--display); font-size: 36px; font-weight: 700; fill: #fff; }
.ring-sub { font-family: var(--font); font-size: 12px; fill: #B8C2CF; }
.hero-dates { display: flex; gap: 14px 36px; flex-wrap: wrap; }
.hero-dates div { display: flex; flex-direction: column; }
.hero-dates span { font-size: 12px; color: var(--muted-dark); }
.hero-dates strong { font-size: 17px; font-weight: 600; }
.hero-dates .eta { color: #F59A5E; font-size: 19px; font-weight: 700; }
.hero-dates .paid { color: #6FD39B; }
.hero-dates .unpaid { color: #FF9C8F; }
.hero-dates .unset { color: #A9B4C2; font-weight: 500; font-style: italic; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.log li::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.log li:last-child::before { display: none; }
.log-dot { width: 12px; height: 12px; border-radius: 50%; background: #2563EB; margin-top: 4px; flex: none; position: relative; }
.log strong { display: block; font-size: 14px; font-weight: 600; }
.log small { color: var(--muted); font-size: 12px; }

/* ---------- edit page + history ---------- */
.edit-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.danger-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid #F1B7B0; border-radius: var(--radius); background: #fff; font-size: 14px; color: #3A4555; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.history li { display: flex; gap: 12px; }
.h-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.h-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h-body small { font-size: 12px; color: var(--muted); }
.h-body small b { color: var(--ink); }
.h-body strong { font-size: 14px; }
.h-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; color: #3A4555; }
.h-field { color: var(--muted); }
.h-change s { color: #7D8898; }


.login-body { background: var(--bg); }
.login { display: flex; min-height: 100vh; }
.login-art { flex: 0 0 44%; max-width: 560px; background: var(--ink); color: #DCE2EA; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login-art .brand { padding: 0; font-size: 24px; }
.login-pitch { display: flex; flex-direction: column; gap: 18px; }
.login-pitch h1 { color: #fff; font-size: 40px; line-height: 1.1; }
.login-pitch p { margin: 0; color: #B8C2CF; font-size: 16px; }
.boxes { display: flex; gap: 6px; }
.boxes span { width: 64px; height: 40px; border-radius: 4px; background: var(--accent); }
.boxes span:nth-child(2) { background: #2563EB; }
.boxes span:nth-child(3) { background: var(--accent-light); }
.boxes span:nth-child(4) { background: #3A4A63; }
.login-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.login-form h2 { font-size: 30px; font-weight: 700; }
.login-form p { margin: 0; }
.m-brand { display: none; }
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.error-page h1 { font-size: 64px; }

/* ================= phone ================= */
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .side, .d-only { display: none !important; }
  .m-only { display: flex !important; }
  form.m-only { display: block !important; }
  .search.m-only { display: flex !important; }
  .page { padding: 16px 16px 24px; gap: 14px; }
  h1 { font-size: 26px; }
  .tabbar { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 5; }
  .tabbar .nav-link { flex-direction: column; gap: 3px; justify-content: center; color: var(--muted); font-size: 11px; font-weight: 600; padding: 6px 0; min-height: 52px; background: none; }
  .tabbar .nav-link.is-active { color: var(--accent); background: none; }
  .m-hero { display: flex !important; flex-direction: column; gap: 16px; background: var(--ink); color: #fff; padding: calc(20px + env(safe-area-inset-top)) 16px 18px; }
  .m-hero-top { display: flex; align-items: center; justify-content: space-between; }
  .m-hero-top > div { display: flex; flex-direction: column; gap: 2px; }
  .m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .m-stats div { background: var(--ink-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
  .m-stats strong { font-family: var(--display); font-size: 22px; }
  .m-stats strong.accent { color: #F59A5E; }
  .m-stats span { font-size: 11px; color: #B8C2CF; }
  .search.m-only, .page-head .search { width: 100%; }
  .segs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #E6E9EE; border-radius: 12px; }
  .seg { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #4A5363; text-decoration: none; text-align: center; }
  .seg.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 27, 45, .12); }
  .cards { flex-direction: column; gap: 12px; }
  .ship-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .ship-card:active { background: #F8FAFC; }
  .ship-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
  .ship-card-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ship-card-title strong { font-size: 16px; }
  .ship-card-title span { font-size: 12px; color: var(--muted); }
  .ship-card-pct { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
  .ship-card-pct strong { font-family: var(--display); font-size: 22px; line-height: 1; }
  .ship-card-pct span { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .ship-card .bar { flex: none; }
  .ship-card-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ship-card-dates div { display: flex; flex-direction: column; gap: 2px; }
  .ship-card-dates span { font-size: 11px; color: var(--muted); }
  .ship-card-dates strong { font-size: 14px; }
  .ship-card-dates .ok { color: var(--green); }
  .ship-card-dates .bad { color: var(--red); }
  .alert { padding: 12px 14px; }
  .alert-text { min-width: 0; flex-basis: calc(100% - 40px); }
  .form-grid, .card.pad.form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1; }
  .card.pad { padding: 16px; }
  .hero { padding: calc(14px + env(safe-area-inset-top)) 16px 24px; }
  .hero-title h1 { font-size: 26px; }
  .hero-body { gap: 18px; flex-wrap: nowrap; }
  .ring { width: 130px; height: 130px; }
  .hero-dates { flex-direction: column; gap: 10px; }
  .hero-dates strong { font-size: 15px; }
  .hero-dates .eta { font-size: 18px; }
  .detail-grid, .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .m-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
}
