:root {
  --pink: #e2187a;
  --lime: #e9ff83;
  --bg: #0c0c0e;
  --panel: #141417;
  --card: #1b1b21;
  --line: rgba(255, 255, 255, 0.06);
  --text: #f6f1f3;
  --muted: #9a8b92;
  --ok: #7dffb1;
  --danger: #ff6b8a;
  --ghost: #2a2a32;
  --inset: #101014;
  --slot: #121216;
  --nav: #cfc6cb;
  --badge: #2a2a32;
  --archived: #5a3a48;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  --login-glow: radial-gradient(900px 420px at 15% -10%, rgba(226, 24, 122, 0.28), transparent 55%);
}

html[data-theme="light"] {
  --bg: #f7c2d8;
  --panel: #fff4f8;
  --card: #fff8fa;
  --line: rgba(226, 24, 122, 0.14);
  --text: #212121;
  --muted: #6a5663;
  --ok: #1b7a3c;
  --danger: #b4234e;
  --ghost: #ece7f2;
  --inset: #ffffff;
  --slot: #ffffff;
  --nav: #4a3942;
  --badge: #ece7f2;
  --archived: #d4a8c0;
  --shadow: 0 18px 48px rgba(226, 24, 122, 0.12);
  --login-glow:
    linear-gradient(180deg, #f7c2d8 0%, #f3b0cc 42%, #fde8f1 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 86px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.5s ease, color 0.4s ease;
}

html[data-theme="light"] body {
  background-image:
    linear-gradient(180deg, #f7c2d8 0%, #f3b0cc 42%, #fde8f1 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 86px);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

[hidden] { display: none !important; }

.login-wrap {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  background: #050505;
}

.login-stage {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  border-radius: 0;
  overflow: hidden;
  background: var(--card);
}

.login-photo {
  margin: 0;
  min-height: 0;
  height: 100%;
  background: #050505;
}

.login-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-card {
  width: auto;
  padding: 36px 32px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}

.login-card h1, .editor h2, .list-head h2, .card-head h3 {
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.login-card h1 { font-size: 42px; }

.lead, em, .muted, .list-head p, .login-error, .form-msg {
  color: var(--muted);
}

.lead { margin: 10px 0 22px; line-height: 1.4; }

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--inset);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

textarea { resize: vertical; }

button, .ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ghost-btn {
  background: var(--ghost);
  color: var(--text);
}

button, .ghost-btn, .card, .sidebar, .item, .best-slot, .who, .badge {
  transition: background-color 0.45s ease, color 0.35s ease, border-color 0.45s ease, box-shadow 0.45s ease, filter 0.2s ease;
}

button:hover, .ghost-btn:hover { filter: brightness(1.08); }
.ghost-btn:disabled,
.ghost-btn:disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
}

.login-error, .form-msg { min-height: 1.2em; font-size: 14px; font-weight: 600; }
.form-msg.is-ok { color: var(--ok); }
.login-error, .form-msg.is-bad { color: var(--danger); }

.shell {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  min-height: 0;
  padding: 22px 16px 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%),
    linear-gradient(135deg, var(--pink), #7a1244);
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.brand em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.side-nav { display: flex; flex-direction: column; gap: 8px; }

.side-nav button {
  justify-content: flex-start;
  background: transparent;
  color: var(--nav);
  font-weight: 600;
  padding: 12px 14px;
}

.side-nav button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.side-nav button.is-on {
  background: var(--pink);
  color: #fff;
}

.side-photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -16px 0;
  border-radius: 0;
  overflow: hidden;
  background: #050505;
  display: flex;
}

.side-photo img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
}

.side-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.side-promo {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(226, 24, 122, 0.95), #9a1054);
}

.side-promo p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
}

.side-promo a {
  color: #141417;
  background: var(--lime);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.workspace {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.top-search {
  flex: 1;
  max-width: 420px;
  margin: 0;
  position: relative;
}

.top-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.top-search input {
  width: 100%;
  padding-left: 40px;
  border-radius: 999px;
  background: var(--card);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  background: var(--card);
  border-radius: 999px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pink);
  font-size: 13px;
  font-weight: 800;
}

.who strong, .who em { display: block; }
.who em { font-style: normal; font-size: 11px; }

.page { min-width: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.kpi h2 {
  margin: 8px 0 6px;
  font-size: 34px;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.card-kicker, .card-head p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 16px;
}

.card-head h3 { font-size: 20px; }

.chart-card { grid-column: 1 / 3; }
.donut-card { grid-column: 3; }
.best-card { grid-column: 1 / -1; }

.bars { display: flex; flex-direction: column; gap: 12px; }

.bar-row span:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--inset);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #ff6aa8);
}

