:root { color-scheme: light; --bg:#fff8f1; --surface:#fffdf9; --ink:#2b2420; --muted:#786c64; --accent:#ed6d5a; --accent-soft:#ffe1da; --line:#eadfd6; --green:#557a60; font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:#efe7df; color:var(--ink); }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.app-shell { width:min(100%,480px); min-height:100dvh; margin:auto; background:var(--bg); position:relative; padding:env(safe-area-inset-top) 20px calc(94px + env(safe-area-inset-bottom)); }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:22px 0 18px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:27px; letter-spacing:-.7px; }
h2 { font-size:22px; letter-spacing:-.4px; }
h3 { font-size:17px; }
.eyebrow { color:var(--accent); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px; }
.icon-button { width:44px; height:44px; border:1px solid var(--line); background:var(--surface); border-radius:50%; color:var(--ink); font-size:20px; }
.hero { min-height:154px; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:24px; border-radius:26px; background:linear-gradient(145deg,#fff0d7,#ffd8cc); box-shadow:0 12px 35px rgba(100,55,35,.08); }
.hero.memorial { background:linear-gradient(145deg,#ece8e3,#ddd7d1); box-shadow:none; }
.hero.anniversary { background:linear-gradient(145deg,#ffecef,#ffd9e1); }
.hero h2 { font-size:26px; margin:7px 0; }
.hero p:last-child { color:var(--muted); font-size:14px; line-height:1.45; }
.hero-emoji { font-size:56px; filter:drop-shadow(0 8px 10px rgba(95,50,30,.12)); }
.section-heading { display:flex; justify-content:space-between; align-items:center; margin:28px 2px 14px; }
.text-button { border:0; background:transparent; color:var(--accent); font-weight:700; padding:8px 0 8px 12px; }
.people-list { display:grid; gap:11px; }
.person-card,.wish-card { border:1px solid var(--line); background:var(--surface); border-radius:20px; padding:16px; }
.person-card { display:flex; align-items:center; gap:13px; width:100%; text-align:left; color:inherit; }
.avatar { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; border-radius:17px; background:var(--accent-soft); font-size:22px; font-weight:700; color:#a34235; }
.person-info { min-width:0; flex:1; }
.person-info strong { display:block; font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.person-info span { display:block; color:var(--muted); font-size:13px; margin-top:3px; }
.days-badge { color:var(--green); background:#e8f1e8; padding:7px 9px; border-radius:12px; font-weight:700; font-size:12px; white-space:nowrap; }
.empty-state { text-align:center; padding:45px 24px; }
.empty-state>span { display:block; font-size:52px; margin-bottom:12px; }
.empty-state p { color:var(--muted); margin:7px 0 20px; line-height:1.45; }
.primary-button,.secondary-button,.danger-button { border:0; border-radius:14px; padding:13px 17px; font-weight:700; }
.primary-button { color:white; background:var(--accent); }
.secondary-button { color:var(--ink); background:#f4ece5; }
.danger-button { color:#b34238; background:#ffebe8; margin-right:auto; }
.hidden { display:none!important; }
.view { display:none; }
.view.active { display:block; }
.wishes-heading { margin-top:6px; }
.calendar-header { display:flex; align-items:center; justify-content:space-between; text-align:center; margin:8px 0 20px; }
.calendar-weekdays,.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.calendar-weekdays { color:var(--muted); text-align:center; font-size:12px; margin-bottom:7px; }
.calendar-day { position:relative; min-height:48px; border:0; border-radius:13px; background:transparent; color:var(--ink); display:grid; place-items:center; padding:4px; }
.calendar-day.has-event { background:var(--surface); border:1px solid var(--line); font-weight:700; }
.calendar-day.today { color:var(--accent); box-shadow:inset 0 0 0 2px var(--accent); }
.calendar-day.selected { background:var(--accent); color:white; border-color:var(--accent); }
.calendar-day.selected .event-dot { background:white; }
.calendar-day.empty { visibility:hidden; }
.event-dots { position:absolute; bottom:4px; display:flex; gap:2px; }
.event-dot { width:5px; height:5px; border-radius:50%; background:var(--accent); }
.event-dot.memorial { background:var(--muted); }
.calendar-empty { color:var(--muted); text-align:center; padding:26px 0; }
.smart-picker { border:1px solid var(--line); background:var(--surface); border-radius:20px; padding:16px; margin-bottom:16px; }
.smart-picker label { display:grid; gap:8px; font-size:13px; font-weight:700; }
.smart-picker select { width:100%; border:1px solid var(--line); background:var(--bg); color:var(--ink); border-radius:13px; padding:13px; outline:none; }
.smart-picker p { color:var(--muted); font-size:13px; line-height:1.45; margin-top:10px; }
.picker-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.wish-carousel { touch-action:pan-y; min-height:310px; display:grid; }
.wish-carousel .wish-card { align-self:stretch; display:flex; flex-direction:column; justify-content:space-between; animation:card-in .2s ease; }
.wish-text { font-size:18px!important; line-height:1.6!important; }
.wish-person { color:var(--muted); font-size:13px; margin-top:8px; }
.carousel-controls { display:flex; justify-content:center; align-items:center; gap:18px; margin-top:14px; }
.carousel-controls span { color:var(--muted); font-size:13px; min-width:62px; text-align:center; }
.carousel-arrow { width:48px; height:44px; padding:0; font-size:20px; }
@keyframes card-in { from { opacity:.25; transform:translateX(8px); } to { opacity:1; transform:none; } }
.wish-card p { line-height:1.52; font-size:15px; }
.wish-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:12px; }
.wish-meta span { color:var(--accent); background:var(--accent-soft); padding:5px 9px; border-radius:999px; font-size:12px; font-weight:700; }
.wish-actions { display:flex; gap:8px; margin-top:14px; }
.wish-actions button { flex:1; }
.bottom-nav { position:fixed; z-index:10; bottom:0; left:50%; transform:translateX(-50%); width:min(100%,480px); display:flex; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:rgba(255,253,249,.93); backdrop-filter:blur(18px); border-top:1px solid var(--line); }
.nav-item { flex:1; display:grid; gap:3px; place-items:center; border:0; background:transparent; color:var(--muted); font-size:12px; padding:5px; }
.nav-item span { font-size:20px; }
.nav-item.active { color:var(--accent); font-weight:700; }
dialog { width:min(calc(100% - 28px),440px); border:0; border-radius:26px; padding:0; background:var(--surface); color:var(--ink); box-shadow:0 24px 80px rgba(40,25,18,.25); }
dialog::backdrop { background:rgba(42,30,25,.5); backdrop-filter:blur(3px); }
form { display:grid; gap:15px; padding:22px; }
.dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:3px; }
form label { display:grid; gap:7px; font-size:13px; font-weight:700; }
form input,form select,form textarea { width:100%; border:1px solid var(--line); background:var(--bg); color:var(--ink); border-radius:13px; padding:13px; outline:none; }
form textarea { min-height:78px; resize:vertical; }
.form-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.date-field { display:grid; gap:7px; font-size:13px; font-weight:700; }
.date-parts { display:grid; grid-template-columns:.75fr 1.35fr 1fr; gap:8px; }
.date-parts label { font-size:11px; color:var(--muted); }
.date-parts small { font-weight:400; }
.topic-fieldset { border:1px solid var(--line); border-radius:14px; padding:11px 13px 13px; display:flex; flex-wrap:wrap; gap:10px 14px; }
.topic-fieldset legend { color:var(--muted); font-size:13px; padding:0 5px; }
.topic-fieldset label { display:flex; grid-template-columns:none; align-items:center; gap:6px; font-weight:500; }
.topic-fieldset input { width:auto; box-shadow:none; }
form input:focus,form select:focus,form textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.nav-item b { font:inherit; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.toast { position:fixed; z-index:30; left:50%; bottom:94px; transform:translate(-50%,20px); opacity:0; pointer-events:none; background:var(--ink); color:white; padding:11px 16px; border-radius:13px; font-size:14px; transition:.22s ease; white-space:nowrap; }
.toast.show { opacity:1; transform:translate(-50%,0); }
@media (prefers-color-scheme:dark) { :root { color-scheme:dark; --bg:#1e1a18; --surface:#29231f; --ink:#fff6ef; --muted:#bbaeaa; --line:#403730; --accent-soft:#4d2d29; } body{background:#151210}.hero{background:linear-gradient(145deg,#40342a,#4c2e2a)}.hero.memorial{background:linear-gradient(145deg,#302d2a,#393532)}.hero.anniversary{background:linear-gradient(145deg,#452e35,#4d3039)}.days-badge{background:#293d2f;color:#a8d2b1}.bottom-nav{background:rgba(41,35,31,.94)} }
@media (min-width:700px) { .app-shell { min-height:900px; margin:24px auto; border-radius:34px; overflow:hidden; box-shadow:0 25px 80px rgba(50,30,20,.18); } .bottom-nav { bottom:24px; border-radius:0 0 34px 34px; } }
@media (max-width:370px) { .form-pair,.picker-grid { grid-template-columns:1fr; } .date-parts { grid-template-columns:.8fr 1.2fr; }.date-parts label:last-child{grid-column:1/-1} }
.header-actions{display:flex;gap:8px}.auth-note{color:var(--muted);line-height:1.45;font-size:14px}.text-destructive{color:#b34238}
