/* e-Marinas 2.0: system projektowy "Nautical modern". Motyw jasny i ciemny. */
:root {
  --font: "Inter", "SF Pro Text", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --sidebar-w: 252px; --topbar-h: 64px;
}
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f2f6f9; --bg-2: #e9f0f5;
  --surface: #ffffff; --surface-2: #f7fafc; --surface-3: #edf3f8;
  --border: #e0e8f0; --border-strong: #c9d5e2;
  --text: #0f2338; --text-2: #4f647a; --text-3: #7b8da1;
  --brand: #0a6c74; --brand-hover: #085b62; --brand-soft: #def1f2; --brand-text: #0a6c74; --on-brand: #ffffff;
  --navy: #0b2540; --accent: #e8832a; --accent-soft: #fdeedd;
  --free: #1f9d6b; --free-soft: #def4ea;
  --taken: #2563eb; --taken-soft: #e1eafd;
  --reserved: #d9822b; --reserved-soft: #fcecd8;
  --overdue: #d64545; --overdue-soft: #fbe3e3;
  --inactive: #8696a9; --inactive-soft: #e9eef3;
  --info: #2563eb; --info-soft: #e1eafd; --warn: #b7791f; --warn-soft: #fbf0d4;
  --sidebar-bg: #0b2540; --sidebar-text: #b9cbdc; --sidebar-active: rgba(255,255,255,.10); --sidebar-border: rgba(255,255,255,.08);
  --water-a: #d3ebf3; --water-b: #b6dcea; --pier: #e7d9bd; --pier-edge: #c9b68f; --land: #e4e9dc;
  --shadow: 0 1px 2px rgba(15,35,56,.05), 0 10px 30px rgba(15,35,56,.07);
  --shadow-pop: 0 20px 50px rgba(8,28,48,.22);
  --hero: linear-gradient(160deg, #0b2540 0%, #0a4a63 55%, #0a6c74 100%);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061320; --bg-2: #08192a;
  --surface: #0d2236; --surface-2: #102a42; --surface-3: #15334f;
  --border: #1b3855; --border-strong: #27496b;
  --text: #e6eff8; --text-2: #9db3c9; --text-3: #6f879f;
  --brand: #35c2c9; --brand-hover: #55d0d6; --brand-soft: #0f3b46; --brand-text: #5fd3d9; --on-brand: #04202a;
  --navy: #040e18; --accent: #f29b4b; --accent-soft: #3a2614;
  --free: #3ccf92; --free-soft: #113a2e;
  --taken: #6b9bff; --taken-soft: #15294f;
  --reserved: #f0a65b; --reserved-soft: #3d2a14;
  --overdue: #f26d6d; --overdue-soft: #421a1f;
  --inactive: #7f93a8; --inactive-soft: #1b2e42;
  --info: #6b9bff; --info-soft: #15294f; --warn: #e8b84d; --warn-soft: #3a2f10;
  --sidebar-bg: #040e18; --sidebar-text: #8fa7be; --sidebar-active: rgba(53,194,201,.14); --sidebar-border: rgba(255,255,255,.06);
  --water-a: #0c2b42; --water-b: #0a2236; --pier: #3a3a33; --pier-edge: #55543f; --land: #14231f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-pop: 0 20px 50px rgba(0,0,0,.6);
  --hero: linear-gradient(160deg, #040e18 0%, #082a3d 55%, #0b4b57 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #061320; --bg-2: #08192a; --surface: #0d2236; --surface-2: #102a42; --surface-3: #15334f;
    --border: #1b3855; --border-strong: #27496b; --text: #e6eff8; --text-2: #9db3c9; --text-3: #6f879f;
    --brand: #35c2c9; --brand-hover: #55d0d6; --brand-soft: #0f3b46; --brand-text: #5fd3d9; --on-brand: #04202a;
    --navy: #040e18; --accent: #f29b4b; --accent-soft: #3a2614;
    --free: #3ccf92; --free-soft: #113a2e; --taken: #6b9bff; --taken-soft: #15294f;
    --reserved: #f0a65b; --reserved-soft: #3d2a14; --overdue: #f26d6d; --overdue-soft: #421a1f;
    --inactive: #7f93a8; --inactive-soft: #1b2e42; --info: #6b9bff; --info-soft: #15294f; --warn: #e8b84d; --warn-soft: #3a2f10;
    --sidebar-bg: #040e18; --sidebar-text: #8fa7be; --sidebar-active: rgba(53,194,201,.14); --sidebar-border: rgba(255,255,255,.06);
    --water-a: #0c2b42; --water-b: #0a2236; --pier: #3a3a33; --pier-edge: #55543f; --land: #14231f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); --shadow-pop: 0 20px 50px rgba(0,0,0,.6);
    --hero: linear-gradient(160deg, #040e18 0%, #082a3d 55%, #0b4b57 100%);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
p { margin: 0; }
a { color: var(--brand-text); text-decoration: none; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); } .mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 15px; height: 15px; } .i.lg { width: 22px; height: 22px; }

/* ---------- powłoka aplikacji ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--sidebar-border); }
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; color: #fff; }
.brand .logo { width: 38px; height: 38px; display: block; flex: none; filter: drop-shadow(0 6px 10px rgba(10,108,116,.45)); }
.brand .logo.logo-lg { width: 56px; height: 56px; }
.brand b { display: block; font-size: 16px; letter-spacing: -.01em; } .brand small { font-size: 11.5px; color: var(--sidebar-text); }
.marina-switch { margin: 6px 14px 10px; padding: 10px 12px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid var(--sidebar-border); display: flex; align-items: center; gap: 10px; color: #e8f1f8; }
.marina-switch small { display: block; color: var(--sidebar-text); font-size: 11px; } .marina-switch b { font-size: 13px; font-weight: 600; }
.marina-switch .i { margin-left: auto; opacity: .7; }
.nav { padding: 4px 10px 12px; overflow: auto; flex: 1; }
/* One scrollbar style for the whole application (thin, colours from the theme); the sidebar is dark in both themes, so it has its own lighter thumb. */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: padding-box; }
.sidebar, .sidebar * { scrollbar-color: rgba(255,255,255,.24) transparent; }
.sidebar *::-webkit-scrollbar-thumb { background: rgba(255,255,255,.24); background-clip: padding-box; }
.sidebar *::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.4); background-clip: padding-box; }
.nav-group { padding: 14px 12px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: rgba(185,203,220,.55); font-weight: 650; }
.nav-group-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; margin: 0; border: 0; border-radius: 10px; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.nav-group-toggle:hover { background: rgba(255,255,255,.06); color: rgba(220,232,243,.9); }
.nav-group-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.nav-group-toggle .nav-chevron { width: 15px; height: 15px; transition: transform .15s ease; }
.nav-group-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-items[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .nav-group-toggle .nav-chevron { transition: none; } }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--sidebar-text); font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--sidebar-active); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
[data-theme="dark"] .nav a.active { color: var(--brand-text); }
.nav a .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.nav a .count.alert { background: var(--accent); color: #2a1503; }
.side-foot { padding: 12px 14px 16px; border-top: 1px solid var(--sidebar-border); display: flex; align-items: center; gap: 10px; color: #cfe0ee; }
.app-version { font-size: 11px; color: var(--sidebar-text); opacity: .8; letter-spacing: .02em; white-space: nowrap; }
.app-version.in-sidebar { display: block; padding: 0 14px 10px; }
.app-version.page-corner { position: fixed; right: 12px; bottom: 8px; color: var(--text-3); z-index: 1; }
.app-version.popup-only { display: none; }
html.em-popup .app-version.popup-only { display: block; }
.side-foot small { display: block; color: var(--sidebar-text); font-size: 11px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #1ab0b8, #0a6c74); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13px; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; } .avatar.alt { background: linear-gradient(145deg, #f0a65b, #d9822b); } .avatar.navy { background: linear-gradient(145deg, #3b5f86, #1e3a5a); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: var(--topbar-h); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface-3); border: 1px solid transparent; border-radius: 12px; padding: 9px 14px; width: min(420px, 38vw); color: var(--text-3); }
.search:hover { border-color: var(--border-strong); } .search span { flex: 1; font-size: 13.5px; }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--text-2); background: var(--surface); }
.top-spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 550; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 0 3px color-mix(in srgb, var(--free) 22%, transparent); }
.pill .dot.warn { background: var(--reserved); box-shadow: 0 0 0 3px color-mix(in srgb, var(--reserved) 22%, transparent); }
.pill .dot.bad { background: var(--overdue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--overdue) 22%, transparent); }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .badge-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; border: 2px solid var(--surface); }
.theme-toggle .i-moon { display: none; } [data-theme="dark"] .theme-toggle .i-sun { display: none; } [data-theme="dark"] .theme-toggle .i-moon { display: block; }
.page { padding: 16px 28px 40px; max-width: 1680px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head .crumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.page-head p { color: var(--text-2); margin-top: 4px; }

/* ---------- komponenty ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { flex: 1; } .card-body { padding: 18px 20px; } .card-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 18px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; } .g-main-l { grid-template-columns: 360px minmax(0, 1fr); } .g-2-1 { grid-template-columns: 2fr 1fr; }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 12px; } .sp { flex: 1; } .gap-s { gap: 6px; } .gap-l { gap: 22px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat .label { color: var(--text-2); font-size: 12.5px; font-weight: 550; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 30px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* Map of the harbor (Docking module). The colors of the statuses are the same tokens as in the mockups. */
.harbor-map { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--land) 0, var(--land) 9%, var(--water-a) 9%, var(--water-b) 100%); }
.harbor-map.placing { cursor: crosshair; box-shadow: inset 0 0 0 2px var(--brand); }
.harbor-map.placing .berth-chip { pointer-events: none; }
.harbor-map .berth-chip { position: absolute; transform: translate(-50%, -50%); min-width: 34px; padding: 2px 5px; font: 600 11px/1.3 var(--font);
  border: 1.5px solid var(--status, var(--inactive)); border-radius: 4px; background: var(--status-soft, var(--inactive-soft)); color: var(--text); cursor: pointer; }
