﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text1);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* в”Ђв”Ђ РџРµСЂРµРјРµРЅРЅС‹Рµ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
:root {
  --bg:          #f2f2ed;
  --surface:     #ffffff;
  --border:      #e8e8e0;
  --border2:     #d0d0c8;

  --accent:      #2d6a4f;
  --accent2:     #74c69d;
  --accent3:     #c8e6d4;
  --accent-bg:   #f0faf4;

  --bad:         #e8856a;
  --bad-light:   #f5c0a8;
  --bad-bg:      #fef5f2;

  --bonus:       #d4a017;
  --bonus-light: #f0cc6a;
  --bonus-bg:    #fef9ee;

  --text1: #1a1a1a;
  --text2: #444444;
  --text3: #888888;
  --text4: #bbbbbb;

  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 14px;

  --streak-color: #e8720a;
  --hm-lv4:       #1a4d38;
}

/* в”Ђв”Ђ Р›СЌР№Р°СѓС‚ РїСЂРёР»РѕР¶РµРЅРёСЏ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app > * {
  width: 100%;
}

/* Баннер: iPhone, встроенный браузер (ВК и др.) → открыть в Safari */
.ios-inapp-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  padding: max(10px, env(safe-area-inset-top, 0px)) 44px 12px 14px;
  background: linear-gradient(180deg, #1e4d3a 0%, var(--accent) 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.ios-inapp-banner-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.ios-inapp-banner-msg {
  margin: 0;
  padding-right: 4px;
}

.ios-inapp-banner-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  margin: -4px -6px 0 0;
  border: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}

.ios-inapp-banner-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

html.ios-inapp-banner-visible .app {
  padding-top: calc(env(safe-area-inset-top, 0px) + 118px);
}

@media (min-width: 700px) {
  html.ios-inapp-banner-visible .app {
    padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
  }
}

/* в”Ђв”Ђ Р’РµСЂС…РЅСЏСЏ РЅР°РІРёРіР°С†РёСЏ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 0 20px;
}

.topnav-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.nav-brand-name {
  font-size: 15px;
  font-weight: 500;
}
.nav-mobile-screen {
  display: none;
}
.nav-mobile-date {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-left: 8px;
}
.nav-mobile-date-main {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}
.nav-mobile-date-week {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}

/* ПК / планшет: день недели перед датой, «понедельник, 8 апреля» */
@media (min-width: 481px) {
  .nav-mobile-date-week {
    order: -1;
  }
  .nav-mobile-date-week::after {
    content: ',\00a0';
  }
  .nav-net-status-ico {
    display: none !important;
  }
}

/*
  Индикатор сети: на телефоне (портрет и альбом) — только иконка; на планшете и ПК — текст.
  Ниже — альбом типичного смартфона: ширина > 480px, низкая высота, без hover (курсора).
*/
@media (min-width: 481px) and (max-width: 932px) and (max-height: 480px) and (hover: none) {
  .nav-net-status {
    padding: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: var(--r-sm);
    margin-right: 4px;
    gap: 0;
  }
  .nav-net-status-txt {
    display: none !important;
  }
  .nav-net-status-ico {
    display: flex !important;
  }
}

