:root{
  --primary:#6663FC;--primary-dark:#4B48D9;--primary-light:#EEEFFE;--primary-xlight:#F6F5FF;
  --dark:#1C1B3A;--text:#2D2B55;--muted:#6B6894;--border:#E2E0F5;--surface:#FFFFFF;--ground:#F6F5FF;
  --ok:#1F9D6B;--ok-bg:#E4F6EE;--gold:#C98A12;--gold-bg:#FCF2DC;--err:#C43D3D;
  --shadow:0 4px 16px rgba(102,99,252,.12);
  --f-title:"Outfit","Degular",system-ui,sans-serif;
  --f-body:"Sofia Sans","Sofia Pro",system-ui,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root{
  color-scheme:dark;--primary:#8D8BFF;--primary-dark:#A9A7FF;--primary-light:#2A2860;--primary-xlight:#1A1938;
  --dark:#F1F0FF;--text:#DAD8F5;--muted:#A3A0CC;--border:#34325E;--surface:#1F1E42;--ground:#141330;
  --ok:#4CD39C;--ok-bg:#163A2E;--gold:#F0B94A;--gold-bg:#3A2E14;--err:#FF8A8A;--shadow:0 4px 16px rgba(0,0,0,.35);}}
*{box-sizing:border-box}
html,body{margin:0;background:var(--ground)}
body{color:var(--text);font-family:var(--f-body);font-size:16px;line-height:1.45;-webkit-text-size-adjust:100%}
.app{max-width:440px;margin:0 auto;padding-inline:16px;padding-block:calc(16px + env(safe-area-inset-top,0px)) calc(32px + env(safe-area-inset-bottom,0px))}
h1,h2,h3{font-family:var(--f-title);color:var(--dark);margin:0;text-wrap:balance}
h1{font-size:26px;font-weight:700}
h2{font-size:20px;font-weight:700}
h3{font-size:16px;font-weight:600}
p{margin:0}
.muted{color:var(--muted);font-size:14px}
.eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--primary)}
.stack{display:flex;flex-direction:column;gap:16px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:20px}
button{font:600 16px var(--f-body);border:0;border-radius:9999px;padding:14px 20px;cursor:pointer;transition:background .2s,transform .1s;display:inline-flex;align-items:center;justify-content:center;gap:8px;-webkit-tap-highlight-color:transparent}
button:active{transform:scale(.98)}
button:disabled{opacity:.6;cursor:default}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark)}
.btn-ghost{background:transparent;color:var(--primary);padding:8px 4px}
.full{width:100%}
.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.brand{font-family:var(--f-title);font-weight:700;color:var(--primary);font-size:15px;letter-spacing:.02em}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.action{background:var(--primary);color:#fff;border-radius:24px;padding:20px 16px;text-align:left;flex-direction:column;align-items:flex-start;gap:14px;min-height:150px;justify-content:space-between;box-shadow:var(--shadow)}
.action.alt{background:var(--dark);color:var(--ground)}
.action svg{width:32px;height:32px}
.action b{font-family:var(--f-title);font-size:19px;line-height:1.15}
.action span{font-size:13px;font-weight:400;opacity:.85}
.bar{height:8px;background:var(--primary-light);border-radius:9999px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--primary);border-radius:inherit}
.bar-lbl{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.strip{display:flex;gap:14px;align-items:center;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:16px}
.strip .sm{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.streak{display:inline-flex;gap:4px;align-items:center;font-size:13px;font-weight:700;color:var(--gold);background:var(--gold-bg);border-radius:9999px;padding:5px 10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.feed ul{list-style:none;margin:0;padding:0}
.feed li{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--border)}
.feed li:first-child{border-top:0}
.ico{width:36px;height:36px;border-radius:10px;background:var(--primary-light);color:var(--primary);display:grid;place-items:center;flex:none}
.ico svg{width:18px;height:18px}
.feed .t{min-width:0}
.feed .t p:first-child{font-weight:600;color:var(--dark);font-size:15px;overflow-wrap:anywhere}
label{font-weight:600;color:var(--dark);font-size:15px;display:block;margin-bottom:6px}
input[type=tel],input[type=text],textarea{width:100%;font:400 17px var(--f-body);color:var(--text);background:var(--surface);border:1.5px solid var(--border);border-radius:14px;padding:14px}
input[type=tel]{font-size:24px;letter-spacing:.06em;font-variant-numeric:tabular-nums;font-weight:600}
textarea{min-height:110px;resize:vertical;line-height:1.4;font-size:16px}
.hint{font-size:13px;color:var(--muted);margin-top:6px}
.hint.err{color:var(--err)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font:600 14px var(--f-body);background:var(--surface);color:var(--text);border:1.5px solid var(--border);border-radius:9999px;padding:8px 14px}
.chip[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:#fff}
.shead{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.back{width:40px;height:40px;padding:0;border-radius:50%;background:var(--surface);color:var(--dark);border:1px solid var(--border)}
.tips{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tip{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px}
.tip svg{width:26px;height:26px;color:var(--primary)}
.tip b{font-size:14px;color:var(--dark)}
.tip span{font-size:13px;color:var(--muted);line-height:1.35}
.thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.thumb{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--primary-light);max-width:100%}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .tag{position:absolute;left:6px;bottom:6px;font-size:11px;font-weight:700;background:rgba(28,27,58,.8);color:#fff;border-radius:6px;padding:4px 7px}
.thumb .rm{position:absolute;right:6px;top:6px;width:28px;height:28px;padding:0;border-radius:50%;background:rgba(28,27,58,.8);color:#fff;font-size:16px}
.thumb.sent::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;background:rgba(31,157,107,.55);color:#fff;font-size:28px;font-weight:700}
.add-tile{aspect-ratio:1;border-radius:12px;border:2px dashed var(--border);color:var(--primary);background:transparent;font-size:13px;font-weight:600;flex-direction:column;gap:4px;padding:6px;text-align:center}
.win{text-align:center;padding:28px 20px;align-items:center}
.check{width:56px;height:56px;border-radius:50%;background:var(--ok-bg);color:var(--ok);display:grid;place-items:center}
.center{text-align:center;padding-top:48px}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--dark);color:var(--ground);padding:10px 16px;border-radius:9999px;font-size:14px;font-weight:600;max-width:calc(100% - 32px);text-align:center}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
