/* Joblox storefront. Neutral warm paper, ink type, one bright accent — it suits a bakery, a taxi and a
   dress shop alike. No web fonts and no images in the theme: it loads in an instant on a cheap phone. */
:root {
  --bg: #f4f1ea; --panel: #fffdf8; --fg: #141312; --muted: #6c675f; --line: #e3ddd2; --field: #fffdf8;
  --accent: #ff5a1f; --accent-fg: #ffffff; --ink: #141312; --ink-fg: #f4f1ea;
  --ok: #157347; --warn: #9a5a00; --err: #c0262d; --soft: #ebe6db;
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 19, 18, .04), 0 18px 40px -22px rgba(20, 19, 18, .35);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211; --panel: #1c1b19; --fg: #f1ede4; --muted: #a39d92; --line: #2e2c28; --field: #171614;
    --accent: #ff6a33; --accent-fg: #160b06; --ink: #f1ede4; --ink-fg: #131211;
    --ok: #4cc38a; --warn: #f0b55b; --err: #ff7b7f; --soft: #262421;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
/* the body stays transparent: the kitten walks on a layer between the page background and the content */
body { margin: 0; color: var(--fg); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 12px; padding-bottom: 40px; min-height: 60vh; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 7%, transparent); } /* a barely visible edge */
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.contact { color: var(--muted); font-size: 14px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--ink);
  color: var(--ink-fg); font-weight: 700; font-size: 15px; text-decoration: none; }
.cart-link .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); font-size: 13px; font-variant-numeric: tabular-nums; }

/* type */
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.05; margin: 8px 0 10px; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: 21px; margin: 28px 0 12px; letter-spacing: -.02em; }
.lead { font-size: 18px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }

/* storefront hero */
.hero { padding: 28px 0 22px; }
.hero h1 { font-size: clamp(40px, 10vw, 112px); line-height: .92; letter-spacing: -.055em; margin: 0 0 18px; max-width: 16ch; overflow-wrap: break-word; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); max-width: 46ch; color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero-meta li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--panel); }
.hero-meta li b { font-variant-numeric: tabular-nums; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 14px; }
.section-head h2 { margin: 0; font-size: 24px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.pcard .media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .media img { transform: scale(1.04); }
.pcard .media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 800; color: var(--muted);
  letter-spacing: -.04em; }
.pcard .name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pcard .cost { display: flex; gap: 8px; align-items: baseline; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.pcard s, .buy s { color: var(--muted); font-weight: 500; font-size: .85em; }
.pcard.soldout .media img { filter: grayscale(1); opacity: .55; }
.pill { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: var(--panel); color: var(--fg);
  font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow); }
.pill.hot { background: var(--accent); color: var(--accent-fg); }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--fg); font-size: 20px; margin-bottom: 6px; }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 6px; } /* one column no wider than the screen: many thumbnails scroll, not stretch the page */
@media (min-width: 860px) { .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs a { flex: 0 0 56px; height: 70px; border-radius: 10px; overflow: hidden; opacity: .7; }
.thumbs a:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: relative; }
@media (min-width: 860px) { .buy { position: sticky; top: 88px; } }
.buy h1 { font-size: clamp(30px, 4.4vw, 48px); }
.buy .cost { display: flex; gap: 12px; align-items: baseline; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 18px;
  font-variant-numeric: tabular-nums; }
.buy .pill { position: static; display: inline-block; margin-bottom: 10px; box-shadow: none; border: 1px solid var(--line); }
.buy .pill.hot { border-color: var(--accent); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.sizes legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.sizes span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 11px 16px; border: 1.5px solid var(--line);
  border-radius: 14px; font-weight: 700; background: var(--panel); }
