/* Genki Lister — phone-first design system. System font, one accent (Genki gold), light + dark. */
:root {
  color-scheme: light dark;
  --bg: #f2f2f7; --card: #ffffff; --card-2: #f7f7fa; --fill: #eeeef3; --text: #111318; --muted: #6b7180; --faint: #9ca1ad;
  --line: rgba(60, 60, 67, .13); --line-strong: rgba(60, 60, 67, .22);
  --accent: #ffc21a; --accent-2: #ffb000; --on-accent: #1c1500; --accent-ink: #8a5a00; --accent-soft: #fff4d1;
  --ok: #1a9a52; --ok-bg: #e6f6ec; --warn: #a65a00; --warn-bg: #fff3dc; --bad: #d4342a; --bad-bg: #fdecea; --blue: #0a66d9; --blue-bg: #e8f1fd;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --bar-bg: rgba(242, 242, 247, .82);
  --r: 16px; --r-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f; --card: #17191e; --card-2: #1d2026; --fill: #24272e; --text: #f3f4f6; --muted: #9aa1ad; --faint: #6c727e;
    --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
    --accent: #ffc93c; --accent-2: #ffb81f; --on-accent: #1c1500; --accent-ink: #ffd361; --accent-soft: rgba(255, 201, 60, .14);
    --ok: #3ad07f; --ok-bg: rgba(58, 208, 127, .14); --warn: #ffbf4d; --warn-bg: rgba(255, 176, 31, .13); --bad: #ff6f63; --bad-bg: rgba(255, 92, 80, .14); --blue: #62adff; --blue-bg: rgba(98, 173, 255, .14);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .04);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .6);
    --bar-bg: rgba(11, 12, 15, .82);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 17px/1.42 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overscroll-behavior-y: none; }
