/* ═══════════════════════════════════════════════════════════════════════════
   Sailor's Portal — Shared Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Portal Header ─────────────────────────────────────────────────────── */
.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.portal-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.portal-header__logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 4px;
}

.portal-header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.portal-header__tabs {
  display: flex;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.portal-header__tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0 1rem;
  height: 56px;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.portal-header__tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-bottom-color: var(--sea-light);
}

.portal-header__tab--active {
  color: #fff;
  border-bottom-color: var(--sea-light);
  font-weight: 600;
}

.portal-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.portal-header__back {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-decoration: none !important;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.portal-header__back:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.portal-header__theme-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
}
.portal-header__theme-toggle:hover { background: rgba(255,255,255,0.12); }

.portal-header__user-wrap {
  position: relative;
}

.portal-header__user-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-header__user-btn:hover { background: #2563eb; }

.portal-header__user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  min-width: 200px;
  z-index: 2000;
  overflow: hidden;
}

.portal-header__user-dropdown--open {
  display: block;
}

.portal-header__user-dropdown-name {
  padding: 0.85rem 1rem 0.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.portal-header__user-dropdown-role {
  padding: 0 1rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.portal-header__dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
}
.portal-header__dropdown-item:hover { background: var(--gray-100); }

.portal-header__dropdown-item--upgrade {
  color: var(--sea);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.portal-header__dropdown-item--upgrade:hover { background: var(--sea-pale); }

.portal-header__dropdown-item--signout {
  color: var(--coral, #e74c3c);
}
.portal-header__dropdown-item--signout:hover { background: #fff0f0; }

/* ─── Portal Page Layout ────────────────────────────────────────────────── */
.portal-page {
  margin-top: 56px;
  min-height: calc(100vh - 56px);
  padding: 2rem 1.5rem 4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.portal-page__title {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin: 0 0 0.25rem;
}

.portal-page__subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

/* ─── Login Prompt (shown when logged out) ──────────────────────────────── */
.portal-login-msg {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.portal-login-msg h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.portal-login-msg p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.portal-login-msg a {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ─── Role Badge ────────────────────────────────────────────────────────── */
.portal-role-badge {
  display: inline-block;
  padding: 0.25em 0.85em;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.portal-role-badge--crew {
  background: var(--sea-pale);
  color: var(--sea);
}

.portal-role-badge--owner {
  background: #d4edda;
  color: #155724;
}

/* ─── Dashboard Cards Grid ──────────────────────────────────────────────── */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.portal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--sea);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,127,165,0.12);
}

.portal-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.portal-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-heading);
  margin: 0 0 0.35rem;
}

.portal-card__count {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.portal-card__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.portal-card__link:hover { text-decoration: underline; }

/* ─── Next Up Preview ───────────────────────────────────────────────────── */
.portal-next-up {
  margin-top: 2rem;
}

.portal-next-up__title {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.portal-next-event {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.15s;
}
.portal-next-event:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.portal-next-event__date {
  text-align: center;
  min-width: 56px;
}

.portal-next-event__day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

.portal-next-event__month {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-next-event__info {
  flex: 1;
}

.portal-next-event__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}

.portal-next-event__details {
  font-size: 0.85rem;
  color: var(--text-light);
}

.portal-next-event__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── Event Cards ───────────────────────────────────────────────────────── */
.portal-events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-event {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.15s;
}
.portal-event:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.portal-event__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.portal-event__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
}

.portal-event__type-badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.portal-event__type-badge--race { background: #fff3cd; color: #856404; }
.portal-event__type-badge--outing { background: var(--sea-pale); color: var(--sea); }
.portal-event__type-badge--maintenance { background: #d4edda; color: #155724; }
.portal-event__type-badge--social { background: #f8d7da; color: #721c24; }

.portal-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.portal-event__expand {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0;
}
.portal-event__expand:hover { text-decoration: underline; }

.portal-event__body {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.portal-event__body--open {
  display: block;
}

/* ─── Equipment List ────────────────────────────────────────────────────── */
.portal-equip-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-equip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.portal-equip:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.portal-equip--flagged {
  border-left: 4px solid var(--amber);
}

.portal-equip__flag {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.portal-equip__info {
  flex: 1;
  min-width: 0;
}

.portal-equip__name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.portal-equip__sub {
  font-size: 0.82rem;
  color: var(--text-light);
}

.portal-equip__category {
  font-size: 0.78rem;
  padding: 0.15em 0.6em;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--text-light);
  white-space: nowrap;
}

/* ─── Category Filter Tabs ──────────────────────────────────────────────── */
.portal-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.portal-filter-tab {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}

.portal-filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.portal-filter-tab--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ─── To-Do List ────────────────────────────────────────────────────────── */
.portal-todos {
  margin-top: 2.5rem;
}

.portal-todos__title {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.portal-todo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.portal-todo__check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: all 0.15s;
}

.portal-todo__check--done {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.portal-todo__text {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text);
}

.portal-todo__text--done {
  text-decoration: line-through;
  color: var(--text-light);
}

.portal-todo__priority {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15em 0.55em;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portal-todo__priority--low { background: var(--gray-100); color: var(--text-light); }
.portal-todo__priority--medium { background: var(--sea-pale); color: var(--sea); }
.portal-todo__priority--high { background: #fff3cd; color: #856404; }
.portal-todo__priority--urgent { background: #f8d7da; color: #721c24; }

.portal-todo__linked {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}

/* ─── Chat ──────────────────────────────────────────────────────────────── */
.portal-chat {
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--bg-alt);
}

.portal-chat__msg {
  margin-bottom: 0.75rem;
}

.portal-chat__msg-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.portal-chat__msg-time {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-left: 0.5rem;
}

.portal-chat__msg-text {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.15rem;
}

.portal-chat__input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.portal-chat__input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.portal-chat__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(45,61,74,0.1);
}

/* ─── Forms (reuse auth patterns) ───────────────────────────────────────── */
.portal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(45,61,74,0.1);
}

.portal-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none !important;
  min-height: 44px;
}

.portal-btn--primary {
  background: var(--accent);
  color: #fff;
}
.portal-btn--primary:hover { background: var(--sea-light); color: #fff; }

.portal-btn--secondary {
  background: var(--gray-200);
  color: var(--text);
}
.portal-btn--secondary:hover { background: var(--gray-300); }

.portal-btn--danger {
  background: var(--coral);
  color: #fff;
}
.portal-btn--danger:hover { background: #c0392b; color: #fff; }

.portal-btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  min-height: 36px;
}

.portal-btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.portal-btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Modal ─────────────────────────────────────────────────────────────── */
.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portal-modal {
  background: var(--bg);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.portal-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--text-heading);
}

.portal-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.portal-modal__close:hover { color: var(--text); }

/* ─── Toolbar ───────────────────────────────────────────────────────────── */
.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.portal-search {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}
.portal-search:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(45,61,74,0.1);
}

/* ─── Section Tabs ──────────────────────────────────────────────────────── */
.portal-section-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.portal-section-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.portal-section-tab:hover {
  color: var(--text);
}

.portal-section-tab--active {
  color: var(--text-heading);
  border-bottom-color: var(--accent);
}

/* ─── Empty State ───────────────────────────────────────────────────────── */
.portal-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}

.portal-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.portal-empty__text {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ─── Crew List ─────────────────────────────────────────────────────────── */
.portal-crew-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-crew-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.portal-crew-member__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-crew-member__avatar--ghost {
  background: var(--gray-400);
}

.portal-crew-member__info {
  flex: 1;
  min-width: 0;
}

.portal-crew-member__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.portal-crew-member__role {
  font-size: 0.78rem;
  color: var(--text-light);
}

.portal-crew-member__status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15em 0.6em;
  border-radius: 10px;
}

.portal-crew-member__status--accepted { background: #d4edda; color: #155724; }
.portal-crew-member__status--invited { background: var(--sea-pale); color: var(--sea); }
.portal-crew-member__status--declined { background: #f8d7da; color: #721c24; }
.portal-crew-member__status--tentative { background: #fff3cd; color: #856404; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .portal-header__logo-text { display: none; }
  .portal-header__back { font-size: 0.78rem; padding: 0.3rem 0.6rem; }
  .portal-header__tabs { gap: 0; }
  .portal-header__tab { padding: 0 0.7rem; font-size: 0.82rem; }
}

@media (max-width: 600px) {
  .portal-page {
    padding: 1.25rem 1rem 3rem;
  }

  .portal-page__title { font-size: 1.25rem; }

  .portal-cards {
    grid-template-columns: 1fr;
  }

  .portal-next-event {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .portal-next-event__actions {
    width: 100%;
  }

  .portal-next-event__actions .portal-btn {
    flex: 1;
  }

  .portal-header__right {
    gap: 0.4rem;
  }

  .portal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-search { min-width: auto; }
}

/* ─── Dark Theme ────────────────────────────────────────────────────────── */
[data-theme="dark"] .portal-card {
  background: #1e2c3f;
  border-color: #2d3d4a;
}

[data-theme="dark"] .portal-next-event {
  background: #1e2c3f;
  border-color: #2d3d4a;
}

[data-theme="dark"] .portal-event {
  background: #1e2c3f;
  border-color: #2d3d4a;
}

[data-theme="dark"] .portal-equip {
  background: #1e2c3f;
  border-color: #2d3d4a;
}

[data-theme="dark"] .portal-chat {
  background: #151e2b;
  border-color: #2d3d4a;
}

[data-theme="dark"] .portal-modal {
  background: #1e2c3f;
}

[data-theme="dark"] .portal-field input,
[data-theme="dark"] .portal-field select,
[data-theme="dark"] .portal-field textarea {
  background: #151e2b;
  border-color: #2d3d4a;
  color: #c8d8e8;
}

[data-theme="dark"] .portal-field input:focus,
[data-theme="dark"] .portal-field select:focus,
[data-theme="dark"] .portal-field textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(74,127,165,0.2);
}

[data-theme="dark"] .portal-search {
  background: #151e2b;
  border-color: #2d3d4a;
  color: #c8d8e8;
}

[data-theme="dark"] .portal-search:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(74,127,165,0.2);
}

[data-theme="dark"] .portal-todo__check {
  background: #151e2b;
  border-color: #3d4f5e;
}

[data-theme="dark"] .portal-crew-member {
  background: #1e2c3f;
  border-color: #2d3d4a;
}

[data-theme="dark"] .portal-equip__category {
  background: #243347;
  color: #98afc4;
}

[data-theme="dark"] .portal-filter-tab {
  background: #1e2c3f;
  border-color: #2d3d4a;
  color: #98afc4;
}

[data-theme="dark"] .portal-filter-tab:hover {
  border-color: var(--sea);
  color: var(--sea-light);
}

[data-theme="dark"] .portal-section-tabs {
  border-bottom-color: #2d3d4a;
}

[data-theme="dark"] .portal-section-tab {
  color: #7a8fa8;
}

[data-theme="dark"] .portal-section-tab:hover {
  color: #c8d8e8;
}

[data-theme="dark"] .portal-section-tab--active {
  color: #89b4d4;
}

[data-theme="dark"] .portal-todo {
  border-bottom-color: #2d3d4a;
}

[data-theme="dark"] .portal-header__user-dropdown {
  background: #1e2c3f;
  border-color: #2d3d4a;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

[data-theme="dark"] .portal-header__user-dropdown-name { color: #c8d8e8; }
[data-theme="dark"] .portal-header__user-dropdown-role { color: #7a8fa8; border-bottom-color: #2d3d4a; }

[data-theme="dark"] .portal-header__dropdown-item { color: #c8d8e8; }
[data-theme="dark"] .portal-header__dropdown-item:hover { background: #243347; }

[data-theme="dark"] .portal-header__dropdown-item--upgrade { border-bottom-color: #2d3d4a; }
[data-theme="dark"] .portal-header__dropdown-item--upgrade:hover { background: #1a2d3a; }

[data-theme="dark"] .portal-header__dropdown-item--signout:hover { background: #2d1f1f; }
