:root {
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(56, 189, 248, 0.32);
  --panel: rgba(8, 19, 35, 0.88);
  --panel-soft: rgba(15, 23, 42, 0.74);
  --text-main: #e5edf7;
  --text-muted: #94a3b8;
  --accent: #facc15;
  --accent-cool: #38bdf8;
}

/* ── Beta Banner ── */
.beta-banner {
  background: rgba(14, 165, 233, 0.08);
  border-bottom: 1px solid rgba(14, 165, 233, 0.18);
  padding: max(0.5rem, calc(env(safe-area-inset-top) + 0.5rem)) 1rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.beta-banner strong {
  color: var(--text-main);
}

.beta-banner a {
  color: var(--accent-cool);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Feed ── */
.feed-auth-shell,
.feed-empty-state {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.75rem;
  padding: 1rem;
  color: var(--text-muted, #94a3b8);
  text-align: center;
}

.feed-auth-copy {
  margin-bottom: 0.75rem;
}

.feed-composer {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.feed-composer-wrap,
.feed-reply-composer-wrap {
  position: relative;
}

.feed-reply-composer-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.feed-composer textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 3.4rem;
  outline: none;
}

.feed-composer-actions,
.feed-composer-left,
.feed-post-header-right,
.feed-reaction-row,
.feed-reply-meta,
.feed-reply-composer,
.feed-load-more-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feed-composer-actions {
  justify-content: space-between;
  margin-top: 0.65rem;
}

.feed-char-count {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

.feed-location-toggle,
.feed-load-more-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.55rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
}

.feed-location-toggle.active {
  border-color: rgba(74, 222, 128, 0.5);
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.feed-mention-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.375rem;
  color: var(--text-muted, #94a3b8);
  padding: 0.2rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.feed-mention-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
}

.feed-post-btn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 0.55rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.feed-post-btn:hover,
.feed-load-more-btn:hover {
  background: #0284c7;
}

.feed-post-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feed-post-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.feed-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.feed-post-author {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.feed-post-boat,
.feed-post-time {
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
}

.feed-post-time {
  white-space: nowrap;
}

.feed-tags-row {
  margin-bottom: 0.4rem;
}

.feed-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.feed-post-body,
.feed-reply-body {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-line;
}

.feed-post-body {
  margin-bottom: 0.45rem;
}

.feed-mention-highlight {
  color: #7dd3fc;
  font-weight: 600;
}

.feed-conditions-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.feed-conditions-strip span,
.feed-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.feed-location-badge {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #93c5fd;
}

.feed-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  flex-wrap: wrap;
}

.feed-reaction-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 9999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  transition: background 0.15s, border-color 0.15s;
}

.feed-reaction-btn:hover {
  background: rgba(148, 163, 184, 0.1);
}

.feed-reaction-btn.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.feed-conditions-toggle {
  background: none;
  border: none;
  padding: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
}

.feed-conditions-toggle:hover {
  color: #7dd3fc;
}

.feed-reaction-trigger {
  background: none;
  border: none;
  padding: 0.2rem 0;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
}

.feed-reaction-trigger:hover {
  color: #7dd3fc;
}

.feed-reaction-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.feed-reaction-picker-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 9999px;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
}

.feed-reaction-picker-btn:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.95);
}

.feed-reply-btn {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0;
}

.feed-reply-btn:hover {
  color: #7dd3fc;
}

.feed-reply-thread {
  margin-top: 0.65rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(148, 163, 184, 0.1);
}

.feed-reply-item {
  padding: 0.5rem 0;
  font-size: 0.8125rem;
}

.feed-reply-item + .feed-reply-item {
  border-top: 1px solid rgba(148, 163, 184, 0.05);
}

.feed-reply-meta {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
}

.feed-reply-author {
  color: #e2e8f0;
  font-weight: 600;
}

.feed-reply-time,
.feed-reply-empty {
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
}

.feed-reply-composer {
  margin-top: 0.6rem;
}

.feed-mention-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.feed-mention-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
}

.feed-mention-item:hover,
.feed-mention-item.active {
  background: rgba(56, 189, 248, 0.1);
}

.feed-mention-name {
  color: var(--text-main, #e2e8f0);
  font-weight: 600;
}

.feed-mention-boat {
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
}

.feed-reply-input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.5rem;
  color: #e2e8f0;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  outline: none;
}

.feed-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.7;
}

.feed-delete-btn:hover {
  opacity: 1;
}

.feed-load-more-wrap {
  justify-content: center;
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .feed-post-header,
  .feed-actions-row,
  .feed-composer-actions,
  .feed-reply-composer {
    flex-direction: column;
    align-items: stretch;
  }

  .feed-post-header-right,
  .feed-composer-left,
  .feed-reaction-row,
  .feed-reply-meta {
    flex-wrap: wrap;
  }
}

/* ── Feed Floating Bubble ── */
.feed-bubble-btn {
  position: fixed;
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  right: max(1rem, calc(env(safe-area-inset-right) + 0.75rem));
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0ea5e9;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, background 0.15s;
}
.feed-bubble-btn:hover {
  background: #0284c7;
  transform: scale(1.05);
}
.feed-bubble-btn:active {
  transform: scale(0.95);
}
.feed-bubble-icon {
  width: 26px;
  height: 26px;
}
.feed-bubble-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* ── Feed Panel (desktop) ── */
.feed-panel {
  --feed-member-sidebar-width: 286px;
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 1600;
  width: 400px;
  max-height: calc(100vh - 7rem);
  background: var(--panel-bg, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.feed-panel.hidden {
  display: none;
}
.feed-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  flex-shrink: 0;
}
.feed-panel-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary, #e2e8f0);
}
.feed-panel-close {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.feed-panel-close:hover {
  color: #fff;
}
.feed-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.feed-panel .feed-composer textarea {
  min-height: 2.5rem;
  max-height: 6rem;
}

.feed-group-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.feed-group-select-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
.feed-group-select {
  width: 100%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  color: var(--text-main);
  font-size: 0.8125rem;
  padding: 0.4rem 1.6rem 0.4rem 0.6rem;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.feed-group-select-chevron {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.6);
  pointer-events: none;
}

.feed-group-select:focus {
  border-color: rgba(56, 189, 248, 0.5);
}

.feed-group-select optgroup {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
}

.feed-group-select option {
  color: var(--text-main);
  background: #1e293b;
}

/* My Alerts button in feed header */
.feed-alerts-btn {
  position: relative;
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  color: rgba(148, 163, 184, 0.7);
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.feed-alerts-btn:hover {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.4);
}
.feed-alerts-btn.active {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.08);
}
.feed-alerts-title {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  color: #facc15;
  letter-spacing: 0.04em;
  padding: 0 0.25rem;
  white-space: nowrap;
}
.feed-alerts-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.feed-group-manage-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.feed-group-manage-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
}

.feed-group-manager {
  padding: 0;
}

.feed-group-manager-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.feed-group-manager-back {
  background: none;
  border: none;
  color: #7dd3fc;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
}

.feed-group-manager-back:hover {
  text-decoration: underline;
}

.feed-group-create-form {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.feed-group-create-form input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.375rem;
  color: var(--text-main);
  font-size: 0.8125rem;
  padding: 0.4rem 0.6rem;
  outline: none;
  margin-bottom: 0.5rem;
}

.feed-group-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.feed-group-list-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.feed-group-list-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.feed-group-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  margin-left: 0.25rem;
}

