:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #121212;
  --line: #1c1c1c;
  --line-2: #2a2a2a;
  --text: #f5f5f5;
  --muted: #7a7a7a;
  --faint: #4a4a4a;
  --white: #fff;
  --danger: #ff5a5a;
  --r: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); }
body {
  font-family: var(--body);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 5; padding: 14px 20px 0;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topline { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; }
.topline .icon-btn[hidden] { display: none; }
.head-nav { display: flex; gap: 20px; max-width: 520px; margin: 10px auto 0; overflow-x: auto; scrollbar-width: none; }
.head-nav::-webkit-scrollbar { display: none; }
.head-link { padding: 8px 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 1.5px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.head-link.sel { color: var(--text); border-bottom-color: var(--white); }
.wizard-top { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.wizard-top .segments { flex: 1; margin: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
/* знак - нимб с разрывом, как на аватарке бота */
.mark { width: 24px; height: 14px; flex: none; color: var(--white); filter: drop-shadow(0 0 3px rgba(255, 255, 255, .45)); }
.counter { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.counter b { color: var(--text); font-weight: 500; }
.segments { display: grid; grid-auto-flow: column; gap: 4px; margin-top: 14px; }
.segments i { height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.segments i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.segments i.on::after { transform: scaleX(1); }

/* ---------- контент ---------- */
main { padding: 8px 20px calc(112px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.step { animation: in .45s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }

.eyebrow { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.step h1 {
  font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.12;
  letter-spacing: -.02em; margin: 10px 0 8px;
}
.step > .muted { margin: 0 0 24px; }

.label {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 32px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.label small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* карточка-опция */
.opt {
  position: relative; text-align: left; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
  background: var(--surface); border-radius: var(--r); padding: 14px 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s var(--ease), background .2s var(--ease), transform .12s var(--ease);
}
.opt:active { transform: scale(.98); }
.opt .idx { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-bottom: 22px; transition: color .2s; }
.opt b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.opt .note { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.opt::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s var(--ease), background .2s;
}
.opt.sel { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--white); }
.opt.sel .idx { color: var(--text); }
.opt.sel::after { background: var(--white); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 7px #000; }
.opt.multi::after { border-radius: 4px; }
.opt.multi.sel::after { box-shadow: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; }

.opt.compact { padding: 14px 12px; text-align: center; }
.opt.compact::after { display: none; }
.opt.compact b { font-size: 14px; }
.opt.compact .sign { display: block; font-family: var(--mono); font-size: 18px; margin-bottom: 8px; color: var(--muted); transition: color .2s; }
.opt.compact.sel .sign { color: var(--white); }

/* стили */
.opt.style-opt { padding: 0; overflow: hidden; }
.opt.style-opt .swatch { height: 104px; position: relative; background-size: cover; background-position: center 15%; filter: saturate(.92); transition: filter .2s; }
.opt.style-opt .swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(10,10,10,.55)); }
.opt.style-opt.sel .swatch { filter: none; }
.opt.style-opt .tag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: #fff; }
.opt.style-opt .row { display: flex; align-items: center; padding: 12px 38px 12px 14px; min-height: 46px; }
.opt.style-opt .row b { font-size: 14px; }
.opt.style-opt::after { top: auto; bottom: 14px; }

/* сегменты (переключатель) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-radius: var(--r-sm); padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 11px 6px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg button.sel { background: var(--white); color: #000; }

/* счётчик комнат */
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--r-sm); padding: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 44px; height: 44px; border-radius: 9px; background: var(--surface-2); font-size: 20px; font-weight: 400; display: grid; place-items: center; }
.stepper button:active { background: var(--line-2); }
.stepper output { font-family: var(--display); font-size: 22px; font-weight: 500; }

/* цвета */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 99px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--muted);
  transition: box-shadow .2s, color .2s;
}
.chip .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.chip.sel { box-shadow: inset 0 0 0 1px var(--white); color: var(--text); }

/* «не знаю» */
.idk {
  width: 100%; margin-top: 8px; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.idk .ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.idk b { display: block; font-size: 15px; font-weight: 600; }
.idk span { color: var(--muted); font-size: 13px; }
.idk .arrow { margin-left: auto; color: var(--faint); }

.ref {
  margin-top: 8px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
  border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--white); background: var(--surface-2);
  font-size: 14px; font-weight: 600;
}
.ref .eyebrow { display: block; margin-bottom: 2px; }
.ref button { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--surface); }

/* поля */
.field { display: block; margin-top: 12px; }
.field > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field > span small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.input {
  width: 100%; border: 0; border-radius: var(--r-sm); padding: 14px 15px; font: inherit; font-size: 15px; font-weight: 500;
  color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); outline: none;
  transition: box-shadow .2s var(--ease); -webkit-appearance: none;
}
.input:focus { box-shadow: inset 0 0 0 1px var(--white); }
.input::placeholder { color: var(--faint); }
textarea.input { min-height: 128px; resize: vertical; line-height: 1.5; }
.input.err { box-shadow: inset 0 0 0 1px var(--danger); animation: shake .3s; }
@keyframes shake { 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.counter-hint { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 6px; }

/* фото */
.uploader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb, .add-photo { aspect-ratio: 1; border-radius: var(--r-sm); position: relative; overflow: hidden; }
.thumb { box-shadow: inset 0 0 0 1px var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: grid; place-items: center;
}
.add-photo {
  display: grid; place-items: center; text-align: center; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  background-image: linear-gradient(var(--line-2) 0 0), linear-gradient(var(--line-2) 0 0);
  background-size: 0 0; font-size: 12px; font-weight: 600; color: var(--muted);
}
.add-photo svg { display: block; margin: 0 auto 6px; color: var(--text); }
.add-photo input { display: none; }

/* итог */
.summary { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.summary .row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.summary .row:last-child { border-bottom: 0; }
.summary .k { color: var(--muted); font-size: 12.5px; font-weight: 500; padding-top: 1px; }
.summary .v { font-size: 14px; font-weight: 600; line-height: 1.45; word-break: break-word; }
.summary .mini { display: flex; gap: 6px; }
.summary .mini img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.summary .dots { display: flex; gap: 4px; margin-top: 6px; }
.summary .dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.edit { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

.consent {
  margin-top: 16px; width: 100%; display: flex; gap: 12px; text-align: left; padding: 14px 16px;
  border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; line-height: 1.5; color: var(--muted); transition: box-shadow .2s;
}
.consent .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .2s, box-shadow .2s; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.consent.sel { box-shadow: inset 0 0 0 1px var(--white); color: #bdbdbd; }
.consent.sel .box { box-shadow: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

.legal-sheet { height: 88vh; display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; z-index: 32; }
.legal-sheet[hidden] { display: none; }
.legal-sheet .sheet-head { align-items: center; padding-bottom: 8px; }
.legal-sheet iframe { flex: 1; width: calc(100% + 40px); margin: 0 -20px; border: 0; background: #000; }

.notice { margin-top: 14px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }

/* успех */
.done { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; }
.done .check { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--white); display: grid; place-items: center; margin-bottom: 28px; }
.done .check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: 32px; }
.done .ticket { margin-top: 28px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.done .ticket b { font-family: var(--display); font-weight: 500; font-size: 22px; }
.done .btn { margin-top: 12px; width: 100%; flex: none; }

/* навигация */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 8px;
  padding: 12px 20px calc(12px + var(--safe-b));
  background: linear-gradient(to top, #000 70%, rgba(0,0,0,0));
}
.nav[hidden] { display: none; }
.btn { border-radius: 14px; height: 54px; padding: 0 20px; font-size: 15px; font-weight: 700; letter-spacing: .01em; transition: transform .12s var(--ease), opacity .2s, background .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.97); }
.btn.primary { flex: 1; background: var(--white); color: #000; }
.btn.primary:disabled { opacity: .5; }
.btn.ghost { width: 54px; padding: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost[hidden] { display: none; }
.btn.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* шторка портфолио */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 88vh; overflow-y: auto;
  max-width: 560px; margin: 0 auto; background: #070707; border-radius: 24px 24px 0 0;
  box-shadow: inset 0 1px 0 var(--line-2); padding: 8px 20px calc(24px + var(--safe-b));
  animation: up .4s var(--ease);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet-handle { width: 36px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px auto 18px; }
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; }
.sheet-head h2 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 6px 0 0; letter-spacing: -.01em; }
.sheet > .muted { margin: 8px 0 18px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.gallery { display: grid; gap: 12px; }
.work { border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.work .pic { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background-size: cover; background-position: center; position: relative; background-color: var(--surface-2); }
.work img.pic { aspect-ratio: auto; height: auto; max-height: 560px; object-position: top; }
.work .pic.empty { display: flex; align-items: flex-end; padding: 12px; }
.work .pic.empty span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(0,0,0,.45); padding: 5px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
.work .body { padding: 14px 16px 16px; }
.work .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.work h3 { margin: 6px 0 4px; font-size: 17px; font-weight: 700; }
.work p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.work .btn { width: 100%; height: 46px; font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); z-index: 60;
  background: var(--white); color: #000; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
  animation: toast .3s var(--ease); max-width: calc(100% - 40px); text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (min-width: 480px) {
  .grid.styles { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =================== сервисные экраны =================== */
.wide { width: 100%; }
.small { font-size: 12.5px; }
.ok { color: #7ee2a8; }
.grow { flex: 1; min-width: 0; }
.text-left { text-align: left; }
.btn.danger, .icon-btn.danger { color: var(--danger); }
.btn + .btn.wide, .card + .btn, .btn.wide + .notice { margin-top: 8px; }
.btn.small-btn { height: 44px; font-size: 14px; }
.link-btn { display: block; margin: 28px auto 0; font-size: 13px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn:disabled { opacity: .3; }
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-row .btn { flex: 1; height: 44px; font-size: 13.5px; padding: 0 12px; }
.empty-state { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.empty-state .btn { margin-top: 20px; }
.empty { padding: 24px 0; text-align: center; }

.skeleton { height: 76px; border-radius: var(--r); margin-bottom: 8px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.card { display: block; width: 100%; background: var(--surface); border-radius: var(--r); padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.card.text { font-size: 14px; line-height: 1.55; color: #d6d6d6; }
.card .btn.wide { margin-top: 10px; }

/* статусы */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill.s-new { background: var(--white); color: #000; box-shadow: none; }
.pill.s-discuss { color: #c9c9c9; }
.pill.s-awaiting_payment { color: #ffd479; box-shadow: inset 0 0 0 1px #4a3d1c; }
.pill.s-paid { color: #7ee2a8; box-shadow: inset 0 0 0 1px #1d3d2b; }
.pill.s-in_progress { color: #8fc6ff; box-shadow: inset 0 0 0 1px #1d3147; }
.pill.s-done { color: #7ee2a8; background: #0f2418; box-shadow: none; }
.pill.s-cancelled, .pill.s-refunded { color: var(--faint); }

/* мои заказы */
.order-card { margin-bottom: 10px; }
.order-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card header b { font-size: 15px; margin-left: 8px; }
.order-card > .muted { margin: 6px 0 10px; }
.num { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.kv.card { padding: 16px; }

/* админка */
.admin-tabs { margin: 10px 0 18px; }
.admin-tabs button { font-size: 12.5px; padding: 10px 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.stat { background: var(--surface); border-radius: var(--r-sm); padding: 12px 10px; box-shadow: inset 0 0 0 1px var(--line); min-height: 64px; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { font-size: 11px; color: var(--muted); }
.stat.skeleton { margin: 0; }
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 42px; }
.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 12px; padding: 0 20px; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { padding: 8px 12px; white-space: nowrap; }
.chip .count { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chip.sel .count { color: var(--muted); }
.chip.plain, .chips [data-status], .filters .chip { padding-left: 12px; }

.row-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-item:active { opacity: .7; }
.row-item .line1 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.row-item .line1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .line2 { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.row-item .arrow { color: var(--faint); }

.avatar { flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--display); font-weight: 500; color: #cfcfcf; }

.title-row { display: flex; align-items: center; gap: 12px; }
.step h1.mono-title { font-family: var(--mono); font-weight: 500; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.person b { display: block; font-size: 15px; }
.person .arrow { color: var(--faint); }
.price-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.paid-box b { display: block; font-size: 16px; color: #7ee2a8; }
.paid-box span { display: block; margin-top: 2px; }
.uploader .thumb.skeleton { margin: 0; }
button.thumb { padding: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 14px 4px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--muted); }
.timeline li:first-child::before { background: var(--white); box-shadow: none; }
.timeline li span { display: block; margin-bottom: 2px; }

.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.step h1.profile-name { font-size: 22px; margin: 0 0 4px; }
.inline-copy { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }

.style-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.style-row.is-hidden .style-thumb, .style-row.is-hidden b { opacity: .4; }
.style-row b { display: block; font-size: 14.5px; }
.style-row .muted { display: block; }
.style-thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; background: var(--surface-2) center/cover; box-shadow: inset 0 0 0 1px var(--line); }
.reorder { display: flex; flex-direction: column; gap: 4px; }
#addStyle { margin-bottom: 6px; }

.photo-drop { position: relative; display: grid; place-items: center; text-align: center; aspect-ratio: 4/3; margin: 16px 0 4px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; cursor: pointer; }
.photo-drop svg { display: block; margin: 0 auto 8px; }
.photo-drop b { display: block; font-size: 15px; }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-drop input { display: none; }
.photo-change { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; }

.toggles { padding: 4px 16px; margin-top: 14px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle > span { flex: 1; }
.toggle b { display: block; font-size: 14.5px; }
.toggle input { display: none; }
.toggle i { width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8a8a8a; transition: transform .25s var(--ease), background .2s; }
.toggle input:checked + i { background: var(--white); }
.toggle input:checked + i::after { transform: translateX(18px); background: #000; }

.field.mini { margin-top: 0; }
.edit-item { display: flex; gap: 10px; margin-bottom: 8px; padding: 12px; }
.edit-fields { flex: 1; display: grid; gap: 8px; }
.edit-fields .field > span { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.edit-fields .input { padding: 10px 12px; font-size: 14px; }
.edit-fields input[type="color"] { height: 42px; padding: 4px; }
.edit-actions { display: flex; flex-direction: column; gap: 4px; }
#add { margin-top: 4px; }

.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.94); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }

.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: #7ee2a8; }

@media (max-width: 360px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs button { font-size: 11.5px; }
}

.step.done .btn { flex: none; }

a.btn { text-decoration: none; color: inherit; }