.sizes input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ink-fg); }
.sizes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sizes input:disabled + span { opacity: .4; text-decoration: line-through; }
.desc { white-space: pre-line; color: var(--fg); margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.added { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ink); color: var(--ink-fg);
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.added a { color: var(--ink-fg); font-weight: 800; }

/* cart */
.cart { display: grid; gap: 26px; }
@media (min-width: 900px) { .cart { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; gap: 40px; } }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 76px; height: 95px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line .t a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.cart-line .q { display: flex; gap: 6px; align-items: center; }
.cart-line .q input { width: 64px; text-align: center; padding: 8px; min-height: 40px; }
.cart-line .q button { min-height: 40px; padding: 8px 12px; }
.cart-line .field-error { grid-column: 2 / -1; margin: 0; }
.sumrow { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; font-weight: 800; padding: 16px 0 0; font-variant-numeric: tabular-nums; }

/* cards and forms (checkout, order, owner) */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.card h2:first-child { margin-top: 0; }
.banner { background: var(--soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; }
.banner.warn { color: var(--warn); }
.banner.error { color: var(--err); background: color-mix(in srgb, var(--err) 10%, var(--panel)); }
.banner.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
.items { list-style: none; padding: 0; margin: 0; }
.item { display: grid; grid-template-columns: 1fr 96px; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item-text { display: flex; flex-direction: column; }
.item .field-error { grid-column: 1 / -1; }
.price { font-variant-numeric: tabular-nums; }
.total { margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--accent); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--field);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=file] { padding: 9px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.qty input { text-align: center; }
.radio { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 8px 0; }
.radio input { width: auto; min-height: 0; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.field-error { color: var(--err); font-size: 14px; margin: 4px 0 0; }
button { font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 12px 20px; min-height: 46px;
  background: var(--ink); color: var(--ink-fg); cursor: pointer; transition: transform .12s ease; }
button:active { transform: scale(.98); }
button.secondary { background: var(--soft); color: var(--fg); }
button.danger { background: transparent; color: var(--err); border: 1.5px solid currentColor; }
button.link { background: none; color: var(--fg); padding: 8px 0; min-height: 0; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.cta { width: 100%; margin-top: 8px; font-size: 18px; min-height: 58px; border-radius: 18px; background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.inline { display: flex; gap: 8px; }
.inline input { max-width: 180px; letter-spacing: .2em; text-align: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 8px 0; }
.lines td, .lines th { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lines th { font-size: 13px; color: var(--muted); font-weight: 600; }
.lines .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines td:last-child, .lines th:last-child { padding-right: 0; }
.lines .sum td { font-weight: 800; border-bottom: 0; }
.big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: minmax(120px, 35%) 1fr; gap: 6px 14px; margin: 12px 0 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.pay .facts dd { font-weight: 700; }
.copy { user-select: all; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-top: 20px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
code { font-size: 13px; background: var(--soft); padding: 1px 6px; border-radius: 6px; }

/* sticky buy bar on phones */
.sticky-buy { position: sticky; bottom: 0; z-index: 10; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
@media (min-width: 860px) { .sticky-buy { position: static; background: none; padding: 0; } }

/* owner: catalog */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px; }
.prow .thumb { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.prow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prow .t a { font-weight: 700; text-decoration: none; }
.prow .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.prow .acts form { margin: 0; }
.prow .acts button { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.prow.off { opacity: .6; }
.vrows { display: grid; gap: 8px; }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 0 0 12px; }
.photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .acts { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 6px; }
.photo .acts form { flex: 1; margin: 0; }
.photo .acts button { width: 100%; min-height: 32px; padding: 4px; font-size: 12px; border-radius: 8px; }
.photo .first { position: absolute; top: 6px; left: 6px; }

/* dashboard */
.dash { max-width: 1100px; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile span { color: var(--muted); font-size: 13px; }
.tile b { font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile small { color: var(--muted); font-size: 12px; min-height: 1em; }
.tile.accent b { color: var(--accent); }
.tile.warn b { color: var(--warn); }
a.tile { color: var(--fg); text-decoration: none; }
a.tile:hover { border-color: var(--ink); }
.tile b.small { font-size: 17px; overflow-wrap: anywhere; }
a.button { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 14px; padding: 12px 20px;
  min-height: 46px; background: var(--ink); color: var(--ink-fg); text-decoration: none; }
a.button.secondary { background: var(--soft); color: var(--fg); }
a.cta.button { display: flex; width: 100%; font-size: 18px; background: var(--accent); color: var(--accent-fg); }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.qr-box .qr { width: 168px; height: 168px; border-radius: 10px; flex: none; background: #fff; padding: 6px; }
.qr-box p { flex: 1 1 200px; margin: 0; }
.chart { margin: 12px 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.chart svg { width: 100%; height: 120px; display: block; }
.chart path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart path.area { fill: var(--accent); opacity: .12; stroke: none; }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .inline { flex-wrap: wrap; }
  .inline input { max-width: none; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.note { margin-top: 28px; }
.demo-bar { margin: 0; padding: 8px 16px; background: var(--ink); color: var(--ink-fg); font-size: 13px; font-weight: 600; text-align: center; }
.demo-bar a { color: var(--accent); }
.mascot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
/* services showcase of a performer who names the price */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 22px; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.svc { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.svc:hover, .svc:focus-visible { transform: translateY(-3px); border-color: var(--ink); }
.svc-icon { position: absolute; right: -4px; bottom: -10px; font-size: 64px; line-height: 1; rotate: -10deg; opacity: .9; transition: rotate .3s ease; }
.svc:hover .svc-icon { rotate: 4deg; }
.svc b { font-size: 18px; line-height: 1.2; letter-spacing: -.02em; max-width: 80%; }
.svc small { color: var(--muted); font-size: 13px; line-height: 1.4; max-width: 72%; }
.svc-price { margin-top: auto; font-weight: 800; color: var(--accent); }
.svc b, .svc small, .svc-price { position: relative; z-index: 1; }
@media (max-width: 520px) { .svc-icon { font-size: 44px; right: -2px; bottom: -6px; } .svc small { max-width: 100%; } }
.whole { white-space: nowrap; }
/* a cover picture: a cut-out figure on the right, as tall as the whole page behind the content */
body:has(.hero-cover) { position: relative; overflow-x: hidden; }
.hero.with-cover { min-height: 460px; }
/* the figure is as tall as the site: from just over the header's lower edge down to the footer, standing on it */
main.wrap:has(.hero-cover) { position: relative; }
.hero-cover { position: absolute; z-index: -1; top: -40px; right: 0; height: calc(100% + 40px); width: auto; max-width: none;
  pointer-events: none; } /* its own proportions, against the right edge: the face stays right of the text */
/* the head comes out over the header's lower edge: the figure starts 40px above that edge, and a copy of its top
   band lies over the header (the figure itself stays under the page's text); the demo bar moves the header down */
/* with the figure in the top right the phone moves next to the name, where the head never covers it */
body:has(.hero-cover) .top .wrap { justify-content: flex-start; column-gap: 18px; }
body:has(.hero-cover) .top .contact { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--fg); }
.hero-cover.crown { display: none; }
@media (min-width: 721px) {
  .hero-cover.crown { display: block; z-index: 25; clip-path: inset(0 0 calc(100% - 42px) 0); }
}
/* the text lies over the figure: soft backings keep it readable */
@media (min-width: 721px) {
  .hero.with-cover > :not(.hero-cover) { max-width: 58%; }
  .hero.with-cover .lead { width: fit-content; padding: 4px 14px; border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (max-width: 720px) {
  /* on a phone the figure stands whole above the text, not under it: the text stays crisp in both themes */
  .hero.with-cover { min-height: 0; }
  .hero-cover { position: static; z-index: auto; display: block; width: 100%; height: 56svh; object-fit: contain; margin: 0 0 10px;
    object-position: center bottom; }
}
/* «make yourself the same»: every performer's site is also an invitation */
.clone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 28px; padding: 18px 22px; border-radius: var(--radius);
  border: 1.5px dashed var(--line); color: var(--fg); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  transition: border-color .2s ease, transform .2s ease; }
.clone:hover { border-color: var(--accent); transform: translateY(-2px); }
.clone small { font-weight: 500; font-size: 14px; color: var(--muted); }
body:has(.hero-cover) .svc, body:has(.hero-cover) .card, body:has(.hero-cover) .hero-meta li {
  background: color-mix(in srgb, var(--panel) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body:has(.hero-cover) .pcard .name, body:has(.hero-cover) .pcard .cost { align-self: flex-start; padding: 1px 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* «Посмотреть настоящее изображение»: a round button on the gallery opens the plain photos over the page */
.gallery-wrap { position: relative; }
.real-btn { position: absolute; z-index: 3; top: 14px; right: 14px; display: flex; align-items: center; gap: 10px; height: 58px; min-width: 58px;
  max-width: 58px; padding: 0 16px; border-radius: 999px; overflow: hidden; white-space: nowrap; text-decoration: none; color: #fff;
  background: rgba(20, 19, 18, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  transition: max-width .45s cubic-bezier(.2, .8, .2, 1), background .3s ease; }
.real-btn .real-icon { flex: none; font-size: 24px; line-height: 1; }
.real-btn .real-text { font-size: 19px; font-weight: 800; letter-spacing: -.01em; opacity: 0; transition: opacity .3s ease; }
.real-btn:hover, .real-btn:focus-visible { max-width: 520px; background: rgba(20, 19, 18, .72); }
.real-btn:hover .real-text, .real-btn:focus-visible .real-text { opacity: .92; }
@media (hover: none) { .real-btn { max-width: 520px; } .real-btn .real-text { opacity: .92; font-size: 15px; } }
.real { display: none; }
.real:target { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow-y: auto;
  padding: 64px 16px 40px; background: rgba(12, 11, 10, .94); }
.real img { width: auto; max-width: min(100%, 900px); height: auto; border-radius: 16px; }
.real-title { margin: 0; color: #f4f1ea; font-weight: 700; }
.real-close { position: fixed; top: 12px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; text-decoration: none; }
.mascot.pixel { image-rendering: pixelated; }
.media:has(.love), .noimg:has(.love) { position: relative; }
.mascot.love { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.pcard:hover .mascot.love, .noimg:hover .mascot.love { opacity: 1; }
/* the knitting shop: needles knit a toy in a card's corner, the thread runs round the card to a ball of yarn */
.mascot.knitbg { background: var(--soft); }
.noimg:has(.yarn) { position: relative; }
.yarn { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pcard .pill { z-index: 2; }
.y-bear { --yarn: rgb(196 146 104); }
.y-bunny { --yarn: rgb(232 160 184); }
.yarn .needles { position: absolute; top: 6px; right: 6px; width: 84px; height: auto; image-rendering: pixelated; }
/* the thread: from the needles left along the top, down the left side, right along the bottom to the ball */
.yarn .loop { position: absolute; top: 27px; left: -6px; right: 89px; bottom: -6px; }
.yarn .thread { position: absolute; inset: 0; clip-path: inset(-8px -40px -8px -8px); transition: clip-path 2.6s ease-in-out; }
.yarn .thread::before, .yarn .thread::after { content: ""; position: absolute; left: 0; border: 0 solid var(--yarn); }
.yarn .thread::before { top: 0; right: 0; bottom: 12px; border-width: 3px 0 0 3px; border-top-left-radius: 12px; }
.yarn .thread::after { bottom: 0; height: 12px; width: calc(100% + 24px); border-width: 0 0 3px 3px; border-bottom-left-radius: 12px; }
.yarn .ball { position: absolute; left: calc(100% + 24px); top: calc(100% - 25.5px); width: 48px; height: 36px; image-rendering: pixelated;
  transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
/* knocked off by the kitten: the ball rolls away, the thread snaps and winds back to the needles */
.yarn.snapped .thread { clip-path: inset(-8px -40px -8px calc(100% + 40px)); transition: clip-path 1s ease-in; }
.yarn.snapped .ball { animation: yarn-knock 1.2s ease-in forwards; }
.yarn.noball .ball { opacity: 0; transform: scale(.3); transition: none; }
.yarn.wiggle .ball { animation: yarn-wiggle .9s ease-in-out; }
@keyframes yarn-knock { 25% { transform: translate(14px, -16px) rotate(80deg); }
  100% { transform: translate(90px, 50px) rotate(420deg); opacity: 0; } }
@keyframes yarn-wiggle { 25% { transform: rotate(-16deg); } 60% { transform: rotate(12deg); } }
@media (max-width: 720px) { .yarn .needles { width: 63px; top: 4px; right: 4px; } .yarn .loop { top: 20px; right: 66px; left: -4px; bottom: -4px; }
  .yarn .ball { width: 36px; height: 27px; top: calc(100% - 19.5px); } }
@media (prefers-reduced-motion: reduce) { .yarn .thread, .yarn .ball { transition: none; animation: none; } }
/* in a row of cards only the penultimate one has the thread and the ball: one toy for the kitten */
.grid > .pcard:not(:nth-last-child(2)) .yarn .loop { display: none; }
/* the storefront of a knitting shop: one thread round the whole page, the cards only knit */
main.wrap:has(> .page-yarn) { position: relative; padding-top: 28px; }
main:has(> .page-yarn) .pcard .yarn .loop { display: none; }
.page-yarn { z-index: 0; }
.page-yarn .needles { width: 112px; top: 4px; right: 4px; }
.page-yarn .loop { top: 34px; right: 115px; left: -10px; bottom: -10px; }
@media (max-width: 720px) { .page-yarn .needles { width: 84px; } .page-yarn .loop { top: 27px; right: 87px; left: -6px; bottom: -6px; } }
/* with yarn.js the thread is a rope with weight (an SVG path) and the ball rolls on its own */
.yarn.live .loop { display: none; }
.yarn .rope { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.yarn .rope path { fill: none; stroke: var(--yarn); stroke-linecap: round; stroke-linejoin: round; }
.yarn .rope-ball { position: absolute; left: 0; top: 0; image-rendering: pixelated; will-change: transform; opacity: 0; }
.yarn .rope-ball.wiggle { animation: rope-wiggle .9s ease-in-out; }
.yarn .rope-ball.pop { animation: rope-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rope-wiggle { 25% { rotate: -18deg; } 60% { rotate: 12deg; } }
.yarn .rope-ball.hop { animation: rope-hop .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes rope-hop { 30% { translate: 6px -16px; rotate: 50deg; } 60% { translate: 2px 0; rotate: 20deg; } 80% { translate: 1px -4px; } }
@keyframes rope-pop { from { scale: .2; } to { scale: 1; } }
/* the order's progress line */
.track { display: flex; gap: 6px; list-style: none; margin: 14px 0 6px; padding: 0; counter-reset: step; flex-wrap: wrap; }
.track li { flex: 1 1 0; min-width: 84px; position: relative; padding: 30px 4px 0; text-align: center; font-size: 13px; color: var(--muted); }
.track li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; translate: -50% 0; width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--muted); }
.track li::after { content: ""; position: absolute; top: 11px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done { color: var(--fg); }
.track li.done::before { content: "✓"; background: var(--ink); color: var(--ink-fg); }
.track li.done::after { background: var(--ink); }
.track li.now { color: var(--fg); font-weight: 800; }
.track li.now::before { background: var(--accent); color: var(--accent-fg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
/* on a phone the steps go down the screen: a line of five would break in two */
@media (max-width: 560px) {
  .track { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .track li { flex: none; min-width: 0; padding: 3px 0 13px 36px; text-align: left; font-size: 14px; }
  .track li::before { top: 0; left: 0; translate: none; }
  .track li::after { top: 27px; bottom: 1px; left: 11px; right: auto; width: 2px; height: auto; }
}
.keep { margin: 4px 0 0; }

/* ------------------------------------------------------------------ the back office (/admin), after Mama's */
.a-nav { position: sticky; top: 0; z-index: 30; background: var(--panel); border-bottom: 1px dashed var(--line); }
.a-nav .wrap { display: flex; gap: 4px; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.a-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; }
.a-nav a:hover { background: var(--soft); }
.a-nav a.on { background: var(--fg); color: var(--bg); }
.a-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 8px 0 22px; }
.a-title h1 { font-size: clamp(30px, 5vw, 40px); margin: 0; }
.a-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 18px; }
@media (max-width: 560px) { .a-card { padding: 16px; border-radius: 18px; } }
.a-card h2 { font-size: 22px; margin: 0 0 14px; }
.a-card h3 { font-size: 15px; margin: 12px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-decoration: none; color: var(--fg); display: block; }
.stat b { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.hl { background: var(--soft); }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .edit-grid { grid-template-columns: 1fr; } }
.a-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.a-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 0 10px 10px; }
.a-table td { padding: 12px 10px; border-top: 1px dashed var(--line); vertical-align: middle; }
.a-table tr.click { cursor: pointer; }
.a-table tr.click:hover td { background: var(--soft); }
.a-table a { text-decoration: none; font-weight: 700; }
@media (max-width: 700px) {
  .a-table.resp thead { display: none; }
  .a-table.resp tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
  .a-table.resp td { border: 0; padding: 0; }
  .a-table.resp td.c-hide { display: none; }
}
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.wait { background: #fdeceb; color: #a8433d; }
.status.check { background: #fff2dc; color: #8a5f16; }
.status.work { background: #e6f1e3; color: #3f5d3a; }
.status.done { background: #efe8f4; color: #6b4f80; }
.status.off { background: var(--soft); color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--fg); border: 1.5px solid var(--line); background: var(--panel); }
.tabs a.on { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.tabs a small { opacity: .7; margin-left: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum-row.total { font-weight: 800; font-size: 18px; border-bottom: 0; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-actions form { margin: 0; }
.status-actions button.danger { background: transparent; color: var(--err); border: 1.5px solid var(--err); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.timeline small, .timeline time { color: var(--muted); }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .8fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 560px) { .req-row { grid-template-columns: 1fr; } }
.pay-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.pay-qr img { width: 220px; max-width: 100%; height: auto; border-radius: 16px; background: #fff; }
.pay-qr p { flex: 1 1 180px; margin: 0; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--fg); font-weight: 700; cursor: pointer; }
.pager button[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pager button:disabled:not([aria-current]) { opacity: .35; cursor: default; }
@media (max-width: 720px) { body:has(.hero-cover) .top .contact { display: none; } } /* the phone is in the hero on a phone */
/* on a phone the header is one line: the name shrinks and ends in «…», the cart stays a small button on the right */
@media (max-width: 720px) {
  .top .wrap { flex-wrap: nowrap; min-height: 56px; gap: 10px; }
  .top .brand { flex: 1 1 auto; min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .top .brand .brand-mark { display: inline-block; margin-right: 10px; vertical-align: 1px; }
  .top .cart-link { flex: none; padding: 7px 14px; font-size: 14px; }
}

/* copy by a tap */
[data-copy] { cursor: pointer; }
.copied:not(button) { outline: 2px solid color-mix(in srgb, #2e9d5b 60%, transparent); outline-offset: 3px; border-radius: 8px; }
.copied:not(button)::after { content: " ✓ скопировано"; font-size: 12px; font-weight: 700; color: #2e9d5b; }
.pre-wrap { position: relative; }
.pre-wrap pre { padding-right: 120px; }
.pre-copy { position: absolute; top: 8px; right: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; min-height: 0;
  border-radius: 99px; border: 0; cursor: pointer; background: rgba(127,127,127,.22); color: inherit; }
@media (max-width: 560px) { .pre-wrap pre { padding-right: 12px; padding-top: 44px; } }

/* the storefront's pages hide the cards of other pages with [hidden]: no card style may show them */
[hidden] { display: none !important; }

/* a quantity: «− 1 +», one calm pill instead of a big number box */
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); justify-self: end; }
.stepper button { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; background: var(--panel); color: var(--fg);
  font-size: 20px; font-weight: 600; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.stepper button:hover { background: var(--ink); color: var(--ink-fg); }
.stepper input, .stepper output { width: 40px; min-height: 0; height: 36px; padding: 0; border: 0; background: none; text-align: center;
  font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--fg); display: inline-grid; place-items: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--accent); border-radius: 10px; }
.item { grid-template-columns: 1fr auto; }

/* ways to pay as tabs («Из России · Из Кыргызстана»): only the chosen one's rows show; no scripts needed */
.pay-tabs { display: flex; gap: 4px; padding: 4px; margin: 20px 0 -8px; border-radius: 999px; background: var(--soft); }
.pay-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.pay-tabs label { flex: 1; padding: 9px 10px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--muted); }
.pay-tabs input:checked + label { background: var(--panel); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.pay-tabs input:focus-visible + label { outline: 2px solid var(--accent); }
.pay:has(#paytab0:checked) .pay-row[data-tab]:not([data-tab="0"]),
.pay:has(#paytab1:checked) .pay-row[data-tab]:not([data-tab="1"]),
.pay:has(#paytab2:checked) .pay-row[data-tab]:not([data-tab="2"]),
.pay:has(#paytab3:checked) .pay-row[data-tab]:not([data-tab="3"]) { display: none; }
.pay-rows > .pay-row:not([hidden]) { border-top: 1px solid var(--line); }
.pay-rows > .pay-row:first-child { border-top: 0; }
/* ================================================================ the order page
   One column. On top the stage: a thin progress line, an icon, what is happening, one line of what is next.
   Under it one card with the one thing asked of the customer now; the rest is quiet: the order folded into a
   line, the chat, a footnote. One radius, one rhythm, three kinds of buttons: main, Telegram, quiet. */
.op { --gap: 14px; --r: 24px; max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--gap); padding-bottom: 8px; }
.op > * { margin: 0; animation: op-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.op > :nth-child(2) { animation-delay: .05s; } .op > :nth-child(3) { animation-delay: .1s; } .op > :nth-child(n+4) { animation-delay: .15s; }
@keyframes op-rise { from { opacity: 0; transform: translateY(10px); } }
.op .card { margin: 0; border-radius: var(--r); padding: 24px; }
.op h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.card-sub { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.card-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* the stage */
.stage { text-align: center; padding: 6px 8px 4px; }
.stage h1 { margin: 12px 0 0; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.08; letter-spacing: -.035em; }
.stage-sub { margin: 8px auto 0; max-width: 34ch; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.stage-ref { margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.stage-icon { position: relative; width: 64px; height: 64px; margin: 18px auto 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 28px; font-weight: 800; background: var(--soft); color: var(--fg); }
.stage-icon.tone-pay { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.stage-icon.tone-wait { background: color-mix(in srgb, #f5b041 18%, var(--panel)); }
.stage-icon.tone-ok, .stage-icon.tone-done { background: color-mix(in srgb, var(--ok) 20%, var(--panel)); color: var(--ok); }
.stage-icon.live::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  color: var(--accent); animation: op-breathe 2.4s ease-out infinite; }
.stage-icon.tone-ok.live::after { color: var(--ok); }
.stage-icon.tone-wait.live::after { color: #f5b041; }
@keyframes op-breathe { 0% { opacity: .55; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }

/* the progress: four dots on a thin line, the labels small; the current one bold and ringed */
.stage .track { display: flex; list-style: none; margin: 0 auto; padding: 0; max-width: 420px; counter-reset: none; flex-direction: row; gap: 0; }
.stage .track li { flex: 1 1 0; min-width: 0; position: relative; padding: 18px 2px 0; text-align: center; font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.stage .track li::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); box-shadow: none; counter-increment: none; display: block; color: transparent; font-size: 0; }
.stage .track li::after { content: ""; position: absolute; top: 4px; left: calc(50% + 9px); right: calc(-50% + 9px); width: auto; bottom: auto; height: 2px;
  border-radius: 2px; background: var(--line); }
.stage .track li:last-child::after { display: none; }
.stage .track li.done { color: var(--fg); }
.stage .track li.done::before, .stage .track li.done::after { background: var(--ink); }
.stage .track li.now { color: var(--fg); font-weight: 800; }
.stage .track li.now::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.stage .track li.now.done::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }

/* buttons: the main one, Telegram, the quiet one */
.btn-main { display: block; width: 100%; min-height: 56px; margin: 0; border: 0; border-radius: 18px; background: var(--accent); color: var(--accent-fg);
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; text-align: center; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 28px -16px color-mix(in srgb, var(--accent) 85%, transparent); transition: transform .12s ease, filter .15s ease; }
.btn-main:hover { filter: brightness(1.05); }
.btn-main:active, .btn-tg:active { transform: translateY(1px); }
.btn-tg { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 18px;
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .25), 0 12px 26px -14px rgba(34, 158, 217, .85); transition: transform .12s ease; }
.btn-tg:hover { background: linear-gradient(180deg, #229ed9 0%, #1b8cc4 100%); }
.btn-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease; }
.btn-quiet:hover { background: var(--soft); border-color: var(--soft); }
.tg-logo { width: 21px; height: 21px; flex: none; }

/* the pay card */
.op .pay { border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); text-align: center; padding: 22px 20px 18px; }
.pay-label { margin: 0; color: var(--muted); font-size: 14px; }
.pay-sum { margin: 2px 0 0; font-size: 46px; line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.pay-sum span { cursor: pointer; }
.pay-sum .copied { outline: 0; color: var(--ok); }
.pay-of { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.choices { display: inline-flex; gap: 4px; padding: 4px; margin: 12px 0 0; border-radius: 999px; background: var(--soft); }
.choices button { min-height: 0; padding: 7px 15px; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.choices button.on { background: var(--panel); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.pay-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 0; }
.pay-qr img { width: 180px; max-width: 100%; height: auto; border-radius: 16px; background: #fff; padding: 8px; }
.pay-qr p { margin: 0; max-width: 30ch; color: var(--muted); font-size: 13px; }
.op .pay-tabs { margin: 16px 0 -6px; }
.pay-rows { margin: 16px 0 0; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; text-align: left; }
.pay-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 1px 12px; align-items: center;
  width: 100%; padding: 10px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.pay-row:first-child { border-top: 0; }
.pay-row span { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.pay-row b { grid-column: 1; font-size: 16px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pay-row i { grid-column: 2; grid-row: 2; width: 16px; height: 16px; opacity: .4; background: currentColor;
  -webkit-mask: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E");
  mask: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E"); }
.pay-row:hover i, .pay-row:focus-visible i { opacity: .9; }
.pay-row:focus-visible { background: var(--soft); }
.pay-row.plain { cursor: default; }
.pay-row.copied { outline: 0; }
.pay-row.copied b { color: var(--ok); }
.pay-row.copied span::after { content: " · скопировано"; color: var(--ok); }
.pay-row.copied i { opacity: 1; color: var(--ok);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.op .pay form { margin-top: 16px; }

/* «Важно про перевод», «Нет Telegram?»: folded */
.more { margin-top: 12px; text-align: left; }
.more summary { cursor: pointer; color: var(--muted); font-size: 13.5px; list-style: none; text-align: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ›"; }
.more[open] summary::after { content: " ⌄"; }
.more p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.more form { margin-top: 12px; }

/* forms in cards */
.stack-form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.stack-form .field { margin: 0; }
.stack-form label { font-size: 14px; font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.slug { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.slug:focus-within { border-color: var(--ink); }
.slug input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: none; padding-right: 4px; text-align: left; }
.slug input:focus { outline: none; }
.slug span { padding: 0 14px 0 0; color: var(--muted); white-space: nowrap; }
.op .setup { border: 1.5px solid color-mix(in srgb, var(--ok) 45%, var(--line)); }

/* the news card: Telegram, the dot under it, «или», «Написать здесь» */
.talk { text-align: center; }
.talk-ways { margin: 18px auto 0; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.talk.compact { padding: 18px 20px; }
.talk.compact .talk-ways { margin-top: 0; }
.talk.compact .here { margin-top: 12px; }
.tg-on { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; min-height: 52px; border-radius: 18px;
  font-weight: 700; background: color-mix(in srgb, #2aabee 14%, var(--panel)); }
.tg-on .tg-logo { color: #2aabee; }
.bot-only { margin: 0; }
.dot { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.dot input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0;
  border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--muted) 60%, transparent); background: transparent; display: grid;
  place-items: center; cursor: pointer; transition: border-color .15s ease; }
.dot input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .18s ease; }
.dot input:checked { border-color: var(--accent); }
.dot input:checked::after { transform: scale(1); }
.dot input:checked + span { color: var(--fg); }
.dot input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.or { width: 100%; max-width: 360px; display: flex; align-items: center; gap: 12px; margin: 16px auto 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.here::after { content: "↓"; color: var(--muted); font-weight: 600; }

/* the order, folded into one line */
.summary { padding: 0; }
.summary summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 18px 22px; }
.summary summary::-webkit-details-marker { display: none; }
.summary-title { font-weight: 800; font-size: 16px; }
.summary-line { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary summary b { font-size: 16px; }
.summary summary b::after { content: "›"; display: inline-block; margin-left: 10px; color: var(--muted); transition: transform .2s ease; }
.summary[open] summary b::after { transform: rotate(90deg); }
.summary > :not(summary) { margin: 0 22px; }
.summary > :last-child { margin-bottom: 18px; }
.summary .lines { margin-top: 0; }

/* the chat */
.msgs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msgs li { max-width: 85%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.msgs li.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
.say { display: flex; gap: 8px; align-items: flex-end; margin: 14px 0 0; }
.say textarea { flex: 1; border-radius: 22px; padding: 12px 16px; min-height: 48px; resize: none; }
.say button { flex: none; width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 22px; }
.call { text-align: center; }

/* the foot: how long the check takes, the link to keep, a cancel as a quiet link */
.op-foot { padding: 6px 8px 0; text-align: center; color: var(--muted); font-size: 13px; }
.op-foot p { margin: 0 0 8px; }
.check-note::before { content: "⏱ "; }
.quiet-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 10px; }
.quiet-actions form { margin: 0; }
.link-off { all: unset; cursor: pointer; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-off:hover { color: var(--err, #d33); }

/* the one-tap page while it places the order */
.quick { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.live { display: inline-flex; align-items: center; gap: 9px; margin: 10px 0 0; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel)); font-size: 14px; font-weight: 700; }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .op > *, .stage-icon.live::after { animation: none; }
}

.op .summary { padding: 0; }
.stage-icon { font-size: 30px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--sans); }
/* the stage's emoji sits in the middle of its circle: no line box around it, the glyph's own box centred */
.stage-icon { line-height: 1; display: grid; place-items: center; margin-left: auto; margin-right: auto; }
.stage-icon > span { display: block; line-height: 1; height: 1em; width: 1.15em; text-align: center; }

/* the finished order: the site's address, «Открыть сайт», the key to the back office */
.op .result { text-align: center; border: 1.5px solid color-mix(in srgb, var(--ok) 45%, var(--line)); }
.result-url { margin: 6px 0 16px; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.result .btn-quiet.wide { display: flex; width: 100%; margin-top: 10px; min-height: 52px; border-radius: 18px; }
/* the emoji's own box sits a touch low in its circle */
.stage-icon > span { transform: translateY(-.07em); }
a.btn-main { display: flex; align-items: center; justify-content: center; }
.stage-icon > span { transform: translateY(-.1em); }

/* the stage's icon is a line drawing, centred by its own geometry (an emoji's box sits differently in every font) */
.stage-icon { color: var(--fg); }
.stage-icon svg { width: 28px; height: 28px; display: block; }
.stage-icon.tone-pay { color: var(--accent); }
.stage-icon.tone-wait { color: #f5b041; }
.stage-icon.tone-ok, .stage-icon.tone-done { color: var(--ok); }
.stage-icon.tone-off { color: var(--muted); }

/* the opened order fits its card: the table and the facts take the card's width less its padding */
.summary > :not(summary) { box-sizing: border-box; width: auto; max-width: none; }
.summary .lines { width: calc(100% - 44px); }
.summary .facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 10px; }
.summary .facts dt { color: var(--muted); font-size: 14px; }
.summary .facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