.harbor-map .berth-chip.selected { outline: 3px solid var(--text); outline-offset: 1px; z-index: 2; }
.harbor-map .berth-chip.conflict { border-style: dashed; box-shadow: 0 0 0 2px var(--overdue); }
.harbor-map .berth-chip.dimmed { opacity: .25; }
.harbor-map .berth-chip.status-free { --status: var(--free); --status-soft: var(--free-soft); }
.harbor-map .berth-chip.status-taken { --status: var(--taken); --status-soft: var(--taken-soft); }
.harbor-map .berth-chip.status-reserved { --status: var(--reserved); --status-soft: var(--reserved-soft); }
.harbor-map .berth-chip.status-overdue { --status: var(--overdue); --status-soft: var(--overdue-soft); }
.harbor-map .berth-chip.status-inactive { --status: var(--inactive); --status-soft: var(--inactive-soft); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .map-layout { grid-template-columns: minmax(0, 1fr); } }
.berth-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; font-size: 12px; color: var(--text-2); }
.berth-legend .dot { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; background: var(--status); }
.berth-legend .status-free { --status: var(--free); } .berth-legend .status-taken { --status: var(--taken); } .berth-legend .status-reserved { --status: var(--reserved); }
.berth-legend .status-overdue { --status: var(--overdue); } .berth-legend .status-inactive { --status: var(--inactive); }
.display-panels { width: 100%; max-width: 1400px; margin: 0 auto; padding: 24px; }
.guest-map h2 { font-size: 28px; margin: 8px 0; }
.guest-map-free { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.harbor-map.guest .berth-chip { cursor: default; font-size: 14px; padding: 4px 8px; }
.guest-map .berth-legend { font-size: 16px; }
.category-bar { height: 8px; margin: 4px 0 12px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.category-bar > span { display: block; height: 100%; background: var(--brand); }
.map-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; }
.map-detail dt { color: var(--text-3); } .map-detail dd { margin: 0; font-weight: 600; text-align: right; }

.counters { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.counters .stat { min-width: 150px; padding: 12px 16px; }
.counters .stat .value { font-size: 24px; }
.counters .stat .value.overdue-text { color: var(--overdue); }
.stat .delta { font-size: 12.5px; color: var(--text-2); } .stat .delta.up { color: var(--free); } .stat .delta.down { color: var(--overdue); }
.stat .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.stat .ico.warn { background: var(--reserved-soft); color: var(--reserved); } .stat .ico.bad { background: var(--overdue-soft); color: var(--overdue); } .stat .ico.ok { background: var(--free-soft); color: var(--free); } .stat .ico.info { background: var(--taken-soft); color: var(--taken); }
.stat .spark { position: absolute; right: 14px; bottom: 12px; width: 96px; height: 34px; opacity: .9; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; font: inherit; font-weight: 600; font-size: 13.5px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); } .btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { color: var(--overdue); border-color: color-mix(in srgb, var(--overdue) 40%, var(--border)); }
.btn.accent { background: var(--accent); color: #2a1503; border-color: var(--accent); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; } .btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: 11px 0 0 11px; margin: 0; } .btn-group .btn:last-child { border-radius: 0 11px 11px 0; }
.btn-group .btn.on { background: var(--brand-soft); color: var(--brand-text); border-color: var(--brand); z-index: 1; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--inactive-soft); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.free { background: var(--free-soft); color: var(--free); } .badge.taken { background: var(--taken-soft); color: var(--taken); }
.badge.reserved { background: var(--reserved-soft); color: var(--reserved); } .badge.overdue { background: var(--overdue-soft); color: var(--overdue); }
.badge.inactive { background: var(--inactive-soft); color: var(--inactive); } .badge.brand { background: var(--brand-soft); color: var(--brand-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.nodot::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 550; color: var(--text-2); cursor: pointer; }
.chip.on { background: var(--brand-soft); color: var(--brand-text); border-color: var(--brand); }
.chip .n { font-size: 11px; background: var(--surface-3); border-radius: 999px; padding: 0 7px; color: var(--text-2); } .chip.on .n { background: var(--brand); color: var(--on-brand); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 20px; }
.tab { padding: 13px 14px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--text); } .tab.on { color: var(--brand-text); border-bottom-color: var(--brand); }
.tab .n { font-size: 11px; background: var(--surface-3); border-radius: 999px; padding: 0 7px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover { background: var(--surface-2); } .tbl tr.sel { background: var(--brand-soft); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .who { display: flex; align-items: center; gap: 10px; } .tbl .who b { display: block; font-weight: 600; } .tbl .who small { color: var(--text-3); }
.cb { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--surface); display: inline-grid; place-items: center; vertical-align: middle; }
.cb.on { background: var(--brand); border-color: var(--brand); } .cb.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea { height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); padding: 0 12px; font: inherit; color: var(--text); display: flex; align-items: center; gap: 8px; }
.input.focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.select { white-space: nowrap; }
.input .ph { color: var(--text-3); } .input .unit { margin-left: auto; color: var(--text-3); font-size: 12.5px; } .select .i { margin-left: auto; color: var(--text-3); }
.input.err { border-color: var(--overdue); } .hint { font-size: 12px; color: var(--text-3); } .hint.err { color: var(--overdue); }
.textarea { height: 88px; align-items: flex-start; padding-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; } .form-grid.c3 { grid-template-columns: repeat(3, 1fr); } .full { grid-column: 1 / -1; }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; flex: none; } .toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle.on { background: var(--brand); } .toggle.on::after { left: 19px; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); display: inline-block; } .radio.on { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--brand); }
.section-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin: 4px 0 10px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; font-size: 13.5px; } .kv dt { color: var(--text-3); } .kv dd { margin: 0; font-weight: 550; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; } .progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #3fc6cd); border-radius: 999px; }
.progress.warn > i { background: var(--reserved); } .progress.bad > i { background: var(--overdue); } .progress.ok > i { background: var(--free); }
.stepper { display: flex; align-items: center; } .step { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-3); font-size: 13px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); font-size: 12.5px; background: var(--surface); }
.step.done .n { background: var(--free); border-color: var(--free); color: #fff; } .step.cur { color: var(--text); } .step.cur .n { border-color: var(--brand); color: var(--brand-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.step-line { flex: 1; height: 2px; background: var(--border-strong); margin: 0 12px; min-width: 24px; } .step-line.done { background: var(--free); }
.timeline { position: relative; padding-left: 28px; } .timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 16px; } .tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tl-item.ok::before { border-color: var(--free); } .tl-item.warn::before { border-color: var(--reserved); } .tl-item.bad::before { border-color: var(--overdue); } .tl-item small { color: var(--text-3); display: block; }
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--info-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); } .alert.bad { background: var(--overdue-soft); border-color: color-mix(in srgb, var(--overdue) 35%, transparent); } .alert.ok { background: var(--free-soft); border-color: color-mix(in srgb, var(--free) 35%, transparent); }
.alert .i { margin-top: 1px; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
/* Yacht picker: the search field and the "new yacht" button side by side; the results, messages and the new-yacht form take the whole row. */
.yacht-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yacht-picker > .alert, .yacht-picker > .hint, .yacht-picker > .yacht-picker-results, .yacht-picker > .yacht-picker-new { flex-basis: 100%; }
.yacht-picker-results { order: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-pop); z-index: 40; display: flex; flex-direction: column; }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; } .drawer-body { padding: 22px 24px; overflow: auto; flex: 1; } .drawer-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.scrim { position: fixed; inset: 0; background: rgba(6,19,32,.45); z-index: 30; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); z-index: 40; border: 1px solid var(--border); }
.toast { position: fixed; right: 24px; bottom: 24px; display: flex; gap: 12px; align-items: center; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-pop); z-index: 50; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); } .list-row:last-child { border-bottom: 0; }
.ico-circle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.ico-circle.warn { background: var(--reserved-soft); color: var(--reserved); } .ico-circle.bad { background: var(--overdue-soft); color: var(--overdue); } .ico-circle.ok { background: var(--free-soft); color: var(--free); } .ico-circle.info { background: var(--taken-soft); color: var(--taken); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 250px; } .bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; } .bars .b i { width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, transparent)); } .bars .b span { font-size: 11px; color: var(--text-3); }

