.admin { padding-top: 18px; }

.admin-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-hero h1 { font-size: 26px; font-weight: 800; margin: 6px 0 4px; }
.admin-hero p { color: var(--muted); font-size: 13.5px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 1.8s infinite; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 12px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  min-width: 0;
}
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat strong { font-family: var(--font-head); font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat strong em { font-style: normal; font-size: 15px; color: var(--muted); font-weight: 600; }
.stat small { font-size: 11px; color: var(--muted-2); }
.stat--wide { grid-column: 1 / -1; position: relative; overflow: hidden; }
.stat--amber { background: radial-gradient(400px 160px at 100% 0%, rgba(255, 184, 0, 0.22), transparent 70%), var(--surface); border-color: rgba(255, 184, 0, 0.28); }
.stat--amber strong { color: var(--amber-ink); font-size: 34px; text-shadow: 0 0 24px rgba(255, 184, 0, 0.35); }
.stat--alert { border-color: rgba(255, 92, 122, 0.45); background: radial-gradient(160px 100px at 100% 0%, rgba(255, 92, 122, 0.2), transparent 70%), var(--surface); }
.stat--alert strong { color: var(--red); }
@media (min-width: 768px) {
  .stats { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .stat--wide { grid-column: auto; }
}

.tabs--admin {
  position: sticky; top: 64px; z-index: 20;
  margin: 20px calc(var(--gutter) * -1) 14px;
  padding: 10px var(--gutter);
  background: var(--sticky-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.admin-panel { animation: card-in 0.4s var(--ease); }
.chips--filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.chips--filter::-webkit-scrollbar { display: none; }
.chips--filter .chip-btn { flex-shrink: 0; }

/* Orders */
.orders { display: grid; gap: 12px; }
@media (min-width: 900px) { .orders { grid-template-columns: 1fr 1fr; align-items: start; } }
.ocard {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  animation: card-in 0.45s var(--ease) both;
}
.ocard.is-fresh { border-color: rgba(0, 242, 254, 0.55); box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.25), 0 0 34px -10px rgba(0, 242, 254, 0.7); animation: card-in 0.45s var(--ease) both, glow-pulse 2.4s ease-in-out infinite 0.5s; }
.ocard--cancelled { opacity: 0.6; }
.ocard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ocard__head > div { display: flex; flex-direction: column; }
.ocard__id { font-family: var(--font-head); font-size: 16px; letter-spacing: 0.02em; }
.ocard__head time { font-size: 12px; color: var(--muted); }
.spill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.spill .pulse-dot { width: 6px; height: 6px; margin-right: 6px; background: currentColor; }
.spill--pending { background: var(--amber-soft); color: var(--amber-ink); }
.spill--accepted { background: var(--aqua-soft); color: var(--aqua); }
.spill--out { background: rgba(79, 172, 254, 0.16); color: var(--aqua-2); }
.spill--done { background: var(--green-soft); color: var(--green); }
.spill--cancelled { background: var(--red-soft); color: var(--red); }
.oprog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.oprog i { height: 4px; border-radius: 2px; background: var(--surface-2); }
.oprog i.on { background: var(--grad-aqua); box-shadow: 0 0 8px rgba(0, 242, 254, 0.5); }
.ocard--done .oprog i.on { background: var(--green); box-shadow: none; }
.ocard__cust { display: flex; align-items: center; gap: 10px; }
.ocard__cust > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ocard__cust strong { font-size: 15px; }
.ocard__cust small { color: var(--muted); font-size: 12.5px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-aqua); color: var(--on-accent); font-family: var(--font-head); font-weight: 800; font-size: 17px; flex-shrink: 0; }
.ocard__contact { display: flex; gap: 8px; }
.ocard__items { list-style: none; margin: 0; padding: 10px; border-radius: 12px; background: var(--inset-bg); display: flex; flex-direction: column; gap: 8px; }
.ocard__items li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ocard__items img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.ocard__items span { flex: 1; min-width: 0; }
.ocard__items b { color: var(--aqua); font-weight: 600; }
.ocard__items em { font-style: normal; color: var(--muted); white-space: nowrap; }
.ocard__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.ocard__meta strong { font-family: var(--font-head); color: var(--text); font-size: 19px; white-space: nowrap; }
.ocard__note { font-size: 13px; color: var(--amber-ink); padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); }
.ocard__actions { display: flex; gap: 8px; }
.ocard__actions .btn--primary { flex: 1; }

/* Inventory */
.inv-toolbar { display: flex; gap: 10px; align-items: center; }
.inv-summary { margin: 12px 0; font-size: 13px; color: var(--muted); }
.inv-summary b { color: var(--text); }
.inv-list { display: grid; gap: 10px; }
@media (min-width: 900px) { .inv-list { grid-template-columns: 1fr 1fr; } }
.irow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: opacity 0.25s, border-color 0.25s;
}
.irow img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.irow.is-off img { filter: grayscale(0.9) brightness(0.65); }
.irow__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.irow__info strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow__info small { font-size: 12px; color: var(--muted); }
.irow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.irow__tools { display: flex; gap: 6px; }
.price-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 9px;
  background: var(--aqua-soft);
  border: 1px dashed rgba(0, 242, 254, 0.45);
  color: var(--aqua);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.price-btn small { font-family: var(--font-body); font-weight: 500; font-size: 11px; opacity: 0.8; }