.feed-group-type-badge.harbor {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.feed-group-type-badge.custom {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.feed-group-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.feed-group-join-btn,
.feed-group-leave-btn,
.feed-group-delete-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

.feed-group-join-btn {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.feed-group-join-btn:hover {
  background: rgba(74, 222, 128, 0.1);
}

.feed-group-leave-btn,
.feed-group-delete-btn {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.feed-group-pending-btn {
  opacity: 0.75;
  cursor: not-allowed;
}

.feed-group-leave-btn:hover,
.feed-group-delete-btn:hover {
  background: rgba(248, 113, 113, 0.1);
}

.feed-join-prompt {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.feed-join-prompt-btn {
  margin-top: 0.5rem;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── Feed Panel (mobile full-screen) ── */
@media (max-width: 768px) {
  .feed-panel {
    bottom: auto;
    right: auto;
    left: var(--feed-visual-left, 0px);
    top: var(--feed-visual-top, 0px);
    width: var(--feed-visual-width, 100vw);
    height: var(--feed-visual-height, 100dvh);
    max-height: var(--feed-visual-height, 100dvh);
    border-radius: 0;
    border: none;
  }
  .feed-bubble-btn {
    bottom: max(0.9rem, calc(env(safe-area-inset-bottom) + 0.65rem));
    right: max(0.9rem, calc(env(safe-area-inset-right) + 0.65rem));
  }
}

/* ── Harbor Selector ── */
.harbor-selector-wrap {
  margin-top: 4px;
}

.harbor-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 24px 4px 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: border-color 0.15s, background-color 0.15s;
}

.harbor-select:hover {
  border-color: rgba(255,255,255,0.3);
  background-color: rgba(255,255,255,0.12);
}

.harbor-select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14,165,233,0.25);
}

.harbor-select option {
  background: #1e293b;
  color: #e2e8f0;
}

/* Light mode */
:root:not(.dark) .harbor-select {
  background-color: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: #475569;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

:root:not(.dark) .harbor-select option {
  background: #fff;
  color: #1e293b;
}

.fade-in { animation: fadeIn 0.2s ease-in; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.parse-glow { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }

body {
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

.app-shell {
  background:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 32%),
    linear-gradient(180deg, #020617 0%, #06101d 38%, #020617 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  background-attachment: fixed;
}

.app-frame {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 70px rgba(0, 0, 0, 0.45);
}

.top-bar {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  padding-top: env(safe-area-inset-top);
}

.top-bar-inner {
  gap: 0.75rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.section-nav {
  background: rgba(2, 6, 23, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(12px);
}

.section-nav-row {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.55rem 0;
}

.section-nav {
  display: none;
}

.section-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.74);
  padding: 0.5rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-tab-active {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(8, 47, 73, 0.76);
  color: #e0f2fe;
}

.eyebrow {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-title {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f8fafc;
}

.nav-button,
.theme-button,
.action-button {
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-button:hover,
.theme-button:hover,
.action-button:hover {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
}

.nav-button-active {
  border-color: rgba(250, 204, 21, 0.5);
  color: #fef08a;
  background: rgba(47, 40, 6, 0.5);
}

.theme-button {
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.push-icon {
  font-size: 0.68rem;
  line-height: 1;
  filter: grayscale(0.1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.push-icon-active {
  filter: none;
  color: #fef08a;
}

.push-toggle-button {
  min-width: 8.5rem;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

/* ── Notification Bell + Badge ── */
.notification-bell-btn {
  position: relative;
  min-width: auto;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  width: 2rem;
  height: 2rem;
}
.notification-bell-svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.notification-bell-btn:hover .notification-bell-svg {
  opacity: 1;
}
.notification-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.3rem;
  background: #ef4444;
  color: #fef2f2;
  border: 2px solid var(--bg-primary, #0f172a);
  border-radius: 999px;
  min-width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.notification-badge.hidden { display: none; }

/* ── Notification Center Modal ── */
.notification-center-content {
  max-width: 30rem;
  width: 92vw;
}
.notification-center-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.notification-center-body {
  overflow-y: auto;
  max-height: min(65vh, 36rem);
  padding: 0;
}
.nc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(148, 163, 184, 0.55);
  gap: 0.75rem;
}
.nc-empty-icon { font-size: 2.2rem; opacity: 0.4; }
.nc-empty-text { font-size: 0.85rem; line-height: 1.4; }
.nc-group { padding-bottom: 0.5rem; }
.nc-group:last-child { padding-bottom: 0; }
.nc-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 0.85rem 0.35rem;
}
.nc-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  margin: 0 0.5rem 0.35rem;
  border-radius: 0.5rem;
  border-left: 3.5px solid;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition: background 0.15s ease;
}
.nc-item:hover { background: rgba(30, 41, 59, 0.7); }
.nc-item.nc-unread { background: rgba(30, 41, 59, 0.95); }
.nc-item-weather   { border-left-color: rgba(239, 68, 68, 0.75); }
.nc-item-float     { border-left-color: rgba(250, 204, 21, 0.75); }
.nc-item-push      { border-left-color: rgba(168, 85, 247, 0.65); }
.nc-item-weather .nc-type { color: #fca5a5; }
.nc-item-float  .nc-type  { color: #fde68a; }
.nc-item-push   .nc-type  { color: #d8b4fe; }
.nc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}
.nc-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}
.nc-icon { font-size: 1rem; flex-shrink: 0; }
.nc-type {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nc-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nc-body {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.35;
  padding-left: 1.55rem;
}
.nc-time {
  font-size: 0.65rem;
  color: rgba(148, 163, 184, 0.45);
  flex-shrink: 0;
  white-space: nowrap;
}
.nc-action {
  padding-left: 1.55rem;
  margin-top: 0.3rem;
}
.nc-action button {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nc-action button:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(59, 130, 246, 0.18);
}
.nc-push-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  margin: 0 0.5rem 0.35rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border-left: 3.5px solid rgba(168, 85, 247, 0.65);
}
.nc-push-label { font-size: 0.78rem; color: #e2e8f0; }
.nc-push-sub { font-size: 0.68rem; color: rgba(148, 163, 184, 0.55); margin-top: 0.15rem; }
@media (max-width: 640px) {
  .notification-center-content { width: 96vw; }
  .notification-center-body { max-height: 75vh; }
  .nc-item { padding: 0.6rem 0.7rem; margin: 0 0.35rem 0.3rem; }
  .nc-title { font-size: 0.78rem; }
  .nc-body { font-size: 0.73rem; }
}

/* ── Feed Alerts Panel (My Alerts inside feed chat) ── */
.feed-alerts-panel {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.feed-alerts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: rgba(148, 163, 184, 0.55);
}
.feed-alerts-empty-icon { font-size: 2.2rem; opacity: 0.4; }
.feed-alerts-empty-text { font-size: 0.85rem; line-height: 1.4; }

.top-nav {
  gap: 0.35rem;
  align-items: center;
}

.quick-catch-launcher-shell {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.25rem 0 0;
}

.quick-catch-launcher-btn {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(250, 204, 21, 0.42);
  background:
    linear-gradient(180deg, rgba(46, 56, 84, 0.38), rgba(15, 23, 42, 0.76)),
    rgba(15, 23, 42, 0.88);
  color: #fef08a;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.quick-catch-launcher-btn:hover {
  border-color: rgba(250, 204, 21, 0.7);
  background:
    linear-gradient(180deg, rgba(70, 57, 12, 0.34), rgba(34, 27, 6, 0.82)),
    rgba(15, 23, 42, 0.92);
  color: #fde68a;
}

.dashboard-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.32);
}

.dashboard-kpi-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.dashboard-kpi-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.dashboard-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.86);
  white-space: nowrap;
}

.dashboard-kpi-good {
  color: #4ade80;
}

.dashboard-kpi-warn {
  color: #facc15;
}

.dashboard-kpi-sep {
  color: rgba(148, 163, 184, 0.45);
  font-size: 0.85rem;
  line-height: 1;
}

.season-intel-shell {
  display: grid;
  gap: 1rem;
}

.season-intel-toolbar {
  display: grid;
  gap: 0.85rem;
}

.season-intel-toolbar-head {
  display: grid;
  gap: 0.85rem;
}

.season-mode-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
}

.season-mode-pill {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.season-mode-pill:hover {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.season-mode-pill-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.14));
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.24);
}

.trip-entry-mode-toggle {
  width: 100%;
  justify-content: stretch;
}

.trip-entry-mode-toggle .season-mode-pill {
  flex: 1 1 0;
  text-align: center;
}

.catch-map-panel {
  display: grid;
  gap: 1rem;
}

.catch-map-filter-group {
  display: grid;
  gap: 0.45rem;
}

.catch-map-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.catch-map-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catch-map-filter-pill {
  min-height: 2.25rem;
}

.catch-map-summary,
.catch-map-note,
.catch-map-empty {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.82);
}

.catch-map-note {
  color: rgba(248, 250, 252, 0.68);
}

.catch-map-empty {
  color: rgba(148, 163, 184, 0.9);
}

.catch-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.7);
}

.catch-map-visibility-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 540;
  min-height: 2rem;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.86);
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.catch-map-visibility-toggle-active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(12, 74, 110, 0.88);
  color: #e0f2fe;
}

.catch-map-filter-controls,
.catch-map-layer-controls,
.catch-map-shell .leaflet-control-container {
  transition: opacity 140ms ease;
}

.catch-map-shell.catch-map-ui-hidden .catch-map-filter-controls,
.catch-map-shell.catch-map-ui-hidden .catch-map-layer-controls,
.catch-map-shell.catch-map-ui-hidden .leaflet-control-container {
  opacity: 0;
  pointer-events: none;
}

.catch-map-canvas {
  width: 100%;
  height: 400px;
}

.catch-map-filter-controls {
  position: absolute;
  top: 0.75rem;
  left: 3.45rem;
  z-index: 500;
}

.catch-map-filter-menu {
  min-width: 15rem;
}

.catch-map-filter-summary {
  list-style: none;
  min-height: 2rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.catch-map-filter-summary::-webkit-details-marker {
  display: none;
}

.catch-map-filter-menu-body {
  margin-top: 0.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42);
  display: grid;
  gap: 0.8rem;
  max-width: min(19rem, calc(100vw - 4rem));
}

.catch-map-filter-select-wrap {
  display: grid;
  gap: 0.35rem;
}

.catch-map-filter-select {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 0.82rem;
}

.catch-map-layer-controls {
  position: absolute;
  top: 3.35rem;
  right: 0.75rem;
  z-index: 500;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
}

.catch-map-layer-toggle {
  min-height: 2rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.catch-map-layer-toggle-active {
  border-color: rgba(250, 204, 21, 0.72);
  background: rgba(71, 56, 8, 0.86);
  color: #fef08a;
}

.catch-map-layer-toggle:disabled {
  opacity: 0.45;
}

@media (max-width: 640px) {
  .catch-map-visibility-toggle {
    top: 0.6rem;
    right: 0.6rem;
    min-height: 1.9rem;
    padding: 0.42rem 0.78rem;
    font-size: 0.62rem;
  }

  .catch-map-filter-controls {
    top: 0.6rem;
    left: 3.25rem;
  }

  .catch-map-layer-controls {
    top: 3rem;
    right: 0.6rem;
  }

  .catch-map-filter-summary {
    max-width: calc(100vw - 9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catch-map-filter-menu-body {
    max-width: calc(100vw - 3rem);
  }

  .catch-map-filter-pill {
    min-height: 2rem;
  }
}

.catch-map-marker-shell,
.catch-map-harbor-shell,
.catch-map-cluster-shell {
  background: transparent;
  border: 0;
}

.catch-map-pin {
  display: block;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.65), 0 8px 18px rgba(2, 6, 23, 0.3);
}

.catch-map-pin-mine {
  border: 2px solid rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.catch-map-pin-fleet {
  border: 0;
  opacity: 0.5;
}

.catch-map-harbor-diamond {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(100, 116, 139, 0.78);
  transform: rotate(45deg);
}

.catch-map-harbor-label {
  border: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: rgba(226, 232, 240, 0.84);
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catch-map-popup-shell .leaflet-popup-content-wrapper,
.catch-map-popup-shell .leaflet-popup-tip {
  background: rgba(2, 6, 23, 0.96);
  color: #e5edf7;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.catch-map-popup-shell .leaflet-popup-content {
  margin: 0;
}

.catch-map-popup-card {
  min-width: 220px;
  padding: 0.9rem;
}

.catch-map-popup-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.catch-map-popup-species {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.catch-map-popup-sub {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.88);
}

.catch-map-popup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catch-map-popup-badge-mine {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.catch-map-popup-badge-fleet {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.catch-map-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  font-size: 0.78rem;
}

.catch-map-popup-grid div {
  display: grid;
  gap: 0.12rem;
}

.catch-map-popup-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.catch-map-popup-footer {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.82);
}

.catch-map-tiles {
  /* NOAA nautical charts — no dark-mode filter needed */
}

.catch-map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.34);
}

.catch-map-cluster-mine {
  background: rgba(245, 158, 11, 0.84);
}

.catch-map-cluster-fleet {
  background: rgba(56, 189, 248, 0.56);
}

.leaflet-container {
  background: rgba(2, 6, 23, 0.85);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

.leaflet-control-zoom a {
  background: rgba(2, 6, 23, 0.9);
  color: #e5edf7;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.leaflet-control-attribution {
  background: rgba(2, 6, 23, 0.78);
  color: rgba(148, 163, 184, 0.82);
}

.leaflet-control-attribution a {
  color: #7dd3fc;
}

.leaflet-control-layers {
  background: rgba(2, 6, 23, 0.92);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.8rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.leaflet-control-layers-toggle {
  border-radius: 0.8rem;
}

.leaflet-control-layers-expanded {
  padding: 0.65rem 0.75rem;
}

.leaflet-control-layers label {
  color: rgba(226, 232, 240, 0.88);
}

.catch-map-sst-legend {
  min-width: 9.75rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.92);
  color: #e2e8f0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.catch-map-sst-legend-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
}

.catch-map-sst-legend-gradient {
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #22c55e 50%, #ef4444 100%);
}

.catch-map-sst-legend-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.76);
}

.catch-map-sst-legend-date,
.catch-map-sst-legend-note {
  margin-top: 0.38rem;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.86);
}

.catch-map-track-control {
  margin-bottom: 0.65rem;
  margin-right: 0.15rem;
}

.catch-map-track-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.92);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

@media (max-width: 640px) {
  .catch-map-track-control {
    margin-bottom: 0.8rem;
    margin-right: 0.05rem;
  }
}

.catch-map-track-button-recording {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fee2e2;
}

.catch-map-track-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.catch-map-gps-shell {
  background: transparent;
  border: 0;
}

.gps-pulse {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.9);
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  animation: gps-ping 2s ease-out infinite;
}

@keyframes gps-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(59, 130, 246, 0);
  }
}

.float-plans-banner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.5rem 0.75rem 0;
}

.float-plans-banner-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  background: rgba(30, 58, 138, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 6px;
}

.float-plans-banner-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
  white-space: nowrap;
  flex-shrink: 0;
}

.float-plans-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.float-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  color: inherit;
}

.float-plan-chip:hover {
  background: rgba(148, 163, 184, 0.18);
}

.float-plan-chip-overdue {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.float-plan-chip-overdue:hover {
  background: rgba(239, 68, 68, 0.16);
}

.float-plan-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.float-plan-chip-dot-overdue {
  background: #f87171;
}

.float-plan-chip-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.float-plan-chip-badge-overdue {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fca5a5;
  white-space: nowrap;
}

.float-plans-grid {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .float-plans-banner-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .float-plans-chips {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .float-plan-chip {
    width: 100%;
    justify-content: flex-start;
  }
}

.float-plan-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border-left: 4px solid rgba(148, 163, 184, 0.45);
}

.float-plan-card-active {
  border-left-color: rgba(74, 222, 128, 0.92);
}

.float-plan-card-overdue {
  border-left-color: rgba(248, 113, 113, 0.96);
}

.float-plan-card-returned {
  border-left-color: rgba(148, 163, 184, 0.92);
}

.float-plan-card-top,
.float-plan-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.float-plan-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.float-plan-sub,
.float-plan-time {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.82);
}

.float-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.float-plan-badge-active {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.float-plan-badge-overdue {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.float-plan-badge-returned {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.float-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.float-plan-modal-head {
  padding-top: max(1rem, calc(0.7rem + env(safe-area-inset-top)));
}

.float-plan-modal-body {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.float-plan-modal-actions {
  position: sticky;
  bottom: calc(-1rem - env(safe-area-inset-bottom));
  z-index: 5;
  margin: 0 -1.1rem calc(-1rem - env(safe-area-inset-bottom));
  padding: 0.95rem 1.1rem calc(0.95rem + env(safe-area-inset-bottom));
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(4, 17, 33, 0), rgba(4, 17, 33, 0.98) 24%);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.float-plan-form-grid,
.float-plan-detail-grid {
  display: grid;
  gap: 0.95rem;
}

.float-plan-field {
  display: grid;
  gap: 0.38rem;
}

.float-plan-field-full {
  grid-column: 1 / -1;
}

.float-plan-detail-list {
  display: grid;
  gap: 0.8rem;
}

.float-plan-detail-list > div {
  display: grid;
  gap: 0.18rem;
}

.season-intel-note,
.season-intel-empty,
.season-intel-pretrip-copy {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.76);
}

.season-intel-card {
  display: grid;
  gap: 0.9rem;
}

.solunar-correlation-copy,
.solunar-correlation-line {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.76);
}

.solunar-correlation-grid {
  display: grid;
  gap: 0.9rem;
}

.solunar-correlation-stat {
  display: grid;
  gap: 0.28rem;
}

.season-card-summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
}

.season-card-summary::-webkit-details-marker {
  display: none;
}

.season-card-summary::after {
  content: "−";
  float: right;
  color: #facc15;
}

details:not([open]) > .season-card-summary::after {
  content: "+";
}

.season-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.season-card-kicker,
.season-card-meta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.season-card-kicker {
  color: #93c5fd;
}

.season-card-meta {
  color: rgba(148, 163, 184, 0.84);
}

.season-card-title,
.season-card-subtitle {
  color: #f8fafc;
}

.season-card-title {
  font-size: 1rem;
  font-weight: 700;
}

.season-card-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.84);
}

.season-card-grid {
  display: grid;
  gap: 0.9rem;
}

.season-chart-card {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.season-chart-card-wide {
  grid-column: 1 / -1;
}

.season-chart-wrap {
  height: 235px;
}

.season-chart-wrap-tall {
  height: 270px;
}

.season-intel-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.season-species-legend .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.season-species-legend-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.season-table-shell {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.28);
}

.season-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.season-table th,
.season-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
  text-align: left;
}

.season-table th {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.84);
}

.season-table td {
  color: rgba(226, 232, 240, 0.9);
}