/* ---------- mapa portu ---------- */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(160deg, var(--water-a), var(--water-b)); }
.map-wrap svg { display: block; width: 100%; height: auto; }
.map-ctl { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 8px; } .map-ctl .icon-btn { box-shadow: var(--shadow); }
.map-legend { position: absolute; left: 16px; bottom: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; backdrop-filter: blur(6px); }
.berth { cursor: pointer; transition: transform .12s; } .berth:hover { filter: brightness(1.08); }
.berth rect { stroke-width: 1.5; } .berth text { font-family: var(--font); font-size: 11px; font-weight: 650; text-anchor: middle; pointer-events: none; }
.berth.free rect { fill: var(--free-soft); stroke: var(--free); } .berth.free text { fill: var(--free); }
.berth.taken rect { fill: var(--taken); stroke: var(--taken); } .berth.taken text { fill: #fff; }
.berth.reserved rect { fill: var(--reserved-soft); stroke: var(--reserved); stroke-dasharray: 4 3; } .berth.reserved text { fill: var(--reserved); }
.berth.overdue rect { fill: var(--overdue); stroke: var(--overdue); } .berth.overdue text { fill: #fff; }
.berth.inactive rect { fill: var(--inactive-soft); stroke: var(--inactive); } .berth.inactive text { fill: var(--inactive); }
.berth.sel rect { stroke: var(--text); stroke-width: 3; }

/* ---------- Gantt ---------- */
.gantt { display: grid; grid-template-columns: 220px 1fr; font-size: 13px; }
.g-names > div { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.g-names .hd, .g-days .hd { height: 52px; background: var(--surface-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; }
.g-days { position: relative; overflow: hidden; border-left: 1px solid var(--border); }
.g-days .hd { display: grid; grid-template-columns: repeat(28, 1fr); border-bottom: 1px solid var(--border); } .g-days .hd span { text-align: center; padding-top: 8px; border-right: 1px solid var(--border); line-height: 1.2; } .g-days .hd span small { display: block; font-weight: 500; opacity: .8; }
.g-rows { position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(100%/28 - 1px), var(--border) calc(100%/28 - 1px) calc(100%/28)); }
.g-row { height: 48px; border-bottom: 1px solid var(--border); position: relative; }
.g-bar { position: absolute; top: 9px; height: 30px; border-radius: 9px; padding: 0 10px; display: flex; align-items: center; font-size: 12px; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.g-bar.s1 { background: var(--taken); } .g-bar.s2 { background: var(--free); } .g-bar.s3 { background: var(--reserved); color: #2a1503; } .g-bar.s4 { background: var(--inactive); } .g-bar.s5 { background: var(--brand); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 2; } .g-today::before { content: "dziś"; position: absolute; top: 4px; left: 6px; font-size: 10.5px; font-weight: 700; color: var(--accent); }

/* ---------- logowanie ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.auth-hero { background: var(--hero); color: #fff; padding: 48px 56px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-hero .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; opacity: .9; }
.auth-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: auto 0 14px; max-width: 520px; } .auth-hero p { color: #bfd8e6; max-width: 460px; font-size: 16px; }
.auth-hero .feats { display: flex; gap: 12px; margin: 28px 0 150px; flex-wrap: wrap; } .auth-hero .feat { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 550; display: flex; gap: 8px; align-items: center; }
.auth-form { display: grid; place-items: center; padding: 40px; position: relative; } .auth-card { width: 420px; max-width: 100%; }
.auth-card h1 { font-size: 26px; } .auth-top { position: absolute; top: 22px; right: 26px; display: flex; gap: 10px; align-items: center; }
.otp { display: flex; gap: 10px; } .otp div { width: 52px; height: 60px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; font-size: 24px; font-weight: 650; } .otp div.cur { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.loc-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; } .loc-card.on { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- różne ---------- */
.perm-grid { display: grid; grid-template-columns: 220px repeat(5, 1fr); font-size: 13px; } .perm-grid > div { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; } .perm-grid .h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; background: var(--surface-2); justify-content: center; } .perm-grid .h:first-child { justify-content: flex-start; } .perm-grid .c { justify-content: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; } .shot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: block; color: inherit; } .shot img { width: 100%; display: block; border-bottom: 1px solid var(--border); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface-3); } .shot div { padding: 14px 16px; } .shot b { display: block; } .shot small { color: var(--text-2); }
@media (max-width: 1280px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g-main, .g-main-l { grid-template-columns: 1fr; } }

/* --- v2: narzędzia kolumn, menu, okna --- */
.th-tools { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; color: var(--text-3); opacity: .7; vertical-align: middle; font-size: 11px; letter-spacing: 0; text-transform: none; }
.th-tools .i { width: 12px; height: 12px; }
.th-tools .srt { font-size: 11px; line-height: 1; }
.th-tools.on { color: var(--brand-text); opacity: 1; }
.th-tools.on .i { fill: currentColor; }
.tbl th.num .th-tools { margin-left: 0; margin-right: 6px; order: -1; }
.popover { position: absolute; z-index: 35; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop); width: 280px; }
.popover .pv-head { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.popover .pv-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13.5px; }
.popover .pv-item:hover { background: var(--surface-2); }
.popover .pv-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); justify-content: flex-end; }
.popover .pv-list { max-height: 210px; overflow: auto; padding: 4px 0; }
.popover .pv-sep { height: 1px; background: var(--border); margin: 4px 0; }
.live { color: var(--free); font-weight: 600; }
.live .dot { background: var(--free); }
.sumrow td { background: var(--surface-2); font-weight: 650; border-top: 2px solid var(--border); }
.dict-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; }
.dict-nav a.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.dict-nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 650; padding: 14px 14px 6px; }
.dict-nav .n { margin-left: auto; font-size: 12px; color: var(--text-3); }
.screen-box { border: 2px dashed var(--border-strong, var(--border)); border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.screen-box.cur { border-style: solid; border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }

.nav a .ext { margin-left: auto; opacity: 0; display: inline-flex; } .nav a:hover .ext { opacity: .75; }
.nav a .count + .ext { margin-left: 6px; }
.card-head .win-card { opacity: .55; } .card-head:hover .win-card { opacity: 1; }

/* Shared data grid (EmGrid, Syncfusion): layout around the table and alignment with the application tokens. */
.em-grid { display: block; width: 100%; }
.em-grid-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 8px; min-height: 38px; }
.em-grid-spacer { flex: 1; }
.em-grid-selected { font-weight: 600; color: var(--text-2); }
.em-grid-message { color: var(--warn); font-size: 13px; }
/* No overflow: hidden here: Syncfusion renders the column chooser inside the grid element and it would be clipped by the border of a low or empty grid. */
.em-grid .e-grid { font-family: var(--font); border-radius: var(--r); border-color: var(--border); }
.em-grid .e-grid .e-toolbar { border-color: var(--border); }

