/* Main application layout & 3D Liquid Glass UI System (v2.5.0 r187 — по Фото 2) */

:root {
  --header-h: 112px;
}

html {
  width: 100%;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  padding-top: var(--header-h, 112px);
  padding-bottom: 94px !important;
  background: var(--bg-grad, var(--bg)) !important;
  background-attachment: fixed !important;
}

.bottom-nav {
  width: 100%;
  max-width: 100vw;
}
#app.app-main {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Базовый векторный значок .k-ico (полная замена эмодзи) */
.k-ico {
  width: 1.15em;
  height: 1.15em;
  min-width: 14px;
  min-height: 14px;
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* ==========================================================================
   1. ШАПКА 3D GLASS (СЛЕВА СТАТУС СЕТИ И ВОДЫ, СПРАВА ТЕМА И ID + ОКРУГ)
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(16, 32, 54, 0.95) 0%, rgba(9, 19, 34, 0.96) 100%);
  border-bottom: 1.5px solid rgba(103, 210, 255, 0.28);
  padding: 6px 8px 6px 8px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: auto;
}
[data-theme="light"] .app-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 242, 252, 0.95) 100%);
  border-bottom-color: #b8d4ee;
  box-shadow: 0 4px 16px rgba(20, 45, 76, 0.12), inset 0 1px 0 #ffffff;
}

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 6px;
  padding-bottom: 6px;
  width: 100%;
}

/* Выпуклый 3D-блок статуса слева в шапке */
.header-status-block {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 14px;
  border: 1.5px solid rgba(148, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(38, 60, 88, 0.92) 0%, rgba(18, 32, 52, 0.96) 100%);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.32), inset 0 -2px 4px rgba(0, 0, 0, 0.48), 0 4px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.header-status-block:active {
  transform: scale(0.98);
}
.header-status-block.open-water {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.26) 0%, rgba(12, 42, 56, 0.94) 100%);
  border-color: rgba(52, 211, 153, 0.50);
}
.header-status-block.ice-slush {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.28) 0%, rgba(45, 36, 24, 0.94) 100%);
  border-color: rgba(251, 191, 36, 0.52);
}
.header-status-block.ice-safe {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.28) 0%, rgba(15, 38, 62, 0.94) 100%);
  border-color: rgba(125, 211, 252, 0.55);
}
.header-status-block.ice-danger {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.30) 0%, rgba(52, 18, 26, 0.94) 100%);
  border-color: rgba(248, 113, 113, 0.58);
}
[data-theme="light"] .header-status-block {
  background: linear-gradient(180deg, #ffffff 0%, #e6f2fc 100%);
  box-shadow: inset 0 1.5px 1px #ffffff, 0 3px 8px rgba(20, 45, 76, 0.10);
}

.header-status-main {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.header-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="light"] .header-online-badge {
  background: rgba(255, 255, 255, 0.85);
}

.header-season-verdict {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.header-status-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  opacity: 0.94;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 1.2;
}
.header-status-sub > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-theme-chip {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(38, 62, 92, 0.95) 0%, rgba(16, 30, 50, 0.98) 100%);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.38);
  color: var(--text);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
[data-theme="light"] .btn-theme-chip {
  background: linear-gradient(180deg, #ffffff 0%, #e2eef9 100%);
  border-color: #b5d0ea;
  box-shadow: inset 0 1.5px 1px #ffffff, 0 3px 8px rgba(20, 45, 76, 0.10);
}

.header-id-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px 4px 8px;
  overflow: hidden;
  border-radius: 14px;
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  background: linear-gradient(180deg, rgba(22, 54, 68, 0.95) 0%, rgba(11, 28, 42, 0.98) 100%);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.32), inset 0 -2px 4px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.38);
  color: var(--text);
  cursor: pointer;
  text-align: right;
  max-width: 156px;
}
[data-theme="light"] .header-id-profile-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e6f4f1 100%);
  box-shadow: inset 0 1.5px 1px #ffffff, 0 3px 8px rgba(20, 45, 76, 0.10);
}

.header-id-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  min-width: 0;
}

