:root {
  --bg-0: #05080f;
  --bg-1: #0a1020;
  --bg-2: #121a2e;
  --glass: rgba(14, 22, 40, 0.72);
  --glass-soft: rgba(18, 28, 48, 0.5);
  --glass-border: rgba(148, 163, 184, 0.14);
  --text: #e8eef7;
  --muted: #8b9bb4;
  --aqua: #4db8ff;
  --aqua-soft: rgba(77, 184, 255, 0.14);
  --go: #3dd68c;
  --warn: #f0b429;
  --bad: #f07167;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --radius: 1.15rem;
  --radius-sm: 0.8rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-0);
}

.font-ui {
  font-family: 'Figtree', system-ui, sans-serif;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(77, 184, 255, 0.18), transparent 55%),
    radial-gradient(800px 500px at 92% 8%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(700px 420px at 50% 108%, rgba(14, 40, 80, 0.55), transparent 55%),
    linear-gradient(168deg, #0d1528 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}

.app-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.header-bar {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(16, 26, 48, 0.96), rgba(10, 16, 32, 0.9));
}

.header-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.header-brand {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.75rem;
}

.header-brand__text {
  min-width: 0;
}

.header-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.header-bar__actions .btn-style {
  margin-left: auto;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  color: var(--aqua);
  background: linear-gradient(160deg, rgba(77, 184, 255, 0.22), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(77, 184, 255, 0.28);
  overflow: hidden;
}

.logo-mark__svg {
  overflow: visible;
}

.logo-sweep {
  transform-origin: 16px 12.5px;
  animation: logo-sweep 3.2s linear infinite;
}

.logo-blip-orbit {
  transform-origin: 16px 12.5px;
  animation: logo-blip-orbit 7.5s steps(5) infinite;
}

.logo-blip {
  transform-origin: 16px 5.1px;
  animation: logo-blip-pulse 1.5s ease-in-out infinite;
}

.logo-wave--1 {
  animation: logo-wave-shift 2.2s ease-in-out infinite;
}

.logo-wave--2 {
  animation: logo-wave-shift 2.2s ease-in-out infinite 0.4s;
}

@keyframes logo-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logo-blip-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logo-blip-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.75); }
  35%, 55% { opacity: 1; transform: scale(1.25); }
}

@keyframes logo-wave-shift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.4px); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-sweep,
  .logo-blip-orbit,
  .logo-blip,
  .logo-wave--1,
  .logo-wave--2,
  .deep-link__icon--spin,
  .deep-link__icon--wave,
  .deep-link__icon--pulse {
    animation: none !important;
  }
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.btn-icon:hover {
  background: rgba(77, 184, 255, 0.1);
  border-color: rgba(77, 184, 255, 0.3);
}

.btn-icon:active {
  transform: scale(0.96);
}

.btn-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 2.6rem;
  height: 2.6rem;
  padding: 0 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.16);
  color: #bde8ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.btn-style:hover {
  background: rgba(77, 184, 255, 0.28);
  border-color: rgba(77, 184, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.12);
}

.btn-style:active,
.btn-style.is-pulse {
  transform: scale(0.94);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
  font-weight: 550;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  color: #e8eef7;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  border-color: rgba(77, 184, 255, 0.5);
  background: rgba(77, 184, 255, 0.12);
}

.chip:active {
  transform: scale(0.97);
  background: rgba(77, 184, 255, 0.18);
}

.chip.is-active {
  background: linear-gradient(135deg, rgba(77, 184, 255, 0.28), rgba(99, 102, 241, 0.14));
  border-color: rgba(77, 184, 255, 0.62);
  color: #bde8ff;
  box-shadow: 0 0 0 2px rgba(77, 184, 255, 0.12);
}

.status-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill--go {
  color: #7eecc0;
  background: rgba(61, 214, 140, 0.12);
  border-color: rgba(61, 214, 140, 0.28);
}

.status-pill--storm {
  color: #f5cc6a;
  background: rgba(240, 180, 41, 0.12);
  border-color: rgba(240, 180, 41, 0.3);
}

.status-pill--bad {
  color: #f5a39c;
  background: rgba(240, 113, 103, 0.12);
  border-color: rgba(240, 113, 103, 0.28);
}

.chip--add {
  border-style: dashed;
  color: var(--muted);
}

