/* ——— Токены. Цвета поверх берутся из темы Telegram (tg.js), акцент — из настроек СТО ——— */
:root {
  --bg: #f2f3f7;
  --card: #ffffff;
  --text: #0e1116;
  --hint: #878c96;
  --sep: rgba(60, 64, 72, 0.12);
  --field: rgba(118, 124, 136, 0.1);
  --accent: #e8590c;
  --accent-soft: rgba(232, 89, 12, 0.12);
  --on-accent: #ffffff;
  --ok: #1f9d4c;
  --ok-soft: rgba(31, 157, 76, 0.12);
  --warn: #d98200;
  --warn-soft: rgba(230, 145, 0, 0.14);
  --danger: #e5484d;
  --danger-soft: rgba(229, 72, 77, 0.12);
  --info: #2f6fe4;
  --info-soft: rgba(47, 111, 228, 0.12);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px rgba(16, 24, 40, 0.05);
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1114;
  --card: #1b1e23;
  --text: #f2f3f5;
  --hint: #8d939d;
  --sep: rgba(255, 255, 255, 0.08);
  --field: rgba(255, 255, 255, 0.07);
  --ok: #3ccf6e;
  --ok-soft: rgba(60, 207, 110, 0.14);
  --warn: #ffb224;
  --warn-soft: rgba(255, 178, 36, 0.14);
  --danger: #ff6369;
  --danger-soft: rgba(255, 99, 105, 0.14);
  --info: #5b93ff;
  --info-soft: rgba(91, 147, 255, 0.15);
  --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114; --card: #1b1e23; --text: #f2f3f5; --hint: #8d939d; --sep: rgba(255,255,255,.08);
    --field: rgba(255,255,255,.07); --ok: #3ccf6e; --ok-soft: rgba(60,207,110,.14); --warn: #ffb224;
    --warn-soft: rgba(255,178,36,.14); --danger: #ff6369; --danger-soft: rgba(255,99,105,.14);
    --info: #5b93ff; --info-soft: rgba(91,147,255,.15); --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; }
body { overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: var(--tg-viewport-stable-height, 100vh); }
.page { padding: 12px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; animation: fadeIn .18s ease-out; }
.page.with-tabs { padding-bottom: calc(92px + var(--safe-b)); }
.page.with-bar { padding-bottom: calc(96px + var(--safe-b)); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.splash { min-height: 70vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--sep); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Шапка ——— */
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 2px 2px; }
.brand-logo { width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0; overflow: hidden; letter-spacing: -.02em; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.brand-sub { color: var(--hint); font-size: 13px; }
.brand .grow { flex: 1; min-width: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--accent); box-shadow: var(--shadow); flex-shrink: 0; }
.icon-btn:active { transform: scale(.94); }

.topbar { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.topbar h1 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; flex: 1; }
.back { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); }

