/*!*************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/RA/assets/styles/main.scss ***!
  \*************************************************************************************************************************/
@charset "UTF-8";
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --font-mono: var(--mono);
}

:root {
  --site:#1bc839;
  --site-dark:#15a32f;
  --site-rgb:27,200,57;
  --site-ink:#15803d;
  --site-btn:#0f7d24;
  --site-btn-hover:#0c6b1f;
  --warning:#c2410c;
  --danger:#b91c1c;
  --danger-dark:#991b1b;
  --page:#f8fafc;
  --card:#ffffff;
  --ink:#1c1917;
  --text:#57534e;
  --text-sec:#6b645f;
  --group-tint:rgba(16,24,40,.035);
  --group-tint-h:rgba(16,24,40,.06);
  --border:#e7e5e4;
  --border-light:#f0ebe5;
  --input-bg:#fafaf9;
  --shadow:0 1px 2px rgba(28,25,23,.04),0 4px 16px -8px rgba(28,25,23,.06);
  --shadow-lift:0 2px 4px rgba(28,25,23,.05),0 12px 32px -12px rgba(28,25,23,.14);
  --sb-bg:#ffffff;
  --sb-ink:#1c1917;
  --sb-text:#78716c;
  --sb-hover:rgba(0,0,0,.04);
  --mono:'JetBrains Mono',monospace;
  --ease:cubic-bezier(.16,1,.3,1);
}

body.dark {
  --page:#12121e;
  --card:#1e1e30;
  --ink:#e7e5e4;
  --text:#c2bbb3;
  --text-sec:#9c948c;
  --group-tint:rgba(255,255,255,.04);
  --group-tint-h:rgba(255,255,255,.07);
  --site-ink:#4ade80;
  --warning:#fb923c;
  --border:#2a2a3e;
  --border-light:#252538;
  --input-bg:#1a1a2c;
  --shadow:0 1px 2px rgba(6,6,14,.4),0 4px 16px -8px rgba(6,6,14,.5);
  --shadow-lift:0 2px 4px rgba(6,6,14,.5),0 12px 32px -12px rgba(6,6,14,.7);
  --sb-bg:#161624;
  --sb-ink:#e7e5e4;
  --sb-text:#a8a29e;
  --sb-hover:rgba(255,255,255,.06);
}

body {
  --ct-bg: var(--card);
  --ct-page: var(--page);
  --ct-card: var(--card);
  --ct-ink: var(--ink);
  --ct-text: var(--text);
  --ct-text-sec: var(--text-sec);
  --ct-border: var(--border);
  --ct-border-light: var(--border-light);
  --ct-input-bg: var(--input-bg);
  --ct-input-border: var(--border);
  --ct-shadow: var(--shadow);
  --ct-shadow-lift: var(--shadow-lift);
  --sb-text-sec: var(--text-sec);
  --sb-label: var(--text-sec);
  --sb-active: rgba( var(--site-rgb), .09 );
  --sb-border: var(--border);
  --sb-toggle: var(--sb-hover);
  --sb-toggle-color: var(--text-sec);
  --sb-toggle-hover: var(--group-tint-h);
  --sb-badge-bg: rgba( var(--site-rgb), .12 );
  --sb-badge-color: var(--site-ink);
  --sb-logout-bg: var(--sb-hover);
  --sb-logout-color: var(--text-sec);
  --mob-toggle-bg: var(--card);
  --mob-toggle-color: var(--ink);
  --warning-dark: #9a3412;
}

:root {
  --t-gap-sm: 8px;
  --t-gap-md: 12px;
  --t-gap-lg: 20px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--ct-page);
  color: var(--ct-ink);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: var(--ct-ink);
}

svg {
  display: block;
  flex-shrink: 0;
}

.v-spacer {
  flex-grow: 1;
}

@media (max-width: 768px) {
  html, body {
    height: auto !important;
    overflow: auto !important;
  }
}
.app {
  display: flex;
  height: 100vh;
  width: 100%;
}

.main {
  display: flex;
  overflow: hidden;
  flex: 1;
  position: relative;
  background: var(--ct-page);
  transition: background 0.3s;
}

.page-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ct-bg);
  border-bottom: 1px solid var(--ct-border);
  flex-shrink: 0;
}
.page-header-bar__actions {
  display: flex;
  gap: 8px;
}

.page {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}
.page__header {
  margin-bottom: 24px;
}
.page__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ct-ink);
  margin-bottom: 4px;
  transition: color 0.3s;
}
.page__subtitle {
  font-size: 14px;
  color: var(--ct-text);
  transition: color 0.3s;
}

.page-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.page-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.page-empty__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ct-text);
  margin-bottom: 8px;
}
.page-empty__subtitle {
  font-size: 14px;
  color: var(--ct-text-sec);
  line-height: 1.6;
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mob-toggle-bg);
  border: 1px solid var(--sb-border);
  color: var(--mob-toggle-color);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, color 0.3s;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}
.mobile-overlay.show {
  display: block;
}

@media (max-width: 768px) {
  .app {
    display: block !important;
    height: auto;
  }
  .mobile-toggle {
    display: flex;
  }
  .page {
    padding: 24px 16px;
  }
}
.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.d-inline {
  display: inline;
}

.d-grid {
  display: grid;
}

.d-none {
  display: none;
}

.flex-1 {
  flex: 1;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.gap-2 {
  gap: 2px;
}

.gap-4 {
  gap: 4px;
}

.gap-6 {
  gap: 6px;
}

.gap-8 {
  gap: 8px;
}

.gap-10 {
  gap: 10px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

.gap-24 {
  gap: 24px;
}

.w-100 {
  width: 100%;
}

.w-auto {
  width: auto;
}

.h-100 {
  height: 100%;
}

.h-auto {
  height: auto;
}

.min-w-0 {
  min-width: 0;
}

.max-w-100 {
  max-width: 100px;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-y {
  overflow-y: auto;
}

.overflow-x {
  overflow-x: auto;
}

.pa-0 {
  padding: 0;
}

.pa-4 {
  padding: 4px;
}

.pa-8 {
  padding: 8px;
}

.pa-12 {
  padding: 12px;
}

.pa-16 {
  padding: 16px;
}

.pa-20 {
  padding: 20px;
}

.pa-24 {
  padding: 24px;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.px-4 {
  padding-left: 4px;
  padding-right: 4px;
}

.px-8 {
  padding-left: 8px;
  padding-right: 8px;
}

.px-12 {
  padding-left: 12px;
  padding-right: 12px;
}

.px-16 {
  padding-left: 16px;
  padding-right: 16px;
}

.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.py-4 {
  padding-top: 4px;
  padding-bottom: 4px;
}

.py-8 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.py-12 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.py-16 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.py-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.ma-0 {
  margin: 0;
}

.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.rounded-4 {
  border-radius: 4px;
}

.rounded-8 {
  border-radius: 8px;
}

.rounded-12 {
  border-radius: 12px;
}

.t-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.t-btn--primary {
  background: var(--site);
  color: #fff;
}
.t-btn--primary:hover {
  background: var(--site-dark);
}
.t-btn--warning {
  background: var(--warning);
  color: #fff;
}
.t-btn--warning:hover {
  background: var(--warning-dark);
}
.t-btn--danger {
  background: var(--danger);
  color: #fff;
}
.t-btn--danger:hover {
  background: var(--danger-dark);
}
.t-btn--secondary {
  background: var(--ct-input-bg);
  color: var(--ct-text);
  border: 1px solid var(--ct-border);
}
.t-btn--secondary:hover {
  background: var(--ct-border-light);
  color: var(--ct-ink);
}
.t-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.t-card {
  width: 100%;
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.t-card__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ct-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.t-card__title-wrap {
  flex: 1;
  min-width: 0;
}
.t-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-card__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ct-text-sec);
  line-height: 1.4;
}
.t-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.t-card__content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t-card__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--ct-border-light);
  background: var(--ct-input-bg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.t-card--flush .t-card__content {
  padding: 0;
}
.t-card--accent {
  border-color: var(--site);
}
.t-card--danger {
  border-color: var(--danger);
}
.t-card--danger .t-card__header {
  background: rgba(205, 36, 39, 0.08);
}

.t-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t-field__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ct-text-sec);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.t-field__input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ct-ink);
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-input-border, var(--ct-border));
  border-radius: 8px;
  transition: border-color 0.2s;
  outline: none;
}
.t-field__input:focus {
  border-color: var(--site);
}
.t-field__input::placeholder {
  color: var(--ct-text);
}

.t-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 28px 8px 12px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-input-border, var(--ct-border));
  border-radius: 6px;
  color: var(--ct-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23a8a29e%27 stroke-width=%272.5%27 stroke-linecap=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
}
.t-select:focus {
  border-color: var(--site);
}
.t-select:hover {
  filter: brightness(1.1);
}

body:not(.dark) .t-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2378716c%27 stroke-width=%272.5%27 stroke-linecap=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
}

.t-styled-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 28px 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--ct-border);
  outline: none;
  transition: all 0.2s;
  background-color: var(--ct-input-bg);
  color: var(--ct-ink);
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2378716c%27 stroke-width=%272.5%27 stroke-linecap=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
}
.t-styled-select:hover {
  filter: brightness(1.1);
}
.t-styled-select:focus {
  box-shadow: 0 0 0 2px rgba(var(--site-rgb), 0.15);
}
.t-styled-select--draft {
  color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}
.t-styled-select--active {
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
}
.t-styled-select--archived {
  color: #64748b;
  background-color: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
}

.t-grid {
  display: grid;
  gap: var(--t-gap-md, 12px);
  align-items: start;
  grid-template-columns: 1fr;
}
.t-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .t-grid--2 {
    grid-template-columns: 1fr;
  }
}
.t-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1280px) {
  .t-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .t-grid--3 {
    grid-template-columns: 1fr;
  }
}
.t-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1280px) {
  .t-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .t-grid--4 {
    grid-template-columns: 1fr;
  }
}
.t-grid--main-sidebar {
  grid-template-columns: 2fr 1fr;
}
@media (max-width: 768px) {
  .t-grid--main-sidebar {
    grid-template-columns: 1fr;
  }
}
.t-grid--sidebar-main {
  grid-template-columns: 1fr 2fr;
}
@media (max-width: 768px) {
  .t-grid--sidebar-main {
    grid-template-columns: 1fr;
  }
}

.t-table-wrap {
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: scroll;
}

.t-table {
  width: 100%;
  border-collapse: collapse;
}
.t-table thead {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--ct-border);
}
.t-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ct-text);
}
.t-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--ct-border-light);
  color: var(--ct-text);
  font-size: 14px;
}
.t-table td:first-child {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.t-table tbody tr {
  transition: background 0.15s;
}
.t-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.t-table tbody tr:last-child td {
  border-bottom: none;
}
.t-table .t-checkbox {
  width: 57px;
}
.t-table input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--site);
}

body:not(.dark) .t-table thead {
  background: rgba(0, 0, 0, 0.02);
}

body:not(.dark) .t-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.t-table-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ct-card) 80%, transparent);
  backdrop-filter: blur(2px);
  z-index: 2;
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-text);
  border-radius: 12px;
}

.t-col-mono {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ct-text);
}

.row-active {
  background: rgba(var(--site-rgb), 0.04) !important;
}
.row-active td:first-child {
  box-shadow: inset 3px 0 0 var(--site);
}

.row-inactive {
  opacity: 0.5;
}

.t-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: var(--ct-text-sec);
  font-size: 14px;
}

.t-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px;
  text-align: center;
  color: var(--ct-text-sec);
}
.t-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.t-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ct-text);
  margin-bottom: 8px;
}
.t-empty p {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .t-table-wrap {
    overflow-x: auto;
  }
  .t-table {
    min-width: 700px;
  }
}
.t-filters {
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.t-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.t-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ct-text);
  font-size: 16px;
}
.t-search__input {
  width: 100%;
  padding: 10px 36px 10px 42px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-input-border, var(--ct-border));
  border-radius: 8px;
  color: var(--ct-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.t-search__input:focus {
  border-color: var(--site);
}
.t-search__input::placeholder {
  color: var(--ct-text);
}
.t-search__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  font-size: 12px;
  color: var(--ct-text-sec);
  transition: all 0.15s;
}
.t-search__clear:hover {
  background: var(--ct-border-light);
  color: var(--ct-ink);
}

.t-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-filter-group__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ct-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.t-filter-group__input {
  width: 100%;
  padding: 10px 36px 10px 42px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-input-border, var(--ct-border));
  border-radius: 8px;
  color: var(--ct-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.t-filter-group__input:focus {
  border-color: var(--site);
}
.t-filter-group__input::placeholder {
  color: var(--ct-text);
}

@media (max-width: 768px) {
  .t-filters {
    flex-direction: column;
    gap: 12px;
  }
  .t-search {
    min-width: 100%;
  }
}
.t-page-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ct-ink);
}

.t-header-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(var(--site-rgb), 0.12);
  color: var(--site);
  margin-left: 8px;
  vertical-align: middle;
}

.t-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.t-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.t-status--draft {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.t-status--active, .t-status--success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.t-status--muted {
  background: rgba(217, 16, 16, 0.15);
  color: #c52222;
}
.t-status--archived {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

.t-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.t-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ct-text);
  white-space: nowrap;
}

body:not(.dark) .t-tag {
  background: rgba(0, 0, 0, 0.04);
}

.t-tag-name {
  font-weight: 700;
  color: var(--ct-ink);
}

.t-count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ct-text-sec);
}
.t-count-badge.has-items {
  background: rgba(var(--site-rgb), 0.12);
  color: var(--site);
}

body:not(.dark) .t-count-badge {
  background: rgba(0, 0, 0, 0.04);
}

.t-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.t-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ct-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.t-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.t-action-btn--primary {
  color: var(--site);
}
.t-action-btn--primary:hover {
  background: rgba(var(--site-rgb), 0.1);
}
.t-action-btn--danger {
  color: #dc2626;
}
.t-action-btn--danger:hover {
  background: rgba(220, 38, 38, 0.1);
}
.t-action-btn--success {
  color: #22c55e;
}
.t-action-btn--success:hover {
  background: rgba(34, 197, 94, 0.1);
}
.t-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

body:not(.dark) .t-action-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.t-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: var(--ct-card);
}
.t-pagination--modal-top {
  border-bottom: 1px solid var(--ct-border-light);
}
.t-pagination--modal-bottom {
  border-top: 1px solid var(--ct-border-light);
}
.t-pagination--page {
  border-top: 1px solid var(--ct-border);
  margin-top: 16px;
  padding: 12px 0;
  background: transparent;
}
.t-pagination__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.t-pagination__label {
  font-size: 12px;
  color: var(--ct-text);
  white-space: nowrap;
}
.t-pagination__per-page {
  appearance: none;
  -webkit-appearance: none;
  padding: 3px 22px 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--ct-border);
  background-color: var(--ct-input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%2710%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2378716c%27 stroke-width=%272.5%27 stroke-linecap=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  color: var(--ct-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.t-pagination__per-page:focus {
  border-color: var(--site);
}
.t-pagination__center {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ct-text);
  white-space: nowrap;
}
.t-pagination__range {
  white-space: nowrap;
}
.t-pagination__goto {
  display: flex;
  align-items: center;
  gap: 6px;
}
.t-pagination__goto-label {
  font-size: 11px;
  color: var(--ct-text-sec);
}
.t-pagination__goto-input {
  width: 48px;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--ct-border);
  background: var(--ct-input-bg);
  color: var(--ct-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.t-pagination__goto-input::-webkit-outer-spin-button, .t-pagination__goto-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.t-pagination__goto-input:focus {
  border-color: var(--site);
}
.t-pagination__right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.t-pagination__btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--ct-border);
  background: var(--ct-input-bg);
  color: var(--ct-text);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.t-pagination__btn:hover:not(:disabled) {
  border-color: var(--site);
  color: var(--site);
}
.t-pagination__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .t-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .t-pagination__label {
    display: none;
  }
}
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-width: 360px;
}
.toast--info {
  background: var(--ct-card);
  color: var(--ct-ink);
  border: 1px solid var(--ct-border);
}
.toast--success {
  background: #16a34a;
  color: #fff;
}
.toast--error {
  background: #ef4444;
  color: #fff;
}

.toast-enter-active {
  animation: toastIn 0.3s ease-out;
}

.toast-leave-active {
  animation: toastOut 0.2s ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}