.chip__del {
  margin-left: 0.15rem;
  opacity: 0.55;
  font-size: 0.75rem;
  line-height: 1;
}

.chip__del:hover {
  opacity: 1;
  color: var(--bad);
}

.card-pad {
  padding: 1.15rem 1.25rem;
}

@media (min-width: 640px) {
  .card-pad {
    padding: 1.35rem 1.5rem;
  }
}

.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-label.mb-0 {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

#verdict-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 32, 64, 0.95), rgba(8, 14, 28, 0.9) 60%, rgba(20, 28, 56, 0.7)),
    var(--glass);
  border-color: rgba(77, 184, 255, 0.18);
}

#verdict-card::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -35%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(77, 184, 255, 0.18), transparent 65%);
  pointer-events: none;
  animation: glow-drift 8s ease-in-out infinite alternate;
}

#verdict-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to { transform: translate(-8%, 6%) scale(1.08); opacity: 1; }
}

.best-window {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 550;
  color: #9fd4ff;
  background: var(--aqua-soft);
  border: 1px solid rgba(77, 184, 255, 0.25);
}

.link-quiet {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--aqua);
  cursor: pointer;
  opacity: 0.9;
  font-weight: 550;
}

.link-quiet:hover {
  opacity: 1;
  text-decoration: underline;
}

.deep-links-copy {
  margin: 0;
  font-size: 0.78rem;
  color: #95a8bd;
}

.deep-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .deep-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.deep-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e1ee;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.deep-link:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
  transform: translateY(-1px);
}

.deep-link__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  will-change: transform;
}

.deep-link__icon--spin {
  animation: deep-spin 4.5s linear infinite;
}

.deep-link__icon--wave {
  animation: deep-wave 1.8s ease-in-out infinite;
}

.deep-link__icon--pulse {
  animation: deep-pulse 1.7s ease-in-out infinite;
}

.deep-link:hover .deep-link__icon--spin {
  animation-duration: 1.6s;
}

.deep-link:hover .deep-link__icon--wave {
  animation-duration: 0.9s;
}

.deep-link:hover .deep-link__icon--pulse {
  animation-duration: 0.85s;
}

@keyframes deep-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes deep-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes deep-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.deep-link__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.deep-link__title {
  font-size: 0.86rem;
  font-weight: 650;
  color: #eff6ff;
}

.deep-link__desc {
  font-size: 0.72rem;
  color: #95a8bd;
}

.verdict-why {
  max-width: 34rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(77, 184, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.verdict-why__summary {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d3deea;
}

.verdict-why__list {
  display: grid;
  gap: 0.45rem;
}

.verdict-why__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #c8d5e2;
}

.verdict-why__item::before {
  content: '•';
  color: #74eea3;
  line-height: 1.2;
}

.verdict-why__item.is-bad::before {
  color: #f07167;
}

.checklist-progress {
  padding: 0.32rem 0.62rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(77, 184, 255, 0.35);
  background: rgba(77, 184, 255, 0.12);
  color: #b4e3ff;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.checklist-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0.55rem;
}

.checklist-spot-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.72rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e1ee;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checklist-spot-btn:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
}

.checklist-spot-value {
  font-weight: 650;
  color: #bde8ff;
}

.checklist-spot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.checklist-spot-option {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #d4deea;
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checklist-spot-option:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
}

.checklist-spot-option.is-active {
  border-color: rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.16);
  color: #bde8ff;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.72rem;
  border-radius: 0.72rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}

.check-item:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
}

.check-item input {
  width: 1rem;
  height: 1rem;
  accent-color: #4db8ff;
  cursor: pointer;
}

.check-item span {
  font-size: 0.9rem;
  color: #d5dfeb;
}

.check-item.is-checked {
  border-color: rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.14);
}

.check-item.is-checked span {
  color: #bde8ff;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.wind-shore-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.56rem;
  border-radius: 0.56rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #c9d8e6;
  font-size: 0.78rem;
  font-weight: 560;
}

.wind-shore-note.is-onshore {
  border-color: rgba(240, 113, 103, 0.42);
  background: rgba(240, 113, 103, 0.14);
  color: #ffb4ac;
}

.wind-shore-note.is-offshore {
  border-color: rgba(116, 238, 163, 0.42);
  background: rgba(116, 238, 163, 0.13);
  color: #bff7d3;
}