.nav-tabs {
  display: flex;
  gap: 2px;
}
.nav-tab {
  padding: 6px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-tab:hover  { background: var(--bg); color: var(--text2); }
.nav-tab.active { background: var(--accent); color: #fff; font-weight: 500; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-net-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  border: 0.5px solid var(--accent2);
  background: var(--accent-bg);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.nav-net-status-ico {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.nav-net-status-ico svg {
  display: block;
}
.nav-net-status.offline {
  color: var(--bad);
  border-color: var(--bad-light);
  background: var(--bad-bg);
}

.nav-avatar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  background: transparent;
  transition: border-color .15s;
}
.nav-avatar:hover { border-color: var(--border2); }
.nav-av-pic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-av-pic img { width: 100%; height: 100%; object-fit: cover; }
.nav-av-text {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
}

/* в”Ђв”Ђ РћСЃРЅРѕРІРЅР°СЏ СЃРµС‚РєР° 3 РєРѕР»РѕРЅРєРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.page-grid {
  display: grid;
  grid-template-columns: 220px 1fr 232px;
  gap: 12px;
  padding: 12px;
  align-items: start;
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* в”Ђв”Ђ Р­РєСЂР°РЅС‹ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.screen { display: none; }
.screen.active { display: contents; }

/* в”Ђв”Ђ РЈРЅРёРІРµСЂСЃР°Р»СЊРЅР°СЏ РїР°РЅРµР»СЊ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.panel {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-body { padding: 16px; }
.panel-title {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* в”Ђв”Ђ РЎРµРєС†РёСЏ-Р·Р°РіРѕР»РѕРІРѕРє в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 6px;
}
.sec-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sec-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 0.5px solid var(--accent2);
}
.sec-badge.bad {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad-light);
}
.sec-badge.bonus {
  background: var(--bonus-bg);
  color: var(--bonus);
  border-color: var(--bonus-light);
}

/* в”Ђв”Ђ Р Р°Р·РґРµР»РёС‚РµР»СЊ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.divider {
  height: 0.5px;
  background: var(--border);
  margin: 12px 0;
}

/* в”Ђв”Ђ РљР°СЂС‚РѕС‡РєР° РїСЂРёРІС‹С‡РєРё (РїРѕР»РµР·РЅР°СЏ) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.hcard {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, opacity .2s, transform .1s;
}
.hcard:active      { transform: scale(0.99); }
.hcard.hc-active   { border-color: var(--accent2); }
.hcard.hc-done     { opacity: 0.62; }
.hcard.hc-bonus    { border-color: var(--bonus-light); opacity: 1; }
.hcard.hc-bonus-done { border-color: var(--bonus-light); opacity: 0.62; }

.hcard-row {
  display: flex;
  align-items: stretch;
  min-height: 68px;
}

/* Р—РµР»С‘РЅР°СЏ Р·РѕРЅР° СЃР»РµРІР° вЂ” РїРѕСЏРІР»СЏРµС‚СЃСЏ РїРѕСЃР»Рµ С‡РµРєР° */
.hcard-done-zone {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  background: var(--accent);
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.hcard.hc-done       .hcard-done-zone { width: 52px; }
.hcard.hc-bonus-done .hcard-done-zone { width: 52px; background: var(--bonus); }

.hcard-done-ico {
  font-size: 15px;
  color: #fff;
  opacity: 0;
  transition: opacity .2s .15s;
}
.hcard-done-lbl {
  font-size: 9px;
  color: rgba(255,255,255,.85);
  opacity: 0;
  transition: opacity .2s .2s;
}
.hcard.hc-done .hcard-done-ico,
.hcard.hc-done .hcard-done-lbl,
.hcard.hc-bonus-done .hcard-done-ico,
.hcard.hc-bonus-done .hcard-done-lbl { opacity: 1; }

/* РћСЃРЅРѕРІРЅРѕР№ РєРѕРЅС‚РµРЅС‚ РєР°СЂС‚РѕС‡РєРё */
.hcard-body {
  flex: 1;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.hcard-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcard-ico  { font-size: 17px; flex-shrink: 0; }
.hcard-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hcard-sub { font-size: 11px; color: var(--text3); padding-left: 25px; }
.hcard-sub.hs-streak { color: var(--streak-color); }
.hcard-sub.hs-bonus  { color: var(--bonus); }

/* РџСЂР°РІР°СЏ Р·РѕРЅР° вЂ” РєРЅРѕРїРєР° С‡РµРєР° */
.hcard-check-zone {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 0.5px solid var(--border);
  overflow: hidden;
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.hcard.hc-done .hcard-check-zone,
.hcard.hc-bonus-done .hcard-check-zone { width: 0; border-left: none; }
.hcard.hc-active .hcard-check-zone { border-color: var(--accent2); }
.hcard.hc-bonus  .hcard-check-zone { border-color: var(--bonus-light); }

.hcard-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, transform .15s;
}
.hcard:hover .hcard-btn   { transform: scale(1.1); }
.hcard.hc-active .hcard-btn { border-color: var(--accent); }
.hcard.hc-bonus  .hcard-btn { border-color: var(--bonus); }

/* РџСЂРѕРіСЂРµСЃСЃ-С‡РµСЂС‚Р° СЃРЅРёР·Сѓ */
.hcard-bar-track { height: 2px; background: var(--border); }
.hcard-bar {
  height: 100%;
  width: 0%;
  border-radius: 0 2px 2px 0;
  transition: width .4s ease;
}
.hcard.hc-done       .hcard-bar { width: 100%; background: var(--accent); }
.hcard.hc-bonus-done .hcard-bar { width: 100%; background: var(--bonus); }

/* РњРµС‚РєР° РІСЂРµРјРµРЅРё */
.hcard-time {
  position: absolute;
  right: 8px;
  top: 7px;
  font-size: 10px;
  color: var(--accent);
  opacity: 0;
  transition: opacity .3s .2s;
  pointer-events: none;
}
.hcard.hc-done       .hcard-time { opacity: 1; }
.hcard.hc-bonus-done .hcard-time { opacity: 1; color: var(--bonus); }

/* в”Ђв”Ђ РљР°СЂС‚РѕС‡РєР° РІСЂРµРґРЅРѕР№ РїСЂРёРІС‹С‡РєРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.bcard {
  background: transparent;
  border: none;
  border-radius: var(--r-lg);
  overflow: visible;
  position: relative;
  cursor: default;
  user-select: none;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.45, 0, 0.55, 1);
  min-height: 68px;
}
.bcard:active   { transform: scale(0.99); }
.bcard.bc-clean   { border-color: var(--accent2); }
.bcard.bc-slipped { border-color: var(--bad); }

.bcard-row {
  display: flex;
  align-items: stretch;
  min-height: 68px;
}

/* Р¦РІРµС‚РЅР°СЏ Р·РѕРЅР° СЃР»РµРІР° вЂ” РїРѕСЏРІР»СЏРµС‚СЃСЏ РїРѕСЃР»Рµ РІС‹Р±РѕСЂР° */
.bcard-result-zone {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.bcard.bc-clean   .bcard-result-zone { width: 52px; background: var(--accent); }
.bcard.bc-slipped .bcard-result-zone { width: 52px; background: var(--bad); }

.bcard-result-ico {
  font-size: 15px;
  color: #fff;
  opacity: 0;
  transition: opacity .2s .15s;
}
.bcard-result-lbl {
  font-size: 9px;
  color: rgba(255,255,255,.85);
  opacity: 0;
  transition: opacity .2s .2s;
}
.bcard.bc-clean .bcard-result-ico,
.bcard.bc-clean .bcard-result-lbl,
.bcard.bc-slipped .bcard-result-ico,
.bcard.bc-slipped .bcard-result-lbl { opacity: 1; }

/* РљРѕРЅС‚РµРЅС‚ */
.bcard-body {
  flex: 1;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.bcard-top  { display: flex; align-items: center; gap: 8px; }
.bcard-ico  { font-size: 17px; flex-shrink: 0; }
.bcard-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcard-sub       { font-size: 11px; color: var(--text3); padding-left: 25px; }
.bcard-sub.bs-ok  { color: var(--accent); }
.bcard-sub.bs-bad { color: var(--bad); }

/* РџСЂР°РІР°СЏ Р·РѕРЅР° вЂ” РґРІРµ РєРЅРѕРїРєРё */
.bcard-btns {
  width: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border-left: 0.5px solid var(--border);
  overflow: hidden;
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.bcard.bc-clean   .bcard-btns { width: 0; padding: 0; border-left: none; }
.bcard.bc-slipped .bcard-btns { width: 0; padding: 0; border-left: none; }

.btn-green {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.btn-green:hover { background: var(--accent-bg); transform: scale(1.1); }

.btn-red {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--bad-light);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.btn-red:hover { background: var(--bad-bg); transform: scale(1.1); }

/* РџСЂРѕРіСЂРµСЃСЃ-С‡РµСЂС‚Р° РІСЂРµРґРЅРѕР№ */
.bcard-bar-track { height: 2px; background: var(--border); }
.bcard-bar {
  height: 100%;
  width: 0%;
  border-radius: 0 2px 2px 0;
  transition: width .4s ease;
}
.bcard.bc-clean   .bcard-bar { width: 100%; background: var(--accent); }
.bcard.bc-slipped .bcard-bar { width: 100%; background: var(--bad); }

/* в”Ђв”Ђ РџРѕР»РѕСЃР° РїСЂРѕРіСЂРµСЃСЃР° РґРЅСЏ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.progress-block { margin-top: 14px; }
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.progress-label { font-size: 11px; color: var(--text3); }
.progress-pct   { font-size: 11px; font-weight: 500; }

/* РџРѕР»РѕСЃР° РїРѕР»РµР·РЅС‹С…: Р·РµР»С‘РЅР°СЏ + Р·РѕР»РѕС‚Р°СЏ */
.good-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}
.good-bar-green {
  height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
  transition: width .4s ease;
}
.good-bar-gold {
  height: 100%;
  background: var(--bonus-light);
  transition: width .4s ease;
}

/* РџРѕР»РѕСЃР° РІСЂРµРґРЅС‹С…: Р·РµР»С‘РЅР°СЏ + РєСЂР°СЃРЅР°СЏ */
.bad-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}
.bad-bar-green {
  height: 100%;
  background: var(--accent);
  transition: width .4s ease;
}
.bad-bar-red {
  height: 100%;
  background: var(--bad);
  transition: width .4s ease;
}

/* Р›РµРіРµРЅРґР° РїРѕР»РѕСЃС‹ */
.bar-legend {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}
.bar-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text3);
}
.bar-legend-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* в”Ђв”Ђ РЎРµРіРјРµРЅС‚РЅС‹Р№ РёРЅРґРёРєР°С‚РѕСЂ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
#segWrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  align-self: stretch;
}

#segWrap .seg-bar {
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.seg-bar {
  height: 22px;
  border-radius: var(--r-sm);
  background: var(--border);
  color: var(--text4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  transition: background .3s ease, color .2s ease;
}

/* РљР°СЂС‚РѕС‡РєР° РёРЅРґРёРєР°С‚РѕСЂР° */
.dash-gauge-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Верхняя карточка только с графиком дня (над стриком) */
.dash-gauge-card--top {
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  align-items: stretch;
}

#todayLeft .dash-gauge-card--top {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}

/* РљР°СЂС‚РѕС‡РєР° СЃС‚СЂРёРєР° */
.dash-streak-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#todayLeft .dash-streak-card--best,
#todayLeft .dash-streak-card--series {
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}

/* Одна строка: подпись + число дней */
.dash-streak-best-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dash-streak-best-lbl {
  font-size: 10px;
  color: var(--text3);
  flex-shrink: 0;
}

.dash-streak-best-val {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-streak-best-val #streakVal {
  font-size: 20px;
  font-weight: 500;
  color: var(--text1);
}

.dash-streak-best-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text3);
}

.dash-streak-series-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}