.update-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  color: var(--ct-ink);
  animation: slideUp 0.4s var(--ease-out-expo);
}
.update-toast__icon {
  font-size: 20px;
  flex-shrink: 0;
}
.update-toast__text {
  font-weight: 600;
}
.update-toast__btn {
  padding: 8px 16px;
  background: var(--site);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.update-toast__btn:hover {
  background: var(--site-dark);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0.8px);
}

.confirm-dialog {
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  padding: 24px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.confirm-message {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ct-ink);
  margin-bottom: 20px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.confirm-btn--cancel {
  background: var(--ct-input-bg);
  color: var(--ct-text);
}
.confirm-btn--cancel:hover {
  background: var(--ct-border-light);
}
.confirm-btn--ok {
  background: var(--site);
  color: #fff;
}
.confirm-btn--ok:hover {
  background: var(--site-dark);
}

.confirm-fade-enter-active, .confirm-fade-leave-active {
  transition: opacity 0.15s;
}

.confirm-fade-enter-from, .confirm-fade-leave-to {
  opacity: 0;
}

body:not(.dark) .img-library {
  --ct-card: #fff;
  --ct-border: #e7e5e4;
  --ct-border-light: #f0ebe5;
  --ct-input-bg: #fafaf9;
  --ct-ink: #1c1917;
  --ct-text: #78716c;
  --ct-text-sec: #a8a29e;
}

.img-uploader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.img-uploader__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.img-uploader__preview {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  border: 1.5px dashed var(--ct-border);
  background: var(--ct-input-bg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}
.img-uploader__preview:hover {
  border-color: var(--site);
}
.img-uploader__preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-uploader__preview--drag {
  border-color: var(--site);
  background: rgba(var(--site-rgb), 0.04);
}
.img-uploader__preview--drag .img-uploader__placeholder-icon {
  opacity: 0.8;
}
.img-uploader__preview--drag .img-uploader__placeholder-text {
  color: var(--site);
}
.img-uploader__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-uploader__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
}
.img-uploader__placeholder-icon {
  font-size: 28px;
  opacity: 0.4;
}
.img-uploader__placeholder-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ct-text);
}
.img-uploader__placeholder-hint {
  font-size: 11px;
  color: var(--ct-text-sec);
}
.img-uploader__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ct-card) 80%, transparent);
  backdrop-filter: blur(0.8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-text);
}
.img-uploader__actions {
  display: flex;
  gap: 6px;
}
.img-uploader__btn {
  flex: 1;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--ct-border);
  background: var(--ct-input-bg);
  color: var(--ct-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.img-uploader__btn:hover:not(:disabled) {
  border-color: var(--site);
  color: var(--site);
}
.img-uploader__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.img-uploader__count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(var(--site-rgb), 0.12);
  color: var(--site);
}

.img-library-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.img-library {
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.img-library__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ct-border);
  flex-shrink: 0;
}
.img-library__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ct-ink);
}
.img-library__close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--ct-input-bg);
  color: var(--ct-text);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.img-library__close:hover {
  background: var(--ct-border);
  color: var(--ct-ink);
}
.img-library__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.img-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.img-library__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--ct-border);
  cursor: pointer;
  transition: all 0.15s;
}
.img-library__item:hover {
  border-color: var(--site);
}
.img-library__item.is-active {
  border-color: var(--site);
  box-shadow: 0 0 0 2px rgba(var(--site-rgb), 0.2);
}
.img-library__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-library__check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--site);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-library__del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.img-library__item:hover .img-library__del {
  opacity: 1;
}
.img-library__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--ct-border);
  flex-shrink: 0;
}
.img-library__footer-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ct-text);
}

.t-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.8px);
  padding: 16px;
}

.t-modal {
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.t-modal--wide {
  max-width: 640px;
}
.t-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ct-border);
  flex-shrink: 0;
}
.t-modal__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ct-ink);
}
.t-modal__close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--ct-input-bg);
  color: var(--ct-text);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.t-modal__close:hover {
  background: var(--ct-border);
  color: var(--ct-ink);
}
.t-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.t-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--ct-border);
  flex-shrink: 0;
}

.t-modal-fade-enter-active,
.t-modal-fade-leave-active {
  transition: opacity 0.15s;
}

.t-modal-fade-enter-from,
.t-modal-fade-leave-to {
  opacity: 0;
}

.drp {
  position: relative;
  width: 100%;
}

.drp-field {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  background: var(--ct-card);
  color: var(--ct-ink);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: left;
}
.drp-field:hover {
  border-color: var(--site);
}
.drp-field__icon {
  font-size: 15px;
  flex-shrink: 0;
}
.drp-field__value {
  flex: 1;
  font-weight: 600;
}
.drp-field__days {
  color: var(--site);
  font-weight: 700;
  font-size: 13px;
  margin-left: 4px;
}
.drp-field__placeholder {
  color: var(--ct-text-sec);
}

.drp-pop {
  position: fixed;
  z-index: 10001;
  width: 320px;
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  padding: 16px;
  animation: drp-in 0.16s var(--ease-standard);
}
.drp-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.drp-pop__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ct-ink);
}
.drp-pop__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ct-border-light);
}

@keyframes drp-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.drp-nav {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ct-border);
  border-radius: 8px;
  background: transparent;
  color: var(--ct-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.drp-nav:hover {
  border-color: var(--site);
  color: var(--site);
}

.drp-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.drp-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ct-text-sec);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drp-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  color: var(--ct-ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drp-day:hover:not(.is-empty):not(.is-start):not(.is-end) {
  background: rgba(var(--site-rgb), 0.12);
}
.drp-day.is-empty {
  cursor: default;
  pointer-events: none;
}
.drp-day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--ct-border);
}
.drp-day.is-inrange {
  background: rgba(var(--site-rgb), 0.12);
  border-radius: 0;
  color: var(--site-dark);
}
.drp-day.is-start, .drp-day.is-end {
  background: var(--site);
  color: #fff;
  box-shadow: none;
}
.drp-day.is-start {
  border-radius: 8px 0 0 8px;
}
.drp-day.is-end {
  border-radius: 0 8px 8px 0;
}
.drp-day.is-start:not(.is-end) {
  border-radius: 8px;
}

.drp-hint {
  font-size: 12px;
  color: var(--ct-text-sec);
  margin-bottom: 10px;
}

.drp-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cat-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cat-tree {
  flex: 1;
  min-width: 0;
}

.cat-form {
  width: 280px;
  flex-shrink: 0;
  padding: 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--surface, #fff);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-form__title {
  font-size: 14px;
  font-weight: 700;
}

.cat-form__select {
  width: 100%;
  max-width: none;
}

.cat-form__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.cat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cat-name__indent {
  color: var(--text-muted, #94a3b8);
}

.cat-row--editing td {
  background: rgba(99, 102, 241, 0.06);
}

.cat-row--inactive td {
  opacity: 0.55;
}

.cat-count {
  display: inline-block;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.1);
}

.cat-count:hover {
  background: rgba(99, 102, 241, 0.2);
}

@media (max-width: 800px) {
  .cat-layout {
    flex-direction: column;
  }
  .cat-form {
    width: 100%;
  }
}
.pv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pv-meta__chip {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
}

