/* =============================================================
   Shisha Map — Dark Theme
   フライヤーのカラートーン（#12100e / #f0e8d0 / #1a3a38）に合わせた
   ダークテーマ上書き用CSS。既存の style.css / landing.css / auth.css は変更しない。
   <html data-theme="dark"> が付いたときのみ適用される。
   ============================================================= */

/* ── カラーパレット変数 ─────────────────────────── */
:root[data-theme="dark"] {
  /* 背景 */
  --sl-bg:              #12100e;
  --sl-surface:         #1c1814;
  --sl-surface-2:       #241f18;

  /* テキスト */
  --sl-text:            #f0e8d0;
  --sl-text-secondary:  #a89475;
  --ink:                #f0e8d0;
  --muted:              #a89475;
  --paper:              #1c1814;
  --soft:               #241f18;

  /* ボーダー */
  --sl-border:          rgba(240, 232, 208, 0.12);
  --line:               rgba(240, 232, 208, 0.12);

  /* プライマリ（フライヤーのフッターティール） */
  --sl-primary:         #3a8c72;

  /* シャドウ（暖色調に） */
  --sl-shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.3);
  --sl-shadow-md:       0 4px 12px rgba(0, 0, 0, 0.4);
  --sl-shadow-lg:       0 12px 28px rgba(0, 0, 0, 0.5);
  --shadow:             0 14px 34px rgba(0, 0, 0, 0.4);

  /* CTA */
  --cta-primary-bg:     linear-gradient(135deg, #2a6b58, #1a4a3a);
  --cta-primary-color:  #f0e8d0;
  --cta-secondary-bg:   #241f18;
  --cta-secondary-color: #c4a068;
  --cta-secondary-border: rgba(196, 160, 104, 0.3);
  --cta-like-bg:        #1c1814;
  --cta-like-border:    rgba(255, 100, 80, 0.25);
  --cta-liked-bg:       #2a1a18;
  --cta-liked-border:   rgba(255, 59, 48, 0.25);
}

/* ── ベース ─────────────────────────────────────── */
[data-theme="dark"] body {
  background: #12100e !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="maintenance"] {
  background: #12100e !important;
  color: #f0e8d0 !important;
}

/* ── サイトヘッダー ──────────────────────────────── */
[data-theme="dark"] .site-header {
  border-bottom-color: rgba(240, 232, 208, 0.1) !important;
  background: rgba(18, 16, 14, 0.9) !important;
}

[data-theme="dark"] .nav a {
  color: #c4b89a;
}

