/* -------------------------------------------------------------
   Pins Ero — design tokens
   ink     : 夜の宿を思わせる濃いエスプレッソブラウン（UIの地）
   paper   : サイドバーの生成り紙
   pink    : ヒートマップと連動する主役のピンク
   gold    : 上質さを示す控えめな金アクセント（ランクバッジ等）
------------------------------------------------------------- */
:root {
  --ink-900: #1A1210;
  --ink-800: #241A17;
  --ink-700: #34241F;
  --paper-50: #F7F1EA;
  --paper-100: #EDE0D3;
  --pink-600: #A81555;
  --pink-500: #C81E65;
  --pink-400: #E14C88;
  --pink-200: #F3B9D0;
  --gold-300: #D4AF6A;
  --slate-500: #7A6F68;
  --slate-300: #B7A99E;

  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-body);
}

button, input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  /* モバイルのブラウザ（アドレスバー等）分だけ100vhが実際の可視範囲より大きくなり、
     地図の中心が見た目の画面中央よりズレる問題への対策。dvh未対応ブラウザ用に
     100vhもフォールバックとして残す。 */
  height: 100dvh;
}

/* ---------------- Topbar ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  background: var(--paper-50);
  border-bottom: 1px solid var(--paper-100);
  flex-wrap: wrap;
}

.brand-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--pink-500);
  margin-bottom: 2px;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

.update-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.update-label { color: var(--slate-500); }
.update-value { color: var(--pink-600); font-weight: 600; }

/* ---------------- Layout ---------------- */
.main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 340px;
  flex-shrink: 0;
  background: var(--paper-50);
  color: var(--ink-900);
  padding: 20px 18px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: margin-left 0.2s ease;
}
.sidebar.is-hidden {
  margin-left: -340px;
}

/* モバイル専用: ドラッグつまみ・下部ナビ（デスクトップでは非表示） */
.sidebar-drag-handle {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 10px;
  border: none;
  background: none;
  color: var(--slate-500);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  /* デフォルト(auto)だと上方向へのドラッグをブラウザがスクロール操作と
   * 解釈し、pointerupの代わりにpointercancelが発生してJS側の
   * 上スワイプ検知（setupMobileNavSwipeUp）が打ち切られてしまうため */
  touch-action: none;
}
.mobile-nav-icon {
  font-size: 18px;
  line-height: 1;
}
.mobile-nav-btn.is-active {
  color: var(--pink-500);
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.panel-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* ---------------- Mode toggle ---------------- */
.mode-toggle {
  display: flex;
  background: var(--paper-100);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-btn.is-active {
  background: var(--ink-900);
  color: var(--paper-50);
}

.theme-btn,
.maptype-btn,
.toggle-btn,
.viewmode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-btn.is-active,
.maptype-btn.is-active,
.toggle-btn.is-active,
.viewmode-btn.is-active {
  background: var(--ink-900);
  color: var(--paper-50);
}


/* ---------------- Prefecture ranking ---------------- */
.prefecture-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.empty-state {
  color: var(--slate-500);
  font-size: 13px;
  padding: 24px 4px;
  text-align: center;
}

.pref-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--paper-100);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pref-card:hover {
  background: #fff;
  transform: translateX(2px);
}

.pref-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-900);
  background: var(--gold-300);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pref-body { flex: 1; min-width: 0; }

.pref-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-900);
}

.density-track {
  margin-top: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.density-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-300), var(--pink-500));
}

.pref-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-600);
  flex-shrink: 0;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--slate-500);
  transition: background 0.15s ease;
}
.hamburger-btn:hover span {
  background: var(--pink-500);
}

/* ---------------- 今週の営業カレンダー ---------------- */
.panel-calendar,
.sidebar > .panel:first-of-type,
.panel[data-mobile-group="settings"] + .panel[data-mobile-group="filter"] {
  border-top: 1px solid var(--paper-100);
  padding-top: 14px;
}

.calendar-pref-select {
  width: 100%;
  margin-top: 10px;
  padding: 10px 32px 10px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--pink-500);
  background: var(--pink-200);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(168, 21, 85, 0.28);
  transition: box-shadow 0.12s ease, background 0.12s ease, transform 0.12s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 7l5 6 5-6' fill='none' stroke='%23A81555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.calendar-pref-select:hover {
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(168, 21, 85, 0.4);
}
.calendar-pref-select:active {
  box-shadow: 0 1px 2px rgba(168, 21, 85, 0.3) inset;
  transform: translateY(1px);
}

.status-filter-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  touch-action: pan-y; /* 縦スクロールは通しつつ、横スワイプはJS側で検知する */
}

.status-filter-tab {
  flex: 1;
  min-height: 44px;
  padding: 8px 4px;
  border: none;
  border-radius: 10px;
  background: var(--paper-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.status-filter-tab.is-active {
  background: var(--pink-600);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 21, 85, 0.4);
  transform: scale(1.04);
}

@keyframes statusCardsIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
.calendar-card-list.is-animating {
  animation: statusCardsIn 0.18s ease;
}

.calendar-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  height: 46vh; /* max-heightだと中身が少ない時に縮んでシート全体が動いてしまうため固定値にする */
  overflow-y: auto;
  touch-action: pan-y; /* 縦スクロールは通しつつ、横スワイプはJS側で検知する */
}

