/* ═══ star app — apple store configurator ═══ */
body.app{background:#fff}
.wbtn{font:inherit;font-size:12px;background:#1d1d1f;color:#fff;border:0;border-radius:980px;padding:5px 12px;cursor:pointer;white-space:nowrap}
.wbtn.on{background:#e8e8ed;color:#1d1d1f}
.app .gn-links{margin:0 36px 0 40px}
.app .gn-links a.on{color:#000;font-weight:600}
.ribbon .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#30d158;margin-right:8px;vertical-align:1px}
.wrap{max-width:1180px;margin:0 auto;padding:0 22px 120px}
.ph{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:44px 0 34px;flex-wrap:wrap}
.ph h1{font-size:48px;line-height:1.08;font-weight:600;letter-spacing:-.003em}
.seg{display:flex;background:#f5f5f7;border-radius:999px;padding:3px}
.seg a{font-size:14px;padding:7px 16px;border-radius:999px;color:#1d1d1f;transition:background .2s}
.seg a.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* configurator: sticky product left, steps right */
.cfg{display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:start}
.stage{position:sticky;top:64px}
.stage-in{background:#f5f5f7;border-radius:28px;overflow:hidden;position:relative;aspect-ratio:1/1.02;display:flex;flex-direction:column}
.stage-in img{width:100%;height:72%;object-fit:cover;transition:opacity .5s}
.stage-cap{font-size:28px;font-weight:600;letter-spacing:-.01em;padding:18px 28px 4px}
.stage-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:6px 28px 24px}
.stage-stats div{display:flex;flex-direction:column}
.stage-stats span{font-size:12px;color:#6e6e73}
.stage-stats b{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}

.step{padding-bottom:40px}
.step h2{font-size:24px;line-height:1.17;font-weight:600;margin-bottom:16px}
.step h2 span{color:#6e6e73;font-weight:600}
.step.dis{opacity:.35;pointer-events:none}
.opts{display:flex;flex-direction:column;gap:12px}
.opts-row{flex-direction:row;flex-wrap:wrap}
.opt{border:1px solid #d2d2d7;border-radius:12px;padding:16px 18px;background:#fff;cursor:pointer;text-align:left;font:inherit;color:inherit;display:flex;align-items:center;gap:14px;transition:border-color .2s,box-shadow .2s;width:100%}
.opts-row .opt{width:auto;flex:1;min-width:140px;justify-content:center}
.opt:hover{border-color:#86868b}
.opt.on{border-color:#0071e3;box-shadow:0 0 0 1px #0071e3}
.opt .pair{display:inline-flex}
.opt .pair i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;color:#fff;border:2px solid #fff}
.opt .pair i+i{margin-left:-9px}
.o-main{flex:1;display:flex;flex-direction:column}
.o-main b{font-size:17px;font-weight:600}
.o-main span{font-size:12px;color:#6e6e73}
.o-r{text-align:right;display:flex;flex-direction:column}
.o-r b{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.o-r span{font-size:12px;color:#6e6e73}
.o-open{font-size:12px;color:#0066cc;border:1px solid #0071e3;border-radius:999px;padding:4px 10px;background:none;cursor:pointer;font-family:inherit}
.o-open:hover{background:#0071e3;color:#fff}
.sk{height:64px;border-radius:12px;background:linear-gradient(90deg,#f5f5f7,#ececf0,#f5f5f7);background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}

.amt{display:flex;flex-direction:column;gap:12px}
.field{border:1px solid #d2d2d7;border-radius:12px;padding:12px 16px;display:flex;align-items:center;gap:12px;transition:border-color .2s}
.field:focus-within{border-color:#0071e3;box-shadow:0 0 0 1px #0071e3}
.field input{flex:1;border:0;outline:0;font:inherit;font-size:28px;font-weight:600;letter-spacing:-.01em;min-width:0;background:none;font-variant-numeric:tabular-nums}
.field .f-unit{font-size:17px;font-weight:600}
.field .bal{font-size:12px;color:#6e6e73;text-align:right}
.field .max{font-size:12px;color:#0066cc;background:none;border:0;cursor:pointer;font-family:inherit;padding:0}
.f-col{display:flex;flex-direction:column;align-items:flex-end;gap:2px}

.sum{background:#f5f5f7;border-radius:18px;padding:22px 24px}
.sum-row{display:flex;justify-content:space-between;font-size:15px;padding:6px 0}
.sum-row b{font-weight:600;font-variant-numeric:tabular-nums}
.sum-row.sm{font-size:12px;color:#6e6e73}
.big{width:100%;margin-top:14px;font:inherit;font-size:17px;background:#0071e3;color:#fff;border:0;border-radius:12px;padding:15px;cursor:pointer;transition:background .2s,opacity .2s}
.big:hover{background:#0077ed}
.big:disabled{opacity:.35;cursor:default}
.sum-note{font-size:12px;color:#6e6e73;margin-top:10px;min-height:16px;text-align:center}
.sum-note.bad{color:#d70015}.sum-note.ok{color:#1a8f4a}

/* mine */
.hold{display:grid;grid-template-columns:220px 1fr;gap:28px;background:#f5f5f7;border-radius:28px;padding:22px;margin-bottom:16px;align-items:center}
.hold img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px}
.h-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.h-top h3{font-size:28px;font-weight:600;letter-spacing:-.01em}
.h-top p{font-size:13px;color:#6e6e73}
.h-val{font-size:40px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.h-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0;padding:14px 0;border-top:1px solid #d2d2d7;border-bottom:1px solid #d2d2d7}
.h-grid span{display:block;font-size:12px;color:#6e6e73}
.h-grid b{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.h-act{display:flex;gap:10px;flex-wrap:wrap}
.h-act .btn{font-size:14px;padding:8px 16px}
.empty{background:#f5f5f7;border-radius:28px;padding:80px 24px;text-align:center}
.empty h3{font-size:28px;font-weight:600}
.empty p{color:#6e6e73;margin:8px 0 18px}

/* sheet */
.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.4);backdrop-filter:blur(10px);z-index:80;display:flex;align-items:center;justify-content:center;padding:20px}
.sheet-bg[hidden]{display:none}
.sheet{background:#fff;border-radius:24px;width:min(480px,100%);padding:30px 28px 26px;position:relative;max-height:90vh;overflow:auto;animation:up .35s cubic-bezier(.2,.8,.2,1)}
@keyframes up{from{transform:translateY(20px);opacity:0}}
.sheet h3{font-size:28px;font-weight:600;letter-spacing:-.01em}
.sheet p.sub{color:#6e6e73;font-size:14px;margin:4px 0 18px}
.sheet .x{position:absolute;top:14px;right:16px;width:30px;height:30px;border-radius:50%;border:0;background:#e8e8ed;font-size:18px;cursor:pointer;line-height:1}
.sheet label{display:block;font-size:12px;color:#6e6e73;margin:14px 0 6px}
.sheet .field input{font-size:20px}
.sheet .field input.addr{font-size:15px;font-family:ui-monospace,"SF Mono",Menlo,monospace;font-weight:500}
.pct{display:flex;gap:8px;margin-top:8px}
.pct button{flex:1;font:inherit;font-size:13px;border:1px solid #d2d2d7;border-radius:999px;background:#fff;padding:6px;cursor:pointer}
.pct button:hover{border-color:#0071e3;color:#0071e3}

.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,16px);background:rgba(29,29,31,.94);color:#fff;font-size:14px;padding:11px 20px;border-radius:999px;opacity:0;pointer-events:none;transition:.3s;z-index:99;max-width:90vw;text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0)}
.toast a{color:#2997ff}

@media (max-width:900px){
  .cfg{grid-template-columns:1fr;gap:28px}
  .stage{position:relative;top:0}
  .stage-in{aspect-ratio:auto}
  .stage-in img{height:220px}
  .ph h1{font-size:34px}
  .hold{grid-template-columns:1fr}
  .hold img{aspect-ratio:2/1}
  .h-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:833px){.app .gn-links{display:none}}