/* Data grid in the dark theme: the colours of the mockups (navy surfaces of the tokens above) instead of the grey of the Syncfusion fluent2-dark theme. */
[data-theme="dark"] .em-grid .e-grid,
[data-theme="dark"] .em-grid .e-grid .e-gridheader,
[data-theme="dark"] .em-grid .e-grid .e-gridcontent,
[data-theme="dark"] .em-grid .e-grid .e-content { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .em-grid .e-grid .e-toolbar,
[data-theme="dark"] .em-grid .e-grid .e-toolbar .e-toolbar-items,
[data-theme="dark"] .em-grid .e-grid .e-toolbar .e-toolbar-item { background: var(--surface); border-color: var(--border); color: var(--text-2); }
[data-theme="dark"] .em-grid .e-grid .e-toolbar .e-tbar-btn { background: transparent; color: var(--text-2); }
[data-theme="dark"] .em-grid .e-grid .e-toolbar .e-tbar-btn:hover { background: var(--surface-3); color: var(--text); }
[data-theme="dark"] .em-grid .e-grid .e-toolbar .e-tbar-btn-text,
[data-theme="dark"] .em-grid .e-grid .e-toolbar .e-btn-icon { color: inherit; }
[data-theme="dark"] .em-grid .e-grid .e-headercell,
[data-theme="dark"] .em-grid .e-grid .e-detailheadercell { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
[data-theme="dark"] .em-grid .e-grid .e-headercelldiv,
[data-theme="dark"] .em-grid .e-grid .e-headertext { color: var(--text-2); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
[data-theme="dark"] .em-grid .e-grid .e-icons,
[data-theme="dark"] .em-grid .e-grid .e-filtermenudiv { color: var(--text-3); }
[data-theme="dark"] .em-grid .e-grid .e-row .e-rowcell,
[data-theme="dark"] .em-grid .e-grid .e-row .e-detailrowcollapse { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .em-grid .e-grid .e-row.e-altrow td.e-rowcell,
[data-theme="dark"] .em-grid .e-grid .e-row td.e-rowcell { background: var(--surface); }
[data-theme="dark"] .em-grid .e-grid.e-gridhover .e-row:hover .e-rowcell { background: var(--surface-2); }
[data-theme="dark"] .em-grid .e-grid .e-row .e-rowcell.e-active,
[data-theme="dark"] .em-grid .e-grid .e-row[aria-selected="true"] .e-rowcell { background: var(--brand-soft); color: var(--text); }
[data-theme="dark"] .em-grid .e-grid .e-emptyrow td { background: var(--surface); color: var(--text-2); }
[data-theme="dark"] .em-grid .e-grid .e-gridpager { background: var(--surface); border-color: var(--border); color: var(--text-2); }
[data-theme="dark"] .em-grid .e-grid .e-pager,
[data-theme="dark"] .em-grid .e-grid .e-pager div.e-parentmsgbar,
[data-theme="dark"] .em-grid .e-grid .e-pager .e-pagerconstant { background: var(--surface); color: var(--text-2); }
[data-theme="dark"] .em-grid .e-grid .e-pager .e-numericitem,
[data-theme="dark"] .em-grid .e-grid .e-pager .e-currentitem { background: transparent; color: var(--text-2); }
[data-theme="dark"] .em-grid .e-grid .e-pager .e-currentitem { background: var(--brand-soft); color: var(--brand-text); }
[data-theme="dark"] .em-grid .e-grid .e-pager .e-numericitem:hover { background: var(--surface-3); color: var(--text); }
/* Popups opened from a grid (Excel filter, column chooser, page size list) sit in the body, outside the grid. */
[data-theme="dark"] .e-popup.e-popup-open,
[data-theme="dark"] .e-dialog.e-excelfilter,
[data-theme="dark"] .e-dialog.e-popup,
[data-theme="dark"] .e-columnchooser,
[data-theme="dark"] .e-grid .e-columnchooser { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
[data-theme="dark"] .e-dialog .e-dlg-header-content,
[data-theme="dark"] .e-dialog .e-dlg-content,
[data-theme="dark"] .e-dialog .e-footer-content { background: var(--surface-2); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .e-popup .e-list-item { color: var(--text); }
[data-theme="dark"] .e-popup .e-list-item.e-hover,
[data-theme="dark"] .e-popup .e-list-item.e-active { background: var(--surface-3); color: var(--text); }
/* The hover and selection colours of the grid come from variables of the Syncfusion theme; point them at the tokens. */
[data-theme="dark"] .em-grid { --color-sf-table-bg-color-hover: var(--surface-2); --color-sf-table-bg-color-selected: var(--brand-soft); --color-sf-table-bg-color-pressed: var(--surface-3); }
[data-theme="dark"] .em-grid .e-grid .e-input-group,
[data-theme="dark"] .e-popup .e-input-group,
[data-theme="dark"] .e-dialog .e-input-group { background: var(--surface-3); border-color: var(--border-strong); }
[data-theme="dark"] .em-grid .e-grid .e-pager .e-icons.e-first,
[data-theme="dark"] .em-grid .e-grid .e-pager .e-icons.e-prev,
[data-theme="dark"] .em-grid .e-grid .e-pager .e-icons.e-next,
[data-theme="dark"] .em-grid .e-grid .e-pager .e-icons.e-last { background: var(--surface-2); color: var(--text-2); }
[data-theme="dark"] .e-dialog .e-btn:not(.e-primary) { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }

/* Global search of the top bar (Ctrl+K) */
.search-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--text) 30%, transparent); z-index: 50; }
.search-panel { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); z-index: 51; }
.search-input { width: 100%; }
.search-results { overflow-y: auto; }
.search-results ul { list-style: none; margin: 0; padding: 0; }
.search-group { margin: 10px 0 4px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.search-hit { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.search-hit:hover, .search-hit:focus { background: var(--surface-3); }
.search-title { font-weight: 600; }
.search-details { font-size: 12.5px; color: var(--text-2); }
.search-note { margin: 8px 4px; color: var(--text-2); }
