/* ===========================================================
   peach.css — Soft Peach design system
   Pure CSS. Hook your JS to the classes / data-attributes.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === TOKENS === */
:root {
  /* Surfaces */
  --p-bg:           linear-gradient(180deg, #fbe9dc 0%, #f6d4be 100%);
  --p-bg-flat:      #fbe9dc;
  --p-card:         rgba(255, 255, 255, 0.62);
  --p-card-solid:   #fff6ee;
  --p-card-border:  rgba(255, 255, 255, 0.85);
  --p-divider:      rgba(42, 31, 26, 0.08);

  /* Ink */
  --p-ink:          #2a1f1a;
  --p-ink-2:        #7a5a48;
  --p-ink-3:        #a48672;
  --p-ink-inv:      #fbe9dc;

  /* Accents (task colors) */
  --p-shoot:        #e6a043;
  --p-custom:       #d96666;
  --p-photo:        #6691d9;
  --p-rest:         #7ab47a;
  --p-sext:         #a87ad9;
  --p-empty:        #bfa896;

  /* Tints (pastel fill for cards) */
  --p-tint-shoot:   #ffead7;
  --p-tint-custom:  #f2e0f5;
  --p-tint-photo:   #d9e6f5;
  --p-tint-rest:    #dbeedb;
  --p-tint-sext:    #ecdcef;
  --p-tint-counter-shoot:  #ffdcc1;
  --p-tint-counter-custom: #f7cdc2;

  /* Task border accents (deeper than ink dots for stripe visibility) */
  --p-border-shoot:  #c4502b;
  --p-border-photo:  #3a5a85;
  --p-border-custom: #7a3d8a;
  --p-border-sext:   #7a3d8a;
  --p-border-rest:   #3d6b3a;

  /* Type */
  --p-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --p-serif: 'Instrument Serif', Georgia, serif;
  --p-mono:  'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --p-r-sm:   10px;
  --p-r-md:   16px;
  --p-r-lg:   22px;
  --p-r-xl:   28px;
  --p-r-pill: 999px;

  /* Shadows */
  --p-sh-card:  0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 0.5px 2px rgba(42, 31, 26, 0.05);
  --p-sh-float: 0 10px 30px -8px rgba(42, 31, 26, 0.18), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  --p-sh-modal: 0 20px 50px -10px rgba(42, 31, 26, 0.25), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* === RESET === */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--p-bg-flat);
  color: var(--p-ink);
  font-family: var(--p-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
input, button, textarea, select { font-family: inherit; }
button { background: none; border: none; color: inherit; padding: 0; cursor: pointer; }

/* ===========================================================
   SHELL — phone-sized container, peach gradient bg
   =========================================================== */
.shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--p-bg);
  color: var(--p-ink);
  font-family: var(--p-sans);
  position: relative;
  overflow: hidden;
}
.shell--scroll { overflow-y: auto; }

/* ===========================================================
   STATUS BAR (iOS-style)
   =========================================================== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 4px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status-bar__indicators {
  display: flex;
  gap: 5px;
  align-items: center;
}
.status-bar__signal { font-size: 11px; }
.status-bar__network { font-size: 11px; opacity: 0.85; }
.status-bar__battery {
  display: inline-block;
  width: 22px;
  height: 11px;
  border: 1.2px solid var(--p-ink);
  border-radius: 3px;
  position: relative;
}
.status-bar__battery::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  width: 14px;
  background: var(--p-ink);
  border-radius: 1px;
}

/* ===========================================================
   HEADER ROW (avatar + actions)
   =========================================================== */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 0;
}
.header-row__left { display: flex; align-items: center; gap: 10px; }
.header-row__right { display: flex; gap: 6px; align-items: center; }

/* === AVATAR === */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1a48a, #c97357);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(201, 115, 87, 0.35);
}
.avatar--lg { width: 48px; height: 48px; font-size: 18px; }
.avatar--xl { width: 64px; height: 64px; font-size: 22px; }