/* ——— Карточки и секции ——— */
.card { background: var(--card); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card.accent { background: var(--accent); color: var(--on-accent); }
.card.soft { background: var(--accent-soft); box-shadow: none; }
.card.tap:active { transform: scale(.99); opacity: .92; }
.section-title { font-size: 13px; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: .04em; padding: 8px 4px 0; display: flex; justify-content: space-between; align-items: center; }
.section-title a, .section-title button { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--accent); font-weight: 600; }
.card-title { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.muted { color: var(--hint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.lg { gap: 14px; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr { height: 1px; background: var(--sep); margin: 4px 0; }

.list > * + * { border-top: 1px solid var(--sep); }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 52px; width: 100%; text-align: left; }
.item.tap:active, button.item:active { background: var(--field); }
.item .ic-wrap { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.item .chev { color: var(--hint); opacity: .6; }

/* ——— Кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: var(--r-md); font-weight: 650; font-size: 16px; background: var(--accent); color: var(--on-accent); width: 100%; transition: transform .08s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.secondary { background: var(--field); color: var(--text); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.sm { height: 38px; font-size: 14px; padding: 0 14px; border-radius: 11px; width: auto; }
.btn.md { height: 44px; font-size: 15px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--sep); }
.bar-inner { max-width: 528px; margin: 0 auto; display: flex; gap: 10px; }
.bar.over-tabs { bottom: calc(59px + var(--safe-b)); padding-bottom: 10px; }
.page.with-tabs.with-bar { padding-bottom: calc(160px + var(--safe-b)); }

/* ——— Чипы и бейджи ——— */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); font-size: 14px; font-weight: 550; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.chip.add { color: var(--accent); }
.chip .count { opacity: .7; font-weight: 500; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--field); color: var(--hint); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ——— Номерной знак ——— */
.plate { display: inline-flex; align-items: stretch; height: 30px; border-radius: 6px; overflow: hidden; background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111; font-family: "DIN Alternate", "Roboto Condensed", "Arial Narrow", var(--font); font-weight: 700; font-size: 17px; letter-spacing: .04em; flex-shrink: 0; }
.plate .eu { width: 13px; background: #1b4db3; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; }
.plate .eu::after { content: ""; width: 5px; height: 5px; border-radius: 50%; border: 1px dotted #ffd400; }
.plate .txt { padding: 0 8px; display: flex; align-items: center; white-space: nowrap; }
.plate.lg { height: 40px; font-size: 24px; border-radius: 8px; }
.plate.lg .eu { width: 17px; }
.plate.sm { height: 24px; font-size: 14px; border-radius: 5px; }
.plate.sm .eu { width: 10px; }

/* ——— Статус ремонта ——— */
.hero { position: relative; overflow: hidden; }
.hero-status { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.hero-eta { display: flex; align-items: center; gap: 6px; color: var(--hint); font-size: 14px; margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 18px 0 4px; }
.step { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; min-width: 0; }
.step .bar-seg { height: 6px; width: 100%; border-radius: 3px; background: var(--field); position: relative; overflow: hidden; }
.step.done .bar-seg { background: var(--ok); }
.step.cur .bar-seg { background: var(--accent); }
.step.cur.wait .bar-seg { background: var(--warn); }
.step.cur .bar-seg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.8s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.step .lbl { font-size: 11px; color: var(--hint); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.step.cur .lbl { color: var(--text); font-weight: 700; }

.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--field) 0); display: grid; place-items: center; flex-shrink: 0; }
.ring > div { width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 750; font-size: 14px; }

.progress { height: 8px; border-radius: 4px; background: var(--field); overflow: hidden; }
.progress > div { height: 100%; border-radius: 4px; background: var(--accent); transition: width .4s ease; }
.progress.ok > div { background: var(--ok); }
.progress.warn > div { background: var(--warn); }
.progress.danger > div { background: var(--danger); }
.progress.thin { height: 5px; }

/* ——— Чек-лист работ ——— */
.task { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; width: 100%; text-align: left; }
.task .check { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sep); display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: all .18s ease; }
.task.done .check { background: var(--ok); box-shadow: none; color: #fff; animation: pop .25s ease; }
.task.done .t-title { color: var(--hint); }
.task .t-title { font-weight: 550; }
.task .t-price { color: var(--hint); font-size: 14px; white-space: nowrap; }
.task.big { min-height: 64px; }
.task.big .check { width: 34px; height: 34px; }
button.task:active { background: var(--field); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ——— Проблема / согласование ——— */
.problem { border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 2px var(--accent), 0 8px 24px var(--accent-soft); overflow: hidden; }
.problem.decided { box-shadow: var(--shadow); }
.problem-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.problem-body { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.problem-price { white-space: nowrap; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.photos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.photos::-webkit-scrollbar { display: none; }
.photos img, .photos .ph { height: 180px; min-width: 240px; border-radius: 12px; object-fit: cover; scroll-snap-align: start; background: var(--field); cursor: zoom-in; }
.photos.one img { width: 100%; min-width: 0; height: 210px; }
.photos.sm img, .photos.sm .ph { height: 76px; min-width: 76px; width: 76px; border-radius: 10px; }
.ph { display: grid; place-items: center; color: var(--hint); position: relative; }
.ph .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }

/* ——— Лента событий ——— */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; position: relative; padding-bottom: 12px; }
.feed-item:last-child { padding-bottom: 0; }
.feed-item::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 2px; background: var(--sep); }
.feed-item:last-child::before { display: none; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sep); margin-top: 5px; flex-shrink: 0; }
.feed-item:first-child .feed-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.feed-time { color: var(--hint); font-size: 12px; }

/* ——— Формы ——— */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; color: var(--hint); font-weight: 550; padding-left: 2px; }
.input, .textarea, .select { width: 100%; border: 0; outline: none; background: var(--field); border-radius: 12px; padding: 13px 14px; font-size: 16px; min-height: 48px; transition: box-shadow .15s; }
.input:focus, .textarea:focus, .select:focus { box-shadow: 0 0 0 2px var(--accent); }
.textarea { resize: none; min-height: 84px; line-height: 1.4; }
.input.plate-input { font-family: "DIN Alternate", "Roboto Condensed", var(--font); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.input-group { position: relative; }
.input-group .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--hint); pointer-events: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--hint); padding: 0 2px; }
.error { color: var(--danger); font-size: 14px; padding: 0 2px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--field); position: relative; flex-shrink: 0; transition: background .2s; box-shadow: inset 0 0 0 1px var(--sep); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.on { background: var(--ok); box-shadow: none; }
.switch.on::after { transform: translateX(20px); }
details.more > summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 600; padding: 4px 2px; display: flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary .ic { transform: rotate(90deg); }
details.more .ic { transition: transform .2s; }

