/* VOICE: friendly, fast, made for photographers at a wedding.
   IDEA: a contact sheet that sorts itself into people.
   PICTURE: the live grid of faces, growing while photos load.
   COLOUR and TYPE: Fozo indigo field, white panels, Space Grotesk titles over Inter.
   LAYOUT: one calm column; input card on top, people grid below, photos open in a sheet. */
:root{color-scheme:light dark;--bg:light-dark(#f6f7fb,#0d1020);--panel:light-dark(#ffffff,#161a30);--ink:light-dark(#111827,#eef0fa);--muted:light-dark(#4b5563,#a9afc6);--line:light-dark(#e5e7eb,#2a3050);--brand:#4338ca;--brand-ink:#ffffff;--soft:light-dark(#eef2ff,#232a5c)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Inter,system-ui,sans-serif;overflow-x:clip}
h1,h2,h3{font-family:'Space Grotesk',Inter,sans-serif;line-height:1.08;margin:0;text-wrap:balance}
.top{background:var(--brand);color:var(--brand-ink);padding:22px max(5vw,16px) 88px}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1080px;margin:0 auto}
.logo{display:flex;align-items:center;gap:10px;font:700 24px 'Space Grotesk',sans-serif}
.top h1{max-width:1080px;margin:34px auto 8px;font-size:clamp(32px,5vw,52px)}
.top p{max-width:1080px;margin:0 auto;color:#e0e7ff;font-size:18px}
main{max-width:1080px;margin:-64px auto 48px;padding:0 max(4vw,12px);display:grid;gap:20px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:clamp(18px,3vw,28px)}
label{font-weight:600;font-size:14px;display:block;margin-bottom:6px}
.row{display:flex;flex-wrap:wrap;gap:10px}
input[type=url],input[type=text]{flex:1 1 280px;min-height:50px;padding:0 14px;font:16px Inter,sans-serif;border:1.5px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink)}
button,.btn{min-height:48px;padding:0 20px;border-radius:12px;border:0;font:600 16px Inter,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);color:#fff}
.ghost{background:var(--soft);color:var(--ink)}
button:disabled{opacity:.5;cursor:default}
button:focus-visible,input:focus-visible,.btn:focus-within{outline:3px solid #818cf8;outline-offset:2px}
.hint{font-size:14px;color:var(--muted);margin:8px 0 0}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px;margin:16px 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.file{position:relative;overflow:hidden}.file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.status{display:none}.status.on{display:block}
.meter{height:10px;border-radius:99px;background:var(--soft);overflow:hidden;margin:10px 0}
.meter i{display:block;height:100%;width:0;background:var(--brand);transition:width .3s}
.stats{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:15px;color:var(--muted)}.stats b{color:var(--ink)}
.msg{padding:12px 14px;border-radius:12px;background:light-dark(#fef3c7,#3b2f0a);font-size:15px;margin-top:12px;display:none}.msg.on{display:block}
.head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.head h2{font-size:26px}
.people{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:16px}
.person{background:none;color:var(--ink);padding:0;min-height:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:500;font-size:14px}
.person img{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid var(--panel);box-shadow:0 0 0 2px var(--line)}
.person:hover img,.person.sel img{box-shadow:0 0 0 3px var(--brand)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.grid button{padding:0;min-height:0;background:var(--soft);border-radius:10px;overflow:hidden;aspect-ratio:1}
.grid img{width:100%;height:100%;object-fit:cover;display:block}
.empty{color:var(--muted);text-align:center;padding:28px 8px}
.sheet{position:fixed;inset:0;background:rgba(5,8,20,.88);display:none;align-items:center;justify-content:center;padding:16px;z-index:9}
.sheet.on{display:flex}
.sheet img{max-width:100%;max-height:82vh;border-radius:10px}
.sheet .tools{position:absolute;top:12px;right:12px;display:flex;gap:8px}
.sheet p{position:absolute;bottom:12px;left:0;right:0;text-align:center;color:#e5e7eb;font-size:14px;margin:0}
.auth{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:14px}.auth .hint{margin:0}
.tune{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:-4px 0 18px;font-size:14px;color:var(--muted)}
.tune label{margin:0;color:var(--ink)}.tune input{flex:0 1 220px;accent-color:var(--brand)}.tune .hint{flex-basis:100%;margin:0}
.hidden{display:none}
@media(prefers-reduced-motion:reduce){.meter i{transition:none}}
@media(max-width:600px){.top{padding-bottom:76px}.people{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}.person img{width:76px;height:76px}.grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}}

/* ---------- shared: accounts, forms, share + admin ---------- */
.acct{display:flex;align-items:center;gap:10px;font-size:14px}
.acct button{min-height:38px;padding:0 14px;font-size:14px;background:rgba(255,255,255,.16);color:#fff}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px 16px}
.fgrid label{font-weight:500;font-size:14px;margin:0;display:flex;flex-direction:column;gap:6px}
.fgrid .full{grid-column:1/-1}
.fgrid input[type=text],.fgrid input[type=tel],.fgrid input[type=email],.fgrid input[type=url]{min-height:46px;padding:0 12px;font:16px Inter,sans-serif;border:1.5px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink)}
.fgrid input[type=color]{height:46px;width:100%;border:1.5px solid var(--line);border-radius:12px;background:var(--panel);padding:4px}
.fgrid input[type=file]{font-size:14px}
.fgrid .check{flex-direction:row;align-items:center;gap:8px;grid-column:1/-1}
.logoPrev img{width:64px;height:64px;object-fit:contain;border-radius:12px;border:1px solid var(--line);background:#fff}
.share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;padding:14px;border-radius:14px;background:var(--soft)}
.share input{flex:1 1 260px;min-height:46px;padding:0 12px;border-radius:12px;border:1.5px solid var(--line);font:15px Inter,sans-serif;background:var(--panel);color:var(--ink)}
.row-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.row-item:first-child{border-top:0}
.row-item .grow{flex:1}
.row-item .btn,.row-item button{min-height:40px;padding:0 14px;font-size:14px}
.mini{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--soft);flex:none;display:block}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:99px;background:rgba(255,255,255,.18);color:#fff;text-decoration:none;font-weight:500;font-size:15px}
.chip:hover{background:rgba(255,255,255,.28)}
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.tabs button{min-height:40px;padding:0 14px;font-size:14px;background:var(--soft);color:var(--ink)}
.tabs button.on{background:var(--brand);color:#fff}
.badge{display:inline-block;min-width:20px;padding:0 6px;border-radius:99px;background:#dc2626;color:#fff;font-size:12px;line-height:20px;text-align:center}
.ok{color:#15803d}.warn{color:#b45309}.bad{color:#b91c1c}
.danger{background:light-dark(#fee2e2,#3b1212);color:light-dark(#991b1b,#fecaca)}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;margin-bottom:14px}
.toolbar .grow{flex:1 1 auto}
.gate{text-align:center;padding:12px 0}
.gate p{color:var(--muted);max-width:520px;margin:10px auto 16px}
.who{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:99px;background:var(--soft);font-size:14px}
.who img{width:28px;height:28px;border-radius:50%}
.brandlogo{width:56px;height:56px;border-radius:14px;object-fit:contain;background:#fff;padding:4px}

a.btn{text-decoration:none}

.consent{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;color:var(--muted);margin:0 0 16px;cursor:pointer;line-height:1.45}
.consent input{width:20px;height:20px;flex:none;margin:1px 0 0;accent-color:var(--brand)}
.planbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;background:var(--soft);border-radius:12px;padding:12px 14px;margin:-4px 0 14px;font-size:15px}
.planbar .tier{background:var(--brand);color:#fff;border-radius:999px;padding:2px 10px;font-size:13px;font-weight:600}
.planbar a{margin-left:auto;font-weight:600}
.upgrade{margin-top:14px;border:1.5px solid var(--brand);background:var(--soft);border-radius:14px;padding:14px 16px}
.upgrade p{margin:0 0 10px}
.upgrade .row{gap:10px}
.tierchip{display:inline-block;font-size:12px;font-weight:600;border-radius:999px;padding:1px 8px;background:var(--soft);color:var(--brand);margin-left:6px;vertical-align:2px}
