: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);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: cubic-bezier(.25, 1.3, .5, 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 { position: relative; 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); }
.head-nav.has-glide .head-link.sel { border-bottom-color: transparent; }
.head-nav > .glide { position: absolute; left: 0; bottom: 0; height: 1.5px; border-radius: 2px; background: var(--white); box-shadow: 0 0 8px rgba(255, 255, 255, .35); transition: transform .5s var(--spring-soft), width .5s var(--spring-soft), opacity .2s; }
.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; }
.seg { position: relative; }
.seg > button { position: relative; z-index: 1; overflow: hidden; }
.seg.has-glide > button.sel { background: transparent; }
.seg > .glide { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 9px; background: var(--white); transition: transform .45s var(--spring-soft), width .45s var(--spring-soft), opacity .2s; }

/* счётчик комнат */
.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;
  display: flex; align-items: center; gap: 9px; overflow: hidden;
  background: var(--white); color: #000; padding: 12px 16px 13px; border-radius: 14px; font-size: 13.5px; font-weight: 700; line-height: 1.35;
  animation: toast-in .5s var(--spring); max-width: calc(100% - 40px); width: max-content; text-align: left; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.toast[hidden] { display: none; }
.toast.out { animation: toast-out .22s var(--ease-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 18px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 10px) scale(.95); } }
.t-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #000; color: #fff; animation: t-ico .5s .1s var(--spring) backwards; }
.toast.ok .t-ico { color: #7ee2a8; }
.toast.err .t-ico { background: #fff; color: var(--danger); }
@keyframes t-ico { from { transform: scale(0) rotate(-40deg); } }
.t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; opacity: .18; transform-origin: left; animation: t-bar 2.6s linear forwards; }
@keyframes t-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@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 { flex: none; 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; color: #000; }   /* общий .ok красит текст в зелёный - тут нужен тёмный */

@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; }

/* =================== поддержка =================== */
.unread-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--white); margin-left: 6px; vertical-align: 2px; box-shadow: 0 0 6px rgba(255, 255, 255, .6); }
.pill.t-open { color: var(--text); }
.pill.t-closed { color: var(--faint); }
.pill.i-new { background: var(--white); color: #000; box-shadow: none; }
.pill.i-planned { color: #8fc6ff; box-shadow: inset 0 0 0 1px #1d3147; }
.pill.i-done { color: #7ee2a8; background: #0f2418; box-shadow: none; }
.pill.i-declined { color: var(--faint); }

body.chat-mode main { padding-bottom: calc(92px + var(--safe-b)); }
body.chat-mode .foot { display: none; }
.chat-page .title-row h1 { margin: 6px 0 4px; }
.chat { display: flex; flex-direction: column; padding: 4px 0; }
.chat-day { align-self: center; margin: 16px 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.chat-sys { align-self: center; max-width: 88%; margin: 10px 0 4px; padding: 6px 12px; border-radius: 99px; font-size: 12px; color: var(--muted); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.msg { display: flex; flex-direction: column; max-width: 82%; margin-top: 4px; }
.msg.fresh { animation: msg-in .4s var(--spring-soft); }
.msg.out.fresh { transform-origin: bottom right; }
.msg.in.fresh { transform-origin: bottom left; }
.msg.in { align-self: flex-start; align-items: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg-who { font-size: 11px; font-weight: 600; color: var(--muted); margin: 8px 0 4px 12px; letter-spacing: .02em; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.bubble { padding: 9px 12px 6px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.in .bubble { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); border-bottom-left-radius: 6px; }
.msg.out .bubble { background: var(--white); color: #000; border-bottom-right-radius: 6px; }
.bubble p { margin: 0; }
.bubble time { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10px; text-align: right; opacity: .45; }
.msg-photo { display: block; width: calc(100% + 12px); min-width: 200px; margin: -4px -6px 6px; border-radius: 13px; overflow: hidden; }
.msg-photo img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.msg-photo .skeleton { display: block; height: 160px; margin: 0; border-radius: 0; }

.composer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
}
.composer-row, .attach-preview { max-width: 528px; margin: 0 auto; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea.input { min-height: 44px; max-height: 140px; padding: 11px 16px; border-radius: 22px; resize: none; line-height: 1.4; font-size: 15px; }
.attach { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.attach svg { width: 20px; height: 20px; }
.attach input { display: none; }
.send-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: #000; transition: opacity .2s, transform .15s var(--ease); }
.send-btn:disabled { opacity: .25; }
.send-btn:active { transform: scale(.92); }
.attach-preview { padding-bottom: 8px; }
.attach-preview[hidden] { display: none; }
.ap { position: relative; width: 64px; height: 64px; }
.ap img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ap-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: #000; }

.closed-card { margin: 18px 0 8px; padding: 22px 18px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; animation: in .45s var(--ease); }
.closed-ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--white); }
.closed-ico svg { width: 20px; height: 20px; }
.closed-card b { display: block; font-size: 15.5px; }
.closed-card .muted { margin: 6px 0 14px; }
.closed-card .btn-row { margin: 0; }

.ticket-row .right { flex-direction: column-reverse; }
.ticket-row.unread .line1 b { color: var(--white); }
.chat-page .idk { margin-top: 18px; }

.idea-card { margin-bottom: 10px; }
.idea-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.idea-text { margin: 10px 0; font-size: 14px; line-height: 1.55; color: #e2e2e2; overflow-wrap: anywhere; }
.idea-reply { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; line-height: 1.5; color: #cfcfcf; }
.idea-reply span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.idea-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.idea-statuses { margin-top: 12px; }
.idea-card textarea.input { min-height: 64px; margin-top: 10px; font-size: 14px; }
#kinds { margin-bottom: 4px; }
#kinds button { font-size: 12.5px; padding: 11px 4px; white-space: nowrap; }

/* версия внизу экрана */
.foot { display: flex; justify-content: center; align-items: center; gap: 10px; max-width: 560px; margin: -64px auto 0; padding: 0 20px calc(28px + var(--safe-b)); font-size: 11.5px; }
.foot[hidden] { display: none; }
.foot button { color: var(--faint); padding: 6px 2px; transition: color .2s; }
.foot button:active { color: var(--text); }
.foot .mono { font-size: 10.5px; letter-spacing: .06em; }
.foot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.release { padding: 14px 0; border-bottom: 1px solid var(--line); }
.release:last-child { border-bottom: 0; }
.release-head { display: flex; align-items: center; gap: 10px; }
.release-head b { font-size: 13px; font-weight: 500; }
.release-sec { margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.release ul { margin: 4px 0 0; padding-left: 18px; color: #cfcfcf; font-size: 13.5px; line-height: 1.6; }
.release li::marker { color: var(--faint); }
/* четыре вкладки в шапке (админ + поддержка) должны влезать на узкий телефон */
@media (max-width: 420px) {
  .head-nav { gap: 15px; }
  .head-link { font-size: 13px; }
}

/* поддержка - отдельная команда сервиса, а не строитель */
.team-card { margin: 4px 0 6px; cursor: default; }
.team-card .ico { color: var(--text); }
.team-card > span:last-child > span { display: block; margin-top: 3px; line-height: 1.45; }
.team-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.team-line svg { width: 15px; height: 15px; flex: none; color: var(--text); }

/* чат по заказу */
.chat-btn .unread-dot { margin-left: 2px; }
.chat-btn .count { font-size: 11px; color: var(--faint); font-weight: 500; }
.btn.primary.chat-btn { flex: none; }
.chat-empty { margin: 18px auto 8px; max-width: 300px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--faint); }
/* служба поддержки бота в чате заказа - выделена отдельно */
.msg.support .msg-who { display: inline-flex; align-items: center; gap: 5px; color: #8fc6ff; }
.msg.support .msg-who svg { width: 13px; height: 13px; }
.msg.in.support .bubble { background: #0b1520; box-shadow: inset 0 0 0 1px #1d3147; }
.team-line.support, .team-line.support svg { color: #8fc6ff; }

/* =================== канал =================== */
.consent + .consent { margin-top: 8px; }
.admin-tabs button { font-size: 11.5px; padding: 10px 2px; }
.channel-card { display: flex; align-items: center; gap: 12px; }
.channel-card b { display: block; font-size: 15px; }
.rights { margin-top: 8px; }
.rights .ok { color: #7ee2a8; }
.rights .bad { color: var(--danger); }
.stats.three { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tpl { text-align: left; padding: 14px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.tpl:active { box-shadow: inset 0 0 0 1px var(--white); }
.tpl:disabled { opacity: .4; }
.tpl b { display: block; font-size: 14px; }
.tpl span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.chip.main { box-shadow: inset 0 0 0 1px #8fc6ff; color: #8fc6ff; }
.chip .count + * { margin-left: 0; }
.rows-edit { display: grid; gap: 8px; margin-top: 8px; }
.editor-actions { display: grid; gap: 8px; margin-top: 18px; }
.editor-actions .btn-row { margin: 0; }
.link-btn.danger { color: var(--danger); text-decoration-color: rgba(255, 90, 90, .4); }

/* превью поста - как в Telegram */
.tg-post { border-radius: 16px; overflow: hidden; background: #0e0e0e; box-shadow: inset 0 0 0 1px var(--line-2); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13.5px; }
.tg-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #000; box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; }
.tg-ava svg { width: 18px; }
.tg-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.tg-photo.empty { display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.tg-alt { margin: 10px 12px 6px; }
.tg-caption { padding: 10px 12px 12px; font-size: 14px; line-height: 1.5; color: #e8e8e8; overflow-wrap: anywhere; }
.tg-caption blockquote { margin: 6px 0 0; padding: 6px 10px; border-left: 2px solid #8fc6ff; border-radius: 4px; background: rgba(143, 198, 255, .06); color: #cfcfcf; font-size: 13px; }
.tg-row { display: flex; gap: 4px; padding: 0 4px 4px; }
.tg-row.inline { padding: 10px 0 0; }
.tg-btn { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 13.5px; font-weight: 600; }
.tg-btn.main { background: #2a6fdb; }
.tg-rich { padding: 12px; font-size: 14px; line-height: 1.5; }
.tg-rich h3 { margin: 0 0 6px; font-size: 18px; }
.tg-rich p { margin: 0 0 10px; color: #cfcfcf; }
.tg-rich details { border-top: 1px solid var(--line-2); padding: 10px 0; }
.tg-rich summary { cursor: pointer; font-weight: 600; }
.tg-rich details p { margin: 8px 0 0; }
.tg-poll { padding: 12px; display: grid; gap: 8px; font-size: 14px; }
.tg-poll p { margin: 0; color: #cfcfcf; }
.tg-opt { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.tg-opt img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* =================== оценка заказа =================== */
.st-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.st-fill { fill: #fff; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .38s cubic-bezier(.3, 1.6, .5, 1); }
.on > svg .st-fill, .on .st-fill, .hov .st-fill { transform: scale(1); }

.review { text-align: center; }
.review .muted { margin-left: auto; margin-right: auto; max-width: 300px; }
.rate { display: flex; justify-content: center; gap: 8px; margin: 34px 0 14px; }
.rate-star { position: relative; width: 54px; height: 54px; color: var(--line-2); transition: color .25s, transform .15s var(--ease), filter .3s; }
.rate-star svg { width: 100%; height: 100%; overflow: visible; }
.rate-star:active { transform: scale(.86); }
.rate-star.on, .rate-star.hov { color: #fff; }
.rate-star.on { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)); }
.rate-star.on .st-fill { transition-delay: calc(var(--i) * 55ms); }
.rate.pop .rate-star.on { animation: star-pop .55s calc(var(--i) * 55ms) var(--ease) both; }
@keyframes star-pop {
  0% { transform: scale(.7) rotate(-14deg); }
  45% { transform: scale(1.22) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}
.spark { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; pointer-events: none; animation: spark .8s var(--d) cubic-bezier(.2, .7, .3, 1) both; }
@keyframes spark {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
.rate-label { min-height: 22px; font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--faint); }
.rate-label.chosen { color: var(--text); }
.rate-label.swap { animation: label-in .35s var(--ease); }
@keyframes label-in { from { opacity: 0; transform: translateY(6px); } }
.rate-more { text-align: left; margin-top: 22px; }
.rate-more.reveal { animation: in .45s var(--ease); }
.rate-more .consent { margin-top: 10px; }
.rate-more .btn { margin-top: 14px; }

.review-done { text-align: center; align-items: center; }
.review-done .muted { max-width: 300px; }
.thanks-stars { margin: 14px 0 6px; }
.thanks-stars .mini-stars i { width: 26px; height: 26px; }
.review-done .link-btn { margin-top: 16px; }

.mini-stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.mini-stars i { width: 16px; height: 16px; color: var(--line-2); }
.mini-stars i.on { color: #fff; }
.mini-stars svg { width: 100%; height: 100%; display: block; }

/* в «Моих заказах» */
.rate-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.rate-cta b { font-size: 14px; }
.rate-cta .mini-rate { display: flex; gap: 2px; }
.rate-cta .mini-rate button { width: 30px; height: 30px; padding: 3px; color: var(--muted); transition: transform .15s var(--ease); }
.rate-cta .mini-rate button:active { transform: scale(.85); color: #fff; }
.rate-cta .mini-rate svg { width: 100%; height: 100%; }
.rated { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.review-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #d6d6d6; }
.review-card .muted { margin-top: 8px; }

/* =================== отзывы =================== */
.admin-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: 1 0 auto; padding: 10px 12px; }

.star-meter { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.star-meter svg { width: 18px; height: 18px; margin-right: 2px; }
.star-meter .sm-base { color: var(--line-2); display: inline-flex; }
.star-meter .sm-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #fff; }
.star-meter .sm-fill > span { display: inline-flex; }
.star-meter .sm-fill i { display: inline-block; }

.rv-sum { display: flex; align-items: center; gap: 16px; margin: 10px 0 16px; }
.rv-avg { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.rv-sum .star-meter svg { width: 22px; height: 22px; }
.rv-sum .muted { margin-top: 6px; }
.rv-sum.admin .rv-avg { font-size: 40px; }
.rv-dist { display: grid; gap: 6px; margin-bottom: 16px; }
.rv-row { display: grid; grid-template-columns: 14px 1fr 26px; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.rv-row span:last-child { text-align: right; }
.rv-row i { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rv-row b { display: block; height: 100%; width: var(--w); background: #fff; border-radius: 4px; animation: bar-in .9s var(--ease) both; }
@keyframes bar-in { from { width: 0; } }
.rv-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.rv-badge { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; line-height: 1.3; color: #cfcfcf; }
.rv-badge svg { width: 18px; height: 18px; flex: none; color: #fff; }
.rv-badges .rv-badge:only-child { grid-column: 1 / -1; }

.rv-card { margin-bottom: 10px; padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: in .5s calc(var(--i) * 70ms) var(--ease) both; }
.rv-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rv-card header b { display: block; font-size: 14px; }
.rv-card header .muted { display: block; }
.rv-verified { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; color: #7ee2a8; box-shadow: inset 0 0 0 1px #1d3d2b; white-space: nowrap; }
.rv-verified svg { width: 12px; height: 12px; }
.rv-text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #e6e6e6; overflow-wrap: anywhere; }
.rv-order { margin-top: 8px; font-size: 12px; color: var(--muted); }
.rv-photo { position: relative; display: block; width: 100%; margin-top: 10px; border-radius: var(--r-sm); overflow: hidden; }
.rv-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rv-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: left; font-size: 11.5px; color: #e6e6e6; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.rv-reply { margin-top: 10px; padding: 10px 12px; border-left: 2px solid #fff; background: var(--surface-2); font-size: 13px; line-height: 1.5; color: #cfcfcf; }
.rv-reply b { display: block; font-size: 11.5px; letter-spacing: .02em; color: #fff; margin-bottom: 2px; }
.rv-reply p { margin: 0; }
.wide-reply { width: 100%; max-width: 360px; text-align: left; margin: 14px auto 0; }
.rv-cta { margin-top: 18px; }
.reviews-empty .btn { margin-top: 20px; }

.trust-strip { display: flex; align-items: center; gap: 10px; width: 100%; margin: -8px 0 18px; padding: 11px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; font-size: 13.5px; }
.trust-strip .star-meter svg { width: 15px; height: 15px; }
.trust-strip > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trust-strip .arrow { color: var(--faint); }

.rv-admin { margin-bottom: 10px; }
.rv-admin.is-hidden { opacity: .55; }
.rv-admin header { display: flex; align-items: center; justify-content: space-between; }
.rv-admin textarea.input { min-height: 60px; margin-top: 10px; font-size: 14px; }
.rv-admin .btn-row select { flex: 1; height: 44px; font-size: 13px; padding: 0 12px; }
.rv-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.person-mini { display: flex; align-items: center; gap: 8px; margin-top: 10px; text-align: left; font-size: 13px; }

/* =================== движение =================== */
/* переходы между экранами: старый экран уезжает «призраком», новый въезжает */
main.ghost { position: fixed; z-index: 1; margin: 0; pointer-events: none; animation: .18s cubic-bezier(.4, 0, 1, 1) forwards; }
main.ghost.out-fwd { animation-name: out-left; }
main.ghost.out-back { animation-name: out-right; }
main.ghost.out-fade { animation-name: out-fade; }
@keyframes out-left { to { opacity: 0; transform: translateX(-16px); } }
@keyframes out-right { to { opacity: 0; transform: translateX(16px); } }
@keyframes out-fade { to { opacity: 0; transform: scale(.985); } }
main.enter { animation: .44s .1s var(--ease-out) backwards; }
main.in-fwd { animation-name: in-right; }
main.in-back { animation-name: in-left; }
main.in-fade { animation-name: in; }
@keyframes in-right { from { opacity: 0; transform: translateX(24px); } }
@keyframes in-left { from { opacity: 0; transform: translateX(-24px); } }
main.enter .step { animation: none; }

/* шаги мастера заказа */
.step.still { animation: none; }
.step.go-fwd { animation: in-right .45s var(--ease-out); }
.step.go-back { animation: in-left .45s var(--ease-out); }
.counter b { display: inline-block; }
.counter b.tick { animation: tick .45s var(--spring); }
@keyframes tick { from { opacity: 0; transform: translateY(-70%); } }
.segments i.on::after { box-shadow: 0 0 6px rgba(255, 255, 255, .5); }

/* карточки появляются лесенкой */
.rise { animation: rise .55s calc(var(--i, 0) * 45ms) var(--ease-out) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* волна от пальца */
.btn, .opt, .idk, .chip, .tpl, .row-item, .icon-btn, button.card, .send-btn, .attach { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .12); transform: scale(0); animation: ripple .65s var(--ease-out) forwards; }
@keyframes ripple { 55% { opacity: 1; } to { transform: scale(1); opacity: 0; } }
.btn.primary .ripple, .seg > button.sel .ripple, .send-btn .ripple { background: rgba(0, 0, 0, .14); }
.nope { animation: shake .35s; }

/* выбор: точки и галочки «щёлкают» */
.opt.sel::after { animation: dot-pop .45s var(--spring); }
.consent.sel .box, .chip.sel .dot { animation: dot-pop .45s var(--spring); }
@keyframes dot-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.opt.style-opt .swatch { transition: filter .3s, transform .6s var(--ease-out); }
.opt.style-opt.sel .swatch { transform: scale(1.05); }
.opt.sel { transition: box-shadow .3s var(--ease-out), background .3s var(--ease-out), transform .12s var(--ease); }
.stepper output { display: inline-block; }
.stepper output.tick { animation: tick .35s var(--spring); }
.stepper output.tick.down { animation-name: tick-down; }
@keyframes tick-down { from { opacity: 0; transform: translateY(70%); } }
.pop-in { animation: in .4s var(--ease-out); }

/* нижняя кнопка мастера выезжает */
.nav:not([hidden]) { animation: nav-in .5s var(--ease-out); }
@keyframes nav-in { from { transform: translateY(100%); opacity: 0; } }

/* шторки и просмотр фото закрываются плавно */
.sheet { animation: up .5s var(--ease-out); }
.sheet.closing { animation: down .24s var(--ease-in) forwards; }
@keyframes down { to { transform: translateY(100%); } }
.sheet-backdrop.closing { animation: fade-out .24s forwards; }
@keyframes fade-out { to { opacity: 0; } }
.sheet-handle { cursor: grab; }
.viewer img { animation: zoom-in .4s var(--ease-out); }
.viewer.closing { animation: fade-out .2s forwards; }
@keyframes zoom-in { from { opacity: 0; transform: scale(.9); } }

/* знак бренда: разрыв нимба медленно обходит круг */
.mark ellipse { animation: halo 14s linear infinite; }
@keyframes halo { to { stroke-dashoffset: -106; } }

/* непрочитанное мерцает */
.unread-dot { animation: beacon 2.4s ease-out infinite; }
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

/* чат: кнопка «отправить» оживает, когда есть что отправить */
.send-btn:not(:disabled) { animation: send-on .35s var(--spring); }
@keyframes send-on { from { transform: scale(.7); } }

/* заказ отправлен */
.done .check { position: relative; }
.done .check { animation: check-in .6s var(--spring) backwards; }
@keyframes check-in { from { transform: scale(.5); opacity: 0; } }
.done .check::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); animation: ring 1.6s .3s var(--ease-out) both; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.done .ticket b { font-variant-numeric: tabular-nums; }

/* путь заказа в «Моих заказах» */
.track { position: relative; margin: 16px 0 6px; }
.track-line { position: absolute; left: 10%; right: 10%; top: 5px; height: 1px; background: var(--line-2); }
.track-line b { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--white); box-shadow: 0 0 6px rgba(255, 255, 255, .5); animation: track-in 1.1s .15s var(--ease-out) backwards; }
@keyframes track-in { from { width: 0; } }
.track ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.track li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10.5px; line-height: 1.2; color: var(--faint); text-align: center; }
.track li i { width: 11px; height: 11px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.track li.past i, .track li.now i { background: var(--white); box-shadow: none; animation: dot-pop .45s calc(.15s + var(--k) * .16s) var(--spring) backwards; }
.track li.now i { animation: dot-pop .45s calc(.15s + var(--k) * .16s) var(--spring) backwards, beacon 2.4s 1.2s ease-out infinite; }
.track.complete li.now i { animation: dot-pop .45s calc(.15s + var(--k) * .16s) var(--spring) backwards; }
.track li.past span { color: var(--muted); }
.track li.now span { color: var(--text); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .ripple, main.ghost { display: none; }
}
.chat-sys.fresh { animation: in .4s var(--ease-out); }
.order-card > .track + .muted { margin-top: 12px; }

/* =================== док-навигация (снизу) =================== */
:root { --dock-h: 64px; --dock-space: 86px; }   /* высота дока и сколько места он занимает внизу */

/* шапка уезжает вверх сдвигом - высота страницы не меняется, прокрутка не дёргается */
.top { padding: 12px 20px; transition: transform .45s var(--ease-out), opacity .3s; will-change: transform; }
body.compact .top { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.dock {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
  max-width: 520px; height: var(--dock-h); margin: 0 auto; padding: 5px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border-radius: 26px; background: rgba(14, 14, 14, .8);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 14px 44px rgba(0, 0, 0, .75);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .6s var(--spring-soft), opacity .35s;
}
.dock:empty { display: none; }
/* до конца заставки и в чатах (там внизу поле ввода) дока нет */
body:not(.revealed) .dock, body.chat-mode .dock { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
body:not(.revealed) .top { transform: translateY(-100%); opacity: 0; }

.dock-tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; border-radius: 21px; color: var(--muted);
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; transition: color .3s var(--ease-out);
}
.dock-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.dock-tab svg { width: 21px; height: 21px; transition: transform .45s var(--spring); }
.dock-tab:active svg { transform: scale(.84); }
.dock-tab.sel { color: #000; }
.dock-tab.sel svg { animation: dock-hop .6s var(--spring); }
@keyframes dock-hop { 0% { transform: translateY(0) scale(.8); } 45% { transform: translateY(-3px) scale(1.12); } 100% { transform: none; } }
.dock > .glide {
  position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 21px; background: var(--white);
  box-shadow: 0 0 22px rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .08);
  transition: transform .5s var(--spring-soft), width .5s var(--spring-soft), opacity .2s;
}
.dock.dragging > .glide { transition: none; scale: 1.06; }
.dock.dragging .dock-tab.sel:not(.hover) { color: var(--muted); }
.dock.dragging .dock-tab.hover { color: #000; }
.dock-tab .unread-dot { position: absolute; top: 8px; left: calc(50% + 8px); margin: 0; }
.dock-tab.sel .unread-dot { background: #000; box-shadow: none; animation: none; }

/* всё, что прижато к низу, теперь стоит над доком */
main { padding-bottom: 28px; }
.foot { margin: 0 auto; padding: 4px 20px calc(var(--dock-space) + 18px + var(--safe-b)); }
body:has(#nav:not([hidden])) .foot { padding-bottom: calc(var(--dock-space) + 96px + var(--safe-b)); }
.nav { bottom: 0; padding: 18px 20px calc(var(--dock-space) + 6px + var(--safe-b)); background: linear-gradient(to top, #000 78%, rgba(0, 0, 0, 0)); }
.toast { bottom: calc(var(--dock-space) + 14px + var(--safe-b)); }
body:has(#nav:not([hidden])) .toast { bottom: calc(var(--dock-space) + 86px + var(--safe-b)); }
body.chat-mode .toast { bottom: calc(84px + var(--safe-b)); }
.done { min-height: calc(100vh - 220px); }

/* =================== первый шаг: выбор дома =================== */
/* заголовок проявляется по словам из-под маски */
h1.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
h1.words .w > span { display: inline-block; animation: word-up .7s calc(.05s + var(--i) * 70ms) var(--ease-out) backwards; }
@keyframes word-up { from { transform: translateY(105%); } }

.opt.house { padding: 14px 14px 15px; min-height: 118px; }
.h-ico { display: block; width: 30px; height: 30px; margin-bottom: 16px; color: var(--muted); transition: color .3s; }
.opt.house.sel .h-ico, .hp-ico .h-ico { color: var(--white); }
/* выбранный дом прорисовывается линиями */
.opt.house.sel .h-ico path, .hp-ico .h-ico path { stroke-dasharray: 1; animation: draw-line .9s var(--ease-out) backwards; }
.opt.house.sel .h-ico path:nth-child(2), .hp-ico .h-ico path:nth-child(2) { animation-delay: .12s; }
.opt.house.sel .h-ico path:nth-child(3), .hp-ico .h-ico path:nth-child(3) { animation-delay: .24s; }
.opt.house.sel .h-ico path:nth-child(4), .hp-ico .h-ico path:nth-child(4) { animation-delay: .36s; }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* сворачивание сетки в строку и выезд деталей - через высоту строк сетки */
.hp-row, .hp-grid, .hp-more { display: grid; transition: grid-template-rows .55s var(--ease-out), opacity .4s var(--ease-out); }
.hp-row > div, .hp-grid > div, .hp-more > div { min-height: 0; overflow: hidden; }
.hp-row { grid-template-rows: 0fr; opacity: 0; }
.hp-grid { grid-template-rows: 1fr; }
.hp.chosen .hp-row { grid-template-rows: 1fr; opacity: 1; }
.hp.chosen .hp-grid { grid-template-rows: 0fr; opacity: 0; }
.hp-more { grid-template-rows: 0fr; opacity: 0; }
.hp-more.open { grid-template-rows: 1fr; opacity: 1; }
.hp-more > div { padding: 0 1px 2px; margin: 0 -1px; }
.hp-more .label:first-child { margin-top: 26px; }

.hp-chosen {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-bottom: 2px;
  padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--white);
  position: relative; overflow: hidden;
}
.hp.chosen .hp-chosen { animation: chosen-in .6s var(--spring-soft); }
@keyframes chosen-in { from { transform: scale(.94); } }
.hp-ico { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.hp-ico .h-ico { width: 26px; height: 26px; margin: 0; }
.hp-chosen b { display: block; font-size: 16px; margin-top: 2px; }
.hp-change { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 7px 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-2); }
.hp-next { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.hp-next svg { width: 14px; height: 14px; }
.hp-more.open .hp-next { animation: in .6s .35s var(--ease-out) backwards; }

/* =================== экран запуска =================== */
.splash {
  position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  touch-action: none; user-select: none; -webkit-user-select: none;   /* тапом не пропускается */
}
.sp-glow { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; margin: -230px 0 0 -190px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 62%); opacity: 0; animation: sp-glow-in 1.2s .2s var(--ease-out) forwards, sp-breathe 3s 1.4s ease-in-out infinite; }
@keyframes sp-glow-in { to { opacity: 1; } }
@keyframes sp-breathe { 50% { transform: scale(1.12); opacity: .7; } }

/* нимб рисуется одной линией, потом разрыв медленно обходит круг */
.sp-halo { position: relative; width: 176px; height: 81px; margin-bottom: -6px; overflow: visible; animation: sp-float 3.2s 1.2s ease-in-out infinite; }
.sp-halo ellipse { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 100; filter: drop-shadow(0 0 7px rgba(255, 255, 255, .75)); animation: sp-draw 1.05s .15s cubic-bezier(.65, 0, .35, 1) forwards, sp-spin 7s 1.2s linear infinite; }
@keyframes sp-draw { to { stroke-dasharray: 88 12; } }
@keyframes sp-spin { to { stroke-dashoffset: -100; } }
@keyframes sp-float { 50% { transform: translateY(-4px); } }

/* буквы поднимаются из размытия, потом по слову пробегает свет */
.sp-word { position: relative; display: flex; font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: .05em; color: #fff; }
.sp-word span { display: inline-block; opacity: 0; transform: translateY(55%) scale(.9); filter: blur(10px); }
.splash.go .sp-word span { animation: sp-letter .85s calc(.25s + var(--i) * 65ms) var(--ease-out) forwards, sp-flash .9s calc(1.45s + var(--i) * 55ms) ease-in-out; }
@keyframes sp-letter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes sp-flash { 50% { text-shadow: 0 0 16px #fff, 0 0 2px #fff; } }
.sp-sub { margin-top: 12px; padding-left: .7em; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); opacity: 0; }
.splash.go .sp-sub { animation: sp-sub 1.1s .95s var(--ease-out) forwards; }
@keyframes sp-sub { to { letter-spacing: .7em; opacity: 1; } }

/* тонкая полоса загрузки внизу */
.sp-bar { position: absolute; left: 50%; bottom: calc(64px + var(--safe-b)); width: 120px; height: 1px; margin-left: -60px; background: var(--line); overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); animation: sp-load 2.1s .15s cubic-bezier(.3, .1, .2, 1) forwards; }
@keyframes sp-load { to { transform: scaleX(1); } }

.sp-dust { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 6px rgba(255, 255, 255, .8); animation: sp-dust var(--t) var(--d) ease-out infinite; }
@keyframes sp-dust { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: .7; } 100% { opacity: 0; transform: translateY(-70px); } }

/* уход: нимб летит на зрителя как портал, остальное гаснет */
.splash.out { animation: fade-out .75s .1s var(--ease-in) forwards; pointer-events: none; }
.splash.out .sp-halo { animation: sp-portal .8s cubic-bezier(.7, 0, .84, 0) forwards; }
@keyframes sp-portal { to { transform: scale(9); opacity: 0; } }
.splash.out .sp-word, .splash.out .sp-sub, .splash.out .sp-bar { transition: opacity .3s, transform .5s var(--ease-in); opacity: 0; transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .splash * { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .sp-halo ellipse { stroke-dasharray: 88 12; }
  .sp-dust { display: none; }
}

/* =================== плавность =================== */
/* подложки вкладок двигаются только через transform (см. glide в core.js) */
.glide { transform-origin: left center; transition: opacity .2s !important; will-change: transform; }
/* размытие под доком, шапкой и полем ввода пересчитывалось каждый кадр, пока под ними ехал экран, - отсюда рывки.
   На чистом чёрном фоне почти непрозрачная подложка выглядит так же */
.dock { background: rgba(12, 12, 12, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.top { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
.composer { background: rgba(0, 0, 0, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* футер не всплывает в середину экрана, пока новый экран ещё пустой */
main { min-height: calc(100vh - 60px); }
.nav.ghost-nav { animation: fade-out .22s var(--ease-in) forwards; pointer-events: none; }
/* вкладка внутри админки: полоска стоит, содержимое под ней мягко сменяется */
main.tab-swap .step { animation: none; }
main.tab-swap .step.admin > :not(.admin-tabs):not(.eyebrow) { animation: in .38s var(--ease-out) backwards; }

/* =================== петы: выбор для оплаты =================== */
.pet-sheet { height: 92vh; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; padding: 8px 0 0; }
.pet-sheet[hidden] { display: none; }
.pet-top { padding: 0 20px 12px; box-shadow: 0 1px 0 var(--line); position: relative; z-index: 1; }
.pet-top .sheet-head h2 { font-size: 20px; }
.pet-search { display: flex; align-items: center; gap: 10px; margin-top: 16px; height: 48px; padding: 0 6px 0 14px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: box-shadow .2s, color .2s; }
.pet-search:focus-within { box-shadow: inset 0 0 0 1px var(--white); color: var(--text); }
.pet-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 15px var(--body); }
.pet-search input::placeholder { color: var(--faint); }
.pet-search input::-webkit-search-cancel-button { display: none; }
.pet-search button { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.seg.pet-rar { margin-top: 10px; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
.seg.pet-rar::-webkit-scrollbar { display: none; }
.seg.pet-rar button { padding: 9px 13px; font-size: 13px; }
.pet-found { margin-top: 10px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.pet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 24px; }
.pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pet-card {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 8px 11px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: box-shadow .2s, background .2s, transform .15s;
}
.pet-card:active { transform: scale(.96); }
.pet-card.sel { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--white); }
.pet-card.skeleton { height: 128px; margin: 0; border-radius: 14px; }
.pet-grid.anim .pet-card { animation: in .4s calc(var(--i) * 22ms) var(--ease-out) backwards; }
.pet-grid .pet-card.added { animation: pet-pop .45s var(--spring); }
@keyframes pet-pop { 40% { transform: scale(1.06); } }
.pet-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 9px; min-height: 30px; font-size: 12px; font-weight: 600; line-height: 1.25; word-break: break-word; }
.pet-n { position: absolute; top: 7px; right: 7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--white); color: #000; font-size: 11px; display: grid; place-items: center; animation: pet-pop .4s var(--spring); }
.rar { display: inline-flex; align-items: flex-end; gap: 2px; height: 7px; margin-top: 6px; }
.rar i { width: 5px; border-radius: 1px; background: var(--line-2); }
.rar i:nth-child(1) { height: 3px; } .rar i:nth-child(2) { height: 4px; } .rar i:nth-child(3) { height: 5px; } .rar i:nth-child(4) { height: 6px; } .rar i:nth-child(5) { height: 7px; }
.rar i.on { background: var(--muted); }
.rar:has(i:nth-child(5).on) i.on { background: var(--white); box-shadow: 0 0 4px rgba(255, 255, 255, .5); }
.pet-empty { margin: 0; padding: 36px 12px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* лицо пета: картинка или монограмма; неон светится, мега-неон переливается светом */
.pet-face { position: relative; flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: #0e0e0e; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s; }
.pet-face img { width: 100%; height: 100%; object-fit: contain; }
.mono-ltr { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .02em; color: var(--text); }
.pet-face.k-neon { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 0 16px rgba(255, 255, 255, .28); }
.pet-face.k-neon .mono-ltr { text-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.pet-face.k-mega { box-shadow: inset 0 0 0 1.5px #fff, 0 0 22px rgba(255, 255, 255, .4); animation: mega-glow 2.4s ease-in-out infinite; }
.pet-face.k-mega .mono-ltr { text-shadow: 0 0 12px #fff; }
.pet-face.k-mega::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); animation: mega-sweep 2.4s ease-in-out infinite; }
@keyframes mega-glow { 50% { box-shadow: inset 0 0 0 1.5px #fff, 0 0 30px rgba(255, 255, 255, .6); } }
@keyframes mega-sweep { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.pet-face.big { width: 68px; height: 68px; border-radius: 18px; }
.pet-face.big .mono-ltr { font-size: 22px; }
.pet-face.sm { width: 38px; height: 38px; border-radius: 11px; }
.pet-face.sm .mono-ltr { font-size: 12px; }
.pet-face.xs { width: 22px; height: 22px; border-radius: 7px; }
.pet-face.xs .mono-ltr { font-size: 8px; }
.pet-code { display: inline-block; padding: 2px 6px; border-radius: 6px; font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); vertical-align: 1px; }
.pet-code.k-neon { box-shadow: inset 0 0 0 1px #fff, 0 0 8px rgba(255, 255, 255, .35); }
.pet-code.k-mega { background: #fff; color: #000; box-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.pet-code.plain { color: var(--faint); }

.pet-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(12px + var(--safe-b)); box-shadow: 0 -1px 0 var(--line); background: #070707; }
.pet-picked { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-picked b { font-size: 14px; }
.pet-foot .btn { flex: none; min-width: 116px; margin: 0; }

/* настройка пета выезжает снизу внутри шторки */
.pet-cfg-scrim { position: absolute; inset: 0; z-index: 2; background: rgba(0, 0, 0, .66); opacity: 0; pointer-events: none; transition: opacity .3s; }
.pet-cfg {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 20px 20px calc(18px + var(--safe-b));
  border-radius: 22px 22px 0 0; background: #0b0b0b; box-shadow: inset 0 1px 0 var(--line-2), 0 -20px 50px rgba(0, 0, 0, .7);
  transform: translateY(105%); transition: transform .45s var(--ease-out), visibility 0s .45s; visibility: hidden;
}
.pet-sheet.cfg-open .pet-cfg-scrim { opacity: 1; pointer-events: auto; }
.pet-sheet.cfg-open .pet-cfg { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
.pet-cfg .label:first-of-type { margin-top: 18px; }
.pc-head { display: flex; align-items: center; gap: 14px; }
.pc-head h3 { margin: 4px 0 7px; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.2; }
.pc-code { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.pc-code .pet-code { animation: pet-pop .35s var(--spring); }
.pc-pots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-pot { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: box-shadow .2s, background .2s; }
.pc-pot b { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--surface-2); color: var(--muted); transition: background .2s, color .2s; }
.pc-pot span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.pc-pot small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.pc-pot .tog { position: relative; width: 30px; height: 18px; flex: none; border-radius: 9px; background: var(--line-2); transition: background .25s; }
.pc-pot .tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .35s var(--spring), background .25s; }
.pc-pot.sel { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--white); }
.pc-pot.sel b { background: var(--white); color: #000; }
.pc-pot.sel .tog { background: var(--white); }
.pc-pot.sel .tog::after { transform: translateX(12px); background: #000; }
.pc-actions { display: flex; gap: 10px; margin-top: 20px; }
.pc-actions .btn { margin: 0; }

/* петы на шаге оплаты и в карточке заказа */
#petBlock:empty { display: none; }
.pet-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pet-row { display: flex; gap: 8px; animation: in .35s var(--ease-out); }
.pr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.pr-main b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.pr-qty { font-size: 13px; color: var(--muted); }
.pr-del { width: 44px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pet-add { margin-top: 0; }
.pet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; }
.pet-chip .pr-qty { font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .pet-face.k-mega, .pet-face.k-mega::after { animation: none; } }
.pet-credit { margin: 22px 0 0; text-align: center; font-size: 10px; line-height: 1.6; color: var(--faint); letter-spacing: .02em; }
.pet-search button[hidden] { display: none; }
.pet-code { white-space: nowrap; }
.pet-chips { flex-direction: column; align-items: flex-start; }
.pet-chip { max-width: 100%; }
.pet-chip > span:not(.pet-face):not(.pet-code):not(.pr-qty) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-chip .pet-code, .pet-chip .pr-qty { flex: none; }
.pet-credit button { font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.pet-face:has(img) { background: #0b0b0b; }
.pet-face img { padding: 4px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.pet-face.xs img, .pet-face.sm img { padding: 1px; }
.pet-face.k-neon img { filter: drop-shadow(0 0 5px rgba(255, 255, 255, .55)); }
.pet-face.k-mega img { filter: drop-shadow(0 0 7px rgba(255, 255, 255, .8)); }
.pet-card .pet-face { transition: transform .35s var(--spring); }
.pet-card:active .pet-face { transform: scale(.92); }

/* петы в заказе: плашки и карточка пета */
.pet-chip { text-align: left; padding: 4px 10px 4px 4px; border-radius: 12px; gap: 8px; transition: transform .12s var(--ease), box-shadow .2s; }
.pet-chip:active { transform: scale(.97); box-shadow: inset 0 0 0 1px var(--line-2); }
.pet-chip .pet-face.sm { width: 32px; height: 32px; border-radius: 9px; }
.pet-view[hidden] { display: none; }
.pet-view .sheet-head { align-items: center; }
.pv-hero { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0 16px; }
.pet-face.huge { width: 156px; height: 156px; border-radius: 34px; }
.pet-face.huge img { padding: 14px; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .7)); }
.pet-face.huge .mono-ltr { font-size: 46px; }
.pet-face.huge.k-neon { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 34px rgba(255, 255, 255, .3); }
.pet-face.huge.k-mega { box-shadow: inset 0 0 0 2px #fff, 0 0 44px rgba(255, 255, 255, .45); }
.pv-arrow { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transition: opacity .2s, transform .12s var(--ease); }
.pv-arrow:active { transform: scale(.92); }
.pv-arrow:disabled { opacity: .25; }
.pv-name { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.2; text-align: center; margin: 0; letter-spacing: -.01em; }
.pv-rar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 18px; margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.pv-rar .rar { margin: 0; }
.pv-kv dd .pet-code { margin-right: 4px; }
.kv dd:has(> .pet-chips) { min-width: 0; }
.pet-chips { min-width: 0; max-width: 100%; }
.pet-chip { min-width: 0; }

/* иконки способов оплаты и зелья в окне выбора */
.opt.compact .cur-ico { display: block; width: 30px; height: 30px; margin: -4px auto 6px; object-fit: contain; opacity: .7; transition: opacity .25s, filter .25s, transform .35s var(--spring); }
.opt.compact.sel .cur-ico { opacity: 1; transform: scale(1.08); }
.opt.compact.sel .tg-star { filter: drop-shadow(0 0 8px rgba(255, 197, 48, .45)); }
.opt.compact img.cur-ico { width: 34px; height: 34px; margin-top: -6px; }
.pet-tag { display: inline-block; margin-top: 5px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* живые эмодзи (анимированные Noto Emoji): играют всё время, пока экран открыт */
.live { display: block; flex: none; width: 56px; height: 56px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.title-live { width: 54px; height: 54px; margin-left: auto; align-self: flex-end; margin-bottom: 4px; animation: live-in .7s .35s var(--spring) backwards; }
.empty-live { width: 76px; height: 76px; margin: 0 auto 14px; animation: live-in .7s var(--spring) backwards; }
.empty-state .empty-live { margin: 0 0 16px; }
.chat-live { width: 60px; height: 60px; margin: 0 auto 12px; }
.pet-empty .empty-live { width: 60px; height: 60px; }
.done-live { position: relative; width: 104px; height: 104px; margin: 0 0 22px -6px; }
.done-live .live { width: 104px; height: 104px; animation: live-in .8s var(--spring) backwards; }
@keyframes live-in { from { opacity: 0; transform: scale(.5) rotate(-10deg); } }
/* спокойные постоянные движения: выбранное слегка «дышит» */
.opt.compact.sel .cur-ico { animation: idle-float 3.2s ease-in-out .4s infinite; }
.opt.compact.sel .tg-star { animation: idle-float 3.2s ease-in-out .4s infinite, star-glint 2.6s ease-in-out infinite; }
.pet-card.sel .pet-face img { animation: idle-bob 2.8s ease-in-out infinite; }
.pet-face.huge img { animation: idle-bob 3.6s ease-in-out infinite; }
@keyframes idle-bob { 50% { transform: translateY(-3px); } }
@keyframes idle-float { 0%, 100% { transform: translateY(0) scale(1.08); } 50% { transform: translateY(-3px) scale(1.08); } }
@keyframes star-glint { 0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 197, 48, .35)); } 50% { filter: drop-shadow(0 0 12px rgba(255, 210, 90, .75)); } }
@media (prefers-reduced-motion: reduce) { .live, .cur-ico, .pet-face img { animation: none !important; } }
.status-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; }
.status-line .muted { margin: 0; }
.status-live { width: 26px; height: 26px; }
.live svg { display: block; }

/* ---------- срок сдачи: обратный отсчёт ---------- */
.due { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); }
.due-k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.due-date { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.due-v { display: block; margin: 6px 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.due-bar { height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.due-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p)); background: var(--white); transition: transform 1s linear; }
.due.soon { box-shadow: inset 0 0 0 1px var(--white); }
.due.late { box-shadow: inset 0 0 0 1px var(--danger); }
.due.late .due-k, .due.late .due-v { color: var(--danger); }
.due.late .due-bar i { background: var(--danger); }
.due-chip { font-size: 11px; color: var(--muted); white-space: nowrap; }
.due-chip.soon { color: var(--text); }
.due-chip.late { color: var(--danger); }
.due-card .due { margin-bottom: 14px; }
.due-card > .muted { margin: 0 0 12px; }
.due-presets { margin-bottom: 8px; }
.due-input { color-scheme: dark; font-family: var(--mono); }
.due-card .btn-row { margin-top: 10px; }
#petsWrap[hidden] { display: none; }
#noDue { margin: 10px 0 0; }

/* ---------- тестовый сервер ---------- */
html[data-instance="dev"] .brand::after { content: "ТЕСТ"; padding: 3px 6px; border-radius: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--bg); background: var(--white); }

/* ---------- доплаты ---------- */
.extras { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.extras-head { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.extra-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.extra-row:last-of-type { border-bottom: 0; }
.extra-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.extra-row b { font-size: 14px; }
.extra-row .btn.small-btn { height: 36px; padding: 0 14px; font-size: 13px; flex: none; }
.extra-row.s-awaiting b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--white); vertical-align: middle; }
.extra-row.s-cancelled, .extra-row.s-refunded { opacity: .55; }
.extra-acts { display: flex; gap: 8px; width: 100%; }
.extra-acts .btn.small-btn { flex: 1; }
.extras-total { margin: 10px 0 0; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.extras-total b { color: var(--text); font-family: var(--mono); }
.card > .extras-total { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.xfill { margin: 0 0 8px; }
.card > .extra-row:first-child { padding-top: 0; }
#xTitle { margin-bottom: 8px; }

/* ---------- ход стройки ---------- */
.prog-card { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.prog-head b { font-size: 14px; }
.prog-head .mono, .prog-meta .mono { font-size: 11px; color: var(--faint); }
.prog-cap { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.prog-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prog-thumbs.n1 { grid-template-columns: 1fr; }
.prog-thumbs.n2 { grid-template-columns: 1fr 1fr; }
.prog-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.prog-thumbs.n1 .prog-thumb { aspect-ratio: 16 / 10; }
.prog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s var(--ease-out); }
.prog-thumb img[src] { opacity: 1; }
.prog-card .btn { margin-top: 10px; }
.prog-card .btn .count { margin-left: 8px; }
.prog-list { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 22px; }
.prog-item { position: relative; }
.prog-item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--white); }
.prog-item:first-child::before { background: var(--white); }
.prog-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; min-height: 20px; }
.prog-del { color: var(--faint); padding: 4px; }
.prog-del svg { width: 16px; height: 16px; }
.prog-admin .prog-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.prog-sel, .prog-add { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; }
.prog-sel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prog-sel button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .7); color: var(--white); }
.prog-sel button svg { width: 12px; height: 12px; }
.prog-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.prog-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.prog-admin .toggle { border-bottom: 0; padding: 12px 0 4px; }
.prog-admin textarea { margin-bottom: 4px; }