/* === PILL === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--p-ink);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--p-r-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill--dark {
  background: var(--p-ink);
  color: var(--p-ink-inv);
  border-color: transparent;
}
.pill--icon { padding: 6px 10px; }

/* === SECTION LABEL === */
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  font-size: 12px;
  color: var(--p-ink-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.section-label__action { font-weight: 500; }

/* === DAY MINI RAIL (in day-card header) === */
.day-mini-rail {
  display: flex;
  gap: 5px;
  align-items: center;
}
.rail-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--p-ink);
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px -2px rgba(42, 31, 26, 0.12);
}
.rail-btn--compact { width: 28px; height: 28px; }
.rail-btn--accent {
  background: #e3f0e3;
  color: #3d6b3a;
  border-color: rgba(61, 107, 58, 0.18);
}
.rail-btn--disabled { opacity: 0.35; }

/* ===========================================================
   HERO — crown + shimmer title + quote + watermark
   =========================================================== */
.hero {
  position: relative;
  padding: 8px 20px 18px;
  overflow: hidden;
}

/* Background sparkles */
.hero__sparkle {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.hero__sparkle--one {
  top: 36px; right: 14px;
  font-size: 32px;
  opacity: 0.08;
  color: var(--p-shoot);
}
.hero__sparkle--two {
  top: 200px; left: 22px;
  font-size: 28px;
  opacity: 0.07;
  color: var(--p-custom);
}

/* Top action row (gear + streak) */
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}
.hero__gear {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: var(--p-ink);
  box-shadow: var(--p-sh-card);
}

/* Crown */
.hero__crown {
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 3;
}
.hero__crown-glyph {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(212, 172, 79, 0.35));
}

/* Title block (with date watermark behind) */
.hero__title-block {
  margin-top: 10px;
  text-align: center;
  position: relative;
}
.hero__date-wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.hero__date-wm-num {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 110px;
  line-height: 0.85;
  color: var(--p-ink);
  opacity: 0.08;
  letter-spacing: -0.04em;
  transform: rotate(-6deg);
}
.hero__date-wm-top {
  position: absolute;
  left: 0; right: 0; top: -6px;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  font-family: var(--p-mono);
  font-size: 10px;
  color: var(--p-ink);
  opacity: 0.22;
  letter-spacing: 0.35em;
  text-transform: lowercase;
}

/* Shimmer title */
@keyframes peach-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero__title {
  margin: 0;
  padding: 0;
  font-family: var(--p-sans);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #c4502b 0%, #e6a043 25%, #d97a52 50%, #b58a3d 75%, #c4502b 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: peach-shimmer 5s linear infinite;
  position: relative;
  z-index: 2;
}

/* English mono caption under title */
.hero__title-caption {
  font-family: var(--p-mono);
  font-size: 10px;
  color: var(--p-ink);
  opacity: 0.3;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

/* Quote (editorial italic with pull-quote bar) */
.hero__quote {
  margin-top: 18px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 4px 12px;
}
.hero__quote-bar {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--p-shoot), var(--p-custom));
  flex-shrink: 0;
}
.hero__quote-text {
  font-family: var(--p-serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--p-ink);
  letter-spacing: -0.005em;
  text-align: left;
}

/* ===========================================================
   COUNTER ROW (Рилс / Фото) — full-width with progress bar
   =========================================================== */
.counter-row {
  border-radius: var(--p-r-lg);
  padding: 12px 16px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.counter-row--shoot  { background: var(--p-tint-counter-shoot); }
.counter-row--custom { background: var(--p-tint-counter-custom); }

.counter-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.counter-row__label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.counter-row__icon { font-size: 18px; }
.counter-row__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.counter-row__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.counter-row__num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.counter-row__num--shoot  { color: var(--p-border-shoot); }
.counter-row__num--custom { color: #9a3a3a; }
.counter-row__target {
  font-size: 13px;
  color: var(--p-ink-2);
}

.counter-row__bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(42, 31, 26, 0.12);
  overflow: hidden;
  position: relative;
}
.counter-row__bar-fill {
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) inset;
}
.counter-row__bar-fill--shoot  { background: var(--p-border-shoot); }
.counter-row__bar-fill--custom { background: #9a3a3a; }

/* ===========================================================
   TOP TABS (Сегодня / Неделя / Месяц / Ещё)
   =========================================================== */
.top-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--p-r-pill);
  padding: 4px;
  backdrop-filter: blur(10px);
  box-shadow: var(--p-sh-card);
  margin: 14px 18px 0;
}
.top-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  border-radius: var(--p-r-pill);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--p-ink);
  white-space: nowrap;
}
.top-tab__icon { font-size: 13px; }
.top-tab.is-active {
  background: var(--p-ink);
  color: var(--p-ink-inv);
  font-weight: 600;
}