body.has-bar { padding-bottom: calc(var(--safe-b) + 104px); }
img { display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 18px; height: 18px; } .ico.lg { width: 28px; height: 28px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12.5px; } .center { text-align: center; } .bold { font-weight: 650; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding: calc(var(--safe-t) + 6px) 12px 8px; background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line-strong); }
.topbar .row { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.topbar .title { flex: 1; font-size: 17px; font-weight: 650; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .side { width: 92px; display: flex; } .topbar .side.r { justify-content: flex-end; }
.topbar.large .title { text-align: left; font-size: 30px; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.topbar.large .title img { width: 34px; height: 34px; border-radius: 9px; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn.filled { background: var(--card); box-shadow: var(--shadow); }
.iconbtn:active { background: var(--fill); }
.backbtn { height: 44px; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 17px; display: inline-flex; align-items: center; gap: 2px; padding: 0 6px 0 0; margin-left: -6px; cursor: pointer; }
.topbar.large .side { width: auto; gap: 6px; align-items: center; }
.pill-test { white-space: nowrap; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 99px; background: var(--blue-bg); color: var(--blue); letter-spacing: .01em; }

main { padding: 8px 16px 24px; max-width: 640px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn { font: inherit; font-weight: 600; font-size: 17px; border: 0; border-radius: 14px; min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: var(--fill); color: var(--text); text-decoration: none; transition: transform .08s, opacity .15s, background .15s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 4px 14px rgba(255, 178, 0, .28); }
.btn.dark { background: #15171c; color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-ink); }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn.outline { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.block { width: 100%; } .btn.xl { min-height: 60px; font-size: 19px; border-radius: 18px; } .btn.sm { min-height: 44px; font-size: 15px; padding: 0 14px; border-radius: 12px; }
.btn .spin { width: 18px; height: 18px; border-width: 2.5px; }
.linkrow { display: flex; gap: 8px; flex-wrap: wrap; }
.linkrow .btn { flex: 1; min-width: 140px; }

/* ---------- bottom action bar ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(var(--safe-b) + 12px); background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--line-strong); display: flex; gap: 10px; }
.actionbar > .btn { flex: 1; } .actionbar > .btn.side { flex: 0 0 auto; min-width: 96px; }
.actionbar .hint { position: absolute; left: 0; right: 0; bottom: 100%; text-align: center; font-size: 13px; color: var(--muted); padding: 6px; pointer-events: none; }

/* ---------- cards & lists ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.card-h .ico { color: var(--accent-ink); }
.card-h .aside { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.section-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 26px 4px 8px; }
.list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.li + .li::before { content: ""; position: absolute; top: 0; right: 0; left: 86px; border-top: .5px solid var(--line-strong); }
.list.plain .li + .li::before { left: 14px; }
.li:active { background: var(--fill); }
.li .thumb { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--fill); flex: none; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.li .body { flex: 1; min-width: 0; }
.li .t { font-weight: 600; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 14px; color: var(--muted); }
.li .meta b { color: var(--text); font-weight: 650; }
.li .chev { color: var(--faint); }
.li .lead { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- status pills ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--fill); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.gold { background: var(--accent-soft); color: var(--accent-ink); } .tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; background: var(--faint); } .dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r); padding: 14px; margin: 12px 0; font-size: 15px; line-height: 1.4; }
.callout .ico { margin-top: 1px; }
.callout b { font-weight: 650; }
.callout .cta { margin-top: 10px; }
.callout.warn { background: var(--warn-bg); color: var(--warn); } .callout.warn .txt { color: var(--text); }
.callout.bad { background: var(--bad-bg); color: var(--bad); } .callout.bad .txt { color: var(--text); }
.callout.ok { background: var(--ok-bg); color: var(--ok); } .callout.ok .txt { color: var(--text); }
.callout.info { background: var(--blue-bg); color: var(--blue); } .callout.info .txt { color: var(--text); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- forms ---------- */
.field { margin-top: 14px; } .field:first-child { margin-top: 0; }
.field > label, .flabel { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 2px 6px; }
.flabel .opt, .field > label .opt { font-weight: 500; color: var(--faint); }
.flabel .req, .field > label .req { color: var(--bad); font-weight: 600; font-size: 12px; }
.field > label .counter { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; } .counter.over { color: var(--bad); }
input, select, textarea { font: inherit; font-size: 17px; width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--fill); color: var(--text); outline: none; transition: border-color .15s, background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled, select:disabled, textarea:disabled { opacity: 1; color: var(--muted); }
select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; text-overflow: ellipsis; }
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
textarea.title { min-height: 76px; font-weight: 600; }
.missing input, .missing select { border-color: var(--bad); background: var(--bad-bg); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.unit { position: relative; } .unit input { padding-right: 40px; } .unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 15px; pointer-events: none; }
.money-in { position: relative; } .money-in span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 700; color: var(--muted); }
.money-in input { font-size: 28px; font-weight: 750; padding-left: 34px; min-height: 60px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; background: var(--fill); border-radius: var(--r-sm); min-height: 60px; }
.stepper button { width: 44px; height: 60px; border: 0; background: none; color: var(--text); font-size: 24px; cursor: pointer; }
.stepper input { text-align: center; background: transparent; padding: 0; min-height: 60px; font-size: 20px; font-weight: 650; border: 0; box-shadow: none; }
.price-row { display: grid; grid-template-columns: 1fr 132px; gap: 10px; }

/* segmented control */
.seg { display: flex; background: var(--fill); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; padding: 6px 4px; line-height: 1.15; }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 650; }
@media (prefers-color-scheme: dark) { .seg button.on { background: #3a3d45; } }
.seg.tabs { margin: 18px 0 12px; } .seg.tabs button { min-height: 40px; } .seg.tabs .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.seg.accent button.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.q { margin-top: 16px; } .q:first-of-type { margin-top: 4px; } .q .flabel { color: var(--text); font-size: 15px; }
.q input { margin-top: 8px; min-height: 46px; font-size: 16px; }

/* chips (store choice) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 0; background: var(--fill); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--on-accent); }
.chip:disabled { opacity: .55; }

/* ---------- home ---------- */
.store-switch { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 64px; margin-top: 6px; }
.store-switch:active { background: var(--fill); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 17px; flex: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.avatar.auto { background: var(--fill); color: var(--accent-ink); }
.avatar.off { background: var(--fill); color: var(--muted); }
.store-switch .lbl { font-size: 13px; color: var(--muted); } .store-switch .nm { font-weight: 650; font-size: 17px; }
.store-switch .chg { margin-left: auto; color: var(--accent-ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 2px; }

.empty { text-align: center; padding: 40px 24px 24px; }
.empty .art { width: 88px; height: 88px; border-radius: 28px; margin: 0 auto 16px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.empty .art .ico { width: 40px; height: 40px; stroke-width: 1.7; }
.empty h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 15px; max-width: 300px; margin: 0 auto; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 4px; text-align: center; }
.steps3 div { background: var(--card); border-radius: 14px; padding: 12px 6px; font-size: 13px; color: var(--muted); box-shadow: var(--shadow); }
.steps3 .ico { margin: 0 auto 6px; color: var(--accent-ink); }
.steps3 b { display: block; color: var(--text); font-size: 14px; }

/* ---------- photos ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ptile { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--fill); }
.ptile img { width: 100%; height: 100%; object-fit: cover; }
.ptile .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 15px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ptile .x::after { content: ""; position: absolute; inset: -8px; }
.ptile .x .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.ptile .badge { position: absolute; left: 6px; bottom: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; }
.ptile.add { border: 2px dashed var(--line-strong); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 15px; }
.checklist .bx { width: 26px; height: 26px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--fill); color: var(--muted); font-size: 13px; font-weight: 700; }
.checklist .bx.on { background: var(--ok); color: #fff; }
.checklist .bx .ico { width: 15px; height: 15px; stroke-width: 3; }

.carousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -16px 0; padding: 0 16px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { height: 250px; width: auto; max-width: 82%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; scroll-snap-align: center; flex: none; background: var(--fill); }
.carousel.one img { max-width: 100%; }

/* ---------- draft review ---------- */
.headline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 2px 0; }
.todo { list-style: none; margin: 8px 0 0; padding: 0; }
.todo li { margin: 0; }
.todo button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 0; min-height: 44px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; border-top: .5px solid rgba(166, 90, 0, .18); }
.todo li:first-child button { border-top: 0; }
.todo .n { width: 22px; height: 22px; border-radius: 11px; flex: none; background: var(--warn); color: #fff; font-size: 12.5px; font-weight: 750; display: flex; align-items: center; justify-content: center; }
.todo .chev { margin-left: auto; color: var(--warn); }
.meter { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.meter.low i { background: var(--warn); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fact { font-size: 13.5px; padding: 5px 10px; border-radius: 9px; background: var(--fill); }
.fact span { color: var(--muted); margin-right: 4px; }
.match { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--ok-bg); display: flex; gap: 10px; align-items: flex-start; }
.match .ico { color: var(--ok); margin-top: 1px; }
.match .mt { font-weight: 650; font-size: 15px; } .match .mw { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.range { margin: 6px 0 4px; }
.range .track { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--fill), var(--accent-soft) 30%, var(--accent-soft) 70%, var(--fill)); margin: 30px 8px 8px; }
.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--accent); opacity: .55; }
.range .typ { position: absolute; top: -3px; width: 3px; height: 16px; border-radius: 2px; background: var(--accent-ink); transform: translateX(-50%); }
.range .you { position: absolute; top: -27px; transform: translateX(-50%); font-size: 12px; font-weight: 750; background: var(--text); color: var(--card); padding: 2px 7px; border-radius: 7px; white-space: nowrap; }
.range .you::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--text); border-bottom: 0; }
.range .nums { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.range .nums div { text-align: center; flex: 1; } .range .nums div:first-child { text-align: left; } .range .nums div:last-child { text-align: right; }
.range .nums b { display: block; font-size: 17px; font-weight: 700; } .range .nums span { font-size: 12.5px; color: var(--muted); }
.flags { list-style: none; margin: 12px 0 0; padding: 0; }
.flags li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; padding: 4px 0; }
.flags .ico { color: var(--warn); width: 18px; height: 18px; margin-top: 1px; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.sugg { margin-top: 8px; }
details.more { margin-top: 14px; }
details.more summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 15px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ico { transition: transform .2s; } details.more[open] summary .ico { transform: rotate(180deg); }
.danger-link { display: flex; justify-content: center; margin: 20px 0 4px; }

/* ---------- analyzing ---------- */
.work { min-height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 8px; text-align: center; }
.scan { position: relative; width: 190px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--fill); }
.scan img { width: 100%; height: 100%; object-fit: cover; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 36%; top: -36%; background: linear-gradient(180deg, transparent, rgba(255, 201, 60, .55) 80%, rgba(255, 230, 150, .95)); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0% { top: -36%; } 100% { top: 100%; } }
.scan .more { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; z-index: 2; }
.work h1 { font-size: 26px; font-weight: 750; letter-spacing: -.01em; margin-top: 28px; }
.work .sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.wsteps { list-style: none; padding: 0; margin: 24px auto 0; text-align: left; width: 100%; max-width: 300px; }
.wsteps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 16px; color: var(--faint); transition: color .3s; }
.wsteps li.on { color: var(--text); font-weight: 600; } .wsteps li.done { color: var(--muted); }
.wsteps .s { width: 26px; height: 26px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--fill); }
.wsteps li.done .s { background: var(--ok); color: #fff; } .wsteps li.done .s .ico { width: 15px; height: 15px; stroke-width: 3; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent-2); animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--fill) 25%, var(--card-2) 50%, var(--fill) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 10px; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- success ---------- */
.done { text-align: center; padding: 30px 8px 10px; }
.bigcheck { width: 96px; height: 96px; border-radius: 48px; margin: 10px auto 22px; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(26, 154, 82, .35); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.bigcheck .ico { width: 50px; height: 50px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done h1 { font-size: 28px; font-weight: 780; letter-spacing: -.02em; }
.done .sub { color: var(--muted); margin-top: 6px; }
.donecard { display: flex; gap: 14px; align-items: center; text-align: left; }
.donecard img { width: 76px; height: 96px; object-fit: cover; border-radius: 12px; flex: none; }
.donecard .t { font-weight: 650; line-height: 1.3; }
.donecard .p { font-size: 22px; font-weight: 780; margin-top: 6px; }

/* ---------- settings ---------- */
.store-card .top { display: flex; align-items: center; gap: 12px; }
.store-card .nm { font-weight: 700; font-size: 17px; }
.store-card .st { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.store-card hr { border: 0; border-top: .5px solid var(--line-strong); margin: 14px -16px; }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat div { background: var(--fill); border-radius: 12px; padding: 12px 4px; }
.stat b { display: block; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; } .stat span { font-size: 12.5px; color: var(--muted); }
.progress { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; margin: 8px 0 4px; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 24px calc(var(--safe-b) + 40px); max-width: 440px; margin: 0 auto; }
.login .logo { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 10px 30px rgba(255, 178, 0, .3); }
.login h1 { font-size: 32px; font-weight: 780; letter-spacing: -.02em; text-align: center; }
.login .tag-line { text-align: center; color: var(--muted); margin: 6px 0 30px; }
.login input { min-height: 56px; font-size: 18px; text-align: center; background: var(--card); box-shadow: var(--shadow); }
.login .err { color: var(--bad); font-size: 15px; text-align: center; margin-top: 10px; min-height: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.login .foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0); transition: background .25s; display: flex; align-items: flex-end; }
.sheet-wrap.open { background: rgba(0, 0, 0, .42); }
.sheet { width: 100%; max-width: 640px; margin: 0 auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 8px 18px calc(var(--safe-b) + 18px); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.sheet-wrap.open .sheet { transform: none; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet h2 { font-size: 21px; font-weight: 750; margin-bottom: 6px; }
.sheet .sub { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.sheet .acts { display: grid; gap: 10px; margin-top: 18px; }
.sheet .li { padding-left: 4px; padding-right: 4px; } .sheet .li + .li::before { left: 56px; }
.sheet .li.sel .chk { color: var(--accent-ink); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 8px 0 0; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 9px 0; font-size: 15.5px; align-items: flex-start; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 13px; background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.sumrow { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--fill); }
.sumrow img { width: 56px; height: 72px; object-fit: cover; border-radius: 10px; }
.sumrow .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.sumrow .p { font-weight: 750; margin-top: 4px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); transform: translate(-50%, -20px); background: #1d1f25; color: #fff; padding: 12px 18px; border-radius: 14px; opacity: 0; transition: opacity .2s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); z-index: 60; font-size: 15px; font-weight: 550; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #b3261e; }

.fade-in { animation: fi .22s ease-out; } @keyframes fi { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.login input:not(:placeholder-shown) { letter-spacing: .2em; }