.pv-meta__ids {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.pv-meta__sync {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.pv-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.pv-gallery__main {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pv-gallery__empty {
  font-size: 48px;
  opacity: 0.3;
}

.pv-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pv-gallery__thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

.pv-gallery__thumbs img.active {
  border-color: var(--accent, #6366f1);
}

.pv-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pv-price b {
  font-size: 24px;
}

.pv-counters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pv-counter {
  min-width: 90px;
  padding: 10px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--surface, #fff);
  text-align: center;
}

.pv-counter__value {
  font-size: 16px;
  font-weight: 700;
}

.pv-counter__label {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.pv-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pv-videos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pv-video {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
}

.pv-section {
  margin-bottom: 24px;
}

.pv-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pv-default {
  color: var(--accent, #6366f1);
  margin-left: 4px;
}

.pv-content {
  max-height: 220px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--surface, #fff);
  position: relative;
}

.pv-content:not(.open)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(transparent, var(--surface, #fff));
}

.pv-content.open {
  max-height: none;
}

.pv-content img {
  max-width: 100%;
  height: auto;
}

.pv-reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pv-review {
  padding: 12px 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.pv-review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pv-review__stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.pv-review__text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.pv-review__images {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pv-review__images img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.t-status--warning {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.t-status--danger {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.12);
}

@media (max-width: 900px) {
  .pv-grid {
    grid-template-columns: 1fr;
  }
}
.slider-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
.slider-editor__tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ct-border, var(--border, #e2e8f0));
  flex-shrink: 0;
}
.slider-editor__tab {
  padding: 6px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--ct-border, var(--border, #e2e8f0));
  background: var(--ct-input-bg, var(--surface, #fff));
  color: var(--ct-text, var(--text-muted, #78716c));
  cursor: pointer;
  transition: all 0.2s;
}
.slider-editor__tab.active {
  background: var(--site, var(--accent, #22c55e));
  border-color: var(--site, var(--accent, #22c55e));
  color: #fff;
}
.slider-editor__tab:hover:not(.active) {
  border-color: var(--site, var(--accent, #22c55e));
  color: var(--ct-ink, #1c1917);
}
.slider-editor__tab--add {
  border-style: dashed;
}
.slider-editor__tab--add:hover {
  border-style: solid;
}
.slider-editor__content {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.slider-editor__preview {
  flex: 1;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ct-page, #f5f5f4);
  border-right: 1px solid var(--ct-border, var(--border, #e2e8f0));
  overflow: hidden;
  transition: max-width 0.25s ease;
}
.slider-editor__preview.is-mobile > div {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  width: 100% !important;
  aspect-ratio: 4/5 !important;
}
.slider-editor__preview-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  line-height: 1.4;
}
.slider-editor__preview-slide {
  width: 80%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.slider-editor__preview-hero {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  font-size: 72px;
  opacity: 0.85;
}
.slider-editor__preview-hero img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}
.slider-editor__preview-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  z-index: 3;
}
.slider-editor__preview-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}
.slider-editor__preview-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.slider-editor__preview-product {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.slider-editor__preview-product-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.slider-editor__preview-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-editor__preview-product-text {
  flex: 1;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.slider-editor__preview-product-text span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slider-editor__preview-product-text span:last-child {
  color: rgba(255, 255, 255, 0.45);
}
.slider-editor__preview-product-btn {
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
}
.slider-editor__preview-glow-l {
  position: absolute;
  left: -60px;
  top: -60px;
  bottom: -60px;
  width: 200px;
  filter: blur(60px);
  z-index: 0;
  border-radius: 50%;
}
.slider-editor__preview-glow-r {
  position: absolute;
  right: -60px;
  top: -60px;
  bottom: -60px;
  width: 200px;
  filter: blur(60px);
  z-index: 0;
  border-radius: 50%;
}
.slider-editor__view-switch {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px;
  background: var(--ct-bg, var(--border, #e7e5e4));
  border-radius: 8px;
  width: fit-content;
}
.slider-editor__view-btn {
  padding: 6px 14px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
  transition: all 0.15s;
}
.slider-editor__view-btn:hover {
  color: var(--ct-ink, #1c1917);
}
.slider-editor__view-btn.active {
  background: var(--ct-card, var(--surface, #fff));
  color: var(--site, var(--accent, #22c55e));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.slider-editor__label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
  margin-left: 4px;
}
.slider-editor__hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
  font-style: italic;
}
.slider-editor__settings {
  width: 320px;
  min-width: 320px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.slider-editor__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slider-editor__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.slider-editor__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slider-editor__input {
  padding: 8px 12px;
  background: var(--ct-input-bg, var(--surface, #fff));
  border: 1px solid var(--ct-border, var(--border, #e2e8f0));
  border-radius: 8px;
  color: var(--ct-ink, #1c1917);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.slider-editor__input:focus {
  border-color: var(--site, var(--accent, #22c55e));
}
.slider-editor__input::placeholder {
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
}
.slider-editor__input--small {
  font-size: 12px;
}
.slider-editor__auto-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--ct-border, var(--border, #e2e8f0));
  background: var(--ct-input-bg, var(--surface, #fff));
  color: var(--ct-text, var(--text-muted, #78716c));
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.slider-editor__auto-btn:hover:not(:disabled) {
  border-color: var(--site, var(--accent, #22c55e));
  color: var(--site, var(--accent, #22c55e));
}
.slider-editor__auto-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.slider-editor__glow-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slider-editor__glow-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider-editor__glow-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
  width: 32px;
  flex-shrink: 0;
}
.slider-editor__glow-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--ct-border, var(--border, #e2e8f0));
}
.slider-editor__product-search {
  position: relative;
}
.slider-editor__product-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--ct-card, var(--surface, #fff));
  border: 1px solid var(--ct-border, var(--border, #e2e8f0));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}
.slider-editor__product-result {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--ct-text, var(--text-muted, #78716c));
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.slider-editor__product-result:hover {
  background: var(--ct-border-light, #f0ebe5);
  color: var(--ct-ink, #1c1917);
}
.slider-editor__product-thumb {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ct-border-light, #f0ebe5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.slider-editor__product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-editor__product-price {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
}
.slider-editor__product-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(var(--site-rgb, 34, 197, 94), 0.08);
  border: 1px solid rgba(var(--site-rgb, 34, 197, 94), 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ct-ink, #1c1917);
}
.slider-editor__product-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--ct-text-sec, var(--text-muted, #a8a29e));
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.slider-editor__product-clear:hover {
  color: #ef4444;
}
.slider-editor__remove-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.slider-editor__remove-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}
.slider-editor__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--ct-border, var(--border, #e2e8f0));
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.slider-editor .img-uploader__preview {
  aspect-ratio: 16/9;
}

.cm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.cm-modal-overlay--top {
  z-index: 1010;
}

.cm-modal {
  display: flex;
  flex-direction: column;
  width: 640px;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 14px;
  background: var(--surface, #fff);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.cm-modal--wide {
  width: 1100px;
}
.cm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.cm-modal__header h3 {
  font-size: 15px;
  font-weight: 700;
}
.cm-modal__close {
  border: 0;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.cm-modal__close:hover {
  color: inherit;
}
.cm-modal__search {
  padding: 12px 18px 0;
  flex-shrink: 0;
}
.cm-modal__search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 13px;
}
.cm-modal__search-input:focus {
  outline: none;
  border-color: var(--accent, #6366f1);
}
.cm-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-modal__empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
}
.cm-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.cm-modal__footer-count {
  margin-right: auto;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.cm-row {
  display: flex;
  gap: 12px;
}
.cm-row .cm-field {
  flex: 1;
}

.cm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cm-field--narrow {
  flex: 0 0 90px;
}
.cm-field label {
  font-size: 12px;
  font-weight: 700;
}
.cm-field input {
  padding: 8px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 13px;
}
.cm-field input:focus {
  outline: none;
  border-color: var(--accent, #6366f1);
}
.cm-field input:disabled {
  opacity: 0.6;
  cursor: default;
}

.cm-row-inactive {
  opacity: 0.55;
}

.cm-row-active td {
  background: rgba(99, 102, 241, 0.05);
}

.cm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--border, #e2e8f0);
}

.cm-count-badge {
  display: inline-block;
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--border, #e2e8f0);
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.cm-count-badge.has-items {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.cm-gradient-chip {
  width: 34px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border, #e2e8f0);
}

.cm-slider-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cm-slider-btn:hover {
  border-color: var(--accent, #6366f1);
}

.coll-table th:first-child, .coll-table td:first-child {
  width: 70px;
}
.coll-table td:first-child {
  padding-left: 16px;
}
.coll-table th:last-child, .coll-table td:last-child {
  width: 160px;
}
.coll-table .cm-icon {
  margin: 6px 0;
}

.cs-table th:first-child, .cs-table td:first-child {
  width: 150px;
}
.cs-table th:last-child, .cs-table td:last-child {
  width: 90px;
  text-align: center;
}
.cs-table .cat-preview {
  margin: 8px 0 8px 14px;
}

.cat-preview {
  width: 120px;
  height: 60px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.cat-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}
.cat-preview__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cat-preview__emoji {
  position: relative;
  z-index: 2;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.products-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-header__title {
  font-size: 12px;
  font-weight: 700;
}
.pp-header__count {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}
.pp-header__add-btn {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--accent, #6366f1);
  border-radius: 8px;
  background: transparent;
  color: var(--accent, #6366f1);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pp-header__add-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.08);
}
.pp-header__add-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.pp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--border, #e2e8f0);
  border-radius: 10px;
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
}
.pp-empty__icon {
  font-size: 26px;
}
.pp-empty__btn {
  padding: 6px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pp-empty__btn:hover {
  border-color: var(--accent, #6366f1);
}

.pp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.pp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
}
.pp-item__sort {
  width: 20px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  flex-shrink: 0;
}
.pp-item__thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.pp-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-item__info {
  flex: 1;
  min-width: 0;
}
.pp-item__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-item__id {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}
.pp-item__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.pp-item__btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pp-item__btn:hover {
  border-color: var(--accent, #6366f1);
}
.pp-item__btn--del:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.pp-table tr.is-linked td {
  background: rgba(34, 197, 94, 0.06);
}

.pp-table__btn {
  padding: 5px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pp-table__btn--add:hover:not(:disabled) {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}
.pp-table__btn--add:disabled {
  opacity: 0.5;
  cursor: default;
}
.pp-table__btn--remove {
  border-color: rgba(34, 197, 94, 0.45);
  color: #16a34a;
}
.pp-table__btn--remove:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.gradient-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gradient-picker__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gradient-picker__swatch {
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.gradient-picker__swatch.is-active {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.gradient-picker__swatch--custom {
  background: var(--surface, #fff);
  border: 1px dashed var(--border, #e2e8f0);
  color: var(--text-muted, #94a3b8);
  font-size: 16px;
  line-height: 1;
}
.gradient-picker__swatch--custom:hover, .gradient-picker__swatch--custom.is-active {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

.gradient-picker__custom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gradient-picker__input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 12px;
}
.gradient-picker__input:focus {
  outline: none;
  border-color: var(--accent, #6366f1);
}

.gradient-picker__preview {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}

.attrs-page .dict-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.attrs-page .dict-grid > .card {
  animation: attrs-rise 0.5s var(--ease-out-expo) both;
}
.attrs-page .dict-grid > .card:nth-child(2) {
  animation-delay: 0.06s;
}
.attrs-page .card {
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  box-shadow: var(--ct-shadow);
}
.attrs-page .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--ct-border-light);
}
.attrs-page .sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ct-ink);
}
.attrs-page .sec-title .input {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ct-ink);
  border-color: var(--site);
  border-radius: 7px;
  padding: 4px 10px;
  width: 200px;
}
.attrs-page .sec-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ct-text-sec);
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border-light);
  padding: 1px 7px;
  border-radius: 5px;
}
.attrs-page .input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ct-ink);
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.attrs-page .input:focus {
  border-color: var(--site);
  box-shadow: 0 0 0 3px rgba(var(--site-rgb), 0.12);
}
.attrs-page .input::placeholder {
  color: var(--ct-text-sec);
}
.attrs-page .input-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.attrs-page .hint {
  font-size: 11.5px;
  color: var(--ct-text-sec);
}
.attrs-page .mono {
  font-family: var(--font-mono);
}
.attrs-page .v-spacer {
  flex: 1;
}
.attrs-page .icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--ct-text-sec);
  background: none;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s;
}
.attrs-page .icon-btn:hover {
  background: var(--ct-input-bg);
  color: var(--ct-ink);
  border-color: var(--ct-border);
}
.attrs-page .icon-btn.danger:hover {
  background: rgba(205, 36, 39, 0.08);
  color: var(--danger);
  border-color: rgba(205, 36, 39, 0.2);
}
.attrs-page .mini-btn {
  border: 1px solid var(--ct-border);
  background: var(--ct-card);
  color: var(--ct-text);
  border-radius: 7px;
  padding: 3px 9px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.attrs-page .mini-btn:hover {
  color: var(--ct-ink);
  border-color: var(--ct-text-sec);
}
.attrs-page .sort-btn {
  width: 16px;
  height: 13px;
  display: grid;
  place-items: center;
  color: var(--ct-text-sec);
  background: none;
  border: none;
  border-radius: 4px;
  font-size: 8px;
  padding: 0;
  cursor: pointer;
}
.attrs-page .sort-btn:hover {
  background: var(--ct-border-light);
  color: var(--ct-ink);
}
.attrs-page .sort-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.attrs-page .empty-note {
  padding: 40px 22px;
  text-align: center;
  color: var(--ct-text-sec);
  font-size: 13px;
}
.attrs-page .pane-search {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ct-border-light);
}
.attrs-page .pane-search .input {
  padding: 6px 12px;
  font-size: 12.5px;
}
.attrs-page .grp-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  max-height: 56vh;
  overflow-y: auto;
}
.attrs-page .grp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.attrs-page .grp-item:hover {
  background: var(--ct-input-bg);
}
.attrs-page .grp-item:hover .grp-sort {
  opacity: 1;
}
.attrs-page .grp-item.sel {
  background: rgba(var(--site-rgb), 0.07);
  border-color: rgba(var(--site-rgb), 0.25);
}
.attrs-page .grp-item.draft {
  cursor: default;
  background: rgba(var(--site-rgb), 0.05);
  border: 1px dashed rgba(var(--site-rgb), 0.4);
  gap: 8px;
}
.attrs-page .grp-info {
  flex: 1;
  min-width: 0;
}
.attrs-page .grp-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ct-ink);
}
.attrs-page .grp-slug {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ct-text-sec);
}
.attrs-page .grp-used {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ct-text-sec);
}
.attrs-page .grp-hit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--site);
  margin-top: 2px;
  white-space: normal;
}
.attrs-page .grp-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ct-text-sec);
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border-light);
  padding: 1px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}
.attrs-page .grp-sort {
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}
.attrs-page .draft .input {
  padding: 6px 10px;
  font-size: 13px;
}
.attrs-page .props-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.attrs-page .props-toolbar .input {
  width: 170px;
  padding: 6px 12px;
  font-size: 12.5px;
}
.attrs-page .prop-list {
  max-height: 62vh;
  overflow-y: auto;
}
.attrs-page .prop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--ct-border-light);
}
.attrs-page .prop-row:last-child {
  border-bottom: none;
}
.attrs-page .prop-row:hover .grp-sort {
  opacity: 1;
}
.attrs-page .prop-row.draft {
  background: rgba(var(--site-rgb), 0.05);
  border-bottom: 1px dashed rgba(var(--site-rgb), 0.4);
}
.attrs-page .prop-row.merge-bar {
  background: rgba(255, 95, 21, 0.05);
  border-bottom: 1px dashed rgba(255, 95, 21, 0.45);
  flex-wrap: wrap;
}
.attrs-page .prop-row.is-src {
  background: rgba(255, 95, 21, 0.06);
}
.attrs-page .prop-row .mini-btn {
  flex-shrink: 0;
}
.attrs-page .merge-label {
  font-size: 13px;
  color: var(--ct-ink);
}
.attrs-page .merge-label b {
  font-weight: 600;
}
.attrs-page .merge-bar select.input {
  width: auto;
  min-width: 170px;
  padding: 6px 10px;
}
.attrs-page .merge-plan {
  font-size: 11.5px;
  color: var(--warning);
  font-weight: 600;
}
.attrs-page .prop-title-in {
  width: 220px;
  padding: 6px 10px;
  font-size: 13px;
}
.attrs-page .prop-slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ct-text-sec);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 130px;
}
.attrs-page .prop-used {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border-light);
  color: var(--ct-text-sec);
  white-space: nowrap;
}
.attrs-page .prop-used.zero {
  opacity: 0.55;
}
.attrs-page .swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--ct-border);
  flex-shrink: 0;
  padding: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
}
.attrs-page .swatch-fill:hover {
  box-shadow: 0 0 0 2px rgba(var(--site-rgb), 0.4);
}
.attrs-page .swatch-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--ct-text-sec);
  font-size: 11px;
  background: var(--ct-input-bg);
}
.attrs-page .swatch-empty:hover {
  border-color: var(--site);
  color: var(--site);
}
.attrs-page .meta-x {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border);
  color: var(--ct-text-sec);
  font-size: 9px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  margin-left: -6px;
  cursor: pointer;
}
.attrs-page .meta-x:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.attrs-page .recycle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ct-text-sec);
  padding: 10px 22px;
  border-top: 1px solid var(--ct-border-light);
}
.attrs-page .rec-btn {
  border: 1px solid var(--ct-border);
  background: var(--ct-card);
  border-radius: 7px;
  padding: 2px 9px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--ct-text);
  cursor: pointer;
}
.attrs-page .rec-btn:hover {
  border-color: var(--site);
  color: var(--site);
}
.attrs-page .hex-pop {
  position: fixed;
  z-index: 70;
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  box-shadow: var(--ct-shadow-lift);
  padding: 12px;
  width: 224px;
}
.attrs-page .hexpop-tabs {
  display: flex;
  gap: 2px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 10px;
}
.attrs-page .hexpop-tab {
  flex: 1;
  padding: 5px 0;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ct-text-sec);
  cursor: pointer;
  transition: all 0.15s;
}
.attrs-page .hexpop-tab.on {
  background: var(--ct-card);
  color: var(--ct-ink);
  box-shadow: var(--ct-shadow);
}
.attrs-page .hex-sv {
  position: relative;
  width: 100%;
  height: 112px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: crosshair;
  border: 1px solid var(--ct-border-light);
  touch-action: none;
}
.attrs-page .hex-sv-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translate(-6px, -6px);
  pointer-events: none;
}
.attrs-page .hex-hue {
  position: relative;
  height: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  touch-action: none;
}
.attrs-page .hex-hue-dot {
  position: absolute;
  top: -2px;
  width: 8px;
  height: 16px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translateX(-4px);
  pointer-events: none;
}
.attrs-page .hex-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.attrs-page .hex-cell {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
}
.attrs-page .hex-cell:hover {
  transform: scale(1.15);
}
.attrs-page .hex-cell.sel {
  outline: 2px solid var(--site);
  outline-offset: 1px;
}
.attrs-page .hex-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.attrs-page .hex-row .input {
  padding: 5px 10px;
}
.attrs-page .hex-prev {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--ct-border);
  flex-shrink: 0;
}
.attrs-page .img-swatch-prev {
  width: 100%;
  height: 96px;
  border-radius: 8px;
  border: 1.5px dashed var(--ct-border);
  background-color: var(--ct-input-bg);
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
}
.attrs-page .hex-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 1000px) {
  .attrs-page .dict-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes attrs-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pedit-page .container {
  max-width: 1280px;
  margin: 0 auto;
}
.pedit-page .card {
  position: relative;
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  box-shadow: var(--ct-shadow);
  overflow: hidden;
  margin-bottom: 22px;
}
.pedit-page .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 18px;
  border-bottom: 1px solid var(--ct-border-light);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ct-text-sec);
}
.pedit-page .panel-head .sec-count {
  text-transform: none;
  letter-spacing: 0;
}
.pedit-page .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--ct-border-light);
}
.pedit-page .sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ct-ink);
  white-space: nowrap;
}
.pedit-page .sec-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ct-text-sec);
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border-light);
  padding: 1px 7px;
  border-radius: 5px;
}
.pedit-page .sec-body {
  padding: 20px 22px;
}
.pedit-page .mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.pedit-page .dim {
  color: var(--ct-text-sec);
}
.pedit-page .hint {
  font-size: 11.5px;
  color: var(--ct-text-sec);
}
.pedit-page .v-spacer {
  flex: 1;
}
.pedit-page .empty-note {
  padding: 40px 22px;
  text-align: center;
  color: var(--ct-text-sec);
  font-size: 13px;
}
.pedit-page .idc {
  cursor: pointer;
  transition: color 0.15s;
  border-radius: 3px;
}
.pedit-page .idc:hover {
  color: var(--site);
}
.pedit-page .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.pedit-page .status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pedit-page .status-active {
  background: rgba(34, 197, 94, 0.13);
  color: #4ade80;
}
.pedit-page .status-muted {
  background: rgba(120, 113, 108, 0.13);
  color: var(--ct-text);
}
.pedit-page .status-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.pedit-page .status-warn {
  background: rgba(245, 158, 11, 0.13);
  color: #fbbf24;
}
.pedit-page .status-out {
  background: rgba(255, 95, 21, 0.13);
  color: var(--warning);
}
.pedit-page .status-err {
  background: rgba(205, 36, 39, 0.13);
  color: var(--danger);
}
.pedit-page .sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pedit-page .page-head {
  margin-bottom: 18px;
}
.pedit-page .pe-title {
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ct-ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}
.pedit-page .pe-title {
  cursor: pointer;
}
.pedit-page .pe-subrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.pedit-page .pe-slug {
  display: inline-block;
  font-size: 12px;
  color: var(--ct-text-sec);
  word-break: break-all;
}
.pedit-page .head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-bottom: 22px;
  align-items: start;
}
.pedit-page .head-grid > * > .card {
  margin-bottom: 0;
}
.pedit-page .head-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pedit-page .media-flex {
  display: flex;
  gap: 24px;
  padding: 20px;
}
.pedit-page .media-main {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border);
}
.pedit-page .media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pedit-page .media-none {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ct-text-sec);
  font-size: 12.5px;
}
.pedit-page .cover-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 18, 16, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}
.pedit-page .media-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pedit-page .rail-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-text-sec);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pedit-page .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pedit-page .thumb {
  display: block;
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--ct-border);
  transition: border-color 0.18s;
  background: var(--ct-input-bg);
}
.pedit-page .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pedit-page .thumb:hover {
  border-color: var(--ct-text-sec);
}
.pedit-page .thumb.sel {
  border-color: var(--site);
}
.pedit-page .thumb:first-child::after {
  content: "COVER";
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(20, 18, 16, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: center;
  padding: 2px 0;
  pointer-events: none;
}
.pedit-page .img-title-view {
  font-size: 12.5px;
  color: var(--ct-ink);
}
.pedit-page .media-hint {
  font-size: 11.5px;
  color: var(--ct-text-sec);
  line-height: 1.5;
  margin: 0;
}
.pedit-page .media-sep {
  height: 1px;
  background: var(--ct-border-light);
  margin: 2px 0;
}
.pedit-page .vid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pedit-page .vid-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ct-border);
  border-radius: 8px;
  background: var(--ct-input-bg);
  padding: 4px 10px 4px 6px;
  transition: border-color 0.15s;
}
.pedit-page .vid-chip:hover {
  border-color: var(--ct-text-sec);
}
.pedit-page .vid-poster {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: var(--ct-border-light);
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--ct-text-sec);
  flex-shrink: 0;
}
.pedit-page .vid-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ct-text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pedit-page .tech-grid {
  display: flex;
  flex-wrap: wrap;
}
.pedit-page .tech-item {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 14px 22px;
  border-right: 1px solid var(--ct-border-light);
  min-width: 0;
}
.pedit-page .tech-item:last-child {
  border-right: none;
}
.pedit-page .tech-item > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ct-text-sec);
  line-height: 1.4;
}
.pedit-page .tech-item .mono {
  color: var(--ct-text);
}
.pedit-page .tech-num {
  color: var(--ct-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pedit-page .tech-item.editable {
  cursor: pointer;
  transition: background 0.15s;
}
.pedit-page .tech-item.editable:hover {
  background: rgba(var(--site-rgb), 0.05);
}
.pedit-page .tech-item.editable:hover > span:first-child {
  color: var(--site);
}
.pedit-page .tech-price-val {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  white-space: nowrap;
}
.pedit-page .tech-price-val b {
  font-size: 16px;
  font-weight: 700;
  color: var(--ct-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.pedit-page .price-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pedit-page .price-sub s {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.pedit-page .off-badge {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--site);
  background: rgba(var(--site-rgb), 0.11);
  padding: 1px 5px;
  border-radius: 5px;
  flex-shrink: 0;
  align-self: center;
}
.pedit-page .head-side-col .tech-grid {
  flex-direction: column;
  gap: 0;
}
.pedit-page .head-side-col .tech-item {
  flex: 1 1 auto;
  border-right: none;
  border-bottom: 1px solid var(--ct-border-light);
  padding: 11px 18px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pedit-page .head-side-col .tech-item:last-child {
  border-bottom: none;
}
.pedit-page .head-side-col .tech-item > span:first-child {
  flex-shrink: 0;
}
.pedit-page .facts-bar .tech-item {
  flex: 1 1 140px;
}
.pedit-page .meta-panel {
  overflow: hidden;
}
.pedit-page .meta-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 43px;
  padding: 12px 18px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ct-text-sec);
  cursor: pointer;
  transition: color 0.15s;
}
.pedit-page .meta-toggle:hover {
  color: var(--ct-ink);
}
.pedit-page .meta-chev {
  transition: transform 0.2s var(--ease-out-expo);
  flex-shrink: 0;
  display: block;
}
.pedit-page .meta-chev.open {
  transform: rotate(180deg);
}
.pedit-page .meta-body {
  border-top: 1px solid var(--ct-border-light);
}
.pedit-page .meta-body .tech-item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-right: none;
  border-bottom: 1px solid var(--ct-border-light);
}
.pedit-page .meta-body .tech-item:last-child {
  border-bottom: none;
}
.pedit-page .meta-body .tech-grid {
  flex-direction: column;
  gap: 0;
}
.pedit-page .cats-bar {
  padding-bottom: 16px;
  overflow: visible;
}
.pedit-page .cats-bar .panel-head {
  margin-bottom: 4px;
}
.pedit-page .cats {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 22px 0;
}
.pedit-page .cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ct-text);
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border);
  padding: 5px 12px;
  border-radius: 99px;
  transition: all 0.18s;
}
.pedit-page .cat:hover {
  color: var(--site);
  border-color: var(--site);
}
.pedit-page .cat-parent {
  background: var(--ct-card);
  border-style: dashed;
  padding-left: 7px;
}
.pedit-page .rootbadge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border-light);
  color: var(--ct-text-sec);
  flex-shrink: 0;
}
.pedit-page .tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--ct-border);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.pedit-page .tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ct-text-sec);
  cursor: pointer;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pedit-page .tab:hover {
  color: var(--ct-ink);
}
.pedit-page .tab.on {
  color: var(--ct-ink);
  border-bottom-color: var(--site);
}
.pedit-page .tab.on .tab-count {
  background: rgba(var(--site-rgb), 0.1);
  border-color: rgba(var(--site-rgb), 0.25);
  color: var(--site);
}
.pedit-page .tab-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--ct-input-bg);
  border: 1px solid var(--ct-border-light);
  color: var(--ct-text-sec);
}
.pedit-page .tab-count:empty {
  display: none;
}
.pedit-page .xlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--ct-text-sec);
  white-space: nowrap;
  transition: color 0.15s;
}
.pedit-page .xlink:hover {
  color: var(--site);
}
.pedit-page .xlink:hover .xlink-a {
  opacity: 1;
  transform: translateX(1px);
}
.pedit-page .xlink-a {
  display: block;
  font-size: 12px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
}
.pedit-page .spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--ct-border-light);
  font-size: 13px;
}
.pedit-page .spec-item:last-child {
  border-bottom: none;
}
.pedit-page .spec-name {
  width: 200px;
  color: var(--ct-text-sec);
  flex-shrink: 0;
}
.pedit-page .spec-val {
  color: var(--ct-ink);
}
.pedit-page .axis-row {
  border: 1px solid var(--ct-border);
  border-radius: 11px;
  padding: 11px 14px;
  background: var(--ct-input-bg);
}
.pedit-page .axis-row + .axis-row {
  margin-top: 10px;
}
.pedit-page .axis-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pedit-page .axis-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ct-ink);
}
.pedit-page .axis-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.pedit-page .aval {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--ct-border);
  background: var(--ct-card);
  color: var(--ct-text);
}
.pedit-page .aval.on {
  background: rgba(var(--site-rgb), 0.1);
  border-color: rgba(var(--site-rgb), 0.35);
  color: var(--site);
}
.pedit-page .tbl-wrap {
  overflow-x: auto;
}
.pedit-page .tbl {
  width: 100%;
  border-collapse: collapse;
}
.pedit-page .tbl th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ct-text-sec);
  padding: 10px 8px;
  border-bottom: 1px solid var(--ct-border);
  background: var(--ct-input-bg);
}
.pedit-page .tbl td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--ct-border-light);
  color: var(--ct-text);
  font-size: 13px;
  vertical-align: middle;
}
.pedit-page .tbl th:first-child, .pedit-page .tbl td:first-child {
  padding-left: 22px;
}
.pedit-page .tbl th:last-child, .pedit-page .tbl td:last-child {
  padding-right: 22px;
}
.pedit-page .tbl tr:last-child td {
  border-bottom: none;
}
.pedit-page .tbl tbody tr {
  transition: background 0.15s;
}
.pedit-page .tbl tbody tr:hover {
  background: var(--ct-input-bg);
}
.pedit-page .tbl .mono {
  font-family: var(--font-mono);
  font-size: 12px;
}
.pedit-page .tbl .num {
  font-variant-numeric: tabular-nums;
}
.pedit-page .tbl b {
  color: var(--ct-ink);
}
.pedit-page .sku-cell {
  white-space: nowrap;
}
.pedit-page .def-star {
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
  width: 16px;
  display: inline-block;
  text-align: center;
}
.pedit-page .img-cell {
  width: 44px;
}
.pedit-page .vimg {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--ct-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ct-text-sec);
  background-size: cover;
  background-position: center;
}
.pedit-page .props-cell {
  max-width: 260px;
}
.pedit-page .props-cell .pchip {
  margin: 1px 2px 1px 0;
}
.pedit-page .pchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  line-height: 1.5;
  font-weight: 600;
  background: rgba(var(--site-rgb), 0.08);
  color: var(--site);
  border: 1px solid rgba(var(--site-rgb), 0.2);
}
.pedit-page .fcell {
  min-width: 190px;
}
.pedit-page .file-link {
  font-size: 12px;
  color: var(--ct-ink);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.pedit-page .file-link:hover {
  color: var(--site);
}
.pedit-page .fkey {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ct-text-sec);
}
.pedit-page .desc-clip {
  max-height: 240px;
  overflow: hidden;
  position: relative;
}
.pedit-page .desc-clip:not(.open)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(transparent, var(--ct-card));
  pointer-events: none;
}
.pedit-page .desc-clip.open {
  max-height: none;
}
.pedit-page .content-view {
  max-width: 65ch;
  color: var(--ct-text);
  font-size: 14.5px;
  line-height: 1.7;
}
.pedit-page .content-view h4 {
  color: var(--ct-ink);
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 6px;
}
.pedit-page .content-view h4:first-child {
  margin-top: 0;
}
.pedit-page .content-view ul {
  padding-left: 20px;
  margin: 8px 0;
}
.pedit-page .content-view li {
  margin: 4px 0;
}
.pedit-page .content-view img {
  max-width: 100%;
}
.pedit-page .seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.pedit-page .kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
}
.pedit-page .kv + .kv {
  border-top: 1px solid var(--ct-border-light);
}
.pedit-page .kv span:first-child {
  color: var(--ct-text-sec);
  flex-shrink: 0;
}
.pedit-page .kv span:last-child {
  text-align: right;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pedit-page .snippet {
  border: 1px solid var(--ct-border-light);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--ct-input-bg);
  align-self: start;
}
.pedit-page .snippet-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ct-text-sec);
  margin-bottom: 12px;
}
.pedit-page .snippet-title {
  color: #8ab4f8;
  font-size: 17px;
  line-height: 1.3;
  margin: 6px 0 3px;
  font-weight: 400;
}
.pedit-page .snippet-url {
  font-size: 12px;
  color: var(--ct-text);
}
.pedit-page .snippet-desc {
  font-size: 12.5px;
  color: var(--ct-text);
  line-height: 1.5;
  max-width: 58ch;
}
.pedit-page .review-item {
  padding: 15px 22px;
  border-bottom: 1px solid var(--ct-border-light);
}
.pedit-page .review-item:last-child {
  border-bottom: none;
}
.pedit-page .rev-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pedit-page .rev-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 13px;
}
.pedit-page .rev-author {
  color: var(--ct-ink);
  font-weight: 600;
  font-size: 13px;
}
.pedit-page .rev-date {
  font-family: var(--font-mono);
  font-size: 11px;
}
.pedit-page .rev-flag {
  font-size: 12px;
}
.pedit-page .rev-text {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ct-text);
  line-height: 1.55;
  max-width: 70ch;
}
.pedit-page .rev-imgs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pedit-page .rimg {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ct-border);
  background: var(--ct-input-bg);
}
.pedit-page .rimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pedit-page .pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pedit-page .field label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ct-text-sec);
  margin-bottom: 5px;
}
.pedit-page .pe-sec {
  position: relative;
}
.pedit-page .sec-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--ct-border);
  background: var(--ct-card);
  color: var(--ct-text-sec);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.pedit-page .sec-edit:hover {
  opacity: 1;
  color: var(--ct-ink);
  border-color: var(--ct-text-sec);
}
.pedit-page .pe-sec:hover .sec-edit {
  opacity: 1;
}
.pedit-page .sec-floathead {
  position: absolute;
  top: 13px;
  right: 16px;
  z-index: 2;
}
.pedit-page .card.sec-active {
  border-color: var(--site);
  box-shadow: var(--ct-shadow-lift);
}
.pedit-page .page-head.sec-active {
  border: 1px solid var(--site);
  border-radius: 14px;
  padding: 16px 18px 0;
  box-shadow: var(--ct-shadow);
}
.pedit-page .sec-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-top: 1px solid var(--ct-border-light);
  background: var(--ct-input-bg);
  border-radius: 0 0 13px 13px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pedit-page .sec-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ct-text-sec);
  flex-shrink: 0;
}
.pedit-page .sec-bar.dirty .dot {
  background: var(--warning);
}
.pedit-page .page-head .sec-bar {
  margin: 14px -18px 0;
  border-radius: 0 0 13px 13px;
}
.pedit-page .sec-bar__msg {
  font-size: 12px;
  color: var(--ct-text);
  min-width: 0;
}
.pedit-page .sec-bar__msg b {
  color: var(--ct-ink);
  font-weight: 600;
}
.pedit-page .sec-bar__keys {
  font-size: 11px;
  color: var(--ct-text-sec);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.pedit-page .kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  border: 1px solid var(--ct-border);
  border-radius: 4px;
  padding: 0 4px;
  color: var(--ct-text-sec);
  background: var(--ct-card);
  line-height: 1.6;
}
.pedit-page .input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ct-ink);
  background: var(--ct-input-bg);
  border: 1px solid rgba(var(--site-rgb), 0.55);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pedit-page .input:focus {
  border-color: var(--site);
  box-shadow: 0 0 0 3px rgba(var(--site-rgb), 0.12);
}
.pedit-page .input::placeholder {
  color: var(--ct-text-sec);
}
.pedit-page textarea.input {
  resize: vertical;
  min-height: 60px;
  line-height: 1.55;
}
.pedit-page .input-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.pedit-page .pe-select {
  width: auto;
}
.pedit-page .title-input {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  width: min(620px, 100%);
  padding: 4px 12px;
}
.pedit-page .slug-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.pedit-page .slug-edit .input {
  width: min(340px, 100%);
}
.pedit-page .slug-prefix {
  font-size: 12px;
  color: var(--ct-text-sec);
}
.pedit-page .hint.over {
  color: var(--danger);
  font-weight: 600;
}
.pedit-page .cat-x {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(var(--site-rgb), 0.15);
  color: var(--site);
  font-size: 9px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.pedit-page .cat-x:hover {
  background: var(--danger);
  color: #fff;
}
.pedit-page .cat-add {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pedit-page .cat-add .combo-in {
  width: 190px;
  border: 1.5px dashed var(--ct-border);
  border-radius: 99px;
  background: var(--ct-input-bg);
  font-size: 12.5px;
  padding: 5px 14px;
}
.pedit-page .cat-add .combo-in:hover {
  border-color: var(--site);
}
.pedit-page .combo-pop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  box-shadow: var(--ct-shadow-lift);
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  min-width: 240px;
}
.pedit-page .combo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ct-ink);
  cursor: pointer;
  transition: background 0.12s;
}
.pedit-page .combo-item:hover {
  background: rgba(var(--site-rgb), 0.08);
}
.pedit-page .combo-empty {
  padding: 10px 12px;
}
.pedit-page .spec-name-in {
  width: 200px;
  flex-shrink: 0;
}
.pedit-page .spec-val-in {
  flex: 1;
}
.pedit-page .icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--ct-text-sec);
  background: none;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.pedit-page .icon-btn:hover {
  background: var(--ct-input-bg);
  color: var(--ct-ink);
  border-color: var(--ct-border);
}
.pedit-page .icon-btn.danger:hover {
  background: rgba(205, 36, 39, 0.08);
  color: var(--danger);
  border-color: rgba(205, 36, 39, 0.2);
}
.pedit-page .seo-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pedit-page .vrow-sort {
  white-space: nowrap;
  width: 52px;
}
.pedit-page .vrow-sort .grp-sort {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  vertical-align: middle;
  margin-right: 4px;
}
.pedit-page .sort-btn {
  width: 16px;
  height: 13px;
  display: grid;
  place-items: center;
  color: var(--ct-text-sec);
  background: none;
  border: none;
  border-radius: 4px;
  font-size: 8px;
  padding: 0;
  cursor: pointer;
}
.pedit-page .sort-btn:hover {
  background: var(--ct-border-light);
  color: var(--ct-ink);
}
.pedit-page .sort-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.pedit-page .def-star-btn {
  color: var(--ct-border);
  font-size: 14px;
  line-height: 1;
  width: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
}
.pedit-page .def-star-btn.on {
  color: #f59e0b;
  cursor: default;
}
.pedit-page .def-star-btn:not(.on):hover {
  color: #f59e0b;
}
.pedit-page .props-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-right: 6px;
}
.pedit-page .pchip-x {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: rgba(var(--site-rgb), 0.15);
  color: var(--site);
  font-size: 9px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  cursor: pointer;
}
.pedit-page .pchip-x:hover {
  background: var(--danger);
  color: #fff;
}
.pedit-page .props-add {
  width: 110px !important;
}
.pedit-page .combo-group {
  padding: 7px 12px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pedit-page .vars-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--ct-border-light);
}
.pedit-page .vimg[role=button] {
  cursor: pointer;
  border-style: dashed;
}
.pedit-page .vimg[role=button].has {
  border-style: solid;
}
.pedit-page .vimg[role=button]:hover {
  border-color: var(--site);
}
.pedit-page .thumb-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: rgba(20, 18, 16, 0.7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.pedit-page .thumb-x:hover {
  background: var(--danger);
}
.pedit-page .thumb-tools {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(transparent, rgba(20, 18, 16, 0.6));
  padding: 2px 0;
}
.pedit-page .thumb-mv {
  width: 18px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: none;
  border: none;
  border-radius: 5px;
  font-size: 8px;
  padding: 0;
  cursor: pointer;
}
.pedit-page .thumb-mv:hover {
  background: rgba(255, 255, 255, 0.2);
}
.pedit-page .thumb-mv:disabled {
  opacity: 0.3;
  cursor: default;
}
.pedit-page .thumb-add {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 10px;
  border: 1.5px dashed var(--ct-border);
  display: grid;
  place-items: center;
  color: var(--ct-text-sec);
  background: none;
  font-size: 18px;
  padding: 0;
  cursor: pointer;
  transition: all 0.18s;
}
.pedit-page .thumb-add:hover {
  border-color: var(--site);
  color: var(--site);
}
.pedit-page .img-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pedit-page .img-title-row .input {
  max-width: 260px;
  padding: 5px 10px;
  font-size: 12px;
}
.pedit-page .media-add {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pedit-page .media-add .input {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
  padding: 6px 10px;
  font-size: 12px;
}
.pedit-page .vid-x {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--ct-border);
  color: var(--ct-text);
  font-size: 10px;
  line-height: 1;
  display: grid;
  place-items: center;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.pedit-page .vid-x:hover {
  background: var(--danger);
  color: #fff;
}
.pedit-page {
  /* --- оси + матрица ------------------------------------ */
}
.pedit-page .aval {
  cursor: default;
}
.pedit-page .sec-active .aval {
  cursor: pointer;
}
.pedit-page .aval-off {
  opacity: 0.45;
  text-decoration: line-through;
  background: transparent;
}
.pedit-page .axis-head .hint {
  margin-left: 6px;
  white-space: nowrap;
}
.pedit-page .axis-add {
  margin-top: 10px;
  max-width: 420px;
}
.pedit-page .card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-top: 1px solid var(--ct-border-light);
}
.pedit-page .combo-item .hint {
  float: right;
  margin-left: 10px;
}
.pedit-page {
  /* матрица */
}
.pedit-page .mx-act-col {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.pedit-page .mx-btn {
  border: 1px solid var(--ct-border);
  background: var(--ct-input-bg);
  color: var(--ct-text);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11.5px;
  cursor: pointer;
  margin-left: 4px;
}
.pedit-page .mx-btn:hover {
  border-color: var(--site);
  color: var(--site);
}
.pedit-page .mx-drop:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.pedit-page .mx-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(var(--site-rgb), 0.12);
  color: var(--site);
}
.pedit-page .mx-badge.off {
  background: rgba(244, 63, 94, 0.1);
  color: #e11d48;
}
.pedit-page .mx-new td {
  background: rgba(var(--site-rgb), 0.04);
}
.pedit-page .mx-stale td {
  background: rgba(244, 63, 94, 0.04);
}
.pedit-page .mx-off {
  text-decoration: line-through;
  opacity: 0.6;
}
.pedit-page .mx-miss {
  opacity: 0.6;
}
.pedit-page {
  /* --- вариации, раунд 2 ------------------------------------------ */
  /* SKU синкованной вариации - read-only */
}
.pedit-page .sku-ro {
  font-size: 12px;
}
.pedit-page .sku-cell .hint {
  margin-top: 2px;
  font-size: 10.5px;
  white-space: nowrap;
}
.pedit-page {
  /* попап комбо поверх скролл-обёртки таблицы */
}
.pedit-page .combo-pop--fixed {
  position: fixed;
  z-index: 60;
}
.pedit-page {
  /* digital-файл: имя + key + действия (канон макета) */
}
.pedit-page .file-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pedit-page .file-cap {
  min-width: 0;
}
.pedit-page .file-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.pedit-page .file-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.pedit-page .file-tools .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pedit-page .file-tools a.icon-btn {
  color: inherit;
  text-decoration: none;
}
.pedit-page .attach-btn {
  font-size: 12px;
  padding: 5px 10px;
  white-space: nowrap;
}
.pedit-page {
  /* --- контент-блоки ---------------------------------------------- */
}
.pedit-page .cblocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pedit-page .cblock {
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--ct-input-bg);
}
.pedit-page .cblock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pedit-page .cblock-ta {
  width: 100%;
  resize: vertical;
  font-size: 12px;
  line-height: 1.55;
}
.pedit-page .cblock-img {
  padding: 4px 0;
}
.pedit-page .cblock-thumb {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  cursor: pointer;
}
.pedit-page {
  /* --- редактор отзывов --------------------------------- */
}
.pedit-page .rev-edit-list {
  padding-top: 16px;
}
.pedit-page .rev-row {
  margin: 0 22px 14px;
  padding: 12px 14px;
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  background: var(--ct-input-bg);
}
.pedit-page .rev-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pedit-page .rev-form-ta {
  width: 100%;
  resize: vertical;
  font-size: 12.5px;
  line-height: 1.55;
}
.pedit-page .ai-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px 16px;
  padding: 10px 12px;
  border: 1px dashed var(--ct-border);
  border-radius: 10px;
}
.pedit-page .rev-photos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pedit-page .rev-ph {
  position: relative;
  display: inline-flex;
}
.pedit-page .rev-ph .meta-x {
  position: absolute;
  top: -6px;
  right: -6px;
}
.pedit-page .rev-tools {
  display: inline-flex;
  gap: 4px;
  flex: none;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.pedit-page .review-item:hover .rev-tools {
  opacity: 1;
}
.pedit-page .rev-hidden .rev-text,
.pedit-page .rev-hidden .rev-head > .rev-stars,
.pedit-page .rev-hidden .rev-head > .rev-author,
.pedit-page .rev-hidden .rev-imgs {
  opacity: 0.45;
}
.pedit-page .rev-more {
  padding: 4px 22px 18px;
}
@media (max-width: 1100px) {
  .pedit-page .head-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .pedit-page .seo-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .pedit-page .media-flex {
    flex-direction: column;
  }
  .pedit-page .media-main {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .pedit-page .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body:not(.dark) .pedit-page .status-active {
  color: #16a34a;
}
body:not(.dark) .pedit-page .status-blue {
  color: #2563eb;
}
body:not(.dark) .pedit-page .status-warn {
  color: #b45309;
}
body:not(.dark) .pedit-page .snippet-title {
  color: #1a0dab;
}

.sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--sb-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 20px 14px 16px;
  transition: background 0.3s var(--ease);
  z-index: 40;
}

.sb-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -14px;
  padding: 0 14px;
}

.sb-nav::-webkit-scrollbar {
  width: 10px;
}

.sb-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sb-nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.sb-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-sec);
  border: 3px solid transparent;
  background-clip: padding-box;
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 18px;
}