.header-id-code {
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.header-id-sub {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 132px;
}

.header-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.28) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(148, 210, 255, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   2. ВЕРХНЯЯ ПАНЕЛЬ НАВИГАЦИИ: ВЫПУКЛЫЕ 3D-СТЕКЛЯННЫЕ КНОПКИ БЕЗ ОБРЕЗКИ ТЕКСТА
   ========================================================================== */
.top-section-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px 0 2px;
  border-top: 1px solid rgba(148, 210, 255, 0.18);
}
.top-section-nav[data-has-admin="1"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.top-nav-item {
  border: 1.5px solid rgba(148, 210, 255, 0.32);
  background: linear-gradient(180deg, rgba(38, 62, 92, 0.92) 0%, rgba(17, 31, 52, 0.96) 55%, rgba(11, 21, 38, 0.98) 100%);
  box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.38);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 6px;
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
[data-theme="light"] .top-nav-item {
  background: linear-gradient(180deg, #ffffff 0%, #e4f0fb 100%);
  border-color: #b4d0eb;
  box-shadow: inset 0 1.5px 1px #ffffff, inset 0 -1.5px 3px rgba(20, 45, 76, 0.08), 0 3px 8px rgba(20, 45, 76, 0.10);
}
.top-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}
.top-nav-item:active {
  transform: scale(0.96);
}

.top-nav-ico {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-nav-lbl {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.15px;
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.15;
}

.top-nav-item.active {
  color: #ffffff;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 52%, #0369a1 100%);
  border-color: #7dd3fc;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.60), inset 0 -2px 4px rgba(0, 0, 0, 0.40), 0 4px 14px rgba(2, 132, 199, 0.55);
}
[data-theme="contrast"] .top-nav-item.active {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 55%, #b45309 100%);
  border-color: #fde68a;
  color: #ffffff;
}

/* ==========================================================================
   3. КАРТОЧКИ 3D LIQUID GLASS С ДИАГОНАЛЬНЫМ БЛИКОМ (ПО ФОТО 2)
   ========================================================================== */
.app-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-main > section,
.card,
.bento-card,
#fcExpressBox,
#fcWeekBox,
#fcHourlyBox {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.bento-dashboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bento-card,
.card {
  background: linear-gradient(155deg, rgba(24, 45, 72, 0.92) 0%, rgba(12, 25, 44, 0.96) 55%, rgba(8, 17, 31, 0.98) 100%);
  border: 1.5px solid rgba(110, 205, 255, 0.32);
  border-radius: 20px;
  padding: 13px 14px;
  box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.25), inset 0 -2px 6px rgba(0, 0, 0, 0.55), 0 10px 26px rgba(0, 0, 0, 0.52), 0 0 16px rgba(0, 229, 255, 0.06);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
[data-theme="light"] .bento-card,
[data-theme="light"] .card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 245, 253, 0.94) 100%);
  border-color: #b4d0eb;
  box-shadow: inset 0 1.5px 1px #ffffff, 0 8px 22px rgba(20, 45, 76, 0.10);
}
[data-theme="contrast"] .bento-card,
[data-theme="contrast"] .card {
  background: linear-gradient(155deg, rgba(28, 39, 58, 0.96) 0%, rgba(16, 23, 36, 0.98) 100%);
  border-color: rgba(245, 158, 11, 0.34);
}

/* Диагональный стеклянный блик на карточках, как на Фото 2 (1000131310.jpg) */
.bento-card::before,
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15%;
  width: 68%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 48%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.bento-card > *,
.card > * {
  position: relative;
  z-index: 1;
}

.bento-card.bento-hero-card {
  border-color: var(--bento-hero-border, rgba(56, 189, 248, 0.42));
}
.bento-card.bento-chart-card {
  border-color: var(--bento-chart-border, rgba(56, 189, 248, 0.36));
}
.bento-card.bento-radar-card {
  border-color: var(--bento-radar-border, rgba(56, 189, 248, 0.38));
  cursor: pointer;
}
.bento-card.bento-weather-card {
  border-color: var(--bento-weather-border, rgba(16, 185, 129, 0.38));
  cursor: pointer;
}

.bento-card-head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.bento-card-title,
.section-title {
  font-size: 15.5px;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.24;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.bento-card-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

/* Герой-сетка (Ихтиологический Прогноз / Режим водоёма) */
.bento-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 10px;
  align-items: center;
  width: 100%;
}

.bento-hero-left,
.bento-gauge-col {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 420px) {
  .bento-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 8px;
  }
  .bento-gauge-svg-box {
    width: 138px;
    height: 82px;
  }
  .bento-gauge-svg-box svg {
    width: 138px;
    height: 80px;
  }
  .bento-status-verdict {
    font-size: 15px;
  }
}

