:root {
  --bg: #FFF5F1;
  --bg2: #FFE8E1;
  --card: #FFFFFF;
  --ink: #5B3A44;
  --muted: #A9878F;
  --line: #F5DCD5;
  --pink: #F7A8BC;
  --peach: #FFC4A8;
  --accent: #E9768F;
  --accent-soft: #FDE3E8;
  --grad: linear-gradient(135deg, #FFB49A 0%, #F38BA8 100%);
  --mint: #7FCCA5;
  --shadow: 0 6px 22px rgba(233, 118, 143, .12);
  --r: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Nunito', system-ui, sans-serif; font-size: 15px; font-weight: 600;
  min-height: 100vh;
  background:
    radial-gradient(600px 300px at 110% -5%, #FFE0D3 0%, transparent 60%),
    radial-gradient(500px 300px at -20% 30%, #FFE3EA 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* ── Шапка ── */
#top {
  position: sticky; top: 0; z-index: 20; padding: 14px 16px 12px;
  background: rgba(255, 245, 241, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 220, 213, .7);
}
.logo { font-weight: 900; font-size: 22px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatars { display: flex; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 17px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(233,118,143,.25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar + .avatar { margin-left: -12px; }
.avatar.p2 { background: linear-gradient(135deg, #F7A8BC, #C9A7F0); }
.couple-name { font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
#top .row .row:first-child { min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.chip.peach { background: #FFEADF; color: #D9785A; }
.chip.mint { background: #E3F6EC; color: #3E9A6E; }
.chip.gray { background: #F5EEEC; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); color: var(--accent); flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }

/* ── Контент ── */
#main { padding: 16px 16px calc(120px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.screen-title { font-size: 28px; margin: 4px 0 4px; }
.screen-sub { color: var(--muted); margin-bottom: 16px; }
.card {
  background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow);
  margin-bottom: 14px; border: 1px solid rgba(245, 220, 213, .6);
}
.card-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.loading { display: grid; place-items: center; height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Сегменты ── */
.seg { display: flex; background: #FBE7E1; border-radius: 18px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg button {
  flex: 1; padding: 10px 6px; border-radius: 14px; font-weight: 800; color: var(--muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.seg button.on { background: #fff; color: var(--accent); box-shadow: 0 2px 10px rgba(233,118,143,.15); }
.seg.small button { padding: 8px 6px; font-size: 13.5px; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 16px; font-weight: 800; background: var(--grad); color: #fff;
  box-shadow: 0 6px 16px rgba(243, 139, 168, .35); transition: transform .12s;
}
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn.white { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.btn.small { padding: 8px 12px; border-radius: 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.add-dashed {
  width: 100%; padding: 16px; border-radius: var(--r); border: 2px dashed #F2B9A6; color: #D9785A;
  font-weight: 800; background: rgba(255,255,255,.4); margin-bottom: 14px;
}
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* ── Списки ── */
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; padding-bottom: 2px; }
.item:first-child { padding-top: 2px; }
.item-title { font-weight: 800; font-size: 15.5px; word-break: break-word; }
.item-meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item.done .item-title { text-decoration: line-through; color: var(--muted); }
.item-emoji { width: 44px; height: 44px; border-radius: 14px; background: #FFF0EA; display: grid; place-items: center; font-size: 22px; flex: none; }
.check {
  width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #F2B9A6; flex: none; display: grid; place-items: center;
  color: #fff; font-size: 15px; transition: .15s;
}
.check.on { background: var(--mint); border-color: var(--mint); }
.mini { color: var(--muted); padding: 4px; font-size: 18px; line-height: 1; }
.link-pill {
  display: inline-flex; max-width: 100%; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 99px;
  background: #F8F0EE; color: var(--ink); font-size: 12.5px; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }
.empty .big { font-size: 40px; margin-bottom: 6px; }
.group-title { font-size: 13px; font-weight: 900; color: var(--muted); margin: 18px 4px 8px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Формы ── */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 0 6px 4px; }
.input, textarea.input, select.input {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #FFFBFA;
  outline: none; font-weight: 600; transition: border-color .15s;
}
.input:focus { border-color: var(--pink); background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
.inline-add { display: flex; gap: 8px; margin-bottom: 14px; }
.inline-add .input { flex: 1; }
.inline-add .btn { padding: 0 18px; font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips button { padding: 8px 12px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 13.5px; }
.chips button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ── Нижняя навигация ── */
#nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); z-index: 30;
  width: min(calc(100% - 24px), 520px); display: flex; justify-content: space-around; padding: 8px 6px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 28px; box-shadow: 0 10px 30px rgba(91, 58, 68, .12); border: 1px solid #fff;
}
#nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #C2A6AD; font-size: 11.5px; font-weight: 800; position: relative; padding: 4px 0; }
#nav button .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: .2s; }
#nav button svg { width: 23px; height: 23px; }
#nav button.on { color: var(--accent); }
#nav button.on .ic { background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(243,139,168,.4); transform: translateY(-4px); }
.badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }

/* ── Даник ── */
.pet-card { padding: 16px 16px 14px; background: linear-gradient(180deg, #FFF 0%, #FFF7F3 100%); }
.pet-scene {
  position: relative; height: 230px; border-radius: 20px; margin: 12px 0; overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 35%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #FFE1D6 0%, #FFD0C9 62%, #F7BBB4 62%, #F2ABA6 100%);
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.pet-scene::before { /* окошко */
  content: ''; position: absolute; left: 22px; top: 22px; width: 64px; height: 74px; border-radius: 32px 32px 8px 8px;
  background: linear-gradient(180deg, #C9E6FF, #FFE7F0); border: 5px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.pet-scene::after { /* коврик */
  content: ''; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 210px; height: 34px; border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, #FFF3EC 0 6px, #FFE0D3 6px 12px);
}
.garland { position: absolute; right: 20px; top: 16px; font-size: 18px; letter-spacing: 4px; opacity: .9; }
.bear-wrap { position: absolute; left: 50%; bottom: 18px; width: 170px; transform: translateX(-50%); z-index: 2; }
.bear-svg { width: 100%; display: block; animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.bear-wrap.bounce .bear-svg { animation: bounce .5s ease; }
.bear-eyes { animation: blink 5s infinite; transform-origin: 100px 86px; }
@keyframes breathe { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .985); } }
@keyframes bounce { 0% { transform: scale(1); } 30% { transform: scale(.94, 1.08) translateY(-12px); } 60% { transform: scale(1.04, .96); } 100% { transform: scale(1); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.thought {
  position: absolute; right: 30px; top: 40px; z-index: 3; background: #fff; border-radius: 18px; padding: 6px 10px; font-size: 22px;
  box-shadow: var(--shadow); animation: float 2.4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.float-fx { position: absolute; z-index: 5; pointer-events: none; font-weight: 900; color: var(--accent); font-size: 20px; animation: up 1.1s ease-out forwards; }
@keyframes up { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-80px) scale(1.4); } }
.tap-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 4; background: rgba(91,58,68,.55); color: #fff; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.xp-bar { height: 10px; border-radius: 99px; background: #FBE7E1; overflow: hidden; }
.xp-bar > div { height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s; }
.daily { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.daily .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #F2B9A6; display: grid; place-items: center; font-size: 12px; color: #fff; flex: none; }
.daily.ok .dot { background: var(--mint); border-color: var(--mint); }
.daily.ok span { color: var(--muted); text-decoration: line-through; }

.miss-btn {
  width: 100%; padding: 18px; border-radius: var(--r); background: var(--grad); color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 10px 26px rgba(243,139,168,.4); margin-bottom: 14px; position: relative; overflow: hidden;
}
.miss-btn small { display: block; font-weight: 700; font-size: 12.5px; opacity: .9; margin-top: 2px; }
.miss-btn:active { transform: scale(.98); }
.heart-burst { position: fixed; z-index: 100; pointer-events: none; font-size: 26px; animation: burst 1.2s ease-out forwards; }
@keyframes burst { from { opacity: 1; transform: translate(0,0) scale(.6); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3); } }

.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: #FFF0EA; border: 1.5px solid #FFD9C8; margin-bottom: 14px; font-weight: 800; width: 100%; text-align: left; }
.banner .e { font-size: 26px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: #FFF6F2; border-radius: 16px; padding: 12px 4px; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 900; color: var(--accent); }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 800; }

.moods { display: flex; justify-content: space-between; gap: 6px; }
.moods button { flex: 1; padding: 8px 0; border-radius: 14px; font-size: 24px; background: #FFF6F2; transition: .15s; }
.moods button.on { background: var(--accent-soft); transform: scale(1.08); box-shadow: inset 0 0 0 2px var(--pink); }

.question { font-size: 18px; font-weight: 900; line-height: 1.3; margin-bottom: 12px; }
.answer { background: #FFF6F2; border-radius: 16px; padding: 12px 14px; margin-top: 8px; }
.answer .who { font-size: 12px; font-weight: 900; color: var(--accent); margin-bottom: 3px; }
.answer.locked { color: var(--muted); font-style: italic; }

/* ── Идеи ── */
.idea-card { text-align: center; padding: 26px 20px; background: linear-gradient(160deg, #FFF 0%, #FFEFF3 100%); }
.idea-card .e { font-size: 54px; margin-bottom: 8px; }
.idea-card h2 { font-size: 22px; margin-bottom: 8px; }
.idea-card p { color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.pop { animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.94); opacity: .4; } to { transform: scale(1); opacity: 1; } }

/* ── Свайпы ── */
.deck { position: relative; height: 330px; margin-bottom: 14px; }
.swipe-card {
  position: absolute; inset: 0; border-radius: 26px; background: #fff; box-shadow: 0 10px 30px rgba(233,118,143,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px;
  touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .3s, opacity .3s;
  border: 1px solid var(--line);
}
.swipe-card.under { transform: scale(.94) translateY(14px); opacity: .7; }
.swipe-card .kind { position: absolute; top: 16px; left: 16px; }
.swipe-card .e { font-size: 70px; margin-bottom: 12px; }
.swipe-card h2 { font-size: 23px; margin-bottom: 8px; }
.swipe-card p { color: var(--muted); margin: 0; line-height: 1.45; }
.stamp { position: absolute; top: 22px; padding: 6px 12px; border-radius: 12px; font-weight: 900; font-size: 20px; border: 3px solid; opacity: 0; }
.stamp.like { right: 18px; color: var(--mint); transform: rotate(12deg); }
.stamp.nope { left: 18px; color: #E07B7B; transform: rotate(-12deg); top: 54px; }
.swipe-btns { display: flex; justify-content: center; gap: 26px; margin-bottom: 18px; }
.swipe-btns button { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 28px; }
.swipe-btns .yes { background: var(--grad); color: #fff; }
.match-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(255, 210, 220, .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s;
}
.match-box { background: #fff; border-radius: 28px; padding: 30px 26px; text-align: center; width: min(86vw, 360px); box-shadow: 0 20px 50px rgba(233,118,143,.3); animation: pop .4s; }
.match-box h1 { font-size: 34px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes fade { from { opacity: 0; } }

/* ── Колесо ── */
.wheel-box { position: relative; width: 300px; height: 300px; margin: 6px auto 18px; }
.wheel-rot { width: 100%; height: 100%; transition: transform 4.6s cubic-bezier(.17,.67,.12,1); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 24px solid var(--accent); z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
.wheel-center { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: #5B3A44; color: #fff; display: grid; place-items: center; font-size: 26px; border: 5px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.roulette { font-size: 24px; font-weight: 900; text-align: center; padding: 28px 10px; min-height: 100px; display: grid; place-items: center; }
.result-title { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 6px; }

/* ── Шторка ── */
.sheet-bg { position: fixed; inset: 0; background: rgba(91, 58, 68, .35); z-index: 100; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; background: var(--bg); border-radius: 28px 28px 0 0;
  max-height: 90vh; overflow-y: auto; padding: 10px 18px calc(22px + var(--safe-b)); animation: slideUp .28s cubic-bezier(.2,.8,.2,1);
  max-width: 560px; margin: 0 auto;
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #EBCFC8; margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-size: 22px; }
.close-x { width: 36px; height: 36px; border-radius: 50%; background: #F7E4DE; font-size: 18px; color: var(--ink); }
@keyframes slideUp { from { transform: translateY(100%); } }

/* ── Тост ── */
#toast {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -200%); visibility: hidden; z-index: 300; background: #5B3A44; color: #fff;
  padding: 11px 18px; border-radius: 16px; font-weight: 800; transition: transform .3s; max-width: 90vw; text-align: center;
}
#toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ── Открытки ── */
.postcard { position: relative; border-radius: 22px; padding: 30px 24px; min-height: 190px; display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; }
.postcard .pc-text { position: relative; z-index: 2; font-size: 18px; font-weight: 800; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.postcard .pc-from { position: relative; z-index: 2; margin-top: 14px; font-size: 13px; font-weight: 800; opacity: .75; }
.postcard .deco { position: absolute; font-size: 24px; opacity: .85; z-index: 1; }
.pc-hearts { background: linear-gradient(160deg, #FFD5DF, #FFC2CF); color: #8A3B52; }
.pc-bear { background: linear-gradient(160deg, #FFE7D6, #FFD1B8); color: #7A4A35; }
.pc-stars { background: linear-gradient(160deg, #5E5A9B, #9A7FC4); color: #fff; }
.pc-invite { background: #FFFBF4; color: #6B4A3A; border: 2px dashed #F2B9A6; }
.pc-invite .pc-head { position: relative; z-index: 2; font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; }
.pc-bear .bear-mini { position: absolute; right: -8px; bottom: -14px; width: 92px; opacity: .95; z-index: 1; }
.design-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.design-pick button { height: 58px; border-radius: 14px; font-size: 24px; border: 3px solid transparent; }
.design-pick button.on { border-color: var(--accent); }

.envelope { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, #FFE7EC, #FFEDE3); margin-bottom: 10px; width: 100%; text-align: left; }
.envelope .e { font-size: 34px; }
.envelope.locked { background: #F7EFED; }

.coupon {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; margin-bottom: 10px;
  background: linear-gradient(135deg, #FFF0E8, #FFE4EB); border: 2px dashed #F5B6A3;
}
.coupon .e { font-size: 32px; }
.coupon.used { opacity: .55; filter: grayscale(.6); }

/* ── Меню «Ещё» ── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: #fff; border-radius: var(--r); padding: 18px 16px; text-align: left; box-shadow: var(--shadow); position: relative; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(245,220,213,.6); }
.tile .e { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: #FFF0EA; }
.tile b { font-size: 16px; font-weight: 900; margin-top: 12px; display: block; }
.tile small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.tile .badge { top: 12px; right: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; margin-bottom: 10px; padding: 4px 0; }
.budget-bar { height: 10px; border-radius: 99px; background: #F3E7E4; overflow: hidden; margin: 8px 0 4px; }
.budget-bar > div { height: 100%; background: var(--mint); border-radius: 99px; }
.budget-bar.over > div { background: #E07B7B; }
.who-chip { white-space: nowrap; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #F5EEEC; color: var(--muted); }
.who-chip.me { background: #FFE3D6; color: #D9785A; }
.who-chip.p { background: #FBE0EA; color: var(--accent); }
.gate { text-align: center; padding: 60px 24px; }
.gate .bear-svg { width: 160px; margin: 0 auto 16px; }

/* ── Общее фото ── */
.photo-card { position: relative; border-radius: 26px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 10px 28px rgba(233,118,143,.22); border: 4px solid #fff; background: #fff; }
.photo-card img { display: block; width: 100%; height: 180px; object-fit: cover; }
.photo-edit { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.88); font-size: 18px; box-shadow: var(--shadow); }

/* ── Календарь ── */
.cal .icon-btn { font-size: 22px; font-weight: 900; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.cal-cell { aspect-ratio: 1 / 1.08; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; background: #FFF8F5; min-width: 0; }
.cal-cell .n { font-size: 14px; font-weight: 800; line-height: 1; }
.cal-cell .dots { font-size: 10.5px; line-height: 1.2; margin-top: 3px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.cal-cell.out { opacity: .38; }
.cal-cell.today .n { color: var(--accent); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--pink); }
.cal-cell.sel { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(243,139,168,.35); }
.cal-cell.sel .n { color: #fff; }
.ev-item { cursor: pointer; }
.item-emoji.today { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--pink); }
.toggle { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 700; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }

.photo-label { display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.file-hidden { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }

/* ── Окно подтверждения и загрузки ── */
.ask-bg { position: fixed; inset: 0; z-index: 500; background: rgba(91,58,68,.4); display: grid; place-items: center; padding: 24px; animation: fade .15s; }
.ask-box { background: #fff; border-radius: 24px; padding: 22px 18px 18px; width: min(100%, 340px); box-shadow: 0 20px 50px rgba(91,58,68,.25); animation: pop .2s; }
.ask-text { font-weight: 800; font-size: 16.5px; text-align: center; margin: 4px 6px 18px; line-height: 1.4; }
.btn.danger { color: #D0505F; }
.photo-card { cursor: pointer; }
.photo-edit { width: auto; height: auto; border-radius: 99px; padding: 8px 14px; font-size: 13.5px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