.season-table tr:last-child td {
  border-bottom: 0;
}

.season-vs-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.season-vs-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(2, 6, 23, 0.34);
}

.season-vs-card-good {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.18);
}

.season-vs-card-bad {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.18);
}

.season-vs-card-muted {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.season-vs-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.84);
}

.season-vs-value-row {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.season-vs-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
}

.season-vs-meta,
.season-vs-delta {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.74);
}

.season-compare-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.season-compare-flag-yes {
  color: #4ade80;
}

.season-compare-flag-no {
  color: #f87171;
}

.status-banner {
  position: sticky;
  top: calc(env(safe-area-inset-top) + 0.25rem);
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0.35rem auto 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
}

.status-banner-offline {
  background: rgba(69, 26, 3, 0.86);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a;
}

.status-banner-install {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(56, 189, 248, 0.2);
  color: #dbeafe;
}

.status-banner-copy {
  font-size: 0.78rem;
  line-height: 1.5;
}

.status-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.status-banner-button {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(8, 47, 73, 0.88);
  color: #e0f2fe;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-banner-button-muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.hero-panel,
.section-frame {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(5, 15, 30, 0.96), rgba(10, 24, 43, 0.82));
}

.hero-panel {
  padding: 1.25rem;
}

.hero-title {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-weight: 800;
  max-width: 14ch;
}

.hero-copy {
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  gap: 0.75rem;
}

.hero-stat,
.panel-solid,
.panel-muted {
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.hero-stat {
  padding: 0.9rem 1rem;
}

.hero-stat-label,
.section-title {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  color: var(--accent-cool);
}

.hero-stat-value {
  color: #dbeafe;
  font-size: 0.92rem;
}

.section-title {
  font-size: 1.15rem;
  color: #f8fafc;
  font-weight: 700;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.section-row {
  min-height: 0;
}

.section-row .section-header {
  margin-bottom: 0;
  min-height: 2.5rem;
}

.section-chevron {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  max-width: 1.15rem;
  max-height: 1.15rem;
  flex: 0 0 1.15rem;
  display: block;
  color: rgba(148, 163, 184, 0.8);
  transform: rotate(-90deg);
  transition: transform 0.2s ease, color 0.2s ease;
  overflow: visible;
}

.section-chevron-open {
  transform: rotate(0deg);
}

.section-header:hover .section-title {
  color: #94a3b8;
}

.section-header:hover .section-chevron {
  color: #cbd5e1;
}

.section-row .section-title {
  font-size: 0.96rem;
  line-height: 1.1;
  color: var(--accent);
}

.section-heading-inline {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
  flex-wrap: wrap;
}

.section-heading-inline .section-desc::before {
  content: "-";
  margin-right: 0.45rem;
  color: rgba(148, 163, 184, 0.62);
}

.section-desc {
  font-weight: 400;
  letter-spacing: 0;
  max-width: 52rem;
  line-height: 1.35;
  margin: 0;
}

.section-subtitle {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8fafc;
  font-weight: 700;
}

.panel-solid {
  background: var(--panel);
}

.panel-muted {
  background: rgba(17, 24, 39, 0.74);
}

.settings-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.settings-modal-content {
  width: min(72rem, 100%);
  max-height: min(90vh, 56rem);
}

.settings-modal-body {
  padding: 1rem 1.1rem 1.15rem;
}

.settings-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.36);
  border-radius: 1rem;
  padding: 1rem;
}

.settings-copy {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.86);
}

.settings-stack {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
}

.settings-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
  display: grid;
  gap: 0.35rem;
}

.settings-account-summary {
  display: grid;
  gap: 0.2rem;
}

.settings-account-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5edf7;
}

.settings-account-meta {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.86);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.settings-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.42);
}

.settings-checkbox-input {
  margin-top: 0.12rem;
  width: 1rem;
  height: 1rem;
  accent-color: #38bdf8;
}

.settings-checkbox-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e5edf7;
}

.settings-checkbox-copy {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.86);
}

.settings-alert-list {
  display: grid;
  gap: 0.6rem;
}

.settings-alert-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.8rem;
  padding: 0.7rem 0.8rem;
  background: rgba(15, 23, 42, 0.62);
}

.settings-alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e5edf7;
}

.settings-alert-meta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.8);
}

.data-card,
.form-panel,
.table-shell {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.metric-chip {
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(30, 27, 75, 0.32);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.console-input {
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.8);
  color: #e2e8f0;
}

.console-input::placeholder {
  color: #64748b;
}

.console-input:focus {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border-radius: 0;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(8, 47, 73, 0.88);
}

.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ghost-button {
  background: rgba(15, 23, 42, 0.88);
  color: #cbd5e1;
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: rgba(14, 32, 56, 0.96);
}

.danger-button {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(69, 10, 28, 0.38);
  color: #fecdd3;
}

.danger-button:hover {
  background: rgba(127, 29, 29, 0.45);
}

.inline-text-action,
.danger-link {
  font-size: 0.78rem;
  font-weight: 600;
}

.inline-text-action {
  color: #7dd3fc;
}

.inline-text-action:hover {
  color: #bae6fd;
}

.danger-link {
  color: #fda4af;
  padding-bottom: 0.25rem;
}

.danger-link:hover {
  color: #ffe4e6;
}

.field-input,
.field-select {
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  color: #e2e8f0;
}

.catch-auth-tab {
  padding: 0.55rem 0.85rem;
  background: rgba(2, 6, 23, 0.72);
  color: #94a3b8;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catch-auth-tab-active {
  background: rgba(8, 47, 73, 0.88);
  color: #e0f2fe;
}

.catch-log-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.84);
  color: #f8fafc;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  line-height: 1.2;
}

.catch-log-input::placeholder {
  color: #64748b;
}

.catch-log-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.catch-log-submit {
  min-width: 6.5rem;
}

.catch-auth-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
}

.catch-auth-shell,
.catch-auth-side {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(6, 17, 33, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 1.2rem;
}

.catch-auth-title {
  margin-bottom: 0.35rem;
}

.catch-auth-copy {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.94);
  max-width: 38rem;
}

.catch-pin-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
}

.catch-pin-entry {
  position: relative;
  display: inline-block;
}

.catch-pin-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: auto;
}

.catch-pin-visual {
  width: 3.4rem;
  height: 3.4rem;
  min-width: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(7, 31, 58, 0.98), rgba(4, 18, 36, 0.98));
  color: #f8fafc;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.catch-pin-entry:focus-within .catch-pin-visual {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.catch-pin-visual-filled {
  color: #22d3ee;
}

.catch-auth-go,
.catch-auth-create {
  min-width: 6rem;
  min-height: 2.8rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catch-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
}

.catch-profile-toggle:hover {
  color: #f8fafc;
}

.catch-profile-create {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 1rem;
}

.catch-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.catch-profile-pin-field {
  grid-column: 1 / -1;
  max-width: 12rem;
}

.catch-profile-line,
.catch-entry-title,
.catch-date-head {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
}

.catch-profile-line {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.catch-auth-side {
  align-self: start;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.catch-date-head {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.catch-entry-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.catch-entry-shell {
  display: grid;
  gap: 0.5rem;
}

.catch-section-shell {
  display: grid;
  gap: 1rem;
}

.catch-section-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto 0;
  justify-content: center;
  padding: 0.22rem;
  gap: 0.22rem;
}

.catch-section-tabs .season-mode-pill {
  padding: 0.52rem 0.9rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .catch-section-tabs {
    padding: 0.18rem;
    gap: 0.18rem;
  }

  .catch-section-tabs .season-mode-pill {
    padding: 0.48rem 0.72rem;
    font-size: 0.76rem;
  }
}

.catch-entry-chip {
  margin-left: 0.45rem;
  vertical-align: middle;
}

.catch-entry-pb-inline {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
}

.catch-entry-meta,
.catch-entry-conditions,
.catch-entry-raw {
  font-size: 0.78rem;
}

.catch-entry-meta {
  margin-top: 0.3rem;
  color: #94a3b8;
}

.catch-entry-meta-collapsed {
  margin-top: 0;
}

.catch-entry-raw {
  color: #64748b;
}

.catch-entry-conditions {
  color: #cbd5e1;
}

.catch-entry-solunar {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #7dd3fc;
}

.catch-entry-pb {
  margin-top: 0.45rem;
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
}

.catch-expand-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  font-size: 0.78rem;
  color: #94a3b8;
}

.catch-expand-chevron {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1;
}

.catch-entry-detail {
  display: grid;
  gap: 0.32rem;
}

.catch-entry-detail.hidden {
  display: none;
}

.catch-entry-detail-line {
  font-size: 0.82rem;
  color: #e2e8f0;
}

.catch-log-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.catch-log-meta-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  min-width: 0;
}

.catch-log-link {
  font-size: 0.8rem;
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.catch-log-link:hover {
  color: #7dd3fc;
}

@media (max-width: 640px) {
  .catch-log-controls-row {
    align-items: flex-start;
  }
}

.catch-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(6px);
}

.catch-modal-content {
  width: min(52rem, 100%);
  max-height: min(90vh, 52rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(8, 19, 35, 0.98), rgba(4, 17, 33, 0.96));
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

.catch-modal-content.catch-modal-content-trip-report {
  width: min(68rem, 100%);
  max-height: min(94vh, 62rem);
}

.catch-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.catch-modal-head-left {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.catch-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catch-modal-clear {
  font-size: 0.72rem;
}

.catch-modal-close {
  min-width: 5.5rem;
  min-height: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catch-modal-body {
  padding: 1rem 1.1rem 1.1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.catch-modal-body.catch-modal-body-trip-report {
  padding: 1.15rem 1.25rem 1.25rem;
}

.trip-report-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.trip-report-header {
  margin-bottom: 0.25rem;
}

.trip-report-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trip-report-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.trip-report-draft-note {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: #38bdf8;
}

.trip-report-catch-summary {
  font-size: 0.8rem;
  color: #4ade80;
  margin-top: 0.5rem;
}

.trip-report-catch-summary-muted {
  color: #94a3b8;
}

.trip-report-big-fish-summary {
  font-size: 0.8rem;
  color: #fbbf24;
  margin-top: 0.25rem;
}

.trip-report-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trip-report-field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 600;
}

.trip-report-field input,
.trip-report-field textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.5rem;
  color: #e2e8f0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.trip-report-field textarea {
  min-height: 3rem;
  resize: vertical;
}

.trip-report-field input:focus,
.trip-report-field textarea:focus,
.trip-report-body-textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
}

.trip-report-field input::placeholder,
.trip-report-field textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.trip-report-prefill {
  font-size: 0.65rem;
  color: #38bdf8;
  margin-left: 0.25rem;
}

.rod-spread-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.rod-spread-grid .trip-report-field input {
  text-align: center;
  padding: 0.4rem;
}

.depth-range-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.depth-range-row input {
  width: 5rem;
  text-align: center;
}

.depth-range-row span {
  color: #64748b;
  font-size: 0.8rem;
}

.trip-report-output {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
}

.trip-report-output-body {
  margin-top: 0.75rem;
}

.trip-report-photo-field {
  margin-top: 0.85rem;
}

.trip-report-photo-input {
  display: none;
}

.trip-report-photo-controls {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.trip-report-photo-btn {
  flex: 0 0 auto;
  min-width: 9rem;
}

.trip-report-photo-helper {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.trip-report-photo-count {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
}

.trip-report-photo-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.trip-report-photo-card {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.7rem;
  padding: 0.55rem;
  display: grid;
  gap: 0.5rem;
}

.trip-report-photo-card img {
  width: 100%;
  height: 8.25rem;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  display: block;
}

.trip-report-photo-remove {
  width: 100%;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trip-report-edit-hint {
  color: #64748b;
  font-weight: 400;
}

.trip-report-body-textarea {
  width: 100%;
  min-height: 10rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: none;
  overflow: hidden;
  font-family: inherit;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.trip-report-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.trip-report-actions button {
  flex: 1;
  min-width: 8rem;
}

.trip-report-status {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  min-height: 1.2rem;
}

.trip-report-status-success {
  color: #4ade80;
}

.trip-report-status-error {
  color: #f87171;
}

.trip-report-status-sending {
  color: #38bdf8;
}

.trip-report-send-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
}

.trip-report-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.trip-report-error {
  color: #f87171;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
}

.trip-report-resume-banner {
  margin: 0.75rem auto 0;
  max-width: 72rem;
  padding: 0 0.75rem;
}

.trip-report-resume-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.66), rgba(15, 23, 42, 0.88));
}

.trip-report-resume-copy {
  min-width: 0;
}

.trip-report-resume-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bae6fd;
}

.trip-report-resume-meta {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.trip-report-resume-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.trip-report-resume-actions .action-button,
.trip-report-resume-actions .ghost-button {
  min-width: 8.5rem;
}

.catch-enrich-overlay {
  background: rgba(2, 6, 23, 0.82);
}

.catch-enrich-content {
  width: min(30rem, calc(100% - 2rem));
  max-height: min(88vh, 42rem);
}

.catch-enrich-head {
  padding-bottom: 0.8rem;
}

.catch-enrich-body {
  background: transparent;
}

.catch-enrich-grid {
  display: grid;
  gap: 0.85rem;
}

.catch-enrich-form-grid {
  display: grid;
  gap: 0.75rem;
}

.catch-enrich-field {
  display: block;
}

.catch-enrich-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.modal-open {
  overflow: hidden;
}

.lb-container {
  margin-top: 1.5rem;
}

.lb-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.55rem;
}

