:root { --bg:#f6f2ff; --bg2:#eaf3ff; --fg:#1f1537; --muted:#6b6280; --accent:#7c3aed; --accent2:#6366f1; --blue:#3b82f6; --card:#fff; --line:#e8e0f8; --danger:#dc2626; --today:#fdeef0; --shadow:0 4px 14px rgba(99,60,200,.08); }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,sans-serif; background:linear-gradient(180deg,var(--bg),var(--bg2)) fixed; color:var(--fg); min-height:100dvh; display:flex; flex-direction:column; }
body.has-tabs footer { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
main { width:100%; max-width:640px; margin:0 auto; padding:16px; flex:1; }
a { color:var(--accent); }
h1 { font-size:1.5rem; margin:.5rem 0; } h2 { font-size:1.15rem; margin:1.2rem 0 .4rem; }
.top { display:flex; justify-content:center; padding:calc(12px + env(safe-area-inset-top)) 16px 4px; }
.brand { font-size:2.3rem; font-weight:800; text-decoration:none; letter-spacing:-.02em; display:flex; align-items:center; }
.brand span:nth-child(1) { color:#ec4899; } .brand span:nth-child(2) { color:#f97316; } .brand span:nth-child(3) { color:#eab308; } .brand span:nth-child(4) { color:#22c55e; } .brand span:nth-child(5) { color:#06b6d4; } .brand span:nth-child(6) { color:#3b82f6; } .brand span:nth-child(7) { color:#8b5cf6; } .brand span:nth-child(8) { color:#ec4899; } .brand span:nth-child(9) { color:#f97316; } 
.brand .party { color:inherit; }
.brand .party { margin-left:6px; font-size:2rem; }
footer { text-align:center; padding:16px; font-size:.85rem; }
.muted { color:var(--muted); font-size:.9rem; }
.error { background:#fee2e2; color:#991b1b; padding:8px 12px; border-radius:8px; }
.banner { background:var(--card); border:1px solid var(--line); padding:8px 12px; border-radius:12px; }
.row { display:flex; gap:8px; align-items:center; justify-content:space-between; }
.stack { display:flex; flex-direction:column; gap:12px; }
.grid3 { display:grid; grid-template-columns:1fr 2fr 1.4fr; gap:8px; }
label { display:flex; flex-direction:column; gap:4px; font-size:.9rem; }
input, select, textarea, button, .button { font:inherit; padding:10px 14px; border-radius:12px; border:1px solid var(--line); background:var(--card); color:var(--fg); }
button, .button { cursor:pointer; text-decoration:none; text-align:center; display:inline-block; }
.primary { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; border:none; font-weight:600; box-shadow:0 4px 10px rgba(124,58,237,.3); }
.blue { background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; border:none; font-weight:600; }
.pink { background:linear-gradient(135deg,#d946ef,#a855f7); color:#fff; border:none; font-weight:600; }
.danger { color:var(--danger); border-color:var(--danger); }
.link { background:none; border:none; color:var(--accent); padding:0; text-decoration:underline; }
code { background:var(--card); padding:1px 5px; border-radius:5px; }
.code { font:700 1.4rem ui-monospace,monospace; letter-spacing:.05em; background:var(--card); border:2px dashed var(--accent); padding:16px; text-align:center; border-radius:12px; user-select:all; }

.hello { display:flex; flex-direction:column; align-items:center; gap:10px; background:var(--card); border-radius:20px; padding:14px; box-shadow:var(--shadow); margin-bottom:8px; text-align:center; }
.hello strong { font-size:1.15rem; }
.hello .primary { font-size:1.05rem; padding:12px 28px; border-radius:99px; }
.section-title { margin:1.2rem 0 .5rem; font-size:1.1rem; font-weight:700; }
.panel { background:var(--card); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; }

.card { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:var(--card); border:none; border-radius:0; padding:10px 14px; color:inherit; }
.panel .card + .card { border-top:1px solid var(--line); }
.card.today { background:var(--today); border-radius:18px; flex-wrap:wrap; padding:14px; box-shadow:var(--shadow); cursor:pointer; }
.card.today .meta { flex:1; }
.card.today .name { font-size:1.2rem; }
.card.today .actions { display:flex; gap:8px; width:100%; padding-left:68px; }
.card.today .actions .button { padding:8px 14px; border-radius:99px; font-size:.9rem; }
.avatar { width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,#c4b5fd,#93c5fd); color:#fff; object-fit:cover; display:grid; place-items:center; font-weight:700; font-size:1.3rem; flex:none; border:3px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.15); }
.card .meta { flex:1; min-width:0; } .card .name { font-weight:700; } .card .sub { color:var(--muted); font-size:.9rem; }
.chev { color:var(--muted); font-size:1.4rem; font-weight:700; }
details.all summary { cursor:pointer; padding:10px 14px; color:var(--accent); font-weight:600; }

.cal { padding:12px 14px; }
.cal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.cal-head strong { font-size:1.1rem; text-transform:capitalize; }
.cal-head button { padding:2px 12px; font-size:1.2rem; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; }
.cal-grid .wd { color:var(--accent); font-weight:600; font-size:.85rem; padding:4px 0; }
.cal-grid .wd.we, .cal-grid .day.we { color:#be185d; }
.day { position:relative; border:none; background:none; padding:6px 0 10px; border-radius:99px; min-height:38px; color:inherit; }
.day.today { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff !important; font-weight:700; }
.day.sel { outline:2px solid var(--accent); }
.dots { position:absolute; bottom:2px; left:0; right:0; display:flex; justify-content:center; gap:2px; }
.dot { width:6px; height:6px; border-radius:50%; }

.tabs { position:fixed; left:0; right:0; bottom:0; display:flex; justify-content:space-around; background:var(--card); border-top:1px solid var(--line); padding:8px 8px calc(8px + env(safe-area-inset-bottom)); z-index:5; }
.tabs a { display:flex; flex-direction:column; align-items:center; gap:2px; font-size:.75rem; text-decoration:none; color:var(--muted); min-width:80px; }
.tabs a.active { color:var(--accent); font-weight:700; }
.tabs .ico { font-size:1.4rem; line-height:1; }

dialog { width:min(92vw,480px); border:none; border-radius:20px; background:var(--bg); color:var(--fg); padding:16px; }
dialog::backdrop { background:rgba(0,0,0,.5); }
.detail-head { display:flex; gap:12px; align-items:center; }
.detail-head .avatar { width:72px; height:72px; font-size:1.6rem; }
.card.today .actions { flex-wrap:wrap; } #congrats { display:grid; grid-template-columns:1fr 1fr; gap:8px; } #congrats .muted { grid-column:1/-1; margin:0; }
footer { color:var(--muted); }
#greeting { white-space:pre-line; }
input, select, textarea { font-size:16px; } /* under 16px zoomer iOS Safari inn ved fokus */
