/* Bonasea — theming + layout */
:root {
  /* Brand tokens (Claude Design handoff): Sora, blue #0000FF, magenta #C102C8, ink #1A1530 */
  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px -12px rgba(26, 21, 48, .22);
  --tr: .18s ease;
}
[data-resolved-theme="light"] {
  --bg: #eef1f9;
  --bg-grad: linear-gradient(160deg, #edf1fb 0%, #f4f5fa 60%, #ecf0f8 100%);
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --border: rgba(26, 21, 48, 0.08);
  --text: #1A1530;
  --text-2: rgba(26, 21, 48, 0.55);
  --accent: #0000FF;
  --accent-2: #C102C8;
  --accent-soft: #ecebff;
  --ok: #2fb344;
  --ok-soft: #e4f6e8;
  --warn: #f5a524;
  --warn-soft: #fdf2da;
  --bad: #ed7014;
  --bad-soft: #fdecdd;
  --danger: #e5484d;
  --danger-soft: #fce5e6;
  --chip-na: #e3e2ec;
}
[data-resolved-theme="dark"] {
  --bg: #131022;
  --bg-grad: linear-gradient(160deg, #171330 0%, #131022 60%, #16122a 100%);
  --surface: #1e1935;
  --surface-2: #272042;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceaf6;
  --text-2: rgba(236, 234, 246, 0.6);
  --accent: #7b7bff;
  --accent-2: #d95ce2;
  --accent-soft: #29275a;
  --ok: #3ecf5f;
  --ok-soft: #14361c;
  --warn: #f5a524;
  --warn-soft: #3a2e0e;
  --bad: #f0842e;
  --bad-soft: #3c250e;
  --danger: #ef5b61;
  --danger-soft: #3d1518;
  --chip-na: #292344;
  --shadow: 0 10px 28px -12px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-grad), var(--bg);
  color: var(--text);
  font-size: 15px;
}
.hidden { display: none !important; }
h1, h2, h3 { margin: 0 0 .5em; }
button { font-family: inherit; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card {
  width: 360px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); padding: 34px 30px; text-align: center;
}
.login-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 18px -6px rgba(26,21,48,.35); }
.login-card h1 { font-size: 26px; letter-spacing: .5px; margin: 6px 0 2px; }
.login-sub { color: var(--text-2); margin: 0 0 22px; font-size: 13.5px; }
.login-err { color: var(--danger); font-size: 13px; margin-bottom: 10px; }

/* ---------- shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 218px; flex-shrink: 0; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 18px;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-icon { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-btn {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  background: none; border: none; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background var(--tr), color var(--tr); text-align: left;
}
.nav-btn:hover { background: var(--surface-2); color: var(--text); }
.nav-btn.active { background: var(--accent-soft); color: var(--accent); }
.nav-ico { font-size: 17px; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.theme-toggle { background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 16px; }
.whoami { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; padding: 26px 30px 60px; max-width: 1440px; }
.view > .page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 24px; flex: 1; }
.ed-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-sub { color: var(--text-2); font-size: 13.5px; margin: -14px 0 20px; }

/* ---------- controls ---------- */
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: filter var(--tr), background var(--tr);
}
.btn:hover { filter: brightness(1.05); }
.btn-primary { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; border: none; }
/* icons are authored with brand-colored strokes/fills for light backgrounds —
   on a btn-primary's gradient they must go solid white like the button text */