.lb-season-select {
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  appearance: auto;
}

.lb-season-select:focus {
  outline: 1px solid var(--accent-cool);
}

.lb-subsection-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 0.45rem;
}

.lb-toggle-row {
  margin-bottom: 0.9rem;
}

@media (max-width: 640px) {
  .lb-toggle-row {
    display: grid;
    width: 100%;
    padding: 0.35rem;
    gap: 0.35rem;
    border-radius: 1.1rem;
  }

  .lb-toggle-row .season-mode-pill {
    width: 100%;
    padding: 0.78rem 1rem;
    text-align: left;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    white-space: normal;
  }
}

.lb-scoring-note {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.lb-table {
  display: flex;
  flex-direction: column;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.lb-row:last-child {
  border-bottom: 0;
}

.lb-header {
  padding-top: 0;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

.lb-cell {
  min-width: 0;
}

.lb-cell-rank {
  flex: 0 0 2rem;
  font-weight: 700;
}

.lb-cell-name {
  flex: 1 1 auto;
}

.lb-cell-num {
  flex: 0 0 3rem;
  text-align: right;
}

.lb-cell-pts {
  flex: 0 0 4.5rem;
  text-align: right;
  font-weight: 700;
  color: #e2e8f0;
}

.lb-cell-weight {
  flex: 0 0 3.5rem;
  text-align: right;
  color: #e2e8f0;
}

.lb-cell-detail {
  flex: 0 1 11rem;
  font-size: 0.74rem;
  color: #94a3b8;
  text-align: right;
}

.lb-rank-1 .lb-cell-rank {
  color: #fbbf24;
}

.lb-rank-2 .lb-cell-rank {
  color: #94a3b8;
}

.lb-rank-3 .lb-cell-rank {
  color: #d97706;
}

.lb-angler-name {
  color: #f8fafc;
  font-weight: 600;
}

.lb-boat-name {
  color: #64748b;
  font-size: 0.76rem;
}

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

.lb-species-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .catch-map-canvas {
    height: 500px;
  }

  .float-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .float-plan-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .lb-species-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-intel-toolbar-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .season-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-input::placeholder {
  color: #64748b;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.field-select option {
  background: #020617;
  color: #e2e8f0;
}

.table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-row-accent {
  background: rgba(120, 53, 15, 0.22);
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.forecast-strip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

.forecast-strip-wrap {
  position: relative;
}

.forecast-strip-fade {
  display: none;
}

.forecast-strip-shell {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) rgba(2, 6, 23, 0.28);
}


.forecast-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.5rem;
}

.forecast-strip-shell::-webkit-scrollbar {
  height: 8px;
}

.forecast-strip-shell::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.28);
  border-radius: 999px;
}

.forecast-strip-shell::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 999px;
}

/* Desktop: force a true 5-card grid. This override must come after the
   base mobile-friendly flex row so desktop doesn't get collapsed back to 4. */
@media (min-width: 769px) {
  .forecast-day-card {
    min-width: 0;
    width: 100%;
    flex: initial;
    max-width: none;
  }

  .forecast-strip-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    padding-bottom: 0;
  }

  .forecast-strip-shell {
    overflow-x: visible;
  }

  .forecast-strip-wrap {
    overflow: visible;
  }

  .forecast-strip-fade {
    display: none;
  }
}

.forecast-tooltip {
  white-space: normal;
  overflow-wrap: anywhere;
}

.forecast-hour-span {
  margin-bottom: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.forecast-cell-hour {
  flex: 1 1 0;
  min-width: 0;
}

.forecast-hour-block {
  width: 100%;
  height: 18px;
  border-radius: 2px;
  box-shadow: inset -1px 0 rgba(2, 6, 23, 0.38);
}

.forecast-hour-empty {
  background: rgba(71, 85, 105, 0.25);
}

.forecast-hour-go {
  background: #4ade80;
}

.forecast-hour-caution {
  background: #fbbf24;
}

.forecast-hour-risk {
  background: #f87171;
}

.forecast-hour-dim {
  opacity: 1;
}

.forecast-hour-muted {
  opacity: 1;
}

.forecast-hour-hover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.3rem);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
  background: rgba(2, 6, 23, 0.95);
  color: #e2e8f0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 20;
}

.forecast-cell-hour:hover .forecast-hour-hover {
  opacity: 1;
}


.forecast-day-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.forecast-day-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.forecast-wave-compare {
  min-height: 1rem;
  font-size: 10px;
  line-height: 1rem;
  color: rgba(251, 191, 36, 0.8);
  white-space: nowrap;
}

.forecast-wave-compare-empty {
  visibility: hidden;
}

.forecast-detail-head {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.forecast-expand-hint {
  margin-top: 0.55rem;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(148, 163, 184, 0.82);
  white-space: nowrap;
}

.forecast-hourly-matrix {
  display: grid;
  gap: 0.46rem;
  margin-top: 0.85rem;
}

.forecast-matrix-row {
  display: grid;
  grid-template-columns: 3.7rem minmax(0, 1fr);
  gap: 0.42rem;
  align-items: center;
}

.forecast-matrix-row-ecmwf .forecast-matrix-label {
  opacity: 0.7;
}

.forecast-matrix-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
}

.forecast-matrix-source-link {
  color: rgba(56, 189, 248, 1);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(56, 189, 248, 0.6);
  cursor: pointer;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.forecast-matrix-source-link:hover {
  color: #fff;
  text-decoration-color: rgba(56, 189, 248, 1);
}

.forecast-matrix-values {
  display: grid;
  grid-template-columns: repeat(var(--forecast-matrix-columns, 24), minmax(0, 1fr));
  gap: 0.12rem;
}

.forecast-matrix-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forecast-matrix-divider {
  border-left: 1px solid rgba(148, 163, 184, 0.25);
}

.forecast-matrix-hour {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  white-space: nowrap;
}

.forecast-hourly-score {
  display: inline-block;
  width: 100%;
  max-width: 0.9rem;
  height: 0.34rem;
  border-radius: 999px;
}

.forecast-hour-strip-score {
  display: block;
  max-width: none;
  width: 100%;
  height: 9px;
  border-radius: 3px;
  box-shadow: inset -1px 0 rgba(2, 6, 23, 0.38);
}

.forecast-strip-mini-values {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.12rem;
  align-items: center;
}

.forecast-strip-mini-cell {
  min-width: 0;
  display: block;
}

.forecast-trend-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.solunar-strip {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.solunar-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.solunar-strip-label {
  font-size: 0.66rem;
  color: rgba(226, 232, 240, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.solunar-strip-rating {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.solunar-rating-excellent { color: #4ade80; }
.solunar-rating-good { color: #38bdf8; }
.solunar-rating-average { color: #fbbf24; }
.solunar-rating-fair { color: rgba(226, 232, 240, 0.55); }
.solunar-rating-poor { color: rgba(148, 163, 184, 0.45); }

.solunar-bars {
  display: flex;
  gap: 0.12rem;
  align-items: flex-end;
  opacity: 0.78;
}

.solunar-bar-slot {
  display: flex;
  align-items: flex-end;
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
}

.solunar-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.42);
  transition: background 0.15s, height 0.15s;
}

.solunar-bar-minor {
  background: rgba(56, 189, 248, 0.7);
}

.solunar-bar-major {
  background: rgba(56, 189, 248, 0.95);
}

.solunar-detail-view {
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 1.35rem;
  padding: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  background:
    radial-gradient(circle at top center, rgba(56, 189, 248, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(8, 24, 44, 0.98), rgba(8, 30, 54, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(2, 12, 27, 0.35);
}

.solunar-detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.solunar-detail-head {
  display: grid;
  gap: 0.18rem;
}

.solunar-detail-brow {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.74);
}

.solunar-detail-location {
  font-size: clamp(1.18rem, 2.1vw, 1.68rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.solunar-detail-zone {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.58);
}

.solunar-detail-phase-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(15, 39, 68, 0.72);
  font-size: 0.68rem;
  color: rgba(224, 242, 254, 0.9);
  text-align: center;
  line-height: 1.4;
}

.solunar-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  align-items: stretch;
  gap: 1rem;
}

.solunar-detail-summary-card,
.solunar-detail-gauge-panel,
.solunar-detail-period-block {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 36, 61, 0.94), rgba(10, 28, 49, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.solunar-detail-kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.82);
}

.solunar-detail-summary-label {
  font-size: clamp(1.3rem, 2.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.solunar-detail-summary-copy {
  max-width: 34rem;
  font-size: 0.76rem;
  line-height: 1.48;
  color: rgba(226, 232, 240, 0.72);
}

.solunar-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.solunar-detail-meta-card {
  display: grid;
  gap: 0.24rem;
  padding: 0.68rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(6, 19, 35, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.solunar-detail-meta-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
}

.solunar-detail-meta-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
}

.solunar-detail-gauge-panel {
  justify-items: center;
  align-content: center;
  gap: 0.7rem;
}

.solunar-detail-gauge {
  --solunar-score: 0;
  position: relative;
  width: min(100%, 13.5rem);
  aspect-ratio: 1.8 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.solunar-detail-gauge::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from 180deg,
      rgba(241, 245, 249, 0.96) calc(var(--solunar-score) * 1.8deg),
      rgba(125, 211, 252, 0.18) 0
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(3, 10, 24, 0.28);
}

.solunar-detail-gauge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  width: calc(100% - 1.8rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(14, 41, 69, 0.98), rgba(8, 24, 43, 0.98));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.solunar-detail-gauge-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  align-self: end;
  padding-bottom: 1rem;
}

.solunar-detail-gauge-value {
  font-size: clamp(2.55rem, 4vw, 3.7rem);
  font-weight: 800;
  line-height: 1;
  color: #f8fafc;
  letter-spacing: -0.04em;
}

.solunar-detail-gauge-unit {
  margin-top: -0.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.74);
}

.solunar-detail-scoreline {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.solunar-detail-score-number {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.solunar-detail-score-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
}

.solunar-detail-bars-wrap {
  margin-top: 1.05rem;
  padding: 0.85rem 0.9rem 0.78rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.1);
  background: rgba(6, 20, 36, 0.44);
}

.solunar-detail-bars-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.solunar-detail-section-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.8);
}

.solunar-detail-section-copy {
  font-size: 0.66rem;
  color: rgba(186, 230, 253, 0.58);
  text-align: right;
}

.solunar-detail-bars {
  display: grid;
  grid-template-columns: repeat(var(--solunar-bar-count, 24), minmax(0, 1fr));
  gap: 1px;
  height: 9rem;
  align-items: end;
}

.solunar-detail-bar-slot {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.solunar-detail-bar {
  width: 100%;
  min-height: 0.42rem;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(143, 246, 255, 0.88), rgba(83, 186, 215, 0.82));
  opacity: 0.62;
}

.solunar-detail-bar-minor {
  opacity: 0.84;
}

.solunar-detail-bar-major {
  background:
    linear-gradient(180deg, rgba(177, 247, 231, 0.98), rgba(112, 215, 212, 0.92));
  opacity: 1;
}

.solunar-detail-axis {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin-top: 0.45rem;
  font-size: 0.58rem;
  color: rgba(148, 163, 184, 0.62);
}

.solunar-detail-axis span:nth-child(1),
.solunar-detail-axis span:nth-child(9) {
  text-align: left;
}

.solunar-detail-axis span:nth-child(9) {
  text-align: right;
}

.solunar-detail-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.05rem;
}

.solunar-detail-period-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.solunar-detail-period-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.78);
}

.solunar-detail-period-caption {
  font-size: 0.64rem;
  color: rgba(186, 230, 253, 0.55);
}

.solunar-detail-period-entry {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.6rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.9rem;
  background: rgba(6, 19, 35, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.solunar-detail-period-time {
  font-size: clamp(0.92rem, 1.85vw, 1.28rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
}

.solunar-detail-period-label,
.solunar-detail-period-empty {
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.65);
}

.sky-conditions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0.24rem;
  margin-bottom: 0.4rem;
}

.sky-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.16rem 0.24rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sky-chip-status {
  background: rgba(226, 232, 240, 0.08);
  border-color: rgba(226, 232, 240, 0.16);
  color: rgba(248, 250, 252, 0.9);
}

.sky-chip-rain {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

.sky-chip-uv {
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.2);
  color: #fde68a;
}

.forecast-hourly-score-empty { background: rgba(71, 85, 105, 0.35); }

.forecast-matrix-value {
  font-size: 0.66rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

.forecast-matrix-dir {
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.forecast-matrix-weather {
  font-size: 0.39rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: rgba(148, 163, 184, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-content: flex-start;
  padding-inline: 0.05rem;
}

.forecast-day-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.forecast-day-modal-shell {
  width: min(100%, 84rem);
  max-height: min(92vh, 56rem);
}

.forecast-modal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(10, 24, 43, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.forecast-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem 0;
}

.forecast-modal-close {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.15rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.forecast-modal-detail {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 1.05rem;
  background: rgba(15, 23, 42, 0.72);
}

.forecast-modal-day {
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.42);
}

/* Flat modal variant — no nested card layers */
.forecast-modal-card-flat {
  width: min(100%, 80rem);
  max-height: min(90vh, 54rem);
}

.forecast-modal-body-flat {
  padding: 1rem 1.5rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Desktop matrix sizing for flat modal */
@media (min-width: 768px) {
  .forecast-modal-body-flat .forecast-hourly-matrix {
    gap: 0.6rem;
  }

  .forecast-modal-body-flat .forecast-matrix-row {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .forecast-modal-body-flat .forecast-matrix-label {
    font-size: 0.76rem;
  }

  .forecast-modal-body-flat .forecast-matrix-value {
    font-size: 0.82rem;
  }

  .forecast-modal-body-flat .forecast-matrix-hour {
    font-size: 0.72rem;
  }

  .forecast-modal-body-flat .forecast-matrix-dir {
    font-size: 0.72rem;
  }

  .forecast-modal-body-flat .forecast-matrix-cell {
    min-height: 1.5rem;
  }

  .forecast-modal-body-flat .forecast-hourly-score {
    height: 0.6rem;
    max-width: 1.4rem;
  }

  .forecast-modal-body-flat .forecast-matrix-values {
    gap: 0.2rem;
  }
}

.hero-insight-modal-shell {
  width: min(100%, 42rem);
  max-height: none;
  margin: auto;
}

.hero-insight-modal-shell .forecast-modal-card {
  width: 100%;
  max-height: min(calc(100vh - 2rem), 44rem);
  max-height: min(calc(100dvh - 2rem), 44rem);
}

.hero-insight-modal-shell .forecast-modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hero-insight-body {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
  overflow-wrap: anywhere;
}

.hero-insight-body strong {
  color: #f8fafc;
}

.forecast-detail-head-inline {
  margin-top: 0.9rem;
}

.conditions-console {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.conditions-meta-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.meta-panel-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  background: rgba(2, 6, 23, 0.34);
}

.meta-panel-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.meta-panel-value {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.meta-panel-copy,
.meta-panel-note,
.meta-window-copy {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.72);
}

.meta-panel-note {
  color: rgba(148, 163, 184, 0.82);
}

.meta-window-line,
.meta-history-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.meta-window-zone {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
}

.meta-history-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.meta-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.82);
  background: rgba(15, 23, 42, 0.6);
}

.meta-chip-live {
  border-color: rgba(74, 222, 128, 0.35);
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.35);
}

.conditions-notice {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  padding: 0.8rem 0.95rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.66), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.conditions-notice-line {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.74);
  word-break: break-word;
}

.conditions-forecast-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.conditions-forecast-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.conditions-forecast-title-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.conditions-forecast-copy {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.82);
  white-space: normal;
}

.conditions-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.forecast-label-context {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.82);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.legend-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot-green { background: #4ade80; }
.legend-dot-amber { background: #fbbf24; }
.legend-dot-red { background: #fb7185; }

.forecast-brief-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(2, 6, 23, 0.32);
}

.forecast-brief-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.forecast-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.briefing-trigger {
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.briefing-trigger:hover {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(8, 47, 73, 0.32);
}

.forecast-brief-copy {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.62);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forecast-brief-copy * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.conditions-sources-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.source-mini-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  background: rgba(2, 6, 23, 0.26);
}

.source-mini-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dbeafe;
}

.source-mini-meta {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.72);
}

.source-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.82);
}