.donut-wrap {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.donut strong {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
}

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; }
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.best-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.best-slot {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: var(--slot);
  min-height: 150px;
  color: var(--text);
  text-align: left;
  font-weight: 600;
}

.best-slot.empty {
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(226, 24, 122, 0.35);
  background: transparent;
}

.best-slot img {
  width: 100%;
  height: 88px;
  object-fit: contain;
}

.best-slot h4 { margin: 0; font-size: 15px; font-weight: 600; }
.best-slot p { margin: 0; font-size: 12px; color: var(--muted); }

.admin-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.row label { min-width: 0; }

.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check input { width: 18px; height: 18px; min-width: 18px; box-shadow: none; }
.check input:disabled { opacity: 0.45; cursor: not-allowed; }

#f-best-hint { display: block; margin: -8px 0 14px; font-size: 13px; }

.batch-box {
  margin: 4px 0 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--inset);
}

.batch-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.batch-box > em {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
}

.batch-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.batch-list span {
  color: var(--muted);
  white-space: nowrap;
}

.batch-list .batch-skip {
  color: var(--muted);
  font-style: italic;
}

#f-batch-save { width: 100%; }

.upload img,
.upload video {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: var(--inset);
  border-radius: 18px;
}

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.list-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.list-filter {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.list-filter select {
  display: block;
  min-width: 11rem;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.model-actions { margin: 0 0 8px; }

#f-model-name {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.badge.model { background: #7ad7ff; color: #141417; }

.product-list { display: flex; flex-direction: column; gap: 10px; }

.cms-page-list { display: flex; flex-direction: column; gap: 8px; }
.cms-page-list button {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: inherit;
  cursor: pointer;
}
.cms-page-list button img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}
.cms-page-list button span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cms-page-list button strong { font-size: 15px; font-weight: 600; }
.cms-page-list button em { font-style: normal; font-size: 12px; opacity: .65; }
.cms-page-list button.is-on { border-color: #ec0d8c; background: rgba(236,13,140,.12); }
.cms-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 8px;
  -webkit-overflow-scrolling: touch;
}
.cms-studio:has(#cms-fields:not([hidden])) .cms-canvas {
  flex: 1.15 1 0;
  min-height: 220px;
}
.cms-fields .cms-image-row { display: grid; gap: 10px; }
.cms-fields .cms-image-row img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: #111;
}
#page-pages:not([hidden]) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pages-layout {
  flex: 1;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}
