:root {
  color-scheme: dark;
  --bg: #140f0c;
  --bg2: #1c1510;
  --gold: #d4a05a;
  --gold-soft: #e6c48c;
  --ink: #f0e4d2;
  --muted: #9c8a74;
  --cold: #6d7a86;
  --line: rgba(212, 160, 90, 0.16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  padding: 0 16px 40px;
  max-width: 640px;
  margin: 0 auto;
}

/* фон: звёзды + свечное свечение сверху */
.stars {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1.4px 1.4px at 20% 18%, rgba(230,196,140,.55), transparent),
    radial-gradient(1.2px 1.2px at 68% 9%, rgba(230,196,140,.45), transparent),
    radial-gradient(1.3px 1.3px at 82% 30%, rgba(230,196,140,.4), transparent),
    radial-gradient(1px 1px at 35% 40%, rgba(230,196,140,.35), transparent),
    radial-gradient(1.1px 1.1px at 12% 62%, rgba(230,196,140,.3), transparent),
    radial-gradient(1.2px 1.2px at 90% 70%, rgba(230,196,140,.3), transparent),
    linear-gradient(180deg, #17110d 0%, #140f0c 60%, #100b08 100%);
  background-repeat: no-repeat;
  background-size: cover;
}
.glow {
  position: fixed; top: -160px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(212,160,90,.22) 0%, rgba(212,160,90,.06) 45%, transparent 70%);
}

/* ─── парадный экран: герой (Мальфиер у особняка) ─── */
.hero {
  position: relative;
  margin: 0 -16px 0;              /* во всю ширину, до краёв */
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,.5);
}
.hero-img { display: block; width: 100%; height: auto; }
/* живой слой: свечи в окнах, звёзды, искры, аура, глаза — светятся поверх кадра */
.hero-fx {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: screen;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(16,11,8,.5) 74%, rgba(16,11,8,.97) 100%);
}
.hero-text {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 3;
  text-align: left;
}
.hero-feather { line-height: 0; margin-bottom: 5px; }
.hero-feather img {
  width: 28px; height: 28px; display: block;
  filter: drop-shadow(0 0 10px rgba(212,160,90,.5));
}
.hero-greet {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 27px; letter-spacing: .3px; line-height: 1.1;
  color: var(--gold-soft); text-shadow: 0 2px 14px rgba(0,0,0,.75);
  margin-bottom: 2px;
}
.tagline {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 15.5px; color: var(--ink); opacity: .82; margin: 0 0 10px;
  min-height: 18px; text-shadow: 0 1px 10px rgba(0,0,0,.7);
}
.house-bar {
  height: 5px; border-radius: 4px; background: rgba(255,255,255,.12);
  overflow: hidden; max-width: 210px; margin: 0;
}
.house-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #8a5a2a, var(--gold), var(--gold-soft));
  box-shadow: 0 0 10px rgba(212,160,90,.6);
  transition: width .8s ease;
}

/* ─── комнаты: кликабельные карточки-парадные ─── */
.rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.rcard {
  --w: 0;
  position: relative;
  min-width: 0;                   /* дать колонкам сжаться под ширину экрана */
  display: block; padding: 0; border: 0; margin: 0;
  background: transparent; cursor: pointer;
  line-height: 0;                 /* убрать щель под img */
  transition: transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rcard:active { transform: scale(.96); }
.rcard-img {
  display: block; width: 100%; max-width: 100%; height: auto;   /* картинка целиком, со своей рамкой */
  transition: filter .5s ease;
}
/* остывшая комната тускнеет, ожившая — теплится золотом (мягкое свечение вокруг, без обрезки) */
.rcard.stage-0 .rcard-img { filter: grayscale(.5) brightness(.72); }
.rcard-glow {
  position: absolute; inset: 8px; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 calc(var(--w) * 20px) rgba(212,160,90, calc(var(--w) * .30));
  transition: box-shadow .5s ease;
}

/* значок прогресса в углу карточки */
.room-badge {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 11px; font-size: 11px; font-weight: 600;
  color: #241a13;
  background: radial-gradient(circle, var(--gold-soft), var(--gold));
  box-shadow: 0 0 10px rgba(0,0,0,.55), 0 0 10px rgba(212,160,90,.5);
}
.room-badge.dim {
  color: var(--gold-soft);
  background: rgba(20,14,10,.85);
  border: 1px solid var(--line);
  box-shadow: 0 0 8px rgba(0,0,0,.55);
}

/* раскрытие комнаты */
.room-body { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.room.open .room-body { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px);} to {opacity:1; transform:none;} }