.wind-shore-note.is-cross {
  border-color: rgba(255, 217, 108, 0.38);
  background: rgba(255, 217, 108, 0.14);
  color: #f6df96;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fd4ff;
  background: var(--aqua-soft);
  border: 1px solid rgba(77, 184, 255, 0.28);
}

.live-badge::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px rgba(77, 184, 255, 0.7);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.live-badge--red {
  color: #f5a39c;
  background: rgba(240, 113, 103, 0.14);
  border-color: rgba(240, 113, 103, 0.28);
}

.live-badge--red::before {
  background: var(--bad);
  box-shadow: 0 0 8px rgba(240, 113, 103, 0.7);
}

.webcam-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #03060c;
}

#webcam-video {
  object-fit: contain;
  background: #000;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.webcam-credit {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.webcam-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #03060c;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.metric-xl {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: clamp(2.6rem, 7vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-period {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: border-color 0.25s, background 0.25s;
}

.stat:hover {
  border-color: rgba(77, 184, 255, 0.25);
  background: rgba(77, 184, 255, 0.05);
}

.stat__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 550;
}

.stat__value {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.15rem;
}

.stat__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 550;
}

#uv-stat.is-uv-low .stat__hint { color: #8fd9a8; }
#uv-stat.is-uv-mod .stat__hint { color: #e6d07a; }
#uv-stat.is-uv-high .stat__hint { color: #f0a46a; }
#uv-stat.is-uv-vhigh .stat__hint,
#uv-stat.is-uv-extreme .stat__hint { color: #f5a39c; }

#uv-stat.is-uv-high,
#uv-stat.is-uv-vhigh,
#uv-stat.is-uv-extreme {
  border-color: rgba(240, 164, 106, 0.35);
}

.stat--weather .stat__value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.25rem;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
      'wind weather'
      'vis waves'
      'webcam webcam';
  }

  .wind-card { grid-area: wind; }
  .weather-card { grid-area: weather; }
  .visibility-card { grid-area: vis; }
  .waves-card { grid-area: waves; }
  .webcam-card { grid-area: webcam; }
}

@media (min-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1.15fr 0.9fr 0.95fr;
    grid-template-areas:
      'wind weather waves'
      'vis webcam waves';
  }
}

.travel-chips {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.travel-chip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #c9d6e8;
  border-radius: 0.65rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.travel-chip.is-active {
  border-color: rgba(77, 184, 255, 0.55);
  background: rgba(77, 184, 255, 0.18);
  color: #bde8ff;
}

.arrival-card__eta {
  font-size: 0.78rem;
  color: #8fa3bd;
}

.arrival-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.arrival-card__desc {
  font-size: 0.88rem;
  color: #9fb4d0;
  line-height: 1.4;
}

.arrival-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.82rem;
  color: #b7c7db;
}

.arrival-card__stats strong {
  color: #e8eef7;
  font-weight: 650;
}

.arrival-card__score {
  margin-left: auto;
  font-weight: 700;
  color: #bde8ff;
}