.sb-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1bc839, #0e9f4e);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.sb-logo b {
  color: var(--sb-ink);
  font-size: 15px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.sb-logo span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--site-ink);
  background: rgba(var(--site-rgb), 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.sb-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sec);
  padding: 10px 10px 6px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--sb-text);
  font-weight: 500;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  position: relative;
}

.sb-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.sb-item:hover {
  background: var(--sb-hover);
  color: var(--sb-ink);
}

.sb-item.active {
  background: rgba(var(--site-rgb), 0.09);
  color: var(--site-ink);
  font-weight: 600;
}

body.dark .sb-item.active {
  color: var(--site);
}

.sb-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--site);
}

.sb-item small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.3;
}

.sb-item .nav-t {
  min-width: 0;
  flex: 1;
}

.sb-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  padding: 1px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}

.sb-item.active .sb-count {
  border-color: rgba(var(--site-rgb), 0.3);
  color: #166534;
  background: rgba(var(--site-rgb), 0.08);
}

body.dark .sb-item.active .sb-count {
  color: var(--site);
}

.sb-parent {
  cursor: pointer;
}

.sb-parent .sb-arrow {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  margin-left: auto;
  color: var(--text-sec);
  transition: transform 0.3s var(--ease);
}

.sb-parent.expanded .sb-arrow {
  transform: rotate(180deg);
}