.dash-streak-series-lbl {
  font-size: 10px;
  color: var(--text3);
  flex-shrink: 0;
  line-height: 1.35;
  padding-top: 1px;
}

.dash-streak-series-val {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--streak-color);
  text-align: right;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Левая колонка: не обрезаем настроение (у .panel по умолчанию overflow:hidden) */
#todayLeft.panel {
  overflow: visible;
}

#todayLeft > .panel-title {
  line-height: 1.4;
}

#todayLeft #moodSection {
  flex-shrink: 0;
  min-height: min-content;
  overflow: visible;
}

/* РќР°СЃС‚СЂРѕРµРЅРёРµ РєРѕРјРїР°РєС‚РЅРѕ */
.mood-compact-label {
  font-size: 10px;
  color: var(--text3);
  width: 100%;
  flex-shrink: 0;
  line-height: 1.3;
}

.mood-compact-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 4px;
  overflow: visible;
  flex-shrink: 0;
  min-height: min-content;
}

#todayLeft .mood-compact-row {
  width: 100%;
  max-width: 260px;
  align-self: flex-start;
  box-sizing: border-box;
}

.mood-compact-row .mood-row {
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-height: 40px;
  overflow: visible;
}

/* в”Ђв”Ђ РЎРїРёРґРѕРјРµС‚СЂ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.donut-meta {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  margin-top: 4px;
}

/* в”Ђв”Ђ РҐРёС‚РјР°Рї 30 РґРЅРµР№ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.heatmap {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}
.hm-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--border);
}
.hm-cell.lv1 { background: var(--accent3); }
.hm-cell.lv2 { background: var(--accent2); }
.hm-cell.lv3 { background: var(--accent);  }
.hm-cell.lv4 { background: var(--hm-lv4); }
.hm-cell.today { outline: 1.5px solid var(--accent); outline-offset: 1px; }

/* в”Ђв”Ђ XP РїСЂРѕРіСЂРµСЃСЃ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.xp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.xp-stage { font-size: 12px; font-weight: 500; }
.xp-next  { font-size: 11px; color: var(--text3); }
.xp-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}
.xp-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .5s ease;
}
.xp-pts-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
}

/* в”Ђв”Ђ Р—РЅР°С‡РєРё (СЃРµС‚РєР°) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.badge-cell {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform .15s;
  cursor: default;
}
.badge-cell.earned {
  background: var(--accent-bg);
  border: 1.5px solid var(--accent2);
}
.badge-cell.locked { opacity: 0.28; }

/* в”Ђв”Ђ РќР°СЃС‚СЂРѕРµРЅРёРµ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.mood-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.mood-btn {
  flex: 1 1 0;
  min-width: 26px;
  min-height: 26px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s;
  padding: 2px;
}

.mood-btn:hover    { transform: scale(1.18); }
.mood-btn.selected { transform: scale(1.1);  }

/* в”Ђв”Ђ Toast в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.toast-wrap {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9000;
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text1);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

/* в”Ђв”Ђ РњРѕРґР°Р»СЊРЅС‹Рµ РѕРєРЅР° в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}
.overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 0.5px solid var(--border);
  padding: 20px;
  width: 400px;
  max-width: 92vw;
  max-height: 82vh;
  overflow-y: auto;
}
.modal-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* РЎРїСЂР°РІРєР°: С‚РѕС‚ Р¶Рµ РІРёР·СѓР°Р», С‡С‚Рѕ РІ РѕС‚РґРµР»СЊРЅРѕРј HTML-С„Р°Р№Р»Рµ РїРѕРјРѕС‰Рё */
.guide-modal {
  width: min(640px, 94vw);
}

.guide-modal-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.guide-close {
  flex-shrink: 0;
  padding: 6px 12px;
}

.guide-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  max-height: min(78vh, 720px);
  overflow-y: auto;
  padding-right: 4px;
}

.guide-body * {
  box-sizing: border-box;
}

.guide-body .wrap {
  max-width: 640px;
  margin: 0 auto;
}