/* ===========================================================
   DAY CARD — big section that holds tasks
   =========================================================== */
.day-card {
  background: var(--p-card-solid);
  border: 1px solid var(--p-card-border);
  border-radius: var(--p-r-xl);
  padding: 16px 14px 14px;
  box-shadow: var(--p-sh-card);
}
.day-card--glass {
  background: var(--p-card);
  backdrop-filter: blur(10px);
}
.day-card--today {
  background: #fff6ee;
  border: 1.5px solid var(--p-ink);
  box-shadow: 0 8px 24px -10px rgba(42, 31, 26, 0.18);
}
.day-card--past { opacity: 0.82; }

.day-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px 8px;
}
.day-card__name-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.day-card__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.day-card__date {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--p-custom);
  letter-spacing: -0.01em;
}
.day-card__badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--p-ink);
  padding: 2px 8px;
  border-radius: 999px;
}

.day-card__empty {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--p-ink-3);
}
.day-card__day-off {
  padding: 18px 14px;
  text-align: center;
  font-family: var(--p-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--p-ink-2);
}

/* === MOOD ROW === */
.mood-row {
  display: flex;
  gap: 7px;
  padding: 14px 4px 12px;
  border-bottom: 1px dashed rgba(42, 31, 26, 0.1);
  margin-bottom: 12px;
}
.mood-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mood-btn.is-active {
  background: #fff;
  border: 1.5px solid var(--p-shoot);
  box-shadow: 0 2px 6px -2px rgba(196, 80, 43, 0.25);
}

/* === TASKS LIST === */
.tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === TASK CARD === */
.task {
  background: var(--p-tint-shoot);
  border-radius: 14px;
  border-left: 4px solid var(--p-border-shoot);
  padding: 12px 14px 12px 12px;
  display: flex;
  gap: 10px;
  position: relative;
}
.task.is-done { opacity: 0.68; }

.task--shoot  { background: var(--p-tint-shoot);  border-left-color: var(--p-border-shoot); }
.task--photo  { background: var(--p-tint-photo);  border-left-color: var(--p-border-photo); }
.task--custom { background: var(--p-tint-custom); border-left-color: var(--p-border-custom); }
.task--sext   { background: var(--p-tint-sext);   border-left-color: var(--p-border-sext); }
.task--rest   { background: var(--p-tint-rest);   border-left-color: var(--p-border-rest); }
.task--plain  { background: rgba(42, 31, 26, 0.04); border-left-color: var(--p-ink-3); }

.task__check-wrap { padding-top: 1px; }
.task__check {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: transparent;
  border: 1.5px solid rgba(42, 31, 26, 0.22);
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}
.task__check.is-checked {
  background: currentColor;
  border-color: currentColor;
}
.task__check.is-checked::after {
  content: '';
  position: absolute;
  top: 5px; left: 4px;
  width: 11px; height: 5px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg);
}
.task--shoot  .task__check.is-checked { color: var(--p-border-shoot); }
.task--photo  .task__check.is-checked { color: var(--p-border-photo); }
.task--custom .task__check.is-checked { color: var(--p-border-custom); }
.task--sext   .task__check.is-checked { color: var(--p-border-sext); }
.task--rest   .task__check.is-checked { color: var(--p-border-rest); }

.task__body {
  flex: 1;
  min-width: 0;
}
.task__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.task__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--p-ink);
  min-width: 0;
}
.task.is-done .task__title {
  text-decoration: line-through;
  text-decoration-color: rgba(42, 31, 26, 0.4);
}
.task__emoji { font-size: 16px; line-height: 1; }
.task__title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task__ig {
  display: inline-flex;
  flex-shrink: 0;
}
.task--shoot .task__ig { color: var(--p-border-shoot); }