.arrival-card.is-go .arrival-card__score { color: #7eecc0; }
.arrival-card.is-ok .arrival-card__score { color: #bde8ff; }
.arrival-card.is-warn .arrival-card__score { color: #f0b429; }
.arrival-card.is-bad .arrival-card__score { color: #f5a39c; }

.visibility-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.visibility-badge {
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #c9d6e8;
}

.visibility-card.is-vis-good .visibility-badge {
  color: #7eecc0;
  border-color: rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.1);
}

.visibility-card.is-vis-ok .visibility-badge {
  color: #bde8ff;
  border-color: rgba(77, 184, 255, 0.35);
  background: rgba(77, 184, 255, 0.1);
}

.visibility-card.is-vis-warn .visibility-badge {
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.1);
}

.visibility-card.is-vis-bad .visibility-badge {
  color: #f5a39c;
  border-color: rgba(240, 113, 103, 0.4);
  background: rgba(240, 113, 103, 0.1);
}

.visibility-card__hint {
  font-size: 0.78rem;
  color: #8fa3bd;
  line-height: 1.35;
}

.stat--wetsuit.is-suit-thick .stat__hint { color: #8ecbff; }
.stat--wetsuit.is-suit-mid .stat__hint { color: #e6d07a; }
.stat--wetsuit.is-suit-thin .stat__hint { color: #7eecc0; }

.compass {
  width: 7.5rem;
  height: 7.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .compass {
    width: 8.5rem;
    height: 8.5rem;
  }
}

.compass__ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background:
    radial-gradient(circle at 40% 30%, rgba(77, 184, 255, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 28px rgba(77, 184, 255, 0.08);
}

.compass__ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from -1.5deg,
      rgba(148, 163, 184, 0.35) 0deg 3deg,
      transparent 3deg 45deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  pointer-events: none;
  opacity: 0.7;
}

.compass__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--aqua);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(77, 184, 255, 0.45);
  z-index: 2;
  animation: hub-pulse 2.8s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(77, 184, 255, 0.4); }
  50% { opacity: 0.75; box-shadow: 0 0 14px rgba(77, 184, 255, 0.7); }
}

.compass__n,
.compass__e,
.compass__s,
.compass__w {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  z-index: 1;
}

.compass__n { top: 0.45rem; left: 50%; transform: translateX(-50%); color: var(--aqua); }
.compass__s { bottom: 0.45rem; left: 50%; transform: translateX(-50%); }
.compass__e { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.compass__w { left: 0.5rem; top: 50%; transform: translateY(-50%); }

.compass__arrow {
  position: absolute;
  inset: 16%;
  color: var(--aqua);
  transform-origin: center center;
  transform: rotate(0deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(77, 184, 255, 0.4));
  z-index: 1;
  will-change: transform;
}

.compass__arrow-inner {
  width: 100%;
  height: 100%;
  transform-origin: center 72%;
  animation: compass-idle 3.6s ease-in-out infinite;
}

.compass__arrow.is-settling {
  filter: drop-shadow(0 0 12px rgba(77, 184, 255, 0.65));
}

.compass__arrow.is-settling .compass__arrow-inner {
  animation: compass-settle 0.9s ease-out;
}

@keyframes compass-idle {
  0%, 100% { transform: rotate(-2.2deg) translateY(0); }
  50% { transform: rotate(2.2deg) translateY(-1px); }
}

@keyframes compass-settle {
  0% { transform: rotate(-4deg) scale(1.04); }
  60% { transform: rotate(2deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}

.wave-viz {
  position: relative;
  height: 2.5rem;
  overflow: hidden;
  border-radius: 0.7rem;
  background: rgba(77, 184, 255, 0.06);
}

.wave-viz__line {
  position: absolute;
  inset: auto -20% 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 24 Q15 8 30 24 T60 24 T90 24 T120 24 V40 H0Z' fill='%234db8ff' fill-opacity='0.28'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 100%;
  animation: wave-move 4s linear infinite;
}

.wave-viz__line--2 {
  opacity: 0.55;
  animation-duration: 6s;
  animation-direction: reverse;
  bottom: -0.35rem;
}

@keyframes wave-move {
  from { transform: translateX(0); }
  to { transform: translateX(-120px); }
}

.webcam-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.webcam-frame iframe {
  border: 0;
  background: #000;
}

.hourly-section {
  overflow: hidden;
  min-width: 0;
}

.hourly-rail {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0.15rem 0.55rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 184, 255, 0.35) transparent;
}

.hourly-rail::-webkit-scrollbar {
  height: 4px;
}

.hourly-rail::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-rail::-webkit-scrollbar-thumb {
  background: rgba(77, 184, 255, 0.35);
  border-radius: 999px;
}

.hourly-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 184, 255, 0.55);
}

.hourly-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hour-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 5.1rem;
  min-width: 5.1rem;
  padding: 0.7rem 0.45rem 0.65rem;
  border-radius: 0.8rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.hour-card:hover {
  transform: translateY(-2px);
}

.hour-card.is-now {
  border-color: rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.12);
}

.hour-card__temp,
.hour-card__wind,
.hour-card__wave,
.hour-card__score {
  font-variant-numeric: tabular-nums;
}

.hour-card__time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.hour-card__temp {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
}

.hour-card__wind,
.hour-card__wave {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.2;
}

.hour-card__wind {
  color: var(--aqua);
}

.hour-card__wave {
  color: #9fb4d0;
}

.hour-card__wind span,
.hour-card__wave span {
  font-size: 0.58rem;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 0.1rem;
}

.verdict-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.verdict-ring {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  border: 2px solid rgba(77, 184, 255, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), transparent 55%),
    rgba(77, 184, 255, 0.08);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.verdict-ring:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(77, 184, 255, 0.12);
}