.sb-sub {
  padding: 2px 0 6px;
}

.sb-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 38px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sb-text);
  transition: background 0.18s, color 0.18s;
}

.sb-subitem:hover {
  background: var(--sb-hover);
  color: var(--sb-ink);
}

.sb-subitem.active {
  color: var(--site-ink);
  font-weight: 600;
}

body.dark .sb-subitem.active {
  color: var(--site);
}

.sb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-sec);
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.sb-subitem.active .sb-dot {
  background: var(--site);
  box-shadow: 0 0 6px rgba(var(--site-rgb), 0.4);
}

.sb-theme {
  margin-top: auto;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
}

.sb-theme .nav-t {
  flex: 0 0 auto;
}

.sb-theme:hover {
  background: var(--sb-hover);
  color: var(--sb-ink);
  border-color: var(--text-sec);
}

.sb-foot {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.sb-user > div:nth-of-type(2) {
  min-width: 0;
}

.sb-user b, .sb-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1bc839, #0e9f4e);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.sb-user b {
  color: var(--sb-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.sb-user small {
  font-size: 11px;
  color: var(--text-sec);
}

.main-inner {
  padding: 26px 40px 96px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .main-inner {
    padding: 20px 20px 96px;
  }
}
.main-inner--full {
  padding: 0;
}

.main-inner--full .container {
  max-width: none;
}

@media (max-width: 1100px) {
  .main-inner--full {
    padding: 0;
  }
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  min-height: 56px;
  transition: background 0.3s var(--ease);
}

.topbar-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  cursor: default;
}

.topbar-head .title-slug {
  font-size: 11.5px;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-slug {
  font-size: 12px;
  color: var(--text-sec);
  word-break: break-all;
}

.title-slug:empty {
  display: none;
}

.sb-logo-img {
  height: 26px;
  max-width: 150px;
  object-fit: contain;
}

body.dark .sb-logo-img {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.9;
}

.sb-user .icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-sec);
  border: 1px solid transparent;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sb-user .icon-btn:hover {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--border);
}
.sb-user .icon-btn svg {
  width: 16px;
  height: 16px;
}

.main--framed {
  flex-direction: column;
  overflow-y: auto;
}
.main--framed > .topbar {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    z-index: 100;
  }
  .sidebar.open {
    transform: none;
  }
}
.wrap-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ct-page);
  overflow: hidden;
}
.wrap-page .page-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ct-bg);
  border-bottom: 1px solid var(--ct-border);
  flex-shrink: 0;
  min-height: 52px;
}
.wrap-page .page-header-bar .t-page-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ct-ink);
}
.wrap-page .page-header-bar .page-header-bar__actions {
  display: flex;
  gap: 12px;
}
.wrap-page .page-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.rows {
  overflow-y: auto;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.row:last-child {
  border-bottom: none;
}

.row.clickable {
  cursor: pointer;
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}

.row-sub {
  font-size: 11.5px;
  color: var(--text-sec);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.row-sub .mono {
  font-size: 10.5px;
}

.row-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.row:hover .row-acts, .row:focus-within .row-acts, .row.cursor .row-acts {
  opacity: 1;
}

.row-acts.always {
  opacity: 1;
}

.row.hidden-row .row-acts {
  opacity: 1;
}

.row.cursor {
  outline: 2px solid rgba(var(--site-rgb), 0.45);
  outline-offset: -2px;
  border-radius: 8px;
}

.row.hidden-row .row-name, .row.hidden-row .row-sub {
  opacity: 0.5;
}

.rows--cards {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
}

.rows--cards .row {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  border-bottom: 0;
}

.rows--cards .row:hover {
  background: var(--input-bg);
}

.rows--cards .row.sel {
  background: rgba(var(--site-rgb), 0.07);
  border-color: rgba(var(--site-rgb), 0.25);
}

.rows--cards .row-sub {
  font-family: var(--mono);
  font-size: 10.5px;
}

.rows--cards .row.cursor {
  outline-offset: -1px;
}

.row.draft {
  background: rgba(var(--site-rgb), 0.05);
  border: 1px dashed rgba(var(--site-rgb), 0.4);
  border-radius: 10px;
  margin: 2px 0;
}

.rows:not(.rows--cards) .row.draft {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px dashed rgba(var(--site-rgb), 0.4);
}

.row.draft .input {
  padding: 6px 10px;
  font-size: 13px;
}

.plan-bar {
  background: rgba(255, 95, 21, 0.05);
  border: 1px dashed rgba(255, 95, 21, 0.45);
  border-radius: 10px;
  margin: 2px 0;
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.plan-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-label {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-sec);
  line-height: 1.45;
}

.plan-label b {
  color: var(--ink);
  font-weight: 600;
}

.plan-bar .input {
  width: 100%;
  min-width: 0;
}

.plan-bar .icon-btn {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: -2px -3px 0 0;
}

.plan-bar .icon-btn svg {
  width: 12px;
  height: 12px;
}

.plan-acts {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.row.is-src {
  background: rgba(255, 95, 21, 0.06);
}

.plan-text {
  font-size: 11.5px;
  color: var(--text);
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.plan-text b {
  color: var(--warning);
  font-weight: 600;
}

.row.meta-row {
  background: var(--input-bg);
}

.empty {
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 160px;
  justify-content: center;
}

.empty-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  color: var(--text-sec);
  margin-bottom: 5px;
}

.empty-ico svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.empty b {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.empty p {
  font-size: 12.5px;
  color: var(--text-sec);
  max-width: 52ch;
  line-height: 1.55;
}

.empty p:not(:last-child) {
  margin-bottom: 10px;
}

.empty-note {
  padding: 13px 22px;
  color: var(--text-sec);
  font-size: 12.5px;
  line-height: 1.55;
}

.empty-note b {
  color: var(--text);
  font-weight: 600;
}

.pos-chip {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-sec);
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.thumb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  padding: 0;
}

.img-thumb {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.rows--master {
  max-height: max(220px, 100vh - 300px);
}

.rows--inner {
  max-height: max(200px, 100vh - 380px);
}

.tbl-wrap {
  overflow-x: auto;
}

.tbl-wrap--scroll {
  max-height: max(220px, 100vh - 300px);
  overflow-y: auto;
}

table.tbl {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.tbl th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sec);
  padding: 0 8px;
  height: 42px;
  white-space: nowrap;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  background: var(--input-bg);
}

.tbl th.th-pill {
  padding-left: 18px;
}

.tbl td {
  vertical-align: middle;
}

.tbl td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
}

.tbl th:first-child, .tbl td:first-child {
  padding-left: 22px;
}

.tbl th:last-child, .tbl td:last-child {
  padding-right: 22px;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr {
  transition: background 0.15s;
}

.tbl tbody tr:hover {
  background: var(--input-bg);
}

.tbl .mono {
  font-family: var(--mono);
  font-size: 12px;
}

.tbl .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tbl tr.row-cursor {
  background: rgba(var(--site-rgb), 0.06);
  box-shadow: inset 3px 0 0 var(--site);
}

.tbl tr.off-row td:not(.td-mall) {
  opacity: 0.5;
}

.tbl .icon-btn {
  opacity: 0;
}

.tbl tr:hover .icon-btn, .tbl tr.row-cursor .icon-btn, .tbl tr.off-row .icon-btn {
  opacity: 1;
}

.cell-sub {
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 2px;
}

.cell-old {
  color: var(--text-sec);
  text-decoration: line-through;
}

.cell-title {
  min-width: 280px;
  max-width: 380px;
}

.t-clamp {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-img {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  color: var(--text-sec);
}

.prod-img svg {
  width: 20px;
  height: 20px;
}

.th-mall {
  white-space: nowrap;
}

td.cell-name {
  white-space: nowrap;
}

td.cell-name b {
  font-weight: 600;
  color: var(--ink);
}

.tbl tr.tr-root > td {
  background: var(--group-tint);
}

.tbl tbody tr.tr-root:hover > td {
  background: var(--group-tint-h);
}

.tbl tr.tr-root td.cell-name b {
  font-weight: 700;
}

.tbl tr.row-cursor > td {
  background: transparent;
}

td.cell-name--sub,
.tbl td:first-child.cell-name--sub {
  position: relative;
  padding-left: var(--tree-pad, 48px);
}

td.cell-name--sub::before {
  content: "";
  position: absolute;
  left: var(--tree-line, 26px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

td.cell-name--sub.is-last::before {
  bottom: 50%;
}

td.cell-name--sub::after {
  content: "";
  position: absolute;
  left: var(--tree-line, 26px);
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--border);
}

.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 22px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-sec);
}

.pager-per {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pager-per .input {
  width: auto;
  min-width: 74px;
  padding: 5px 24px 5px 9px;
  font-size: 12px;
}

.pager-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pager-mid .mono {
  color: var(--ink);
}

.pager-goto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pager-goto .input {
  width: 54px;
  padding: 5px 8px;
  font-size: 12px;
  text-align: center;
}

.pager-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.pager-nav .icon-btn {
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.pager-nav .icon-btn:hover {
  color: var(--ink);
}

.pager-nav .icon-btn[disabled] {
  opacity: 0.28;
  cursor: default;
  color: var(--text-sec);
}

.pager-nav .icon-btn[disabled]:hover {
  background: none;
  border-color: transparent;
  color: var(--text-sec);
}

.pane-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pane-search .input:first-child {
  flex: 1;
}

select.input.prod-filter {
  width: auto;
  min-width: 132px;
  flex-shrink: 0;
  padding: 6px 26px 6px 10px;
  font-size: 12px;
}

.tbl .thumb--lg {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  font-size: 17px;
}

.cell-price {
  white-space: nowrap;
}

.cell-price .cell-old {
  display: block;
  font-size: 10.5px;
  margin-top: 1px;
}

.cell-rate {
  white-space: nowrap;
}

.row--marker {
  cursor: default;
  background: transparent;
}

.row--marker .row-name .t-ell {
  font-weight: 500;
  color: var(--text-sec);
}

.rows--cards .row--marker {
  background: transparent;
  border-style: dashed;
}

.look-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  padding: 11px 22px 13px;
}

.look-row .look-row {
  padding: 0;
}

.f-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

.f-grid > * {
  min-width: 0;
}

.f-grid .full {
  grid-column: 1/-1;
}

@media (max-width: 760px) {
  .f-grid {
    grid-template-columns: 1fr;
  }
}
.f-grid .input, .f-grid .field-w, .f-grid .field-wrap {
  max-width: none;
  width: 100%;
}

.look-val > .ro {
  flex: 1 1 auto;
  min-width: 0;
}

.look-cell {
  min-width: 0;
}

.look-cell--grow {
  flex: 1;
  min-width: 320px;
}

.ro {
  font-size: 13px;
  color: var(--ink);
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 1px;
}

.ro--para {
  display: block;
  padding: 8px 1px;
  line-height: 1.6;
  min-height: 0;
  color: var(--text);
}

.ro:empty::before {
  content: "—";
  color: var(--text-sec);
}

.card.sec-active .pane-add:not(.pane-add--tx), .card.sec-active .pane-search,
.card.sec-active .row:not([data-cond]) .row-acts, .card.sec-active .row:not([data-cond]) .mv-btns {
  display: none;
}

.look-val {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
}

.look-val .input {
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

.look-val > .grad-row {
  align-content: flex-start;
  padding-top: 2px;
  row-gap: 8px;
  min-height: 34px;
  box-sizing: border-box;
}

.emoji-in-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  font-size: 19px;
  line-height: 1;
}

.grad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.grad-sw {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.1s ease;
}

.grad-sw:hover {
  transform: translateY(-1px);
}

.grad-sw.on {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--site);
}

.grad-sw.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E");
}

.ident-edit {
  padding: 14px 22px 18px;
}

.field-w {
  max-width: 420px;
}

.limit-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.limit-inline .input {
  width: 64px;
  padding: 4px 8px;
  font-size: 12px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.limit-inline .hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.field-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.field-wrap .input {
  width: 100%;
  padding-right: 38px;
}

.field-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.ident-title {
  font-size: 17px;
  font-weight: 700;
  width: 100%;
  max-width: 560px;
  padding: 9px 12px;
}

.ident-slug {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 9px;
}

.ident-pre {
  font-size: 11.5px;
  color: var(--text-sec);
  white-space: nowrap;
}

.ident-slug .input {
  font-size: 11.5px;
  padding: 6px 9px;
  max-width: 420px;
  flex: 1;
}

.grad-add {
  background: var(--input-bg);
  border: 1px dashed var(--border);
  color: var(--text-sec);
  display: grid;
  place-items: center;
}

.grad-add svg {
  width: 13px;
  height: 13px;
}

.grad-add:hover {
  border-color: var(--site);
  color: var(--site);
}

.mix-prev {
  height: 52px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.mix-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.mix-f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-sec);
}

input[type=color] {
  width: 44px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: var(--input-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.chip-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 13px 5px 8px;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14);
  max-width: 260px;
}

.chip-prev > span:last-child, .chip-prev {
  white-space: nowrap;
}

.chip-prev .ce {
  font-size: 13px;
  line-height: 1;
}

.emoji-in {
  width: 64px;
  text-align: center;
  font-size: 17px;
  padding: 6px 8px;
}

.look-cell--media {
  flex: 0 0 300px;
  max-width: 300px;
  min-width: 0;
}

.look-cell--kind {
  flex: 0 0 190px;
  min-width: 190px;
}

.card-prev {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: end start;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-prev img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-prev-t {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-sec);
  text-align: center;
  padding: 8px;
}

.drop-empty svg {
  width: 22px;
  height: 22px;
  opacity: 0.65;
  margin-bottom: 2px;
}

.drop-empty span {
  font-size: 11px;
}

.file-field {
  margin-top: 9px;
}

.file-field .field-label {
  margin-bottom: 5px;
}

.file-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 5px 4px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--input-bg);
}

