:root {
  --bg: #f4f2ed;
  --bg-panel: #ffffff;
  --bg-sidebar: #141414;
  --bg-sidebar-hover: #2a2a2a;
  --ink: #14130f;
  --ink-soft: #56534a;
  --ink-mute: #8b877c;
  --line: #e4e0d7;
  --line-strong: #c9c4b6;
  --accent: #1a1a1a;
  --accent-deep: #000000;
  --accent-soft: #e6e2d9;
  --accent-tint: #f2efe8;
  --success: #2f7a3a;
  --warn: #b6822c;
  --info: #3b6e8f;
  --danger: #b03a2e;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-md: 0 4px 14px rgba(20,19,15,.08), 0 1px 3px rgba(20,19,15,.05);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }
/* SCREEN BANNER */
.screen-banner {
  background: #14130f;
  color: #ece9e2;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 18px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  border-bottom: 2px solid var(--accent);
  flex-wrap: wrap;
}
.screen-banner .label {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.screen-banner .links { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.screen-banner .links a {
  color: rgba(236,233,226,.6);
  transition: color .12s;
  text-transform: uppercase;
}
.screen-banner .links a:hover { color: #fff; }
.screen-banner .links a.current { color: var(--accent); }
.screen-banner .meta { color: rgba(236,233,226,.5); }
/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-block { width: 100%; padding: 13px; }
.btn-secondary {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--accent); background: rgba(26,26,26,.06); }
.btn-danger { background: #fff; border: 1px solid #e6c2bc; color: var(--danger); }
.btn-danger:hover { background: #f8e7e4; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }
/* FIELDS */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
textarea {
  padding: 10px 12px;
  font-size: 13.5px;
  resize: vertical;
  min-height: 70px;
  line-height: 1.55;
}
.field input:focus, .field select:focus, .field textarea:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,26,26,.13);
}
.field .helper {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.input-suffix { position: relative; }
.input-suffix .suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}
/* APP SHELL */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.sidebar {
  background: var(--bg-sidebar);
  color: #c7c3ba;
  padding: 18px 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
}
.sidebar-brand {
  padding: 0 22px 18px;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand img {
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.sidebar-section {
  padding: 22px 14px 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 22px;
  margin: 0 8px;
  border-radius: 6px;
  color: #c7c3ba;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--bg-sidebar-hover); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-item.active:hover { background: var(--accent-deep); }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-item.active .nav-badge { background: rgba(0,0,0,.25); }
.sidebar-user {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.sidebar-user .name { font-size: 13px; font-weight: 500; color: #fff; }
.sidebar-user .role { font-size: 11.5px; color: rgba(255,255,255,.5); }
.main {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
.topbar {
  background: rgba(244,242,237,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.crumbs .sep { color: var(--ink-mute); }
.crumbs .current { color: var(--accent); font-weight: 500; }
.topbar-search {
  flex: 1; max-width: 460px; margin: 0 auto 0 24px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px 8px 36px;
  font-size: 13.5px;
}
.topbar-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ink-mute);
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--ink-soft);
  background: transparent;
  position: relative;
}
.icon-btn:hover { background: rgba(26,26,26,.07); color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.page { padding: 24px 32px 64px; max-width: 1600px; }
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.page-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.page-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 6px;
  max-width: 600px;
}
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat-card .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  font-weight: 600;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 6px 0 4px;
  color: var(--accent-deep);
}
.stat-card .delta { font-size: 12px; color: var(--success); font-weight: 500; }
.stat-card .delta.down { color: var(--warn); }
.stat-card .spark {
  position: absolute; bottom: 0; right: 0;
  width: 60%; height: 50%;
  opacity: .35;
}
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.panel-body { padding: 18px 20px; }
.completeness-list { display: flex; flex-direction: column; gap: 12px; }
.completeness-row { display: flex; flex-direction: column; gap: 6px; }
.completeness-row .top { display: flex; justify-content: space-between; font-size: 13px; }
.progress {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 3px;
}
.activity-list { display: flex; flex-direction: column; }
.activity-row {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.activity-row:last-child { border: none; }
.activity-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.activity-row .text { flex: 1; }
.activity-row .text b { font-weight: 600; }
.activity-row .time { color: var(--ink-mute); font-size: 12px; }
/* TOOLBAR / TABLE */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
  transition: all .12s;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-pill svg { width: 12px; height: 12px; }
.toolbar-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.data-table-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  background: var(--accent-tint);
  text-align: left;
  padding: 11px 14px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover { background: var(--accent-tint); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.thumb-cell { width: 56px; padding-right: 0; }
.thumb {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent-soft), #d5d0c4);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.badge.success { background: #e8f3ea; color: var(--success); border-color: #c9e0cd; }
.badge.warn { background: #f8efd9; color: var(--warn); border-color: #ebd9a8; }
.badge.info { background: #e3edf4; color: var(--info); border-color: #c5d8e6; }
.badge.accent { background: var(--accent-soft); color: var(--accent-deep); border-color: #d5d0c4; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}
.page-btns { display: flex; gap: 4px; }
.page-btn {
  min-width: 30px; height: 30px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 8px;
}
.page-btn:hover { background: var(--accent-tint); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; }
/* EDITOR */
.editor-layout {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 18px;
  align-items: flex-start;
}
.editor-nav {
  position: sticky; top: 76px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
}
.editor-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 500;
}
.editor-nav a:hover { background: var(--accent-tint); color: var(--accent); }
.editor-nav a.active { background: var(--accent-soft); color: var(--accent-deep); }
.editor-nav .nav-num {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 10.5px;
  font-family: var(--font-mono);
}
.editor-nav a.active .nav-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.editor-main { display: flex; flex-direction: column; gap: 16px; }
.section-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-tint);
  flex-wrap: wrap;
  gap: 8px;
}
.section-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
  color: var(--accent-deep);
}
.section-head .section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--line);
}
.section-head .helper { font-size: 12.5px; color: var(--ink-soft); }
.section-body { padding: 20px 22px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.field.full { grid-column: 1 / -1; }
.editor-aside {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 14px;
}
.aside-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.aside-card h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-deep);
}
.meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--line);
}
.meta-row:last-child { border: none; }
.meta-row .k { color: var(--ink-soft); }
.meta-row .v { font-weight: 500; }
.completeness-circle {
  width: 100px; height: 100px;
  margin: 0 auto 8px;
  position: relative;
}
.completeness-circle svg { transform: rotate(-90deg); }
.completeness-circle .pct {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-deep);
}
.repeater-row { display: flex; gap: 8px; margin-bottom: 8px; }
.repeater-row .num {
  width: 28px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.repeater-row input { flex: 1; }
.bundle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bundle-slot {
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  min-height: 56px;
  cursor: pointer;
  transition: all .12s;
}
.bundle-slot:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.bundle-slot.filled { background: #fff; border-style: solid; }
.bundle-slot .thumb { width: 36px; height: 36px; font-size: 12px; }
.bundle-slot .info .sku-tag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
/* MEDIA */
.media-tabs {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.media-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.media-tab:hover { color: var(--accent); }
.media-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.media-tab .count {
  background: var(--bg);
  color: var(--ink-soft);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 4px;
}
.media-tab.active .count { background: var(--accent-soft); color: var(--accent-deep); }
.dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  background: var(--accent-tint);
  margin-bottom: 18px;
  transition: all .15s;
  cursor: pointer;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 10px; }
.dropzone h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 4px; color: var(--accent-deep); }
.dropzone p { color: var(--ink-soft); font-size: 13px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.media-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.media-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.media-thumb {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent-soft), #d5d0c4);
  display: grid; place-items: center;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 36px;
  position: relative;
}
.media-thumb.video { background: linear-gradient(135deg, #141414, #000000); color: #fff; }
.media-thumb .play-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.2);
}
.media-thumb .play-overlay svg { width: 44px; height: 44px; color: #fff; }
.media-meta { padding: 10px 12px; font-size: 12px; }
.media-meta .name {
  font-weight: 500; color: var(--ink); margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.media-meta .info { color: var(--ink-mute); font-size: 11.5px; display: flex; justify-content: space-between; }
.media-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.media-tag.primary { background: var(--accent); }
.media-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity .12s;
}
.media-item:hover .media-actions { opacity: 1; }
.media-actions button {
  width: 26px; height: 26px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-radius: 5px;
  display: grid; place-items: center;
}
.media-actions button:hover { background: var(--accent); }
.media-actions svg { width: 13px; height: 13px; }
.video-add-panel {
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.video-add-panel h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--accent-deep);
}
.video-add-panel p { color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; }
.video-input-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.video-input-row .platform-select {
  min-width: 130px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  font-size: 13.5px;
  display: flex; align-items: center; gap: 8px;
}
.video-input-row .platform-select svg { width: 16px; height: 16px; }
.video-input-row input { flex: 1; min-width: 200px; }
/* USERS */
.users-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: flex-start;
}
.role-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
}
.role-card .role-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.role-card .role-name {
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.role-card .role-count { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }
.role-card .role-perms { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11.5px; }
.role-perm {
  background: var(--accent-tint);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent-deep);
}
.role-color { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.perm-matrix { margin-top: 14px; }
.perm-matrix table { width: 100%; font-size: 12.5px; }
.perm-matrix th, .perm-matrix td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.perm-matrix th:first-child, .perm-matrix td:first-child {
  text-align: left; font-weight: 500;
}
.perm-matrix th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-deep);
  letter-spacing: .04em;
  font-weight: 600;
}
.check {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  line-height: 16px;
  font-size: 11px;
  font-weight: 700;
}
.check.no { background: transparent; border: 1px solid var(--line-strong); }
/* MISC */
.switch {
  width: 34px; height: 20px;
  background: var(--line-strong);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .15s;
  display: inline-block;
  vertical-align: middle;
}
.switch::after {
  content: ""; position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: left .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 16px; }
