:root {
  --paper: #f4efe7;
  --paper-light: #fffaf3;
  --ink: #24131b;
  --muted: #776b6d;
  --line: rgba(36, 19, 27, 0.13);
  --wine: #651735;
  --wine-dark: #421023;
  --coral: #ef5a50;
  --coral-dark: #d9423a;
  --gold: #f2c453;
  --gold-light: #ffe59a;
  --blush: #f4c4cd;
  --powder: #c9dcf3;
  --mint: #b9ddcd;
  --shadow-soft: 0 26px 70px rgba(64, 27, 42, .12);
  --shadow-card: 0 16px 40px rgba(57, 30, 40, .09);
  --radius: 28px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 2%, rgba(242,196,83,.22), transparent 24rem),
    radial-gradient(circle at 97% 22%, rgba(244,196,205,.28), transparent 28rem),
    var(--paper);
  font-family: Manrope, system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image: radial-gradient(rgba(36,19,27,.12) .65px, transparent .65px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.grain { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .18; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
a { color: inherit; }
.site-header, main, footer { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 12; }
.brand { display: inline-flex; align-items: baseline; white-space: nowrap; text-decoration: none; font-family: Prata, Georgia, serif; font-size: 25px; letter-spacing: -.08em; }
.brand b { color: var(--coral); }
.brand-small { font-size: 20px; }
.header-actions { display: flex; gap: 8px; }
.button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-dark { color: #fff; background: var(--ink); box-shadow: 0 9px 22px rgba(36,19,27,.18); }
.button-dark:hover { background: var(--wine); box-shadow: 0 12px 30px rgba(101,23,53,.23); }
.button-primary { color: #fff; background: var(--coral); box-shadow: 0 11px 25px rgba(239,90,80,.25); }
.button-primary:hover { background: var(--coral-dark); box-shadow: 0 14px 32px rgba(239,90,80,.3); }
.button-ghost { color: var(--ink); background: rgba(255,250,243,.68); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); }
.button-danger { color: #fff; background: var(--coral); }
.plus { font-size: 24px; line-height: 0; margin-top: -2px; font-weight: 500; }
.public-only { display: none; }

.theme-dialog { width: 100%; height: 100%; }
.theme-dialog[open] { display: grid; place-items: center; padding: 20px; }
.theme-dialog::backdrop { background: rgba(27,11,18,.76); backdrop-filter: blur(10px); }
.theme-card { width: min(720px, 100%); max-height: 94vh; padding: 38px 42px; overflow-y: auto; text-align: center; color: var(--ink); background: var(--paper-light); border-radius: 34px; box-shadow: 0 38px 110px rgba(18,5,11,.42); }
.theme-kicker { color: var(--coral-dark); text-transform: uppercase; letter-spacing: .16em; font-size: 9px; font-weight: 800; }
.theme-card h2 { margin: 8px auto 10px; font-family: Prata, Georgia, serif; font-size: clamp(32px, 5vw, 47px); font-weight: 400; line-height: 1.12; letter-spacing: -.05em; }
.theme-card > p { margin: 0 auto 22px; color: var(--muted); font-size: 13px; }
.onboarding-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.onboarding-fields .field { margin-bottom: 18px; text-align: left; }
.onboarding-theme { margin: 0; padding: 0; border: 0; }
.onboarding-theme legend { margin-bottom: 10px; text-align: left; font-size: 12px; font-weight: 800; }
.theme-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.theme-choice { padding: 12px 12px 16px; display: block; position: relative; text-align: left; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 22px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.theme-choice:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-card); }
.theme-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.theme-choice:has(input:checked) { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,90,80,.13), var(--shadow-card); }
.theme-choice strong, .theme-choice small { display: block; padding-inline: 5px; }
.theme-choice strong { margin-top: 15px; font-family: Prata, Georgia, serif; font-size: 23px; font-weight: 400; }
.theme-choice small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.theme-preview { height: 108px; display: block; overflow: hidden; position: relative; border-radius: 15px; }
.theme-preview::before { content: ""; position: absolute; width: 95px; height: 95px; right: 20px; top: 21px; border: 1px dashed rgba(255,255,255,.5); border-radius: 50%; }
.theme-preview::after { content: "✦"; position: absolute; right: 50px; top: 51px; color: #fff; font-size: 27px; }
.theme-preview i { position: absolute; border-radius: 99px; }
.theme-preview i:nth-child(1) { width: 90px; height: 13px; left: -11px; bottom: 27px; transform: rotate(18deg); }
.theme-preview i:nth-child(2) { width: 13px; height: 26px; left: 58px; top: 20px; transform: rotate(-24deg); }
.theme-preview i:nth-child(3) { width: 12px; height: 12px; left: 118px; top: 37px; }
.theme-choice-masculine .theme-preview { background: linear-gradient(135deg, #263b4a, #07131d); }
.theme-choice-masculine .theme-preview i { background: #c8a85c; }
.theme-choice-feminine .theme-preview { background: linear-gradient(135deg, #7b2949, #431023); }
.theme-choice-feminine .theme-preview i { background: #ef5a50; }
.onboarding-error { min-height: 18px; margin: 9px 0 5px; text-align: center; }
.onboarding-submit { width: 100%; }

.hero { min-height: 500px; padding: 70px 62px 62px; display: grid; grid-template-columns: minmax(0, 1fr) 244px; align-items: center; gap: 54px; position: relative; isolation: isolate; overflow: hidden; color: #fff8ee; background: radial-gradient(circle at 88% 11%, rgba(242,196,83,.2), transparent 20rem), linear-gradient(135deg, #742342 0%, var(--wine) 48%, var(--wine-dark) 100%); border-radius: 42px; box-shadow: var(--shadow-soft); }
.hero::before { content: ""; position: absolute; width: 330px; height: 330px; right: -80px; top: -106px; z-index: -1; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018); }
.hero::after { content: "✶"; position: absolute; left: 47%; bottom: 28px; color: var(--gold); font-size: 32px; transform: rotate(17deg); animation: twinkle 2.8s ease-in-out infinite; }
.hero-copy { max-width: 770px; position: relative; z-index: 2; }
.eyebrow { margin-bottom: 22px; display: flex; align-items: center; gap: 11px; color: rgba(255,248,238,.75); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 800; }
.eyebrow > span:first-child { width: 31px; height: 2px; background: var(--gold); }
h1 { margin: 0; max-width: 810px; font-family: Prata, Georgia, serif; font-size: clamp(62px, 8vw, 112px); font-weight: 400; line-height: .94; letter-spacing: -.07em; text-wrap: balance; }
.accent { display: inline-block; color: var(--gold); transform: rotate(7deg); }
.hero-copy > p { max-width: 640px; margin: 28px 0 0; color: rgba(255,248,238,.76); font-size: clamp(15px, 1.55vw, 18px); line-height: 1.72; }
.hero-signature { width: fit-content; margin-top: 32px; display: flex; align-items: center; gap: 12px; color: var(--gold-light); transform: rotate(-3deg); }
.hero-signature span { font-family: Prata, Georgia, serif; font-size: 18px; font-style: italic; letter-spacing: .02em; }
.hero-signature b { font-size: 14px; }
.hero-ribbon { position: absolute; z-index: -1; width: 730px; right: -125px; bottom: -12px; opacity: .7; transform: rotate(-2deg); }
.hero-ribbon path { fill: none; stroke: var(--coral); stroke-width: 24; stroke-linecap: round; }
.hero-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-confetti i { position: absolute; width: 9px; height: 22px; border-radius: 4px; background: var(--gold); transform: rotate(22deg); animation: float 2.4s ease-in-out infinite alternate; }
.hero-confetti i:nth-child(1) { left: 5%; top: 11%; transform: rotate(-28deg); }
.hero-confetti i:nth-child(2) { left: 29%; top: 8%; width: 12px; height: 12px; border-radius: 50%; background: var(--blush); animation-delay: -.9s; }
.hero-confetti i:nth-child(3) { left: 50%; top: 21%; height: 8px; width: 24px; background: var(--coral); transform: rotate(44deg); animation-delay: -.3s; }
.hero-confetti i:nth-child(4) { left: 72%; top: 13%; height: 14px; animation-delay: -1.2s; }
.hero-confetti i:nth-child(5) { left: 18%; bottom: 10%; width: 12px; height: 12px; border-radius: 50%; background: var(--powder); }
.hero-confetti i:nth-child(6) { left: 72%; bottom: 16%; width: 13px; height: 13px; border-radius: 50%; background: var(--powder); animation-delay: -.6s; }
.hero-confetti i:nth-child(7) { right: 4%; bottom: 29%; width: 8px; height: 19px; background: var(--blush); }
.hero-confetti i:nth-child(8) { left: 38%; bottom: 27%; width: 8px; height: 17px; background: var(--blush); transform: rotate(19deg); animation-delay: -1.4s; }
.birthday-card { width: 244px; aspect-ratio: 1; padding: 37px 30px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; color: var(--ink); background: var(--gold); border-radius: 50%; transform: rotate(3deg); box-shadow: 11px 13px 0 rgba(27,7,16,.18); }
.birthday-card::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(36,19,27,.33); border-radius: 50%; }
.birthday-card::after { content: ""; position: absolute; inset: 32px; z-index: -1; background: rgba(255,255,255,.08); border-radius: 50%; }
.birthday-icon { position: absolute; right: 37px; top: 35px; font-size: 22px; }
.birthday-card > span { margin-bottom: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.birthday-card strong { display: block; font-family: Prata, Georgia, serif; font-weight: 400; font-size: 25px; line-height: 1.15; }
.birthday-card small { margin-top: 11px; color: rgba(36,19,27,.58); font-size: 10px; font-weight: 700; }

.toolbar { margin-top: 68px; padding: 0 0 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.toolbar h2 { margin: 0 0 7px; font-family: Prata, Georgia, serif; font-weight: 400; font-size: 38px; letter-spacing: -.05em; }
.toolbar h2 span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; vertical-align: top; color: #fff; background: var(--wine); border-radius: 99px; font-family: Manrope, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.wish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px 0 72px; }
.wish-card { min-width: 0; overflow: visible; position: relative; background: var(--paper-light); border: 1px solid rgba(36,19,27,.08); border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.wish-card::after { content: ""; position: absolute; inset: 10px -7px -8px 9px; z-index: -1; background: var(--blush); border-radius: var(--radius); transform: rotate(1.2deg); }
.wish-card:nth-child(3n+2)::after { background: var(--gold); transform: rotate(-1.5deg); }
.wish-card:nth-child(3n+3)::after { background: var(--powder); transform: rotate(1deg); }
.wish-card:hover { transform: translateY(-8px) rotate(-.35deg); box-shadow: 0 26px 58px rgba(57,30,40,.15); }
.wish-image-wrap { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: #f2e9e3; border-radius: 27px 27px 0 0; }
.wish-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.wish-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg, #f1c5ce 0%, #eadced 48%, #c9dcf3 100%); }
.wish-placeholder::before, .wish-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(36,19,27,.16); border-radius: 50%; }
.wish-placeholder::before { width: 190px; height: 190px; left: -67px; top: -94px; box-shadow: 0 0 0 20px rgba(255,255,255,.08); }
.wish-placeholder::after { width: 145px; height: 145px; right: -39px; bottom: -70px; box-shadow: 0 0 0 18px rgba(255,255,255,.09); }
.wish-placeholder span { position: relative; font-family: Prata, Georgia, serif; font-size: 55px; color: var(--wine); transform: rotate(-8deg); }
.wish-placeholder span::after { content: "✦"; position: absolute; color: var(--gold); font-size: 18px; right: -28px; top: -16px; }
.priority-badge { position: absolute; left: 15px; top: 15px; padding: 8px 12px; color: var(--ink); background: rgba(255,250,243,.9); border: 1px solid rgba(36,19,27,.08); border-radius: 99px; backdrop-filter: blur(9px); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 6px 14px rgba(36,19,27,.08); }
.priority-badge[data-priority="Мечтаю"] { background: var(--gold); }
.priority-badge[data-priority="Очень хочу"] { color: #7a1835; background: var(--blush); }
.card-menu { position: absolute; top: 12px; right: 12px; }
.menu-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; overflow: hidden; appearance: none; border: 1px solid rgba(36,19,27,.08); border-radius: 50%; color: var(--ink); background: rgba(255,250,243,.92); cursor: pointer; box-shadow: 0 7px 18px rgba(0,0,0,.08); }
.menu-button::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: -7px 0 currentColor, 7px 0 currentColor; }
.menu-popover { position: absolute; right: 0; top: 47px; z-index: 3; width: 135px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 16px 35px rgba(36,19,27,.16); }
.menu-popover button { width: 100%; padding: 9px 10px; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; }
.menu-popover button:hover { background: #f1e8df; }
.menu-popover .danger-text { color: var(--coral-dark); }
.wish-card-body { padding: 23px 22px 24px; }
.wish-card h3 { min-height: 52px; margin: 0 0 22px; font-family: Prata, Georgia, serif; font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: -.03em; overflow-wrap: anywhere; }
.wish-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wish-price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.shop-link { position: relative; color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }
.shop-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.shop-link:hover::after { transform: scaleX(1); transform-origin: left; }
.shop-link span { color: var(--coral); }
.reserve-button { width: 100%; min-height: 43px; margin-top: 18px; align-items: center; justify-content: center; color: #fff; background: var(--wine); border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.reserve-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--coral); }
.reserve-button:disabled { color: var(--ink); background: var(--gold); cursor: default; }
.reserve-button.is-cancel { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(25,42,52,.22); }
.reserve-button.is-cancel:hover:not(:disabled) { color: #fff; background: var(--coral-dark); box-shadow: none; }
.wish-card.is-reserved .wish-image, .wish-card.is-reserved .wish-placeholder { filter: saturate(.45); opacity: .72; }

.empty-state { padding: 56px 20px 88px; text-align: center; }
.empty-art { width: 126px; height: 126px; margin: 0 auto 28px; display: grid; place-items: center; position: relative; overflow: hidden; color: var(--wine); background: var(--gold); border-radius: 48% 52% 45% 55%; transform: rotate(-6deg); box-shadow: 9px 10px 0 var(--blush); }
.empty-art::before, .empty-art::after { content: ""; position: absolute; background: var(--wine); opacity: .14; }
.empty-art::before { width: 22px; height: 145px; }
.empty-art::after { width: 145px; height: 22px; }
.empty-art span { position: relative; z-index: 2; font-family: Prata, Georgia, serif; font-size: 54px; transform: rotate(6deg); }
.empty-state h2 { margin: 0 0 10px; font-family: Prata, Georgia, serif; font-size: 35px; font-weight: 400; letter-spacing: -.04em; }
.empty-state p { max-width: 430px; margin: 0 auto 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.prototype-note { margin: 0 0 70px; padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px; color: var(--muted); background: rgba(255,250,243,.56); border: 1px dashed rgba(36,19,27,.19); border-radius: 18px; font-size: 12px; line-height: 1.6; }
.prototype-note p { margin: 0; }
.prototype-note strong { color: var(--ink); }
.note-icon { flex: 0 0 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--wine); border-radius: 50%; font-family: Prata, Georgia, serif; font-weight: 700; }
footer { min-height: 112px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

dialog { max-width: none; max-height: none; padding: 0; background: transparent; border: 0; }
dialog::backdrop { background: rgba(30,8,18,.65); backdrop-filter: blur(7px); }
.modal { width: 100%; height: 100%; }
.modal[open] { display: grid; place-items: center; padding: 20px; }
.modal-card { width: min(690px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 31px; background: var(--paper-light); border: 1px solid rgba(255,255,255,.55); border-radius: 30px; box-shadow: 0 34px 90px rgba(30,8,18,.3); }
.modal-card-small { width: min(520px, 100%); }
.modal-head { margin-bottom: 25px; display: flex; align-items: flex-start; justify-content: space-between; }
.modal-head h2 { margin: 4px 0 0; font-family: Prata, Georgia, serif; font-size: 31px; font-weight: 400; letter-spacing: -.04em; }
.modal-kicker { color: var(--coral-dark); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; font-weight: 800; }
.icon-button { width: 42px; height: 42px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 25px; line-height: 1; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1.45fr; gap: 14px; }
.field { display: block; margin-bottom: 18px; }
.field > span, .field-label, .priority-field legend { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.field b { color: var(--coral-dark); }
.field input, .field textarea { width: 100%; padding: 14px 15px; resize: vertical; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; outline: none; transition: border-color .18s, box-shadow .18s; }
.field input:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(101,23,53,.09); }
.field-error { min-height: 15px; margin-top: 5px; display: block; color: var(--coral-dark); font-size: 10px; }
.priority-field { margin: 0 0 21px; padding: 0; border: 0; }
.priority-options { display: flex; gap: 8px; }
.priority-options input { position: absolute; opacity: 0; pointer-events: none; }
.priority-options span { padding: 10px 14px; display: block; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 800; cursor: pointer; }
.priority-options input:checked + span { color: #fff; background: var(--wine); border-color: var(--wine); }
.settings-theme { margin: 0; padding: 0; border: 0; }
.settings-theme legend { margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.settings-theme > div { display: flex; gap: 8px; }
.settings-theme input { position: absolute; opacity: 0; pointer-events: none; }
.settings-theme span { padding: 10px 14px; display: block; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 800; cursor: pointer; }
.settings-theme input:checked + span { color: #fff; background: var(--wine); border-color: var(--wine); }
.image-drop { min-height: 145px; display: block; overflow: hidden; position: relative; background: rgba(255,255,255,.55); border: 1px dashed rgba(36,19,27,.28); border-radius: 16px; cursor: pointer; }
.image-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.image-drop > div { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.image-drop strong { font-size: 12px; }
.image-drop small { color: var(--muted); font-size: 10px; }
.upload-icon { width: 35px; height: 35px; margin-bottom: 5px; display: grid; place-items: center; background: var(--gold); border-radius: 50%; font-weight: 800; }
.image-drop img { width: 100%; height: 220px; object-fit: cover; display: block; }
.image-drop img[hidden] { display: none; }
.remove-image { margin-top: 8px; padding: 0; color: var(--coral-dark); background: none; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.modal-actions { margin-top: 26px; display: flex; justify-content: flex-end; gap: 9px; }
.confirm-dialog { width: 100%; height: 100%; }
.confirm-dialog[open] { display: grid; place-items: center; padding: 20px; }
.confirm-card { width: min(390px, 100%); padding: 31px; text-align: center; background: var(--paper-light); border-radius: 27px; box-shadow: 0 34px 90px rgba(30,8,18,.3); }
.confirm-icon { width: 58px; height: 58px; margin: 0 auto 17px; display: grid; place-items: center; color: var(--coral-dark); background: var(--blush); border-radius: 50%; font-size: 28px; }
.confirm-card h2 { margin: 0 0 8px; font-family: Prata, Georgia, serif; font-size: 27px; font-weight: 400; }
.confirm-card p { margin: 0; color: var(--muted); }
.confirm-card .modal-actions { justify-content: center; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 24px; padding: 11px 18px 11px 12px; display: flex; align-items: center; gap: 10px; color: #fff; background: var(--ink); border-radius: 999px; box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transform: translate(-50%, 30px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast span { width: 25px; height: 25px; display: grid; place-items: center; color: var(--ink); background: var(--gold); border-radius: 50%; font-weight: 800; }
.toast p { margin: 0; font-size: 12px; font-weight: 800; white-space: nowrap; }
.public-mode .owner-only { display: none !important; }
.public-mode .public-only { display: inline-flex; }

html[data-theme="masculine"] {
  --paper: #e9ecec;
  --paper-light: #f8faf9;
  --ink: #0d1b25;
  --muted: #627078;
  --line: rgba(13,27,37,.15);
  --wine: #1e3545;
  --wine-dark: #07141d;
  --coral: #d8843f;
  --coral-dark: #bd642e;
  --gold: #c9aa60;
  --gold-light: #eadcae;
  --blush: #93a7b2;
  --powder: #b7cbd2;
  --mint: #98b5ab;
}
html[data-theme="masculine"] body { background: radial-gradient(circle at 5% 2%, rgba(201,170,96,.2), transparent 24rem), radial-gradient(circle at 97% 22%, rgba(86,116,132,.2), transparent 28rem), var(--paper); }
html[data-theme="masculine"] .hero { background: radial-gradient(circle at 88% 11%, rgba(201,170,96,.18), transparent 20rem), linear-gradient(135deg, #2b4454 0%, #172d3b 48%, #07141d 100%); border-radius: 25px; }
html[data-theme="masculine"] .hero-ribbon path { stroke: #b9683b; }
html[data-theme="masculine"] .hero-confetti i:nth-child(2), html[data-theme="masculine"] .hero-confetti i:nth-child(8) { background: #93a7b2; }
html[data-theme="masculine"] .birthday-card { border-radius: 20px; transform: rotate(2deg); background: #c9aa60; box-shadow: 11px 13px 0 rgba(0,0,0,.22); }
html[data-theme="masculine"] .birthday-card::before, html[data-theme="masculine"] .birthday-card::after { border-radius: 13px; }
html[data-theme="masculine"] .wish-card, html[data-theme="masculine"] .wish-card::after { border-radius: 16px; }
html[data-theme="masculine"] .wish-image-wrap { border-radius: 15px 15px 0 0; }
html[data-theme="masculine"] .wish-placeholder { background: linear-gradient(145deg, #a9bac1 0%, #d7dfe1 47%, #819aa7 100%); }
html[data-theme="masculine"] .empty-art { border-radius: 18px; transform: rotate(-3deg); background: var(--gold); box-shadow: 9px 10px 0 #93a7b2; }
html[data-theme="masculine"] .theme-kicker { color: var(--coral-dark); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 205px; min-height: 460px; padding: 55px 44px; gap: 32px; }
  .birthday-card { width: 205px; padding: 31px 25px; }
  .birthday-card strong { font-size: 21px; }
  .wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 24px, 1200px); }
  .site-header { height: 76px; }
  .brand { font-size: clamp(18px, 5.8vw, 23px); }
  .header-actions { gap: 7px; }
  .header-actions .button { width: 44px; min-height: 44px; padding: 0; }
  .header-actions .button span { display: none; }
  .public-only { min-height: 42px; padding-inline: 16px; }
  .theme-dialog[open] { align-items: end; padding: 0; }
  .theme-card { width: 100%; padding: 28px 18px 24px; border-radius: 28px 28px 0 0; }
  .theme-card h2 { font-size: 32px; }
  .onboarding-fields { grid-template-columns: 1fr; gap: 0; }
  .onboarding-fields .field { margin-bottom: 13px; }
  .theme-choice-grid { gap: 9px; }
  .theme-choice { padding: 9px 9px 16px; border-radius: 18px; }
  .theme-preview { height: 82px; }
  .theme-choice strong { font-size: 18px; }
  .theme-choice small { min-height: 30px; font-size: 9px; }
  .hero { min-height: 610px; padding: 46px 25px 28px; grid-template-columns: 1fr; align-content: start; gap: 29px; border-radius: 30px; box-shadow: 0 8px 0 #d8c9bb, 0 22px 56px rgba(64,27,42,.15); }
  .hero::before { width: 240px; height: 240px; right: -105px; top: -90px; }
  .hero::after { left: auto; right: 24px; bottom: 24px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(51px, 15vw, 74px); line-height: .97; }
  .hero-copy > p { margin-top: 20px; font-size: 14px; line-height: 1.65; }
  .hero-signature { margin-top: 22px; }
  .hero-signature span { font-size: 15px; }
  .hero-ribbon { width: 520px; right: -220px; bottom: 2px; opacity: .62; }
  .hero-ribbon path { stroke-width: 20; }
  .birthday-card { width: 185px; margin-left: auto; padding: 29px 25px; transform: rotate(3deg); }
  .birthday-card strong { font-size: 20px; }
  .toolbar { margin-top: 52px; align-items: flex-end; }
  .toolbar h2 { font-size: 31px; }
  .toolbar p { display: none; }
  .toolbar .button { min-height: 43px; padding-inline: 14px; font-size: 11px; }
  .wish-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 23px; }
  .wish-card { min-height: 168px; display: grid; grid-template-columns: 42% 58%; border-radius: 22px; }
  .wish-card::after { inset: 8px -5px -6px 8px; border-radius: 22px; }
  .wish-image-wrap { min-height: 168px; aspect-ratio: auto; border-radius: 21px 0 0 21px; }
  .wish-card-body { min-width: 0; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; }
  .wish-card h3 { min-height: 0; margin-bottom: 12px; font-size: 17px; line-height: 1.3; }
  .wish-card-bottom { padding-top: 12px; display: block; }
  .wish-price { margin-bottom: 8px; display: block; font-size: 12px; }
  .shop-link { font-size: 11px; }
  .priority-badge { left: 8px; top: 8px; padding: 6px 8px; font-size: 8px; }
  .card-menu { top: 7px; right: 7px; }
  .menu-button { width: 35px; height: 35px; }
  .empty-state { padding: 48px 16px 72px; }
  .empty-art { width: 108px; height: 108px; }
  .empty-state h2 { font-size: 29px; }
  .prototype-note { margin-bottom: 50px; }
  footer { min-height: 88px; }
  footer > span { display: none; }
  .modal[open] { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: 94vh; padding: 24px 18px 28px; border-radius: 26px 26px 0 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .priority-options { overflow-x: auto; padding-bottom: 4px; }
  .priority-options span { white-space: nowrap; }
  .modal-actions .button { flex: 1; padding-inline: 12px; }
}

@keyframes float { to { translate: 0 10px; rotate: 10deg; } }
@keyframes twinkle { 50% { transform: scale(.72) rotate(22deg); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