.btn-primary svg { stroke: currentColor; }
.btn-primary svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.btn-primary svg [fill]:not([fill="none"]):not([fill^="url"]) { fill: currentColor; }
.btn-ghost { background: none; border: none; color: var(--accent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; margin-top: 8px; }
.field { text-align: left; margin-bottom: 12px; }
.field label {
  display: block; font-size: 10.5px; font-weight: 600; color: var(--text-2);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.14em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font-size: 14px; font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.fields-row { display: flex; gap: 10px; }
.fields-row .field { flex: 1; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.card-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.route-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.route-actions .btn { flex: 1; min-width: 96px; }
.route-stats { color: var(--text-2); font-size: 12.5px; margin-top: 6px; }
.nav-route-card { cursor: pointer; padding: 13px 16px; margin-bottom: 10px; transition: border-color var(--tr); }
.nav-route-card.sel { border: 2px solid var(--accent); background: var(--accent-soft); }
.nav-route-card .route-stats { margin-top: 3px; }

/* ---------- score chips / heat strip ---------- */
.heat-strip { display: flex; gap: 5px; flex-wrap: wrap; }
.heat-day {
  width: 56px; padding: 6px 0 7px; border-radius: 10px; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: transform var(--tr);
  background: var(--chip-na); color: var(--text-2);
}
.heat-day:hover { transform: translateY(-2px); }
.heat-day .hd-dow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; opacity: .8; }
.heat-day .hd-date { font-size: 12px; font-weight: 600; }
.heat-day .hd-score { font-size: 15px; font-weight: 800; margin-top: 1px; }
.heat-day.best { border-color: var(--text); }
.cls-high { background: var(--ok-soft); color: var(--ok); }
.cls-medium { background: var(--warn-soft); color: var(--warn); }
.cls-low { background: var(--bad-soft); color: var(--bad); }
.cls-discomfort { background: var(--danger-soft); color: var(--danger); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge.cls-high { color: var(--ok); } .badge.cls-medium { color: var(--warn); }
.badge.cls-low { color: var(--bad); } .badge.cls-discomfort { color: var(--danger); }
.badge-day { background: rgba(0, 0, 255, 0.10); color: #4B5BFF; }
.badge-multi { background: rgba(193, 2, 200, 0.12); color: #C102C8; }

/* ---------- comfort table ---------- */
.comfort-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.comfort-table th, .comfort-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.comfort-table th { color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
.dot-high { background: var(--ok); } .dot-medium { background: var(--warn); }
.dot-low { background: var(--bad); } .dot-discomfort { background: var(--danger); }

/* ---------- route editor ---------- */
.editor-layout { display: grid; grid-template-columns: 1fr 480px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .editor-layout { grid-template-columns: 1fr; } }
#editor-map { height: calc(100vh - 190px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 1; }
.wp-list { display: flex; flex-direction: column; gap: 7px; max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.wp-item {
  display: flex; align-items: center; gap: 7px; padding: 8px 9px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px;
}
.wp-item.drag-over { outline: 2px solid var(--accent); outline-offset: -2px; }
.wp-item.wp-auto { opacity: 0.62; }
.wp-drag { cursor: grab; color: var(--text-2); font-size: 15px; user-select: none; padding: 2px 1px; }
.wp-drag:active { cursor: grabbing; }
.wp-item .wp-idx { font-weight: 800; color: var(--accent); min-width: 40px; white-space: nowrap; }
.wp-item .wp-min { color: var(--text-2); font-size: 11px; }
.wp-item input[type="text"] {
  flex: 1; min-width: 70px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); font-size: 13px; padding: 4px 7px;
}
.wp-item input[type="text"]:focus { outline: 2px solid var(--accent); border-color: transparent; }
@media (max-width: 520px) {
  .wp-item { flex-wrap: wrap; }
  .wp-item input[type="text"] { min-width: 120px; }
}
.wp-item select, .wp-item input[type="number"] {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 6px; padding: 3px 5px; font-size: 12px;
}
.wp-item input[type="number"] { width: 56px; }
.wp-item .wp-ctl { display: flex; gap: 3px; }
.wp-item .wp-ctl button { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--text-2); padding: 2px 4px; }
.wp-item .wp-ctl button:hover { color: var(--text); }
.editor-stats { display: flex; gap: 16px; color: var(--text-2); font-size: 13px; margin-top: 10px; flex-wrap: wrap; }
.editor-stats b { color: var(--text); }

/* ---------- outlook ---------- */
.day-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.day-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: transform var(--tr), border-color var(--tr); position: relative;
}
.day-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.day-card.best-day::after {
  content: ""; position: absolute; top: 10px; right: 12px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 l2.5 5 5.5 0.8 -4 3.9 0.9 5.5 -4.9 -2.6 -4.9 2.6 0.9 -5.5 -4 -3.9 5.5 -0.8 Z' stroke='%232fb344'/%3E%3C/svg%3E") no-repeat center / contain;
}
.dc-date { font-weight: 700; font-size: 14px; }
.dc-score { font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.dc-gauge { text-align: center; margin: 4px 0 6px; }
.gauge { width: 116px; height: auto; }
.dc-meta { color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.dc-meta b { color: var(--text); font-weight: 600; }
@media (max-width: 520px) {
  .day-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .day-card { padding: 9px 10px; }
  .dc-date { font-size: 12px; }
  .day-card .gauge { width: 100%; }
  .dc-gauge { margin: 2px 0 4px; }
  .day-card .badge { font-size: 10px; padding: 2px 8px; }
  .dc-meta { font-size: 11px; line-height: 1.45; margin-top: 6px !important; }
}

.dep-bars { display: flex; gap: 8px; align-items: flex-end; height: 110px; margin: 14px 0 4px; }
.dep-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border-radius: 8px; padding: 3px 2px 4px; border: 2px solid transparent; }
.dep-bar:hover { background: var(--surface-2); }
.dep-bar.sel { border-color: var(--accent); background: var(--accent-soft); }
.dep-bar .bar { width: 100%; border-radius: 6px 6px 3px 3px; min-height: 4px; transition: height .3s ease; }
.dep-bar .bar-lbl { font-size: 11px; color: var(--text-2); font-weight: 600; }
.dep-bar .bar-val { font-size: 11.5px; font-weight: 700; }

.hour-table-wrap { overflow-x: auto; }
.hour-table { border-collapse: collapse; font-size: 12.5px; white-space: nowrap; width: 100%; }
.hour-table th, .hour-table td { padding: 5px 9px; border-bottom: 1px solid var(--border); text-align: right; }
.hour-table th:first-child, .hour-table td:first-child { text-align: left; }
.hour-table th { color: var(--text-2); font-size: 11px; text-transform: uppercase; }
.hour-table tbody tr:hover td, .hour-table tr:hover td { background: var(--surface-2); cursor: default; }

.multi-matrix-wrap { overflow-x: auto; }
.multi-matrix { border-collapse: collapse; font-size: 13px; }
.multi-matrix th, .multi-matrix td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.multi-matrix td.mm-cell { border-radius: 8px; font-weight: 700; cursor: pointer; }
.multi-matrix tr.best-start td:first-child::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 4px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232fb344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 l2.5 5 5.5 0.8 -4 3.9 0.9 5.5 -4.9 -2.6 -4.9 2.6 0.9 -5.5 -4 -3.9 5.5 -0.8 Z' stroke='%232fb344'/%3E%3C/svg%3E") no-repeat center / contain;
}

.rel-svg { width: 22px; height: 22px; vertical-align: middle; color: var(--text-2); }
.spinner {
  display: inline-block; width: 13px; height: 13px; vertical-align: -2px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sim map ---------- */
.sim-map { height: 460px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 1; }
@media (max-width: 760px) { .sim-map { height: 340px; } }
.hour-table tr.row-hl td { background: var(--accent-soft) !important; }
.stay-input {
  width: 58px; padding: 2px 5px; margin-left: 6px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-2); color: var(--text); font-size: 12px; font-family: inherit;
}
.stay-input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.wp-eta { display: flex; flex-direction: column; align-items: center; width: 64px; }
.wp-eta-ico { font-size: 20px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.wp-eta-time {
  margin-top: 1px; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ---------- boats ---------- */
.boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.boat-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); font-size: 13px; margin-bottom: 12px; }
.boat-specs b { color: var(--text); }
.boat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.catalog-results { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: -6px; margin-bottom: 12px; }
.catalog-item { padding: 8px 12px; cursor: pointer; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.catalog-item:hover { background: var(--accent-soft); }
.catalog-item small { color: var(--text-2); }

/* ---------- settings links ---------- */
.settings-links { display: flex; flex-direction: column; gap: 10px; }
.settings-link {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; cursor: pointer; text-align: left; color: var(--text);
  transition: border-color var(--tr), transform var(--tr);
}
.settings-link:hover { border-color: var(--accent); }
.settings-link:active { transform: scale(0.98); }
.sl-ico { font-size: 22px; }
.sl-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sl-txt b { font-size: 14.5px; }
.sl-txt small { color: var(--text-2); font-size: 12px; }
.sl-arr { font-size: 22px; color: var(--text-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 11px 22px; border-radius: 30px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow); z-index: 3000;
}

/* ---------- navigation mode — HUD design 1b ("Spodný panel") ---------- */
body.navhud-active .sidebar { display: none !important; }
body.navhud-active .main { padding: 0; max-width: none; }

/* route-selection: "Start navigation" inline on desktop; on mobile pinned just
   above the bottom tab bar so it stays visible while scrolling routes */
.nav-start-bar { margin-top: 10px; display: flex; justify-content: center; }
.nav-start-bar .btn { width: 100%; max-width: 480px; }
@media (max-width: 760px) {
  .nav-start-bar {
    position: fixed; left: 0; right: 0; bottom: 64px; z-index: 1450; margin: 0;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
}

.navhud {
  position: fixed; inset: 0; z-index: 1500;
  font-family: "Sora", var(--font);
  --nh-ink: #1A1530;
}
.nh-map-wrap { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: #dbe8f6; touch-action: none; }
/* oversized square so no corners show when the map is CSS-rotated (course/leg up) */
.nh-map {
  position: absolute; width: 130vmax; height: 130vmax;
  left: 50%; top: 50%; margin-left: -65vmax; margin-top: -65vmax;
  background: #dbe8f6; transition: transform .5s ease; will-change: transform;
}

.nh-card {
  position: absolute; z-index: 4;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  background: rgba(21, 17, 36, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 20px; padding: 11px 15px;
  box-shadow: 0 10px 28px -10px rgba(26,21,48,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.nh-speed-card { left: 16px; }
.nh-kurz-card { right: 16px; text-align: right; min-width: 112px; }
.nh-depth-card {
  left: 16px; top: calc(env(safe-area-inset-top, 0px) + 96px);
  padding: 8px 14px 9px;
}
.nh-depth-val {
  font-weight: 800; font-size: 24px; line-height: 0.9; letter-spacing: -0.04em;
  color: #fff;
}

.nh-eyebrow {
  font-family: "Sora", var(--font); font-weight: 600; font-size: 10px; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(26,21,48,0.45);
}
.nh-card .nh-eyebrow { color: rgba(255,255,255,0.55); font-size: 9px; }
.nh-baseline { margin-top: 4px; display: flex; align-items: baseline; gap: 6px; }
.nh-speed-val {
  font-weight: 800; font-size: 36px; line-height: 0.9; letter-spacing: -0.05em;
  color: #fff;
}
.nh-unit { font-weight: 600; font-size: 14px; line-height: 1; color: rgba(26,21,48,0.55); }
.nh-card .nh-unit { color: rgba(255,255,255,0.6); font-size: 13px; }
.nh-kurz-row { margin-top: 4px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.nh-kurz-ico { display: inline-flex; align-items: center; }
.nh-land-card {
  right: 16px; top: calc(env(safe-area-inset-top, 0px) + 96px);
  padding: 8px 14px 9px; text-align: right;
}
/* free-cruise destination picker button, centred between the top cards */
.nh-dest-btn {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  display: inline-flex; align-items: center; gap: 5px; max-width: 34vw;
  background: rgba(21, 17, 36, 0.94); color: #fff; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 13px; padding: 8px 10px; cursor: pointer;
  font-family: "Sora", var(--font); font-weight: 700; font-size: 11.5px;
  white-space: nowrap; overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nh-dest-btn svg circle { stroke: #fff; }
.nh-dest-btn svg path { fill: #fff; stroke: none; }
.nh-dest-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 4px;
  border-top: 1px solid rgba(26,21,48,0.07); cursor: pointer;
  font-family: "Sora", var(--font); font-size: 14px; color: #1A1530;
}
.nh-dest-row:hover { background: rgba(26,21,48,0.04); }
.nh-dest-ic { display: inline-flex; flex: 0 0 auto; }
.nh-dest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-dest-row small { color: rgba(26,21,48,0.45); font-size: 11px; flex: 0 0 auto; }
.nh-dest-grp {
  font-family: "Sora", var(--font); font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: rgba(26,21,48,0.5);
  margin: 10px 0 2px;
}
.nh-dest-empty { padding: 12px 4px; color: rgba(26,21,48,0.45); font-size: 13px; }
.nh-kurz-row svg { transition: transform .3s ease; }
.nh-kurz-val { font-weight: 800; font-size: 27px; line-height: 0.9; letter-spacing: -0.04em; color: #fff; }

.nh-round {
  position: absolute; z-index: 4; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -8px rgba(26,21,48,0.34);
  border: 1px solid rgba(26,21,48,0.06);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .15s ease;
}
.nh-round:active { transform: scale(0.97); }
.nh-zoom-out { left: 16px; bottom: 264px; }
.nh-zoom-in { right: 16px; bottom: 264px; }
.nh-center-btn { right: 16px; bottom: 338px; width: 52px; height: 52px; }
.nh-stop-btn { right: 16px; top: calc(env(safe-area-inset-top, 0px) + 168px); width: 44px; height: 44px; }
.nh-orient-btn { left: 16px; top: calc(env(safe-area-inset-top, 0px) + 168px); width: 44px; height: 44px; }
.nh-debug {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 146px);
  background: rgba(21,17,36,0.8); color: #fff; font-size: 10.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 10px; white-space: nowrap;
}
.nh-orient-txt { font-family: "Sora", var(--font); font-weight: 800; font-size: 14px; color: #1A1530; letter-spacing: -0.02em; }

.nh-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  background: #fff; border-radius: 22px 22px 0 0;
  /* trim the bottom reserve: keep clear of the home indicator but no extra gap */
  padding: 12px 18px max(6px, calc(env(safe-area-inset-bottom, 0px) - 12px));
  box-shadow: 0 -18px 44px -16px rgba(26,21,48,0.3);
  border-top: 1px solid rgba(26,21,48,0.05);
}
.nh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* grid items must be allowed to shrink, else a nowrap pump name pushes the
   column past the screen edge (broken layout on phones) */
.nh-grid > * { min-width: 0; }
@media (max-width: 500px) {
  .nh-row2 .nh-tile { padding: 9px 12px; }
}
.nh-block-wp { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; }
.nh-row2 { margin-top: 10px; }
.nh-block { cursor: pointer; position: relative; }
.nh-block-head { display: flex; align-items: center; gap: 6px; }
/* row 1 blocks: reserve two eyebrow lines so the km values sit at equal height */
.nh-grid:not(.nh-row2) .nh-block-head { min-height: 27px; align-items: flex-start; }
.nh-val {
  margin-top: 4px; font-family: "Sora", var(--font); font-weight: 800; font-size: 19px;
  line-height: 1; letter-spacing: -0.03em; color: var(--nh-ink); white-space: nowrap;
}
.nh-suffix { font-weight: 500; font-size: 12.5px; line-height: 1; color: rgba(26,21,48,0.5); letter-spacing: 0; white-space: nowrap; }
.nh-block .nh-suffix { font-size: 15px; font-weight: 600; }
/* remaining time · ETA on its own line, same size as the km value but grey */
.nh-line2 {
  margin-top: 4px; font-family: "Sora", var(--font); font-weight: 600; font-size: 19px;
  line-height: 1; letter-spacing: -0.03em; color: rgba(26,21,48,0.5); white-space: nowrap;
}
.nh-sub { margin-top: 3px; font-weight: 500; font-size: 12px; line-height: 1; color: rgba(26,21,48,0.5); }
.nh-tile {
  background: #f5f7fb; border-radius: 16px; padding: 10px 12px;
  border: 1px solid rgba(26,21,48,0.05);
}
.nh-tile .nh-val { font-size: 18px; }
.nh-tile .nh-baseline { margin-top: 5px; }
.nh-wind-val { font-weight: 800; font-size: 26px; line-height: 0.9; letter-spacing: -0.04em; color: var(--nh-ink); }
.nh-comfort-val { margin-top: 7px; display: flex; justify-content: flex-end; }
.nh-comfort-val span { font-weight: 800; font-size: 13px; line-height: 1; }
.nh-bar {
  margin-top: 4px; position: relative; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, #e5484d 0%, #f5a524 50%, #2fb344 100%);
}
.nh-bar-dot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  border: 2.5px solid #1A1530; box-shadow: 0 2px 6px rgba(26,21,48,0.35);
  transition: left .4s ease;
}
/* map markers sit on Leaflet tiles, which stay light regardless of app theme —
   pin their icon color to a fixed ink so currentColor SVGs never wash out
   against a light tile when the surrounding app is in dark mode */
.fuel-pin, .fuel-dest, .farm-pin, .anchor-pin, .fav-pin, .poi-marina, .poi-fav, .wp-eta-ico {
  color: #1A1530;
}
.fuel-pin { font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.farm-pin { font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.4); opacity: 0.95; }
.fuel-hl {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 3px solid #0891b2; display: flex; align-items: center; justify-content: center;
  font-size: 21px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  animation: fuelpulse 1.4s ease-in-out infinite;
}
.fuel-hl-route { border-color: #0000FF; }
.wp-num {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2.5px solid #0000FF; display: flex; align-items: center; justify-content: center;
  font-family: "Sora", var(--font); font-weight: 800; font-size: 10.5px; color: #1A1530;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.anchor-pin {
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  border: 3px solid #C102C8; display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.fuel-dest {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 3px solid #e5484d; display: flex; align-items: center; justify-content: center;
  font-size: 19px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
@keyframes fuelpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
/* markers stay upright when the nav map is CSS-rotated (course-up) */
#nav-map .wp-num, #nav-map .anchor-pin, #nav-map .fuel-pin,
#nav-map .fuel-dest, #nav-map .fav-pin, #nav-map .farm-pin {
  transform: rotate(var(--nhrot, 0deg));
}
.fav-pin {
  font-size: 17px; line-height: 22px; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.poi-marina, .poi-fav {
  font-size: 14px; line-height: 18px; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.4); opacity: 0.92;
}
/* permanent waypoint name labels on the route-editor map */
.leaflet-tooltip.wp-label {
  background: #fff; color: #1A1530; border: 1px solid rgba(26,21,48,0.12);
  border-radius: 7px; padding: 2px 7px; font-family: "Sora", var(--font);
  font-weight: 700; font-size: 11.5px; box-shadow: 0 2px 6px rgba(26,21,48,0.25);
  white-space: nowrap;
}
.leaflet-tooltip.wp-label::before { border-top-color: #fff; }
.hazard-pin, .osm-anchor-pin, .facility-pin {
  color: #1A1530; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.hazard-pin { opacity: 0.9; }
.facility-pin { opacity: 0.9; }
.mooring-pin {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2.5px solid #0891b2; display: flex; align-items: center; justify-content: center;
  font-family: "Sora", var(--font); font-weight: 800; font-size: 10px; color: #1A1530;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
#nav-map .hazard-pin, #nav-map .osm-anchor-pin, #nav-map .facility-pin, #nav-map .mooring-pin {
  transform: rotate(var(--nhrot, 0deg));
}
/* marker tooltips are children of the rotated map — strip Leaflet's (rotated)
   bubble and render the label as an upright counter-rotated chip instead */
.nh-map .leaflet-tooltip {
  background: transparent; border: none; box-shadow: none; padding: 0;
}
.nh-map .leaflet-tooltip::before { display: none; }
.nh-map .leaflet-tooltip .mtip-in {
  display: inline-block; transform: rotate(var(--nhrot, 0deg));
  background: #fff; color: #1A1530; padding: 3px 9px; border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28); font-family: "Sora", var(--font);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* popups on the (possibly CSS-rotated) nav map: counter-rotate about the anchor */
.nh-map .leaflet-popup-content-wrapper {
  transform-origin: 50% calc(100% + 16px);
  transform: rotate(var(--nhrot, 0deg));
}
.nh-map .leaflet-popup-tip-container { display: none; }

.fuel-pop { font-family: "Sora", var(--font); font-size: 13px; color: #1A1530; }
.fuel-pop small { color: rgba(26,21,48,0.55); display: block; margin-top: 2px; }
.fuel-pop-btns { display: flex; gap: 6px; margin-top: 9px; }

.shore-pop { font-family: "Sora", var(--font); font-size: 13px; color: #1A1530; line-height: 1.6; }
.shore-pop b { display: block; margin-bottom: 2px; }
.nh-split { display: flex; gap: 10px; }
.nh-split-half { flex: 1; min-width: 0; }
.nh-split-r { text-align: right; }
.nh-fuel-name {
  margin-top: 8px; font-weight: 800; font-size: 13px; line-height: 18px;
  color: var(--nh-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nh-fuel-line {
  margin-top: 3px; font-weight: 600; font-size: 12px; line-height: 1.3;
  color: rgba(26,21,48,0.62);
}
.nh-rain b { font-weight: 800; color: var(--nh-ink); }
.nh-rain {
  margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(26,21,48,0.07);
  display: flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 12px; line-height: 1.3; color: rgba(26,21,48,0.62);
}
.nh-joy {
  position: absolute; z-index: 5; left: 16px; bottom: 340px;
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(26,21,48,0.1);
  box-shadow: 0 10px 26px -8px rgba(26,21,48,0.35);
  display: flex; align-items: center; justify-content: center;
  touch-action: none; cursor: grab;
}
.nh-joy-knob {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #0000FF, #C102C8);
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  pointer-events: none;
}

.nh-notif {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(21, 17, 36, 0.45); backdrop-filter: blur(3px);
}
.nh-notif-card {
  background: #fff; border-radius: 22px; padding: 22px 24px; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  box-shadow: 0 24px 60px -18px rgba(26,21,48,0.55);
  font-family: "Sora", var(--font); color: #1A1530;
}
.nh-notif-ico { font-size: 40px; }
.nh-notif-txt b { display: block; font-size: 17px; margin-bottom: 4px; }
.nh-notif-txt span { color: rgba(26,21,48,0.6); font-size: 13.5px; }
.nh-notif-card .btn { min-width: 120px; }
.nh-fuel-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: #f5f7fb; border: 1px solid rgba(26,21,48,0.06); border-radius: 12px;
  padding: 9px 12px; margin-bottom: 7px; cursor: pointer; text-align: left;
  font-family: "Sora", var(--font);
}
.nh-fuel-row-ico { font-size: 17px; }
.nh-fuel-row-txt { flex: 1; min-width: 0; }
.nh-fuel-row-txt b { display: block; font-size: 13.5px; color: #1A1530; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-fuel-row-txt small { color: rgba(26,21,48,0.55); font-size: 12px; }
.nh-dep-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 2px;
  border-bottom: 1px solid rgba(26,21,48,0.07); color: #1A1530;
  font-family: "Sora", var(--font);
}
.nh-dep-when { width: 60px; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.nh-dep-when small { display: block; font-weight: 600; color: rgba(26,21,48,0.5); font-size: 11px; }
.nh-dep-meta { flex: 1; font-size: 11.5px; color: rgba(26,21,48,0.65); line-height: 1.5; }
.nh-wx-row {
  display: flex; align-items: center; gap: 9px; padding: 5px 2px;
  font-size: 12.5px; color: #1A1530; font-family: "Sora", var(--font);
}
.nh-wx-row span:nth-child(1) { width: 42px; font-weight: 700; }
/* sub-header separating comfort forecast from weather in the speed popup */
.nh-pop-subhead {
  display: flex; align-items: center; gap: 6px; margin: 12px 0 4px;
  font-weight: 800; font-size: 13px; color: #1A1530;
  border-top: 1px solid rgba(26,21,48,0.1); padding-top: 10px;
}
/* comfort breakdown in the waves/wind popup */
.nh-brk { font-family: "Sora", var(--font); }
.nh-brk-empty { color: rgba(26,21,48,0.5); font-size: 13px; padding: 6px 0; }
.nh-brk-head { font-size: 15px; font-weight: 700; }
.nh-brk-head b { font-size: 22px; font-weight: 800; }
.nh-brk-sub { font-size: 11.5px; color: rgba(26,21,48,0.55); margin: 2px 0 8px; }
.nh-brk-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 2px;
  border-top: 1px solid rgba(26,21,48,0.07); color: #1A1530; font-size: 13px;
}
.nh-brk-ic { display: inline-flex; flex: 0 0 auto; color: #1A1530; }
.nh-brk-name { font-weight: 700; flex: 0 0 58px; }
.nh-brk-val { flex: 1; font-size: 12px; color: rgba(26,21,48,0.65); }
.nh-brk-pen { font-weight: 800; color: #e5484d; }
.nh-brk-ok { font-weight: 800; color: #2fb344; }
.nh-brk-note {
  margin-top: 8px; font-size: 11.5px; color: rgba(26,21,48,0.6);
  display: flex; align-items: center; gap: 5px;
}
.nh-modal-sub { margin: 0 0 8px; font-size: 12px; color: rgba(26,21,48,0.55); }
.nh-fuel-sec {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(26,21,48,0.5); margin: 6px 0 6px 2px;
}
/* switch (toggle) */
.ap-switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; cursor: pointer;
}
/* nav map-layers popup: airy rows with dividers so each toggle is easy to hit */
.nh-layers-list { display: flex; flex-direction: column; }
.nh-layers-list .ap-switch-row {
  padding: 14px 2px; font-size: 15px;
  border-top: 1px solid rgba(26,21,48,0.08);
}
.nh-layers-list .ap-switch-row:first-child { border-top: none; }
/* route type: day ⇄ multi with the switch in between */
.type-toggle { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.type-toggle .tt-on { color: var(--text); font-weight: 700; }
.ap-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; display: inline-block; }
.ap-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ap-knob {
  position: absolute; inset: 0; border-radius: 13px;
  background: rgba(127,127,140,0.4); transition: background .15s; pointer-events: none;
}
.ap-knob::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: left .15s;
}
.ap-switch input:checked + .ap-knob { background: #0000FF; }
.ap-switch input:checked + .ap-knob::after { left: 23px; }

/* SVG group rotations use the transform ATTRIBUTE with explicit rotate(a 0 0)
   — no CSS transform/origin rules here, browsers disagree on SVG origins */
@media (min-width: 761px) {
  .nh-sheet { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 30px 30px 0 0; }
  .nh-zoom-out { left: calc(50% - 240px + 16px); }
  .nh-zoom-in { right: calc(50% - 240px + 16px); }
  .nh-center-btn { right: calc(50% - 240px + 16px); }
}

/* ---------- print (trip timeline + map) ---------- */
.print-header { display: none; }
@media print {
  body.print-sim { background: #fff; }
  body.print-sim .sidebar, body.print-sim .toast, body.print-sim .no-print { display: none !important; }
  body.print-sim #view-outlook > *:not(.print-target) { display: none !important; }
  body.print-sim .main { padding: 0; max-width: 100%; }
  body.print-sim .print-header {
    display: block; font-weight: 700; font-size: 15px; margin: 0 0 10px;
    padding-bottom: 8px; border-bottom: 2px solid #333;
  }
  body.print-sim .print-target .card {
    box-shadow: none; border: 1px solid #bbb; break-inside: avoid; margin-bottom: 12px;
  }
  body.print-sim .hour-table { font-size: 11px; }
  body.print-sim .hour-table th, body.print-sim .hour-table td {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.print-sim .print-target .sim-map { height: 130mm; }
  body.print-sim .leaflet-control-container { display: none; }
}

/* ---------- responsive: bottom nav on mobile ---------- */
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; width: 100%;
    flex-direction: row; align-items: stretch;
    /* bottom reserve trimmed: home-indicator inset minus 12px (min 4px) instead of inset + 6px */
    padding: 6px 0 max(4px, calc(env(safe-area-inset-bottom, 0px) - 12px));
    border-right: none; border-top: 1px solid var(--border); z-index: 2000;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }
  .brand, .whoami, .sidebar-foot { display: none; }   /* theme toggle lives in Settings */
  /* nav spans the whole bar; side padding keeps the edge tabs clear of the
     phone's rounded corners / safe area */
  .nav {
    flex: 1; flex-direction: row; justify-content: space-between; gap: 0;
    padding: 0 max(18px, env(safe-area-inset-left, 0px) + 6px);
  }
  .nav-btn {
    flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10.5px;
    min-width: 0;
  }
  .main { padding: 18px 14px 92px; }
  #editor-map { height: 52vh; min-height: 320px; }
  /* route outlook header: title on its own full-width row, back left / edit right below */
  .page-head-route { row-gap: 10px; }
  .page-head-route h2 { flex: 1 1 100%; order: -1; font-size: 21px; }
  .page-head-route .btn:last-of-type { margin-left: auto; }
  /* route editor header: title row, then auto-route group, then delete/cancel/save group */
  .page-head-editor { row-gap: 10px; }
  .page-head-editor h2 { flex: 1 1 100%; }
  .page-head-editor .ed-actions { flex: 1 1 100%; }
}

/* ---------- PWA: update banner ---------- */
.sw-update {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); transform: translateX(-50%);
  z-index: 9000; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px);
  background: rgba(21, 17, 36, 0.96); color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); font-size: 14px; font-weight: 600;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sw-update .btn { padding: 7px 14px; }
@media (min-width: 761px) { .sw-update { bottom: 24px; } }

/* ---------- accounts: login providers, code input, devices ---------- */
.login-providers { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.login-providers:empty { display: none; }
.btn-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-provider:hover { background: var(--surface-2); }
.btn-provider.apple { background: #000; color: #fff; border-color: #000; }
.btn-provider svg { width: 18px; height: 18px; flex: 0 0 auto; }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 12px; margin: 12px 0 10px; text-transform: uppercase; letter-spacing: .1em; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-hint { color: var(--text-2); font-size: 13px; margin: 4px 0 10px; }
#login-code { text-align: center; font-size: 22px; letter-spacing: .35em; font-weight: 700; }
.acct-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.acct-row:first-child { border-top: none; }
.acct-row .acct-k { color: var(--text-2); width: 120px; flex: 0 0 auto; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.acct-row .acct-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acct-ok { color: var(--ok); font-weight: 700; }
.sess-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.sess-row small { display: block; color: var(--text-2); font-size: 12px; }
.sess-cur { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 2px 7px; }

.login-legal { margin: 16px 0 0; font-size: 12px; color: var(--text-2); }
.login-legal a { color: var(--text-2); }