.calendar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--paper-100);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.calendar-card:hover,
.calendar-card:active {
  transform: translateX(2px);
}
body.theme-dark .calendar-card:hover,
body.theme-dark .calendar-card:active {
  filter: brightness(1.15);
}

.calendar-card-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-900);
  background: var(--gold-300);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calendar-card-body {
  flex: 1;
  min-width: 0;
}

.calendar-card-name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-card-hours {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 2px;
}

.calendar-card-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
}
.calendar-card.status-open .calendar-card-status {
  color: #1a7a3e;
  background: #d9f2e3;
}
.calendar-card.status-closing_soon .calendar-card-status {
  color: #a05a00;
  background: #ffe8c2;
}
.calendar-card.status-opening_soon .calendar-card-status {
  color: var(--slate-500);
  background: #e9e0d3;
}

.calendar-empty {
  font-size: 12px;
  color: var(--slate-500);
  padding: 10px 0;
}

/* ---------------- ダークテーマ: ヘッダー ---------------- */
body.theme-dark {
  background: var(--ink-900);
  color: var(--paper-50);
}
body.theme-dark .topbar {
  background: var(--ink-900);
  border-bottom-color: var(--ink-700);
}
body.theme-dark .brand-eyebrow {
  color: var(--pink-400);
}
body.theme-dark .brand-name {
  color: var(--paper-50);
}
body.theme-dark .update-label {
  color: var(--slate-300);
}
body.theme-dark .update-value {
  color: var(--gold-300);
}

/* ---------------- ダークテーマ: サイドバー/モバイルボトムシート ---------------- */
body.theme-dark .sidebar {
  background: var(--ink-800);
  color: var(--paper-50);
}
body.theme-dark .mode-toggle {
  background: var(--ink-700);
}
body.theme-dark .mode-btn,
body.theme-dark .theme-btn,
body.theme-dark .maptype-btn,
body.theme-dark .toggle-btn,
body.theme-dark .viewmode-btn {
  color: var(--slate-300);
}
body.theme-dark .mode-btn.is-active,
body.theme-dark .theme-btn.is-active,
body.theme-dark .maptype-btn.is-active,
body.theme-dark .toggle-btn.is-active,
body.theme-dark .viewmode-btn.is-active {
  background: var(--paper-50);
  color: var(--ink-900);
}
body.theme-dark .panel-label,
body.theme-dark .empty-state {
  color: var(--slate-300);
}
body.theme-dark .pref-card {
  background: var(--ink-700);
}
body.theme-dark .pref-card:hover {
  background: var(--ink-700);
  filter: brightness(1.3);
}
body.theme-dark .pref-name {
  color: var(--paper-50);
}
body.theme-dark .density-track {
  background: rgba(255, 255, 255, 0.12);
}
body.theme-dark .pref-count {
  color: var(--pink-400);
}
body.theme-dark .panel-calendar,
body.theme-dark .sidebar > .panel:first-of-type,
body.theme-dark .panel[data-mobile-group="settings"] + .panel[data-mobile-group="filter"] {
  border-top-color: var(--ink-700);
}
body.theme-dark .status-filter-tab,
body.theme-dark .calendar-card {
  background: var(--ink-700);
}
body.theme-dark .calendar-card-name,
body.theme-dark .status-filter-tab {
  color: var(--paper-50);
}
/* .status-filter-tab.is-active(2クラス)よりbody.theme-dark .status-filter-tab
 * (要素+2クラス)の方が詳細度が高く背景色が上書きされてしまっていたため、
 * アクティブ時のピンク背景をダークモードでも明示的に指定し直す */
body.theme-dark .status-filter-tab.is-active {
  background: var(--pink-600);
  color: #fff;
}
body.theme-dark .calendar-card-hours,
body.theme-dark .calendar-empty {
  color: var(--slate-300);
}
body.theme-dark .calendar-pref-select {
  background-color: rgba(200, 30, 101, 0.22);
  color: var(--paper-50);
  border-color: var(--pink-400);
}
body.theme-dark .calendar-pref-select:hover {
  background-color: rgba(200, 30, 101, 0.34);
}
body.theme-dark .sidebar-drag-handle::before {
  background: var(--slate-500);
}

/* ---------------- Map ---------------- */
.map-wrap {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  background: var(--ink-900);
}

#pulse-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

#rainbow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.map-loading {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 18, 16, 0.88);
  color: var(--paper-50);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  transition: opacity 0.2s ease;
}
.map-loading.is-hidden { opacity: 0; pointer-events: none; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-500);
  box-shadow: 0 0 0 0 rgba(200, 30, 101, 0.6);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 30, 101, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 30, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 30, 101, 0); }
}