.task__qty {
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  padding: 3px 8px;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0.5px 1.5px rgba(42, 31, 26, 0.06);
  letter-spacing: -0.005em;
}
.task--shoot  .task__qty { color: var(--p-border-shoot); }
.task--photo  .task__qty { color: var(--p-border-photo); }
.task--custom .task__qty { color: var(--p-border-custom); }

.task__time {
  font-size: 12px;
  color: var(--p-ink-2);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.task__desc {
  font-size: 13px;
  color: var(--p-ink-2);
  line-height: 1.4;
  margin-bottom: 10px;
  padding-right: 20px;
}
.task.is-done .task__desc { padding-right: 0; }
.task__desc:last-child { margin-bottom: 0; }

.task__links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding-right: 28px;
}
.task.is-done .task__links { padding-right: 0; }

/* Reschedule arrow corner button */
.task__reschedule {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(42, 31, 26, 0.08);
}
.task--shoot  .task__reschedule { color: var(--p-border-shoot); }
.task--photo  .task__reschedule { color: var(--p-border-photo); }
.task--custom .task__reschedule { color: var(--p-border-custom); }
.task--rest   .task__reschedule { color: var(--p-border-rest); }
.task.is-done .task__reschedule { display: none; }

/* === LINK CHIP === */
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.link-chip--drive { background: #fdf0d8; color: #946616; }
.link-chip--tg    { background: #e3edf9; color: #3a5a85; }
.link-chip--up    { background: #e3f0e3; color: #3d6b3a; }
.link-chip--idea  { background: #fdebd8; color: #a05420; }
.link-chip--loc   { background: #f4e6f0; color: #7a3d6e; }
.link-chip--ref   { background: rgba(42, 31, 26, 0.05); color: #7a5a48; }

/* === ADD TASK CTA === */
.add-task {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1.5px dashed rgba(42, 31, 26, 0.18);
  border-radius: var(--p-r-lg);
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--p-ink-2);
  letter-spacing: 0.01em;
}

/* === DAY LINKS FOOTER (legacy, kept for reference) === */
.day-links {
  padding: 12px 14px 4px;
  border-top: 1px dashed rgba(42, 31, 26, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.day-links__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--p-ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 2px;
}

/* === WEEK STRIP (Today screen bottom) === */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 16px;
}
.week-day {
  border-radius: 14px;
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fff5e9 100%);
  color: var(--p-ink);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px -2px rgba(42, 31, 26, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.week-day.is-past:not(.is-active) { opacity: 0.85; }
.week-day.is-active {
  background: linear-gradient(180deg, #3a2c24 0%, #1a1614 100%);
  color: #fbe9dc;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px -4px rgba(42, 31, 26, 0.45), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.week-day.is-dayoff {
  background: linear-gradient(180deg, #e9f3e6 0%, #d6e9d3 100%);
  color: #3d6b3a;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px -2px rgba(61, 107, 58, 0.2), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.week-day__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
.week-day.is-active .week-day__label { opacity: 0.7; }
.week-day__num {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.week-day.is-active .week-day__num { font-size: 17px; font-weight: 700; }
.week-day__dots {
  display: flex;
  gap: 2px;
  margin-top: 1px;
  min-height: 4px;
}
.week-day__dot {
  width: 4px; height: 4px; border-radius: 50%;
}
.week-day__leaf {
  position: absolute;
  top: 4px; right: 5px;
  font-size: 9px;
  opacity: 0.7;
}

/* ===========================================================
   TAB BAR — floating bottom nav
   =========================================================== */
.tabbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: 388px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--p-r-pill);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--p-sh-float);
  z-index: 50;
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  border-radius: var(--p-r-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--p-ink-2);
}
.tabbar__item.is-active {
  background: var(--p-ink);
  color: var(--p-ink-inv);
}

/* ===========================================================
   FAB
   =========================================================== */
.fab {
  position: fixed;
  right: calc(50% - 188px);
  bottom: 92px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--p-ink);
  color: var(--p-ink-inv);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  box-shadow: 0 12px 28px -6px rgba(42, 31, 26, 0.4);
  z-index: 60;
}
@media (max-width: 420px) {
  .fab { right: 22px; }
}

/* ===========================================================
   CALENDAR (Месяц)
   =========================================================== */
.cal {
  padding: 0 14px;
}
.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--p-ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}
.cal__grid {
  background: linear-gradient(180deg, #fff7ef 0%, #fdeede 100%);
  border-radius: var(--p-r-lg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  box-shadow: 0 12px 28px -10px rgba(42, 31, 26, 0.15), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.cal__cell {
  aspect-ratio: 1 / 1.08;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fff5e9 100%);
  color: var(--p-ink);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px -2px rgba(42, 31, 26, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  position: relative;
}
.cal__cell--empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--p-ink-3);
}
.cal__cell--today {
  background: linear-gradient(180deg, #3a2c24 0%, #1a1614 100%);
  color: #fbe9dc;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px -4px rgba(42, 31, 26, 0.45), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.cal__cell--dayoff {
  background: linear-gradient(180deg, #e9f3e6 0%, #d6e9d3 100%);
  color: #3d6b3a;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px -2px rgba(61, 107, 58, 0.2), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.cal__num {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cal__cell--today .cal__num { font-size: 17px; font-weight: 700; }
.cal__dots {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 85%;
  min-height: 4px;
}
.cal__dot { width: 4px; height: 4px; border-radius: 50%; }
.cal__leaf {
  position: absolute;
  top: 4px; right: 5px;
  font-size: 9px;
  opacity: 0.7;
}

.cal__legend {
  padding: 14px 18px 4px;
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--p-ink-2);
  flex-wrap: wrap;
}
.cal__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.cal__legend-dot {
  width: 7px; height: 7px; border-radius: 50%;
}

/* ===========================================================
   "ЕЩЁ" — placeholder tiles + progress card
   =========================================================== */
.more-hero {
  background: var(--p-ink);
  color: var(--p-ink-inv);
  border-radius: var(--p-r-xl);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(42, 31, 26, 0.4);
}
.more-hero__kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.more-hero__title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.more-hero__title em {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
}
.more-hero__sub {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.45;
}
.more-hero__arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.more-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.more-tile {
  background: var(--p-card);
  border: 1px solid var(--p-card-border);
  backdrop-filter: blur(10px);
  border-radius: var(--p-r-xl);
  padding: 16px 14px 14px;
  box-shadow: var(--p-sh-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}
.more-tile__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(42, 31, 26, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.more-tile__spacer { flex: 1; }
.more-tile__name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.more-tile__sub {
  font-size: 11px;
  color: var(--p-ink-2);
  margin-top: 2px;
}

.more-coming {
  background: var(--p-card);
  border: 1px dashed rgba(42, 31, 26, 0.18);
  border-radius: var(--p-r-xl);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  font-family: var(--p-serif);
  font-style: italic;
  color: var(--p-ink-2);
  font-size: 13px;
  line-height: 1.5;
}

/* Progress section reused on "Ещё" tab */
.progress-section {
  background: var(--p-card-solid);
  border: 1px solid var(--p-card-border);
  border-radius: var(--p-r-xl);
  padding: 14px 14px 10px;
  box-shadow: var(--p-sh-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress-section__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px;
  border-top: 1px solid var(--p-divider);
  margin-top: 2px;
  padding-top: 10px;
}
.progress-section__streak-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.progress-section__streak-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--p-shoot);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.progress-section__streak-suffix {
  font-size: 12px;
  color: var(--p-ink-2);
  font-weight: 500;
}

/* ===========================================================
   MODALS (bottom sheets)
   =========================================================== */
.dim {
  position: absolute;
  inset: 0;
  background: rgba(42, 31, 26, 0.35);
  backdrop-filter: blur(2px);
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--p-card-solid);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 14px 22px 26px;
  box-shadow: var(--p-sh-modal);
}
.sheet__grip {
  width: 42px; height: 4px;
  border-radius: 4px;
  background: rgba(42, 31, 26, 0.18);
  margin: 0 auto 14px;
}
.sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.sheet__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-ink-2);
}
.sheet__delete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--p-custom);
  background: rgba(217, 102, 102, 0.1);
  padding: 5px 10px;
  border-radius: 999px;
}

.sheet__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--p-divider);
}
.sheet__emoji-box {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #ffdcc1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.sheet__title-input {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--p-sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--p-ink);
  padding: 0;
  letter-spacing: -0.015em;
}
.sheet__sub-input {
  display: block;
  width: 100%;
  margin-top: 2px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--p-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--p-ink-2);
  padding: 0;
}

/* Properties list */
.prop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--p-divider);
  min-height: 28px;
}
.prop:last-child { border-bottom: none; }
.prop__label {
  width: 72px;
  font-size: 10.5px;
  color: var(--p-ink-2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.prop__value {
  flex: 1;
  min-width: 0;
}

/* Segmented control */
.seg {
  display: inline-flex;
  background: rgba(42, 31, 26, 0.06);
  border-radius: 10px;
  padding: 2px;
}
.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--p-ink-2);
  letter-spacing: 0.01em;
}
.seg__btn.is-active {
  background: #fff;
  color: var(--p-ink);
  font-weight: 600;
  box-shadow: 0 0.5px 1.5px rgba(42, 31, 26, 0.1);
}

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(42, 31, 26, 0.06);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.stepper__btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-ink);
  box-shadow: 0 0.5px 1px rgba(42, 31, 26, 0.08);
}