.save-bar {
  position: sticky; bottom: 0;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  gap: 10px;
}
.save-bar .info {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.save-bar .info .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--warn);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% {opacity:1;} 50% {opacity:.4;} }
.tag-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  display: flex; flex-wrap: wrap; gap: 5px;
  min-height: 40px;
}
.tag-chip {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 5px;
}
.tag-chip button { background: none; color: inherit; font-size: 14px; line-height: 1; padding: 0; }
.tag-input input { border: none; flex: 1; min-width: 100px; padding: 4px 6px; background: transparent; }
.tag-input input:focus { outline: none; box-shadow: none; }
/* LOGIN */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}
.login-art {
  position: relative;
  background:
    radial-gradient(at 20% 30%, rgba(255,255,255,.10), transparent 50%),
    radial-gradient(at 80% 80%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(135deg, #141414 0%, #000000 100%);
  color: #ece9e2;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(236,233,226,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,233,226,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.login-art > * { position: relative; }
.login-art .logo-wrap {
  background: #fff;
  display: inline-block;
  padding: 14px 20px;
  border-radius: 8px;
  width: max-content;
}
.login-art .logo-wrap img { height: 36px; display: block; }
.login-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.login-hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.login-hero p {
  color: rgba(236,233,226,.72);
  font-size: 16px;
  max-width: 440px;
  line-height: 1.55;
}
.login-footer {
  display: flex; justify-content: space-between;
  color: rgba(236,233,226,.5);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.login-form-wrap { display: grid; place-items: center; padding: 56px; }
.login-form { width: 100%; max-width: 380px; }
.login-form h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.login-form .sub { color: var(--ink-soft); margin-bottom: 36px; }
.field-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  margin: 22px 0;
}
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.checkbox input { width: 15px; height: 15px; accent-color: var(--accent); }
.link-accent { color: var(--accent); font-weight: 500; }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  color: var(--ink-mute);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 1200px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-nav, .editor-aside { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .users-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; }
}
.screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.screen-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: all .2s; cursor: pointer; text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
.screen-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(26,26,26,.13); }
.screen-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.screen-card:hover::before { transform: scaleX(1); }
.screen-card .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; font-weight: 500; margin-bottom: 12px; display: block; }
.screen-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.screen-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.screen-card .arrow { position: absolute; bottom: 22px; right: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; transition: all .2s; }
.screen-card:hover .arrow { background: var(--accent); color: #fff; transform: translateX(4px); }
.footer-note { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 12.5px; font-family: var(--font-mono); text-align: center; letter-spacing: .04em; }
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,19,15,.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  overflow: hidden;
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-tint);
  gap: 16px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