/* ---------------- Google Maps InfoWindow ---------------- */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 10px !important;
  background: var(--ink-800) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5) !important;
  overflow: hidden !important;
}
.gm-style .gm-style-iw-chr {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 1 !important;
  float: none !important;
  height: 0 !important;
  overflow: visible !important;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}
.info-card {
  width: 100%;
  box-sizing: border-box;
}
.gm-style .gm-style-iw-tc::after {
  background: var(--ink-800) !important;
}
.gm-style button.gm-ui-hover-effect {
  top: 8px !important;
  right: 8px !important;
  width: 26px !important;
  height: 26px !important;
  background: rgba(0,0,0,0.6) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.gm-style button.gm-ui-hover-effect > span {
  background-color: #fff !important;
  margin: 0 !important;
}
.info-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.info-photo-loading,
.info-photo-none {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--slate-300);
  background: var(--ink-700);
}
.info-card-body {
  padding: 10px 14px 12px;
  box-sizing: border-box;
  width: 100%;
}
.info-photo-link {
  display: block;
  position: relative;
  line-height: 0;
  cursor: pointer;
}
.info-photo-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-50);
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.info-name {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--paper-50);
  text-decoration: none;
}
.info-name:hover {
  text-decoration: underline;
}
.info-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--paper-50);
}
.info-card .info-meta {
  font-size: 12px;
  color: var(--slate-300);
  margin-bottom: 6px;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}
.info-open-status {
  display: block;
  width: fit-content;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 0 8px;
}
.info-open-status.status-open,
.info-open-status.status-closing_soon {
  color: #1a7a3e;
  background: #d9f2e3;
}
.info-open-status.status-opening_soon {
  color: #a05a00;
  background: #ffe8c2;
}
.info-open-status.status-closed {
  color: #a04040;
  background: #f2d9d9;
}
.info-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.info-link-btn {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 6px 6px;
  border: 1px solid var(--pink-400);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-400);
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-link-btn.is-disabled {
  border-color: var(--slate-500);
  color: var(--slate-500);
  cursor: default;
  pointer-events: none;
}

.streetview-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(26, 18, 16, 0.85);
  color: var(--paper-50);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.streetview-hint.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.custom-compass-btn {
  width: 40px;
  height: 40px;
  margin: 10px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.1s linear;
}
.custom-compass-btn:hover {
  background: var(--paper-100);
}

/* ---------------- Responsive ---------------- */
/* モバイル向けレイアウト。従来は@media (max-width: 860px)のみで判定していたが、
 * 設定パネルの「表示モード」で手動切り替えできるよう、実際の画面幅ではなく
 * JS側で付け外しするbody.is-mobile-viewクラスを基準にする
 * （付与のロジックはscript.jsのapplyViewMode参照）。 */
body.is-mobile-view .main { flex-direction: column; }
body.is-mobile-view .map-wrap { min-height: 100vh; min-height: 100dvh; order: 1; }

/* 左上のハンバーガーメニューはモバイルでは廃止し、下部ナビに統一 */
body.is-mobile-view #sidebar-toggle { display: none; }

/* ストリートビュー表示中は画面が狭いので「最終更新」を隠す */
body.is-mobile-view.streetview-active .update-info { display: none; }

body.is-mobile-view .mobile-bottom-nav {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  background: var(--paper-50);
  border-top: 1px solid var(--paper-100);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.is-mobile-view.theme-dark .mobile-bottom-nav {
  background: var(--ink-800);
  border-top-color: var(--ink-700);
}
body.is-mobile-view.theme-dark .mobile-nav-btn {
  color: var(--slate-300);
}
body.is-mobile-view.theme-dark .mobile-nav-btn.is-active {
  color: var(--pink-400);
}

body.is-mobile-view .sidebar-drag-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  touch-action: none;
  cursor: grab;
}
body.is-mobile-view .sidebar-drag-handle::before {
  content: "";
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--paper-100);
}

/* サイドバーをボトムシート化。デスクトップ用の.is-hiddenは無効化する */
body.is-mobile-view .sidebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  /* max-heightだと中身の量によってタブごとにモーダルの高さが変わって
   * しまうため、固定heightにして常に同じ高さにする（中身が収まらない
   * 場合は内部でoverflow-y: autoによりスクロールする） */
  height: 75vh;
  border-radius: 16px 16px 0 0;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 20;
  order: 2;
  /* 中身が画面に収まらない設定項目等を縦スクロールできるようにpan-yを許可する。
   * 「下スワイプで閉じる」操作はJS側で、一番上までスクロールした状態で
   * 下方向に動いた時だけ発動するようになっている（script.jsのsetupSidebarDrag参照） */
  touch-action: pan-y;
  overscroll-behavior: contain;
}
body.is-mobile-view .sidebar.is-hidden {
  margin-left: 0;
}
body.is-mobile-view .sidebar.mobile-open {
  transform: translateY(0);
}

body.is-mobile-view .panel.mobile-group-hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .pref-card { transition: none; }
}