.price-btn svg { width: 13px; height: 13px; opacity: 0.8; }
.price-edit { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.price-edit span { color: var(--aqua); font-weight: 700; }
.price-edit input { width: 90px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--aqua); background: var(--bg); color: var(--text); font-size: 16px; font-weight: 700; outline: none; box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.15); }
.price-edit .icon-btn { width: 36px; height: 36px; }
.mini-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; font-weight: 600; }
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn.is-on { background: var(--amber-soft); color: var(--amber-ink); border-color: rgba(255, 184, 0, 0.35); }
@media (max-width: 380px) {
  .irow { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .irow img { width: 48px; height: 48px; }
  .switch em { display: none; }
}

/* Shop tools */
.tools { display: grid; gap: 12px; }
@media (min-width: 900px) { .tools { grid-template-columns: 1fr 1fr; align-items: start; } }
.tool { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); }
.tool h2 { font-size: 17px; }
.tool .muted { font-size: 13px; }
.tool__row { display: flex; gap: 8px; flex-wrap: wrap; }
.tool .chips .chip-btn { font-size: 12px; padding: 7px 10px; }
.tool--danger { border-color: rgba(255, 92, 122, 0.25); }
.tool--danger .btn { align-self: flex-start; }
.qr-preview { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box { width: 148px; height: 148px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 40px -8px rgba(0, 242, 254, 0.6); flex-shrink: 0; }
.qr-box canvas, .qr-box img { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.qr-box canvas { display: block !important; } /* qrcodejs hides it asynchronously in favour of its <img> */
.qr-box img { display: none !important; }
.qr-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.qr-meta small { color: var(--muted); font-size: 12px; word-break: break-all; }
.qr-meta .btn { align-self: flex-start; margin-top: 6px; }
.warn { font-size: 12px; color: var(--amber-ink); }

/* ── Admin v2: header side, tools layout ────────────────── */
.admin-hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tool--wide { grid-column: 1 / -1; }
.tool h2 small { font-size: 12.5px; font-weight: 500; font-family: var(--font-body); margin-left: 6px; }
.tool__row { align-items: center; }
.tool__row--sticky { position: sticky; bottom: calc(10px + var(--safe-b)); z-index: 5; padding: 10px; margin: 0 -10px -10px; border-radius: 14px; background: var(--sticky-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.unsaved { font-size: 12.5px; font-weight: 700; color: var(--amber-ink); }
.form--tight { gap: 12px; }
.field__ok { font-style: normal; font-size: 12px; color: var(--green); font-weight: 600; min-height: 0; }
.field__ok:empty { display: none; }
.form__hint--left { text-align: left; }
.field--row { flex-direction: row; flex-wrap: wrap; gap: 18px; justify-content: flex-start; }
.field--inline { flex-direction: row; align-items: center; gap: 8px; }
.field--inline select { min-height: 38px; padding: 6px 30px 6px 10px; font-size: 14px; }
.warn-text { color: var(--amber-ink); }

/* ── Products list ──────────────────────────────────────── */
.inv-toolbar .btn--cta { flex-shrink: 0; }
.irow { grid-template-columns: 64px minmax(0, 1fr) auto; }
.irow__img { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.irow__img img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.irow__count { position: absolute; left: 3px; bottom: 3px; padding: 1px 5px; border-radius: 6px; background: rgba(6, 16, 31, 0.75); color: #fff; font-size: 10px; font-weight: 700; }
.irow__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.irow__line .price-btn, .irow__line .price-edit { margin-top: 0; }
.irow__auto { font-size: 12px; font-weight: 600; color: var(--muted); }
.mini-btn span { margin-left: 2px; }
.qty { display: inline-flex; align-items: center; height: 30px; border-radius: 9px; border: 1px solid var(--line-soft); background: var(--surface-2); font-size: 12.5px; font-weight: 700; }
.qty button { display: grid; place-items: center; width: 28px; height: 100%; color: var(--aqua); }
.qty button svg { width: 14px; height: 14px; }
.qty output { min-width: 52px; text-align: center; }
.qty.is-low { border-color: rgba(245, 158, 11, 0.5); background: var(--amber-soft); color: var(--amber-ink); }
.qty.is-out { border-color: rgba(225, 29, 72, 0.4); background: var(--red-soft); color: var(--red); }

/* ── Product form ───────────────────────────────────────── */
.pform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pform__form, .fsec, .fsec > *, .field-row > * { min-width: 0; }
.pform__form { gap: 14px; }
.fsec { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); transition: border-color 0.2s, background 0.2s; }
.fsec h3 { font-size: 15.5px; }
.fsec h3 small { font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--font-body); margin-left: 6px; }
.fsec.is-drag { border: 2px dashed var(--aqua); background: var(--aqua-soft); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 520px) { .gal { grid-template-columns: repeat(5, 1fr); } }
.gal__tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--media-bg); border: 2px solid transparent; }
.gal__tile.is-cover { border-color: var(--aqua); }
.gal__tile img { width: 100%; height: 100%; object-fit: cover; }
.gal__cover { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--aqua); color: var(--on-accent); font-size: 10.5px; font-weight: 800; }
.gal__tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 5px; background: linear-gradient(transparent, rgba(6, 16, 31, 0.8)); }
.gal__tools button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: #0F172A; font-size: 14px; font-weight: 800; }
.gal__tools button svg { width: 14px; height: 14px; }
.gal__add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; border: 2px dashed var(--line); background: var(--aqua-soft); color: var(--aqua); cursor: pointer; text-align: center; padding: 6px; transition: background 0.2s; }
.gal__add:hover { background: rgba(11, 116, 181, 0.14); }
.gal__add svg { width: 26px; height: 26px; }
.gal__add span { font-size: 13px; font-weight: 700; }
.gal__add small { font-size: 11px; color: var(--muted); }
.stockbox { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.stockbox__qty { max-width: 180px; }
.spec-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; }
.spec-row input { min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface); font-size: 15px; outline: none; }
.spec-row input:focus { border-color: var(--aqua); }
.spec-row .icon-btn { width: 34px; height: 34px; }
.spec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; }
.rel-chip img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.rel-chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--muted); }
.rel-chip button svg { width: 12px; height: 12px; }
[data-rel-add] { width: 100%; max-width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line); background: var(--surface); font-size: 14px; color: var(--aqua); font-weight: 600; }
.pform__actions { position: sticky; bottom: calc(-24px - var(--safe-b)); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 calc(12px + var(--safe-b)); background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.pform__actions .btn--primary { flex: 1 1 200px; }
.pform__actions .btn { flex-grow: 1; }
.pform__preview { display: none; }
.pform__label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pform__card { pointer-events: none; max-width: 260px; }
.pform__card .pc { animation: none; }
@media (min-width: 900px) {
  .pform { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .pform__preview { display: block; position: sticky; top: 0; }
}
@media (min-width: 768px) { .sheet--wide { width: min(980px, calc(100% - 48px)); } }

/* ── Banner cards ───────────────────────────────────────── */
.bcards { display: grid; gap: 12px; }
@media (min-width: 1100px) { .bcards { grid-template-columns: 1fr 1fr; } }
.bcard { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-soft); transition: opacity 0.2s; }
.bcard.is-hidden-slide { opacity: 0.55; }
.bcard__img { position: relative; align-self: start; aspect-ratio: 1; border-radius: 14px; overflow: hidden; padding: 10px; }
.bcard__img.slide-1 { background: var(--slide-1); }
.bcard__img.slide-2 { background: var(--slide-2); }
.bcard__img.slide-3 { background: var(--slide-3); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-sm); }
.bcard__photo { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px; border-radius: 8px; background: rgba(6, 16, 31, 0.78); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.bcard__photo svg { width: 14px; height: 14px; }
.bcard__fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bcard__fields .field > span { font-size: 12px; }
.bcard__fields input, .bcard__fields select { min-height: 40px; padding: 8px 10px; font-size: 14.5px; }
.bcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bcard__move { display: flex; gap: 6px; margin-left: auto; }
.bcard__move .icon-btn { width: 34px; height: 34px; font-size: 16px; }
@media (max-width: 520px) { .bcard { grid-template-columns: 1fr; } .bcard__img { width: 130px; } }
.coupon-preview { font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: var(--cta-soft); border: 1px dashed rgba(242, 107, 29, 0.4); }

/* ── Settings ───────────────────────────────────────────── */
.hours { display: flex; flex-direction: column; gap: 6px; }
.hours__row { display: grid; grid-template-columns: minmax(110px, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.hours__row input[type="time"] { min-height: 36px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--surface); font-size: 14px; }
.hours__row.is-closed { opacity: 0.6; }
.hours__row.is-closed input[type="time"] { visibility: hidden; }
.pin-input { width: 130px; min-height: 42px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface); font-size: 22px; letter-spacing: 0.5em; text-align: center; outline: none; }
.pin-input:focus { border-color: var(--aqua); }
.pin-input--big { width: 100%; height: 64px; font-size: 32px; margin-bottom: 4px; }
.pin-gate { max-width: 340px; margin: 48px auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pin-gate__icon { font-size: 48px; }
.pin-gate form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ── Photo cropper overlay ──────────────────────────────── */
.cropper { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 14, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; }
.cropper.is-open { opacity: 1; }
.cropper__panel { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); }
.cropper__head { display: flex; flex-direction: column; gap: 2px; }
.cropper__head strong { font-family: var(--font-head); font-size: 18px; }
.cropper__head small { color: var(--muted); font-size: 12.5px; }
.cropper__stage { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; cursor: grab; }
.cropper__stage:active { cursor: grabbing; }
.cropper__stage canvas { display: block; width: 100%; height: 100%; }
.cropper__grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
  linear-gradient(transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); border-radius: 16px; }