[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav a.active {
  background: #241f18;
  color: #f0e8d0;
}

/* ── ボトムナビ ──────────────────────────────────── */
[data-theme="dark"] .bottom-nav {
  border-top-color: rgba(240, 232, 208, 0.1) !important;
  background: rgba(18, 16, 14, 0.92) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .bottom-nav a {
  color: #7a6e5e !important;
}

[data-theme="dark"] .bottom-nav a.active {
  color: #f0e8d0 !important;
  background: #241f18 !important;
}

[data-theme="dark"] .bottom-nav .bottom-checkin {
  margin-top: 0 !important;
  min-height: 64px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7a6e5e !important;
}

[data-theme="dark"] .bottom-nav .bottom-checkin::before {
  background: currentColor !important;
}

/* ── ボトムナビの状態色を全ページで統一 ───────────────────── */
[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav,
[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) > .bottom-nav {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: rgba(18, 16, 14, 0.96) !important;
}

[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav a,
[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav .bottom-checkin {
  background: transparent !important;
  color: #7a6e5e !important;
}

[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav a::before,
[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav .bottom-checkin::before {
  color: #7a6e5e !important;
  background-color: currentColor !important;
}

[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav a.active,
[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav .bottom-checkin.active {
  background: #241f18 !important;
  color: #f0e8d0 !important;
  font-weight: 850 !important;
}

[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav a.active::before,
[data-theme="dark"] body:not([data-page="access"]):not([data-page="guest"]) .bottom-nav .bottom-checkin.active::before {
  color: #f0e8d0 !important;
  background-color: currentColor !important;
}

/* ── メインコンテナ ──────────────────────────────── */
[data-theme="dark"] .main {
  background: #12100e !important;
  color: #f0e8d0 !important;
}

/* ── カード・パネル ──────────────────────────────── */
[data-theme="dark"] .card,
[data-theme="dark"] .panel {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .sl-card {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
}

/* ── ボタン ──────────────────────────────────────── */
[data-theme="dark"] .btn {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .btn.primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #1a3a38, #2a6b58) !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .btn.dark {
  background: #f0e8d0 !important;
  color: #12100e !important;
}

[data-theme="dark"] .btn.ghost {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: transparent !important;
  color: #c4b89a !important;
}

/* ── sl-btn ──────────────────────────────────────── */
[data-theme="dark"] .sl-btn {
  border-color: rgba(240, 232, 208, 0.12);
  background: #241f18;
  color: #c4a068;
}

[data-theme="dark"] .sl-btn.primary {
  border-color: transparent;
  background: #2a6b58;
  color: #f0e8d0;
  box-shadow: 0 8px 18px rgba(42, 107, 88, 0.3);
}

[data-theme="dark"] .sl-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: #c4a068;
}

[data-theme="dark"] .sl-btn.disabled {
  background: #1c1814;
  color: #5a5246;
}

/* ── チップ ──────────────────────────────────────── */
[data-theme="dark"] .sl-chip {
  border-color: rgba(240, 232, 208, 0.12);
  background: #1c1814;
  color: #c4b89a;
}

[data-theme="dark"] .sl-chip.active {
  border-color: rgba(58, 140, 114, 0.5);
  background: #1a2e28;
  color: #4fb894;
}

/* ── フォーム ────────────────────────────────────── */
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .form-grid > label > span,
[data-theme="dark"] .field label {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .form-grid input,
[data-theme="dark"] .form-grid select,
[data-theme="dark"] .form-grid textarea,
[data-theme="dark"] input.search {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
  color-scheme: dark;
}

[data-theme="dark"] .form-grid input::placeholder,
[data-theme="dark"] .form-grid textarea::placeholder,
[data-theme="dark"] input.search::placeholder {
  color: #7a6e5e !important;
}

[data-theme="dark"] .form-grid select option {
  background: #1c1814;
  color: #f0e8d0;
}

[data-theme="dark"] .form-grid input[type="checkbox"],
[data-theme="dark"] .form-grid input[type="radio"] {
  accent-color: #3a8c72;
}

[data-theme="dark"] .form-grid > label.contact-privacy-acceptance > span {
  color: #c4b89a !important;
}

[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder {
  color: #7a6e5e !important;
}

[data-theme="dark"] .readonly-field {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #12100e !important;
}

[data-theme="dark"] .media-edit-preview {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #12100e !important;
}

[data-theme="dark"] .sl-field input,
[data-theme="dark"] .sl-field select,
[data-theme="dark"] .sl-search input {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .sl-field.active input {
  border-color: rgba(58, 140, 114, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(58, 140, 114, 0.12) !important;
}

[data-theme="dark"] .sl-field.error input {
  border-color: #c0392b !important;
  background: #1e1414 !important;
}

[data-theme="dark"] .sl-search {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #1c1814 !important;
}

[data-theme="dark"] .sl-search-results {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #1c1814 !important;
}

[data-theme="dark"] .sl-search-results a {
  border-bottom-color: rgba(240, 232, 208, 0.08) !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .sl-search-results a:hover {
  background: #241f18 !important;
}

/* ── テキスト系 ──────────────────────────────────── */
[data-theme="dark"] .eyebrow {
  color: #a89475;
}

[data-theme="dark"] .lead {
  color: #c4b89a;
}

/* ── セクション見出し行 ──────────────────────────── */
[data-theme="dark"] .section-head p {
  color: #a89475;
}

/* ── skater/ログカード ───────────────────────────── */
[data-theme="dark"] .skater-card {
  border-color: rgba(240, 232, 208, 0.1);
  background: #1c1814;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .skater-line {
  border-bottom-color: rgba(240, 232, 208, 0.1);
}

[data-theme="dark"] .icon-box {
  border-color: rgba(240, 232, 208, 0.1);
  background: #241f18;
  color: #c4a068;
}

/* ── リスト行 ────────────────────────────────────── */
[data-theme="dark"] .sl-list-row {
  border-bottom-color: rgba(240, 232, 208, 0.08);
}

/* ── フォーカスアウトライン ──────────────────────── */
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] input:focus-visible,
[data-theme="dark"] select:focus-visible,
[data-theme="dark"] textarea:focus-visible,
[data-theme="dark"] [role="button"]:focus-visible,
[data-theme="dark"] [tabindex]:focus-visible {
  outline-color: rgba(58, 140, 114, 0.5);
}

/* ── ゲスト向けUI ────────────────────────────────── */
[data-theme="dark"] .guest-v2-search input {
  border-color: rgba(240, 232, 208, 0.15);
  background: #1c1814;
  color: #f0e8d0;
}

[data-theme="dark"] .guest-signup-input {
  border-color: rgba(240, 232, 208, 0.15);
  background: #1c1814;
  color: #f0e8d0;
}

[data-theme="dark"] .guest-signup-input:focus-within {
  border-color: rgba(58, 140, 114, 0.6);
}

[data-theme="dark"] .guest-signup-form input,
[data-theme="dark"] .guest-signup-form select {
  border-color: rgba(240, 232, 208, 0.15);
  background: #1c1814;
  color: #f0e8d0;
}

[data-theme="dark"] .guest-log-card {
  border-color: rgba(240, 232, 208, 0.1);
  background: #1c1814;
}

/* ── モーダル・ボトムシート ──────────────────────── */
[data-theme="dark"] .sl-modal-preview,
[data-theme="dark"] .sl-bottom-sheet-preview {
  border-color: rgba(240, 232, 208, 0.1);
  background: #1c1814;
}

[data-theme="dark"] .sl-modal-card {
  border-color: rgba(240, 232, 208, 0.1);
  background: #241f18;
}

/* ── フィルタータブ ──────────────────────────────── */
[data-theme="dark"] .log-filter-tabs a {
  border-color: rgba(240, 232, 208, 0.12);
  background: #1c1814;
  color: #a89475;
}

[data-theme="dark"] .log-filter-tabs a.active {
  border-color: rgba(58, 140, 114, 0.5);
  background: #1a2e28;
  color: #4fb894;
}

/* ── バッジ ──────────────────────────────────────── */
[data-theme="dark"] .badge-medal {
  background: #241f18;
  border-color: rgba(240, 232, 208, 0.15);
}

[data-theme="dark"] .badge-card {
  border-color: rgba(240, 232, 208, 0.1);
  background: #1c1814;
}

[data-theme="dark"] .badge-card.locked {
  opacity: 0.4;
}

/* ── ホームプロフィール ──────────────────────────── */
[data-theme="dark"] .home-profile {
  background: #1a3a38;
  color: #f0e8d0;
}

[data-theme="dark"] .profile-id-link {
  border-color: rgba(240, 232, 208, 0.12);
  background: #12100e;
  color: #a89475;
}

/* ── フッター ────────────────────────────────────── */
[data-theme="dark"] .footer {
  background: #0e1a18;
}

/* ── チェックイン系 ──────────────────────────────── */
[data-theme="dark"] .ds-checkin-preview textarea {
  border-color: rgba(240, 232, 208, 0.12);
  background: #1c1814;
  color: #f0e8d0;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-hero {
  background:
    radial-gradient(circle at 92% 16%, rgba(58, 140, 114, 0.22) 0 42px, transparent 43px),
    radial-gradient(circle at 12% 92%, rgba(196, 160, 104, 0.16) 0 36px, transparent 37px),
    linear-gradient(180deg, #1c1814, #12100e);
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-title p,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-lead,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-status-card span,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-status-card small {
  color: #c4b89a;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-title h1,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-status-card strong {
  color: #f0e8d0;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-status-card {
  border-color: rgba(240, 232, 208, 0.14);
  background: rgba(28, 24, 20, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-status-card > i {
  background: #1a2e28;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-status-card > a {
  border-color: rgba(240, 232, 208, 0.2);
  background: #12100e;
  color: #f0e8d0;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-park-card strong,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-candidate strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-park-card small,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-candidate small,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-park-card em {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-candidate {
  border-bottom-color: rgba(240, 232, 208, 0.2) !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-empty p,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-register p,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-checkout p,
[data-theme="dark"] body[data-page="checkin"] .checkin-v2-note p {
  color: #a89475 !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-empty-icon {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-actions a {
  border-color: rgba(240, 232, 208, 0.18) !important;
  background: #f0e8d0 !important;
  color: #12100e !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v2-note {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #1c1814 !important;
}

/* ── タイムライン ヒーロー ──────────────────────── */
[data-theme="dark"] body[data-page="timeline"] .timeline-v2-hero {
  background:
    radial-gradient(circle at 92% 16%, rgba(58, 140, 114, 0.3) 0 42px, transparent 43px),
    radial-gradient(circle at 12% 92%, rgba(196, 160, 104, 0.18) 0 36px, transparent 37px),
    linear-gradient(180deg, #241f18, #12100e) !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-title h1 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-title p,
[data-theme="dark"] body[data-page="timeline"] .timeline-v2-hero > p {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-title-icon {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #3a8c72 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32) !important;
}

/* ── エリア一覧・詳細 テキストトーン ─────────────── */
[data-theme="dark"] body[data-page="area"] .area-v1 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="area"] .area-hero-lead,
[data-theme="dark"] body[data-page="area"] .section-head p,
[data-theme="dark"] body[data-page="area"] .area-popular-card-body p,
[data-theme="dark"] body[data-page="area"] .area-guide-card p,
[data-theme="dark"] body[data-page="area"] .area-group-head span,
[data-theme="dark"] body[data-page="area"] .area-tips-list,
[data-theme="dark"] body[data-page="area"] .area-tips-list li,
[data-theme="dark"] body[data-page="area"] .area-breadcrumb,
[data-theme="dark"] body[data-page="area"] .area-breadcrumb a,
[data-theme="dark"] body[data-page="area"] .area-store-access,
[data-theme="dark"] body[data-page="area"] .area-store-meta dt,
[data-theme="dark"] body[data-page="area"] .area-store-info-list dt,
[data-theme="dark"] body[data-page="area"] .area-store-info-heading,
[data-theme="dark"] body[data-page="area"] .area-store-checkin-note,
[data-theme="dark"] body[data-page="area"] .area-store-card small,
[data-theme="dark"] body[data-page="area"] .area-store-card em,
[data-theme="dark"] body[data-page="area"] .area-store-status-card p,
[data-theme="dark"] body[data-page="area"] .area-store-claim p,
[data-theme="dark"] body[data-page="area"] .area-empty-state {
  color: #a89475 !important;
}

[data-theme="dark"] body[data-page="area"] .area-hero .eyebrow,
[data-theme="dark"] body[data-page="area"] .area-store-tag,
[data-theme="dark"] body[data-page="area"] .area-store-badge,
[data-theme="dark"] body[data-page="area"] .area-filter-chip {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="area"] .area-popular-card,
[data-theme="dark"] body[data-page="area"] .area-chip,
[data-theme="dark"] body[data-page="area"] .area-store-card,
[data-theme="dark"] body[data-page="area"] .area-guide-card,
[data-theme="dark"] body[data-page="area"] .area-store-meta,
[data-theme="dark"] body[data-page="area"] .area-filter-chip,
[data-theme="dark"] body[data-page="area"] .area-store-link {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #241f18 !important;
}

[data-theme="dark"] body[data-page="area"] .area-popular-card:hover,
[data-theme="dark"] body[data-page="area"] .area-chip:hover {
  background: #2d2620 !important;
}

[data-theme="dark"] body[data-page="area"] .area-popular-card-body h3,
[data-theme="dark"] body[data-page="area"] .area-guide-card h3,
[data-theme="dark"] body[data-page="area"] .area-chip,
[data-theme="dark"] body[data-page="area"] .area-store-name,
[data-theme="dark"] body[data-page="area"] .area-store-meta dd,
[data-theme="dark"] body[data-page="area"] .area-store-info-list dd,
[data-theme="dark"] body[data-page="area"] .area-store-link,
[data-theme="dark"] body[data-page="area"] .area-store-status-card strong,
[data-theme="dark"] body[data-page="area"] .area-store-claim strong,
[data-theme="dark"] body[data-page="area"] .area-store-card strong,
[data-theme="dark"] body[data-page="area"] .area-breadcrumb span {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="area"] .area-filter-chip.is-active {
  border-color: #3a8c72 !important;
  background: #3a8c72 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="area"] .area-count-badge {
  background: #2a6b58 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="area"] .area-store-tag,
[data-theme="dark"] body[data-page="area"] .area-store-badge {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #1c1814 !important;
}

[data-theme="dark"] body[data-page="area"] .area-store-link.is-primary {
  background: #5b4a3a !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="area"] .area-store-status-card {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
}

[data-theme="dark"] body[data-page="area"] .area-store-status-card.is-verified {
  border-color: rgba(79, 184, 148, 0.38) !important;
  background: rgba(58, 140, 114, 0.14) !important;
}

[data-theme="dark"] body[data-page="area"] .area-store-status-card small {
  color: #4fb894 !important;
}

[data-theme="dark"] body[data-page="area"] .area-store-claim {
  border-color: rgba(240, 232, 208, 0.12) !important;
}

[data-theme="dark"] body[data-page="area"] .area-lists-stats span,
[data-theme="dark"] body[data-page="area"] .area-lists-chip-grid a,
[data-theme="dark"] body[data-page="area"] .area-lists-card {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page="area"] .area-lists-stats strong,
[data-theme="dark"] body[data-page="area"] .area-lists-chip-grid strong,
[data-theme="dark"] body[data-page="area"] .area-lists-card h3 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="area"] .area-lists-stats small,
[data-theme="dark"] body[data-page="area"] .area-lists-empty p {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="area"] .area-lists-kicker,
[data-theme="dark"] body[data-page="area"] .area-lists-chip-grid span {
  color: #3a8c72 !important;
}

/* ── ヒーロービジュアル ──────────────────────────── */
[data-theme="dark"] .hero-visual {
  border-color: rgba(240, 232, 208, 0.08);
  background:
    linear-gradient(160deg, rgba(240, 232, 208, 0.04), rgba(240, 232, 208, 0)),
    radial-gradient(circle at 80% 20%, rgba(42, 107, 88, 0.4), transparent 30%),
    linear-gradient(135deg, #1c1814, #12100e);
}

/* ── 第2の :root ブロック上書き（app-like direction 用） ─── */
[data-theme="dark"] body {
  background: #12100e !important;
}

[data-theme="dark"] .site-header {
  border-bottom-color: rgba(240, 232, 208, 0.08) !important;
  background: rgba(18, 16, 14, 0.9) !important;
}

[data-theme="dark"] .brand {
  background-image: url("/assets/brand/png-wordmark/logo.png?v=d9c5d10");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}

[data-theme="dark"] .brand-mark {
  background: linear-gradient(145deg, #1a3a38, #2a6b58) !important;
}

/* ── スクロールバー ──────────────────────────────── */
[data-theme="dark"] {
  scrollbar-color: #3a3028 #12100e;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #12100e;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3a3028;
  border-radius: 4px;
}

/* ── セレクション ────────────────────────────────── */
[data-theme="dark"] ::selection {
  background: rgba(58, 140, 114, 0.3);
  color: #f0e8d0;
}

/* ── 認証ページ（auth.css 上書き） ──────────────── */
[data-theme="dark"] body.auth-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(42, 107, 88, 0.12), transparent 28%),
    linear-gradient(180deg, #12100e 0%, #0e0c0a 100%);
  color: #f0e8d0;
}

[data-theme="dark"] .auth-shell {
  background: rgba(28, 24, 20, 0.88);
  box-shadow: 0 0 0 1px rgba(240, 232, 208, 0.06);
}

[data-theme="dark"] .auth-brand-link {
  border-color: rgba(240, 232, 208, 0.1);
  background: rgba(28, 24, 20, 0.9);
}

[data-theme="dark"] .auth-brand-mark {
  background: #2a6b58;
  box-shadow: 0 8px 18px rgba(42, 107, 88, 0.3);
}

[data-theme="dark"] .auth-brand-copy b {
  color: #f0e8d0;
}

[data-theme="dark"] .auth-card {
  border-color: rgba(240, 232, 208, 0.14);
  background: #1c1814;
  color: #f0e8d0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .auth-card p,
[data-theme="dark"] .auth-field-hint,
[data-theme="dark"] .auth-card ul,
[data-theme="dark"] .auth-card ol {
  color: #c4b89a;
}

[data-theme="dark"] .auth-error {
  border-color: rgba(229, 72, 72, 0.28) !important;
  background: #241814 !important;
  color: #f0c8bd !important;
}

[data-theme="dark"] .auth-invite-profile,
[data-theme="dark"] .auth-invite-note,
[data-theme="dark"] .account-summary .account-row,
[data-theme="dark"] .page-list-table,
[data-theme="dark"] .page-list-row,
[data-theme="dark"] .page-list-accordion {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .auth-invite-profile img {
  border-color: rgba(240, 232, 208, 0.16) !important;
}

[data-theme="dark"] .auth-invite-profile span,
[data-theme="dark"] .page-list-row span,
[data-theme="dark"] .page-list-row code {
  color: #a89475 !important;
}

[data-theme="dark"] .page-list-row code {
  border: 1px solid rgba(240, 232, 208, 0.12) !important;
  background: #1c1814 !important;
  color: #c4b89a !important;
}

[data-theme="dark"] .auth-invite-profile strong,
[data-theme="dark"] .auth-invite-note strong,
[data-theme="dark"] .account-summary .account-row strong,
[data-theme="dark"] .page-list-row strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .auth-invite-profile small,
[data-theme="dark"] .account-summary .account-row span {
  color: #c4b89a !important;
}

[data-theme="dark"] .auth-field label {
  color: #f0e8d0;
}

[data-theme="dark"] .auth-field input,
[data-theme="dark"] .auth-field select,
[data-theme="dark"] .auth-field textarea {
  border-color: rgba(240, 232, 208, 0.18);
  background: #12100e;
  color: #f0e8d0;
}

[data-theme="dark"] .auth-field input[type="checkbox"],
[data-theme="dark"] .auth-field input[type="radio"] {
  border-color: rgba(240, 232, 208, 0.32);
  background: #12100e;
}

[data-theme="dark"] .auth-field input[type="checkbox"]:checked {
  border-color: #3a8c72;
  background-color: #3a8c72;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5 4L6 9.5 3 6.5' fill='none' stroke='%23f0e8d0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

[data-theme="dark"] .auth-field input[type="radio"]:checked {
  border-color: #3a8c72;
  background: radial-gradient(circle, #3a8c72 0 45%, #12100e 48% 100%);
}

[data-theme="dark"] .admin-request-section,
[data-theme="dark"] .admin-request-flow > div,
[data-theme="dark"] .admin-request-map,
[data-theme="dark"] .admin-inline-actions,
[data-theme="dark"] .admin-compact-form {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .admin-request-section h2,
[data-theme="dark"] .admin-request-flow strong,
[data-theme="dark"] .admin-compact-form span,
[data-theme="dark"] .admin-compact-form label {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .admin-request-flow small,
[data-theme="dark"] .admin-request-meta {
  color: #c4b89a !important;
}

[data-theme="dark"] .admin-request-flow span {
  background: rgba(58, 140, 114, 0.18) !important;
  color: #4fb894 !important;
}

[data-theme="dark"] .admin-request-actions .auth-button.secondary,
[data-theme="dark"] .admin-inline-actions a {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .admin-compact-form input,
[data-theme="dark"] .admin-compact-form select,
[data-theme="dark"] .admin-compact-form textarea {
  border-color: rgba(240, 232, 208, 0.18) !important;
  background: #12100e !important;
  color: #f0e8d0 !important;
  color-scheme: dark;
}

[data-theme="dark"] .auth-consent-text a,
[data-theme="dark"] .auth-links {
  color: #4fb894;
}

[data-theme="dark"] .ob-options span,
[data-theme="dark"] .onboarding-start-actions a {
  border-color: rgba(240, 232, 208, 0.18);
  background: #12100e;
  color: #f0e8d0;
}

[data-theme="dark"] .ob-options label.is-selected span,
[data-theme="dark"] .ob-options input:checked + span {
  border-color: #3a8c72;
  background: #1a2e28;
  color: #4fb894;
}

[data-theme="dark"] .ob-nav a {
  border-color: rgba(240, 232, 208, 0.2);
  background: #241f18;
  color: #f0e8d0;
}

[data-theme="dark"] .ob-nav .next,
[data-theme="dark"] .onboarding-start-actions a.is-primary {
  border-color: #2a6b58;
  background: #0aa35f;
  color: #f0e8d0;
}

[data-theme="dark"] .ob-skip {
  color: #a89475;
}

/* ── ランディングページ（landing.css 上書き） ─────── */
[data-theme="dark"] .landing-body {
  background: #12100e;
  color: #f0e8d0;
}

/* ── テキストカラー包括上書き ────────────────────── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .eyebrow {
  color: #a89475 !important;
}

[data-theme="dark"] .lead {
  color: #c4b89a !important;
}

[data-theme="dark"] .nav a,
[data-theme="dark"] .nav a::before {
  color: #c4b89a !important;
}

[data-theme="dark"] .side a {
  color: #c4b89a !important;
}

[data-theme="dark"] .skater-line {
  color: #c4b89a !important;
}

[data-theme="dark"] .day {
  background: #241f18 !important;
  color: #c4b89a !important;
}

/* ── ホーム バッジ進捗カード ──────────────────────── */
[data-theme="dark"] .home-v2-badge-lead {
  color: #a89475 !important;
}

[data-theme="dark"] .home-v2-badge-progress-card {
  border-color: rgba(196, 160, 104, 0.25) !important;
  background: #241f18 !important;
}

[data-theme="dark"] .home-v2-badge-progress-art {
  background: #1c1814 !important;
}

[data-theme="dark"] .home-v2-badge-progress-copy small {
  color: #4fb894 !important;
}

[data-theme="dark"] .home-v2-badge-progress-copy strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .home-v2-badge-progress-copy em {
  color: #a89475 !important;
}

[data-theme="dark"] .home-v2-badge-progress-bar {
  background: #3a3028 !important;
}

[data-theme="dark"] .home-v2-badge-progress-meta {
  color: #c4b89a !important;
}

/* ── ホーム サイトリンク・管理リンク ─────────────── */
[data-theme="dark"] .home-v2-site-links {
  background: #1c1814 !important;
}

[data-theme="dark"] .home-v2-site-link-grid a {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #a89475 !important;
}

[data-theme="dark"] .home-v2-admin-link a {
  color: #a89475 !important;
}

/* ── ホーム ヒーロー ─────────────────────────────── */
[data-theme="dark"] body[data-page="home"] .home-v2-hero {
  border-bottom-color: rgba(240, 232, 208, 0.1) !important;
  background:
    radial-gradient(circle at 92% 16%, rgba(58, 140, 114, 0.3) 0 42px, transparent 43px),
    radial-gradient(circle at 12% 92%, rgba(196, 160, 104, 0.18) 0 36px, transparent 37px),
    linear-gradient(180deg, #241f18, #12100e) !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-head h1 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-head p,
[data-theme="dark"] body[data-page="home"] .home-v2-head span {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-notification {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: rgba(28, 24, 20, 0.96) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32) !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-notification::before {
  background: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-beginner-card {
  border-color: rgba(196, 160, 104, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(58, 140, 114, 0.14), rgba(196, 160, 104, 0.1)),
    #1c1814 !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-guide-link,
[data-theme="dark"] .guest-v2-guide-link {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-guide-link strong,
[data-theme="dark"] .guest-v2-guide-link strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-guide-link small,
[data-theme="dark"] .guest-v2-guide-link small {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-guide-link::after,
[data-theme="dark"] .guest-v2-guide-link::after {
  background: #7a6e5e !important;
}

/* ── フォロー/フォロワー stat ─────────────────────── */
[data-theme="dark"] .profile-v2-stats {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #1c1814 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .profile-v2-stats > * {
  background: #1c1814 !important;
}

[data-theme="dark"] .profile-v2-stats > * + * {
  border-left-color: rgba(240, 232, 208, 0.08) !important;
}

[data-theme="dark"] .profile-v2-stats strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .profile-v2-stats span {
  color: #a89475 !important;
}

/* ── ニュースリスト ──────────────────────────────── */
[data-theme="dark"] .home-v2-news-card {
  background: #1c1814 !important;
}

[data-theme="dark"] .home-v2-news-list a,
[data-theme="dark"] .guest-v2-news-list a,
[data-theme="dark"] .news-v2-list-item {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .home-v2-news-list a::after,
[data-theme="dark"] .guest-v2-news-list a::after,
[data-theme="dark"] .news-v2-list-item::after {
  background: #7a6e5e !important;
}

[data-theme="dark"] .home-v2-news-list strong,
[data-theme="dark"] .guest-v2-news-list strong,
[data-theme="dark"] .news-v2-list-item strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .home-v2-news-list small,
[data-theme="dark"] .guest-v2-news-list small,
[data-theme="dark"] .news-v2-list-item small {
  color: #a89475 !important;
}

/* ── PWA インストールバナー ─────────────────────── */
[data-theme="dark"] .home-v2-install-app {
  border-color: rgba(58, 140, 114, 0.2) !important;
  background: #1c1814 !important;
}

[data-theme="dark"] .home-v2-install-main h2 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .home-v2-install-main p,
[data-theme="dark"] .home-v2-install-status {
  color: #a89475 !important;
}

[data-theme="dark"] .home-v2-install-dismiss {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #241f18 !important;
  color: #a89475 !important;
}

/* ── 活動サマリーグリッド ───────────────────────── */
[data-theme="dark"] .home-v2-summary-grid a {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #241f18 !important;
}

[data-theme="dark"] .home-v2-summary-grid span,
[data-theme="dark"] .home-v2-summary-grid small {
  color: #a89475 !important;
}

[data-theme="dark"] .home-v2-summary-grid strong {
  color: #f0e8d0 !important;
}

/* ── ステータスカード（最近のチェックイン） ──────── */
[data-theme="dark"] .home-v2-status-card i {
  background: #1a2e28 !important;
}

[data-theme="dark"] .home-v2-status-card span,
[data-theme="dark"] .home-v2-status-card small {
  color: #a89475 !important;
}

[data-theme="dark"] .home-v2-status-card strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-log {
  border-bottom-color: rgba(240, 232, 208, 0.12) !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-log strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="home"] .home-v2-log span,
[data-theme="dark"] body[data-page="home"] .home-v2-log small {
  color: #a89475 !important;
}

[data-theme="dark"] body[data-page="profile"] .checkin-detail-v2 .detail-list > div {
  border-bottom-color: rgba(240, 232, 208, 0.12) !important;
}

[data-theme="dark"] body[data-page="profile"] .checkin-detail-v2 .checkin-detail-actions a {
  border: 1px solid rgba(240, 232, 208, 0.16) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="profile"] .checkin-detail-v2 .checkin-detail-actions a.cta-primary {
  border-color: rgba(58, 140, 114, 0.45) !important;
  background: #0f3b30 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="profile"] .checkin-detail-v2 .checkin-detail-actions a.cta-secondary {
  border-color: rgba(196, 160, 104, 0.42) !important;
  background: #2a2115 !important;
  color: #f0e8d0 !important;
}

/* ── 活動サマリーカード（チェックイン数・訪問パーク数 etc.） ── */
[data-theme="dark"] .home-v2-activity-summary .profile-v3-summary-card {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #241f18 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .home-v2-activity-summary .profile-v3-summary-card.is-like {
  border-color: rgba(196, 160, 104, 0.3) !important;
  background: #2a1e10 !important;
}

[data-theme="dark"] .home-v2-activity-summary .profile-v3-summary-card small {
  color: #a89475 !important;
}

[data-theme="dark"] .home-v2-activity-summary .profile-v3-summary-card strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .home-v2-activity-summary .profile-v3-summary-card em {
  color: #c4b89a !important;
}

/* ---- Landing hero dark ---- */
[data-theme="dark"] .guest-v2-hero {
  background: radial-gradient(ellipse at 50% 0%, #262018 0%, #1a1612 70%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .guest-v2-hero-body {
  padding-top: 24px;
  padding-bottom: 28px;
  gap: 16px;
}

[data-theme="dark"] .guest-v2-logo {
  filter: none;
}

/* ── プロフィール情報カード ──────────────────────── */
[data-theme="dark"] .profile-v3-info-card a,
[data-theme="dark"] .profile-v3-info-card div {
  border-bottom-color: rgba(240, 232, 208, 0.1) !important;
}

[data-theme="dark"] .profile-v3-info-card span {
  color: #9a8a7a !important;
}

[data-theme="dark"] .profile-v3-info-card strong {
  color: #f0e8d0 !important;
}

/* ── サブページヒーロー（app-like pages）──────────── */
[data-theme="dark"] .subpage-hero {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background:
    radial-gradient(circle at 90% 12%, rgba(42, 107, 88, 0.22) 0 22px, transparent 23px),
    linear-gradient(180deg, #1c1814, #181410) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .subpage-back {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: rgba(36, 31, 24, 0.9) !important;
  color: #9a8a7a !important;
}

/* ---- Park photo / correction pages dark ---- */
[data-theme="dark"] body[data-page="parks"] .park-photo-v2 {
  background: #12100e !important;
}

[data-theme="dark"] body[data-page="parks"] .park-photo-v2-hero {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background:
    radial-gradient(circle at 91% 17%, rgba(42, 107, 88, 0.28) 0 22px, transparent 23px),
    radial-gradient(circle at 14% 100%, rgba(196, 160, 104, 0.13) 0 34px, transparent 35px),
    linear-gradient(180deg, #1c1814, #181410) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] body[data-page="parks"] .park-photo-v2-back {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="parks"] .park-photo-v2-title p {
  color: #3a8c72 !important;
}

[data-theme="dark"] body[data-page="parks"] .park-photo-v2-title h1 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="parks"] .park-photo-v2-hero > p,
[data-theme="dark"] body[data-page="parks"] .park-photo-v2-empty p,
[data-theme="dark"] body[data-page="parks"] .park-photo-v2-complete p {
  color: #c4b89a !important;
}

/* ---- Guest static pages dark ---- */
[data-theme="dark"] .guest-static-back {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] .guest-static-title {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(42, 107, 88, 0.28) 0 34px, transparent 35px),
    radial-gradient(circle at 14% 100%, rgba(196, 160, 104, 0.15) 0 32px, transparent 33px),
    linear-gradient(180deg, #1c1814, #181410) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .guest-static-title-icon {
  background: rgba(58, 140, 114, 0.18) !important;
  color: #3a8c72 !important;
}

[data-theme="dark"] .guest-static-title .eyebrow {
  color: #c4a068 !important;
}

[data-theme="dark"] .guest-static-title h1 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .guest-static-title p:not(.eyebrow) {
  color: #c4b89a !important;
}

[data-theme="dark"] .faq-v2-link-grid a {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .faq-v2-link-grid a::after {
  background: #7a6e5e !important;
}

[data-theme="dark"] .faq-v2-link-grid strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .faq-v2-link-grid small {
  color: #c4b89a !important;
}

[data-theme="dark"] .faq-v2-link-grid a.is-current {
  border-color: rgba(58, 140, 114, 0.36) !important;
  background:
    linear-gradient(135deg, rgba(58, 140, 114, 0.24), rgba(196, 160, 104, 0.08)),
    #241f18 !important;
}

[data-theme="dark"] .faq-v2-list details {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .faq-v2-list summary {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .faq-v2-list summary::after {
  background: #7a6e5e !important;
}

[data-theme="dark"] .faq-v2-list p {
  color: #c4b89a !important;
}

[data-theme="dark"] .beginner-v1-topic {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] .beginner-v1-topic::after {
  background: #7a6e5e !important;
}

[data-theme="dark"] .beginner-v1-topic strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .beginner-v1-topic small {
  color: #c4b89a !important;
}

[data-theme="dark"] .beginner-v1-point-list div {
  border: 1px solid rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #c4b89a !important;
}

[data-theme="dark"] .guest-v2-lang-switch {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .guest-v2-lang-switch a {
  color: #9a8a7a;
}

[data-theme="dark"] .guest-v2-hero-body h1 {
  color: #f0e8d0;
}

[data-theme="dark"] .guest-v2-hero-body h1 span {
  color: #3a8c72;
}

[data-theme="dark"] .guest-v2-hero-body p:not(.eyebrow) {
  color: #9a8a7a;
}

[data-theme="dark"] .guest-v2-cta {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(196, 160, 104, 0.18) 0 20px, transparent 21px),
    linear-gradient(180deg, #1c1814, #181410) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .guest-v2-cta .eyebrow {
  color: #c4a068 !important;
}

[data-theme="dark"] .guest-v2-cta h2 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .guest-v2-cta p {
  color: #c4b89a !important;
}

[data-theme="dark"] .guest-v2-cta .btn.primary {
  background: linear-gradient(135deg, #2a6b58, #1a4a3a) !important;
  color: #fffaf0 !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .guest-v2-cta .btn.ghost {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .guest-v2-pref-pills a {
  border-color: rgba(42, 107, 88, 0.45) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .guest-v2-region-grid a {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26) !important;
}

[data-theme="dark"] .guest-v2-region-grid img {
  border-radius: 10px;
  background: rgba(240, 232, 208, 0.08);
}

[data-theme="dark"] .guest-v2-region-grid strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .guest-v2-region-grid small {
  color: #c4b89a !important;
}

[data-theme="dark"] .guest-v2-region-grid em {
  background: #c4a068 !important;
}

[data-theme="dark"] .guest-v2-open-grid a {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background:
    linear-gradient(90deg, rgba(36, 31, 24, 0.96) 0 58%, rgba(36, 31, 24, 0.78) 100%),
    var(--image) right bottom / cover no-repeat !important;
  color: #f0e8d0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26) !important;
}

[data-theme="dark"] .guest-v2-open-grid strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .guest-v2-open-grid small {
  color: #c4b89a !important;
}

[data-theme="dark"] .guest-v2-feature-grid article {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24) !important;
}

[data-theme="dark"] .guest-v2-feature-icon {
  color: #3a8c72 !important;
}

[data-theme="dark"] .guest-v2-feature-grid strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .guest-v2-feature-grid p {
  color: #c4b89a !important;
}

[data-theme="dark"] .guest-v2-badge-strip img {
  border-radius: 8px;
  background: rgba(240, 232, 208, 0.08);
}

[data-theme="dark"] .guest-v2-badge-strip small {
  color: #c4b89a !important;
}

[data-theme="dark"] .guest-v2-social-card > p {
  color: #9a8a7a !important;
}

[data-theme="dark"] .guest-v2-social-link {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .guest-v2-social-link span {
  background: #3a8c72 !important;
}

[data-theme="dark"] .guest-v2-hero-copy .eyebrow {
  background: transparent !important;
  color: #c4a068 !important;
}

[data-theme="dark"] .guest-v2-area-pills span,
[data-theme="dark"] .guest-v2-event-meta > div {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .guest-v2-area-pills strong,
[data-theme="dark"] .guest-v2-event-meta strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .guest-v2-area-pills small,
[data-theme="dark"] .guest-v2-event-meta span {
  color: #c4b89a !important;
}

/* ---- About page dark polish ---- */
[data-theme="dark"] .about-page-card {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(196, 160, 104, 0.16) 0 28px, transparent 29px),
    linear-gradient(180deg, #1c1814, #181410) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32) !important;
}

[data-theme="dark"] .about-page-card .profile-eyebrow {
  color: #c4a068 !important;
}

[data-theme="dark"] .about-page-card h1 {
  color: #f0e8d0 !important;
}

[data-theme="dark"] .about-page-card p:not(.profile-eyebrow) {
  color: #c4b89a !important;
}

[data-theme="dark"] .about-page-card .profile-action-list {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
}

[data-theme="dark"] .about-page-card .profile-action-list a {
  color: #f0e8d0 !important;
  background: #241f18 !important;
}

[data-theme="dark"] .about-page-card .profile-action-list a + a {
  border-top-color: rgba(240, 232, 208, 0.1) !important;
}

[data-theme="dark"] .about-page-card .profile-action-list a:hover {
  background: #2a241b !important;
}

/* ---- Badge collection dark polish ---- */
[data-theme="dark"] body[data-page="badge-collection"] {
  background: #12100e !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .main {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #12100e !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .panel,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-hero {
  border: 1px solid rgba(240, 232, 208, 0.14) !important;
  border-radius: 0 0 22px 22px !important;
  background:
    radial-gradient(circle at 92% 16%, rgba(58, 140, 114, 0.28) 0 42px, transparent 43px),
    radial-gradient(circle at 12% 92%, rgba(196, 160, 104, 0.18) 0 36px, transparent 37px),
    linear-gradient(180deg, #1c1814, #181410) !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-back {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-title-icon {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-title p {
  color: #c4a068 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-title h1,
[data-theme="dark"] body[data-page="badge-collection"] .section-head h2,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-group h3,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card h2,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-strip a {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-hero > p,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-section-note,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card p,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card-head span {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-hero-stats span {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-hero-stats strong,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-progress strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-hero-stats small {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-selected-count,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-unlocked .badge-v2-card-head b {
  background: rgba(58, 140, 114, 0.18) !important;
  color: #7bd0ad !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid span {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid input:checked + span {
  border-color: rgba(58, 140, 114, 0.5) !important;
  background:
    linear-gradient(180deg, rgba(58, 140, 114, 0.24), rgba(36, 31, 24, 0.96)),
    #241f18 !important;
  box-shadow: inset 0 0 0 1px rgba(58, 140, 114, 0.22) !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid input:checked + span::after {
  background-color: #3a8c72 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid small {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid .is-disabled span {
  border-color: rgba(240, 232, 208, 0.1) !important;
  background: #191511 !important;
  color: #7a6e5e !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid .is-disabled img {
  opacity: 0.75 !important;
  filter: brightness(0.34) saturate(0.6) !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid .is-disabled b,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-select-grid .is-disabled small,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked .badge-v2-card-head span,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked h2,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked p,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked .badge-v2-progress strong {
  color: #7a6e5e !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card-head b,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked .badge-v2-card-head b {
  background: rgba(240, 232, 208, 0.08) !important;
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-art {
  background: #241f18 !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked .badge-v2-art {
  background: #0f0d0b !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-progress i,
[data-theme="dark"] body[data-page="badge-collection"] .badge-v2-card.is-locked .badge-v2-progress i {
  background: rgba(240, 232, 208, 0.16) !important;
}

[data-theme="dark"] body[data-page="badge-collection"] .bottom-nav {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: rgba(18, 16, 14, 0.96) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* ---- Member app shared dark guardrails ---- */
[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]),
[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) > .main,
[data-theme="dark"] :where(
  .home-v2,
  .timeline-v2,
  .checkin-v2,
  .log-v2,
  .gear-v2,
  .badge-v2,
  .favorite-parks-v2,
  .profile-edit-v2,
  .user-search-v2,
  .settings-v2,
  .notifications-v2,
  .friends-v2,
  .friend-profile-v2,
  .friend-log-v2,
  .checkin-detail-v2,
  .profile-share-v2,
  .parks-v2
).main,
[data-theme="dark"] body[data-page="profile"] .main {
  background: #12100e !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .panel,
  .card,
  .sl-card,
  .page-title,
  .subpage-hero,
  .member-lock,
  .directory-row,
  .list-links a,
  .share-action,
  .friend-link-card,
  .friend-item,
  .settings-v2-list > a,
  .settings-v2-list > div,
  .notifications-v2-item,
  .share-sheet,
  .friend-log-v2-card,
  .friend-log-v2-detail-panel,
  .friend-log-v2-action-panel,
  .profile-summary,
  .summary-item,
  .stat-row,
  .stat,
  .log-mini,
  .pref-card,
  .official-link,
  .park-text-link,
  .park-item,
  .rank-item
) {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .home-v2-hero,
  .timeline-v2-hero,
  .checkin-v2-hero,
  .log-v2-hero,
  .favorite-parks-v2-hero,
  .profile-edit-v2-hero,
  .notifications-v2-hero,
  .friend-log-v2-hero,
  .friends-v2 .subpage-hero,
  .friend-profile-v2 .page-title,
  .profile-share-v2 .share-sheet
) {
  border: 1px solid rgba(240, 232, 208, 0.14) !important;
  background:
    radial-gradient(circle at 90% 12%, rgba(58, 140, 114, 0.26) 0 28px, transparent 29px),
    radial-gradient(circle at 12% 100%, rgba(196, 160, 104, 0.14) 0 34px, transparent 35px),
    linear-gradient(180deg, #1c1814, #181410) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .subpage-back,
  .favorite-parks-v2-back,
  .profile-edit-v2-back,
  .notifications-v2-back,
  .log-v2-add,
  .favorite-parks-v2-add,
  .friends-v2-search,
  .compact-select,
  .btn.ghost,
  button.btn.ghost,
  .settings-v2-list button,
  .favorite-parks-v2-actions a,
  .favorite-parks-v2-actions button,
  .log-v2-actions a,
  .profile-edit-v2-actions a,
  .account-v2-actions a
) {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  h1,
  h2,
  h3,
  h4,
  .section-head h2,
  .panel > h2,
  .page-title h1,
  .subpage-title h1,
  .notifications-v2-title h1,
  .favorite-parks-v2-title h1,
  .profile-edit-v2-title h1,
  .log-v2-title h1,
  .friend-log-v2-title h1,
  .directory-row strong,
  .list-links a strong,
  .share-action strong,
  .settings-v2-list strong,
  .notifications-v2-item strong,
  .favorite-parks-v2-card h2,
  .favorite-parks-v2-recent-head strong,
  .favorite-parks-v2-recent-riders b,
  .profile-edit-v2-upload strong,
  .profile-edit-v2-privacy-row legend strong,
  .friends-v2-person strong,
  .stat strong,
  .summary-item strong,
  .rank-item strong,
  .detail-list strong,
  .log-mini strong
) {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  p,
  .lead,
  .muted,
  .page-title .lead,
  .subpage-title p:not(.eyebrow),
  .notifications-v2-hero > p,
  .favorite-parks-v2-hero > p,
  .profile-edit-v2-hero > p,
  .log-v2-hero > p,
  .friend-log-v2-hero > p,
  .directory-row em,
  .list-links a span,
  .share-action span,
  .settings-v2-list small,
  .notifications-v2-item small,
  .notifications-v2-item em,
  .favorite-parks-v2-summary p,
  .favorite-parks-v2-card span,
  .favorite-parks-v2-recent-head span,
  .favorite-parks-v2-recent-riders small,
  .favorite-parks-v2-recent p,
  .favorite-parks-v2-street-note,
  .profile-edit-v2-section-note,
  .profile-edit-v2-upload small,
  .profile-edit-v2-privacy-row legend small,
  .friends-v2-person small,
  .friends-v2-person em,
  .friends-v2-meta small,
  .friends-v2-latest,
  .stat span,
  .summary-item span,
  .summary-item small,
  .rank-item span,
  .detail-list span,
  .log-mini span,
  .log-mini em
) {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .eyebrow,
  .subpage-title .eyebrow,
  .notifications-v2-title p,
  .favorite-parks-v2-title p,
  .profile-edit-v2-title p,
  .log-v2-title p,
  .friend-log-v2-title p
) {
  color: #c4a068 !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  input,
  select,
  textarea,
  .field input,
  .field select,
  .field textarea,
  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  input.search,
  .profile-edit-v2-field input,
  .profile-edit-v2-field select,
  .profile-edit-v2-readonly,
  .profile-edit-v2-upload,
  .spot-register-form input,
  .spot-register-form select,
  .spot-register-form textarea,
  .account-email-v2-form input
) {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
  color-scheme: dark;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  input::placeholder,
  textarea::placeholder
) {
  color: #7a6e5e !important;
}

[data-theme="dark"] .spot-location-notice small {
  color: #a7b8ad !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .spot-register-form > label > span,
  .spot-register-form .profile-form-grid > label > span,
  .spot-location-field > span,
  .spot-register-form .profile-upload-box strong
) {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .spot-register-form .profile-upload-box span,
  .spot-location-notice span,
  .spot-location-notice small
) {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .favorite-parks-v2-filter a,
  .log-v2-filter-tabs a,
  .friends-v2 .segmented-links,
  .profile-edit-v2-choice-grid span,
  .profile-edit-v2-style-grid span,
  .account-v2-choice-list span,
  .account-v2-summary div,
  .favorite-parks-v2-recent-riders a,
  .friends-v2-empty,
  .spot-register-form .profile-upload-box
) {
  border-color: rgba(240, 232, 208, 0.12) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .favorite-parks-v2-filter a.active,
  .log-v2-filter-tabs a.active,
  .friends-v2 .segmented-links a.active,
  .profile-edit-v2-choice-grid input:checked + span,
  .profile-edit-v2-style-grid input:checked + span,
  .account-v2-choice-list input:checked + span,
  .tag.green,
  .notice,
  .like-toast,
  .auth-notice
) {
  border-color: rgba(58, 140, 114, 0.34) !important;
  background: rgba(58, 140, 114, 0.18) !important;
  color: #7bd0ad !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .notice.error,
  .auth-error,
  .account-v2-danger,
  .account-v2-danger .auth-field label:has(input[type="checkbox"])
) {
  border-color: rgba(229, 72, 72, 0.28) !important;
  background: #241814 !important;
  color: #f0c8bd !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .directory-row::after,
  .list-links a::after,
  .share-action::after,
  .pref-card::after,
  .park-text-link::after,
  .park-item::after,
  .rank-item::after,
  .official-link::after,
  .notifications-v2-see-all::after
) {
  background: #7a6e5e !important;
}

[data-theme="dark"] body[data-page]:not([data-page="access"]):not([data-page="guest"]) :where(
  .favorite-parks-v2-thumb,
  .profile-edit-v2-cover,
  .friend-log-v2-photo,
  .park-detail-v2-cover
) {
  background: #0f0d0b !important;
}

[data-theme="dark"] body[data-page="timeline"] :where(.friend-profile-v2 .profile-cover, .friend-profile-v3-cover) {
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0) 42%, rgba(18, 16, 14, 0.9) 100%),
    var(--profile-cover, url("/assets/profile/profile-cover-default.jpg")) center / cover no-repeat !important;
}

[data-theme="dark"] body[data-page="timeline"] .friend-profile-v3-cover::before {
  background: linear-gradient(180deg, rgba(18, 16, 14, 0), rgba(18, 16, 14, 0.86) 62%, #12100e 100%) !important;
}

/* ---- Check-in save form dark polish ---- */
[data-theme="dark"] body[data-page="checkin"] :where(
  .checkin-v3-save,
  .checkin-v3-park-card,
  .checkin-v3-photo-button,
  .checkin-v3-visibility
) {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v3-park-card {
  background: #181410 !important;
}

[data-theme="dark"] body[data-page="checkin"] :where(
  .checkin-v3-checked-at,
  .checkin-v3-park-card strong,
  .checkin-v3-option-group legend,
  .checkin-v3-note-field label,
  .checkin-v3-visibility legend
) {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="checkin"] :where(
  .checkin-v3-park-card span,
  .checkin-v3-option-note,
  .checkin-v3-privacy-note,
  .checkin-v3-option-group small,
  .checkin-v3-note-field small
) {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v3-privacy-note {
  border-color: rgba(58, 140, 114, 0.3) !important;
  background: rgba(58, 140, 114, 0.14) !important;
  color: #7bd0ad !important;
}

[data-theme="dark"] body[data-page="checkin"] :where(
  .checkin-v3-segment-grid span,
  .checkin-v3-photo-button,
  .checkin-v3-visibility span,
  .checkin-v3-later-button
) {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v3-photo-button i {
  background: #7bd0ad !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v3-photo-button small {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="checkin"] :where(
  .checkin-v3-segment-grid input:checked + span,
  .checkin-v3-visibility input:checked + span
) {
  border-color: rgba(58, 140, 114, 0.58) !important;
  background: rgba(58, 140, 114, 0.18) !important;
  color: #7bd0ad !important;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v3-note-field textarea {
  border-color: rgba(240, 232, 208, 0.15) !important;
  background: #181410 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
  color-scheme: dark;
}

[data-theme="dark"] body[data-page="checkin"] .checkin-v3-note-field textarea::placeholder,
[data-theme="dark"] body[data-page="checkin"] .checkin-v3-note-field > span {
  color: #7a6e5e !important;
}

/* ---- Profile action buttons dark polish ---- */
[data-theme="dark"] body[data-page="profile"] .profile-v3-hero-actions {
  --cta-base-bg: #241f18;
  --cta-base-border: rgba(240, 232, 208, 0.16);
  --cta-base-color: #f0e8d0;
  --cta-secondary-bg: #241f18;
  --cta-secondary-color: #f0e8d0;
  --cta-secondary-border: rgba(240, 232, 208, 0.16);
}

[data-theme="dark"] body[data-page="profile"] .profile-v3-hero-actions .cta-secondary,
[data-theme="dark"] body[data-page="profile"] .profile-v3-id-button,
[data-theme="dark"] body[data-page="profile"] .profile-v2-edit,
[data-theme="dark"] body[data-page="profile"] .profile-v2-settings,
[data-theme="dark"] body[data-page="profile"] .profile-share-v2 .share-close {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v3-hero-actions .cta-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #2a6b58, #1a4a3a) !important;
  color: #fffaf0 !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v3-profile-badges .profile-v3-medal-list {
  background: #241f18 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v3-profile-badges .profile-v3-medal-list a {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v2-log {
  border-bottom-color: rgba(240, 232, 208, 0.1) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v2-log::after {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v2-log strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v2-log span,
[data-theme="dark"] body[data-page="profile"] .profile-v2-log small,
[data-theme="dark"] body[data-page="profile"] .profile-v3-log-meta i {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="profile"] .profile-v3-log-like {
  color: #f0e8d0 !important;
}

/* ---- Log page dark polish ---- */
[data-theme="dark"] body[data-page="log"] .log-v2-hero-stats span {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #241f18 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-hero-stats strong {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-hero-stats small {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-card {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #1c1814 !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-photo {
  background: #120f0c !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-card-head b {
  background: rgba(58, 140, 114, 0.22) !important;
  color: #d9f4e8 !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-card-head span,
[data-theme="dark"] body[data-page="log"] .log-v2-meta span {
  color: #a89475 !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-meta .is-like-count {
  color: #ff766d !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-tags span {
  background: rgba(240, 232, 208, 0.12) !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-actions a.cta-primary {
  border-color: rgba(196, 160, 104, 0.42) !important;
  background: #2a2115 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="log"] .log-v2-actions a.cta-secondary {
  border-color: rgba(58, 140, 114, 0.45) !important;
  background: #0f3b30 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-filter,
[data-theme="dark"] body[data-page="timeline"] .timeline-v2-card {
  border-color: rgba(240, 232, 208, 0.16) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-filter-tabs a {
  border-color: rgba(240, 232, 208, 0.18) !important;
  background: #241f18 !important;
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-filter-tabs a em {
  color: #a89475 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-filter-tabs a.active {
  border-color: rgba(58, 140, 114, 0.58) !important;
  background: rgba(58, 140, 114, 0.22) !important;
  color: #d9f4e8 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-filter-tabs a.active em {
  color: #b7ead8 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-photo {
  background: #120f0c !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-user {
  color: #c4a068 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-card h2,
[data-theme="dark"] body[data-page="timeline"] .timeline-v2-note {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-card-head b {
  background: rgba(58, 140, 114, 0.22) !important;
  color: #d9f4e8 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-card-head span,
[data-theme="dark"] body[data-page="timeline"] .timeline-v2-meta span {
  color: #a89475 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-tags span {
  background: rgba(240, 232, 208, 0.12) !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-link.cta-secondary {
  border-color: rgba(58, 140, 114, 0.45) !important;
  background: #0f3b30 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-like.cta-like {
  border-color: rgba(196, 160, 104, 0.42) !important;
  background: #2a2115 !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="timeline"] .timeline-v2-like.cta-like:disabled {
  opacity: 0.72 !important;
}

/* ---- Parks columns / overseas dark guardrails ---- */
[data-theme="dark"] body[data-page="parks"] :where(
  .parks-column-v2-back,
  .parks-column-v2-stats,
  .parks-column-v2-month-grid a,
  .parks-column-v2-card,
  .parks-column-v2-related a,
  .parks-v2-search,
  .parks-v2-region-grid a
) {
  border-color: rgba(240, 232, 208, 0.14) !important;
  background: #1c1814 !important;
  color: #f0e8d0 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] body[data-page="parks"] :where(
  .parks-column-v2-back,
  .parks-v2-search,
  .parks-v2-region-grid a
) {
  background: #241f18 !important;
}

[data-theme="dark"] body[data-page="parks"] :where(
  .parks-column-v2-title h1,
  .parks-column-v2-stats strong,
  .parks-column-v2-month-grid strong,
  .parks-column-v2-card-body strong,
  .parks-v2-region-grid strong,
  .parks-v2-region-grid b,
  .parks-v2-card-body strong
) {
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="parks"] :where(
  .parks-column-v2-title p,
  .parks-column-v2-lead,
  .parks-column-v2-stats small,
  .parks-column-v2-month-grid span,
  .parks-column-v2-card-body em,
  .parks-column-v2-card-body small,
  .parks-v2-region-grid em,
  .parks-v2-region-grid i,
  .parks-v2-card-body small,
  .parks-v2-card-body em
) {
  color: #c4b89a !important;
}

[data-theme="dark"] body[data-page="parks"] .parks-v2-search input {
  background: transparent !important;
  color: #f0e8d0 !important;
}

[data-theme="dark"] body[data-page="parks"] .parks-v2-search input::placeholder {
  color: #7a6e5e !important;
}

[data-theme="dark"] body[data-page="parks"] :where(
  .parks-column-v2-related a::after,
  .parks-v2-region-grid a::after,
  .parks-v2-region-grid a > span::after
) {
  background: #7a6e5e !important;
}