.bento-active-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bento-splash-fish-box {
  width: 68px;
  height: 52px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.5) 78%);
  border: 1.5px solid rgba(125, 211, 252, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 3px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
}

.bento-splash-fish-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.bento-status-verdict {
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.15;
  color: var(--good);
}

.bento-top3-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}

.bento-top3-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bento-top3-item {
  border: 1.5px solid rgba(148, 210, 255, 0.28);
  background: linear-gradient(180deg, rgba(34, 56, 84, 0.90) 0%, rgba(15, 28, 48, 0.95) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 3px 8px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
[data-theme="light"] .bento-top3-item {
  background: linear-gradient(180deg, #ffffff 0%, #eaf3fc 100%);
  border-color: #bdd4ea;
}

.bento-top3-item.active {
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.4), 0 0 0 1.5px var(--accent);
}

.bento-top3-item img {
  width: 54px;
  height: 26px;
  object-fit: contain;
}

.bento-top3-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bento-top3-pct {
  font-size: 10px;
  font-weight: 900;
  color: var(--good);
}

.bento-gauge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bento-gauge-svg-box {
  position: relative;
  width: 156px;
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bento-gauge-center-text {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.12;
}

.bento-gauge-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.bento-gauge-lvl {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.bento-gauge-pct {
  font-size: 27px;
  font-weight: 900;
  color: var(--text);
  margin-top: 1px;
}
[data-theme="dark"] .bento-gauge-pct {
  color: #00f5a0;
  text-shadow: 0 0 10px rgba(0, 245, 160, 0.30);
}
[data-theme="contrast"] .bento-gauge-pct {
  color: #fbbf24;
}

.bento-tackle-summary {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
}

.bento-tackle-rec {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.28;
}

.bento-bottom-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 360px) {
  .bento-bottom-duo {
    grid-template-columns: 1fr;
  }
}

.bento-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 9px;
}

.bento-metric-tile {
  background: linear-gradient(180deg, rgba(30, 52, 80, 0.88) 0%, rgba(14, 27, 46, 0.94) 100%);
  border: 1.5px solid rgba(125, 195, 245, 0.28);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.22), 0 4px 10px rgba(0, 0, 0, 0.32);
  border-radius: 15px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
[data-theme="light"] .bento-metric-tile {
  background: linear-gradient(180deg, #ffffff 0%, #ebf4fc 100%);
  border-color: #bdd4ea;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 8px rgba(20, 45, 76, 0.08);
}

.bento-metric-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.bento-metric-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.bento-metric-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.bento-bottom-duo {
  align-items: stretch;
}
.bento-radar-card,
.bento-weather-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.bento-radar-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 142px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(125, 195, 245, 0.36);
  background: radial-gradient(circle at 52% 54%, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.14) 55%, rgba(15, 23, 42, 0.32) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .bento-radar-visual {
  background: linear-gradient(135deg, #bae6fd 0%, #dbeafe 52%, #bfdbfe 100%);
}
[data-theme="contrast"] .bento-radar-visual {
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.18) 0%, #0f1623 78%);
  border-color: rgba(56, 189, 248, 0.36);
}

.bento-radar-badge-zone {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bento-radar-badge-crew {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: var(--panel);
  border: 1px solid var(--good);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--good);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bento-weather-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-temp-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.bento-temp-air {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
}

.bento-temp-water-box {
  text-align: right;
  line-height: 1.15;
}

.bento-weather-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.22;
}

/* ==========================================================================
   4. ЛЕНТЫ ПРОКРУТКИ, КАРТОЧКИ ДНЕЙ, ЧАСОВ И РЫБ
   ========================================================================== */
.express-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 10px;
}

.fish-strip,
.week-strip,
.bite-timeline,
.chip-scroll-row,
.month-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fish-toolbar-onerow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
}

@media (min-width: 680px) {
  .fish-toolbar-onerow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fish-toolbar-onerow .btn {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
}

.fish-strip-placeholder {
  width: 100%;
  min-width: 0;
}

.fish-strip-dock-wrap {
  width: 100%;
  min-width: 0;
  will-change: height, transform;
  transition: background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1), height 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}

.fish-strip-dock-wrap.docked-mini {
  position: fixed;
  top: var(--header-h, 112px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 990;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-header);
  padding: 4px 12px;
}

.fish-strip-dock-wrap.docked-mini .fish-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px 0;
  gap: 6px;
}