.guide-body h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.guide-body .subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 32px;
}

.guide-body h2 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin: 28px 0 10px;
}

.guide-body .card {
  background: #fff;
  border: 0.5px solid #e8e8e0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 8px;
}

.guide-body .card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.guide-body .card p {
  font-size: 13px;
  color: #444;
  margin: 0;
}

.guide-body .card p + p {
  margin-top: 8px;
}

.guide-body .tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.guide-body .tag-good {
  background: #f0faf4;
  color: #2d6a4f;
  border: 0.5px solid #74c69d;
}

.guide-body .tag-bad {
  background: #fef5f2;
  color: #e8856a;
  border: 0.5px solid #f5c0a8;
}

.guide-body .tag-bonus {
  background: #fef9ee;
  color: #d4a017;
  border: 0.5px solid #f0cc6a;
}

.guide-body .card .tag + p {
  margin-top: 4px;
}

.guide-body .pts {
  color: #2d6a4f;
  font-weight: 500;
}

.guide-body .divider {
  height: 0.5px;
  background: #e8e8e0;
  margin: 8px 0;
}

.guide-body ul {
  padding-left: 18px;
  margin: 0;
}

.guide-body ul li {
  font-size: 13px;
  color: #444;
  margin-bottom: 4px;
}

.guide-body .footer {
  margin-top: 32px;
  font-size: 12px;
  color: #bbb;
  text-align: center;
}

/* в”Ђв”Ђ РљРЅРѕРїРєРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.btn {
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; font-weight: 500; }
.btn-primary:hover { opacity: .88; }
.btn-ghost {
  background: transparent;
  color: var(--text3);
  border: 0.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }
.btn-danger {
  background: var(--bad-bg);
  color: var(--bad);
  border: 0.5px solid var(--bad-light);
}
.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-add {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-lg);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s;
  font-family: inherit;
}
.btn-add:hover { opacity: .88; }
.btn-add-ico {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
}

/* в”Ђв”Ђ РџРѕР»СЏ РІРІРѕРґР° в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.field { margin-bottom: 14px; }
.field-label {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 6px;
  display: block;
}
.field-input {
  width: 100%;
  padding: 8px 12px;
  border: 0.5px solid var(--border2);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text1);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.field-input:focus { border-color: var(--accent); }
.field-input.error { border-color: var(--bad); }

/* в”Ђв”Ђ РљРѕРЅС„РµС‚С‚Рё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
#confCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* в”Ђв”Ђ Р¤Р»РёРї РєР°СЂС‚РѕС‡РєРё РїСЂРёРІС‹С‡РєРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.hcard-flip-wrap {
  perspective: 1000px;
}

/* Р‘Р°Р·РѕРІС‹Р№ .hcard РІС‹С€Рµ Р·Р°РґР°С‘С‚ overflow:hidden вЂ” РґР»СЏ 3D-flip СЌС‚Рѕ РѕР±СЂРµР·Р°РµС‚ РїРѕРІРѕСЂРѕС‚ */
.hcard-flip-wrap .hcard {
  overflow: visible;
}

/* РќРµ РґР°С‘Рј :active scale(0.99) Р»РѕРјР°С‚СЊ rotateX РІРѕ РІСЂРµРјСЏ РєР»РёРєР° */
.hcard-flip-wrap .hcard:active {
  transform: none;
}
.hcard-flip-wrap .hcard.hc-done:active,
.hcard-flip-wrap .hcard.hc-bonus-done:active {
  transform: rotateX(-180deg);
}

/* Р’СЂРµРґРЅР°СЏ РєР°СЂС‚РѕС‡РєР° РІ С‚РѕРј Р¶Рµ wrap вЂ” РЅРµ РґР°С‘Рј :active Р»РѕРјР°С‚СЊ 3D-РїРѕРІРѕСЂРѕС‚ */
.hcard-flip-wrap .bcard {
  overflow: visible;
}
.hcard-flip-wrap .bcard:active {
  transform: none;
}
.hcard-flip-wrap .bcard.bc-flipped:active {
  transform: rotateX(-180deg);
}

/* РќР° С„Р»РёРї-РєР°СЂС‚РѕС‡РєРµ РЅРµ РїРѕРєР°Р·С‹РІР°РµРј В«РІС‹РµР·РґВ» Р·РµР»С‘РЅРѕР№ РїРѕР»РѕСЃС‹ СЃР»РµРІР° вЂ” С‚РѕР»СЊРєРѕ РїРµСЂРµРІРѕСЂРѕС‚ */
.hcard-flip-wrap .hcard .hcard-done-zone {
  width: 0 !important;
  transition: none;
  opacity: 0;
  pointer-events: none;
}

/* РЁРёСЂРёРЅР° РїРѕР»РѕСЃС‹/Р·РѕРЅС‹ С‡РµРєР° РЅРµ РґРѕР»Р¶РЅР° Р°РЅРёРјРёСЂРѕРІР°С‚СЊСЃСЏ РѕРґРЅРѕРІСЂРµРјРµРЅРЅРѕ СЃ 3D-С„Р»РёРїРѕРј */
.hcard-flip-wrap .hcard .hcard-check-zone,
.hcard-flip-wrap .hcard .hcard-bar,
.hcard-flip-wrap .hcard .hcard-btn,
.hcard-flip-wrap .hcard .hcard-done-ico,
.hcard-flip-wrap .hcard .hcard-done-lbl {
  transition: none !important;
}

.hcard {
  transform-style: preserve-3d;
  /* Р РѕРІРЅРµРµ СЃРєРѕСЂРѕСЃС‚СЊ РїРѕ РІСЂРµРјРµРЅРё вЂ” СЂРµР·РєРёР№ ease-out Рє РєРѕРЅС†Сѓ РІС‹РіР»СЏРґРµР» РєР°Рє В«РґС‘СЂРіР°РЅСЊРµВ» */
  transition: transform 1.1s cubic-bezier(0.45, 0, 0.55, 1),
              border-color 0.65s ease;
  position: relative;
  min-height: 72px;
  height: auto;
}

.hcard.hc-done,
.hcard.hc-bonus-done {
  transform: rotateX(-180deg);
  opacity: 1;
}

.hcard-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateX(-180deg);
  background: var(--accent);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}

.hcard-back.hback-bonus {
  background: var(--bonus);
}