.verdict-ring:active {
  transform: scale(0.97);
}

.verdict-why-badge {
  position: absolute;
  right: -0.15rem;
  top: -0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, #4db8ff, #9fd4ff);
  border: 2px solid #05080f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.verdict-why-caption {
  font-size: 0.72rem;
  font-weight: 650;
  color: #9fd4ff;
  letter-spacing: 0.01em;
}

.verdict-ring.is-go {
  border-color: rgba(61, 214, 140, 0.55);
  color: #7eecc0;
}

.verdict-ring.is-ok {
  border-color: rgba(77, 184, 255, 0.55);
  color: #9fd4ff;
}

.verdict-ring.is-warn {
  border-color: rgba(240, 180, 41, 0.55);
  color: #f5cc6a;
}

.verdict-ring.is-bad {
  border-color: rgba(240, 113, 103, 0.55);
  color: #f5a39c;
}

.check-item.is-pop {
  animation: check-pop 0.28s ease;
}

@keyframes check-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
  .modal {
    place-items: center;
  }
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.65);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.35rem;
  animation: modal-up 0.28s ease;
}

@keyframes modal-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.field:focus {
  border-color: rgba(77, 184, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.15);
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #1d8fd9, #4db8ff);
  color: #041018;
  border: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.32);
  color: #e8eef7;
}

.btn-secondary:hover {
  background: rgba(77, 184, 255, 0.14);
  border-color: rgba(77, 184, 255, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.98);
}

.error-banner {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: min(calc(100% - 2rem), 28rem);
  animation: modal-up 0.3s ease;
}

.error-banner.hidden {
  display: none;
}

.error-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-color: rgba(240, 113, 103, 0.35);
}

.error-banner__icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 15, 0.28);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.loading-overlay.hidden {
  display: none;
}

.checklist-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 75;
  padding: 0.66rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(77, 184, 255, 0.38);
  background: rgba(8, 15, 27, 0.9);
  color: #cbeeff;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.checklist-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--aqua);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#btn-refresh.is-loading #refresh-icon {
  animation: spin 0.8s linear infinite;
}

.animate-in {
  animation: fade-up 0.55s ease both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.hidden {
  display: none !important;
}

.days-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.day-card {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, transform 0.2s;
}

.day-card:hover {
  border-color: rgba(77, 184, 255, 0.28);
  transform: translateY(-1px);
}

.day-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.day-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 650;
}