.habit-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.seal {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; cursor: pointer;
  border: 1px solid rgba(212,160,90,.4); color: rgba(212,160,90,.55);
  background: transparent; transition: all .25s ease;
}
.seal.done {
  background: radial-gradient(circle, var(--gold-soft), var(--gold));
  color: #241a13; border-color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(212,160,90,.65);
}
.seal:active { transform: scale(.9); }
.habit-name { flex: 1; font-size: 14.5px; color: var(--ink); }
.habit-streak { font-size: 12.5px; color: var(--gold); white-space: nowrap; }
.habit-streak.zero { color: var(--muted); }

.tasks-block { margin-top: 6px; }
.task-line {
  font-size: 12.5px; color: var(--muted); padding: 3px 0 3px 16px;
  position: relative;
}
.task-line::before { content: "•"; position: absolute; left: 2px; color: var(--gold); }
.empty-note { font-size: 12.5px; color: var(--muted); font-style: italic; padding: 4px 0; }

/* оранжерея */
.garden { margin-top: 26px; text-align: center; }
.garden h2 {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 24px; color: var(--gold-soft); margin: 0;
}
.garden-hint {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 13px; color: var(--muted); margin: 2px 0 14px;
}
.plants {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.plant {
  width: 88px; padding: 12px 6px 10px; border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1e1510, #160f0b);
}
.plant .p-emoji { font-size: 30px; filter: drop-shadow(0 0 8px rgba(212,160,90,.4)); }
.plant.wilt .p-emoji { filter: grayscale(.6) brightness(.8); opacity: .7; }
.plant .p-name {
  font-size: 11px; color: var(--ink); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plant .p-streak { font-size: 11px; color: var(--gold); margin-top: 2px; }
.plants-empty {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  color: var(--muted); font-size: 14px;
}

.foot {
  text-align: center; margin-top: 30px;
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 13px; color: rgba(154,138,116,.7);
}

.hidden { display: none !important; }

/* полноэкранный вид комнаты */
.room-view {
  position: fixed; inset: 0; z-index: 20; overflow: hidden;
  background: #0c0806;
}
.room-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: filter 1.2s ease; will-change: filter;
}
.room-grad { position: absolute; inset: 0; display: none; }
.room-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.room-cold {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, rgba(30,44,72,.0), rgba(14,20,38,.55));
  mix-blend-mode: multiply; transition: opacity 1.2s ease;
}
.room-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10,7,5,.55) 55%, rgba(10,7,5,.92));
}
.room-head {
  position: absolute; top: 0; left: 0; right: 0; padding: 62px 20px 0;
  text-align: center; pointer-events: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
}
.rv-name {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 32px; color: #f2e6cf; letter-spacing: .5px;
}
.rv-state {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 16px; color: #e6c48c; margin-top: 2px;
}

/* нижняя шторка: подсмотр (картинка на виду) ↔ раскрытие */
.room-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  display: flex; flex-direction: column;
  max-height: 78px; overflow: hidden;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(12,8,6,0) 0%, rgba(12,8,6,.72) 26%, rgba(10,7,5,.96) 60%);
  transition: max-height .38s ease;
}
.room-view.expanded .room-sheet {
  max-height: 80%; overflow: hidden;
  background: linear-gradient(180deg, rgba(12,8,6,.5) 0%, rgba(10,7,5,.97) 16%);
}

/* шапка (ручка + сводка + масштабы) закреплена сверху, список скроллится под ней */
.sheet-head { flex: none; }
.room-view.expanded .sheet-head {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(13,9,6,.7) 0%, rgba(11,8,5,.99) 62%);
}

.sheet-peek {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 11px 0 9px;
}
.peek-grab { width: 42px; height: 4px; border-radius: 3px; background: rgba(212,160,90,.55); }
.peek-sum {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 14.5px; color: #e6c48c; text-shadow: 0 1px 8px rgba(0,0,0,.7);
}