.hcard-back-ico {
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.hcard-back-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.hcard-back-title {
  font-size: 13px;
  font-weight: 500;
  color: white;
}

.hcard-back-time {
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

.hcard-back-undo {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 4px 10px;
  border: 0.5px solid rgba(255,255,255,.25);
  border-radius: var(--r-md);
  transition: color .15s, border-color .15s;
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.hcard-back-undo:hover {
  color: white;
  border-color: rgba(255,255,255,.55);
}

/* в”Ђв”Ђ РЈС‚РёР»РёС‚С‹ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.hidden { display: none !important; }
.flex   { display: flex; }
.col    { flex-direction: column; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-14  { margin-top: 14px; }
.full   { width: 100%; }

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   РђР”РђРџРўРР’РќР«Р™ Р”РР—РђР™Рќ
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */

/* в”Ђв”Ђ РќРёР¶РЅСЏСЏ РЅР°РІРёРіР°С†РёСЏ (С‚РµР»РµС„РѕРЅ) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.bottom-nav {
  display: none;
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   РџР›РђРќРЁР•Рў: 481px вЂ“ 900px
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
@media (max-width: 900px) {

  /* РќР°РІРёРіР°С†РёСЏ: РІРєР»Р°РґРєРё РєРѕРјРїР°РєС‚РЅС‹Рµ, РЅРµ СЃРєСЂС‹РІР°РµРј */
  .nav-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav-tab  { padding: 5px 12px; font-size: 12px; }

  /* РќР° СѓР·РєРѕР№ С€РёСЂРёРЅРµ РїСЂСЏС‡РµРј РїРѕРґРїРёСЃСЊ Р°РІР°С‚Р°СЂР°, С‡С‚РѕР±С‹ РІР»РµР·Р»Рё action-РёРєРѕРЅРєРё */
  .nav-av-text { display: none; }

  /* РЎРµС‚РєР°: 2 РєРѕР»РѕРЅРєРё РІРјРµСЃС‚Рѕ 3
     Р›РµРІР°СЏ (РґР°С€Р±РѕСЂРґ) С„РёРєСЃРёСЂРѕРІР°РЅР°, С†РµРЅС‚СЂ СЂР°СЃС‚СЏРіРёРІР°РµС‚СЃСЏ,
     РїСЂР°РІР°СЏ РєРѕР»РѕРЅРєР° СѓС…РѕРґРёС‚ РїРѕРґ С†РµРЅС‚СЂ */
  .page-grid {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
  }

  /* РџСЂР°РІР°СЏ РєРѕР»РѕРЅРєР° РїРµСЂРµРµР·Р¶Р°РµС‚ РїРѕРґ С†РµРЅС‚СЂР°Р»СЊРЅСѓСЋ
     Р·Р°РЅРёРјР°РµС‚ РѕР±Рµ РєРѕР»РѕРЅРєРё */
  #todayRight {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* РљРЅРѕРїРєР° "Р”РѕР±Р°РІРёС‚СЊ" РЅР° РІСЃСЋ С€РёСЂРёРЅСѓ РІ РїСЂР°РІРѕР№ РєРѕР»РѕРЅРєРµ */
  #todayRight .btn-add {
    grid-column: 1 / -1;
  }

  /* Р­РєСЂР°РЅС‹ Habits / Analytics / Badges:
     СѓР±РёСЂР°РµРј РїСѓСЃС‚С‹Рµ Р±РѕРєРѕРІС‹Рµ РєРѕР»РѕРЅРєРё */
  #screenHabits .page-grid,
  #screenAnalytics .page-grid,
  #screenBadges .page-grid {
    grid-template-columns: 1fr;
  }

  #screenHabits .page-grid > div:first-child,
  #screenHabits .page-grid > div:last-child,
  #screenAnalytics .page-grid > div:first-child,
  #screenAnalytics .page-grid > div:last-child,
  #screenBadges .page-grid > div:first-child,
  #screenBadges .page-grid > div:last-child {
    display: none;
  }
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   РўР•Р›Р•Р¤РћРќ: в‰¤ 480px
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
@media (max-width: 480px) {
  .ob-overlay { padding: 12px; }
  .ob-wizard { max-height: 95vh; }
  .ob-body { padding: 18px 18px 14px; }
  .ob-footer { padding: 0 18px 18px; }

  /* РўРѕРїРЅР°РІР±Р°СЂ: Р±СЂРµРЅРґ + action-РёРєРѕРЅРєРё */
  .nav-tabs  { display: none; }
  .topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120;
    padding: 0 16px;
    justify-content: space-between;
    transform: translateZ(0);
  }
  .topnav-inner {
    gap: 10px;
  }
  .nav-brand {
    flex: 1;
    min-width: 0;
    gap: 0;
    justify-content: space-between;
  }
  .nav-brand-icon { flex-shrink: 0; }
  .nav-brand-name {
    display: inline;
    font-size: 12px;
    font-weight: 600;
    color: var(--text1);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 2px;
  }

  .nav-mobile-screen {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
    flex: 1;
    min-width: 0;
    max-width: none;
    text-align: center;
    padding: 0 8px;
  }
  .nav-mobile-date {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    min-width: 74px;
    max-width: 30vw;
    line-height: 1.2;
    flex-shrink: 0;
  }
  .nav-mobile-date-main {
    font-size: 11px;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-mobile-date-week {
    display: block;
    font-size: 10px;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* РќР° С‚РµР»РµС„РѕРЅРµ РѕСЃС‚Р°РІР»СЏРµРј С‚РѕР»СЊРєРѕ action-РёРєРѕРЅРєРё, Р°РІР°С‚Р°СЂ СЃРєСЂС‹РІР°РµРј */
  .nav-right { display: flex; gap: 0; align-items: center; }
  .nav-net-status {
    padding: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: var(--r-sm);
    margin-right: 4px;
    gap: 0;
  }
  .nav-net-status-txt {
    display: none !important;
  }
  .nav-net-status-ico {
    display: flex !important;
  }
  .nav-avatar { display: none; }
  .burger-btn {
    width: 34px;
    height: 34px;
  }

  /* РќРёР¶РЅСЏСЏ РЅР°РІРёРіР°С†РёСЏ вЂ” РІРєР»СЋС‡Р°РµРј */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    right: 0;
    height: 60px;
    background: var(--surface);
    border-top: 0.5px solid var(--border);
    z-index: 120;
    align-items: stretch;
    transform: translateZ(0);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text3);
    transition: color .15s;
    padding: 6px 0;
  }

  .bottom-nav-item.active {
    color: var(--accent);
  }

  .bottom-nav-ico { font-size: 20px; line-height: 1; }

  .bottom-nav-lbl {
    font-size: 10px;
    font-weight: 400;
  }

  .bottom-nav-item.active .bottom-nav-lbl {
    font-weight: 500;
  }

  /* РћС‚СЃС‚СѓРїС‹ РїРѕРґ С„РёРєСЃРёСЂРѕРІР°РЅРЅС‹Рµ РІРµСЂС…РЅРµРµ Рё РЅРёР¶РЅРµРµ РјРµРЅСЋ */
  .app {
    padding-top: 52px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
  }

  /* РЎРµС‚РєР°: РѕРґРЅР° РєРѕР»РѕРЅРєР° */
  .page-grid {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  /* РўРµР»РµС„РѕРЅ: РґРІРµ РєР°СЂС‚РѕС‡РєРё СЂСЏРґРѕРј */
  #todayLeft {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #todayLeft .panel-title {
    font-size: 9px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .5px;
  }

  /* Карточка графика — на всю ширину колонки */
  #todayLeft .dash-gauge-card--top {
    padding: 10px 12px;
  }

  #todayLeft .dash-streak-card--best,
  #todayLeft .dash-streak-card--series {
    padding: 10px 12px;
  }

  #segWrap {
    flex-direction: row !important;
    gap: 3px;
    align-items: stretch;
  }

  /* Сегменты делят ширину карточки поровну */
  #segWrap .seg-bar,
  #segWrap .seg-h {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .seg-bar,
  .seg-h {
    height: 28px;
    font-size: 9px;
  }

  #todayLeft .divider { display: none; }

  /* Настроение — горизонтальная карточка на всю ширину.
     Не задаём display: block !important: иначе перебивается .hidden и тогл не скрывает блок. */
  #todayLeft #moodSection {
    overflow: visible;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #todayLeft .mood-compact-row {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 8px 11px;
    overflow: visible;
    max-width: none;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }

  #todayLeft #moodSection .divider { display: none; }

  /* Убираем заголовки вкладок со страниц в мобильной версии */
  #todayLeft .panel-title,
  #screenHabits h1,
  #screenAnalytics h1,
  #screenBadges h1,
  #screenHabits h1 + p,
  #screenAnalytics h1 + p,
  #screenBadges h1 + p {
    display: none !important;
  }

  /* РџСЂР°РІР°СЏ РєРѕР»РѕРЅРєР°: РѕРґРЅР° РєРѕР»РѕРЅРєР° */
  #todayRight {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  /* РҐРёС‚РјР°Рї: С‡СѓС‚СЊ РєРѕРјРїР°РєС‚РЅРµРµ */
  .heatmap {
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
  }

  /* РљР°СЂС‚РѕС‡РєРё РїСЂРёРІС‹С‡РµРє: РјРёРЅРёРјР°Р»СЊРЅР°СЏ РІС‹СЃРѕС‚Р° С‡СѓС‚СЊ РјРµРЅСЊС€Рµ */
  .hcard-row  { min-height: 58px; }
  .bcard-row  { min-height: 58px; }

  /* РњРѕРґР°Р»РєРё РЅР° РІСЃСЋ С€РёСЂРёРЅСѓ */
  .modal {
    width: 100%;
    max-width: 100vw;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    margin-top: auto;
    max-height: 90vh;
  }

  .overlay {
    align-items: flex-end;
  }

  /* Р­РєСЂР°РЅС‹ Habits / Analytics / Badges */
  #screenHabits .page-grid,
  #screenAnalytics .page-grid,
  #screenBadges .page-grid {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  #screenHabits .page-grid > div:first-child,
  #screenHabits .page-grid > div:last-child,
  #screenAnalytics .page-grid > div:first-child,
  #screenAnalytics .page-grid > div:last-child,
  #screenBadges .page-grid > div:first-child,
  #screenBadges .page-grid > div:last-child {
    display: none;
  }

  /* РђРЅР°Р»РёС‚РёРєР°: РїРµСЂРµРєР»СЋС‡Р°С‚РµР»СЊ РїРµСЂРёРѕРґР° вЂ” РјРµРЅСЊС€Рµ С‚РµРєСЃС‚ */
  .btn-sm {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* РўРѕСЃС‚ РІС‹С€Рµ РЅРёР¶РЅРµР№ РЅР°РІРёРіР°С†РёРё */
  .toast-wrap {
    bottom: 72px;
  }

  /* РђРЅР°Р»РёС‚РёРєР°: РіРѕРґРѕРІС‹Рµ С…РёС‚РјР°РїС‹ СЃРєСЂРѕР»Р»СЏС‚СЃСЏ РІРЅСѓС‚СЂРё РїР°РЅРµР»Рё, Р° РЅРµ СЂР°СЃС‚СЏРіРёРІР°СЋС‚ СЌРєСЂР°РЅ */
  #screenAnalytics #hmGoodWrap,
  #screenAnalytics #hmBadWrap,
  #screenAnalytics #moodChartWrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #screenAnalytics #hmGoodWrap > div,
  #screenAnalytics #hmBadWrap > div {
    min-width: max-content;
  }
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   РўРЃРњРќРђРЇ РўР•РњРђ
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
[data-theme="dark"] {
  --bg:          #141414;
  --surface:     #1e1e1e;
  --border:      #2a2a2a;
  --border2:     #383838;

  --accent:      #52b788;
  --accent2:     #2d6a4f;
  --accent3:     #1a3d28;
  --accent-bg:   #162b1e;

  --bad:         #e8856a;
  --bad-light:   #7a3020;
  --bad-bg:      #2a1810;

  --bonus:       #f0cc6a;
  --bonus-light: #7a5a10;
  --bonus-bg:    #2a2010;

  --text1: #e8e8e0;
  --text2: #aaaaaa;
  --text3: #666666;
  --text4: #444444;

  --streak-color: #e8a050;
  --hm-lv4:       #52b788;
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   РўР РћРќ
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
[data-theme="tron"] {
  --bg:          #020c18;
  --surface:     #041220;
  --border:      #00c8ff18;
  --border2:     #00c8ff33;

  --accent:      #00c8ff;
  --accent2:     #0080aa;
  --accent3:     #003344;
  --accent-bg:   #001822;

  --bad:         #ff4466;
  --bad-light:   #661828;
  --bad-bg:      #220810;

  --bonus:       #00c8ff;
  --bonus-light: #005566;
  --bonus-bg:    #001822;

  --text1: #c8eeff;
  --text2: #88bbcc;
  --text3: #00c8ff66;
  --text4: #00c8ff33;

  --streak-color: #00c8ff;
  --hm-lv4:       #00c8ff;
}

/* РўСЂРѕРЅ: С€СЂРёС„С‚ РЅР°РІР±Р°СЂР° */
[data-theme="tron"] .nav-brand-name {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}
[data-theme="tron"] .nav-tab {
  letter-spacing: 1px;
  font-size: 11px;
}
[data-theme="tron"] .nav-tab.active {
  box-shadow: 0 0 12px #00c8ff44;
}
[data-theme="tron"] .hcard.hc-active,
[data-theme="tron"] .hcard.hc-done {
  box-shadow: 0 0 10px #00c8ff22;
}
[data-theme="tron"] .hm-cell.lv3 {
  box-shadow: 0 0 4px #00c8ff;
}
[data-theme="tron"] .hm-cell.lv4 {
  box-shadow: 0 0 6px #00c8ff;
}

/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   BLADE RUNNER
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */
[data-theme="blade"] {
  --bg:          #0d0a06;
  --surface:     #100c07;
  --border:      #c87a2218;
  --border2:     #c87a2233;

  --accent:      #c87a22;
  --accent2:     #7a4a10;
  --accent3:     #3a2008;
  --accent-bg:   #221408;

  --bad:         #cc4422;
  --bad-light:   #661810;
  --bad-bg:      #220a06;

  --bonus:       #c87a22;
  --bonus-light: #7a4a10;
  --bonus-bg:    #221408;

  --text1: #d4b896;
  --text2: #a07850;
  --text3: #c87a2266;
  --text4: #c87a2233;

  --streak-color: #e8a050;
  --hm-lv4:       #c87a22;
}

[data-theme="blade"] .nav-tab.active {
  box-shadow: 0 0 12px #c87a2244;
}
[data-theme="blade"] .hcard.hc-active {
  box-shadow: 0 0 12px #c87a2233;
}
[data-theme="blade"] .hm-cell.lv3 {
  box-shadow: 0 0 4px #c87a2288;
}
[data-theme="blade"] .hm-cell.lv4 {
  box-shadow: 0 0 6px #c87a22;
}

/* в”Ђв”Ђ РћРЅР±РѕСЂРґРёРЅРі-РјР°СЃС‚РµСЂ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

html.ios-inapp-banner-visible .ob-overlay {
  padding-top: calc(20px + env(safe-area-inset-top, 0px) + 100px);
}

.ob-wizard {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ob-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 0;
}

.ob-progress-head {
  font-size: 10px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.ob-progress-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ob-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}

.ob-dot.done   { background: var(--accent); }
.ob-dot.active { background: var(--accent2); }

.ob-step-label {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  padding-left: 8px;
}

.ob-body {
  padding: 24px 28px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ob-ico   { font-size: 40px; margin-bottom: 14px; }

/* РРєРѕРЅРєР° С€Р°РіР° В«СЃРѕР·РґР°РЅРёРµ РїСЂРёРІС‹С‡РєРёВ» вЂ” С„РёРѕР»РµС‚РѕРІС‹Р№ РїР»СЋСЃ РєР°Рє РІ РјР°РєРµС‚Рµ */
.ob-ico-plus {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #c4b5fd 0%, #7c3aed 45%, #5b21b6 100%);
  box-shadow:
    0 6px 16px rgba(91, 33, 182, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ob-title { font-size: 18px; font-weight: 500; color: var(--text1); margin-bottom: 8px; }
.ob-text  { font-size: 13px; color: var(--text3); line-height: 1.7; margin-bottom: 14px; }

.ob-preview {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

/* РџСЂРµРІСЊСЋ С„РѕСЂРјС‹ СЃРѕР·РґР°РЅРёСЏ: С‚С‘РїР»С‹Р№ С„РѕРЅ РєР°СЂС‚РѕС‡РєРё */
.ob-preview-create {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, var(--accent) 6%);
  border: 0.5px solid var(--border2);
}

.ob-preview-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.ob-field {
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: var(--r-md);
  padding: 7px 11px;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 8px;
}

/* РџРѕРґРїРёСЃСЊ-РїР»РµР№СЃС…РѕР»РґРµСЂ РІ РїСЂРµРІСЊСЋ С„РѕСЂРјС‹ (РєР°Рє Сѓ СЂРµР°Р»СЊРЅРѕРіРѕ РїРѕР»СЏ) */
.ob-field-placeholder {
  color: var(--text4);
}

.ob-icon-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ob-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  border: 0.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* РљСЂСѓРіР»С‹Рµ РёРєРѕРЅРєРё РІ РїСЂРµРІСЊСЋ В«СЃРѕР·РґР°РЅРёРµ РїСЂРёРІС‹С‡РєРёВ» */
.ob-preview-create .ob-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
}

.ob-preview-create .ob-icon-btn.sel {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 45%, transparent);
}

.ob-icon-btn.sel {
  background: var(--accent);
  border-color: var(--accent);
}

.ob-sched-row { display: flex; gap: 5px; flex-wrap: wrap; }
.ob-sched-btn {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: var(--text3);
}
.ob-sched-btn.sel {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ob-type-row { display: flex; gap: 8px; margin-bottom: 12px; }
.ob-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  border: 0.5px solid var(--border);
  color: var(--text2);
  background: var(--surface);
}

.ob-type-glyph {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.ob-preview-create .ob-type-btn.good {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent2);
}

.ob-preview-create .ob-type-btn.good .ob-type-glyph {
  color: var(--accent);
  font-weight: 700;
}

/* В«Р’СЂРµРґРЅР°СЏВ» РІ РїСЂРµРІСЊСЋ вЂ” СЃРІРµС‚Р»Р°СЏ РєРЅРѕРїРєР° СЃ Р°РєС†РµРЅС‚РЅРѕР№ РѕР±РІРѕРґРєРѕР№ */
.ob-preview-create .ob-type-btn.bad {
  background: var(--surface);
  color: var(--bad);
  border-color: var(--bad-light);
}

.ob-type-btn.good {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent2);
}
.ob-type-btn.bad {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad-light);
}