.file-box .mono {
  font-size: 11.5px;
  color: var(--ink);
  min-width: 0;
}

.file-field .ro {
  min-height: 38px;
}

.file-field .ro .mono {
  font-size: 11.5px;
}

.ro-none {
  color: var(--text-sec);
}

.file-box__name {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.file-box__name .icon-btn {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.file-box__name .icon-btn svg {
  width: 11px;
  height: 11px;
}

.file-box--empty {
  border-style: dashed;
}

.file-box--drop {
  border-style: dashed;
  cursor: copy;
}

.file-box--drop:hover {
  border-color: var(--text-sec);
}

.file-box--drop.over {
  border-color: var(--site);
  background: rgba(var(--site-rgb), 0.06);
}

.file-box__none {
  font-size: 11.5px;
  color: var(--text-sec);
  flex: 1;
  min-width: 0;
}

.file-box--zone {
  justify-content: center;
  min-height: 52px;
  gap: 9px;
}

.file-box--zone {
  flex-wrap: wrap;
}

.file-box--zone .file-box__none {
  flex: 0 0 auto;
}

.file-box--zone .file-box__acts {
  margin-left: 0;
}

.file-box__cloud {
  display: flex;
  color: var(--text-sec);
  flex: 0 0 auto;
}

.file-box__cloud svg {
  width: 17px;
  height: 17px;
}

.file-box__acts {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  margin-top: 4px;
  width: 100%;
}

.lib-item {
  position: relative;
  width: 100%;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--input-bg);
  padding: 0;
  display: block;
}

.lib-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lib-item:hover {
  border-color: var(--site);
  box-shadow: 0 0 0 2px rgba(var(--site-rgb), 0.18);
}

.lib-mark {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}

.acc {
  border-bottom: 1px solid var(--border-light);
}

.acc .acc-head {
  border-bottom: 0;
}

.acc.open {
  background: rgba(var(--site-rgb), 0.035);
  border-left: 2px solid var(--site);
}

.acc.open .acc-head {
  background: transparent;
}

.acc.open .acc-head .row-name .t-ell {
  font-weight: 600;
}

.acc-caret {
  color: var(--text-sec);
  display: grid;
  place-items: center;
  width: 16px;
  flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}

.acc-caret svg {
  width: 15px;
  height: 15px;
}

.acc.open .acc-caret {
  transform: rotate(180deg);
  color: var(--site-ink);
}

.acc-head-sub {
  background: transparent;
  border-top: 1px dashed var(--border-light);
}

.grp-head {
  gap: 8px;
}

.panel-head > svg:first-child {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text);
}

.grp-head .sw-toggle {
  margin: -3px 0;
}

.off-note {
  padding: 9px 22px 0;
  font-size: 11.5px;
  color: var(--text-sec);
}

.card.sec-active .off-note {
  color: var(--text);
}

.gc-card {
  width: 252px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  flex-shrink: 0;
}

.gc-photo {
  position: relative;
  height: 190px;
  background: var(--input-bg);
  display: grid;
  place-items: center;
}

.gc-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-photo .drop-empty {
  position: relative;
  z-index: 1;
}

.gc-quote {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.gc-body {
  padding: 11px 13px 13px;
}

.gc-who {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--text-sec);
  font-weight: 700;
}

.gc-name {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.gc-loc {
  display: block;
  font-size: 10.5px;
  color: var(--text-sec);
  line-height: 1.2;
  margin-top: 1px;
}

.gc-q {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
}

.gc-t {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-foot {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 9px;
}

.gc-fico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.gc-fico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-fico svg {
  width: 13px;
  height: 13px;
}

.gc-fmain {
  min-width: 0;
  flex: 1;
}

.gc-ft {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-fsub {
  font-size: 10px;
  color: var(--text-sec);
  line-height: 1.25;
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-read {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--warning);
  white-space: nowrap;
  flex-shrink: 0;
}

.hp-stage {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--input-bg);
  min-height: 236px;
  display: flex;
  align-items: center;
  padding: 24px 26px;
}

.hp-stage.is-mob {
  max-width: 252px;
  min-height: 340px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.hp-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-stage.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 12, 16, 0.86) 0%, rgba(10, 12, 16, 0.6) 46%, rgba(10, 12, 16, 0.14) 100%);
}

.hp-stage.is-mob.has-bg::after {
  background: linear-gradient(0deg, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.5) 55%, rgba(10, 12, 16, 0.1) 100%);
}

.hp-body {
  position: relative;
  z-index: 1;
  max-width: 58%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
}

.hp-stage.is-mob .hp-body {
  max-width: 100%;
}

.hp-stage:not(.has-bg) .hp-body {
  color: var(--ink);
}

.hp-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1.1;
}

.hp-eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hp-head {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hp-text {
  font-size: 11.5px;
  line-height: 1.5;
  opacity: 0.8;
}

.hp-foot {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  min-width: 0;
  background: rgba(18, 20, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 9px 11px;
}

.hp-stage:not(.has-bg) .hp-foot {
  background: var(--card);
  border-color: var(--border);
}

.hp-fico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #FDF1DC;
  color: #B4741F;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.hp-fico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-fico svg {
  width: 15px;
  height: 15px;
}

.hp-fmain {
  min-width: 118px;
  flex: 1;
  display: block;
}

.hp-ft, .hp-fsub {
  display: block;
}

.hp-ft {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hp-fsub {
  font-size: 10.5px;
  opacity: 0.68;
  line-height: 1.3;
  margin-top: 1px;
  overflow-wrap: anywhere;
}

.hp-btn {
  background: var(--warning);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 13px;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: center;
}

.hp-stage.is-mob .hp-btn {
  width: 100%;
}

.hp-head-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hp-head-bar .hint {
  margin: 0;
}

.slide-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 300px;
  gap: 22px;
  padding: 16px 22px 22px;
  align-items: start;
}

@media (max-width: 1240px) {
  .slide-grid {
    grid-template-columns: 1fr;
  }
}
.slide-stage {
  border-radius: 12px;
  padding: 26px;
  min-height: 210px;
  display: grid;
  place-items: end start;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.slide-stage.is-mobile {
  max-width: 230px;
  min-height: 300px;
}

.slide-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-card {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 88%;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slide-eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.slide-card b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.slide-sub {
  font-size: 11.5px;
  opacity: 0.9;
  line-height: 1.35;
}

.slide-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ambi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.ambi-l {
  font-size: 11px;
  color: var(--text-sec);
  width: 38px;
  flex-shrink: 0;
}

.ambi-row .input {
  flex: 1;
  padding: 5px 9px;
  font-size: 11px;
}

.ambi-sw {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.mv-btns {
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.row:hover .mv-btns, .row:focus-within .mv-btns, .row.cursor .mv-btns {
  opacity: 1;
}

.mv-btns.always {
  opacity: 1;
}

.sort-btn {
  width: 16px;
  height: 13px;
  display: grid;
  place-items: center;
  color: var(--text-sec);
  border-radius: 4px;
  padding: 0;
}

.sort-btn svg {
  width: 9px;
  height: 9px;
  stroke-width: 3;
}

.sort-btn:hover {
  background: var(--border-light);
  color: var(--ink);
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
  display: block;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--site-btn);
  color: #fff;
  box-shadow: 0 1px 2px rgba(var(--site-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--site-btn-hover);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--text-sec);
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--sb-hover);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border-color: transparent;
}

.btn-danger-ghost:hover {
  background: rgba(205, 36, 39, 0.08);
}

body.dark .btn-danger-ghost {
  color: #f27173;
}

.btn[disabled], .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn[hidden] {
  display: none !important;
}

.btn.busy {
  opacity: 0.7;
  pointer-events: none;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}

.btn-sm svg {
  width: 11px;
  height: 11px;
}

.btn.on {
  border-color: var(--site);
  color: var(--site-ink);
  background: rgba(var(--site-rgb), 0.06);
}

body.dark .btn.on {
  color: var(--site);
}

.btn.armed {
  background: var(--warning);
  border-color: var(--warning);
  color: #fff;
  box-shadow: none;
}

.btn.armed.danger-armed {
  background: var(--danger);
  border-color: var(--danger);
}

.sw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
}

.sw-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sw-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.28);
  transition: transform 0.2s var(--ease);
}

.sw-toggle:hover .sw-track {
  border-color: var(--text-sec);
}

.sw-toggle.on {
  color: var(--site-ink);
}

body.dark .sw-toggle.on {
  color: var(--site);
}

.sw-toggle.on .sw-track {
  background: var(--site);
  border-color: var(--site);
}

.sw-toggle.on .sw-track::after {
  transform: translateX(14px);
  background: #fff;
}

.sw-toggle[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.sw-toggle[aria-disabled=true] {
  cursor: default;
  opacity: 0.6;
}

.sw-toggle[aria-disabled=true]:hover .sw-track {
  border-color: var(--site);
}

.sw-toggle:focus-visible {
  outline: 2px solid var(--site);
  outline-offset: 2px;
  border-radius: 6px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-sec);
  transition: all 0.15s;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--border);
}

.icon-btn.danger:hover {
  background: rgba(205, 36, 39, 0.08);
  color: var(--danger);
  border-color: rgba(205, 36, 39, 0.2);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.icon-btn:focus-visible, .btn:focus-visible, .sb-item:focus-visible {
  outline: 2px solid var(--site);
  outline-offset: 1px;
}

.input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  border-color: var(--site);
  box-shadow: 0 0 0 3px rgba(var(--site-rgb), 0.12);
}

.input::placeholder {
  color: var(--text-sec);
}

textarea.input {
  resize: vertical;
  min-height: 64px;
  line-height: 1.55;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%276%27 viewBox=%270 0 10 6%27 fill=%27none%27%3E%3Cpath d=%27M1 1l4 4 4-4%27 stroke=%27%23a8a29e%27 stroke-width=%271.6%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.field-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.4;
}

.field-label .hint {
  flex-basis: 100%;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.char-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.char-count.over {
  color: var(--warning);
}

.mono {
  font-family: var(--mono);
}

.hint {
  font-size: 11.5px;
  color: var(--text-sec);
  margin-top: 4px;
}

.hint.over {
  color: var(--danger);
}

.limit-inline .hint, .sec-head .hint, .row .hint, .sec-title .hint {
  margin-top: 0;
}

.v-spacer {
  flex: 1;
}

.t-ell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.tabs .btn {
  border-color: transparent;
  color: var(--text);
}

.tabs .btn.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.1);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: background 0.3s var(--ease);
  position: relative;
}

.dict-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dict-grid > .card {
  animation: rise 0.5s var(--ease) both;
}

.dict-grid > .card:nth-child(2) {
  animation-delay: 0.06s;
}

.col-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.dict-grid > .col-main > .card {
  animation: rise 0.5s var(--ease) both;
  animation-delay: 0.06s;
}

@media (max-width: 1000px) {
  .dict-grid {
    grid-template-columns: 1fr;
  }
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 22px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-light);
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.sec-title svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
  color: var(--text-sec);
}

.sec-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-sec);
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  padding: 1px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.sec-count:empty {
  display: none;
}

.sec-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 22px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  background: var(--group-tint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.sec-head + .panel-head, .panel-head:first-child {
  border-top: 0;
}

.panel-head .sec-count, .panel-head .status, .panel-head .hint, .panel-head .btn, .panel-head label, .panel-head .chip, .panel-head a {
  text-transform: none;
  letter-spacing: 0;
}

.btn, .input {
  text-transform: none;
  letter-spacing: normal;
}

.sec-pad {
  padding: 12px 22px;
}

.pane-search {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.pane-search .input {
  padding: 6px 12px;
  font-size: 12.5px;
}

.pane-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-top: 1px solid var(--border-light);
}

.pane-add .hint {
  text-align: center;
}

.trash-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.trash-line .hint {
  margin-top: 0;
}

.trash-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
  max-width: 200px;
  transition: color 0.15s;
}

.trash-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-link:hover {
  color: var(--site-ink);
}

body.dark .trash-link:hover {
  color: var(--site);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.chip svg {
  width: 12px;
  height: 12px;
}

.chip.mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-sec);
}

.chip.zero {
  opacity: 0.55;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-active {
  background: rgba(34, 197, 94, 0.13);
  color: #166534;
}

body.dark .status-active {
  color: #4ade80;
}

.status-muted {
  background: rgba(120, 113, 108, 0.13);
  color: var(--text);
}

.status-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

body.dark .status-blue {
  color: #60a5fa;
}

.status-warn {
  background: rgba(245, 158, 11, 0.13);
  color: #b45309;
}

body.dark .status-warn {
  color: #fbbf24;
}

.status-out {
  background: rgba(255, 95, 21, 0.13);
  color: #9a3412;
}

body.dark .status-out {
  color: #fb923c;
}

.status-err {
  background: rgba(205, 36, 39, 0.13);
  color: var(--danger);
}

.status-pass {
  background: rgba(147, 51, 234, 0.12);
  color: #7e22ce;
}

body.dark .status-pass {
  color: #c084fc;
}

body.dark .status-err {
  color: #f27173;
}

.status.status-pending {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
.status svg, .sec-count svg {
  width: 11px;
  height: 11px;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.head-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.lock {
  color: var(--text-sec);
  cursor: help;
  display: inline-flex;
}

.lock svg {
  width: 11px;
  height: 11px;
}

.idc {
  cursor: pointer;
  transition: color 0.15s;
  border-radius: 3px;
}

.idc:hover {
  color: var(--site-ink);
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
}

.kv + .kv {
  border-top: 1px solid var(--border-light);
}

.kv span:first-child {
  color: var(--text-sec);
  white-space: nowrap;
}

.kv .mono {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
}

.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  display: inline-block;
  margin-left: 6px;
  flex-shrink: 0;
}

.toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--site);
  border-radius: 0 10px 10px 0;
  padding: 11px 16px;
  box-shadow: var(--shadow-lift);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  animation: slidein 0.4s var(--ease);
  max-width: 360px;
}