.sheet-scales { display: none; gap: 6px; padding: 2px 0 12px; }
.room-view.expanded .sheet-scales:not(.hidden) { display: flex; }
.scale {
  flex: 1; cursor: pointer; padding: 7px 0; border-radius: 10px;
  background: rgba(212,160,90,.08); border: 1px solid rgba(212,160,90,.18);
  color: #cdb389; font-family: "Cormorant Garamond", serif;
  font-size: 13px; letter-spacing: 1px;
}
.scale.on {
  background: radial-gradient(circle, var(--gold-soft), var(--gold));
  color: #241a13; border-color: var(--gold-soft);
}

.sheet-body { display: none; }
.room-view.expanded .sheet-body {
  display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding-bottom: 18px;
}
/* прокрутка и запас под клавиатуру теперь на самом списке */
.room-view.has-log.expanded .sheet-body { padding-bottom: calc(86px + var(--kb, 0px)); }
.room-view.expanded .sheet-body { scroll-padding-bottom: calc(96px + var(--kb, 0px)); }

/* строка «сегодня закрыто» */
.log-closed {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 13px; color: var(--muted); padding: 10px 2px 2px;
  border-top: 1px solid var(--line); margin-top: 8px;
}

/* панель действий по записи */
.log-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 10px 30px; }
.la {
  box-sizing: border-box; min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(22,15,10,.8); border: 1px solid rgba(212,160,90,.25);
  color: #e6c48c; border-radius: 10px; padding: 6px 12px;
  font-family: "Manrope", sans-serif; font-size: 12.5px; cursor: pointer;
}
.la:active { transform: scale(.95); }
/* иконочные кнопки-действия: ровные квадраты, символ по центру, без подписи */
.la-ico {
  width: 38px; height: 38px; padding: 0;
  display: inline-grid; place-items: center;
  font-size: 15px; line-height: 1; border-radius: 11px;
}
.pick-ico { width: 15px; height: 15px; color: var(--gold-soft); flex: none; }
.la-mig { display: inline-flex; gap: 6px; align-items: center; }
.rv-log.editing { display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.lg-edit-top { display: flex; align-items: center; gap: 8px; }
.lg-edit {
  flex: 1; min-width: 0; background: rgba(22,15,10,.9); border: 1px solid rgba(212,160,90,.28);
  border-radius: 10px; padding: 6px 9px; color: #f0e4d2;
  font-family: "Manrope", sans-serif; font-size: 14.5px; outline: none;
}
.lg-edit-meta { margin: 0; padding-left: 30px; }
.lg-edit-save { background: none; border: none; color: var(--gold-soft); font-size: 18px; cursor: pointer; flex: none; }
.sheet-title {
  font-family: "Cormorant Garamond", serif; font-size: 15px;
  color: #cdb389; letter-spacing: 2px; text-transform: uppercase;
  opacity: .85; margin: 4px 0 6px;
}
.rv-habit {
  display: flex; align-items: center; gap: 13px; padding: 9px 12px;
  margin-bottom: 8px; border-radius: 13px;
  background: rgba(22,15,10,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(212,160,90,.16);
}
.rv-habit .seal {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; cursor: pointer;
  border: 1px solid rgba(212,160,90,.45); color: rgba(212,160,90,.6);
  background: transparent; transition: all .25s ease;
}
.rv-habit .seal.done {
  background: radial-gradient(circle, #e6c48c, #d4a05a);
  color: #241a13; border-color: #e6c48c;
  box-shadow: 0 0 16px rgba(212,160,90,.7);
}
.rv-habit .seal:active { transform: scale(.9); }
.rv-habit .h-name { flex: 1; font-size: 15px; color: #f0e4d2; }
.rv-habit .h-streak { font-size: 13px; color: #e6c48c; white-space: nowrap; }
.rv-habit .h-streak.zero { color: #9c8a74; }
.rv-task {
  font-size: 13px; color: #cbb89c; padding: 5px 0 5px 18px; position: relative;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.rv-task::before { content: "•"; position: absolute; left: 4px; color: #d4a05a; }
.rv-empty {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  color: #b7a488; font-size: 15px; padding: 8px 2px;
}

/* Каминная — вопрос дня и подсказки */
.rv-q {
  font-family: "Cormorant Garamond", serif; font-size: 17px; line-height: 1.35;
  color: #f0e4d2; padding: 10px 12px; margin-bottom: 6px; border-radius: 13px;
  background: rgba(22,15,10,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(212,160,90,.18);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.rv-note {
  font-family: "Cormorant Garamond", serif; font-size: 15px; color: #e6c48c;
  padding: 6px 2px 8px; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.rv-hint {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 13.5px; color: #b7a488; padding: 4px 2px 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* журнал БуДжо — записи */
.rv-log { display: flex; align-items: flex-start; gap: 10px; padding: 7px 2px; }
.lg-marker {
  flex: none; width: 22px; text-align: center; font-size: 16px;
  color: var(--gold-soft); line-height: 1.4; user-select: none;
}
.rv-log .lg-marker[data-type="task"] { cursor: pointer; }
.rv-log.overdue .lg-marker { color: #e0885a; font-weight: 700; }
.rv-log.done .lg-marker { color: var(--muted); }
.lg-text {
  flex: 1; font-size: 14.5px; color: #f0e4d2; line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.rv-log.done .lg-text { color: var(--muted); text-decoration: line-through; }
.rv-log.cancelled .lg-marker { color: var(--muted); }
.rv-log.cancelled .lg-text { color: var(--muted); text-decoration: line-through; opacity: .8; }
.rv-log[data-id] { cursor: pointer; }
.lg-meta {
  flex: none; align-self: center; font-size: 12px; color: var(--gold);
  white-space: nowrap; padding-left: 8px; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.rv-log.overdue .lg-meta { color: #e0885a; }
.rv-log.done .lg-meta, .rv-log.cancelled .lg-meta { color: var(--muted); }

/* группы по датам в широких масштабах */
.log-group { margin-bottom: 12px; }
.log-ghead {
  font-family: "Cormorant Garamond", serif; font-size: 15px; letter-spacing: 1px;
  color: #cdb389; padding: 6px 2px 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.log-group.now .log-ghead { color: var(--gold-soft); border-color: rgba(230,196,140,.4); }
.log-group.now .log-ghead::after { content: " · сегодня"; font-style: italic; font-size: 12px; color: var(--gold); }

/* иконка-квадрат «выбрать дату» с невидимым нативным пикером поверх */
.la-cal { position: relative; overflow: hidden; }
.la-cal input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; padding: 0; margin: 0; cursor: pointer; }

/* нижняя панель добавления: TASK · NOTE · EVENT — видна только в раскрытой шторке */
.log-bar {
  display: none;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 22;
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(12,8,6,0) 0%, rgba(12,8,6,.7) 34%, rgba(10,7,5,.97) 72%);
  /* поднимаем панель над всплывающей клавиатурой */
  transform: translateY(calc(-1 * var(--kb, 0px)));
  transition: transform .18s ease;
}
.room-view.has-log.expanded .log-bar { display: block; }
.log-types { display: flex; }
.log-type {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0; color: #cdb389;
  border-right: 1px solid rgba(212,160,90,.16);
}
.log-type:last-child { border-right: none; }
.log-type:active { transform: scale(.95); }
.lt-mark { font-size: 19px; color: var(--gold-soft); line-height: 1; }
.lt-name {
  font-family: "Cormorant Garamond", serif; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
}
.log-input {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
  background: rgba(22,15,10,.9); backdrop-filter: blur(6px);
  border: 1px solid rgba(212,160,90,.28); border-radius: 13px; padding: 8px 10px;
}
.li-row { display: flex; align-items: center; gap: 8px; }
.li-marker { font-size: 16px; color: var(--gold-soft); width: 18px; text-align: center; }
.li-row input {
  flex: 1; background: none; border: none; outline: none;
  color: #f0e4d2; font-family: "Manrope", sans-serif; font-size: 15px;
}
.li-row input::placeholder { color: #8a7860; }
.li-row button {
  background: none; border: none; color: var(--gold-soft);
  font-size: 19px; cursor: pointer; padding: 0 6px; line-height: 1;
}
.li-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.li-day {
  background: rgba(212,160,90,.08); border: 1px solid rgba(212,160,90,.2);
  color: #cdb389; border-radius: 9px; padding: 5px 10px; cursor: pointer;
  font-family: "Manrope", sans-serif; font-size: 12.5px;
}
.li-day.on { background: radial-gradient(circle, var(--gold-soft), var(--gold)); color: #241a13; border-color: var(--gold-soft); }
/* пилюли даты/времени: компактные, в один рост с чипами Сегодня/Завтра.
   Нативный <input> лежит поверх невидимо — тап открывает системный пикер,
   а показываем мы свою короткую подпись, без огромного «7 июля 2026 г.» */
.li-pick {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(212,160,90,.08); border: 1px solid rgba(212,160,90,.2);
  color: #cdb389; border-radius: 9px; padding: 5px 10px;
  font-family: "Manrope", sans-serif; font-size: 12.5px; cursor: pointer;
}
.li-pick.on { background: radial-gradient(circle, var(--gold-soft), var(--gold)); color: #241a13; border-color: var(--gold-soft); }
.li-pick.on .pick-ico { color: #241a13; }
.li-pick-val { min-width: 26px; }
.li-pick input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: none; padding: 0; margin: 0; cursor: pointer;
}

/* оранжерея внутри Зимнего сада */
.rv-plants { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px; }
.rv-plant {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 12px;
  background: rgba(22,15,10,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(212,160,90,.16);
}
.rv-plant.wilt { opacity: .6; }
.rv-p-emoji { font-size: 18px; }
.rv-plant.wilt .rv-p-emoji { filter: grayscale(.6) brightness(.8); }
.rv-p-name { font-size: 13px; color: #e8dcc8; }
.rv-p-streak { font-size: 12px; color: #e6c48c; }

/* ============ свой пикер даты/времени — модал по центру ============ */
.picker {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,4,3,.66); backdrop-filter: blur(3px);
  padding: 20px;
}
.picker.hidden { display: none; }
.picker-card {
  width: min(340px, 90vw);
  background: #140f0c; border: 1px solid rgba(212,160,90,.3);
  border-radius: 18px; padding: 14px 14px 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.picker-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #e6c48c; font-family: "Cormorant Garamond", serif; font-size: 19px;
  margin-bottom: 10px; min-height: 30px;
}
.pk-nav { background: none; border: none; color: #e6c48c; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 10px; }
.pk-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.pk-wd span { text-align: center; font-size: 11px; color: #9c8a74; }
.pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pk-day {
  aspect-ratio: 1; background: none; border: none; border-radius: 9px;
  color: #e8dcc8; font-family: "Manrope", sans-serif; font-size: 14px; cursor: pointer;
}
.pk-day.empty { visibility: hidden; }
.pk-day.today { border: 1px solid rgba(212,160,90,.45); }
.pk-day.sel { background: radial-gradient(circle, var(--gold-soft), var(--gold)); color: #241a13; }
.pk-day:active { transform: scale(.92); }
.pk-time { position: relative; display: flex; align-items: stretch; justify-content: center; gap: 8px; height: 200px; }
/* центральная полоса-указатель барабана */
.pk-time::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 36px; transform: translateY(-50%); pointer-events: none;
  border-top: 1px solid rgba(212,160,90,.28); border-bottom: 1px solid rgba(212,160,90,.28);
}
.pk-col {
  flex: 1; max-width: 88px; overflow-y: auto;
  border-radius: 10px; background: rgba(212,160,90,.05);
  scroll-snap-type: y mandatory;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
}
.pk-col::-webkit-scrollbar { display: none; }
.pk-t {
  display: block; width: 100%; background: none; border: none;
  color: #cdb389; font-family: "Manrope", sans-serif; font-size: 17px;
  padding: 9px 0; cursor: pointer; scroll-snap-align: center;
  transition: color .15s ease;
}
.pk-t.sel { background: radial-gradient(circle, var(--gold-soft), var(--gold)); color: #241a13; border-radius: 8px; }
.pk-colon { align-self: center; color: #e6c48c; font-size: 20px; }
.picker-foot { display: flex; gap: 8px; margin-top: 12px; }
.pk-btn {
  flex: 1; padding: 10px 0; border-radius: 10px;
  border: 1px solid rgba(212,160,90,.25); background: rgba(22,15,10,.8);
  color: #e6c48c; font-family: "Manrope", sans-serif; font-size: 14px; cursor: pointer;
}
.pk-ok { background: radial-gradient(circle, var(--gold-soft), var(--gold)); color: #241a13; border-color: var(--gold-soft); }