.fish-strip-dock-wrap.docked-mini .fish-card {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-width: calc(168px - var(--shrink, 1) * 58px);
  max-width: none;
  padding: calc(10px - var(--shrink, 1) * 5px) 10px calc(10px - var(--shrink, 1) * 5px) 8px;
  gap: 6px;
  border-radius: var(--r-sm);
  transform: none !important;
}

.fish-strip-dock-wrap.docked-mini .fish-img-wrap {
  width: calc(118px - var(--shrink, 1) * 78px);
  height: calc(52px - var(--shrink, 1) * 26px);
  margin: 0;
  flex-shrink: 0;
  transition: width 0.14s ease, height 0.14s ease;
}

.fish-strip-dock-wrap.docked-mini .fish-name {
  font-size: 13.5px;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

.fish-strip-dock-wrap.docked-mini .fav-btn,
.fish-strip-dock-wrap.docked-mini .fish-latin,
.fish-strip-dock-wrap.docked-mini .fish-badge-wrap,
.fish-strip-dock-wrap.docked-mini .fish-rating-box,
.fish-strip-dock-wrap.docked-mini .fish-redbook-ban,
.fish-strip-dock-wrap.docked-mini [data-info-fish] {
  display: none !important;
}

.week-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  align-items: stretch;
}

.day-card {
  min-width: 146px;
  background: linear-gradient(180deg, rgba(32, 54, 82, 0.90) 0%, rgba(14, 27, 46, 0.95) 100%);
  border: 1.5px solid rgba(125, 195, 245, 0.28);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35);
  border-radius: 15px;
  padding: 9px 11px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
[data-theme="light"] .day-card {
  background: linear-gradient(180deg, #ffffff 0%, #ebf4fc 100%);
  border-color: #bdd4ea;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 8px rgba(20, 45, 76, 0.08);
}
.day-card:hover { border-color: var(--accent); }
.day-card.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.24) 0%, rgba(14, 42, 68, 0.95) 100%);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.4), 0 0 0 1.5px var(--accent);
}
[data-theme="light"] .day-card.active {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
}

.day-card.archive-day {
  min-width: 118px;
  max-width: 132px;
  padding: 7px 9px;
  gap: 3px;
  border-style: dashed;
  opacity: 0.92;
}
.day-card.priority-day {
  min-width: 184px;
  padding: 10px 12px;
  border-width: 1.5px;
}

.day-status-stripe {
  height: 4px;
  width: 100%;
  border-radius: 3px;
}

.month-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.month-cell {
  flex: 1 0 62px;
  min-width: 62px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.month-cell.current { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }

/* ==========================================================================
   5. НИЖНИЙ 3D МАТОВЫЙ СТЕКЛЯННЫЙ ДОК «БЫСТРЫЙ ДОСТУП» (ПО ФОТО 2)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  border-top: none !important;
  box-shadow: none !important;
  padding: 0 8px 6px 8px;
  pointer-events: none;
}

.quick-dock-tab-label {
  width: fit-content;
  margin: 0 auto -1px auto;
  padding: 1px 12px 1px;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, rgba(46, 70, 98, 0.88) 0%, rgba(24, 40, 62, 0.92) 100%);
  border: 1px solid rgba(148, 210, 255, 0.28);
  border-bottom: none;
  font-size: 9.5px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.3px;
  pointer-events: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 -2px 6px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .quick-dock-tab-label {
  background: linear-gradient(180deg, #ffffff 0%, #dceaf7 100%);
  border-color: #b4d0eb;
  color: #1e3a8a;
}

.bottom-nav-inner {
  pointer-events: auto;
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(72, 100, 132, 0.52) 0%, rgba(28, 46, 70, 0.92) 42%, rgba(14, 25, 42, 0.98) 100%);
  border: 1.5px solid rgba(165, 220, 255, 0.42);
  border-radius: 22px;
  padding: 5px 6px !important;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.42), inset 0 -2px 5px rgba(0, 0, 0, 0.55), 0 8px 26px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 5px !important;
  position: relative;
}
[data-theme="light"] .bottom-nav-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(220, 236, 250, 0.94) 100%);
  border-color: #a8c8e8;
  box-shadow: inset 0 2px 1px #ffffff, 0 6px 20px rgba(20, 45, 76, 0.16);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text);
  opacity: 0.86;
  font-size: 11px;
  font-weight: 800;
  border-radius: 15px;
  cursor: pointer;
  padding: 4px 2px;
  min-width: 0;
  transition: all 0.15s ease;
}

.nav-tab.active {
  opacity: 1;
  color: #38bdf8;
  background: linear-gradient(180deg, rgba(22, 44, 70, 0.95) 0%, rgba(10, 22, 38, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.28), 0 3px 10px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .nav-tab.active {
  color: #1d4ed8;
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #60a5fa;
  box-shadow: inset 0 1.5px 1px #ffffff, 0 2px 6px rgba(37, 99, 235, 0.18);
}
[data-theme="contrast"] .nav-tab.active {
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.6);
}

.bottom-nav-inner .nav-tab .dock-ico {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-sos-btn {
  opacity: 1 !important;
  color: #ef4444 !important;
}

.sos-red-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ff8787 0%, #ef4444 52%, #991b1b 100%);
  border: 2px solid #fecaca;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.55), 0 3px 12px rgba(220, 38, 38, 0.65);
}

.sos-lbl-text {
  font-size: 10.5px;
  font-weight: 900;
  color: #ef4444;
}

/* ==========================================================================
   6. КАРТА И ПРОЧИЕ МОДУЛИ
   ========================================================================== */
#mapBox {
  width: 100%;
  height: 330px;
  border-radius: 16px;
  border: 1.5px solid rgba(125, 195, 245, 0.38);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  background: #0f172a;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  transition: height 0.2s ease;
}

