:root{--ink:#17203c;--muted:#68728f;--purple:#6948f6;--purple-dark:#5235e9;--surface:#f8f7fd;--line:#e4e3f3;--green:#14bb59;--red:#f43f57;--skip:#6677b2;--shadow:0 18px 60px #35216d16;--radius:24px; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f0edfc;font-synthesis:none; -webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation; -webkit-tap-highlight-color:transparent; color:inherit}button:disabled{cursor:default;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9982ff;outline-offset:3px}button{border:0}a{color:var(--purple-dark)}.icon{width:24px;height:24px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0;display:inline-block;vertical-align:middle}.loading{height:100dvh;display:grid;place-content:center;justify-items:center;color:var(--muted)}.spinner{width:32px;height:32px;border:3px solid #e2dcfe;border-top-color:var(--purple);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#app{min-height:100dvh}.voter-shell{position:relative;width:100%;max-width:480px;min-height:100dvh;margin:auto;background:linear-gradient(154deg,#fbfaff 0%,#f7f6fc 70%,#f0edff 100%);overflow:hidden;display:flex;flex-direction:column;padding: max(18px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));box-shadow:var(--shadow)}.voter-shell::before{position:absolute;inset:0;pointer-events:none;content:"";background:radial-gradient(ellipse at 98% 0%,#e4dfff45,transparent 36%)}.voter-shell>*{position:relative}.login-shell{justify-content:center;padding:28px 26px max(28px,env(safe-area-inset-bottom));min-height:100dvh;text-align:center}.login-content{width:100%;max-width:380px;margin:auto}.album-mark{position:relative;display:grid;place-items:center;width:116px;height:116px;margin:0 auto 24px}.album-mark::before{content:"";position:absolute;inset:5px;background:#c9bbff55;filter:blur(22px);border-radius:50%}.album-mark svg{position:relative;width:116px;height:116px;overflow:visible}.login-content h1{font-size:clamp(31px,8vw,40px);letter-spacing:-1.8px;line-height:1.08;margin:0 0 12px;font-weight:800}.login-content p{font-size:17px;color:var(--muted);margin:0 0 34px;line-height:1.5}.name-input{width:100%;height:62px;border:1.5px solid #dcd9f0;border-radius:17px;background:#fff;padding:0 18px;font-size:17px;font-weight:600;box-shadow:0 5px 15px #30276006;color:var(--ink)}.name-input::placeholder{font-weight:500;color:#9197ac}.primary{min-height:58px;border-radius:19px;background:linear-gradient(165deg,#8c6cff,#6747f5 64%,#5838ec);color:white;font-size:19px;font-weight:750;box-shadow:0 12px 25px #7352f436, inset 0 1px 0 #ffffff60;display:flex;align-items:center;justify-content:center;gap:11px;transition:transform .15s,filter .15s}.primary:active{transform:scale(.98)}.primary:hover{filter:brightness(1.04)}.login-content .primary{width:100%;margin-top:14px}.field-error{color:#b81f3f;font-size:13px;margin:12px 0 0;min-height:16px;text-align:left}.login-content .subtle{font-size:13px;color:var(--muted);margin-top:20px}.review-shell{height:100dvh;min-height:520px;padding-top:max(17px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom));overflow:hidden}.topbar{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;gap:8px;margin:0 2px 16px}.topbar h1{font-size:19px;letter-spacing:-.5px;font-weight:800;line-height:1.2;margin:0;text-align:center}.round-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#eeedfa;color:#39456e;transition:transform .15s,background .15s}.round-icon:active{transform:scale(.94);background:#e5e1f8}.round-icon .icon{width:22px;height:22px}.progress-row{display:flex;align-items:center;gap:14px;margin:0 3px 22px}.progress-track{height:10px;flex:1;overflow:hidden;background:#e2e1f3;border-radius:20px}.progress-fill{height:100%;background:linear-gradient(90deg,#8057ff,#694cf8);border-radius:20px;transition:width .28s ease}.progress-label{font-weight:700;white-space:nowrap;font-size:14px;color:#39456c;font-variant-numeric:tabular-nums}.photo-stage{flex:1;min-height:0;position:relative;isolation:isolate;margin:0 0 20px;display:flex;align-items:stretch;justify-content:center}.photo-card{position:absolute;inset:0;border-radius:23px;overflow:hidden;box-shadow:0 12px 30px #25203c13;background:#e9e8f2;transform-origin:50% 80%;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;z-index:2;cursor:grab}.photo-card:active{cursor:grabbing}.photo-card img{width:100%;height:100%;object-fit:contain;pointer-events:none;display:block;position:relative;z-index:1}.photo-card .backdrop{position:absolute;inset:-16px;background-size:cover;background-position:center;filter:blur(22px);opacity:.4;z-index:0}.photo-card .photo-backdrop-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(20px);opacity:.4;z-index:0;transform:scale(1.1)}.photo-card.next-card{z-index:1;transform:scale(.96) translateY(7px);opacity:.85;transition:transform .22s,opacity .22s;pointer-events:none;box-shadow:0 0 0 1px #dcd9f5}.photo-card.next-card.reveal{transform:scale(1);opacity:1}.photo-card.arrive{animation:arrive .25s cubic-bezier(.2,.85,.2,1)}@keyframes arrive{from{transform:scale(.96) translateY(6px);opacity:.88}to{transform:none;opacity:1}}.photo-card.returning{transition:transform .38s cubic-bezier(.18,1.35,.44,1),opacity .2s}.photo-card.exiting{transition:transform .26s cubic-bezier(.2,.72,.35,1),opacity .26s;pointer-events:none}.photo-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;color:#fff;opacity:0;pointer-events:none;text-shadow:0 3px 12px #14223244;border:2px solid transparent;border-radius:23px}.photo-overlay .icon{width:78px;height:78px;stroke-width:2.4;filter:drop-shadow(0 4px 7px #0002)}.photo-overlay strong{font-size:clamp(25px,7vw,38px);font-weight:800;letter-spacing:-.8px}.photo-overlay.keep{background:#13c75caa;border-color:#5bfb91}.photo-overlay.delete{background:#f43f57b7;border-color:#ff8d99}.photo-overlay.skip{background:#4971e4a6;border-color:#9fb2ff}.overlay-arrow{position:absolute;bottom:13%;width:63%!important;height:54px!important;opacity:.9;stroke-width:2.5!important}.zoom-btn{position:absolute;z-index:4;right:12px;bottom:12px;border-radius:50%;width:40px;height:40px;background:#15162b66;color:white;display:grid;place-items:center;backdrop-filter:blur(5px)}.zoom-btn .icon{width:22px;height:22px}.action-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:11px;margin:0 0 5px;flex-shrink:0}.vote-btn{min-height:76px;border-radius:20px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;line-height:1.05;font-size:14px;font-weight:650;transition:transform .17s,box-shadow .17s;position:relative;box-shadow:inset 0 1px 1px #ffffff55}.vote-btn .icon{width:28px;height:28px;stroke-width:2}.vote-btn.delete{background:linear-gradient(155deg,#ff747b,#f63e54 70%);color:#fff}.vote-btn.skip{background:linear-gradient(150deg,#f1f0fb,#e1e3f6);color:#39456e}.vote-btn.skip .icon{color:#7081b1;stroke-width:2.8}.vote-btn.keep{background:linear-gradient(150deg,#50e58b,#12ba55 73%);color:#fff}.vote-btn:active,.vote-btn.selected{transform:scale(1.025);box-shadow:0 0 0 3px #fff,0 0 0 5px currentColor,0 5px 16px #17173219}.vote-btn.keep.selected{box-shadow:0 0 0 3px #fff,0 0 0 5px #25d66a,0 5px 16px #1dbb5955}.vote-btn.delete.selected{box-shadow:0 0 0 3px #fff,0 0 0 5px #ff6a75,0 5px 16px #f43f5744}.vote-btn.skip.selected{box-shadow:0 0 0 3px #fff,0 0 0 5px #9ca9e5}.hint{text-align:center;margin:12px 0 0;font-size:12px;color:#828aa4;font-weight:500;min-height:14px}.review-shell .menu{position:absolute;top:64px;right:15px;z-index:8;background:white;border:1px solid #e9e6f6;border-radius:17px;padding:7px;box-shadow:0 16px 40px #1a16402a;min-width:190px}.menu button{display:flex;align-items:center;gap:11px;background:none;width:100%;padding:12px;text-align:left;border-radius:10px;font-weight:600;font-size:14px}.menu button:hover{background:#f3f0ff}.menu button .icon{color:var(--purple);width:20px;height:20px}.summary-shell{justify-content:center;min-height:100dvh;padding:28px 22px;text-align:center}.summary-body{max-width:380px;margin:auto;width:100%;position:relative}.check-mark{width:108px;height:108px;margin:0 auto 22px;position:relative;border-radius:50%;display:grid;place-items:center;background:linear-gradient(150deg,#70ef9e,#16bc59 70%);border:2px solid #fff;box-shadow:0 10px 27px #1fbf5e42;animation:pop .5s cubic-bezier(.15,1.3,.3,1)}.check-mark .icon{color:white;width:65px;height:65px;stroke-width:3.6}.spark{position:absolute;background:#ae9aff;width:7px;height:15px;border-radius:6px;transform:rotate(var(--r));top:var(--y);left:var(--x);opacity:.8}.spark:nth-child(even){background:#8eb7f4}@keyframes pop{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}.summary-shell h1{font-size:40px;letter-spacing:-1.6px;margin:0 0 7px;line-height:1.1}.summary-shell p{color:var(--muted);font-size:16px;margin:0 0 30px}.summary-list{display:grid;gap:10px;margin:0 0 31px;text-align:left}.summary-item{display:flex;align-items:center;gap:13px;border-radius:20px;padding:16px;font-size:18px;font-weight:650}.summary-item .icon{width:27px;height:27px}.summary-item strong{margin-left:auto;font-size:28px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.summary-item.keep{background:#e1f5e9}.summary-item.keep strong,.summary-item.keep .icon{color:#0a9f48}.summary-item.delete{background:#fae5e8}.summary-item.delete strong,.summary-item.delete .icon{color:#d82343}.summary-item.skip{background:#e8e8fb}.summary-item.skip strong,.summary-item.skip .icon{color:#5772d8}.summary-shell .primary{width:100%}.text-btn{background:none;color:var(--purple-dark);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 10px;font-size:15px;font-weight:650}.summary-shell .text-btn{margin-top:10px}.summary-shell .text-btn .icon{width:20px;height:20px}.bottom-decoration{position:absolute;bottom:-65px;right:-25px;opacity:.2;pointer-events:none;transform:rotate(-14deg)}.bottom-decoration svg{width:180px;height:180px}.empty-icon{background:#ece8ff;color:var(--purple);border-radius:25px;width:86px;height:86px;display:grid;place-items:center;margin:0 auto 22px}.empty-icon .icon{width:46px;height:46px}.empty-shell h1{font-size:30px}.empty-shell p{line-height:1.5}.modal-backdrop{position:fixed;inset:0;z-index:30;background:#15152a9c;display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(4px);padding:16px}.sheet{width:min(100%,460px);border-radius:26px;background:#fff;box-shadow:0 20px 70px #17132b44;padding:22px;animation:slideup .25s ease-out}.sheet h2{margin:0 0 16px;font-size:21px;letter-spacing:-.6px}.sheet-title{display:flex;justify-content:space-between;align-items:center}.sheet-title .round-icon{width:33px;height:33px}.gesture-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #edebf6}.gesture-row:last-child{border:0}.gesture-icon{border-radius:14px;width:48px;height:48px;display:grid;place-items:center}.gesture-icon.keep{background:#e1f7e9;color:#0aa94b}.gesture-icon.delete{background:#ffe5e9;color:#e6334e}.gesture-icon.skip{background:#e9eaff;color:#6479c7}.gesture-row strong{display:block;font-size:16px}.gesture-row small{display:block;color:var(--muted);margin-top:4px;font-size:13px}.sheet .primary{width:100%;margin-top:20px;font-size:16px}.viewer{position:fixed;inset:0;z-index:50;background:#10111c;display:flex;align-items:center;justify-content:center;overflow:hidden}.viewer-image{width:100%;height:100%;object-fit:contain;max-height:100dvh;touch-action:none;transform-origin:center;user-select:none}.viewer .round-icon{position:absolute;top:max(18px,env(safe-area-inset-top));right:18px;background:#ffffff25;color:white;z-index:1}.viewer-hint{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));color:#fff9;font-size:13px;pointer-events:none;background:#14141a77;padding:8px 14px;border-radius:15px}.toast{position:fixed;z-index:70;left:50%;bottom:max(25px,env(safe-area-inset-bottom));transform:translate(-50%,15px);opacity:0;max-width:calc(100vw - 30px);width:max-content;background:#20253b;color:white;padding:12px 18px;border-radius:14px;font-size:14px;box-shadow:0 10px 28px #15152b33;pointer-events:none;transition:opacity .18s,transform .18s}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes slideup{from{transform:translateY(15px);opacity:0}to{transform:none;opacity:1}}
/* Admin: same visual language, adapted for desktop and mobile. */
.admin-shell{max-width:1200px;margin:0 auto;padding:28px 24px 48px;min-height:100dvh}.admin-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:30px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px}.brand-icon{background:linear-gradient(150deg,#a48bff,#6948f6);color:#fff;width:45px;height:45px;border-radius:15px;display:grid;place-items:center;box-shadow:0 8px 20px #7957f53b}.brand h1{font-size:22px;letter-spacing:-.7px;margin:0}.brand small{color:var(--muted);font-size:13px}.admin-tools{display:flex;flex-wrap:wrap;gap:8px}.secondary{border:1px solid #e0ddf2;background:#fff;border-radius:13px;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;font-size:13px;padding:9px 14px;text-decoration:none;color:var(--ink)}.secondary .icon{width:18px;height:18px;color:var(--purple)}.secondary:hover{background:#f9f7ff}.admin-tools .primary{min-height:43px;font-size:14px;padding:9px 15px;border-radius:13px;box-shadow:0 6px 14px #6747f52a}.admin-tools .primary .icon{width:19px;height:19px}.admin-heading h2{font-size:28px;margin:0 0 6px;letter-spacing:-1px}.admin-heading p{color:var(--muted);margin:0 0 24px;font-size:15px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.metric{padding:20px;border:1px solid #e7e3f6;background:#fff;border-radius:21px;box-shadow:0 7px 25px #30276007;min-width:0}.metric .icon{width:24px;height:24px;color:var(--purple);margin-bottom:10px}.metric strong{display:block;font-size:32px;letter-spacing:-1.2px;margin:0 0 3px;font-variant-numeric:tabular-nums}.metric span{display:block;color:var(--muted);font-size:13px;font-weight:600}.admin-card{background:white;border:1px solid #e5e1f3;border-radius:22px;padding:20px;box-shadow:0 8px 24px #30276008}.admin-card h3{margin:0;font-size:19px;letter-spacing:-.4px}.card-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:18px}.totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 12px}.mini-total{border-radius:14px;display:flex;align-items:center;gap:8px;padding:12px 10px;font-weight:650;font-size:13px}.mini-total strong{margin-left:auto;font-size:20px;font-variant-numeric:tabular-nums}.mini-total .icon{width:20px;height:20px}.mini-total.keep{background:#e5f7ec;color:#078c3f}.mini-total.delete{background:#fce8eb;color:#c92b45}.mini-total.skip{background:#ececfa;color:#5667ad}.segbar{display:flex;overflow:hidden;background:#e8e5f5;border-radius:999px;height:9px}.segbar>div.keep{background:#1bc460}.segbar>div.delete{background:#f05268}.segbar>div.skip{background:#8e99d2}.tabs{display:flex;gap:7px;padding:5px;background:#eae7f8;border-radius:15px;width:max-content;max-width:100%;margin:23px 0 18px}.tab{border-radius:11px;padding:11px 16px;background:transparent;color:#656c87;font-size:14px;font-weight:650;white-space:nowrap}.tab.active{background:#fff;color:var(--purple-dark);box-shadow:0 2px 8px #33246d12}.search{border:1px solid #e1ddf0;border-radius:12px;min-height:40px;padding:9px 12px;max-width:100%;min-width:0;color:var(--ink);background:#faf9ff;font-size:14px}.people-list{display:grid;gap:10px}.person-row{display:grid;grid-template-columns:42px minmax(0,1fr) minmax(90px,170px) 25px;gap:13px;align-items:center;padding:14px;border:1px solid #edeaf6;border-radius:16px;background:#fff;text-align:left;width:100%}.person-row:hover{background:#faf9ff}.avatar{width:42px;height:42px;background:#ede8ff;color:#6948f6;display:grid;place-items:center;border-radius:14px;font-weight:800;font-size:17px}.person-info{min-width:0}.person-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-info small{color:var(--muted);font-size:12px;display:block;margin-top:4px}.person-progress{display:grid;gap:6px;text-align:right;color:var(--muted);font-size:12px}.person-row>.icon{color:#9b96b6;width:19px;height:19px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.admin-photo{border-radius:17px;border:1px solid #e9e5f4;overflow:hidden;background:#fff;text-align:left;width:100%;padding:0;transition:transform .15s}.admin-photo:hover{transform:translateY(-2px)}.admin-photo img{width:100%;height:180px;object-fit:contain;display:block;background:#f0eef8}.admin-photo .photo-info{padding:12px}.filename{display:block;font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-votes{display:flex;align-items:center;gap:13px;margin-top:12px;font-size:13px;font-weight:650}.photo-votes .icon{width:17px;height:17px;margin-right:3px}.keep-text{color:#099447}.delete-text{color:#d82d48}.skip-text{color:#6477ba}.empty-admin{text-align:center;color:var(--muted);padding:38px 14px;line-height:1.5}.empty-admin .icon{width:40px;height:40px;color:#aaa1dc;margin-bottom:10px}.admin-detail{position:fixed;inset:0;background:#1e1a3f70;z-index:35;display:flex;justify-content:flex-end;backdrop-filter:blur(3px)}.detail-panel{width:min(520px,100%);height:100dvh;overflow:auto;background:#fff;padding:max(24px,env(safe-area-inset-top)) 22px 32px;box-shadow:-10px 0 55px #25204c22;animation:slideup .2s ease}.detail-panel .card-top{position:sticky;top:0;background:#fff;z-index:1;padding:8px 0}.detail-panel h2{font-size:22px;letter-spacing:-.6px;margin:0;overflow-wrap:anywhere;max-width:calc(100% - 50px)}.detail-panel .detail-image{width:100%;max-height:300px;object-fit:contain;border-radius:16px;background:#eeedf7;margin:8px 0}.detail-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eeebf5;font-size:14px;min-width:0}.detail-row img{width:55px;height:64px;object-fit:cover;border-radius:9px}.detail-row .row-name{min-width:0;flex:1;overflow-wrap:anywhere}.status-tag{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;font-weight:650;padding:7px 9px;border-radius:10px}.status-tag .icon{width:16px;height:16px}.status-tag.keep{background:#e6f7ed;color:#078d42}.status-tag.delete{background:#fce8ec;color:#ca2d45}.status-tag.skip{background:#eeeeff;color:#5d6caf}.status-tag.pending{background:#f1eff7;color:#7e7996}.upload-zone{border:2px dashed #dcd6f3;border-radius:16px;padding:24px;text-align:center;background:#f9f7ff;cursor:pointer;display:block}.upload-zone .icon{color:var(--purple);width:35px;height:35px;display:block;margin:0 auto 10px}.upload-zone strong{display:block}.upload-zone small{color:var(--muted);font-size:13px;display:block;margin-top:8px}.upload-zone input{position:absolute;opacity:0;width:1px;height:1px}.upload-log{font-size:13px;line-height:1.6;max-height:150px;overflow:auto;margin-top:12px;color:var(--muted)}.upload-log .bad{color:#c52b43}.upload-progress{margin-top:13px;min-height:16px;color:var(--purple-dark);font-size:13px;font-weight:650}.admin-login-label{font-size:13px;font-weight:650;color:var(--muted);display:block;text-align:left;margin-bottom:7px}.demo-banner{display:none}.demo-mode .demo-banner{display:block;position:fixed;bottom:0;right:0;background:#261b5a;color:#fff;font-size:11px;padding:5px 8px;border-top-left-radius:9px;z-index:80;text-decoration:none}.demo-mode .demo-banner a{color:#fff}.demo-mode .voter-shell{padding-bottom:36px}.demo-mode .review-shell{padding-bottom:30px}
@media(min-width:600px){body{background:radial-gradient(ellipse at 85% 0%,#dcd3ff 0,transparent 35%),radial-gradient(ellipse at 2% 95%,#dcd5ff 0,transparent 40%),#f4f2fc}.voter-shell{max-width:440px;min-height:0;margin:20px auto;border-radius:32px;border:1px solid #ffffff;min-height:calc(100dvh - 40px);padding:22px 16px}.review-shell{height:calc(100dvh - 40px);min-height:520px;max-height:880px}.login-shell,.summary-shell{padding:32px 28px;min-height:calc(100dvh - 40px)}.modal-backdrop{align-items:center}.demo-mode .voter-shell{padding-bottom:22px}}@media(min-width:1100px) and (min-height:850px){.voter-shell{max-width:445px;margin:30px auto;min-height:calc(100dvh - 60px)}.review-shell{height:calc(100dvh - 60px);min-height:0}}@media(max-width:700px){.admin-shell{padding:20px 13px 32px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:15px}.metric strong{font-size:28px}.admin-card{padding:14px}.admin-tools{width:100%}.admin-tools .secondary,.admin-tools .primary{flex:1;white-space:nowrap}.admin-tools .secondary{padding:9px 10px}.mini-total{flex-wrap:wrap;gap:5px;padding:10px 7px;font-size:11px}.mini-total strong{font-size:19px}.mini-total .icon{width:16px;height:16px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-photo img{height:140px}.photo-votes{gap:7px;font-size:12px}.photo-votes .icon{width:14px;height:14px;margin-right:2px}.person-row{grid-template-columns:37px minmax(0,1fr) minmax(65px,90px) 15px;gap:9px;padding:10px}.avatar{width:37px;height:37px}.admin-heading h2{font-size:24px}}@media(max-height:650px){.review-shell{padding-top:9px;padding-bottom:10px}.topbar{margin-bottom:8px}.progress-row{margin-bottom:13px}.photo-stage{margin-bottom:12px}.vote-btn{min-height:64px;border-radius:16px}.vote-btn .icon{width:24px;height:24px}.hint{margin-top:6px}.login-content p{margin-bottom:20px}.album-mark{width:90px;height:90px;margin-bottom:16px}.album-mark svg{width:90px;height:90px}.check-mark{width:80px;height:80px;margin-bottom:15px}.summary-shell h1{font-size:32px}.summary-shell p{margin-bottom:18px}.summary-list{margin-bottom:20px}.summary-item{padding:11px}.summary-item strong{font-size:24px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Fotitos v2 — secondary controls, gallery, comparisons and administration */
.muted{color:var(--muted);font-size:13px;line-height:1.5}.gold{color:#d69b09!important}.gold.icon{fill:#f8db6c55}.wide{width:100%}.input-wide{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:13px;padding:12px;font:inherit;resize:vertical;min-width:0}.sheet{overflow:auto;max-height:90dvh;overscroll-behavior:contain}.sheet>p{margin:8px 0}.sheet .primary{margin-top:8px}.sheet .secondary{min-height:44px}.sheet-title{position:sticky;top:0;z-index:3;background:inherit;padding-bottom:7px}.sheet-title h2{overflow-wrap:anywhere;min-width:0}.photo-quick{position:absolute;left:10px;top:10px;display:flex;gap:6px;z-index:5}.photo-quick .round-icon{background:#14132b90;color:#fff;border:1px solid #ffffff58;backdrop-filter:blur(10px);width:40px;height:40px;box-shadow:0 2px 12px #0002}.photo-quick .icon{width:20px;height:20px}.photo-quick #quick-star .icon{color:#ffdb72}.menu{max-height:min(70dvh,430px);overflow:auto}.gallery-controls,.filter-row,.selection-bar,.person-actions,.slide-controls,.admin-actionbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.gallery-controls select{flex:1;min-width:100px}.family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:55dvh;overflow:auto;padding:2px 1px 5px}.gallery-photo{background:var(--surface);border:2px solid transparent;border-radius:13px;overflow:hidden;padding:0;text-align:left;position:relative;min-width:0}.gallery-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.gallery-caption{font-size:11px;display:flex;align-items:center;gap:4px;padding:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-caption .icon{width:15px;height:15px;color:var(--purple)}.picked{border:2px solid var(--purple)!important;box-shadow:0 0 0 2px #a797ff55}.pick-dot{position:absolute;top:5px;right:5px;background:var(--purple);color:white;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-weight:800}.sticky-action{position:sticky;bottom:0;z-index:2}.gallery-preview{border:0;position:relative;width:100%;padding:0;background:#e8e5f3;border-radius:15px;overflow:hidden}.gallery-preview img{width:100%;max-height:36dvh;object-fit:contain;display:block}.gallery-preview>.icon{position:absolute;bottom:8px;right:8px;background:#0008;color:#fff;padding:6px;width:34px;height:34px;border-radius:10px}.gallery-vote,.practice-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.gallery-vote .vote-btn,.practice-actions .vote-btn{min-height:62px;border-radius:16px}.gallery-vote .vote-btn.selected{outline:3px solid #bda9ff;outline-offset:2px}.note-thumb{width:100%;height:140px;object-fit:contain;background:#eeeaf8;border-radius:12px;margin-bottom:10px}.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.compare-card,.comparison-result .compare-grid>div{border:2px solid var(--line);background:var(--surface);border-radius:16px;overflow:hidden;padding:0 0 9px;min-width:0}.compare-card img,.comparison-result .compare-grid img{width:100%;height:clamp(120px,26dvh,230px);object-fit:contain;background:#e5e1ef;display:block}.compare-card strong,.compare-card span,.comparison-result .compare-grid strong,.comparison-result .compare-grid small{display:block;margin:8px 9px 0;overflow-wrap:anywhere}.compare-card span,.comparison-result .compare-grid small{font-size:11px;color:var(--muted)}.comparison-result{border:1px solid var(--line);border-radius:18px;padding:14px;margin:14px 0}.comparison-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.summary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.summary-actions .secondary{font-size:12px;padding:9px 5px}.summary-actions .icon{width:16px;height:16px}.summary-shell{height:auto;overflow:visible}.summary-body{max-width:100%}.slide-frame{border-radius:16px;overflow:hidden;background:#12111a}.slide-frame img{width:100%;height:min(50dvh,450px);object-fit:contain;display:block}.slide-controls{justify-content:center}.tutorial-stage{height:200px;display:grid;place-items:center;overflow:hidden;background:#eee9ff;border-radius:17px;touch-action:none}.tutorial-photo{position:relative;max-width:150px;height:172px;width:100%;border:3px solid white;border-radius:15px;overflow:hidden;box-shadow:0 9px 18px #24184d30;touch-action:none;cursor:grab}.tutorial-photo img{height:100%;width:100%;object-fit:cover;pointer-events:none}.tutorial-photo #practice-symbol{position:absolute;inset:0;display:grid;place-items:center;background:#120c3b30;pointer-events:none}.tutorial-photo #practice-symbol .icon{color:white;width:55px;height:55px;filter:drop-shadow(0 3px 6px #0008)}.practice-exit{transition:transform .23s ease,opacity .23s ease}.tutorial-text{text-align:center;padding:10px 0}.tutorial-text small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.album-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:9px;padding:16px;border:1px solid var(--line);background:#fff;border-radius:19px;margin-bottom:25px}.album-toolbar>div{flex:1;min-width:150px}.album-toolbar select{width:100%}.album-toolbar .primary{min-height:43px;width:auto;padding:10px 16px;font-size:14px}.admin-actionbar{margin:16px 0}.admin-actionbar>*{flex:1}.insight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}.insight{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;text-align:left;min-width:0}.insight strong{display:block;font-size:25px;margin-top:8px}.class-tag{display:inline-block;font-size:11px;border-radius:7px;padding:5px 8px;font-weight:650;color:#655b85;background:#ece9f8;margin-top:5px;max-width:100%;overflow-wrap:anywhere}.class-tag.unanimous,.class-tag.liked{color:#087a3d;background:#e0f7e8}.class-tag.mixed{color:#935c0a;background:#fff1d6}.class-tag.candidate{color:#c52d45;background:#ffe8ed}.class-tag.neutral,.class-tag.pending{background:#eceaf5;color:#655f83}.protect-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px;border-top:1px solid var(--line)}.protect-row .icon{color:var(--purple)}.protect-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.switch{display:block;position:relative;width:48px;height:29px;flex-shrink:0}.switch input{opacity:0;position:absolute;inset:0;cursor:pointer;z-index:1;width:100%;height:100%}.switch span{display:block;width:100%;height:100%;border-radius:30px;background:#c7c3d7;position:relative;transition:background .15s}.switch span:after{content:'';position:absolute;left:3px;top:3px;width:23px;height:23px;background:white;border-radius:50%;box-shadow:0 1px 5px #0002;transition:transform .15s}.switch input:checked+span{background:var(--purple)}.switch input:checked+span:after{transform:translateX(19px)}.switch input:focus-visible+span{outline:3px solid #9b84ff}.tabs{width:100%;overflow-x:auto}.tabs .tab{flex-shrink:0}.admin-photo{position:relative}.photo-link{width:100%;padding:0;text-align:left;background:transparent}.admin-select{position:absolute;top:8px;left:8px;z-index:2;width:35px;height:35px;border-radius:10px;background:#fffe;display:grid;place-items:center;box-shadow:0 2px 10px #0002}.admin-select input{width:21px;height:21px;accent-color:var(--purple);cursor:pointer}.photo-info .segbar{margin:10px 0 5px;height:6px}.selection-bar{background:var(--surface);padding:9px;border-radius:12px}.selection-bar strong{margin-right:auto;font-size:13px}.danger{color:#c52d45!important}.danger .icon{color:inherit}.comment-text{display:block;color:var(--muted);font-size:12px;white-space:pre-wrap;margin-top:5px;overflow-wrap:anywhere}.download-options{display:grid;gap:7px}.download-options .secondary{justify-content:flex-start}.empty-admin{grid-column:1/-1}.photo-votes{flex-wrap:wrap}.photo-votes span{white-space:nowrap}.photo-votes .gold{font-size:12px}
@media(max-width:700px){.insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insight{padding:10px}.album-toolbar{padding:12px}.album-toolbar>div{width:100%;flex-basis:100%}.album-toolbar button{flex:1}.tab{font-size:12px;padding:10px}.admin-actionbar .secondary{flex:1 1 42%}.photo-quick .round-icon{width:38px;height:38px}.family-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-actions .secondary{font-size:11px}.filter-row .search{flex:1;min-width:125px}.photo-votes{gap:6px}}
[data-theme=dark]{--ink:#f1efff;--muted:#b6b1cf;--surface:#232136;--line:#413d5c;--purple:#aa94ff;--purple-dark:#c4b4ff;--shadow:0 18px 60px #08071688;background:#171624;color:var(--ink)}[data-theme=dark] body{background:radial-gradient(ellipse at 80% 0,#382a65,transparent 40%),#171624}[data-theme=dark] .voter-shell,[data-theme=dark] .sheet,[data-theme=dark] .admin-card,[data-theme=dark] .metric,[data-theme=dark] .album-toolbar,[data-theme=dark] .detail-panel,[data-theme=dark] .detail-panel .card-top,[data-theme=dark] .secondary,[data-theme=dark] .person-row,[data-theme=dark] .admin-photo,[data-theme=dark] .menu,[data-theme=dark] .name-input,[data-theme=dark] .search,[data-theme=dark] .round-icon{background:#27243b;color:var(--ink);border-color:#413d5c}[data-theme=dark] .secondary:hover,[data-theme=dark] .person-row:hover,[data-theme=dark] .tab.active{background:#3c3557;color:#e1d6ff}[data-theme=dark] .tabs,[data-theme=dark] .progress-track,[data-theme=dark] .segbar{background:#3e3955}[data-theme=dark] .menu button{color:var(--ink)}[data-theme=dark] .menu button:hover{background:#423a5c}[data-theme=dark] .voter-shell{border-color:#403958}[data-theme=dark] .summary-item,[data-theme=dark] .mini-total,[data-theme=dark] .status-tag{filter:saturate(.8)}[data-theme=dark] .hint,[data-theme=dark] .progress-label{color:#c2badf}[data-theme=dark] .upload-zone,[data-theme=dark] .tutorial-stage{background:#30294b;border-color:#564a79}[data-theme=dark] .photo-quick .round-icon{background:#131223a0;color:#fff}
.summary-extra{display:flex;justify-content:center;gap:14px}.summary-extra .text-btn{font-size:12px;padding:6px}.summary-extra .icon{width:15px;height:15px}.topbar h1{min-width:0;max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-heading h2{overflow-wrap:anywhere}
/* Fotitos 3.0 — consistent motion tokens, compositor-friendly effects */
:root{--motion-fast:90ms;--motion-normal:180ms;--motion-screen:280ms;--motion-ease:cubic-bezier(.2,.8,.2,1);--motion-spring:cubic-bezier(.18,1.22,.34,1)}
.review-shell .topbar{margin-bottom:12px}.review-shell .progress-row{margin-bottom:16px}.review-shell .photo-stage{margin-bottom:13px}.review-shell .hint{margin:5px 0 0}.review-utility{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;margin-top:4px;flex-shrink:0}.undo-pill,.sync-pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:15px;font-size:13px;font-weight:700;padding:8px 13px;background:#eae5ff;color:var(--purple-dark);transition:transform var(--motion-fast),background var(--motion-normal);white-space:nowrap}.undo-pill .icon{width:22px;height:22px;stroke-width:2.6}.undo-pill:disabled{opacity:.4}.undo-pill:not(:disabled):active,.sync-pill:active{transform:scale(.94)}.sync-pill{background:transparent;color:var(--muted);min-width:0;font-size:11px;font-weight:650;white-space:normal;text-align:left;padding:6px 5px}.sync-pill i{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#8b5cf6}.sync-pill[data-status=saved] i{background:#14bb59}.sync-pill[data-status=offline] i{background:#d69a17}.sync-pill[data-status=error] i{background:#f43f57}.sync-pill[data-status=error]{color:#c53a52}.sync-pill[data-status=pending] i{animation:syncpulse 1.15s ease-in-out infinite}@keyframes syncpulse{50%{opacity:.35;transform:scale(.8)}}.summary-sync{margin:auto;display:flex}.summary-body #summary-backup{margin:8px 0 12px}.backup-status{background:#8b5cf610;padding:14px;border-radius:16px;margin-bottom:10px}.backup-status p{margin:8px 0 0}.whatsapp-btn{color:#0e8850!important}.motion-option{display:flex;align-items:center;gap:13px;border:1px solid var(--line);padding:13px 14px;border-radius:15px;margin:8px 0;min-height:48px;font-weight:600;cursor:pointer}.motion-option input{width:20px;height:20px;accent-color:var(--purple)}.motion-option small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}.photo-card{transform-origin:50% 55%;will-change:transform,opacity}.photo-card.next-card{transform:translateY(8px) scale(.96);opacity:.8;transition:transform .25s var(--motion-ease),opacity .25s;z-index:1}.photo-card.third-card{transform:translateY(16px) scale(.92);opacity:.6;z-index:0}.photo-card.exiting{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.16,.66,.32,1),ease-out}.photo-card.arrive{animation:motion-arrive .20s var(--motion-ease)}@keyframes motion-arrive{from{opacity:.96;transform:scale(.99)}to{opacity:1;transform:none}}.photo-overlay>.icon:not(.overlay-arrow){transform:scale(calc(.76 + var(--gesture-strength,1)*.24));transition:transform 90ms}.photo-overlay.armed{border-width:4px}.photo-overlay.armed>.icon:not(.overlay-arrow){transform:scale(1.08)}.photo-overlay.committed.keep>.icon:not(.overlay-arrow){animation:heartpop .32s var(--motion-spring);fill:#ffffff48}.photo-overlay.committed.delete>.icon:not(.overlay-arrow){animation:toss .28s ease-out}.photo-overlay.committed.skip>.icon:not(.overlay-arrow){animation:floaticon .25s ease-out}@keyframes heartpop{0%{transform:scale(.9)}45%{transform:scale(1.23)}100%{transform:scale(1)}}@keyframes toss{45%{transform:rotate(-13deg) scale(1.08)}}@keyframes floaticon{to{transform:translateY(-18px);opacity:.6}}.vote-btn{transition:transform 100ms var(--motion-ease),box-shadow 130ms}.vote-btn.gesture-active{transform:scale(calc(1 + var(--strength,0)*.045));box-shadow:0 0 0 2px currentColor,0 4px 14px #44356622}.vote-btn:active{transform:scale(.95)}.vote-btn.selected{transform:scale(1.03)}.round-icon,.secondary,.primary,.tab,.gallery-photo,.compare-card,.text-btn,.insight{transition:transform var(--motion-fast) var(--motion-ease),background var(--motion-normal),color var(--motion-normal),box-shadow var(--motion-normal)}.secondary:active,.primary:active,.tab:active,.gallery-photo:active,.compare-card:active,.text-btn:active,.insight:active{transform:scale(.97)}.round-icon.is-favorite{color:#b77908;background:#fff0c8}.round-icon.is-favorite .icon{fill:#ffd660;stroke:#b77908}.review-shell .menu{transform-origin:top right;animation:menu-enter var(--motion-normal) var(--motion-spring);max-height:calc(100dvh - 100px);overflow:auto}@keyframes menu-enter{from{opacity:0;transform:translateY(-6px) scale(.95)}to{opacity:1;transform:none}}.sheet{animation:sheet-enter .28s var(--motion-spring);overscroll-behavior:contain}@keyframes sheet-enter{from{opacity:0;transform:translateY(24px) scale(.99)}to{opacity:1;transform:none}}.modal-backdrop,.viewer,.admin-detail{animation:surface-enter .18s var(--motion-ease)}@keyframes surface-enter{from{opacity:0}to{opacity:1}}.viewer-image{animation:viewer-enter .3s var(--motion-ease)}@keyframes viewer-enter{from{opacity:.3;scale:.94}to{opacity:1;scale:1}}.gallery-photo,.admin-photo,.person-row{animation:surface-enter .19s ease-out}.gallery-photo.picked,.compare-card.picked{box-shadow:0 0 0 2px #8b5cf6,0 8px 24px #8b5cf627}.summary-item{animation:summary-enter .28s var(--motion-spring) both}.summary-item:nth-child(2){animation-delay:65ms}.summary-item:nth-child(3){animation-delay:130ms}@keyframes summary-enter{from{transform:translateY(9px);opacity:0}to{transform:none;opacity:1}}.motion-particles{position:fixed;z-index:90;pointer-events:none;width:0;height:0}.motion-particles i{position:absolute;left:0;top:0;width:7px;height:7px;border-radius:2px;background:var(--pc);animation:particle-burst .58s ease-out forwards}@keyframes particle-burst{0%{transform:scale(.5);opacity:0}18%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--rot)) scale(.25);opacity:0}}.photo-unavailable{position:absolute;inset:0;z-index:5;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);padding:20px;text-align:center}.photo-unavailable>.icon{width:38px;height:38px}.photo-unavailable button{min-height:42px}.viewer-hint{max-width:90%;text-align:center}.toast{z-index:100}.admin-photo,.gallery-photo{content-visibility:auto;contain-intrinsic-size:auto 150px}.progress-label{font-variant-numeric:tabular-nums}html[data-motion=minimal] *{--motion-fast:70ms;--motion-normal:120ms;--motion-screen:160ms}html[data-motion=minimal] .photo-card.third-card,html[data-motion=reduced] .photo-card.third-card{display:none}html[data-motion=reduced] *,html[data-motion=reduced] *::before,html[data-motion=reduced] *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}html[data-motion=reduced] .photo-card{will-change:auto}html[data-theme=dark] .undo-pill{background:#382f64;color:#d6c9ff}html[data-theme=dark] .sync-pill[data-status=error]{color:#ff9aab}html[data-theme=dark] .round-icon.is-favorite{background:#58441e;color:#ffcd62}html[data-theme=dark] .photo-unavailable{background:#25263b}html[data-theme=dark] .backup-status{background:#aa8eff15}@media(max-height:650px){.review-shell .topbar{margin-bottom:7px}.review-shell .progress-row{margin-bottom:9px}.review-shell .photo-stage{margin-bottom:7px}.review-shell .hint{margin-top:2px}.review-utility{min-height:38px;margin-top:0}.undo-pill,.sync-pill{min-height:38px}}@media(max-width:355px){.review-utility{gap:3px}.undo-pill{padding:8px;font-size:12px}.sync-pill{font-size:10px}.review-shell .hint{font-size:11px}}
/* Sheets must fit narrow displays, including after a keyboard/viewport change. */
.modal-backdrop{width:100%;max-width:100vw;overflow:hidden;padding:12px;box-sizing:border-box}.modal-backdrop .sheet{width:100%;max-width:460px;min-width:0;flex:0 1 460px;max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;padding:18px}.sheet-title{position:static}.sheet .primary,.sheet .secondary.wide{max-width:100%;white-space:normal}.sheet .secondary.wide{margin:7px 0}.motion-option{min-width:0;flex-shrink:0}.motion-option span{min-width:0}.motion-option input{flex-shrink:0}.summary-shell{overflow-x:hidden;overflow-y:auto}.summary-extra{flex-wrap:wrap}.backup-status{overflow-wrap:anywhere}
.theme-changing .voter-shell,.theme-changing .sheet,.theme-changing .admin-card,.theme-changing .metric,.theme-changing .round-icon,.theme-changing .secondary{transition:background-color .22s,color .22s,border-color .22s}

/* FOTITOS · NUESTRA BODA — wedding edition. Real controls, no screenshot UI. */
:root{--ink:#2b180e;--muted:#71604c;--purple:#b58130;--purple-dark:#805018;--surface:#fbf3e6;--line:#e0ceb2;--green:#426b16;--red:#a52727;--skip:#96703d;--shadow:0 24px 80px #50300e24;--gold-edge:linear-gradient(137deg,#80501e 0%,#e5b65a 11%,#fff7ce 24%,#bf842e 38%,#835013 51%,#f9df89 66%,#fff8dc 72%,#ba7a20 87%,#72501b 100%);--gold-face:linear-gradient(145deg,#fffaf0 0%,#f9e7c8 26%,#e8c99b 49%,#fff4de 73%,#e7c79b 100%);--cream-face:linear-gradient(130deg,#fffaf3,#f1e2ce 54%,#fff6e7);--metal-shadow:0 5px 9px #58341032,0 1px 2px #6b3b19a0,inset 0 0 0 1px #fff6cc; background:#eee0cf;color:var(--ink);color-scheme:light}
body{background:radial-gradient(ellipse at 50% 0,#fff8ec,#ead8c4 85%)}
.voter-shell{background:radial-gradient(ellipse at 40% 25%,#fffaf3 0,#f9eedf 62%,#f2e2cf 100%);border-inline:1px solid #d8bd954d;box-shadow:0 22px 80px #5b371d21}
.voter-shell::before{background:repeating-linear-gradient(132deg,#ffffff0b 0 1px,transparent 1px 4px),radial-gradient(ellipse at 7% 1%,#fffaf5 0%,transparent 50%);opacity:.95}
.review-shell{padding:max(16px,env(safe-area-inset-top)) 16px max(10px,env(safe-area-inset-bottom));height:100dvh;min-height:560px;max-width:480px}
.review-shell::after{content:"";position:absolute;pointer-events:none;inset:5px 6px auto;height:56px;border-radius:34px 34px 0 0;border:1px solid #bb8c4480;border-bottom:0;opacity:.38;z-index:0}
.review-shell .topbar{grid-template-columns:44px minmax(0,1fr) 44px;gap:9px;margin:0 2px 19px;z-index:2}
.topbar h1{font-size:clamp(23px,6.1vw,31px);max-width:100%;letter-spacing:-.8px;color:var(--ink);font-weight:800}
.round-icon,.undo-pill{background:var(--gold-face) padding-box,var(--gold-edge) border-box;border:1.5px solid transparent;color:#3d2411;box-shadow:var(--metal-shadow)}
.round-icon{width:44px;height:44px}.round-icon .icon{width:23px;height:23px;stroke-width:2.6}
.round-icon:active{background:var(--gold-face) padding-box,var(--gold-edge) border-box;filter:brightness(.95)}
.review-shell .progress-row{margin:0 3px 17px;gap:13px}.progress-track{height:12px;background:linear-gradient(#c9ab8670,#f6e5d0 75%);border:1px solid #c4a16b80;box-shadow:inset 0 1px 3px #8e602d44,0 1px 0 #fff9e9;overflow:hidden}.progress-fill{min-width:0;background:linear-gradient(180deg,#fff3b6 0%,#d5a246 24%,#a96911 53%,#815115 73%,#f0c96c 100%);box-shadow:inset 0 0 0 1px #f7d98d,0 1px 4px #93602580}.progress-label{font-size:16px;color:#382415;font-weight:750}
.review-shell .photo-stage{margin:0 1px 15px;isolation:isolate}.photo-card{border:2px solid transparent;border-radius:25px;background:linear-gradient(#332615,#332615) padding-box,var(--gold-edge) border-box;box-shadow:0 0 0 .6px #94601a,0 0 0 1.6px #fff7d2,0 6px 15px #643b1740,inset 0 0 0 1px #ffffdf;overflow:hidden}.photo-card img{border-radius:22px}.photo-card .main-photo{object-fit:contain}.photo-card.next-card{border-color:#c8a162;box-shadow:0 3px 10px #64401626}.photo-card .photo-backdrop-img{filter:blur(14px);opacity:.55}
.photo-quick{top:13px;left:12px;gap:8px}.photo-quick .round-icon,.zoom-btn{width:42px;height:42px;background:linear-gradient(150deg,#3a271bd9,#130d08d9) padding-box,var(--gold-edge) border-box;color:#fff7e1;border:1.5px solid transparent;box-shadow:0 2px 7px #25160966,inset 0 0 0 .6px #fff5b75c;backdrop-filter:none}.photo-quick .round-icon .icon,.zoom-btn .icon{width:22px;height:22px;stroke-width:2}.photo-quick .round-icon.is-favorite{background:linear-gradient(145deg,#fff2b8,#d49b32 47%,#a76c18 80%,#d5ac50) padding-box,var(--gold-edge) border-box;color:#fffaf2}.photo-quick .round-icon.is-favorite .icon{fill:#fff3c14d;stroke:#fff9e5}.zoom-btn{right:13px;bottom:13px}
.action-row{gap:9px;margin:0 0 9px}.vote-btn{min-height:79px;border-radius:20px;border:2px solid transparent;box-shadow:var(--metal-shadow),0 6px 10px #6d451825;position:relative;isolation:isolate;font-size:15px;font-weight:750;gap:5px}.vote-btn .icon{width:29px;height:29px;stroke-width:2.2}.vote-btn.delete{background:linear-gradient(143deg,#cb4d42 0%,#a32220 39%,#741611 76%,#b2322c 100%) padding-box,var(--gold-edge) border-box;color:#fffaf0}.vote-btn.keep{background:linear-gradient(143deg,#769d2d 0%,#426c14 43%,#254309 80%,#597b19 100%) padding-box,var(--gold-edge) border-box;color:#fffaf1}.vote-btn.skip{background:var(--gold-face) padding-box,var(--gold-edge) border-box;color:#40250e}.vote-btn.skip .icon{color:#573315}.vote-btn::before{content:"";position:absolute;inset:2px;border:1px solid #fff3cf63;border-radius:16px;pointer-events:none;z-index:-1;background:repeating-linear-gradient(134deg,#fff0cf06 0px 1px,transparent 1px 4px)}.vote-btn.keep.selected,.vote-btn.keep.gesture-active{box-shadow:0 0 0 2px #fff7df,0 0 0 4px #73a52f,0 7px 15px #3d68213b}.vote-btn.delete.selected,.vote-btn.delete.gesture-active{box-shadow:0 0 0 2px #fff4dc,0 0 0 4px #c6443e,0 7px 15px #8e291d3b}.vote-btn.skip.selected,.vote-btn.skip.gesture-active{box-shadow:0 0 0 2px #fff5db,0 0 0 4px #bc8c3c,0 7px 15px #8c612d3b}
.review-utility{min-height:44px;margin-top:1px;gap:8px}.undo-pill{padding:8px 13px;min-height:42px;border-radius:30px;font-size:14px;color:#3c240e;gap:8px}.undo-pill .icon{color:#9d661d;width:22px;height:22px}.undo-pill:disabled{opacity:.55;box-shadow:none}.sync-pill{background:transparent;color:#57432f;font-size:11.5px;font-weight:650;box-shadow:none;min-height:40px}.sync-pill i{background:#c69c4f;box-shadow:inset 0 0 0 .7px #714816}.sync-pill[data-status=saved] i{background:#4c822e;box-shadow:inset 0 0 0 .6px #2e501b}.review-shell .hint{font-size:11.5px;line-height:1.4;color:#725a42;font-weight:650;margin:9px 0 2px}.wedding-seal{display:flex;align-items:center;justify-content:center;gap:10px;opacity:.9;margin:6px 0 0;height:20px;flex-shrink:0}.wedding-seal svg{width:43px;height:22px;filter:drop-shadow(0 1px 1px #78501f35)}.wedding-seal span{height:1px;width:52px;background:linear-gradient(90deg,transparent,#aa792b,#d8ad57)}.wedding-seal span:last-child{transform:rotate(180deg)}
.photo-overlay.keep{background:#39640eb3;border-color:#dbef9a}.photo-overlay.delete{background:#a51b18b7;border-color:#ffc3a8}.photo-overlay.skip{background:#b58a4faa;border-color:#fff1ce}.photo-overlay strong{color:white}
.primary{background:linear-gradient(145deg,#e8bd69,#b47b29 48%,#815018 100%) padding-box,var(--gold-edge) border-box;border:1.5px solid transparent;box-shadow:0 8px 20px #956b3233,inset 0 1px 0 #fff4c680;color:#fffdf5;text-shadow:0 1px 2px #59310c77}.name-input{background:#fffaf1;border-color:#cfb28a;color:var(--ink);box-shadow:inset 0 1px 2px #7147160d}.name-input::placeholder{color:#8a7762}.album-mark::before{background:#dfb56c55}.login-content h1{color:var(--ink)}.login-content p{color:var(--muted)}.sheet,.review-shell .menu,.admin-card,.metric,.album-toolbar,.detail-panel,.detail-panel .card-top{background:#fffaf3;border-color:#e2cdae}.review-shell .menu{border:1px solid #d8bc88;box-shadow:0 15px 30px #5c371e32}.menu button:hover,.secondary:hover,.tab.active{background:#f3e7d0;color:#684417}.secondary,.search,.input-wide{border-color:#dfc9a6}.secondary{background:#fff7e9;color:#65451d}.tabs,.segbar{background:#efe0c9}.admin-shell{background:#f6ebda}.summary-item.keep{background:#e7efd9}.summary-item.keep strong,.summary-item.keep .icon{color:#36601d}.summary-item.delete{background:#f6dfd8}.summary-item.delete strong,.summary-item.delete .icon{color:#9f2824}.summary-item.skip{background:#f0e1c8}.summary-item.skip strong,.summary-item.skip .icon{color:#825b26}.check-mark{background:linear-gradient(150deg,#86ab4a,#426b16);border:2px solid #ffefc4;box-shadow:0 10px 24px #5d772b32}.backup-status{background:#c99c451a}.motion-option input{accent-color:#b58130}.motion-option{border-color:var(--line)}.gallery-photo.picked,.compare-card.picked{box-shadow:0 0 0 2px #b58130,0 8px 24px #b5813027}button:focus-visible,input:focus-visible,select:focus-visible,.photo-card:focus-visible{outline:3px solid #ac7c30;outline-offset:3px}
/* Immersive viewer: gestures live on the viewport, not on the vote card. */
.viewer.wedding-viewer{background:rgba(15,11,8,var(--viewer-bg,1));touch-action:none;overscroll-behavior:none;animation:none;display:block}.viewer-stage{position:absolute;inset:0;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:grab}.viewer-stage:active{cursor:grabbing}.viewer-stage .viewer-image{width:100%;height:100%;max-height:none;object-fit:contain;will-change:transform;pointer-events:none;animation:none;transform-origin:center}.viewer-top{position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));left:14px;right:14px;display:flex;justify-content:space-between;align-items:center;gap:8px;pointer-events:none}.viewer-file{font-size:13px;font-weight:600;color:#fff7e7;max-width:72%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#17100cbf;border-radius:25px;padding:8px 14px;pointer-events:none}.viewer .viewer-close{position:static;pointer-events:auto;background:#2e2119db padding-box,var(--gold-edge) border-box;color:#fff8e8;box-shadow:0 3px 12px #0005}.viewer-bottom{position:absolute;z-index:3;bottom:max(18px,env(safe-area-inset-bottom));left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.viewer-tools{display:flex;align-items:center;background:#21170edb;border:1px solid #bb8e4b;box-shadow:0 4px 16px #0004;border-radius:30px;pointer-events:auto;overflow:hidden}.viewer-tools button{background:none;color:#fff2d8;min-width:46px;height:44px;font-weight:700;font-size:23px}.viewer-tools button[data-z=reset]{font-size:13px;min-width:72px;border-left:1px solid #c2a06a44;border-right:1px solid #c2a06a44}.viewer .viewer-hint{position:static;background:#21170edb;color:#fff0d7;max-width:90%;font-size:12px;line-height:1.4;margin:0;padding:8px 14px;pointer-events:none}
/* Dark mode remains an option: black-tie wedding palette. */
html[data-theme=dark]{--ink:#fff1df;--muted:#c5ad91;--surface:#231b16;--line:#624e36;--purple:#e2b668;--purple-dark:#f4d192;color-scheme:dark;background:#20160f}html[data-theme=dark] body{background:#1b1510}html[data-theme=dark] .voter-shell,html[data-theme=dark] .sheet,html[data-theme=dark] .admin-card,html[data-theme=dark] .metric,html[data-theme=dark] .album-toolbar,html[data-theme=dark] .detail-panel,html[data-theme=dark] .detail-panel .card-top,html[data-theme=dark] .name-input,html[data-theme=dark] .secondary,html[data-theme=dark] .menu,html[data-theme=dark] .person-row,html[data-theme=dark] .admin-photo,html[data-theme=dark] .search{background:#2e241b;color:var(--ink);border-color:#685337}html[data-theme=dark] .voter-shell::before{background:radial-gradient(ellipse at 50% 0,#80521d29,transparent 60%)}html[data-theme=dark] .round-icon,html[data-theme=dark] .undo-pill{background:linear-gradient(145deg,#4b3822,#2a1d10) padding-box,var(--gold-edge) border-box;color:#ffe9c2;border-color:transparent}html[data-theme=dark] .undo-pill .icon{color:#f0c477}html[data-theme=dark] .progress-label,html[data-theme=dark] .hint,html[data-theme=dark] .sync-pill{color:#dcc8ae}html[data-theme=dark] .progress-track{background:#59442e}html[data-theme=dark] .photo-quick .round-icon,html[data-theme=dark] .viewer .round-icon{background:#22170fd9 padding-box,var(--gold-edge) border-box;color:#fff5e1}html[data-theme=dark] .photo-quick .is-favorite{background:linear-gradient(145deg,#c99c43,#8f5d17) padding-box,var(--gold-edge) border-box}html[data-theme=dark] .backup-status{background:#bb8c3e22}html[data-theme=dark] .summary-item.keep{background:#31452a;color:#e5f4d7}html[data-theme=dark] .summary-item.delete{background:#512825;color:#ffddd4}html[data-theme=dark] .summary-item.skip{background:#4b3b28;color:#fbe6c2}html[data-theme=dark] .summary-item.keep strong,html[data-theme=dark] .summary-item.keep .icon{color:#b2d58b}html[data-theme=dark] .summary-item.delete strong,html[data-theme=dark] .summary-item.delete .icon{color:#ff9b8c}html[data-theme=dark] .summary-item.skip strong,html[data-theme=dark] .summary-item.skip .icon{color:#f2ce91}
@media(max-height:700px){.review-shell .topbar{margin-bottom:11px}.review-shell .progress-row{margin-bottom:11px}.review-shell .photo-stage{margin-bottom:10px}.vote-btn{min-height:68px}.review-shell .hint{margin-top:5px}.wedding-seal{height:14px;margin-top:3px}.wedding-seal svg{height:16px}}@media(max-height:580px){.wedding-seal{display:none}.review-shell{min-height:520px}.vote-btn{min-height:61px}.review-shell .hint{font-size:10px}}@media(max-width:355px){.review-shell{padding-inline:11px}.action-row{gap:6px}.vote-btn{font-size:13px;min-height:70px}.sync-pill{font-size:10px}.undo-pill{font-size:12px;padding-inline:9px}.topbar h1{font-size:22px}}
/* Local demo access stays out of the immersive viewer. */
.demo-mode .demo-banner{background:#4c3017;color:#fff4df;z-index:20;box-shadow:0 -1px 5px #62401c22}.demo-mode .demo-banner a{color:#fff1c9}.demo-mode:has(.wedding-viewer) .demo-banner{display:none}
.review-shell .photo-card{cursor:grab}.review-shell .photo-card:focus-visible{outline-offset:3px}
/* Wedding Experience additions, with the existing metallic-gold palette. */
.wedding-hero{position:relative}.monogram{position:absolute;inset:auto 0 -8px;text-align:center;font-size:15px;font-weight:800;letter-spacing:.2em;color:var(--text);text-shadow:0 1px 0 #fff5dc}.wedding-cover,.summary-cover{display:block;width:min(100%,260px);aspect-ratio:16/9;object-fit:cover;margin:12px auto;border:2px solid #ca9a43;border-radius:18px;box-shadow:0 5px 18px #8f611e30}.wedding-date{font-weight:700;letter-spacing:.08em}.wedding-cover{animation:arrive .45s ease-out}.v5-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.wedding-admin-tools{margin:12px 0}.v5-grid .secondary{white-space:normal;min-height:44px;justify-content:center}.moment-row{display:flex;justify-content:space-between;align-items:center;margin:7px 0;text-align:left}.moment-row small{font-variant-numeric:tabular-nums;color:var(--muted)}.moment-admin-list,.collection-list{max-height:50vh;overflow:auto}.wide.search{width:100%;margin:8px 0}.sheet textarea{width:100%;margin-bottom:8px}.sheet .admin-login-label{display:block;margin-top:12px}.sheet progress{width:100%;accent-color:#b7852f;height:10px}.detail-row small{display:block;color:var(--muted);white-space:normal}.summary-shell .summary-body h1{font-size:clamp(24px,6vw,32px)}.menu{max-height:70dvh;overflow-y:auto}.family-grid .gallery-photo,.photo-grid .admin-photo{content-visibility:auto;contain-intrinsic-size:auto 160px}.wedding-cover[hidden],#otp-box[hidden]{display:none}.moment-row,.v5-grid button{touch-action:manipulation}@media(prefers-reduced-motion:reduce){.wedding-cover{animation:none}}
.summary-rings{width:74px;margin:8px auto 0;animation:wedding-rings-enter .65s cubic-bezier(.16,1,.3,1) both}.summary-rings svg{display:block;width:100%;height:auto}.wedding-hero{animation:wedding-rings-enter .55s cubic-bezier(.16,1,.3,1) both}@keyframes wedding-rings-enter{from{opacity:0;transform:translateY(9px) scale(.91)}to{opacity:1;transform:none}}[data-motion=reduced] .summary-rings,[data-motion=reduced] .wedding-hero{animation:none}@media(prefers-reduced-motion:reduce){.summary-rings,.wedding-hero{animation:none}}

/* Fotitos 5.1 — clear gesture onboarding and decision review. */
.state-keep{--state:#26733c;--state-line:#3b9151;--state-bg:#e8f3e3;--state-ink:#205c30;--state-wash:#3eae6612}
.state-delete{--state:#ac2932;--state-line:#c34c51;--state-bg:#fbe9e5;--state-ink:#90232b;--state-wash:#ba242d40}
.state-skip{--state:#986709;--state-line:#d5a52d;--state-bg:#fff2c7;--state-ink:#775009;--state-wash:#e8b92d3b}
.state-pending{--state:#6b6259;--state-line:#b0a291;--state-bg:#f2ede5;--state-ink:#62554a;--state-wash:transparent}
.state-all,.state-favorite{--state:#99641f;--state-line:#c69b54;--state-bg:#f7ead6;--state-ink:#79501b;--state-wash:transparent}
html[data-theme=dark] .state-keep{--state:#b5e3ae;--state-line:#73b970;--state-bg:#243f28;--state-ink:#c9edc0}
html[data-theme=dark] .state-delete{--state:#ffc4bd;--state-line:#e47170;--state-bg:#512928;--state-ink:#ffcec7}
html[data-theme=dark] .state-skip{--state:#ffe094;--state-line:#dbb84d;--state-bg:#493b1c;--state-ink:#ffe8a7}
html[data-theme=dark] .state-pending{--state:#d0c0ad;--state-line:#887b6a;--state-bg:#3c332a;--state-ink:#e3d5c4}
html[data-theme=dark] .state-all,html[data-theme=dark] .state-favorite{--state:#f1ca83;--state-line:#b28b4b;--state-bg:#43321e;--state-ink:#f9d99e}
.gesture-hint{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;flex-shrink:0}
.gesture-help{display:inline-flex;gap:3px;align-items:center;min-height:26px;padding:2px 5px;background:transparent;color:var(--purple-dark);font-weight:800;font-size:12px}
.gesture-help .icon{width:16px;height:16px;flex-shrink:0}
.guide-backdrop{align-items:center;background:#23180db8}
.modal-backdrop .guide-sheet{padding:20px;max-width:440px;max-height:calc(100dvh - 24px);border:1.5px solid #c49a50;box-shadow:0 24px 70px #1e100d70,inset 0 1px 0 #fff7e3}
.guide-sheet [hidden]{display:none!important}
.guide-sheet .sheet-title{margin-bottom:4px}
.guide-sheet .sheet-title h2{font-size:clamp(20px,5.7vw,25px);line-height:1.2;letter-spacing:-.6px}
.guide-intro{font-size:14px;font-weight:550;line-height:1.45;color:var(--muted);margin:3px 0 14px!important}
.gesture-guide{display:grid;gap:8px;margin:14px 0 11px}
.guide-row{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:center;min-height:84px;border-radius:16px;padding:8px 10px;background:var(--state-bg);border:1px solid var(--state-line);color:var(--state-ink)}
.guide-visual{height:66px;position:relative;display:grid;place-items:center;overflow:hidden;isolation:isolate}
.guide-card,.guide-ghost{position:absolute;width:41px;height:53px;top:7px;left:32px;border-radius:7px;border:1.5px solid var(--state-line);overflow:hidden;box-shadow:0 2px 6px #25170920;display:grid;place-items:center}
.guide-ghost{border-style:dashed;opacity:.42;box-shadow:none}
.guide-card{background:var(--state-bg);animation:guide-move 2.4s ease-in-out infinite;transform:translate(var(--gx),var(--gy)) rotate(var(--gr))}
.guide-card img{width:100%;height:100%;object-fit:cover;display:block}
.guide-card::after{content:'';position:absolute;inset:0;background:var(--state-wash)}
.guide-row.state-delete{--gx:-20px;--gy:0px;--gr:-13deg;--ax:0;--ay:28px}
.guide-row.state-keep{--gx:20px;--gy:0px;--gr:13deg;--ax:73px;--ay:28px}
.guide-row.state-skip{--gx:0px;--gy:-7px;--gr:0deg;--ax:72px;--ay:3px}
.guide-arrow{position:absolute;left:var(--ax);top:var(--ay);width:29px;height:29px;border-radius:50%;background:var(--state-bg);border:1px solid var(--state-line);color:var(--state-ink);display:grid;place-items:center;box-shadow:0 2px 5px #24180d1a}
.guide-arrow .icon{width:21px;height:21px;stroke-width:2.7}
.guide-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.guide-copy small{font-size:12px;line-height:1.25;font-weight:650}
.guide-copy strong{display:flex;align-items:center;gap:6px;font-size:19px;line-height:1.2;letter-spacing:-.4px}
.guide-copy strong .icon{width:21px;height:21px;flex-shrink:0}
.guide-tip{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--muted);margin:8px 0}
.guide-tip .icon{width:19px;height:19px;color:var(--purple-dark);flex-shrink:0}
.guide-practice{width:100%;margin:3px 0 0;min-height:40px}
.guide-foot{font-size:11px;text-align:center;color:var(--muted);margin:0!important;line-height:1.4}
@keyframes guide-move{0%,10%{transform:translate(0,0) rotate(0)}35%,78%{transform:translate(var(--gx),var(--gy)) rotate(var(--gr))}95%,100%{transform:translate(0,0) rotate(0)}}
[data-motion=reduced] .guide-card,[data-motion=minimal] .guide-card{animation:none}
@media(prefers-reduced-motion:reduce){.guide-card{animation:none}}
.decision-sheet .sheet-title{margin-bottom:8px}
.review-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}
.review-filter{display:flex;align-items:center;gap:6px;min-width:0;min-height:42px;border:1.5px solid var(--line);background:var(--surface);border-radius:12px;padding:7px 8px;color:var(--ink);font-size:12px;font-weight:650;transition:background .15s,border-color .15s,transform .15s}
.review-filter .icon{width:17px;height:17px;color:var(--state);flex:0 0 17px}
.review-filter b{margin-left:auto;font-size:11px;min-width:21px;padding:3px;border-radius:7px;text-align:center;background:var(--state-bg);color:var(--state-ink);font-variant-numeric:tabular-nums}
.review-filter[aria-pressed=true]{border-color:var(--state-line);background:var(--state-bg);color:var(--state-ink);box-shadow:inset 0 0 0 .5px var(--state-line)}
.review-filter:active{transform:scale(.97)}
.review-filter:focus-visible,.gallery-photo:focus-visible,.gesture-help:focus-visible{outline:3px solid var(--purple);outline-offset:2px}
.review-tools{margin:9px 0;flex-wrap:nowrap;gap:6px}
.review-tools select{min-width:0;width:100%;flex:1 1 0;font-size:12px}
.review-tools button{font-size:12px;padding:8px;flex-shrink:0}
.review-tools button .icon{width:18px;height:18px}
.review-instruction{font-size:13px;color:var(--muted);margin:8px 0!important}
.review-count{font-size:11px;font-weight:700;color:var(--muted);margin:6px 0!important}
.decision-grid{gap:9px;max-height:none;overflow:visible;padding:2px 1px 6px;align-items:start}
.decision-grid .gallery-photo{display:block;background:var(--state-bg);color:var(--state-ink);border:2px solid var(--state-line);border-radius:12px;content-visibility:visible;contain-intrinsic-size:none;box-shadow:0 3px 8px #35220e12;isolation:isolate}
.gallery-thumb{position:relative;overflow:hidden;aspect-ratio:1/1;background:var(--state-bg)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s,filter .2s}
.state-tint{position:absolute;inset:0;pointer-events:none;background:var(--state-wash)}
.decision-grid .state-keep .gallery-thumb img{opacity:1;filter:none}
.decision-grid .state-delete .gallery-thumb img{opacity:.57;filter:saturate(.55)}
.decision-grid .state-skip .gallery-thumb img{opacity:.87;filter:saturate(.83)}
.decision-grid .state-pending .gallery-thumb img{opacity:1}
.decision-grid .state-keep .state-tint,.decision-grid .state-pending .state-tint{background:transparent}
.state-icon,.tile-star{position:absolute;display:grid;place-items:center;top:5px;left:5px;width:29px;height:29px;border-radius:50%;color:var(--state-ink);background:var(--state-bg);border:1.5px solid var(--state-line);box-shadow:0 2px 5px #0002;pointer-events:none}
.state-icon .icon,.tile-star .icon{width:17px;height:17px;stroke-width:2.4}
.tile-star{left:auto;right:5px;background:#fff1bd;color:#815208;border-color:#c79329;width:23px;height:23px}
.tile-star .icon{width:14px;height:14px;fill:#edbc48}
.decision-grid .pick-dot{top:auto;bottom:5px;right:5px;color:#fff;background:#7d501a;box-shadow:0 0 0 2px #ffedbc}
.gallery-status{display:block;font-size:12px;font-weight:800;line-height:1.25;padding:5px 5px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-filename{display:block;font-size:10px;line-height:1.2;padding:2px 5px 6px;color:var(--state-ink);opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-empty{grid-column:1/-1;text-align:center;padding:20px 0}
.edit-state{display:flex;align-items:center;gap:7px;padding:10px 12px;background:var(--state-bg);border:1px solid var(--state-line);color:var(--state-ink);border-radius:12px;margin:8px 0;font-size:13px}
.edit-state .icon{width:20px;height:20px}
@media(min-width:420px){.review-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.review-filter{font-size:11px;padding:7px 6px;gap:4px}.review-filter .icon{width:15px;height:15px;flex-basis:15px}}
@media(max-width:355px){.modal-backdrop .guide-sheet{padding:14px}.guide-row{grid-template-columns:90px minmax(0,1fr);gap:6px;padding:6px;min-height:78px}.guide-copy strong{font-size:17px}.guide-copy small{font-size:11px}.guide-visual{transform:scale(.86);transform-origin:left center}.decision-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:620px){.gesture-guide{gap:5px;margin:8px 0}.guide-row{min-height:68px;padding:4px 8px}.guide-intro{margin-bottom:5px!important}.guide-tip{margin:5px 0}}

/* 5.2 — quiet, action-first experience. Gold identity and state colors remain. */
.modal-backdrop .guide-sheet{padding:16px;max-width:440px}
.guide-sheet .sheet-title{margin:0;padding-bottom:4px}
.guide-sheet .sheet-title h2{font-size:clamp(20px,5.5vw,24px)}
.gesture-guide{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 12px}
.guide-row{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:0;padding:8px 3px 10px;border-radius:14px;text-align:center}
.guide-visual{width:100%;max-width:100px;height:76px;transform:none;flex:0 0 76px}
.guide-card,.guide-ghost{width:40px;height:54px;left:calc(50% - 20px);top:14px;border-radius:7px}
.guide-row.state-delete{--gx:-13px;--gy:0px;--gr:-12deg}
.guide-row.state-keep{--gx:13px;--gy:0px;--gr:12deg}
.guide-row.state-skip{--gx:0px;--gy:-11px;--gr:0deg}
.guide-arrow{width:28px;height:28px;top:34px;left:1px}
.guide-row.state-keep .guide-arrow{left:auto;right:1px}
.guide-row.state-skip .guide-arrow{left:auto;right:1px;top:1px}
.guide-copy{align-items:center;gap:4px;width:100%}
.guide-copy small{font-size:11px;font-weight:600}
.guide-copy strong{justify-content:center;gap:3px;font-size:clamp(11px,3.4vw,15px);letter-spacing:-.3px;white-space:nowrap}
.guide-copy strong .icon{width:15px;height:15px;flex:0 0 15px}
.guide-tips{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px;font-weight:650;margin:0 0 6px}
.guide-tips span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.guide-tips .icon{width:17px;height:17px;color:var(--purple-dark)}
.guide-sheet .primary{margin-top:5px;min-height:48px}
.guide-practice{min-height:40px;display:flex;align-items:center;justify-content:center;gap:6px;margin:0 auto}
.guide-practice .icon{width:16px;height:16px}
.guide-foot{font-size:10.5px;line-height:1.35}
.practice-actions [data-practice]:not(.practice-target){opacity:.55}
.practice-actions .practice-target{box-shadow:0 0 0 3px #d1a34f99,0 5px 12px #6b441b22}
.simple-list{display:grid;gap:7px;margin:8px 0}
.simple-list button.secondary{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left;width:100%;min-height:48px;padding:10px 12px}
.simple-list button span{flex:1;min-width:0}
.simple-list button .icon:last-child{width:16px;height:16px;opacity:.65}
.simple-list .icon{width:21px;height:21px;flex-shrink:0}
.install-step{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:13px;border-radius:12px;color:var(--ink);font-size:13px;line-height:1.5}
.install-step>.icon{color:var(--purple-dark)}
.compact-summary{padding:24px 16px;justify-content:center}
.compact-summary .summary-body{position:relative;padding:8px 0}
.compact-summary .summary-more{position:absolute;right:0;top:0;z-index:2}
.compact-summary .check-mark{width:78px;height:78px;margin:12px auto 8px}
.compact-summary .check-mark .icon{width:46px;height:46px}
.compact-summary .summary-rings{width:54px;margin:6px auto 4px}
.compact-summary .summary-cover{width:min(64%,220px);max-height:110px;margin:8px auto}
.compact-summary h1{font-size:clamp(22px,6vw,29px);line-height:1.16;margin:10px auto;max-width:330px}
.compact-summary .summary-progress{font-size:13px;font-weight:650;margin:4px 0 16px;color:var(--muted)}
.compact-summary .summary-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 15px}
.compact-summary .summary-item{min-width:0;flex-direction:column;align-items:center;gap:5px;text-align:center;border:1px solid var(--state-line);background:var(--state-bg);color:var(--state-ink);border-radius:14px;padding:10px 2px;font-size:12px;transition:transform .15s}
.compact-summary .summary-item:active{transform:scale(.95)}
.compact-summary .summary-item strong{margin:0;font-size:25px;line-height:1;font-variant-numeric:tabular-nums;color:inherit}
.compact-summary .summary-item .icon{width:24px;height:24px;color:inherit}
.compact-summary .summary-item span{font-size:11px;line-height:1.2;color:inherit;font-weight:700}
.compact-summary #review-all{display:flex;justify-content:center;gap:9px;min-height:48px;margin:0 0 8px}
.compact-summary #review-all .icon:last-child{width:17px;height:17px}
.compact-summary #finish{min-height:50px;margin:0}
.summary-utilities{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px 0 0}
.summary-utilities button{min-height:42px;font-size:13px;flex:1;min-width:0}
.summary-utilities .secondary{border-radius:24px;display:flex;align-items:center;justify-content:center;gap:6px}
.compact-summary .summary-sync{min-height:36px;margin:4px auto}
.decision-sheet .review-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:7px 0}
.decision-sheet .review-filter{min-height:42px;gap:4px;padding:6px 4px;font-size:11px;white-space:nowrap}
.decision-sheet .review-filter .icon{width:15px;height:15px;flex:0 0 15px}
.decision-sheet .review-filter b{font-size:10px;min-width:15px;padding:2px}
.decision-grid{gap:7px}
.decision-grid .gallery-photo{padding:0;border-radius:10px}
.decision-grid .gallery-thumb{aspect-ratio:1/1.08}
.photo-detail-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:9px 0}
.photo-detail-actions .secondary{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:64px;padding:8px 2px;font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.photo-detail-actions .icon{width:21px;height:21px}
.photo-detail-actions .active{border-color:var(--purple);color:var(--purple-dark);box-shadow:inset 0 0 0 1px var(--purple)}
.photo-file-details{font-size:11px;color:var(--muted);margin:8px 0;text-align:center;overflow-wrap:anywhere}
.photo-file-details summary{cursor:pointer;min-height:25px}
.extra-options{margin:12px 0 0;border-top:1px solid var(--line);padding-top:10px;color:var(--muted);font-size:13px}
.extra-options summary{cursor:pointer;min-height:36px;font-weight:700;color:var(--purple-dark)}
.backup-status{margin-bottom:8px}
#backup-retry[hidden]{display:none!important}
@media(max-width:355px){.modal-backdrop .guide-sheet{padding:12px}.gesture-guide{gap:4px}.guide-copy strong{gap:2px;font-size:11px}.guide-copy strong .icon{width:13px;height:13px;flex-basis:13px}.guide-tips{gap:8px;font-size:10px}.decision-sheet .review-filter{font-size:10px;padding:5px 3px;gap:2px}.decision-sheet .review-filter .icon{width:12px;height:12px;flex-basis:12px}.decision-sheet .decision-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 5.3.1: one gesture at a time, plus a real, isolated undo exercise. */
.training-sheet .sheet-title{padding-bottom:0}.training-header{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:650;gap:8px}.training-progress{display:flex;gap:5px;margin:8px 0 14px}.training-progress i{height:4px;flex:1;border-radius:8px;background:var(--line)}.training-progress .filled{background:var(--gold-edge,#b58130)}.training-copy{text-align:center;display:grid;gap:5px;margin-bottom:12px}.training-copy strong{font-size:clamp(18px,5vw,23px);line-height:1.2}.training-copy span{font-size:14px;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted)}.training-copy .icon{width:20px;height:20px;color:var(--purple)}.training-stage{height:clamp(155px,32dvh,280px);position:relative;display:grid;place-items:center;overflow:hidden;touch-action:none;background:var(--surface);border:1px solid var(--line);border-radius:20px;isolation:isolate;--tc:#926510;--tx:0px;--ty:-62px}.training-stage[data-choice=keep]{--tc:#277742;--tx:72px;--ty:0px}.training-stage[data-choice=delete]{--tc:#a62f35;--tx:-72px;--ty:0px}.training-stage[data-choice=undo]{--tc:#b58130}.training-ghost,.training-card{position:absolute;width:min(48%,190px);height:84%;border-radius:15px}.training-ghost{border:2px dashed var(--tc);opacity:.3}.training-card{background:var(--surface);border:2px solid var(--tc);overflow:hidden;box-shadow:0 8px 20px #4d2e1430;cursor:grab;touch-action:none;will-change:transform,opacity}.training-card img{width:100%;height:100%;object-fit:cover;pointer-events:none}.training-card #practice-symbol{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(transparent,#0003);pointer-events:none}.training-card #practice-symbol .icon{width:54px;height:54px;color:white;filter:drop-shadow(0 2px 5px #000a)}.training-hand{position:absolute;left:50%;top:62%;width:43px;height:43px;pointer-events:none;opacity:0;transform:translate(-50%,-10%);filter:drop-shadow(0 2px 3px #0005)}.training-hand svg{width:100%;height:100%}.demonstrating .training-hand{animation:training-hand-move 1.3s ease-in-out both}@keyframes training-hand-move{0%,100%{opacity:0;transform:translate(-50%,-10%)}13%{opacity:1;transform:translate(-50%,-10%)}52%,70%{opacity:1;transform:translate(calc(-50% + var(--tx)),calc(-10% + var(--ty)))}90%{opacity:0}}.training-sheet .practice-actions{margin:12px 0 8px}.training-sheet .practice-actions .vote-btn{min-height:58px}.training-sheet .practice-target{outline:3px solid var(--tc,#b58130);outline-offset:2px}.training-undo-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px}.training-undo-row [role=status]{color:var(--muted);font-size:12px;font-weight:650;text-align:right}.training-undo-row .undo-spotlight{outline:3px solid #e0b65e;outline-offset:4px;animation:training-pulse 1.25s ease-in-out infinite;box-shadow:0 0 0 8px #e8c77735}.undo-stage:not(.training-restored) .training-card{opacity:.45!important}.undo-stage:not(.training-restored) .training-ghost{opacity:.15}.training-restored{--tc:#287f42!important}.training-sheet .text-btn{display:block;margin:6px auto 0;min-height:38px}.training-sheet [hidden]{display:none!important}.training-sheet .primary{margin-top:8px}.training-sheet .sheet-title h2{font-size:21px}.training-sheet .practice-actions .icon{width:24px;height:24px}@keyframes training-pulse{50%{box-shadow:0 0 0 12px #e8c77720}}@media(max-height:620px){.training-stage{height:155px}.training-copy{margin-bottom:8px}.training-progress{margin:5px 0 8px}.training-sheet .practice-actions{margin:9px 0 5px}.training-sheet .practice-actions .vote-btn{min-height:50px}}@media(prefers-reduced-motion:reduce){.training-hand{animation:none!important}.training-undo-row .undo-spotlight{animation:none!important}}

.training-stage,.training-card,.training-card img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}

/* v5.3.2 drag color + stronger spotlight */
.photo-card{transition:box-shadow 120ms ease,filter 120ms ease,background 120ms ease;}
.photo-card::after{content:'';position:absolute;inset:0;border-radius:23px;pointer-events:none;opacity:0;z-index:2;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.03));transition:opacity 90ms ease,background 90ms ease,box-shadow 90ms ease;mix-blend-mode:screen;}
.photo-card.dragging::after{opacity:clamp(.18,var(--drag-strength,0),.72);box-shadow:inset 0 0 0 2px rgba(255,255,255,.35);}
.photo-card.dragging[data-drag-choice='keep']::after{background:linear-gradient(180deg,rgba(98,210,117,.45),rgba(20,138,54,.58));}
.photo-card.dragging[data-drag-choice='delete']::after{background:linear-gradient(180deg,rgba(255,108,116,.42),rgba(173,27,23,.62));}
.photo-card.dragging[data-drag-choice='skip']::after{background:linear-gradient(180deg,rgba(245,210,116,.44),rgba(179,129,43,.62));}
.photo-card.dragging .main-photo{transform:scale(calc(1 + var(--drag-strength,0)*.035));filter:saturate(calc(1 + var(--drag-strength,0)*.16)) contrast(calc(1 + var(--drag-strength,0)*.06));transition:transform 60ms linear,filter 60ms linear;}
.photo-card.dragging[data-drag-choice='keep']{box-shadow:0 18px 42px rgba(44,111,38,.28),0 0 0 1px rgba(124,195,109,.3);}
.photo-card.dragging[data-drag-choice='delete']{box-shadow:0 18px 42px rgba(134,31,31,.28),0 0 0 1px rgba(222,103,103,.28);}
.photo-card.dragging[data-drag-choice='skip']{box-shadow:0 18px 42px rgba(146,101,16,.28),0 0 0 1px rgba(232,197,109,.28);}
.photo-overlay{backdrop-filter:saturate(calc(1 + var(--gesture-strength,0)*.7));transition:opacity 90ms ease, transform 120ms ease;}
.photo-overlay .icon,.photo-overlay strong,.overlay-arrow{transform:translateY(calc((1 - var(--gesture-strength,0))*8px)) scale(calc(.88 + var(--gesture-strength,0)*.16));transition:transform 90ms ease;}
.photo-overlay.armed .icon{animation:heartpop .42s cubic-bezier(.2,1.2,.2,1);}
.vote-btn.gesture-active{transform:translateY(-2px) scale(calc(1 + var(--strength,0)*.06));filter:saturate(calc(1 + var(--strength,0)*.18));}

/* 5.3.4 — viewport-level coach mark, single real target and animated gesture tint. */
.training-undo-row{position:relative;min-height:48px;padding:0;align-items:center;gap:8px}
.training-undo-row .undo-pill{margin:0;min-height:44px}
.training-undo-row .undo-spotlight{outline:none;box-shadow:none;animation:none}
.training-card{overflow:hidden;isolation:isolate}
.practice-tint{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;transition:opacity 80ms linear}
.training-card[data-tint=keep] .practice-tint{background:linear-gradient(155deg,#52b95a99,#247738bd)}
.training-card[data-tint=delete] .practice-tint{background:linear-gradient(155deg,#e3606099,#a51e24c7)}
.training-card[data-tint=skip] .practice-tint{background:linear-gradient(155deg,#f3c64d99,#b17a0ec9)}
.training-card #practice-symbol{z-index:2}
.training-stage[data-choice=keep]{background:linear-gradient(180deg,#eef8ee,#ddefd8);border-color:#8dc28d}
.training-stage[data-choice=delete]{background:linear-gradient(180deg,#fcedec,#f7d7d5);border-color:#df9a96}
.training-stage[data-choice=skip]{background:linear-gradient(180deg,#fff6e2,#f5e2ae);border-color:#d7b265}
html[data-theme=dark] .training-stage[data-choice=keep]{background:#263e24;border-color:#678c59}
html[data-theme=dark] .training-stage[data-choice=delete]{background:#462421;border-color:#9c544d}
html[data-theme=dark] .training-stage[data-choice=skip]{background:#40321a;border-color:#a9894a}
.undo-coach-layer{position:fixed;inset:0;z-index:2000;pointer-events:none;animation:surface-enter .24s ease-out}
.undo-coach-shade{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
.undo-coach-shade path{fill:rgba(15,10,6,.69);pointer-events:fill;touch-action:none}
.undo-coach-ring{position:absolute;border:2px solid #ffdf88;box-shadow:0 0 9px 2px #ffd774,0 0 26px 6px #efb84a66,inset 0 0 7px #ffe8a8;pointer-events:none}
.undo-coach-ring::after{content:'';position:absolute;inset:-3px;border:1px solid #ffda80;border-radius:inherit;animation:coach-ripple 1.7s ease-out infinite}
@keyframes coach-ripple{0%{transform:scale(1);opacity:.8}90%,100%{transform:scale(1.35,1.65);opacity:0}}
.undo-coach-copy{position:absolute;display:grid;gap:3px;padding:12px 13px;border-radius:17px;background:linear-gradient(145deg,#fff8e9,#f2dfb9);border:1.5px solid #e1b351;color:#563410;box-shadow:0 8px 28px #0006;font-size:14px;line-height:1.25;text-align:center;pointer-events:none}
.undo-coach-copy strong{font-weight:800;font-size:15px}.undo-coach-copy span{font-weight:700}
.undo-coach-copy::before{content:'';width:12px;height:12px;background:#fff4dc;position:absolute;border-left:1.5px solid #e1b351;border-bottom:1.5px solid #e1b351;transform:rotate(45deg);left:-8px;top:calc(50% - 6px)}
.undo-coach-copy[data-side=above]::before{left:calc(var(--arrow-x) - 6px);top:auto;bottom:-8px;transform:rotate(-45deg)}
.undo-coach-copy[data-side=below]::before{left:calc(var(--arrow-x) - 6px);top:-8px;transform:rotate(135deg)}
.undo-coach-hand{position:absolute;width:54px;height:58px;pointer-events:none;filter:drop-shadow(0 4px 5px #0007);animation:coach-tap 1.3s ease-in-out infinite;transform-origin:10% 10%}
.undo-coach-hand svg{width:100%;height:100%;display:block}
@keyframes coach-tap{0%,100%{transform:translate(5px,7px) scale(1)}48%{transform:translate(-2px,-3px) scale(.91)}65%{transform:translate(0,0) scale(1)}}
@media(prefers-reduced-motion:reduce){.undo-coach-layer,.undo-coach-ring::after,.undo-coach-hand{animation:none!important}}


/* 5.3.6 — Luxury wedding achievement, full central focus, automatic dismissal. */
.training-celebration{position:fixed;inset:0;z-index:2100;display:grid;place-items:center;padding:72px 14px 20px;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#241a1129,#20170d12 65%,transparent);touch-action:none;animation:achievement-layer-in .22s ease-out both}
.achievement-card{position:relative;width:min(440px,100%);margin:0;isolation:isolate;animation:achievement-arrive .48s cubic-bezier(.17,1.2,.35,1) both;transform-origin:50% 58%;}
.achievement-face{position:relative;overflow:hidden;min-width:0;padding:48px 34px 17px;border:3px solid transparent;border-radius:clamp(25px,7vw,40px);background:radial-gradient(ellipse at 50% 0%,#30364e 0%,#191d31 42%,#101526 100%) padding-box,linear-gradient(128deg,#8c5116 0%,#d9a74b 14%,#fff1b2 24%,#fff9df 31%,#d59a37 44%,#9e5d19 57%,#f9d47d 67%,#fff5c2 75%,#bd781d 89%,#f7d484 100%) border-box;box-shadow:0 0 0 1px #ffebaf,0 0 21px 4px #ffcd6966,0 18px 42px #140d06a0,inset 0 0 0 1px #eec77d8c,inset 0 -6px 26px #090c18;}
.achievement-face::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 14px #f4c15d33;pointer-events:none;}
.achievement-title{position:relative;z-index:1;font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:700;font-size:clamp(29px,9.2vw,47px);line-height:1.03;letter-spacing:-1px;text-align:center;color:#fff0c9;text-shadow:0 1px 0 #fff9df,0 3px 0 #6c4a25,0 5px 10px #000b;}
.achievement-medal{position:absolute;z-index:3;top:-66px;left:50%;width:128px;height:130px;transform:translateX(-50%);filter:drop-shadow(0 4px 7px #160e08a0);animation:achievement-medal-pop .55s cubic-bezier(.2,1.15,.28,1) both;}
.achievement-medal::before{content:'';position:absolute;inset:-21px -32px 4px;background:radial-gradient(ellipse at 50% 47%,#fff9d1c9,#ffc75a66 30%,transparent 70%);z-index:-1;animation:achievement-glow 1.25s ease-out both;}
.achievement-medal svg{width:100%;height:100%;overflow:visible;}
.achievement-laurels{position:absolute;inset:45px 11px 26px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;}
.celebration-laurel{width:35px;height:92px;opacity:.95;filter:drop-shadow(0 2px 2px #0006);}
.celebration-laurel:last-child{transform:scaleX(-1);}
.achievement-footer{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;margin:11px auto 0;max-width:245px;}
.achievement-footer svg{width:62px;height:35px;filter:drop-shadow(0 2px 2px #0008);}
.achievement-footer i{height:2px;flex:1;background:linear-gradient(90deg,transparent,#f8d989);border-radius:2px;}
.achievement-footer i:last-child{transform:rotate(180deg);}
.achievement-effects{position:absolute;inset:0;pointer-events:none;z-index:4;}
.achievement-spark{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);background:#fff5c5;clip-path:polygon(50% 0,59% 40%,100% 50%,59% 59%,50% 100%,41% 59%,0 50%,41% 40%);animation:achievement-twinkle 1.1s ease-in-out var(--delay) both;}
.achievement-confetti{position:absolute;left:50%;top:12%;width:7px;height:12px;background:linear-gradient(135deg,#fff1b6,#d9a347 60%,#fff2bc);border-radius:1px;opacity:0;animation:achievement-confetti 1.15s cubic-bezier(.12,.65,.4,1) var(--delay) both;}
.achievement-confetti:nth-child(3n){width:10px;height:10px;}
.celebration-leaving{animation:achievement-layer-out .21s ease-in both;}
@keyframes achievement-layer-in{from{opacity:0}to{opacity:1}}
@keyframes achievement-layer-out{to{opacity:0}}
@keyframes achievement-arrive{0%{opacity:0;transform:scale(.70) translateY(16px)}65%{opacity:1;transform:scale(1.025)}100%{opacity:1;transform:scale(1)}}
@keyframes achievement-medal-pop{0%{transform:translateX(-50%) scale(.5) rotate(-12deg);opacity:0}65%{transform:translateX(-50%) scale(1.12) rotate(3deg);opacity:1}100%{transform:translateX(-50%) scale(1)}}
@keyframes achievement-glow{0%{opacity:.25;transform:scale(.65)}45%{opacity:1;transform:scale(1.1)}100%{opacity:.55;transform:scale(1)}}
@keyframes achievement-twinkle{0%{transform:scale(.15);opacity:0}38%{transform:scale(1.6);opacity:1}72%{transform:scale(.55);opacity:.5}100%{transform:scale(1);opacity:.9}}
@keyframes achievement-confetti{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}20%{opacity:1}68%{opacity:.95}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}
.celebration-calm,.celebration-calm *,.celebration-calm *::before{animation:none!important;}
.celebration-minimal .achievement-effects{display:none}.celebration-minimal .achievement-card,.celebration-minimal .achievement-medal{animation-duration:.18s}
@media(max-width:375px){.achievement-face{padding:41px 23px 14px}.achievement-title{font-size:clamp(25px,9.4vw,35px);letter-spacing:-.8px}.achievement-medal{width:111px;height:112px;top:-58px}.achievement-laurels{inset:40px 7px 23px}.celebration-laurel{width:24px;height:72px}.achievement-footer{margin-top:7px}.achievement-footer svg{height:29px}}
@media(max-height:430px){.training-celebration{padding-top:56px;padding-bottom:12px}.achievement-face{padding-top:34px;padding-bottom:10px}.achievement-medal{width:92px;height:95px;top:-49px}.achievement-title{font-size:clamp(25px,7.5vw,39px)}.achievement-footer{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.training-celebration,.training-celebration *,.training-celebration *::before{animation:none!important}}