/* Color swatches row */
.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-swatch {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.color-swatch.is-active {
  width: 22px; height: 22px;
  border-color: var(--p-ink);
  box-shadow: 0 0 0 2px #fff6ee inset;
}
.color-swatch--shoot  { background: var(--p-shoot); }
.color-swatch--custom { background: var(--p-custom); }
.color-swatch--photo  { background: var(--p-photo); }
.color-swatch--sext   { background: var(--p-sext); }
.color-swatch--rest   { background: var(--p-rest); }
.color-swatch--empty  { background: var(--p-empty); }
.color-row__name {
  margin-left: auto;
  font-size: 12px;
  color: var(--p-ink-2);
  font-weight: 500;
}

.prop__input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--p-ink);
  padding: 0;
}
.prop__input--serif {
  font-family: var(--p-serif);
  font-style: italic;
}
.prop__time {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.prop__time-sub {
  font-size: 12px;
  color: var(--p-ink-3);
}

/* Add (dashed) chip — for "+ добавить" buttons inside props */
.chip-add {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(42, 31, 26, 0.05);
  color: var(--p-ink-2);
  padding: 4px 9px 4px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px dashed rgba(42, 31, 26, 0.2);
}

/* Sheet bottom actions */
.sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  flex: 1;
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--p-r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--p-ink);
  color: var(--p-ink-inv);
}
.btn--secondary {
  background: rgba(42, 31, 26, 0.06);
  color: var(--p-ink);
}