.toast.warn {
  border-left-color: var(--warning);
}

.toast svg {
  width: 15px;
  height: 15px;
  color: var(--site-ink);
  flex-shrink: 0;
}

.toast.warn svg {
  color: var(--warning);
}

body.dark .toast svg {
  color: var(--site);
}

@keyframes slidein {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.toast.out {
  transition: all 0.3s;
  opacity: 0;
  transform: translateX(30px);
}

.toast-undo {
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.toast-undo:hover {
  border-color: var(--site);
  color: var(--site-ink);
}

.toast.has-undo {
  padding-right: 12px;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.toast--success::before, .toast--error::before, .toast--info::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: var(--site-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E") no-repeat center/contain;
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--error::before {
  background: var(--danger);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3Cline x1=%2718%27 y1=%276%27 x2=%276%27 y2=%2718%27/%3E%3Cline x1=%276%27 y1=%276%27 x2=%2718%27 y2=%2718%27/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3Cline x1=%2718%27 y1=%276%27 x2=%276%27 y2=%2718%27/%3E%3Cline x1=%276%27 y1=%276%27 x2=%2718%27 y2=%2718%27/%3E%3C/svg%3E") no-repeat center/contain;
}

.toast--info {
  border-left-color: var(--text-sec);
}

.toast--info::before {
  background: var(--text-sec);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3Cline x1=%2712%27 y1=%2716%27 x2=%2712%27 y2=%2712%27/%3E%3Cline x1=%2712%27 y1=%278%27 x2=%2712.01%27 y2=%278%27/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3Cline x1=%2712%27 y1=%2716%27 x2=%2712%27 y2=%2712%27/%3E%3Cline x1=%2712%27 y1=%278%27 x2=%2712.01%27 y2=%278%27/%3E%3C/svg%3E") no-repeat center/contain;
}

body.dark .toast--success::before {
  background: var(--site);
}

@keyframes toastIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes toastOut {
  to {
    transform: translateX(30px);
    opacity: 0;
  }
}
.sf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 12, 16, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
}

.sf-modal {
  width: 100%;
  max-width: 760px;
  animation: rise 0.3s var(--ease) both;
}

.sec-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-sec);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.sec-edit svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}

.sec-actions .sec-edit {
  flex-shrink: 0;
}

.card:hover .sec-edit, .card:focus-within .sec-edit, .sec-edit:focus-visible {
  opacity: 1;
}

.sec-edit:hover {
  border-color: var(--text-sec);
  color: var(--ink);
}

.card.sec-active .sec-edit {
  display: none;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.card-foot .btn {
  padding: 7px 14px;
}

.card-foot[hidden] {
  display: none;
}

.card.sec-active > .sec-head {
  background: rgba(var(--site-rgb), 0.04);
}

.sec-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--input-bg);
  border-radius: 0 0 13px 13px;
  flex-wrap: wrap;
}

.card.sec-active .sec-bar, .sec-bar.on {
  display: flex;
}

.sec-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-sec);
  flex-shrink: 0;
}

.sec-bar.dirty .dot {
  background: var(--warning);
}

.sec-bar__msg {
  font-size: 12px;
  color: var(--text);
}

.sec-bar__msg b {
  color: var(--ink);
  font-weight: 600;
}

.sec-bar .btn {
  padding: 5px 12px;
  font-size: 11.5px;
}

.acc.unsaved .acc-head .row-name::after, .card.unsaved .sec-head .sec-title::after {
  content: "not saved";
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 95, 21, 0.12);
  color: var(--warning);
  margin-left: 8px;
  flex-shrink: 0;
}

.card.sec-active {
  border-color: var(--site);
  box-shadow: var(--shadow-lift);
}

@keyframes flash-ok {
  0% {
    box-shadow: 0 0 0 3px rgba(var(--site-rgb), 0.5);
  }
  100% {
    box-shadow: var(--shadow);
  }
}
.flash-ok {
  animation: flash-ok 1.6s var(--ease);
}

.sec-head--ident {
  display: block;
  min-height: 0;
  padding: 0;
}

:root {
  --ro-fill:#f1efec;
  --ro-line:#e7e5e4;
}

body.dark {
  --ro-fill:#171725;
  --ro-line:#2a2a3e;
}

.ro {
  min-height: 36px;
  padding: 0 12px;
  background: var(--ro-fill);
  border: 1px solid var(--ro-line);
  border-radius: 9px;
}

.look-val .ro {
  min-height: 34px;
}

.ro--para {
  min-height: 36px;
  padding: 8px 12px;
  line-height: 1.6;
}

.ro--pre {
  white-space: pre-wrap;
  font-size: 12px;
  font-family: var(--mono);
}

.ro-none {
  color: var(--text-sec);
}

.input {
  background: var(--card);
}

.f-grid .emoji-in, .f-grid .emoji-in-view {
  flex: 0 0 64px;
  width: 64px;
  max-width: 64px;
}

.ph-body {
  padding: 28px 22px;
  text-align: center;
  color: var(--text);
}

.ph-body .hint {
  margin-top: 6px;
}

.nf-row {
  flex-wrap: wrap;
}

.nf-row .row-main {
  min-width: 220px;
}

.nf-rows {
  overflow: visible;
}

.nf-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.nf-sel {
  width: auto;
  min-width: 88px;
}

.nf-target {
  min-width: 170px;
  max-width: 230px;
}

.nf-pick {
  position: relative;
}

.nf-pick-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 30;
  padding: 4px;
}

.nf-pick-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
}

.nf-pick-item:hover {
  background: var(--sb-hover);
  color: var(--ink);
}

.nf-pick-item.on {
  color: var(--site-ink);
  background: rgba(var(--site-rgb), 0.08);
}

.nf-pick-clear {
  color: var(--text-sec);
  font-style: italic;
}

.nf-pick-empty {
  padding: 9px 10px;
  font-size: 12px;
  color: var(--text-sec);
}

.nf-min-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nf-min {
  width: 64px;
  text-align: right;
}

.nf-min-l {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sec);
}

@media (max-width: 1100px) {
  .nf-controls {
    margin-left: 46px;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
}
.log-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.log-filters .input:first-child {
  flex: 1;
  min-width: 180px;
}

.log-wl-input {
  width: auto;
  min-width: 150px;
  flex: 0 0 auto;
}

.log-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.tbl .pos-chip {
  margin: 0 3px 3px 0;
}

.log-events-row > td {
  padding: 0;
  background: var(--input-bg);
}

.log-events {
  max-height: 320px;
  overflow: auto;
  padding: 10px 22px;
}

.log-line {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.log-line:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.q-source {
  padding: 0 0 8px;
}

.q-source + .q-source {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
}

.q-source-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 22px 10px;
}

.q-source-name {
  font-size: 14px;
  color: var(--ink);
}

.q-ov {
  font-size: 12px;
  color: var(--text-sec);
}

.q-ov b {
  color: var(--ink);
  font-family: var(--mono);
  margin-left: 3px;
}

.q-warn {
  color: var(--warning);
  font-weight: 700;
}

.q-err {
  color: var(--danger);
}

.q-name {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.q-row-hot td {
  background: rgba(255, 95, 21, 0.03);
}

.sec-actions .sw-toggle {
  font-size: 11.5px;
}

.th-act {
  width: 1%;
}

.q-act {
  white-space: nowrap;
  text-align: right;
}

.q-act .btn + .btn {
  margin-left: 6px;
}

.q-purge {
  color: var(--text-sec);
}

.q-purge:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.q-purge-go {
  color: var(--danger);
  border-color: var(--danger);
  font-weight: 600;
}

.q-purge-go:hover {
  color: #fff;
  background: var(--danger);
}

.q-purge-x {
  color: var(--text-sec);
  padding: 0 9px;
}

.cl-row {
  cursor: pointer;
}

.cl-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.cl-ident {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-ident > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cl-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent, #22c55e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.cl-avatar--tk {
  background: var(--input-bg, rgba(0, 0, 0, 0.05));
  font-size: 15px;
  overflow: hidden;
}
.cl-avatar--tk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.cl-back {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-sec);
  text-decoration: none;
}
.cl-back:hover {
  color: var(--text);
}

.cl-head-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-head-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.cl-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}
.cl-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.cl-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent, #22c55e);
}

.cl-label {
  display: block;
  margin: 10px 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sec);
}

.cl-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cl-notes {
  resize: vertical;
  min-height: 80px;
}

.cl-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.1));
  border-radius: 10px;
  cursor: pointer;
}
.cl-status-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.cl-status-card > span:nth-child(2) i {
  font-size: 12px;
  font-style: normal;
  color: var(--text-sec);
}
.cl-status-card.on {
  border-color: var(--accent, #22c55e);
  background: rgba(34, 197, 94, 0.06);
  cursor: default;
}
.cl-status-card--danger.on {
  border-color: var(--danger, #cd2427);
  background: rgba(205, 36, 39, 0.06);
}

.cl-status-ico {
  font-size: 18px;
}

.cl-status-check {
  margin-left: auto;
  color: var(--accent, #22c55e);
  font-weight: 700;
}

.cl-balance-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 0;
  font-size: 15px;
}
.cl-balance-big b {
  font-size: 30px;
}
.cl-balance-big span {
  color: var(--text-sec);
}

.cl-plus {
  color: #166534;
}

.cl-minus {
  color: var(--danger, #cd2427);
}

.cl-chips {
  display: flex;
  gap: 6px;
  margin: 10px 0 2px;
}
.cl-chips .chip {
  cursor: pointer;
}
.cl-chips .chip:hover {
  border-color: var(--accent, #22c55e);
}

.cl-modal {
  max-width: 520px;
}

.cl-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.cl-assign-rows {
  max-height: 420px;
  overflow-y: auto;
  margin-top: 10px;
}

.cl-assign-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.06));
}
.cl-assign-row:last-child {
  border-bottom: none;
}

.cl-assign-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
}
.cl-assign-name b {
  font-size: 13px;
}
.cl-assign-name i {
  font-size: 11px;
  font-style: normal;
  color: var(--text-sec);
}

@media (max-width: 720px) {
  .cl-two {
    grid-template-columns: 1fr;
  }
}
.cl-page .card {
  margin-bottom: 14px;
}
.cl-page .sec-pad {
  padding: 14px 18px 18px;
}
.cl-page .kv {
  padding: 5px 0;
}
.cl-page .cl-label:first-child,
.cl-page .cl-two:first-child .cl-label {
  margin-top: 0;
}
.cl-page .cl-two + .cl-two,
.cl-page .cl-two + .cl-label,
.cl-page .input + .cl-label,
.cl-page .cl-two + .input {
  margin-top: 16px;
}

.cl-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ord-date {
  width: 150px;
  flex: 0 0 auto;
}

.ord-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.ord-ident {
  min-width: 0;
}

.ord-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ord-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ord-total {
  text-align: right;
  flex-shrink: 0;
}

.ord-total-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.ord-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.ord-grid .card {
  margin-bottom: 0;
}
@media (max-width: 1100px) {
  .ord-grid {
    grid-template-columns: 1fr;
  }
}

.ord .kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 12.5px;
}
.ord .kv + .kv {
  border-top: 1px solid var(--border-light);
}
.ord .kv > span:first-child {
  color: var(--text-sec);
  flex-shrink: 0;
}
.ord .kv > span:last-child,
.ord .kv > b:last-child,
.ord .kv > a:last-child {
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ord .kv .input {
  width: auto;
  min-width: 160px;
  padding: 4px 9px;
  font-size: 12px;
  height: 30px;
}
.ord .kv .chip {
  margin-left: 6px;
}

.ord .kv--stack {
  flex-direction: column;
  align-items: flex-start;
}
.ord .kv--stack > span:last-child {
  text-align: left;
  white-space: pre-wrap;
  overflow: visible;
}

.ord .idc {
  cursor: pointer;
}
.ord .idc:hover {
  color: var(--site-ink);
}

.ord .ro-none {
  color: var(--text-sec);
}

.ord-comment {
  color: var(--ink);
}

.ord-history {
  padding: 4px 22px 8px;
}

.ord-event {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 12.5px;
}
.ord-event + .ord-event {
  border-top: 1px solid var(--border-light);
}
.ord-event .status {
  justify-self: start;
}
@media (max-width: 720px) {
  .ord-event {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.ord-event-text {
  color: var(--ink);
  white-space: pre-wrap;
}

.ord-note {
  justify-content: flex-start;
}
.ord-note .input {
  flex: 1;
}

.ord-modal-hint {
  margin: 0 0 10px;
}

.ue-tabs {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}
.ue-tabs .tabs {
  display: flex;
}
.ue-tabs .tabs .btn {
  flex: 1;
}

.ue-roles {
  padding: 8px;
}
.ue-roles .thumb {
  font-size: 15px;
}

.ue-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  padding: 4px 0 8px;
}
.ue-caps .row {
  padding: 8px 22px;
}
.ue-caps .sw-toggle {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .ue-caps {
    grid-template-columns: 1fr;
  }
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.dash-stat {
  display: block;
  padding: 20px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-stat:hover {
  border-color: var(--text-sec);
}

.dash-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.dash-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0 2px;
}

.dash-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.dash-rows {
  padding: 6px 0;
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px;
  transition: background 0.15s;
}
.dash-row:hover {
  background: var(--sb-hover);
}

.dash-row-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.dash-row-date {
  font-size: 11px;
  color: var(--text-sec);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-cols {
    grid-template-columns: 1fr;
  }
}
.chk {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--site);
  cursor: pointer;
  vertical-align: middle;
}

.tbl .chk-col {
  width: 36px;
  padding-right: 0;
}
.tbl tbody tr.sel > td {
  background: rgba(var(--site-rgb), 0.05);
}

.tbl .cell-title a.t-clamp {
  transition: color 0.15s;
}
.tbl .cell-title a.t-clamp:hover {
  color: var(--site-ink);
}

.prod-thumb-empty {
  display: block;
}

.prod-chip-x {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-sec);
  transition: background 0.15s, color 0.15s;
}
.prod-chip-x:hover {
  background: var(--border-light);
  color: var(--danger);
}

.tbl td.cell-slug {
  white-space: nowrap;
}

.row .at-title {
  flex: 0 1 260px;
  min-width: 140px;
  padding: 6px 10px;
  font-size: 13px;
}

.sec-title .at-rename {
  width: 240px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 700;
}

.rows--inner > .plan-bar {
  margin: 8px 14px;
}

.at-hits {
  margin-top: 3px;
  font-size: 11px;
  color: var(--site-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark .at-hits {
  color: var(--site);
}

.at-swatch {
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s ease;
}
.at-swatch:hover {
  transform: translateY(-1px);
}
.at-swatch--empty {
  border-style: dashed;
  color: var(--text-sec);
}
.at-swatch--empty svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.at-swatch--empty:hover {
  border-color: var(--site);
  color: var(--site);
}

.at-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.at-pop {
  position: fixed;
  z-index: 61;
  width: 232px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16), 0 1px 3px rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.at-pop .input {
  width: 100%;
  padding: 6px 9px;
  font-size: 12px;
}
.at-pop .hint {
  margin-top: 5px;
}

.at-pop-tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.at-pop-tabs .btn {
  flex: 1;
}
.at-pop-tabs .btn.on {
  background: rgba(var(--site-rgb), 0.1);
  color: var(--site-ink);
  border-color: transparent;
}

body.dark .at-pop-tabs .btn.on {
  color: var(--site);
}

.at-sv {
  position: relative;
  height: 118px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  cursor: crosshair;
  touch-action: none;
}

.at-sv-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.at-hue {
  position: relative;
  height: 12px;
  margin-top: 8px;
  border-radius: 6px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
  touch-action: none;
}

.at-hue-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.at-hex-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.at-hex-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  padding: 0;
}
.at-hex-cell.on {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--site);
}

.at-pop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.at-pop-row .thumb {
  flex-shrink: 0;
}
.at-pop-row .input {
  flex: 1;
}

.at-img-prev {
  height: 92px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--input-bg) center/cover no-repeat;
  margin-bottom: 8px;
}