.task-edit { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: var(--field); border-radius: 12px; }
.task-edit .t { flex: 1; min-width: 0; font-weight: 550; }
.task-edit input { width: 84px; border: 0; background: var(--card); border-radius: 9px; padding: 8px 10px; text-align: right; font-size: 15px; outline: none; }
.task-edit .rm { width: 32px; height: 32px; display: grid; place-items: center; color: var(--hint); }

/* ——— Нижняя навигация ——— */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--sep); padding-bottom: var(--safe-b); }
.tabs-inner { max-width: 560px; margin: 0 auto; display: flex; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--hint); font-size: 11px; font-weight: 600; position: relative; }
.tab.on { color: var(--accent); }
.tab .tab-badge { position: absolute; top: 5px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; }

/* ——— Шторка ——— */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .42); animation: fade .2s ease-out; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); animation: up .26s cubic-bezier(.2, .9, .3, 1); overscroll-behavior: contain; }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--sep); margin: 0 auto 10px; }
.sheet-title { font-size: 19px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.sheet-title .x { width: 32px; height: 32px; border-radius: 50%; background: var(--field); display: grid; place-items: center; color: var(--hint); }
.sheet.closing { animation: down .2s ease-in forwards; }
.sheet-back.closing { animation: fadeOut .2s ease-in forwards; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: grid; place-items: center; animation: fade .15s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 70; background: rgba(20, 22, 26, .94); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 550; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: toastIn .25s ease-out; display: flex; gap: 8px; align-items: center; }
.toast.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

.empty { text-align: center; padding: 30px 20px; color: var(--hint); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic-big { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty .t { color: var(--text); font-weight: 700; font-size: 17px; }

.skeleton { background: linear-gradient(90deg, var(--field) 25%, color-mix(in srgb, var(--field) 40%, transparent) 50%, var(--field) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-lg); }
@keyframes sk { to { background-position: -200% 0; } }

.stat { background: var(--card); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat .k { font-size: 12px; color: var(--hint); font-weight: 550; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats.two { grid-template-columns: 1fr 1fr; }

.order-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; text-align: left; width: 100%; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.order-card:active { transform: scale(.99); }
.order-card .meta { display: flex; gap: 10px; align-items: center; color: var(--hint); font-size: 13px; min-width: 0; }
.order-card .meta > span { white-space: nowrap; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--info-soft); color: var(--info); font-size: 11px; font-weight: 750; display: grid; place-items: center; flex-shrink: 0; }

.loyal { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #000)); color: var(--on-accent); border-radius: var(--r-xl); padding: 18px; position: relative; overflow: hidden; }
.loyal::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px; background: rgba(255,255,255,.12); }
.stamps { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stamp { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.stamp.on { background: #fff; color: var(--accent); }
.stamp.gift { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.stamp.gift.on { background: #fff; box-shadow: none; }

.promo { display: flex; gap: 14px; align-items: flex-start; }
.promo .p-badge { flex-shrink: 0; min-width: 56px; height: 56px; padding: 0 8px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; text-align: center; line-height: 1.1; }

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.color-swatches input[type=color] { -webkit-appearance: none; appearance: none; width: 38px; height: 38px; border: 0; padding: 0; border-radius: 50%; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.color-swatches input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-swatches input[type=color]::-webkit-color-swatch { border: 3px solid var(--card); border-radius: 50%; }
.color-swatches input[type=color]::-moz-color-swatch { border: 3px solid var(--card); border-radius: 50%; }

.seg { display: flex; background: var(--field); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; height: 34px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--hint); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.status-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.status-picker button { height: 44px; border-radius: 12px; background: var(--field); font-size: 13px; font-weight: 650; color: var(--text); padding: 0 6px; }
.status-picker button.on { background: var(--accent); color: var(--on-accent); }

.dev-bar { position: fixed; bottom: calc(76px + var(--safe-b)); left: 50%; transform: translateX(-50%); opacity: .85; z-index: 80; display: flex; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 16px); gap: 4px; background: rgba(0,0,0,.72); padding: 4px; border-radius: 10px; font-size: 11px; }
.dev-bar a { color: #fff; padding: 3px 6px; border-radius: 6px; opacity: .7; }
.dev-bar a.on { background: var(--accent); opacity: 1; }

.ic { display: inline-flex; flex-shrink: 0; }
.ic svg { display: block; }