@media (min-width: 768px) {
  #mapBox { height: clamp(330px, 45vh, 420px); }
}

.map-layers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
}

.map-layer-btn {
  width: 100%;
  text-align: center;
  padding: 5px 2px;
  font-size: 12.5px;
  font-weight: 800;
  min-height: 36px;
  border-radius: 999px !important;
}

@media (max-width: 720px) {
  .factor-row { grid-template-columns: 135px 1fr 50px; font-size: var(--fs-xs); }
  .nav-tab { font-size: 10.5px; padding: 3px 1px; }
}

.circle-chats-hub-bar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 5px !important;
  background: var(--panel) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 16px !important;
  margin-bottom: 12px !important;
}

.circle-chats-hub-btn {
  min-height: 40px !important;
  padding: 5px 6px !important;
  border-radius: 11px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* Полноэкранный загрузочный экран (100vw × 100dvh, единая плавная строка прогресса 2.4 сек) */
.app-splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 12000;
  background: #040914;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s ease;
}
.app-splash-screen.splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.app-splash-inner {
  position: relative;
  width: 100vw;
  height: 100dvh;
  max-width: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.app-splash-art-wrap {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden;
  background: #050c1a;
  margin: 0;
}
.app-splash-art-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(4, 9, 20, 0) 0%, rgba(4, 9, 20, 0.82) 55%, rgba(4, 9, 20, 0.96) 100%);
  pointer-events: none;
}
.app-splash-screen[data-app-splash-theme="light"] .app-splash-art-wrap::after {
  background: linear-gradient(180deg, rgba(233, 241, 248, 0) 0%, rgba(233, 241, 248, 0.88) 55%, rgba(225, 238, 250, 0.98) 100%);
}
.app-splash-img {
  width: 100vw;
  height: 100dvh;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.app-splash-loader {
  position: relative;
  z-index: 2;
  width: min(90vw, 420px);
  margin: 0 auto 34px auto;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.78);
  border: 1.5px solid rgba(56, 189, 248, 0.42);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-splash-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.app-splash-stage {
  font-size: 12px;
  font-weight: 800;
  color: #e2e8f0;
  text-align: left;
  line-height: 1.25;
}
.app-splash-pct {
  font-size: 12.5px;
  font-weight: 900;
  font-family: monospace;
  color: #38bdf8;
  flex-shrink: 0;
}
.app-splash-bar {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.38);
}
.app-splash-bar-fill {
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 60%, #60a5fa 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
  transition: width 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-splash-screen[data-app-splash-theme="light"] .app-splash-loader {
  background: rgba(255, 255, 255, 0.88);
  border-color: #93c5fd;
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px rgba(30, 58, 138, 0.16);
}
.app-splash-screen[data-app-splash-theme="light"] .app-splash-stage {
  color: #0f172a;
}
.app-splash-screen[data-app-splash-theme="light"] .app-splash-pct {
  color: #0284c7;
}
.app-splash-screen[data-app-splash-theme="light"] .app-splash-bar {
  background: #dbeafe;
  border-color: #93c5fd;
}
.app-splash-screen[data-app-splash-theme="contrast"] .app-splash-loader {
  background: rgba(12, 17, 26, 0.92);
  border-color: rgba(245, 158, 11, 0.65);
}
.app-splash-screen[data-app-splash-theme="contrast"] .app-splash-bar-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
}
.app-splash-screen[data-app-splash-theme="contrast"] .app-splash-stage,
.app-splash-screen[data-app-splash-theme="contrast"] .app-splash-pct {
  color: #fbbf24;
}