/* ===========================================================
   QTY PICKER (big draggable number)
   =========================================================== */
.qty-readout {
  text-align: center;
  position: relative;
  padding: 26px 0 18px;
}
.qty-readout__ghosts {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 24px;
  font-variant-numeric: tabular-nums;
}
.qty-readout__ghost {
  font-family: var(--p-sans);
  font-size: 42px;
  font-weight: 300;
  color: var(--p-ink-3);
  opacity: 0.35;
  letter-spacing: -0.03em;
}
.qty-readout__num {
  font-family: var(--p-serif);
  font-size: 108px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--p-ink);
}
.qty-readout__planned {
  font-size: 13px;
  color: var(--p-ink-3);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.qty-readout__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--p-ink-3);
  font-size: 24px;
  opacity: 0.6;
}
.qty-readout__arrow--left  { left: 24px; }
.qty-readout__arrow--right { right: 24px; }

.qty-track {
  margin-top: 18px;
  height: 6px;
  border-radius: 6px;
  background: rgba(42, 31, 26, 0.08);
  position: relative;
}
.qty-track__fill {
  height: 100%;
  border-radius: 6px;
  background: var(--p-shoot);
}
.qty-track__knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--p-shoot);
  box-shadow: 0 4px 10px -2px rgba(196, 80, 43, 0.35);
}
.qty-hint {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--p-ink-3);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  padding: 0 2px;
}

/* ===========================================================
   MOOD PICKER
   =========================================================== */
.mood-picker {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 18px;
}
.mood-picker__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  border-radius: var(--p-r-md);
  background: rgba(42, 31, 26, 0.04);
  border: 1.5px solid transparent;
}
.mood-picker__item.is-active {
  background: #ffdcc1;
  border-color: var(--p-shoot);
}
.mood-picker__emoji { font-size: 28px; line-height: 1; }
.mood-picker__name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--p-ink-2);
  letter-spacing: 0.01em;
  text-align: center;
}
.mood-picker__item.is-active .mood-picker__name { color: var(--p-ink); }