.ob-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 8px 10px;
  margin-bottom: 6px;
}
.ob-hint-ico { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.ob-hint-text { font-size: 12px; color: var(--text2); line-height: 1.5; }

.ob-pts-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ob-pts-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.ob-pts-pill.good  { background: var(--accent-bg); color: var(--accent); border: 0.5px solid var(--accent2); }
.ob-pts-pill.bad   { background: var(--bad-bg);    color: var(--bad);    border: 0.5px solid var(--bad-light); }
.ob-pts-pill.bonus { background: var(--bonus-bg);  color: var(--bonus);  border: 0.5px solid var(--bonus-light); }

.ob-mult-card {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
  line-height: 2;
}

.ob-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.ob-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ob-badge-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1.5px solid var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.ob-badge-ico.locked {
  background: var(--bg);
  border-color: var(--border);
  opacity: 0.35;
}
.ob-badge-lbl { font-size: 9px; color: var(--text3); text-align: center; }

.ob-data-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 9px 12px;
  margin-bottom: 6px;
}
.ob-data-ico  { font-size: 16px; flex-shrink: 0; }
.ob-data-text { font-size: 12px; color: var(--text2); }

/* РљР°СЂС‚РѕС‡РєР°-РїСЂРµРІСЊСЋ С„Р»РёРїР° */
.ob-card-front {
  background: var(--surface);
  border: 0.5px solid var(--accent2);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 6px;
}
.ob-card-row {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}
.ob-card-body {
  flex: 1;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.ob-card-name { font-size: 12px; font-weight: 500; color: var(--text1); }
.ob-card-sub  { font-size: 11px; color: var(--text3); }
.ob-card-check {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 0.5px solid var(--accent2);
}
.ob-card-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.ob-card-bar { height: 2px; background: var(--border); }

.ob-card-back {
  background: var(--accent);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  padding: 0 14px;
  min-height: 56px;
  gap: 10px;
}
.ob-card-back-ico   { font-size: 20px; color: white; }
.ob-card-back-title { font-size: 13px; font-weight: 500; color: white; }
.ob-card-back-time  { font-size: 11px; color: rgba(255,255,255,.65); }
.ob-card-back-undo  {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  border: 0.5px solid rgba(255,255,255,.25);
  border-radius: var(--r-sm);
  padding: 3px 8px;
}

/* Р¤СѓС‚РµСЂ РјР°СЃС‚РµСЂР° */
.ob-footer {
  padding: 0 28px 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ob-btn-back {
  padding: 9px 18px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
  background: transparent;
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.ob-btn-back:hover { background: var(--bg); }

.ob-btn-next {
  flex: 1;
  padding: 11px;
  border-radius: var(--r-md);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.ob-btn-next:hover { opacity: .88; }

.ob-btn-skip {
  padding: 9px 18px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border2);
  background: transparent;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.ob-btn-skip:hover { background: var(--bg); }

.ob-btn-demo {
  padding: 9px 14px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--accent2);
  background: var(--accent-bg);
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.ob-btn-demo:hover { opacity: .85; }

.ob-install-block {
  margin: 14px 0 12px;
}
.ob-btn-install {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.ob-btn-install:hover { opacity: .9; }
.ob-btn-install[hidden] { display: none !important; }
.ob-install-fallback {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
}
.ob-install-fallback[hidden] { display: none !important; }

/* в”Ђв”Ђ Р‘СѓСЂРіРµСЂ-РєРЅРѕРїРєР° в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.burger-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 0.5px solid var(--border);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.burger-btn:hover { background: var(--bg); }

.burger-btn.open { background: var(--bg); border-color: var(--border2); }

.burger-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text2);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}

/* РђРЅРёРјР°С†РёСЏ РІ РєСЂРµСЃС‚РёРє РєРѕРіРґР° РѕС‚РєСЂС‹С‚Рѕ */
.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* в”Ђв”Ђ РћРІРµСЂР»РµР№ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.burger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0,0,0,.15);
}
.burger-overlay.open { display: block; }

/* в”Ђв”Ђ Р”СЂРѕРІРµСЂ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.burger-drawer {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  margin-top: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s cubic-bezier(.4, 0, .2, 1),
              opacity .2s ease;
}
.burger-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.burger-section {
  padding: 4px 0;
  border-bottom: 0.5px solid var(--border);
}
.burger-section:last-child { border-bottom: none; }

.burger-section-title {
  font-size: 10px;
  color: var(--text4);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 7px 16px 3px;
}

.burger-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text1);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .1s;
}
.burger-item:hover { background: var(--bg); }

.burger-item-ico {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.burger-widget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 10px;
  font-size: 13px;
  color: var(--text1);
}

.burger-widget-ico {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.burger-widget-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.burger-widget-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
  padding: 0;
  background: var(--border2);
  font: inherit;
}

.burger-widget-toggle .mood-toggle-knob {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* РўРµРјС‹ РІРЅСѓС‚СЂРё РґСЂРѕРІРµСЂР° */
.burger-theme-row {
  display: flex;
  gap: 6px;
  padding: 6px 16px 10px;
}

.burger-theme-row .theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--bg);
  transition: border-color .15s, transform .1s;
  opacity: 0.6;
}
.burger-theme-row .theme-btn:hover {
  opacity: 0.9;
  transform: scale(1.08);
}
.burger-theme-row .theme-btn.active {
  opacity: 1;
  border-color: var(--accent);
}
.burger-theme-row .theme-btn[data-theme="light"]  { color: #e8a020; }
.burger-theme-row .theme-btn[data-theme="dark"]   { color: #aaaaaa; }
.burger-theme-row .theme-btn[data-theme="tron"]   { color: #00c8ff; }
.burger-theme-row .theme-btn[data-theme="blade"]  { color: #c87a22; }

/* РќР° РџРљ вЂ” Р°РІР°С‚Р°СЂ РІРёРґРµРЅ, Р±СѓСЂРіРµСЂ С‚РѕР¶Рµ */
/* РќР° РїР»Р°РЅС€РµС‚Рµ Рё С‚РµР»РµС„РѕРЅРµ вЂ” Р°РІР°С‚Р°СЂ СЃРєСЂС‹С‚, Р±СѓСЂРіРµСЂ РІРёРґРµРЅ */
@media (max-width: 900px) {
  .nav-avatar { display: none; }
}