.fisher-id-copy-badge {
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.14s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.fisher-id-copy-badge:active,
.fisher-id-copy-badge.copied-flash {
  transform: scale(0.96);
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: var(--good) !important;
  color: var(--good) !important;
}
.circle-compact-row {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.circle-compact-row:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   7. ЧЁТКИЕ ПОЧАСОВЫЕ ГРАФИКИ БЕЗ РАСТЯЖЕНИЯ ШРИФТОВ + ШКАЛА 3 ЧАСА (v2.5.6 r215)
   ========================================================================== */
.bento-chart-stage {
  position: relative;
  width: 100%;
  height: 114px;
  user-select: none;
  -webkit-user-select: none;
}

.bento-chart-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 3;
}

.bento-chart-badge {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--panel, rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.48);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text, #f8fafc);
  white-space: nowrap;
  line-height: 1.25;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 4;
}

.bento-chart-ticks-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  padding: 4px 2px 2px;
  margin-top: 2px;
  border-top: 1px solid rgba(148, 210, 255, 0.16);
}

.bento-chart-tick-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 1px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.28);
  line-height: 1.15;
}
[data-theme="light"] .bento-chart-tick-cell {
  background: rgba(219, 234, 254, 0.55);
}

.bento-chart-tick-hr {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
}

.bento-chart-tick-val {
  font-size: 10.5px;
  font-weight: 900;
}

/* ==========================================================================
   8. ПЛАТФОРМЕННО-АДАПТИВНЫЙ AUTO-LAYOUT & CONSTRAINT GRID (3 РЕЖИМА)
   1) mobile-portrait   : Смартфон вертикально (APK / PWA / Браузер) — эталон
   2) mobile-landscape  : Смартфон горизонтально (APK / PWA / Браузер)
   3) desktop-tablet    : Десктоп и планшет в горизонтальной ориентации (>= 900px)
   ========================================================================== */

/* РЕЖИМ 2: Смартфон в горизонтальной ориентации (APK / PWA / Браузер) */
@media (max-width: 920px) and (orientation: landscape), (max-height: 540px) and (orientation: landscape) {
  :root {
    --header-h: 84px;
  }
  body {
    padding-top: 84px !important;
    padding-bottom: 68px !important;
  }
  .app-header {
    padding: 3px 8px !important;
  }
  .header-bar {
    padding-bottom: 3px;
  }
  .top-section-nav {
    padding: 3px 0 1px;
    gap: 4px;
  }
  .top-nav-item {
    flex-direction: row;
    padding: 4px 6px;
    gap: 5px;
  }
  .top-nav-ico {
    font-size: 14px;
  }
  #app.app-main {
    max-width: 100%;
    padding: 6px 10px 12px;
  }
  .bento-dashboard-wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }
  .bento-dashboard-wrap > .chip-scroll-row {
    grid-column: 1 / -1;
    order: 1;
  }
  .bento-dashboard-wrap > .bento-hero-card {
    grid-column: span 6;
    order: 2;
    margin: 0;
  }
  .bento-dashboard-wrap > .bento-chart-card {
    grid-column: span 6;
    order: 3;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .bento-dashboard-wrap > .bento-bottom-duo {
    grid-column: 1 / -1;
    order: 4;
    margin: 0;
  }
  .bento-dashboard-wrap > .bento-solunar-card {
    grid-column: 1 / -1;
    order: 5;
    margin: 0;
  }
  .bento-dashboard-wrap > * {
    grid-column: 1 / -1;
    order: 6;
  }
  .bento-radar-visual {
    min-height: 88px !important;
    height: 88px !important;
    max-height: 88px !important;
  }
  #mapBox {
    height: clamp(210px, 54dvh, 300px) !important;
  }
  .nav-tab {
    min-height: 38px;
    flex-direction: row;
    gap: 4px;
    padding: 2px 4px;
  }
  .quick-dock-tab-label {
    display: none;
  }
}