.status-hero {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 34px rgba(0, 0, 0, 0.22);
  min-width: 0;
  overflow: hidden;
}

.status-shell-green {
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(3, 105, 61, 0.26), rgba(6, 95, 70, 0.12)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-shell-amber {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(120, 53, 15, 0.24), rgba(146, 64, 14, 0.12)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-shell-red {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(127, 29, 29, 0.24), rgba(136, 19, 55, 0.12)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-shell-temp-cold {
  background:
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(91, 33, 182, 0.18), rgba(109, 40, 217, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-shell-temp-cool {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(7, 89, 133, 0.18), rgba(14, 116, 144, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-shell-temp-prime {
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(3, 105, 61, 0.18), rgba(6, 95, 70, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-shell-temp-warm {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(120, 53, 15, 0.18), rgba(146, 64, 14, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-shell-temp-hot {
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(127, 29, 29, 0.18), rgba(136, 19, 55, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-border-green { border-color: rgba(74, 222, 128, 0.35); }
.status-border-amber { border-color: rgba(251, 191, 36, 0.35); }
.status-border-red { border-color: rgba(251, 113, 133, 0.35); }
.status-border-temp-cold { border-color: rgba(167, 139, 250, 0.35); }
.status-border-temp-cool { border-color: rgba(56, 189, 248, 0.35); }
.status-border-temp-prime { border-color: rgba(74, 222, 128, 0.35); }
.status-border-temp-warm { border-color: rgba(251, 191, 36, 0.35); }
.status-border-temp-hot { border-color: rgba(248, 113, 113, 0.35); }
.status-shell-neutral {
  background: linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-border-neutral {
  border-color: var(--line);
}

.conditions-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.conditions-card-header {
  margin-bottom: 0.6rem;
}

.conditions-verdict-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0.65rem;
  border-radius: 0.7rem;
  overflow: hidden;
}

.cc-verdict-half {
  padding: 0.6rem 0.7rem;
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.cc-verdict-half-divider {
  border-right: 1px solid var(--line);
}

.cc-zone-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cc-zone-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cc-zone-sub {
  font-size: 0.74rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-next-go {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.cc-metrics {
  display: grid;
  gap: 0;
  margin-bottom: 0.5rem;
}

.cc-metrics-narrow {
  display: none;
}

.cmt-header,
.cmt-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 0;
  align-items: center;
}

.cmt-header {
  padding: 0 0.5rem 0.32rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.12rem;
}

.cmt-label-col {
  min-width: 0;
}

.cmt-val-col {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.cmt-row {
  padding: 0.34rem 0.5rem;
  border-radius: 0.3rem;
}

.cmt-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.cmt-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cmt-val {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text-main);
}

.cmt-row-shared {
  grid-template-columns: 0.8fr 2fr;
}

.cmt-val-full {
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text-main);
}

.cc-narrow-zone-header {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem 0.15rem;
}

.cc-narrow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0.2rem 0.5rem;
}

.cc-narrow-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cc-narrow-val {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text-main);
}

.status-hero-main {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.zone-row {
  display: grid;
  gap: 0.35rem;
}

.zone-row-empty {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.6);
  padding: 0 0.15rem 0.2rem;
}

.zone-row-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
  padding-left: 0.15rem;
}

.status-verdict {
  display: grid;
  gap: 0.35rem;
}

.status-heading-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-pill-green {
  background: rgba(20, 83, 45, 0.42);
  border-color: rgba(74, 222, 128, 0.4);
  color: #dcfce7;
}

.status-pill-amber {
  background: rgba(120, 53, 15, 0.4);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fef3c7;
}

.status-pill-red {
  background: rgba(127, 29, 29, 0.4);
  border-color: rgba(251, 113, 133, 0.4);
  color: #ffe4e6;
}

.status-title {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f8fafc;
  white-space: nowrap;
}

.status-copy {
  font-size: 0.92rem;
  line-height: 1.3;
}

.status-copy-inline {
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(var(--status-metric-columns, 1), minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.status-metric {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.9rem;
  padding: 0.55rem 0.65rem;
  background: rgba(2, 6, 23, 0.35);
  min-width: 0;
}

.status-metric.status-shell-green {
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(3, 105, 61, 0.18), rgba(6, 95, 70, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-metric.status-shell-amber {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(120, 53, 15, 0.18), rgba(146, 64, 14, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-metric.status-shell-red {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(127, 29, 29, 0.18), rgba(136, 19, 55, 0.08)),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.9));
}

.status-metric.status-border-green { border-color: rgba(74, 222, 128, 0.35); }
.status-metric.status-border-amber { border-color: rgba(251, 191, 36, 0.35); }
.status-metric.status-border-red { border-color: rgba(251, 113, 133, 0.35); }

.status-metric-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.58);
}

.metric-threshold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.metric-pill-primary {
  font-size: 0.5rem;
  padding: 0.18rem 0.4rem;
  border: 1px solid;
}

.metric-pill-secondary {
  font-size: 0.42rem;
  padding: 0.12rem 0.3rem;
  border: 1px solid;
  opacity: 0.75;
}

.metric-pill-nogo {
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(251, 113, 133, 0.5);
  color: #fecdd3;
}

.metric-pill-caution {
  background: rgba(120, 53, 15, 0.4);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

.metric-source-link {
  flex: 0 0 auto;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(148, 163, 184, 0.78);
  text-decoration: none;
  white-space: nowrap;
}

.metric-source-link:hover {
  color: #cbd5e1;
  text-decoration: underline;
}

.status-metric-value {
  margin-top: 0.15rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: clamp(0.96rem, 1.45vw, 1.1rem);
  line-height: 1.2;
  font-weight: 800;
  color: #f8fafc;
  word-break: break-word;
  white-space: nowrap;
}

.status-metric-primary {
  min-width: 0;
}

.status-metric-trend-inline {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.74);
  white-space: nowrap;
}

/* Water temp color coding — Lake Michigan trolling species ranges */
.status-metric-value.water-temp-cold { color: #a78bfa; }   /* <39°F — below all lower limits, pre-season */
.status-metric-value.water-temp-cool { color: #38bdf8; }   /* 39-43°F — kings & lakers waking up */
.status-metric-value.water-temp-prime { color: #4ade80; }   /* 44-55°F — all 5 target species active */
.status-metric-value.water-temp-warm { color: #fbbf24; }    /* 56-62°F — approaching upper limits, fish deep */
.status-metric-value.water-temp-hot { color: #f87171; }     /* >62°F — past limits, thermal stress */

.trend-arrow {
  font-size: 1.28em;
  font-weight: 700;
  margin-left: 0.2rem;
  vertical-align: middle;
}

.trend-up { color: #f87171; }
.trend-down { color: #4ade80; }
.trend-flat { color: rgba(148, 163, 184, 0.6); }

.status-metric-sub {
  position: relative;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.52);
  overflow-wrap: anywhere;
}

.status-metric-sub-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.74);
  white-space: nowrap;
}

.status-metric-sub-trend .trend-arrow {
  margin-left: 0;
}

.source-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

.source-info-btn:hover {
  color: var(--accent-cool);
  border-color: var(--accent-cool);
}

.metric-color-key-link {
  margin-left: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.6rem;
  color: rgba(148, 163, 184, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.3);
  cursor: pointer;
}

.metric-color-key-link:hover {
  color: #cbd5e1;
}

.source-info-tooltip {
  position: fixed;
  z-index: 110;
  width: min(280px, calc(100vw - 1.5rem));
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.source-info-tooltip-head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cool);
  margin-bottom: 4px;
}

.source-info-tooltip-body {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.push-optin-banner {
  background: rgba(234, 179, 8, 0.08);
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
  padding: 0.6rem 1rem;
  text-align: center;
}

.push-optin-content {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.push-optin-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.push-optin-text strong {
  color: var(--text-main);
}

.push-optin-actions {
  display: flex;
  gap: 0.5rem;
}

.push-optin-enable {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #eab308;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
}

.push-optin-enable:hover {
  background: rgba(234, 179, 8, 0.3);
}

.push-optin-dismiss {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
}

.push-optin-dismiss:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.metric-fallback-alert {
  color: #f87171;
}

.status-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.65rem;
  color: rgba(226, 232, 240, 0.45);
}

.status-glance-card {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 1rem;
  padding: 0.78rem 0.9rem 0.72rem;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 34px rgba(0, 0, 0, 0.22);
  min-width: 0;
  text-align: left !important;
}

.status-glance-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 0.45rem;
}

.status-glance-list {
  list-style: disc;
  list-style-position: outside;
  display: block !important;
  margin: 0.2rem 0 0 !important;
  padding: 0 0 0 1rem !important;
  text-align: left !important;
}

.status-glance-item {
  display: list-item !important;
  margin: 0.24rem 0 !important;
  padding: 0 !important;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
  text-align: left !important;
  width: auto !important;
  max-width: none !important;
}

.status-glance-item strong {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f8fafc;
}

.status-glance-item::marker {
  color: rgba(148, 163, 184, 0.78);
}

.status-glance-link {
  display: inline !important;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none !important;
  color: #facc15;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-glance-card .hero-conditions-trigger,
.status-glance-card .hero-strategy-trigger {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.status-glance-link:hover {
  color: #fde68a;
}

.status-glance-ai-output {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.78);
}

.status-glance-ai-output.hidden {
  display: none;
}

.briefing-card {
  display: grid;
  gap: 0.75rem;
}

.briefing-card-copy {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
}

.briefing-card-loading {
  color: #93c5fd;
}

.briefing-card-error {
  color: #fca5a5;
}

.briefing-card-notice {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #facc15;
}

.briefing-card-meta {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.86);
}

.briefing-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.briefing-card-actions > * {
  min-width: 0;
}

.briefing-primary-btn,
.briefing-secondary-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.briefing-primary-btn[disabled],
.briefing-secondary-btn[disabled] {
  opacity: 0.58;
  cursor: default;
}

.briefing-primary-btn {
  border: 1px solid rgba(34, 211, 238, 0.36);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.94), rgba(8, 145, 178, 0.2));
  color: #ecfeff;
}

.briefing-secondary-btn {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.42);
  color: #e2e8f0;
}

.briefing-markdown {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.88);
}

.briefing-markdown h4,
.briefing-markdown h5 {
  margin: 0.9rem 0 0.35rem;
  font-weight: 800;
  color: #f8fafc;
}

.briefing-markdown h4 {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.briefing-markdown h5 {
  font-size: 0.76rem;
}

.briefing-markdown p {
  margin: 0.28rem 0;
}

.briefing-markdown ul {
  margin: 0.2rem 0 0.5rem 1rem;
  padding: 0;
}

.briefing-markdown li {
  margin: 0.18rem 0;
}

@media (max-width: 768px) {
  .status-glance-card {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

.strategy-shell,
.best-trip-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(8, 19, 35, 0.96), rgba(10, 24, 43, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.strategy-shell {
  padding: 1rem;
}

.strategy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.9rem;
}

.strategy-meta {
  max-width: 28rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.88);
}

.strategy-head-right {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.strategy-ai-trigger {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-ai-brief {
  margin-bottom: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 0.95rem;
  padding: 0.85rem 0.9rem;
  background: rgba(30, 27, 75, 0.25);
}

.strategy-ai-head {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.strategy-ai-copy {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.86);
  overflow-wrap: anywhere;
}

.strategy-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strategy-list {
  display: grid;
  gap: 0;
}

.strategy-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
}

.strategy-item:last-child {
  border-bottom: 0;
}

.strategy-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.strategy-item-content {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.strategy-item-content > div + div {
  margin-top: 0.18rem;
}

.strategy-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.95rem;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.58);
  min-width: 0;
}

.strategy-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

.strategy-card-lines {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.strategy-card-lines strong {
  color: #f8fafc;
  font-weight: 700;
}

.best-trip-card {
  position: relative;
  padding: 1rem 1rem 1.1rem;
  overflow: hidden;
}

.best-trip-title {
  margin-top: 0.3rem;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
  font-weight: 700;
}

.best-trip-sep {
  color: rgba(56, 189, 248, 0.7);
}

.best-trip-meta {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.best-trip-mvp {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #fcd34d;
  font-weight: 600;
}

.best-trip-rail {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.75), rgba(250, 204, 21, 0.75));
}

.lure-intel-shell {
  display: grid;
  gap: 1rem;
}

.lure-intel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lure-table-shell {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 0.25rem 0.55rem;
  background: rgba(2, 6, 23, 0.34);
}

.lure-intel-empty {
  padding: 1rem 0.5rem;
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.82);
  text-align: center;
}

.mvp-feed-item {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.95rem;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.45);
}

.mvp-feed-item + .mvp-feed-item {
  margin-top: 0.65rem;
}

.mvp-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.mvp-feed-date {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.78);
}

.mvp-feed-boat {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67e8f9;
  font-weight: 700;
}

.mvp-feed-copy {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.card {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

@media (max-width: 768px) {
  .top-nav {
    width: 100%;
    align-items: stretch;
  }

  .quick-catch-launcher-shell {
    padding-top: 0.35rem;
  }

  .quick-catch-launcher-btn {
    min-height: 3.5rem;
    border-radius: 1.05rem;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
  }

  #authSlot {
    display: flex;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }

  .actions-menu-wrap {
    width: 100%;
  }

  .actions-menu-trigger {
    width: 100%;
  }

  .nav-button {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }

  .action-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .catch-auth-grid {
    grid-template-columns: 1fr;
  }

  .catch-profile-form {
    grid-template-columns: 1fr;
  }

  .catch-profile-pin-field {
    max-width: none;
  }

  .section-frame {
    scroll-margin-top: 5rem;
  }

  .chart-wrap {
    height: 240px;
  }

  .season-chart-wrap {
    height: 220px;
  }

  .season-chart-wrap-tall {
    height: 250px;
  }

  .status-hero {
    padding: 0.9rem;
  }

  .status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .strategy-head-right {
    justify-items: start;
    width: 100%;
  }

  .app-frame {
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }

  .entry-row label {
    width: 100% !important;
    min-width: 0 !important;
  }

  .entry-row .danger-link {
    width: 100%;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .beta-banner {
    padding: max(2.9rem, calc(env(safe-area-inset-top) + 0.5rem)) 0.9rem 0.42rem;
    line-height: 1.35;
  }

  .top-bar {
    position: static;
    top: auto;
    padding-top: 0;
  }

  .top-bar-inner {
    gap: 0.45rem;
    padding-top: 0.12rem;
    padding-bottom: 0.4rem;
  }

  .briefing-card-actions {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }

  .top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    width: 100%;
  }

  .quick-catch-launcher-shell {
    padding-top: 0.4rem;
  }

  .quick-catch-launcher-btn {
    min-height: 3.6rem;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
  }

  .nav-button {
    min-height: 34px;
    padding: 0.35rem 0.6rem;
    font-size: 0.6rem;
  }

  .theme-button {
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    min-height: 2.1rem;
  }

  .notification-bell-btn {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.3rem;
  }

  .push-toggle-button {
    min-height: 38px;
  }

  .push-toggle-button {
    min-width: 0;
    width: 100%;
  }

  .app-frame {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.55rem;
    padding-bottom: 1rem;
  }

  .section-frame {
    scroll-margin-top: 1rem;
  }

  .section-frame,
  .panel-solid,
  .panel-muted,
  .data-card,
  .form-panel {
    border-radius: 0.85rem;
  }

  .chart-wrap {
    height: 210px;
  }

  .status-banner {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-modal-body {
    padding: 0.9rem 0.85rem calc(1rem + env(safe-area-inset-bottom));
  }

  .forecast-strip-fade {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    background: linear-gradient(to right, transparent, rgba(2, 6, 23, 0.92));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease;
  }

  .forecast-strip-fade.forecast-scroll-end {
    opacity: 0;
  }

  .forecast-hourly-matrix {
    overflow-x: visible;
  }

  .forecast-matrix-row {
    grid-template-columns: 3.35rem minmax(0, 1fr);
    gap: 0.46rem;
  }

  .forecast-matrix-label {
    font-size: 0.56rem;
    line-height: 1.1;
    position: static;
    background: transparent;
    padding-right: 0;
  }

  .forecast-matrix-hour {
    font-size: 0.5rem;
  }

  .forecast-matrix-value {
    font-size: 0.66rem;
  }

  .forecast-matrix-dir {
    font-size: 0.42rem;
    letter-spacing: 0.06em;
  }

  .forecast-hourly-score {
    max-width: none;
    height: 0.42rem;
    border-radius: 0.28rem;
  }

  .forecast-matrix-values {
    gap: 0.18rem;
  }

  .forecast-matrix-cell {
    min-height: 1.1rem;
  }

  .forecast-day-modal {
    padding: max(env(safe-area-inset-top), 0.7rem) 0.35rem max(env(safe-area-inset-bottom), 1rem);
  }

  .forecast-day-modal-shell {
    width: min(100%, 28.5rem);
    max-height: min(80dvh, 42rem);
    height: auto;
  }

  .forecast-modal-card {
    max-height: min(80dvh, 42rem);
    height: auto;
    border-radius: 1.1rem;
  }

  .forecast-modal-topbar {
    padding: 0.58rem 0.58rem 0;
  }

  .forecast-modal-body {
    max-height: calc(80dvh - 4.5rem);
    overflow-y: auto;
    padding: 0.38rem;
  }

  .forecast-modal-body-flat {
    padding: 0.4rem 0.5rem 0.75rem;
  }

  .solunar-detail-view {
    padding: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .solunar-detail-topline {
    display: grid;
    gap: 0.35rem;
  }

  .solunar-detail-phase-chip,
  .solunar-detail-summary-card,
  .solunar-detail-gauge-panel {
    justify-items: center;
    text-align: center;
  }

  .solunar-detail-hero,
  .solunar-detail-meta-grid,
  .solunar-detail-periods {
    grid-template-columns: 1fr;
  }

  .solunar-detail-topline,
  .solunar-detail-bars-head,
  .solunar-detail-period-header {
    justify-items: center;
    text-align: center;
  }

  .solunar-detail-bars-head,
  .solunar-detail-period-header {
    display: grid;
    gap: 0.24rem;
  }

  .solunar-detail-gauge {
    width: min(100%, 12rem);
  }

  .solunar-detail-bars {
    gap: 1px;
    height: 7.4rem;
  }

  .solunar-detail-axis {
    font-size: 0.54rem;
  }

  .solunar-detail-summary-label {
    font-size: 1.35rem;
  }

  .solunar-detail-meta-value {
    font-size: 0.78rem;
  }

  .solunar-detail-summary-copy,
  .solunar-detail-period-label,
  .solunar-detail-period-empty,
  .solunar-detail-section-copy {
    font-size: 0.64rem;
  }

  .forecast-modal-detail {
    max-height: none;
    overflow: visible;
  }

  .forecast-modal-day > div:first-child {
    padding: 0.6rem 0.7rem !important;
  }

  .forecast-modal-day > div:last-child {
    padding: 0.55rem 0.7rem 0.7rem !important;
  }

  .forecast-tooltip {
    display: none !important;
  }

  .forecast-hour-hover {
    display: none !important;
  }

  .status-heading-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.55rem;
  }

  .status-pill {
    min-height: 1.75rem;
    padding: 0.3rem 0.7rem;
  }

  .status-title {
    font-size: 0.88rem;
    line-height: 1.05;
    white-space: normal;
  }

  .status-copy-inline {
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-row-label {
    font-size: 0.52rem;
  }

  .metric-pill-primary {
    font-size: 0.44rem;
    padding: 0.12rem 0.3rem;
  }

  .metric-pill-secondary {
    font-size: 0.38rem;
    padding: 0.1rem 0.25rem;
  }

  .conditions-verdict-row {
    grid-template-columns: 1fr;
  }

  .cc-verdict-half {
    padding: 0.45rem 0.55rem;
  }

  .cc-verdict-half-divider {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .cc-zone-sub {
    font-size: 0.68rem;
  }

  .cc-metrics-wide { display: none; }
  .cc-metrics-narrow { display: grid; gap: 0; }

  .conditions-forecast-head {
    align-items: start;
  }

  .conditions-forecast-title-line {
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
  }

  .conditions-forecast-copy {
    font-size: 0.66rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .status-copy {
    font-size: 0.8rem;
  }

  .status-metric {
    padding: 0.6rem 0.65rem;
  }

  .status-metric-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.57rem;
  }

  .metric-source-link {
    font-size: 0.48rem;
  }

  .status-metric-value {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.12rem;
    font-size: 0.84rem;
    white-space: normal;
  }

  .status-metric-primary,
  .status-metric-trend-inline {
    display: block;
    max-width: 100%;
  }

  .status-metric-trend-inline {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .status-metric-trend-inline .trend-arrow {
    margin-left: 0.08rem;
  }

  .status-metric-sub {
    font-size: 0.62rem;
    line-height: 1.45;
  }

  .source-info-tooltip {
    width: min(250px, calc(100vw - 1rem));
  }

  .push-optin-content {
    gap: 0.75rem;
  }

  .push-optin-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .status-footer {
    flex-direction: column;
    gap: 0.3rem;
  }

  .catch-modal-overlay {
    padding: 0;
  }

  .catch-modal-content {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .catch-modal-head {
    padding-top: max(1rem, calc(0.5rem + env(safe-area-inset-top)));
  }

  .catch-modal-body {
    padding: 0.9rem 0.85rem 1rem;
  }

  .float-plan-modal-head {
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: max(0.9rem, calc(0.5rem + env(safe-area-inset-top)));
  }

  .float-plan-modal-head .catch-modal-close {
    min-width: 0;
    padding-inline: 1rem;
  }

  .float-plan-modal-body {
    padding: 0.9rem 0.85rem calc(0.9rem + env(safe-area-inset-bottom));
  }

  .float-plan-modal-actions {
    bottom: calc(-0.9rem - env(safe-area-inset-bottom));
    margin: 0 -0.85rem calc(-0.9rem - env(safe-area-inset-bottom));
    padding: 0.85rem 0.85rem calc(0.95rem + env(safe-area-inset-bottom));
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .float-plan-modal-actions button {
    width: 100%;
    min-height: 2.9rem;
  }

  .catch-enrich-content {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
  }

  .catch-enrich-actions {
    flex-direction: column;
  }

  .nws-alert-banner {
    padding: 0.65rem 0.75rem;
  }

  .nws-alert-title {
    font-size: 0.78rem;
  }

  .nws-alert-event {
    font-size: 0.76rem;
  }

  .nws-alert-headline {
    font-size: 0.72rem;
  }

  .nws-alert-instruction {
    font-size: 0.68rem;
  }

}

/* ── NWS Active Alert Banner ── */
.nws-alert-banner {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border: 1.5px solid;
}

.nws-alert-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.nws-alert-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 0.3rem;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nws-alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.nws-alert-summary {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(248, 250, 252, 0.78);
}

.nws-alert-detail-btn {
  margin-left: auto;
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.26);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.nws-alert-detail-btn:hover {
  background: rgba(15, 23, 42, 0.42);
}

.nws-alert-modal-content {
  width: min(38rem, 100%);
}

.nws-alert-modal-body {
  display: grid;
  gap: 0.7rem;
}

.nws-alert-modal-summary {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.78);
}

.nws-alert-item {
  padding: 0.45rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.18);
}

.nws-alert-item-modal {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.nws-alert-event {
  font-weight: 700;
  font-size: 0.82rem;
  color: #f8fafc;
  margin-bottom: 0.2rem;
}

.nws-alert-headline {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.35;
}

.nws-alert-expiry {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 0.15rem;
}

.nws-alert-instruction {
  font-size: 0.74rem;
  color: rgba(248, 250, 252, 0.7);
  margin-top: 0.3rem;
  line-height: 1.35;
  font-style: italic;
  overflow-wrap: anywhere;
}

/* Tier: Extreme — red/magenta pulse */
.nws-alert-extreme {
  background: rgba(127, 29, 29, 0.55);
  border-color: rgba(252, 165, 165, 0.7);
  animation: nws-alert-pulse 2s ease-in-out infinite;
}
.nws-pill-extreme {
  background: rgba(185, 28, 28, 0.8);
  color: #fecaca;
  border: 1px solid rgba(252, 165, 165, 0.5);
}

/* Tier: Warning — deep red */
.nws-alert-warning {
  background: rgba(127, 29, 29, 0.4);
  border-color: rgba(252, 165, 165, 0.5);
}
.nws-pill-warning {
  background: rgba(185, 28, 28, 0.65);
  color: #fecaca;
  border: 1px solid rgba(252, 165, 165, 0.4);
}

/* Tier: Watch — amber/orange */
.nws-alert-watch {
  background: rgba(120, 53, 15, 0.4);
  border-color: rgba(251, 191, 36, 0.5);
}
.nws-pill-watch {
  background: rgba(146, 64, 14, 0.7);
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Tier: Advisory — muted amber */
.nws-alert-advisory {
  background: rgba(120, 53, 15, 0.25);
  border-color: rgba(251, 191, 36, 0.3);
}
.nws-pill-advisory {
  background: rgba(146, 64, 14, 0.5);
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Tier: Info — cool blue */
.nws-alert-info {
  background: rgba(30, 58, 138, 0.3);
  border-color: rgba(147, 197, 253, 0.3);
}
.nws-pill-info {
  background: rgba(29, 78, 216, 0.5);
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.nws-capped-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
  flex-shrink: 0;
}

@keyframes nws-alert-pulse {
  0%, 100% { border-color: rgba(252, 165, 165, 0.7); }
  50% { border-color: rgba(248, 113, 113, 1); box-shadow: 0 0 12px rgba(239, 68, 68, 0.3); }
}

/* ── Welcome Gate (first-time / returning user onboarding) ── */
.welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(6, 78, 140, 0.35), transparent 65%),
    linear-gradient(180deg, #020617 0%, #0a1628 50%, #020617 100%);
  overflow-y: auto;
}
.welcome-gate-inner {
  width: min(100%, 24rem);
  text-align: center;
}
.welcome-gate-eyebrow {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent, #facc15);
  margin-bottom: 0.5rem;
}
.welcome-gate-title {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.35rem;
}
.welcome-gate-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 2.5rem;
}
.welcome-gate-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.welcome-gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, box-shadow 0.15s;
}
.welcome-gate-btn:active { transform: scale(0.98); }
.welcome-gate-btn-primary {
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  color: var(--accent-cool, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.welcome-gate-btn-primary:hover { box-shadow: 0 6px 24px rgba(56, 189, 248, 0.3); border-color: rgba(56, 189, 248, 0.4); }
.welcome-gate-btn-secondary {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.15);
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.welcome-gate-btn-secondary:hover { background: rgba(30, 41, 59, 0.8); border-color: rgba(148, 163, 184, 0.3); }
.welcome-gate-btn-icon {
  font-size: 1.1rem;
  opacity: 0.7;
}
.welcome-gate-hint {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #64748b;
}
.welcome-gate-form {
  text-align: left;
}
.welcome-gate-back {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.welcome-gate-back:hover { text-decoration: underline; }
.welcome-gate-field {
  display: block;
  margin-bottom: 1rem;
}
.welcome-gate-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.welcome-gate-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.welcome-gate-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}
.welcome-gate-input::placeholder { color: #475569; }
.welcome-gate-select-wrap {
  position: relative;
}
.welcome-gate-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2rem;
  cursor: pointer;
}
.welcome-gate-select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.6);
  pointer-events: none;
}
.welcome-gate-pin-input {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  font-weight: 700;
}
.welcome-gate-field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: #64748b;
}
.welcome-gate-checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  cursor: pointer;
}
.welcome-gate-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #38bdf8;
  cursor: pointer;
}
.welcome-gate-checkbox-label {
  font-size: 0.82rem;
  color: #cbd5e1;
}
.welcome-gate-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.welcome-gate-login-text {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.welcome-gate-pin-entry {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: text;
}
.welcome-gate-pin-entry input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: auto;
}
.welcome-gate-pin-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.welcome-gate-role-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.welcome-gate-role-btn {
  flex: 1;
  padding: 0.55rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  background: rgba(15, 23, 42, 0.6);
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.welcome-gate-role-btn + .welcome-gate-role-btn {
  border-left: 1px solid rgba(148, 163, 184, 0.15);
}
.welcome-gate-role-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cool, #38bdf8);
}
.welcome-gate-role-btn:hover:not(.active) {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}
.welcome-gate-form .welcome-gate-btn {
  margin-top: 0.5rem;
}

/* ── PIN Modal (top-bar auth) ── */
.pin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.pin-modal-card {
  width: min(100%, 22rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(8, 19, 35, 0.98), rgba(6, 17, 33, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.pin-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0;
}

.pin-modal-close {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 0.82rem;
  flex-shrink: 0;
  cursor: pointer;
}

.pin-modal-body {
  padding: 1rem 1.1rem 1.2rem;
}

.pin-modal-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.pin-modal-boat {
  font-size: 0.82rem;
  color: #94a3b8;
}

.pin-modal-phone {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.pin-modal-error {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #fb7185;
}

.pin-modal-menu-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  background: transparent;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.pin-modal-menu-btn:last-child {
  border-bottom: 0;
}

.pin-modal-menu-btn:hover {
  color: #38bdf8;
}

/* Auth slot in top nav */
.actions-menu-wrap {
  position: relative;
  display: inline-flex;
}

.actions-menu-trigger {
  position: relative;
  min-width: 7rem;
}

.actions-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 15rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  z-index: 80;
}

.actions-menu-header {
  padding: 0.3rem 0.45rem 0.55rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.actions-menu-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.actions-menu-subtitle {
  margin-top: 0.18rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
}

.actions-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.actions-menu-item:hover,
.actions-menu-item-active {
  background: rgba(30, 41, 59, 0.78);
}

.actions-menu-item-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.actions-menu-item-meta {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.76);
  text-align: right;
}

.actions-menu-badge,
.actions-menu-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
}

.actions-menu-badge {
  margin-left: 0.45rem;
}

.auth-slot-login {
  color: #cbd5e1;
}

.auth-slot-authed {
  color: #cbd5e1;
  max-width: 8.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .pin-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .pin-modal-card {
    width: 100%;
    border-radius: 1.15rem 1.15rem 0 0;
    max-height: 85vh;
    overflow-y: auto;
  }

  .auth-slot-authed {
    max-width: 5.5rem;
    font-size: 0.58rem;
  }

  .actions-menu-panel {
    min-width: 0;
    width: min(18rem, calc(100vw - 2rem));
  }
}

/* ── Setup Trigger Button ── */
.ios-install-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.75rem;
  margin: 0.75rem 1rem;
  padding: 0.75rem 1rem;
}
.ios-install-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ios-install-banner-text {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.ios-install-banner-text strong {
  color: #e2e8f0;
}
.ios-install-banner-dismiss {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.375rem;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ios-install-banner-dismiss:hover {
  background: rgba(59, 130, 246, 0.2);
}

.setup-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.375rem;
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-height: 2rem;
}

@media (min-width: 769px) {
  .top-nav {
    flex-wrap: nowrap;
  }

  .nav-button {
    padding: 0.45rem 0.9rem;
    font-size: 0.68rem;
  }

  .theme-button {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
  }

  .setup-trigger-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.62rem;
  }

  .push-toggle-button {
    min-width: 7.2rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

.setup-trigger-btn:hover {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
}

.setup-trigger-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 16rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 50;
}

.setup-trigger-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.96);
}

.setup-trigger-btn:hover .setup-trigger-tooltip {
  display: block;
}

@media (max-width: 480px) {
  .setup-trigger-btn {
    min-height: 34px;
    font-size: 0.55rem;
    padding: 0.3rem 0.55rem;
  }

  .setup-trigger-tooltip {
    display: none !important;
  }
}

/* ── Setup Guide ── */
.setup-guide-card {
  width: min(100%, 26rem);
}

.setup-guide-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setup-guide-intro {
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: rgba(71, 52, 7, 0.22);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.78rem;
  line-height: 1.5;
}

.setup-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: rgba(15, 23, 42, 0.5);
}

.setup-step-done {
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(20, 83, 45, 0.18);
}

.setup-step-warn {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(120, 53, 15, 0.15);
}

.setup-step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
}

.setup-step-done .setup-step-num {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

.setup-step-warn .setup-step-num {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.setup-step-body {
  min-width: 0;
}

.setup-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.setup-step-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
}

.setup-step-desc strong {
  color: #e2e8f0;
}

.setup-alert-list {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.88);
}

.setup-alert-list li {
  margin-bottom: 0.2rem;
}

.setup-alert-list strong {
  color: #e2e8f0;
}

/* ══════════════════════════════════════════
   FEED CHAT UI
   ══════════════════════════════════════════ */
.feed-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feed-panel-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.feed-panel-body > :not(.feed-member-sidebar) {
  transition: margin-right 0.2s ease;
}

.feed-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.95);
  flex-shrink: 0;
}

.feed-chat-back,
.feed-members-btn,
.feed-chat-close,
.feed-composer-plus,
.feed-mention-btn,
.feed-camera-btn,
.feed-member-close {
  background: none;
  border: none;
  cursor: pointer;
}

.feed-chat-back {
  color: #7dd3fc;
  font-size: 1.1rem;
  padding: 0 0.25rem;
}

.feed-group-select-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.feed-group-select {
  width: 100%;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.5rem;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.35rem 1.6rem 0.35rem 0.6rem;
}
.feed-group-select-chevron {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.6);
  pointer-events: none;
}

.feed-group-select optgroup {
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  font-size: 0.75rem;
}

.feed-group-select option {
  color: var(--text-primary, #e2e8f0);
  background: #1e293b;
}

.feed-members-btn,
.feed-chat-close,
.feed-member-close,
.feed-composer-plus,
.feed-mention-btn,
.feed-camera-btn {
  color: var(--text-muted, #94a3b8);
  padding: 0.2rem;
}

.feed-members-btn {
  position: relative;
}
.feed-members-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #f59e0b;
  color: #1e293b;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.feed-members-btn:hover,
.feed-chat-close:hover,
.feed-composer-plus:hover,
.feed-mention-btn:hover,
.feed-camera-btn:hover,
.feed-member-close:hover {
  color: #7dd3fc;
}

.feed-chat-close {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-height: 2rem;
}

.feed-chat-close-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.feed-chat-close-label {
  display: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.feed-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feed-date-separator {
  text-align: center;
  margin: 0.75rem 0;
}

.feed-date-separator span {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-muted, #94a3b8);
  font-size: 0.7rem;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
}

.feed-msg {
  display: flex;
  gap: 0.5rem;
  max-width: 85%;
  align-self: flex-start;
}

.feed-msg.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.feed-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feed-msg-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 0.65rem;
}

.feed-msg.mine .feed-msg-avatar {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.feed-msg-body {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 1rem;
  border-top-left-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  min-width: 0;
}

.feed-msg.mine .feed-msg-body {
  background: rgba(37, 99, 235, 0.3);
  border-top-left-radius: 1rem;
  border-top-right-radius: 0.25rem;
}

.feed-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}

.feed-msg-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7dd3fc;
}

.feed-msg.mine .feed-msg-name {
  color: #a5b4fc;
}

.feed-msg-time {
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
}

.feed-msg-text,
.feed-thread-reply-body {
  font-size: 0.8125rem;
  color: var(--text-primary, #e2e8f0);
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.feed-msg-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 0.5rem;
  margin: 0.25rem 0;
  cursor: pointer;
  object-fit: cover;
}

.feed-msg-actions {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.feed-msg-reactions,
.feed-reaction-picker {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.feed-system-msg {
  align-self: center;
  max-width: 90%;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  position: relative;
}
.feed-system-msg-dismiss {
  position: absolute;
  top: 2px;
  right: 4px;
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
}
.feed-system-msg-dismiss:hover {
  color: rgba(148, 163, 184, 0.8);
  background: rgba(148, 163, 184, 0.1);
}

.feed-system-msg.achievement {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.feed-system-msg.digest {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  text-align: left;
}

.feed-system-msg-text {
  white-space: pre-line;
}

.feed-msg-hover-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.feed-msg:hover .feed-msg-hover-actions,
.feed-msg:focus-within .feed-msg-hover-actions,
.feed-msg-hover-actions.open {
  opacity: 1;
  pointer-events: auto;
}

.feed-reaction-btn,
.feed-reaction-picker-btn,
.feed-load-more-btn,
.feed-reply-btn,
.feed-group-join-btn,
.feed-group-leave-btn,
.feed-group-delete-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 9999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
}

.feed-reaction-trigger,
.feed-thread-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.82);
  cursor: pointer;
}

.feed-reaction-btn.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.feed-reaction-trigger:hover,
.feed-thread-toggle:hover,
.feed-load-more-btn:hover,
.feed-reply-btn:hover,
.feed-group-delete-btn:hover {
  color: #cbd5e1;
}

.feed-thread-wrap {
  margin-top: 0.5rem;
}

.feed-thread-toggle.inline {
  margin-left: 0.1rem;
}

@media (hover: none), (pointer: coarse) {
  .feed-msg-hover-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

.feed-thread-reply {
  margin-left: 1rem;
  padding: 0.45rem 0.65rem;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 0.85rem;
  margin-bottom: 0.35rem;
}

.feed-thread-reply.mine {
  background: rgba(37, 99, 235, 0.18);
}

.feed-thread-reply-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.15rem;
}

.feed-thread-composer {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.45rem;
}

.feed-reply-composer-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.feed-reply-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 9999px;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.75rem;
  padding: 0.45rem 0.7rem;
  outline: none;
}

.feed-chat-composer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.5rem 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .feed-chat-header {
    padding-top: max(0.9rem, calc(env(safe-area-inset-top) + 0.45rem));
    padding-left: max(0.75rem, calc(env(safe-area-inset-left) + 0.35rem));
    padding-right: max(0.75rem, calc(env(safe-area-inset-right) + 0.35rem));
  }

  .feed-chat-close {
    padding: 0.25rem 0.35rem;
  }

  .feed-chat-close-icon {
    font-size: 1.6rem;
  }

  .feed-chat-close-label {
    display: inline;
  }

  .feed-chat-messages {
    padding-left: max(0.75rem, calc(env(safe-area-inset-left) + 0.2rem));
    padding-right: max(0.75rem, calc(env(safe-area-inset-right) + 0.2rem));
  }

  .feed-chat-composer {
    padding-left: max(0.75rem, calc(env(safe-area-inset-left) + 0.35rem));
    padding-right: max(0.75rem, calc(env(safe-area-inset-right) + 0.35rem));
    padding-bottom: max(0.5rem, calc(env(safe-area-inset-bottom) + 0.35rem));
  }

  .feed-composer-input-row {
    align-items: center;
  }

  .feed-post-btn {
    flex-shrink: 0;
    min-width: 4.6rem;
  }

  .feed-composer-input-wrap textarea,
  .feed-reply-input {
    font-size: 16px;
  }

  .feed-member-sidebar {
    top: env(safe-area-inset-top);
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.feed-composer-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.feed-composer-plus {
  font-size: 1.5rem;
  font-weight: 300;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.feed-composer-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
  padding: 0.4rem 0.75rem;
}

.feed-composer-input-wrap textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.8125rem;
  resize: none;
  outline: none;
  line-height: 1.4;
  max-height: 6rem;
  overflow-y: auto;
  font-family: inherit;
}

.feed-post-btn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.feed-post-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feed-image-preview {
  position: relative;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.feed-image-preview img {
  max-height: 120px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.feed-image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.feed-image-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.feed-image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.feed-member-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--feed-member-sidebar-width);
  background: rgba(15, 23, 42, 0.98);
  border-left: 1px solid rgba(148, 163, 184, 0.12);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feed-member-sidebar.open {
  transform: translateX(0);
}

.feed-member-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary, #e2e8f0);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.feed-member-search {
  margin: 0.5rem 0.75rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.5rem;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  outline: none;
}

.feed-member-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.75rem;
}

.feed-member-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.feed-member-info {
  flex: 1;
  min-width: 0;
}

.feed-member-name {
  font-size: 0.8rem;
  color: var(--text-primary, #e2e8f0);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-member-boat,
.feed-group-list-meta,
.feed-empty-state,
.feed-reply-empty {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}

.feed-member-boat {
  margin-top: 0.12rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-member-trail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  min-width: max-content;
}

.feed-member-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.feed-member-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.3rem;
  padding: 0.08rem 0.42rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.4);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fbbf24;
  white-space: nowrap;
}

.feed-member-role.captain {
  color: #f59e0b;
  font-weight: 700;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.feed-member-role.admin {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
}
.feed-member-role.tu {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}
.feed-member-tu-toggle {
  min-height: 1.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.08rem 0.38rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.4);
  color: #64748b;
  cursor: pointer;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.feed-member-tu-toggle:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #94a3b8;
}
.feed-member-tu-toggle.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.feed-member-admin-actions,
.feed-captain-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0;
  flex-wrap: nowrap;
}

.feed-member-promote,
.feed-group-pending-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9999px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.66rem;
  padding: 0.18rem 0.45rem;
  cursor: pointer;
}

.feed-member-promote:hover {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
}

.feed-member-remove {
  background: none;
  border: none;
  color: rgba(248, 113, 113, 0.7);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.feed-member-remove:hover {
  color: #f87171;
}

.feed-member-delete-angler {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 0.2rem;
  opacity: 0.5;
  transition: opacity 0.15s;
  align-self: flex-end;
}

.feed-member-delete-angler:hover {
  opacity: 1;
}

.feed-captain-pending {
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.feed-captain-transfer {
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.06);
}

.feed-captain-transfer-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f59e0b;
}

.feed-captain-transfer-current {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary, #e2e8f0);
}

.feed-captain-transfer-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.feed-captain-select {
  flex: 1;
  min-width: 0;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.6rem;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.78rem;
  padding: 0.42rem 0.55rem;
  outline: none;
}

.feed-captain-select:focus {
  border-color: rgba(245, 158, 11, 0.45);
}

.feed-captain-transfer-note {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.72);
}

.feed-captain-pending-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f59e0b;
  padding: 0.25rem 0;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feed-member-item.pending {
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0.375rem;
  padding: 0.4rem 0.3rem;
}

.feed-captain-approve,
.feed-captain-reject {
  width: 28px;
  height: 28px;
  border-radius: 0.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid transparent;
}

.feed-captain-approve {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.feed-captain-approve:hover {
  background: rgba(74, 222, 128, 0.25);
}

.feed-captain-reject {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.feed-captain-reject:hover {
  background: rgba(248, 113, 113, 0.25);
}

.feed-pending-prompt {
  text-align: center;
  padding: 1.5rem;
  color: #f59e0b;
  font-size: 0.875rem;
}

.feed-pending-prompt-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feed-group-manager {
  padding: 0.75rem;
}

.feed-group-manager-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.feed-group-manager-back {
  background: none;
  border: none;
  color: #7dd3fc;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0 0.2rem 0 0;
  flex-shrink: 0;
}

.feed-group-manager-header .feed-panel-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .feed-group-manager {
    padding-top: max(0.9rem, calc(env(safe-area-inset-top) + 0.45rem));
    padding-left: max(0.75rem, calc(env(safe-area-inset-left) + 0.35rem));
    padding-right: max(0.75rem, calc(env(safe-area-inset-right) + 0.35rem));
    padding-bottom: max(0.75rem, calc(env(safe-area-inset-bottom) + 0.35rem));
  }

  .feed-group-manager-header {
    gap: 0.65rem;
    margin-bottom: 0.9rem;
  }

  .feed-group-manager-back {
    font-size: 1.35rem;
  }

  .feed-group-manager-header .feed-panel-title {
    font-size: 1.05rem;
  }
}

.feed-group-captain-badge {
  margin-left: 0.35rem;
  color: #f59e0b;
}

.feed-group-create-form {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.feed-group-create-form input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.375rem;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.8125rem;
  padding: 0.4rem 0.6rem;
  outline: none;
  margin-bottom: 0.5rem;
}

.feed-group-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.feed-group-list-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary, #e2e8f0);
}

.feed-group-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  margin-left: 0.25rem;
}

.feed-group-type-badge.harbor {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.feed-group-type-badge.custom {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.feed-group-join-btn {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.feed-group-leave-btn,
.feed-group-delete-btn {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.feed-join-prompt {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.875rem;
}

.feed-join-prompt-btn {
  margin-top: 0.5rem;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.feed-mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  margin-bottom: 4px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.feed-mention-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
}

.feed-mention-item:hover,
.feed-mention-item.active {
  background: rgba(56, 189, 248, 0.1);
}

.feed-mention-name {
  color: var(--text-primary, #e2e8f0);
  font-weight: 600;
}

.feed-mention-boat {
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
}

.feed-mention-highlight {
  color: #7dd3fc;
  font-weight: 600;
}

.feed-load-more-wrap.top {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .feed-member-sidebar {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catch-modal-content {
    height: 100svh;
    max-height: 100svh;
  }

  .catch-modal-content.catch-modal-content-trip-report {
    max-height: 100svh;
  }

  .catch-modal-head {
    gap: 0.65rem;
    padding: max(0.65rem, calc(0.4rem + env(safe-area-inset-top))) 0.75rem 0.65rem;
  }

  .catch-modal-body {
    padding: 0.7rem 0.75rem calc(0.8rem + env(safe-area-inset-bottom));
  }

  .catch-modal-body.catch-modal-body-trip-report {
    padding: 0.75rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom));
  }

  .catch-modal-close {
    min-width: 4.45rem;
    min-height: 2.15rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .float-plan-name {
    font-size: 0.86rem;
  }

  .float-plan-sub,
  .float-plan-time {
    font-size: 0.75rem;
  }

  .float-plan-detail-head {
    gap: 0.55rem;
  }

  .float-plan-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.75rem;
  }

  .float-plan-detail-list > div:nth-child(3),
  .float-plan-detail-list > div:nth-child(4),
  .float-plan-detail-list > div:nth-child(7) {
    grid-column: 1 / -1;
  }

  .float-plan-detail-list > div {
    gap: 0.12rem;
    min-width: 0;
  }

  .float-plan-modal-body {
    padding: 0.75rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom));
  }

  .float-plan-modal-actions {
    bottom: calc(-0.75rem - env(safe-area-inset-bottom));
    margin: 0 -0.75rem calc(-0.75rem - env(safe-area-inset-bottom));
    padding: 0.7rem 0.75rem calc(0.8rem + env(safe-area-inset-bottom));
    gap: 0.45rem;
  }

  .float-plan-modal-actions button {
    min-height: 2.45rem;
    font-size: 0.72rem;
  }

  .trip-report-form {
    gap: 0.8rem;
    padding: 0.15rem 0;
  }

  .trip-report-title {
    font-size: 0.92rem;
  }

  .trip-report-subtitle,
  .trip-report-catch-summary,
  .trip-report-big-fish-summary,
  .trip-report-send-note,
  .trip-report-status {
    font-size: 0.74rem;
  }

  .trip-report-draft-note,
  .trip-report-prefill,
  .trip-report-photo-helper,
  .trip-report-edit-hint {
    font-size: 0.68rem;
  }

  .trip-report-field {
    gap: 0.2rem;
  }

  .trip-report-field label {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .trip-report-field input,
  .trip-report-field textarea,
  .trip-report-body-textarea {
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
  }

  .trip-report-body-textarea {
    min-height: 7.5rem;
    line-height: 1.5;
  }

  .depth-range-row {
    gap: 0.35rem;
  }

  .depth-range-row input {
    width: 4.25rem;
  }

  .feed-member-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .feed-member-name {
    font-size: 0.77rem;
  }

  .feed-member-boat {
    font-size: 0.66rem;
  }

  .feed-member-promote {
    font-size: 0.62rem;
    padding: 0.16rem 0.38rem;
  }

  .rod-spread-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .trip-report-resume-shell,
  .trip-report-actions {
    flex-direction: column;
  }

  .trip-report-resume-actions .action-button,
  .trip-report-resume-actions .ghost-button,
  .trip-report-actions button {
    min-width: 100%;
  }

  .trip-report-actions button {
    min-height: 2.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 768px) {
  .app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  .app-shell textarea,
  .app-shell select {
    font-size: 16px !important;
  }
}

@media (min-width: 769px) {
  .feed-panel.members-open {
    width: min(720px, calc(100vw - 2rem));
    height: min(680px, calc(100vh - 7rem));
  }

  .feed-panel-body.members-open > :not(.feed-member-sidebar) {
    margin-right: var(--feed-member-sidebar-width);
  }
}