.at-pop-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.pe {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pe .pe-sec {
  overflow: visible;
}

.pe-ident {
  padding: 18px 22px 14px;
}

.pe-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: text;
  transition: color 0.15s;
}
.pe-title:hover {
  color: var(--site-ink);
}

.pe-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-sec);
}
.pe-subrow .idc {
  font-size: 12.5px;
}

.pe-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1100px) {
  .pe-head-grid {
    grid-template-columns: 1fr;
  }
}

.pe-side-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.pe-media-col {
  min-width: 0;
}

.pe-side-col .sec-bar {
  padding: 10px 16px;
}
.pe-side-col .pe-keys {
  display: none;
}
.pe-side-col .card.acc.open {
  background: var(--card);
  border-left: 1px solid var(--border);
}

.pe-kv .kv {
  padding: 8px 0;
}
.pe-kv .pe-kv--edit {
  cursor: pointer;
}
.pe-kv .pe-kv--edit:hover span:first-child {
  color: var(--ink);
}
.pe-kv .kv .input {
  width: auto;
  min-width: 128px;
  padding: 4px 9px;
  font-size: 12px;
  height: 30px;
}
.pe-kv .idc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pe-facts {
  display: grid;
  grid-template-columns: max-content repeat(5, minmax(0, 1fr));
  gap: 0 22px;
  padding: 8px 22px 10px;
}
.pe-facts .kv {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 0;
  border-top: none;
  border-right: 1px solid var(--border-light);
  padding-right: 16px;
}
.pe-facts .kv:last-child {
  border-right: none;
}
.pe-facts .kv span:first-child {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pe-facts .kv .mono {
  font-size: 14px;
  color: var(--ink);
}
@media (max-width: 1100px) {
  .pe-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pe-facts .kv:nth-child(3n) {
    border-right: none;
  }
}
@media (max-width: 640px) {
  .pe-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pe-facts .kv:nth-child(3n) {
    border-right: 1px solid var(--border-light);
  }
  .pe-facts .kv:nth-child(2n) {
    border-right: none;
  }
}

.pe-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.pe-price b {
  font-size: 16px;
  font-weight: 700;
}
.pe-price .cell-old {
  font-size: 12px;
}
.pe-price .status {
  align-self: center;
}

.pe-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 14px;
}
.pe-cats a.chip {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pe-cats a.chip:hover {
  border-color: var(--site);
  color: var(--site-ink);
}
.pe-cats .hint {
  padding: 4px 0;
}

.chip.pe-cat--root {
  border-style: dashed;
}

.pe-root {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--border-light);
  color: var(--text-sec);
  flex-shrink: 0;
}

.pe-chip-x {
  border: none;
  background: none;
  padding: 0 0 0 2px;
  font-size: 11px;
  line-height: 1;
  color: var(--text-sec);
  cursor: pointer;
}
.pe-chip-x:hover {
  color: var(--danger);
}

.pe-combo {
  position: relative;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
}
.pe-combo .input {
  width: 100%;
  height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}
.pe-combo .combo-item .pe-root {
  margin-left: 2px;
}
.pe-combo .combo-item .hint {
  margin-left: auto;
}

.pe-combo .combo-pop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 240px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
}

.pe-combo .combo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s;
}
.pe-combo .combo-item:hover {
  background: rgba(var(--site-rgb), 0.08);
}

.pe-combo .combo-empty {
  padding: 10px 12px;
}

.pe-tabs {
  align-self: flex-start;
  flex-wrap: wrap;
}
.pe-tabs .btn {
  gap: 6px;
}
.pe-tabs .btn.on .sec-count {
  border-color: var(--border);
}

.pe-keys {
  font-size: 11px;
  color: var(--text-sec);
  white-space: nowrap;
}

.pe-kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.pe-pkg {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .pe-pkg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pe-specs {
  padding: 4px 0;
}

.pe-spec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.pe-spec:last-child {
  border-bottom: none;
}
.pe-spec .pe-spec-name {
  flex: 0 0 220px;
  color: var(--text-sec);
  min-width: 0;
}
.pe-spec .pe-spec-val {
  color: var(--ink);
  min-width: 0;
}

.pe-specs--edit .pe-spec {
  padding: 6px 22px;
}
.pe-specs--edit .pe-spec-name,
.pe-specs--edit .pe-spec-val {
  height: 32px;
  padding: 4px 10px;
  font-size: 12.5px;
}
.pe-specs--edit .pe-spec-name {
  flex: 0 0 220px;
}
.pe-specs--edit .pe-spec-val {
  flex: 1;
}

.pe-seo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0 22px;
  align-items: start;
}
@media (max-width: 960px) {
  .pe-seo {
    grid-template-columns: 1fr;
  }
}

.pe-seo-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pe-seo-fields .full {
  width: 100%;
}
.pe-seo-fields .input {
  width: 100%;
  max-width: none;
}
.pe-seo-fields .field-label .hint {
  margin-left: auto;
  flex-basis: auto;
}

.pe-snippet {
  margin: 14px 22px 14px 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--input-bg);
}
@media (max-width: 960px) {
  .pe-snippet {
    margin: 0 22px 16px;
  }
}

.pe-snippet-title {
  color: #1a0dab;
  font-size: 17px;
  line-height: 1.3;
  margin: 2px 0 3px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dark .pe-snippet-title {
  color: #8ab4f8;
}

.pe-snippet-url {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pe-snippet-url span {
  color: var(--text-sec);
}

.pe-snippet-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}

.pe .ro-none {
  color: var(--text-sec);
}

.pe-media {
  display: flex;
  gap: 22px;
  padding: 18px 22px 20px;
}
@media (max-width: 760px) {
  .pe-media {
    flex-direction: column;
  }
}

.pe-media-main {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
}
.pe-media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) {
  .pe-media-main {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
}

.pe-media-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: var(--text-sec);
  font-size: 12px;
}
.pe-media-none svg {
  width: 26px;
  height: 26px;
  opacity: 0.6;
}

.pe-cover {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(20, 18, 16, 0.72);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pe-media-rail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pe-media-rail > .hint {
  margin: 0;
}
.pe-media-rail .field-label {
  margin-bottom: 0;
}

.pe-media-sep {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.pe-media-alt {
  font-size: 12.5px;
  color: var(--ink);
}
.pe-media-alt .hint {
  margin-right: 4px;
}

.pe-media-alt--edit {
  margin-top: 4px;
}
.pe-media-alt--edit .field-label {
  margin-bottom: 6px;
}
.pe-media-alt--edit .input {
  width: 100%;
  max-width: 420px;
}
.pe-media-alt--edit .ro {
  max-width: 420px;
}

.pe-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pe-thumb {
  display: block;
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--input-bg);
  transition: border-color 0.15s;
}
.pe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pe-thumb:hover {
  border-color: var(--text-sec);
}
.pe-thumb.sel {
  border-color: var(--site);
  box-shadow: 0 0 0 2px rgba(var(--site-rgb), 0.25);
}
.pe-thumbs > .pe-thumb:first-child::after {
  content: "cover";
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(20, 18, 16, 0.72);
  color: #fff;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 0;
  pointer-events: none;
}

.pe-thumb--sm {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-radius: 8px;
  cursor: zoom-in;
}
.pe-thumbs > .pe-thumb--sm:first-child::after {
  content: none;
}

.pe-thumb-x {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(20, 18, 16, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.pe-thumb-x svg {
  width: 10px;
  height: 10px;
}
.pe-thumb-x:hover {
  background: var(--danger);
}

.pe-thumb-tools {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}

.pe-thumb-mv {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(20, 18, 16, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  padding: 0;
  cursor: pointer;
}
.pe-thumb-mv svg {
  width: 10px;
  height: 10px;
}
.pe-thumb-mv:hover {
  background: var(--site);
}
.pe-thumb-mv:disabled {
  opacity: 0.35;
  cursor: default;
}

.pe-thumb:hover .pe-thumb-x,
.pe-thumb:hover .pe-thumb-tools,
.pe-tile:hover .pe-thumb-x {
  opacity: 1;
}

.pe-thumb:hover::after {
  opacity: 0;
}

.pe-thumb-add {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 10px;
  border: 1.5px dashed var(--border);
  display: grid;
  place-items: center;
  color: var(--text-sec);
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pe-thumb-add svg {
  width: 16px;
  height: 16px;
}
.pe-thumb-add:hover {
  border-color: var(--site);
  color: var(--site);
}

.pe-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px dashed var(--border);
  color: var(--text-sec);
  background: var(--input-bg) center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, color 0.15s;
}
.pe-tile svg {
  width: 14px;
  height: 14px;
}
.pe-tile.has {
  border-style: solid;
}
.pe-tile:hover {
  border-color: var(--site);
  color: var(--site);
}

.pe-tile--lg {
  width: 140px;
  height: 140px;
  border-radius: 10px;
}
.pe-tile--lg svg {
  width: 18px;
  height: 18px;
}

.pe-vids {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pe-vid {
  padding: 4px 10px 4px 4px;
  max-width: 260px;
  text-decoration: none;
}
.pe-vid:hover {
  border-color: var(--text-sec);
}
.pe-vid .t-ell {
  min-width: 0;
}

.pe-vid-poster {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--card) center/cover no-repeat;
  border: 1px solid var(--border-light);
  color: var(--text-sec);
}
.pe-vid-poster svg {
  width: 10px;
  height: 10px;
}

.pe-vid-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pe-vid-add .input {
  flex: 1 1 220px;
  min-width: 0;
  height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}

.pe-desc-wrap {
  padding: 18px 22px 20px;
}

.pe-desc {
  max-height: 240px;
  overflow: hidden;
  position: relative;
}
.pe-desc:not(.open)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(transparent, var(--card));
  pointer-events: none;
}
.pe-desc.open {
  max-height: none;
}

.pe-desc-more {
  margin-top: 12px;
}

.pe-content {
  max-width: 65ch;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.pe-content h1, .pe-content h2, .pe-content h3, .pe-content h4 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 6px;
}
.pe-content h1:first-child, .pe-content h2:first-child, .pe-content h3:first-child, .pe-content h4:first-child {
  margin-top: 0;
}
.pe-content p {
  margin: 0 0 10px;
}
.pe-content ul, .pe-content ol {
  padding-left: 20px;
  margin: 8px 0;
}
.pe-content li {
  margin: 4px 0;
}
.pe-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 12px 0;
}

.pe-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 22px 16px;
}

.pe-block {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--input-bg);
  overflow: hidden;
}

.pe-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  border-bottom: 1px solid var(--border-light);
}
.pe-block-head .chip {
  padding: 2px 8px;
}

.pe-block-ta {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  background: var(--card);
  font-size: 12.5px;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
}
.pe-block-ta:focus {
  box-shadow: none;
}

.pe-block-img {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--card);
}

.pe-add-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pe-revs {
  padding: 4px 0;
}

.pe-rev {
  padding: 13px 22px 14px;
  border-bottom: 1px solid var(--border-light);
}
.pe-rev:last-child {
  border-bottom: none;
}
.pe-rev .row-acts {
  opacity: 0;
}
.pe-rev:hover .row-acts {
  opacity: 1;
}

.pe-rev--hidden .pe-stars,
.pe-rev--hidden .pe-rev-author,
.pe-rev--hidden .pe-rev-text,
.pe-rev--hidden .pe-thumbs {
  opacity: 0.45;
}
.pe-rev--hidden .row-acts {
  opacity: 1;
}

.pe-rev-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.pe-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 13px;
  white-space: nowrap;
}

.pe-rev-author {
  font-size: 13px;
  color: var(--ink);
}

.pe-rev-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-line;
}

.pe-rev .pe-thumbs {
  margin-top: 10px;
}

.pe-revs--edit .pe-rev {
  padding: 12px 22px 14px;
}

.pe-rev-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pe-rev-form .input {
  height: 32px;
  padding: 4px 10px;
  font-size: 12.5px;
}

.pe-rev-star {
  width: 68px;
}

.pe-rev-author-in {
  width: 200px;
}

.pe-rev-date {
  width: 150px;
}

.pe-rev-flag {
  width: 64px;
  text-transform: uppercase;
}

.pe-rev-ta {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.pe-rev-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pe-ai {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 22px;
  border-top: 1px solid var(--border-light);
  background: rgba(var(--site-rgb), 0.04);
}
.pe-ai .input {
  height: 32px;
  padding: 4px 10px;
  font-size: 12.5px;
}

.pe-ai-tone {
  width: 180px;
}

.pe-ai-notes {
  flex: 1 1 260px;
  min-width: 0;
}

.pe-vars {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pe-axes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 22px 16px;
}

.pe-axis {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--input-bg);
}

.pe-axis-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border-bottom: 1px solid var(--border-light);
}
.pe-axis-head .hint {
  white-space: nowrap;
}

.pe-axis-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.pe-axis-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 0 0 10px 10px;
}

.pe-aval {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink);
}

.pe-aval--btn {
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}
.pe-aval--btn:hover {
  border-color: var(--site);
}

.pe-aval--off {
  opacity: 0.5;
  border-style: dashed;
  text-decoration: line-through;
  background: transparent;
}

.pe-axis-add {
  flex: none;
  margin-top: 4px;
  max-width: 420px;
}

.card-foot.pe-gen {
  justify-content: flex-start;
}
.card-foot.pe-gen .hint {
  text-align: left;
}

.pe-tbl-wrap {
  overflow-x: auto;
}

.pe-vars .tbl {
  width: 100%;
  border-collapse: collapse;
}
.pe-vars .tbl th.num {
  text-align: right;
}
.pe-vars .tbl td.num {
  text-align: right;
}

.pe-col-img {
  width: 44px;
}

.pe-col-sort {
  width: 48px;
  padding-right: 0;
}

.pe-col-acts {
  width: 1%;
  white-space: nowrap;
}

.pe-sku {
  white-space: nowrap;
}
.pe-sku .status {
  margin-top: 4px;
}

.pe-star {
  display: inline-block;
  width: 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1;
  color: var(--border);
  vertical-align: -1px;
  margin-right: 4px;
}
.pe-star.on {
  color: #f59e0b;
}

.pe-star--btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin: 0;
  transition: color 0.15s;
}
.pe-star--btn:hover {
  color: #f59e0b;
}

.pe-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pe-tile--xs {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border-width: 1px;
  vertical-align: middle;
}
.pe-tile--xs svg {
  width: 11px;
  height: 11px;
}

.pe-tile--none {
  border-style: solid;
  color: var(--text-sec);
  font-size: 11px;
  cursor: default;
}
.pe-tile--none:hover {
  border-color: var(--border);
  color: var(--text-sec);
}

.pe-img-cell {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pe-props .chip {
  margin: 1px 4px 1px 0;
}
.pe-props .chip .hint {
  margin-right: 4px;
}

.pe-props-edit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.pe-tbl--edit .input {
  height: 30px;
  padding: 3px 8px;
  font-size: 12px;
}
.pe-tbl--edit td {
  vertical-align: top;
  padding-top: 8px;
  padding-bottom: 8px;
}
.pe-tbl--edit .icon-btn {
  opacity: 1;
}
.pe-tbl--edit .pe-col-sort,
.pe-tbl--edit .pe-col-img,
.pe-tbl--edit .pe-col-acts {
  vertical-align: middle;
}

.pe-w70 {
  width: 70px;
}

.pe-w74 {
  width: 74px;
}

.pe-w96 {
  width: 96px;
}

.pe-w110 {
  width: 110px;
}

.pe-w120 {
  width: 120px;
}

.pe-w140 {
  width: 140px;
}

.pe-w150 {
  width: 150px;
}

.pe-w190 {
  width: 190px;
}

.pe-row--gen td {
  background: rgba(var(--site-rgb), 0.04);
}

.pe-row-acts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pe-fcell {
  min-width: 170px;
}
.pe-fcell > .input + * {
  margin-top: 6px;
}

.pe-file-link {
  color: var(--ink);
  text-decoration: none;
  max-width: 200px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.pe-file-link:hover {
  color: var(--site-ink);
}

.pe-file {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pe-file-cap {
  min-width: 0;
}

.pe-file-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink);
}

.pe-file-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.pe-file-tools .icon-btn {
  width: 24px;
  height: 24px;
}
.pe-file-tools a.icon-btn {
  color: inherit;
  text-decoration: none;
}

.pe-file-add {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pe-tk-chip {
  max-width: 220px;
  margin-top: 6px;
}

.pe-tk-modal {
  max-width: 480px;
}
.pe-tk-modal .pe-tk-list {
  max-height: 50vh;
}

/*# sourceMappingURL=main.css.map*/