.day-card__date {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.day-card__score {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(77, 184, 255, 0.35);
}

.day-card.is-go .day-card__score { border-color: rgba(61, 214, 140, 0.5); color: #7eecc0; }
.day-card.is-warn .day-card__score { border-color: rgba(240, 180, 41, 0.5); color: #f5cc6a; }
.day-card.is-bad .day-card__score { border-color: rgba(240, 113, 103, 0.5); color: #f5a39c; }

.day-card__title {
  margin: 0.75rem 0 0.35rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.day-card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.compare-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compare-card {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.compare-card:hover {
  border-color: rgba(77, 184, 255, 0.4);
  transform: translateY(-1px);
}

.compare-card.is-winner {
  border-color: rgba(77, 184, 255, 0.5);
  background: rgba(77, 184, 255, 0.08);
}

.compare-card__score {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.compare-card.is-go .compare-card__score { color: #7eecc0; }
.compare-card.is-warn .compare-card__score { color: #f5cc6a; }
.compare-card.is-bad .compare-card__score { color: #f5a39c; }

.hour-card.is-best {
  border-color: rgba(61, 214, 140, 0.55);
  background: rgba(61, 214, 140, 0.12);
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.12);
}

.hour-card__score {
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.hour-card.is-best .hour-card__score {
  color: #7eecc0;
}

.tide-bar {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: visible;
}

.tide-bar__fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 184, 255, 0.35), rgba(77, 184, 255, 0.9));
  transition: width 0.5s ease;
}

.tide-bar__marker {
  position: absolute;
  top: 50%;
  left: 40%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #9fd4ff;
  border: 2px solid rgba(5, 8, 15, 0.8);
  transform: translate(-50%, -50%);
  transition: left 0.5s ease;
  box-shadow: 0 0 10px rgba(77, 184, 255, 0.5);
}

.modal__panel--wide {
  width: min(100%, 28rem);
}

.range {
  width: 100%;
  accent-color: #4db8ff;
  cursor: pointer;
}

#best-window {
  letter-spacing: 0.01em;
}

.text-aqua-300 {
  color: #9fd4ff !important;
}

/* Auth */
.auth-slot {
  display: flex;
  align-items: center;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(77, 184, 255, 0.3);
  background: rgba(77, 184, 255, 0.1);
  color: #9fd4ff;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-auth:hover {
  background: rgba(77, 184, 255, 0.18);
  border-color: rgba(77, 184, 255, 0.45);
}

.btn-auth:active {
  transform: scale(0.97);
}

.btn-auth--user {
  padding-left: 0.35rem;
  max-width: 9.5rem;
}

.auth-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 5.5rem;
}

.auth-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-avatar--fallback {
  display: grid;
  place-items: center;
  background: rgba(77, 184, 255, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  color: #cfe9ff;
}

.auth-menu-wrap {
  position: relative;
}

.auth-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 12.5rem;
  padding: 0.65rem;
  z-index: 50;
  animation: modal-up 0.2s ease;
}

.auth-dropdown__email {
  margin: 0 0 0.5rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
}

.auth-dropdown__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
}

.auth-dropdown__item:hover {
  background: rgba(77, 184, 255, 0.1);
}

.auth-dropdown__item--danger {
  color: #f5a39c;
}

.auth-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.82rem;
  color: #f5a39c;
  background: rgba(240, 113, 103, 0.12);
  border: 1px solid rgba(240, 113, 103, 0.28);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.sync-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.85rem;
  animation: fade-up 0.35s ease;
}

.sync-hint__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.15rem 0.35rem;
}

/* Fixed system banners — no layout shift */
.sys-banner {
  position: fixed;
  left: 50%;
  z-index: 78;
  width: min(calc(100% - 1.5rem), 26rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.sys-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sys-banner[hidden] {
  display: none !important;
}

.sys-banner--offline {
  top: max(0.75rem, env(safe-area-inset-top));
  transform: translate(-50%, -120%);
  color: #ffe7b0;
  background: linear-gradient(135deg, rgba(90, 58, 12, 0.94), rgba(42, 28, 8, 0.92));
  border-color: rgba(240, 180, 41, 0.45);
}

.sys-banner--offline.is-visible {
  transform: translate(-50%, 0);
}

.sys-banner--pwa {
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 120%);
  color: #d9efff;
  background: linear-gradient(135deg, rgba(14, 48, 78, 0.96), rgba(8, 22, 40, 0.94));
  border-color: rgba(77, 184, 255, 0.42);
}

.sys-banner--pwa.is-visible {
  transform: translate(-50%, 0);
}

.sys-banner__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f0b429;
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.8);
  animation: live-pulse 1.5s ease-in-out infinite;
}

.sys-banner__mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(77, 184, 255, 0.16);
  border: 1px solid rgba(77, 184, 255, 0.28);
  font-size: 1rem;
}

.sys-banner__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.sys-banner__text strong {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sys-banner__text span {
  font-size: 0.74rem;
  line-height: 1.3;
  opacity: 0.82;
}

.sys-banner__action {
  flex-shrink: 0;
  border: none;
  border-radius: 0.7rem;
  padding: 0.48rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: #041018;
  background: linear-gradient(135deg, #1d8fd9, #4db8ff);
  font-family: inherit;
}

.sys-banner__action:active {
  transform: scale(0.97);
}

.sys-banner__close {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: #9fb4d0;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}

.sys-banner__close:hover {
  color: #e8eef7;
  background: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .sys-banner {
    transition: opacity 0.2s ease;
  }
}

@media (max-width: 420px) {
  .btn-auth span:not(.auth-avatar) {
    display: none;
  }

  .btn-auth--user .auth-name {
    display: none;
  }

  .btn-auth--user {
    padding: 0 0.35rem;
    width: 2.4rem;
    justify-content: center;
  }
}