/* Note field (boxed) */
.note-field {
  background: rgba(42, 31, 26, 0.04);
  border: 1px solid rgba(42, 31, 26, 0.06);
  border-radius: var(--p-r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.note-field__label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--p-ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.note-field__placeholder {
  font-size: 14px;
  color: var(--p-ink-3);
  font-style: italic;
}

/* ===========================================================
   RESCHEDULE
   =========================================================== */
.slot-card {
  background: var(--p-card);
  border: 1px solid var(--p-card-border);
  border-radius: var(--p-r-lg);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  box-shadow: var(--p-sh-card);
  display: flex;
  align-items: center;
  gap: 14px;
}
.slot-card.is-recommended {
  background: #fff6ee;
  border: 1.5px solid var(--p-ink);
  box-shadow: 0 4px 14px -6px rgba(42, 31, 26, 0.18);
}
.slot-card__body { flex: 1; }
.slot-card__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.slot-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-ink-2);
}
.slot-card.is-recommended .slot-card__label { color: var(--p-shoot); }
.slot-card__badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--p-shoot);
  padding: 2px 7px;
  border-radius: 999px;
}
.slot-card__date {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.slot-card__note {
  font-size: 12px;
  color: var(--p-ink-2);
  margin-top: 3px;
}
.slot-card__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(42, 31, 26, 0.06);
  color: var(--p-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.slot-card.is-recommended .slot-card__arrow {
  background: var(--p-ink);
  color: var(--p-ink-inv);
}

.bot-bubble {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  background: var(--p-card-solid);
  border-radius: var(--p-r-xl);
  padding: 14px 16px;
  box-shadow: var(--p-sh-float);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bot-bubble__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1a48a, #c97357);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.bot-bubble__text {
  flex: 1;
  font-family: var(--p-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--p-ink);
}

/* ===========================================================
   MENU DROPDOWN (avatar tap)
   =========================================================== */
.menu-pop {
  position: absolute;
  top: 96px; left: 14px;
  width: 268px;
  background: var(--p-card-solid);
  border-radius: 22px;
  box-shadow: var(--p-sh-modal);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.menu-pop::before {
  content: '';
  position: absolute;
  top: -7px; left: 18px;
  width: 14px; height: 14px;
  background: var(--p-card-solid);
  transform: rotate(45deg);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.85);
}
.menu-pop__profile {
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--p-divider);
}
.menu-pop__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.menu-pop__handle {
  font-size: 11px;
  color: var(--p-ink-2);
}
.menu-pop__group-label {
  padding: 10px 16px 6px;
  font-size: 10px;
  color: var(--p-ink-3);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid var(--p-divider);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.menu-row.is-plain { padding: 8px 16px; }
.menu-row.is-disabled { opacity: 0.4; }
.menu-row__icon {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: rgba(42, 31, 26, 0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--p-ink);
  flex-shrink: 0;
}
.menu-row.is-danger .menu-row__icon { background: rgba(217, 102, 102, 0.12); color: var(--p-custom); }
.menu-row__body { flex: 1; min-width: 0; }
.menu-row__label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.menu-row.is-danger .menu-row__label { color: var(--p-custom); }
.menu-row__sub {
  font-size: 11px;
  color: var(--p-ink-2);
  margin-top: 1px;
}
.menu-row__chevron { font-size: 14px; color: var(--p-ink-3); }
.menu-row__shortcut {
  font-size: 10px;
  font-family: var(--p-mono);
  color: var(--p-ink-3);
  background: rgba(42, 31, 26, 0.04);
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.menu-pop__footer {
  border-top: 1px solid var(--p-divider);
  padding: 8px 16px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-family: var(--p-mono);
  color: var(--p-ink-3);
  letter-spacing: 0.04em;
}

/* ===========================================================
   SETTINGS
   =========================================================== */
.settings-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.settings-group__label {
  font-size: 11px;
  color: var(--p-ink-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 14px 8px;
}
.settings-group__card {
  background: var(--p-card);
  border: 1px solid var(--p-card-border);
  border-radius: var(--p-r-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--p-sh-card);
  overflow: hidden;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.settings-row__icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(42, 31, 26, 0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--p-ink);
  flex-shrink: 0;
}
.settings-row__body { flex: 1; min-width: 0; }
.settings-row__name {
  font-size: 14.5px;
  font-weight: 500;
}
.settings-row__value {
  font-size: 12px;
  color: var(--p-ink-2);
  margin-top: 2px;
}
.settings-row.is-warn .settings-row__name { color: var(--p-custom); }
.settings-row__check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--p-rest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}
.settings-row__chevron { font-size: 18px; color: var(--p-ink-3); }
.settings-divider {
  height: 1px;
  background: var(--p-divider);
  margin: 0 16px;
}

.profile-card {
  background: var(--p-card-solid);
  border: 1px solid var(--p-card-border);
  border-radius: var(--p-r-xl);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--p-sh-card);
  margin-bottom: 14px;
}
.profile-card__body { flex: 1; }
.profile-card__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.profile-card__handle {
  font-size: 12px;
  color: var(--p-ink-2);
}
.profile-card__logout {
  font-size: 11px;
  font-weight: 600;
  color: var(--p-ink);
  background: rgba(42, 31, 26, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Themes */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 16px 4px;
}
.theme-swatch {
  text-align: center;
}
.theme-swatch__chip {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  position: relative;
}
.theme-swatch.is-active .theme-swatch__chip {
  border-color: var(--p-ink);
  box-shadow: 0 4px 12px -4px rgba(42, 31, 26, 0.25);
}
.theme-swatch__check {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-swatch--peach { background: linear-gradient(135deg, #fbe9dc, #f6d4be); }
.theme-swatch--cream { background: linear-gradient(135deg, #f6f0e6, #e8dfd0); }
.theme-swatch--mint  { background: linear-gradient(135deg, #e3efe4, #cce0d0); }
.theme-swatch--dusk  { background: linear-gradient(135deg, #2a1f1a, #5a3f33); }
.theme-swatch__name {
  font-size: 11px;
  color: var(--p-ink-2);
  font-weight: 500;
}
.theme-swatch.is-active .theme-swatch__name {
  color: var(--p-ink);
  font-weight: 600;
}

.accent-picker {
  display: flex;
  gap: 10px;
  padding: 0 16px 14px;
}
.accent-swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.accent-swatch.is-active {
  border-color: var(--p-ink);
  box-shadow: 0 0 0 2px #fff6ee inset;
}

/* ===========================================================
   DAY DONE — celebration state
   =========================================================== */
.done-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 28px 160px;
  text-align: center;
  position: relative;
  min-height: 70vh;
}
.done-state__ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffcfb0, #d97a52);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 20px 50px -10px rgba(217, 122, 82, 0.5);
}
.done-state__title {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 10px;
}
.done-state__title em {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
}
.done-state__sub {
  font-size: 14.5px;
  color: var(--p-ink-2);
  line-height: 1.45;
  max-width: 280px;
}
.done-state__sub b { color: var(--p-ink); }

.mini-stats {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.mini-stat {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--p-r-md);
  padding: 8px 14px;
  text-align: center;
  min-width: 60px;
}
.mini-stat__num {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mini-stat__sub {
  font-size: 10px;
  color: var(--p-ink-2);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.next-day-preview {
  margin-top: 28px;
  width: 100%;
  background: var(--p-card);
  border: 1px solid var(--p-card-border);
  border-radius: var(--p-r-xl);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--p-sh-card);
  text-align: left;
}
.next-day-preview__label {
  font-size: 10.5px;
  color: var(--p-ink-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.next-day-preview__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.next-day-preview__items {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--p-ink-2);
}
.next-day-preview__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.confetti {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}

/* ===========================================================
   UTILITY
   =========================================================== */
.u-hidden { display: none !important; }
.u-stack { display: flex; flex-direction: column; }
.u-row { display: flex; align-items: center; }
.u-grow { flex: 1; }
.u-spacer-8 { height: 8px; }
.u-spacer-14 { height: 14px; }
.u-spacer-20 { height: 20px; }
.u-spacer-32 { height: 32px; }