/* РЕЖИМ 3: Десктоп и планшет в горизонтальной ориентации (Auto-Layout Constraint Grid) */
@media (min-width: 900px) and (min-height: 541px) {
  .header-bar,
  .top-section-nav,
  #app.app-main {
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #app.app-main {
    padding: 12px 16px 24px !important;
    gap: 12px !important;
  }

  /* 12-колоночный Bento Auto-Layout для главного экрана «Прогноз» и вкладки «Погода» */
  .bento-dashboard-wrap {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .bento-dashboard-wrap > .chip-scroll-row {
    grid-column: 1 / -1 !important;
    order: 1 !important;
  }

  .bento-dashboard-wrap > .bento-hero-card {
    grid-column: span 6 !important;
    order: 2 !important;
    margin: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .bento-dashboard-wrap > .bento-chart-card {
    grid-column: span 6 !important;
    order: 3 !important;
    margin: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .bento-dashboard-wrap > .bento-bottom-duo {
    grid-column: 1 / -1 !important;
    order: 4 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    align-items: stretch !important;
  }

  .bento-dashboard-wrap > .bento-solunar-card {
    grid-column: 1 / -1 !important;
    order: 5 !important;
    margin: 0 !important;
  }

  .bento-dashboard-wrap > * {
    grid-column: 1 / -1;
    order: 6;
  }

  /* Компактные виджеты «Карта & Радар» и «Погода & Лёд» в десктопной версии */
  .bento-bottom-duo .bento-radar-card,
  .bento-bottom-duo .bento-weather-card {
    padding: 11px 14px !important;
  }

  .bento-bottom-duo .bento-radar-visual {
    min-height: 96px !important;
    height: 96px !important;
    max-height: 96px !important;
  }

  .bento-bottom-duo .bento-weather-rows {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
    gap: 8px 12px !important;
    align-items: center !important;
  }

  .bento-bottom-duo .bento-temp-split {
    grid-column: 1 / -1 !important;
    padding-bottom: 4px !important;
  }

  .bento-bottom-duo .bento-weather-item-row {
    padding-top: 6px !important;
    margin: 0 !important;
  }

  /* Компактная и удобная высота основной карты #mapBox на мониторах ПК и планшетах */
  #mapBox {
    height: clamp(330px, 44vh, 410px) !important;
    max-height: 410px !important;
  }

  /* Вкладка «Рыбы»: многоколоночная сетка карточек вместо растянутой полосы прокрутки */
  #secFish .fish-strip-dock-wrap:not(.docked-mini) .fish-strip {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 430px !important;
    padding: 6px 4px !important;
  }

  #secFish .fish-strip-dock-wrap:not(.docked-mini) .fish-card {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  /* Вкладка «Круг • Слипы • Чаты»: многоколоночная раскладка кнопок и карточек */
  .circle-spot-add-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .circle-profile-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)) !important;
    gap: 8px !important;
  }

  .circle-personal-spots-grid,
  .circle-compact-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .circle-personal-spots-grid > :only-child,
  .circle-compact-list > :only-child {
    grid-column: 1 / -1 !important;
  }
}

/* ==========================================================================
   9. МОБИЛЬНЫЙ ГОСТЕВОЙ РЕЖИМ ВОВЛЕЧЕНИЯ (data-mobile-guest="1")
   Активен ТОЛЬКО на мобильных устройствах (APK, iOS, PWA, Mobile Web, TMA)
   до момента входа/регистрации пользователя. На ПК (desktop-tablet) не применяется.
   ========================================================================== */
html[data-mobile-guest="1"] .top-section-nav [data-nav-tab="weather"],
html[data-mobile-guest="1"] .top-section-nav [data-nav-tab="fish"],
html[data-mobile-guest="1"] .top-section-nav [data-nav-tab="calendar"],
html[data-mobile-guest="1"] .bottom-nav #navCircleChatsHubBtn,
html[data-mobile-guest="1"] .bottom-nav #bottomQuickSosBtn,
html[data-mobile-guest="1"] .bottom-nav [data-nav-tab="log"],
html[data-mobile-guest="1"] [data-onb-mode],
html[data-mobile-guest="1"] #appParamsFactorCalibCard,
html[data-mobile-guest="1"] [data-switch-settings-zone="fishing"],
html[data-mobile-guest="1"] [data-open-hub-zone="fishing"],
html[data-mobile-guest="1"] .day-card[data-guest-locked-day="1"],
html[data-mobile-guest="1"] #fcCleanArchiveBtn {
  opacity: 0.42 !important;
  filter: saturate(0.45);
  
}