.modal-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.modal-sub {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-top: 4px;
}
.modal-body {
  padding: 8px 28px 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.modal-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: #faf9f5;
}
.modal-info {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--accent-deep);
  line-height: 1.45;
}
.modal-info svg { flex-shrink: 0; margin-top: 1px; }
/* Tabs */
.io-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 4px;
  margin: 20px 0 24px;
  gap: 4px;
}
.io-tab {
  flex: 1;
  padding: 10px 14px;
  text-align: center;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.io-tab:hover { color: var(--ink); }
.io-tab.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.io-tab svg { width: 14px; height: 14px; }
.io-dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  background: var(--accent-tint);
  transition: all .15s;
  cursor: pointer;
}
.io-dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.io-dropzone svg.icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 10px; }
.io-dropzone h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--accent-deep);
}
.io-dropzone p { color: var(--ink-soft); font-size: 13px; }
.io-dropzone .browse {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}
.io-template {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.io-template svg.fileicon {
  width: 32px; height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}
.io-template .info { flex: 1; }
.io-template .info .name { font-weight: 500; font-size: 13.5px; }
.io-template .info .desc { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.io-template a {
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}
.io-template a:hover { color: var(--accent-deep); }
.io-rules {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--accent-deep);
  line-height: 1.55;
}
.io-rules b { display: block; margin-bottom: 4px; color: var(--ink); }
.io-rules ul { margin: 0; padding-left: 18px; }
.io-rules li { margin-bottom: 2px; }
.io-export-summary {
  padding: 18px 20px;
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px;
}
.io-export-summary svg {
  width: 42px; height: 42px;
  color: var(--accent);
  flex-shrink: 0;
}
.io-export-summary .info { flex: 1; }
.io-export-summary .info .ttl {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-deep);
}
.io-export-summary .info .desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.io-format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.io-format {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  transition: all .12s;
}
.io-format:hover { border-color: var(--accent); background: var(--accent-tint); }
.io-format.checked {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 3px rgba(26,26,26,.08);
}
.io-format input[type="radio"] {
  width: 15px; height: 15px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.io-format .name { font-weight: 600; font-size: 13.5px; }
.io-format .desc { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.io-export-options {
  margin-bottom: 16px;
}
.io-export-options label {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.io-export-options input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.io-export-options .label-text { flex: 1; }
.io-export-options .label-text .name { font-weight: 500; }
.io-export-options .label-text .desc { font-size: 11.5px; color: var(--ink-soft); }
.io-panel { display: none; }
.io-panel.active { display: block; }
.multi-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 6px 6px 6px;
  transition: border-color .15s, box-shadow .15s;
}
.multi-select:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,26,26,.13);
}
.multi-select-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 4px;
}
.multi-select-chips:empty { display: none; }
.multi-select .tag-chip {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.multi-select .tag-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  opacity: .6;
}
.multi-select .tag-chip button:hover { opacity: 1; }
.multi-select-dropdown {
  width: 100%;
  border: none !important;
  background: transparent !important;
  padding: 6px 8px !important;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: none !important;
}
.multi-select-dropdown:focus { outline: none; box-shadow: none !important; }
/* Number input with +/- steppers */
.num-stepper {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.num-stepper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,26,26,.13);
}
.num-stepper button {
  width: 36px;
  background: #faf9f5;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s;
  border: none;
  flex-shrink: 0;
}
.num-stepper button:first-child { border-right: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
.num-stepper button:last-child  { border-left:  1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.num-stepper button:hover { background: var(--accent-tint); color: var(--accent); }
.num-stepper input {
  flex: 1;
  text-align: center;
  border: none !important;
  background: transparent !important;
  padding: 11px 8px !important;
  font-family: var(--font-mono);
  box-shadow: none !important;
  min-width: 0;
}
.num-stepper input:focus { outline: none; }
.num-stepper .stepper-suffix {
  padding: 0 14px;
  display: flex; align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  border-left: 1px solid var(--line);
  background: #faf9f5;
}
/* Product type slider (Simple vs Configurable) */
.product-type-toggle {
  display: inline-flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  position: relative;
}
.product-type-toggle label {
  position: relative;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  z-index: 1;
}
.product-type-toggle label svg { width: 14px; height: 14px; }
.product-type-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.product-type-toggle label.checked,
.product-type-toggle input[type="radio"]:checked + label {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.product-type-toggle label.checked { background: var(--accent); color: #fff; }
/* Sub-section heading inside a section card */
.subsection-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 24px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.subsection-title:first-child { margin-top: 0; }
.subsection-title .subsection-line {
  flex: 1; height: 1px; background: var(--line);
}
/* Bullet repeater with optional icon */
.bullet-row {
  display: grid;
  grid-template-columns: 28px 60px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.bullet-row .num {
  height: 38px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.bullet-icon-slot {
  height: 38px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-mute);
  transition: all .12s;
}
.bullet-icon-slot:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent);
}
.bullet-icon-slot.has-icon {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.bullet-icon-slot svg { width: 16px; height: 16px; }
.bullet-row input { flex: 1; }
.bullet-row .bullet-remove {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: #fbe9e7;
  color: var(--danger);
  border: 1px solid #f3d4cf;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .12s;
  flex-shrink: 0;
}
.bullet-row .bullet-remove:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.bullet-row .bullet-remove svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}
/* Configurable product variants table */
.variants-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.variants-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.variants-table thead th {
  background: var(--accent-tint);
  text-align: left;
  padding: 10px 14px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.variants-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.variants-table tbody tr:last-child td { border-bottom: none; }
.variants-table tbody tr:hover { background: var(--accent-tint); }
.variant-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.variant-actions .btn-edit {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all .12s;
}
.variant-actions .btn-edit:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}
.variant-actions .btn-edit svg { width: 13px; height: 13px; }
.variant-actions .btn-delete {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: #fbe9e7;
  color: var(--danger);
  border: 1px solid #f3d4cf;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .12s;
  flex-shrink: 0;
}
.variant-actions .btn-delete:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.variant-actions .btn-delete svg { width: 14px; height: 14px; stroke-width: 2.2; }
/* The 5b (Configurable) panel is hidden by default via inline style */
.cond-match {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cond-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.cond-radio {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.cond-radio.checked { color: var(--ink); font-weight: 500; }
.cond-radio input[type="radio"] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
.cond-rows {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px;
}
.cond-row {
  display: grid;
  grid-template-columns: 110px 150px 1fr 40px;
  gap: 8px;
  align-items: center;
}
.cond-row select,
.cond-row input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13.5px;
}
.cond-row select:focus,
.cond-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,26,26,.13);
}
.cond-remove { width: 40px; height: 40px; color: var(--danger); background: #fbe9e7; border-radius: var(--radius); }
.cond-remove svg { width: 15px; height: 15px; stroke-width: 2.2; }
.cond-remove:hover { background: var(--danger); color: #fff; }
.cond-add { padding-left: 0; }
@media (max-width: 900px) {
  .cond-row { grid-template-columns: 1fr; gap: 6px; }
  .cond-row .cond-remove { justify-self: end; }
}
.cond-row {
  display: grid;
  grid-template-columns: 160px 200px 1fr 36px;
  gap: 8px;
  align-items: center;
}
.cond-remove { width: 36px; height: 36px; }
.cond-remove svg { width: 14px; height: 14px; }
.cond-remove:hover { color: var(--danger); background: rgba(176,58,46,.08); }
/* Tabs for Import / Export */
/* Drop-zone for import */
.io-dropzone .or { color: var(--ink-mute); margin: 8px 0; font-size: 12px; }
/* Export controls */
/* Hide tab panel that isn't active in this static mockup */
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  overflow: hidden;
  animation: modal-in 0.2s ease-out;
}
.modal-body {
  padding: 24px 28px;
  max-height: 65vh;
  overflow-y: auto;
}
/* Action buttons inside tables (Edit + Delete) */
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  overflow: hidden;
  animation: modal-in 0.2s ease-out;
}
.modal-body {
  padding: 24px 28px;
  max-height: 60vh;
  overflow-y: auto;
}
.role-picker {
  display: flex; flex-direction: column;
  gap: 8px;
}
.role-pick {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .12s;
  background: #fff;
}
.role-pick:hover { border-color: var(--accent); background: var(--accent-tint); }
.role-pick.checked {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 3px rgba(26,26,26,.08);
}
.role-pick input[type="radio"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.role-pick-content { flex: 1; }
.role-pick-name {
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
}
.role-pick-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
/* ==========================================================================
   WARE UK PIM — brand overrides & new components
   The Ware mark is pure black-on-white, so the chrome is monochrome and
   status colour is reserved strictly for meaning.
   ========================================================================== */

/* --- Active nav mirrors the logo: white block, black glyph --- */
.nav-item.active { background: #fff; color: #141414; font-weight: 600; }
.nav-item.active:hover { background: #fff; color: #000; }
.nav-item.active .nav-badge { background: rgba(0,0,0,.09); color: #141414; }

/* --- Supplier accordion in the sidebar --- */
.nav-group { margin: 0 8px; }
.nav-group > .nav-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 14px; border-radius: 6px;
  color: #c7c3ba; font-size: 13px; font-weight: 500; text-align: left;
}
.nav-group > .nav-toggle:hover { background: var(--bg-sidebar-hover); color: #fff; }
.nav-group > .nav-toggle .chev { margin-left: auto; width: 12px; height: 12px; transition: transform .15s; opacity: .6; }
.nav-group.open > .nav-toggle { color: #fff; }
.nav-group.open > .nav-toggle .chev { transform: rotate(90deg); }
.nav-group .sup-dot {
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
  font-family: var(--font-mono);
}
.nav-group.open .sup-dot, .nav-group.current .sup-dot { background: #fff; color: #141414; }
.nav-sub { display: none; padding: 2px 0 6px 0; }
.nav-group.open .nav-sub { display: block; }
.nav-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 46px; border-radius: 5px;
  font-size: 12.5px; color: #a5a199;
}
.nav-sub a:hover { background: var(--bg-sidebar-hover); color: #fff; }
.nav-sub a.active { background: #fff; color: #141414; font-weight: 600; }
.nav-sub a .tick { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; flex-shrink: 0; }
.nav-sub a.active .tick { opacity: 1; }
.sidebar-scroll { overflow-y: auto; flex: 1; padding-bottom: 8px; }
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }

/* --- Supplier chip / identity --- */
.sup-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 500;
}
.sup-badge .mk {
  width: 22px; height: 22px; border-radius: 50%;
  background: #141414; color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
}

/* --- Supplier grid (suppliers overview) --- */
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.supplier-card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; display: block; color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
}
.supplier-card:hover { transform: translateY(-2px); border-color: #141414; box-shadow: var(--shadow-md); }
.supplier-card .sc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.supplier-card .mk {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: #141414; color: #fff; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.supplier-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.supplier-card .legal { font-size: 12px; color: var(--ink-mute); }
.supplier-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 14px; min-height: 39px; }
.supplier-card .sc-stats { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.supplier-card .sc-stats div { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); font-weight: 600; }
.supplier-card .sc-stats b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; text-transform: none; }
.supplier-card .sc-links { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.supplier-card .sc-links span {
  font-size: 11.5px; padding: 3px 9px; border-radius: 4px;
  background: var(--accent-tint); color: var(--ink-soft); border: 1px solid var(--line);
}

/* --- App-style feature icons --- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px; }
.feat-tile {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--bg); cursor: pointer; transition: all .13s; position: relative;
}
.feat-tile:hover { border-color: var(--line-strong); background: #fff; }
.feat-tile .glyph {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-mute);
}
.feat-tile .glyph svg { width: 22px; height: 22px; }
.feat-tile .name { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.3; }
.feat-tile .state {
  position: absolute; top: 7px; right: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff;
}
.feat-tile.on { border-color: #141414; background: #fff; }
.feat-tile.on .glyph { background: #141414; border-color: #141414; color: #fff; }
.feat-tile.on .name { color: var(--ink); font-weight: 600; }
.feat-tile.on .state {
  background: #141414; border-color: #141414; color: #fff;
  display: grid; place-items: center;
}
.feat-tile.on .state::after { content: "✓"; font-size: 9px; line-height: 1; font-weight: 700; }
.feat-tile.off .glyph { opacity: .5; }
.feat-tile.off .name { opacity: .65; }
.feat-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
  font-size: 12px; color: var(--ink-soft);
}
.feat-legend b { color: var(--ink); font-weight: 600; }

/* Front-end preview strip: how the icons render on the Magento PDP */
.pdp-strip {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--accent-tint); padding: 16px 18px; margin-top: 16px;
}
.pdp-strip .cap {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-mute); font-weight: 600; margin-bottom: 12px;
}
.pdp-icons { display: flex; gap: 22px; flex-wrap: wrap; }
.pdp-icons figure { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; }
.pdp-icons .ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #141414; color: #141414;
  display: grid; place-items: center; background: #fff;
}
.pdp-icons .ring svg { width: 23px; height: 23px; }
.pdp-icons figcaption { font-size: 10.5px; text-align: center; color: var(--ink-soft); line-height: 1.25; }

/* --- Key features repeater (text + brand/scheme logo) --- */
.kf-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}
.kf-row .num {
  width: 28px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-tint); border-radius: 5px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
}
.kf-row .drag {
  width: 22px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--line-strong); cursor: grab;
}
.kf-row .drag svg { width: 13px; height: 13px; }
.kf-row .drag:hover { color: var(--ink-mute); }
.kf-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px;
  border: 1px dashed var(--line-strong); background: var(--bg);
  display: grid; place-items: center; color: var(--ink-mute); cursor: pointer;
  transition: all .13s;
}
.kf-icon:hover { border-color: #141414; color: #141414; background: #fff; }
.kf-icon svg { width: 18px; height: 18px; }
.kf-icon.has-icon { border-style: solid; border-color: #141414; background: #141414; color: #fff; }
.kf-logo {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px;
  border: 1px dashed var(--line-strong); background: var(--bg);
  display: grid; place-items: center; color: var(--ink-mute); cursor: pointer;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .02em;
  transition: all .13s; text-align: center; line-height: 1.1; padding: 2px;
}
.kf-logo:hover { border-color: #141414; color: #141414; background: #fff; }
.kf-logo.has-logo { border-style: solid; border-color: var(--line-strong); background: #fff; color: var(--ink); }
.kf-row input[type="text"] { flex: 1; min-width: 0; }
.kf-remove {
  width: 34px; height: 38px; flex-shrink: 0; border-radius: 6px;
  display: grid; place-items: center; color: var(--ink-mute);
}
.kf-remove:hover { background: #f8e7e4; color: var(--danger); }
.kf-remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.kf-head {
  display: grid; grid-template-columns: 28px 22px 38px 38px 1fr 34px; gap: 8px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-mute); font-weight: 600; margin-bottom: 6px;
}
.kf-head span:nth-child(1), .kf-head span:nth-child(2) { visibility: hidden; }

/* Icon picker popover */
.icon-picker {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: 14px; margin: 10px 0 4px;
  box-shadow: var(--shadow-md);
}
.icon-picker h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-mute); font-weight: 600; margin-bottom: 10px;
}
.icon-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.icon-picker-grid button {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft); background: var(--bg);
}
.icon-picker-grid button:hover { border-color: #141414; background: #141414; color: #fff; }
.icon-picker-grid button svg { width: 19px; height: 19px; }

/* --- Blank media placeholders (images/videos supplied later) --- */
.media-thumb.blank {
  background: repeating-linear-gradient(45deg, #f2efe8, #f2efe8 8px, #ece9e0 8px, #ece9e0 16px);
  color: var(--ink-mute);
}
.media-thumb.blank svg { width: 26px; height: 26px; opacity: .5; }
.thumb.blank {
  background: repeating-linear-gradient(45deg, #f2efe8, #f2efe8 5px, #ece9e0 5px, #ece9e0 10px);
  color: var(--ink-mute);
}
.thumb.blank svg { width: 16px; height: 16px; opacity: .55; }
.media-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 22px; text-align: center; color: var(--ink-mute); font-size: 12.5px;
  background: var(--bg);
}

/* --- Magento channel tile --- */
.mage-mark {
  width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0;
  background: #f26322; color: #fff; display: grid; place-items: center;
}
.mage-mark svg { width: 19px; height: 19px; }

/* --- Field-map table (import/export) --- */
.map-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.map-table th {
  text-align: left; padding: 9px 12px; background: var(--accent-tint);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); font-weight: 600; border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.map-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.map-table tr:last-child td { border-bottom: none; }
.map-table .src { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.map-table .arrow-cell { color: var(--ink-mute); text-align: center; width: 28px; }
.map-scroll { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }

/* --- Notice bar --- */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--radius-lg);
  background: var(--accent-tint); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 18px;
}
.notice svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--ink); }
.notice b { color: var(--ink); }
.notice.warn { background: #fdf6e6; border-color: #ebd9a8; }
.notice.warn svg { color: var(--warn); }

/* --- Index page (Ware skin) --- */
body.index-body { background: linear-gradient(180deg, #f4f2ed 0%, #e9e6df 100%); }
.index-wrap { max-width: 1120px; margin: 0 auto; padding: 60px 32px; }
.index-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; gap: 32px; flex-wrap: wrap; }
.index-head img { height: 62px; }
.index-head .info { text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; line-height: 1.8; }
.index-head .info b { color: var(--ink); }
.index-title { font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -.025em; line-height: 1; margin-bottom: 12px; }
.index-title em { font-style: italic; font-weight: 400; color: var(--ink-soft); }
.index-sub { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin-bottom: 40px; line-height: 1.55; }
.index-section { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); font-weight: 600; margin: 44px 0 16px; display: flex; align-items: center; gap: 12px; }
.index-section::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.screen-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: all .18s; cursor: pointer; text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
.screen-card:hover { transform: translateY(-3px); border-color: #141414; box-shadow: 0 12px 30px rgba(20,19,15,.13); }
.screen-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #141414; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.screen-card:hover::before { transform: scaleX(1); }
.screen-card .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; font-weight: 500; margin-bottom: 10px; display: block; }
.screen-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 7px; letter-spacing: -.01em; }
.screen-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.screen-card .arrow { position: absolute; bottom: 20px; right: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--ink); display: grid; place-items: center; transition: all .2s; }
.screen-card:hover .arrow { background: #141414; color: #fff; transform: translateX(4px); }
.footer-note { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 12.5px; font-family: var(--font-mono); text-align: center; letter-spacing: .04em; }

/* --- Login art on Ware black --- */
.login-art { background: linear-gradient(135deg, #1c1c1c 0%, #000 100%); }
.login-hero h1 em { color: #8b877c; }

/* --- Misc --- */
.field label .req { color: var(--danger); margin-left: 2px; }
.field label .src-tag {
  float: right; font-family: var(--font-mono); font-size: 9.5px; font-weight: 400;
  color: var(--ink-mute); text-transform: none; letter-spacing: 0; opacity: .8;
}
.subsection-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin: 26px 0 14px; }
.subsection-title:first-child { margin-top: 0; }
.subsection-line { flex: 1; height: 1px; background: var(--line); }
.ro { background: var(--accent-tint) !important; color: var(--ink-soft) !important; }
.field-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
@media (max-width: 900px) { .pdp-icons { gap: 14px; } }


/* ==========================================================================
   v1.2 fixes
   ========================================================================== */

/* Dalebrook's pages carried a 38px screen banner above the app and reserved
   space for it. Ware has no banner, so those offsets are zeroed in the base
   rules above — otherwise the sticky topbar parks 38px down and covers the
   page heading. */

/* Fraunces has tall ascenders; give headings room so nothing is ever clipped. */
.page-title { line-height: 1.18; padding-block: 2px; overflow: visible; }
.page-head { margin-bottom: 24px; }
.index-title { line-height: 1.08; padding-block: 2px; }
.login-hero h1 { line-height: 1.08; padding-block: 2px; }
h1, h2, h3, h4 { overflow-wrap: break-word; }

/* The Ware lockup carries three lines of text, so it needs more height than a
   single-line wordmark to stay legible. The PNG is black-on-transparent, so the
   invert filter turns the artwork white and leaves the background alone. */
.sidebar-brand { padding: 0 22px 16px; }
.sidebar-brand img { height: 38px; width: auto; }
.login-art .logo-wrap img { height: 44px; }

/* ==========================================================================
   v1.3 — category mapping + key feature library
   ========================================================================== */

/* --- Manage categories (product editor) --- */
.cat-mapped { display:flex; align-items:baseline; gap:12px; padding:12px 14px; background:var(--accent-tint);
  border:1px solid var(--line); border-radius: var(--radius); margin-bottom:16px; flex-wrap:wrap; }
.cat-mapped-label { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-mute); font-weight:600; flex-shrink:0; }
.cat-chips { display:flex; gap:6px; flex-wrap:wrap; }
.cat-chip { font-size:12px; padding:3px 10px; border-radius:999px; background:#fff; border:1px solid var(--line-strong); color:var(--ink-soft); }
.cat-chip.primary { background:#141414; color:#fff; border-color:#141414; font-weight:500; }
.cat-picker-scroll { max-height:360px; overflow-y:auto; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--bg); padding:10px; }
.cat-picker-scroll::-webkit-scrollbar { width:10px; }
.cat-picker-scroll::-webkit-scrollbar-track { background:transparent; }
.cat-picker-scroll::-webkit-scrollbar-thumb { background:var(--line-strong); border-radius:5px; border:3px solid var(--bg); }
.cat-picker-scroll::-webkit-scrollbar-thumb:hover { background:var(--ink-mute); }
.cat-picker { display:grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap:10px; }
.cat-pick-group { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.cat-pick-group.open { border-color:#141414; }
.cat-pick-main { display:flex; align-items:center; gap:10px; padding:11px 13px; cursor:pointer; font-size:13.5px; background:var(--bg); }
.cat-pick-group.open .cat-pick-main { background:#141414; color:#fff; }
.cat-pick-main input, .cat-pick-sub input { accent-color:#141414; width:16px; height:16px; flex-shrink:0; margin:0; cursor:pointer; }
.cat-pick-group.open .cat-pick-main input { accent-color:#fff; }
.cat-pick-count { margin-left:auto; font-size:11px; color:var(--ink-mute); font-weight:400; flex-shrink:0; }
.cat-pick-group.open .cat-pick-count { color:rgba(255,255,255,.6); }
.cat-pick-subs { padding:6px; display:flex; flex-direction:column; gap:1px; }
.cat-pick-sub { display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:6px; font-size:13px; color:var(--ink-soft); cursor:pointer; }
.cat-pick-sub:hover { background:var(--accent-tint); color:var(--ink); }

/* --- Key feature library (product editor picker) --- */
.kf-library { border:1px solid var(--line-strong); border-radius:var(--radius-lg); background:#fff;
  box-shadow:var(--shadow-md); padding:16px; margin:12px 0 4px; }
.kf-library-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px; flex-wrap:wrap; }
.kf-library-head h5 { font-family:var(--font-display); font-size:15px; font-weight:600; margin-bottom:2px; }
.kf-library-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:8px; max-height:340px; overflow-y:auto; padding-right:4px; }
.kf-lib-item { display:flex; align-items:center; gap:10px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:var(--bg); text-align:left; transition:all .12s; }
.kf-lib-item:hover { border-color:#141414; background:#fff; box-shadow:var(--shadow-md); }
.kf-lib-glyph { width:30px; height:30px; border-radius:7px; background:#141414; color:#fff; display:grid; place-items:center; flex-shrink:0; }
.kf-lib-glyph svg { width:16px; height:16px; }
.kf-lib-label { font-size:12.5px; font-weight:500; color:var(--ink); flex:1; line-height:1.25; }
.kf-lib-use { font-family:var(--font-mono); font-size:10px; color:var(--ink-mute); background:var(--accent-tint); border-radius:999px; padding:1px 7px; flex-shrink:0; }
.kf-lib-item.added { opacity:.5; pointer-events:none; }
.kf-lib-item.added .kf-lib-label::after { content:" · added"; color:var(--success); font-weight:600; }

/* --- Categories > Key Features master screen --- */
.kfm-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:12px; }
.kfm-card { display:flex; align-items:center; gap:13px; padding:14px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--bg-panel); transition:all .13s; }
.kfm-card:hover { border-color:var(--line-strong); box-shadow:var(--shadow-md); }
.kfm-glyph { width:44px; height:44px; border-radius:11px; background:#141414; color:#fff; display:grid; place-items:center; flex-shrink:0; }
.kfm-glyph svg { width:23px; height:23px; }
.kfm-body { flex:1; min-width:0; }
.kfm-name { font-weight:600; font-size:14px; }
.kfm-meta { font-size:11.5px; color:var(--ink-mute); margin-top:2px; }
.kfm-actions { display:flex; gap:4px; flex-shrink:0; }