.cropper__zoom { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--muted); }
.cropper__zoom input { flex: 1; accent-color: var(--aqua); }
.cropper__btns { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.inv-toolbar .search--sm { min-width: 0; }
@media (max-width: 420px) { .inv-toolbar .btn--cta span { display: none; } .inv-toolbar .btn--cta { width: 40px; padding: 0; } }

/* Arrived from a storefront ✏️ chip: briefly highlight the section */
.tool.is-flash { animation: flash-ring 2.2s var(--ease); }
@keyframes flash-ring { 0%, 60% { box-shadow: 0 0 0 3px #FDE047, 0 0 30px rgba(253, 224, 71, 0.6); } 100% { box-shadow: none; } }
.tool { scroll-margin-top: 140px; }
.tool__sub { font-size: 14px; color: var(--muted); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; }
.usp-edit { display: grid; gap: 8px; }
.usp-edit__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.usp-edit input, .tile-edit input { min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface); font-size: 14.5px; outline: none; min-width: 0; width: 100%; }
.usp-edit input:focus, .tile-edit input:focus { border-color: var(--aqua); }
.usp-edit__icon { text-align: center; font-size: 20px !important; }
.tile-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.tile-edit__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tile-edit__img { position: relative; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 3px solid var(--line); }
.tile-edit__img img { width: 100%; height: 100%; object-fit: cover; }
.tile-edit__img span { position: absolute; inset: auto 0 0; display: grid; place-items: center; height: 30px; background: rgba(6, 16, 31, 0.7); color: #fff; }
.tile-edit__img span svg { width: 16px; height: 16px; }
.tile-edit input { text-align: center; font-size: 13px; }
.import-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--cta-soft); border: 1.5px dashed rgba(242, 107, 29, 0.5); }
.import-box div { display: flex; flex-direction: column; gap: 2px; }
.import-box small { color: var(--text-2); font-size: 13px; }

/* Products with options: per-option stock under the row */
.irow--opts { align-items: start; }
.iopts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
.iopt { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 600; }
.iopt small { color: var(--muted); font-weight: 500; }
.iopt.is-out > span { color: var(--red); }
.iopt__sw { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.iopt .mini-btn { height: 26px; }
.iopt .mini-btn.is-on { background: var(--green-soft); color: var(--green); border-color: transparent; }
.qty--sm { height: 26px; }
.qty--sm output { min-width: 28px; }

/* Product form: options editor */
.optx__toggle { margin-bottom: 12px; }
.optx__toggle i { color: var(--muted); font-style: normal; font-weight: 500; }
.optx { display: grid; gap: 8px; margin-top: 4px; }
.optx__head, .optx__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 0.7fr) 34px; gap: 6px; align-items: center; }
.optx--colour .optx__head, .optx--colour .optx__row { grid-template-columns: 38px minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 0.7fr) 34px; }
.optx__head span { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.optx__row input { min-width: 0; min-height: 42px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface); font-size: 15px; outline: none; }
.optx__row input:focus { border-color: var(--aqua); }
.optx__row input[type="color"] { width: 38px; padding: 3px; cursor: pointer; }
.optx__row .icon-btn { width: 34px; height: 34px; }
.optx__row.is-out input[data-ov="label"] { text-decoration: line-through; color: var(--red); }
.waiting { color: var(--aqua); font-weight: 700; }