html[data-mobile-guest="1"] .top-section-nav #topNavSettingsBtn,
html[data-mobile-guest="1"] .bottom-nav [data-nav-tab="geo"],
html[data-mobile-guest="1"] .bottom-nav [data-nav-tab="forecast"] {
  opacity: 1 !important;
}

/* На первом экране «Прогноз» у мобильного гостя остаются ТОЛЬКО 4 карточки (Фото 1–4):
   1) Ихтиологический Прогноз Клёва (#bentoSwipeHeroCard)
   2) Почасовой график клёва 00:00–24:00 (#bentoWaveChartCard)
   3) Погода & Лёд / Вода (#bentoWeatherIceCard на всю ширину ряда)
   4) Календарь клёва по дням (#fcWeekBox, активен только «Сегодня») */
html[data-mobile-guest="1"] #bentoMapRadarCard,
html[data-mobile-guest="1"] .bento-tackle-controls-card,
html[data-mobile-guest="1"] .bento-tactical-advice-wrap,
html[data-mobile-guest="1"] #fcHourlyBox {
  display: none !important;
}

html[data-mobile-guest="1"] .bento-bottom-duo {
  grid-template-columns: minmax(0, 1fr) !important;
}

html[data-mobile-guest="1"] #bentoWeatherIceCard {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* На экране «Карта» у мобильного гостя остаются ТОЛЬКО (Фото 5–6):
   1) Две кнопки «Где я» (#geoGpsBtn) и «Кто здесь клюёт» (#geoInspectModeBtn)
   2) Интерактивная карта (#mapBox)
   3) Блок с кнопками рыб водоёма (#geoWaterIchthyoCard) */
html[data-mobile-guest="1"] .geo-auth-only-block {
  display: none !important;
}

html:not([data-mobile-guest="1"]) .geo-guest-only-inline {
  display: none !important;
}

html[data-mobile-guest="1"] .geo-full-only-inline {
  display: none !important;
}

/* ==========================================================================
   10. ПОДСВЕТКА ИЗМЕНЁННЫХ БЛОКОВ С УГАСАНИЕМ И ИНТЕРАКТИВНЫЙ СКРАББИНГ ГРАФИКА
   ========================================================================== */
@keyframes klevFlashPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 0 0 rgba(56, 189, 248, 0);
  }
  18% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.92), 0 0 26px rgba(56, 189, 248, 0.65);
    border-color: #10b981 !important;
  }
  55% {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.72), 0 0 16px rgba(16, 185, 129, 0.38);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

.klev-flash-highlight {
  animation: klevFlashPulse 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  position: relative;
  z-index: 4;
}

/* Интерактивное скольжение пальцем / курсором по почасовому графику клёва */
#bentoWaveChartCard {
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

#bentoWaveChartCard.is-scrubbing .bento-chart-default-marker {
  opacity: 0.22 !important;
  transition: opacity 0.12s ease;
}

.bento-scrub-cursor-line {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, #fbbf24 0%, #10b981 55%, rgba(56, 189, 248, 0.4) 100%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 6;
  display: none;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.75);
}

.bento-scrub-cursor-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fbbf24;
  border: 2.5px solid #ffffff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 7;
  display: none;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.95);
}

.bento-scrub-hud-badge {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 9px;
  background: rgba(9, 16, 32, 0.94);
  border: 1.5px solid #fbbf24;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.28;
  white-space: nowrap;
  pointer-events: none;
  z-index: 8;
  display: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

#bentoWaveChartCard.is-scrubbing .bento-scrub-cursor-line,
#bentoWaveChartCard.is-scrubbing .bento-scrub-cursor-dot,
#bentoWaveChartCard.is-scrubbing .bento-scrub-hud-badge {
  display: block;
}

.bento-chart-tick-cell.scrub-active-tick {
  background: rgba(251, 191, 36, 0.18) !important;
  border-color: #fbbf24 !important;
  transform: translateY(-1px);
}



/* Закреплённая полоса быстрого переключения рыб на экране Прогноз (не прячется при скролле ленты) */
#fcStickySpeciesBar,
.fc-sticky-species-bar {
  position: sticky;
  top: var(--header-h, 108px);
  z-index: 95;
  background: var(--panel);
  padding: 6px 8px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}
#fcStickySpeciesBar .bento-top-species-strip {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