.pages-layout:not(:has(#cms-form:not([hidden]))) {
  grid-template-columns: 1fr;
}
.pages-layout .list-wrap {
  position: relative;
  top: auto;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.pages-layout:not(:has(#cms-form:not([hidden]))) .list-wrap {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.pages-layout:not(:has(#cms-form:not([hidden]))) .list-head { display: none; }
.pages-layout:not(:has(#cms-form:not([hidden]))) .cms-page-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
}
.pages-layout:not(:has(#cms-form:not([hidden]))) .cms-page-list button {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}
.pages-layout:not(:has(#cms-form:not([hidden]))) .cms-page-list button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.pages-layout:not(:has(#cms-form:not([hidden]))) .cms-page-list button span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
}
.pages-layout:not(:has(#cms-form:not([hidden]))) .cms-page-list button em {
  color: rgba(255, 255, 255, 0.78);
}
.pages-layout:not(:has(#cms-form:not([hidden]))) .cms-page-list button.is-on {
  outline: 2px solid #ec0d8c;
  outline-offset: 0;
}
.cms-studio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}
.cms-studio-bar {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.cms-studio-bar h2 { margin: 0 0 4px; }
.cms-studio-bar .muted { margin: 0; max-width: 520px; }
.cms-studio-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cms-canvas {
  width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: #050505;
}
.cms-studio.is-fields .cms-fields {
  flex: 1 1 auto;
  max-height: none;
}
.catalog-switch { display: flex; gap: 8px; margin: 0 0 16px; }
.catalog-switch button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: "Roboto Condensed", Arial Narrow, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.catalog-switch button.is-on { background: #EC0D8C; border-color: #EC0D8C; color: #fff; }
.sell-card { grid-column: 1 / -1; }
.sell-card button {
  appearance: none;
  margin-top: 14px;
  border: 0;
  background: #EC0D8C;
  color: #fff;
  font-family: "Roboto Condensed", Arial Narrow, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--slot);
  border-radius: 18px;
}

.item img,
.item video {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--inset);
  border-radius: 12px;
}

.item-photo-empty {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--inset);
}

.item h3 { margin: 0; font-size: 16px; }
.item p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--badge);
}

.badge.sale, .badge.bestseller { background: var(--lime); color: #141417; }
.badge.sold, .badge.stock { background: var(--text); color: var(--card); }
.badge.archived { background: var(--archived); color: var(--text); }

.item-actions { display: flex; flex-direction: column; gap: 6px; }
.item-actions button { padding: 8px 12px; font-size: 13px; }

.item.is-dim { opacity: 0.38; }

.theme-toggle {
  width: 74px;
  height: 40px;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
}

.theme-toggle:hover { filter: none; }

.theme-track {
  position: relative;
  display: block;
  width: 74px;
  height: 40px;
  border-radius: 999px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1.3, 0.36, 1);
}

.theme-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-moon { left: 11px; color: #fff; }
.theme-moon svg { fill: currentColor; stroke: none; }
.theme-sun { right: 11px; color: var(--pink); }

.theme-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 6px 16px rgba(226, 24, 122, 0.45);
  z-index: 2;
  transition: transform 0.55s cubic-bezier(0.22, 1.4, 0.36, 1), background-color 0.4s ease, box-shadow 0.4s ease;
}

html[data-theme="dark"] .theme-sun {
  opacity: 0.35;
  transform: translateY(-50%) scale(0.7) rotate(-40deg);
}

html[data-theme="light"] .theme-moon {
  opacity: 0.3;
  transform: translateY(-50%) scale(0.7) rotate(40deg);
  color: var(--pink);
}

html[data-theme="light"] .theme-sun {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

html[data-theme="light"] .theme-knob {
  transform: translateX(34px);
  background: #fff;
  box-shadow: 0 6px 16px rgba(226, 24, 122, 0.22);
}

html[data-theme="light"] .theme-track {
  background: #ffd6e8;
}

.theme-toggle.is-pop .theme-track {
  animation: themeGlow 0.55s ease;
}

html[data-theme="light"] .theme-toggle.is-pop .theme-knob {
  animation: knobToLight 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}

html[data-theme="dark"] .theme-toggle.is-pop .theme-knob {
  animation: knobToDark 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}

@keyframes knobToLight {
  0% { transform: translateX(0) scale(1); }
  45% { transform: translateX(34px) scale(1.14); }
  100% { transform: translateX(34px) scale(1); }
}

@keyframes knobToDark {
  0% { transform: translateX(34px) scale(1); }
  45% { transform: translateX(0) scale(1.14); }
  100% { transform: translateX(0) scale(1); }
}

@keyframes themeGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px var(--line); }
  40% { box-shadow: inset 0 0 0 1px var(--pink), 0 0 0 6px rgba(226, 24, 122, 0.18); }
}

.theme-float {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
}

body:has(#dash-view:not([hidden])) .theme-float {
  display: none;
}

@media (max-width: 1100px) {
  .dash-grid, .best-slots, .admin-layout, .donut-wrap { grid-template-columns: 1fr; }
  .pages-layout:has(#cms-form:not([hidden])) { grid-template-columns: 220px minmax(0, 1fr); }
  .pages-layout:not(:has(#cms-form:not([hidden]))) .cms-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  .chart-card, .donut-card, .best-card, .sell-card, .kpi.wide { grid-column: auto; }
  .who span { display: none; }
}

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-nav { flex-direction: row; }
  .side-photo { width: 100%; }
  .side-photo img { height: 160px; }
  .side-promo { display: none; }
  .topbar { flex-direction: column; align-items: stretch; }
  .row { grid-template-columns: 1fr; }
  .login-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh minmax(0, 1fr);
    height: 100vh;
  }
  .login-photo, .login-photo img { height: 100%; min-height: 0; }
  .job-card-grid { grid-template-columns: 1fr; }
}

.job-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.job-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.job-editor h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.job-editor .muted {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: .72;
}
.job-editor-head button,
.job-card .ghost-btn {
  padding: 8px 14px;
}
.job-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--line);
}
.job-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.job-card-top strong { font-size: 14px; font-weight: 600; }
.job-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.job-photo-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.job-photo-row img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}
