:root{
  color-scheme:dark;
  --bg:#0a0c0a;
  --panel:#111511;
  --panel-2:#171c17;
  --line:rgba(255,255,255,.12);
  --text:#f4f7ef;
  --muted:#a3ab9c;
  --lime:#d9ff63;
  --lime-soft:rgba(217,255,99,.13);
  --yellow:#f2cf63;
  --yellow-soft:rgba(242,207,99,.13);
  --red:#ff7b6f;
  --red-soft:rgba(255,123,111,.12);
  --green:#7be4a5;
  --shadow:0 18px 48px rgba(0,0,0,.28);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Yu Gothic UI","Yu Gothic",sans-serif;
}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;min-height:100svh;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button{touch-action:manipulation}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid rgba(217,255,99,.55);outline-offset:3px}
.app-shell{width:min(100%,640px);min-height:100svh;margin:0 auto;padding:max(14px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));display:flex;flex-direction:column}
.topbar{height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-link{color:var(--text);text-decoration:none;font-size:13px;font-weight:950;letter-spacing:.16em}
.top-actions{display:flex;align-items:center;gap:8px;margin-right:58px}
.text-button{border:1px solid var(--line);background:#ffffff08;color:var(--text);min-height:42px;padding:0 14px;border-radius:14px;font-weight:850;cursor:pointer}
.app-main{flex:1;display:flex;flex-direction:column;padding:16px 0 10px}
.screen{width:100%;animation:screen-in .2s ease both}
.eyebrow{font-size:12px;font-weight:950;letter-spacing:.12em;color:var(--lime);text-transform:uppercase;margin-bottom:8px}
h1{font-size:clamp(36px,9.5vw,54px);line-height:.98;letter-spacing:-.05em;margin:0}
.subtitle{font-size:16px;line-height:1.6;color:var(--muted);margin:10px 0 0}

/* stats */
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}
.stat-tile{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:13px 12px}
.stat-tile strong{display:block;font-size:22px;letter-spacing:-.03em}
.stat-tile span{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.stat-tile.saved strong{color:var(--lime)}

/* primary CTA */
.add-cta{width:100%;min-height:66px;border-radius:20px;border:0;background:var(--lime);color:#12160c;font-weight:950;font-size:18px;cursor:pointer;margin:6px 0 22px;box-shadow:var(--shadow)}
.add-cta:active{transform:scale(.99)}

/* section blocks */
.section{margin-bottom:24px}
.section-title{font-size:13px;font-weight:900;color:var(--muted);letter-spacing:.06em;margin:0 0 10px;display:flex;align-items:center;justify-content:space-between}
.badge-count{background:var(--lime-soft);color:var(--lime);border-radius:999px;padding:2px 9px;font-size:12px;font-weight:900}
.empty-note{color:var(--muted);font-size:14px;line-height:1.7;border:1px dashed var(--line);border-radius:16px;padding:16px}

/* locker / history item cards */
.item-card{border:1px solid var(--line);background:var(--panel);border-radius:20px;padding:16px 17px;margin-bottom:10px}
.item-card .row-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.item-card .item-name{font-size:18px;font-weight:900;line-height:1.4}
.item-card .item-price{font-size:15px;font-weight:900;color:var(--lime);white-space:nowrap}
.item-card .item-meta{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.6}
.locker-card{border-color:rgba(242,207,99,.35);background:var(--yellow-soft)}
.locker-card .countdown{font-variant-numeric:tabular-nums;font-weight:950;color:var(--yellow)}
.locker-card .recheck-btn{width:100%;min-height:52px;margin-top:12px;border-radius:14px;border:1px solid rgba(242,207,99,.45);background:transparent;color:var(--yellow);font-weight:900;cursor:pointer}
.locker-card .waiting-note{margin-top:12px;font-size:12px;color:var(--muted)}
.history-decision{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:900;padding:3px 9px;border-radius:999px;margin-top:8px}
.history-decision.bought{background:rgba(123,228,165,.14);color:var(--green)}
.history-decision.discarded{background:var(--red-soft);color:#ffb3ab}

/* form */
.field-label{font-size:13px;font-weight:900;color:var(--muted);margin:16px 0 8px}
.field-input{width:100%;min-height:58px;border-radius:16px;border:1px solid var(--line);background:#0d100d;color:var(--text);padding:14px 16px;font-size:16px}
.field-input:focus{border-color:rgba(217,255,99,.5)}

/* choice grid (impulse check) */
.step-label{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;background:var(--lime-soft);color:var(--lime);font-size:12px;font-weight:900;margin:18px 0 14px}
.question-card{border:1px solid var(--line);background:var(--panel);border-radius:24px;padding:20px;box-shadow:var(--shadow)}
.question-card .item-recap{font-size:13px;color:var(--muted);margin-bottom:10px}
.question-card h2{font-size:clamp(24px,6.6vw,34px);line-height:1.3;letter-spacing:-.03em;margin:0 0 18px}
.choice-list{display:grid;gap:9px}
.choice-list button{width:100%;min-height:58px;padding:13px 16px;text-align:left;border-radius:16px;border:1px solid var(--line);background:#ffffff0b;color:var(--text);font-weight:850;font-size:15px;cursor:pointer;transition:transform .1s ease,border-color .1s ease}
.choice-list button:active{transform:scale(.98)}
.choice-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.choice-grid-2 button{min-height:64px;font-size:16px}
.choice-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.choice-grid-3 button{min-height:64px;font-size:14px}

/* decision bins */
.impulse-badge{display:inline-block;font-size:12px;font-weight:900;padding:6px 12px;border-radius:999px;margin-bottom:16px}
.impulse-badge.high{background:var(--red-soft);color:#ffb3ab}
.impulse-badge.mid{background:var(--yellow-soft);color:var(--yellow)}
.impulse-badge.low{background:rgba(123,228,165,.14);color:var(--green)}
.bin-grid{display:grid;gap:10px;margin-top:18px}
.bin-button{width:100%;min-height:72px;border-radius:18px;border:1px solid var(--line);background:#ffffff0b;color:var(--text);font-weight:900;font-size:16px;text-align:left;padding:14px 18px;cursor:pointer}
.bin-button small{display:block;font-weight:700;font-size:12px;color:var(--muted);margin-top:4px}
.bin-button.bin-buy{border-color:rgba(123,228,165,.4)}
.bin-button.bin-wait{border-color:rgba(242,207,99,.5);background:var(--yellow-soft)}
.bin-button.bin-discard{border-color:rgba(255,123,111,.4)}
.bin-button:active{transform:scale(.98)}

/* confirm screen */
.confirm-screen{text-align:center;padding-top:20px}
.confirm-icon{width:76px;height:76px;margin:6px auto 20px;border-radius:24px;background:var(--lime-soft);color:var(--lime);display:grid;place-items:center;font-size:32px;font-weight:1000;animation:pop .45s cubic-bezier(.2,.9,.25,1.3) both}
.confirm-icon.icon-buy{background:var(--lime);color:#12160c}
.confirm-icon.icon-discard{background:var(--red-soft);color:#ffb3ab;font-size:24px}
.confirm-screen h2{font-size:clamp(30px,8vw,44px);line-height:1.15;letter-spacing:-.04em;margin:0}
.confirm-message{font-size:18px;line-height:1.65;margin:22px auto 4px;max-width:520px;color:var(--text)}
.confirm-rule{font-size:14px;line-height:1.7;color:var(--muted);border-left:3px solid var(--lime);padding:10px 14px;background:var(--lime-soft);border-radius:0 14px 14px 0;margin:20px 0;text-align:left}

.primary,.secondary{width:100%;min-height:58px;border-radius:18px;font-weight:950;font-size:16px;cursor:pointer;margin-top:10px;border:0}
.primary{background:var(--lime);color:#12160c}
.secondary{background:#ffffff0b;color:var(--text);border:1px solid var(--line)}
.back-row{margin-bottom:14px}
.back-button{min-height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:#ffffff08;color:var(--muted);font-weight:850;cursor:pointer;font-size:13px}
.hidden{display:none!important}
.footer-note{text-align:center;color:#737c70;font-size:12px;line-height:1.6;padding:16px 8px 4px}
@keyframes screen-in{from{opacity:0;transform:translateY(8px)}}
@keyframes pop{0%{opacity:0;transform:scale(.7) rotate(-6deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@media(max-width:520px){
  .app-shell{padding-left:13px;padding-right:13px}
  .stat-row{gap:6px}
  .stat-tile{padding:11px 9px}
  .stat-tile strong{font-size:19px}
  .choice-grid-3{grid-template-columns:1fr 1fr}
}
