:root {
  color-scheme: dark;
  --bg: #071019;
  --panel: #0d1824;
  --panel2: #111f2d;
  --line: #203142;
  --strong: #30485d;
  --text: #eef6fb;
  --muted: #91a4b6;
  --blue: #39a8ff;
  --blue2: #087bc8;
  --cyan: #50e3c2;
  --red: #ff6b78;
  --amber: #f5bb55;
  --radius: 14px;
  font-family:
    Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html,body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}
body {
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,input,select {
  font: inherit;
}
button,a,input,select,textarea {
  outline-offset: 3px;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--blue);
}
[hidden] {
  display: none !important;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0,1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #09141f;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 6px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg,var(--blue),#1550d4);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 8px 28px rgba(27,132,214,.25);
}
.brand strong,.brand small {
  display: block;
}
.brand strong {
  font-size: 1.04rem;
  letter-spacing: -.02em;
}
.brand small {
  color: var(--muted);
  font-size: .75rem;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 38px;
}
.nav-link {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.045);
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg,rgba(38,157,239,.22),rgba(38,157,239,.07));
  box-shadow: inset 3px 0 0 var(--blue);
}
.nav-icon {
  width: 19px;
  text-align: center;
  font-size: 1.05rem;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.user-name {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  padding: 0 12px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.button-link {
  font-size: .9rem;
}
.main-column {
  min-width: 0;
}
.topbar {
  min-height: 104px;
  padding: 27px clamp(22px,4vw,52px) 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(32,49,66,.65);
  background: rgba(7,16,25,.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(1.35rem,2vw,1.85rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.eyebrow {
  font-size: .7rem;
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--blue);
}
.mobile-menu {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.content {
  padding: 30px clamp(22px,4vw,52px) 60px;
  max-width: 1700px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.metric-card,.upload-summary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg,var(--panel2),var(--panel));
  padding: 20px;
  min-width: 0;
}
.metric-card span,.upload-summary article>span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}
.metric-card strong,.upload-summary article>strong {
  display: block;
  font-size: clamp(1.5rem,3vw,2.15rem);
  line-height: 1.15;
  margin: 12px 0 5px;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.metric-card small,.upload-summary article>small {
  color: var(--muted);
  font-size: .78rem;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,.12);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: -.015em;
}
.panel-head p,.page-lead {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}
.text-button {
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
}
th,td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(32,49,66,.72);
  vertical-align: middle;
  font-size: .84rem;
}
th {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 750;
  background: rgba(255,255,255,.018);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: rgba(255,255,255,.018);
}
.series-title {
  font-weight: 720;
}
.series-title:hover {
  color: var(--blue);
}
.number {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.muted {
  color: var(--muted);
}
.block {
  display: block;
  margin-top: 3px;
}
.empty-cell,.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 36px 20px;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .7rem;
  font-weight: 800;
  border: 1px solid var(--strong);
  white-space: nowrap;
  background: rgba(145,164,182,.08);
  color: #b7c7d6;
}
.status-active,.status-complete {
  color: #71e5c5;
  border-color: rgba(80,227,194,.32);
  background: rgba(80,227,194,.09);
}
.status-review,.status-queued {
  color: #ffd27f;
  border-color: rgba(245,187,85,.38);
  background: rgba(245,187,85,.1);
}
.status-running,.status-uploading,.status-assembling,.status-scanning,.status-importing {
  color: #74c4ff;
  border-color: rgba(57,168,255,.35);
  background: rgba(57,168,255,.1);
}
.status-failed,.status-cancelled {
  color: #ff929c;
  border-color: rgba(255,107,120,.35);
  background: rgba(255,107,120,.1);
}
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.primary-button,.secondary-button {
  min-height: 43px;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: .86rem;
  font-weight: 760;
  cursor: pointer;
}
.primary-button {
  background: linear-gradient(135deg,var(--blue),var(--blue2));
  color: white;
  box-shadow: 0 8px 24px rgba(8,123,200,.2);
}
.primary-button:hover {
  filter: brightness(1.08);
}
.secondary-button {
  color: var(--text);
  background: var(--panel2);
  border-color: var(--strong);
}
.primary-button:disabled,.secondary-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.panel-body,.narrow-panel {
  padding: 24px;
  min-width: 0;
}
.panel-body>.panel-head {
  padding: 0 0 18px;
}
.narrow-panel {
  max-width: 720px;
}
.stack-form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 7px;
  color: #cbd9e4;
  font-size: .82rem;
  font-weight: 680;
}
input,select,textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--strong);
  border-radius: 9px;
  color: var(--text);
  background: #09141f;
}
textarea {
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}
input::placeholder {
  color: #64798b;
}
.field-help {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: .78rem;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.path-chip,.limit-chip {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(57,168,255,.1);
  color: #73c5ff;
  font-size: .72rem;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 16px;
  overflow: hidden;
  white-space: nowrap;
}
.breadcrumbs a:hover {
  color: var(--blue);
}
.breadcrumbs strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(170px,1fr));
  gap: 14px;
}
.image-tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.image-tile a {
  display: block;
  aspect-ratio: 3/4;
  background: #050a0f;
  overflow: hidden;
}
.image-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform .22s ease;
}
.image-tile:hover img {
  transform: scale(1.025);
}
.image-tile figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 10px 11px;
  color: var(--muted);
  font-size: .7rem;
}
.image-tile figcaption strong {
  color: var(--text);
}
.upload-panel {
  padding-bottom: 22px;
}
.upload-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.file-drop {
  min-height: 170px;
  border: 1px dashed #36546b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 24px;
  cursor: pointer;
  background: rgba(57,168,255,.035);
}
.file-drop:hover {
  border-color: var(--blue);
  background: rgba(57,168,255,.065);
}
.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-drop small {
  color: var(--muted);
  font-weight: 450;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #152a3b;
  color: var(--blue);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .08em;
}
.file-drop.has-file {
  border-style: solid;
  border-color: var(--cyan);
}
.upload-actions {
  display: flex;
  gap: 10px;
}
.upload-progress {
  display: grid;
  gap: 8px;
}
.progress-track,.mini-progress {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: #071019;
  border: 1px solid var(--line);
}
.progress-track span,.mini-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,var(--blue2),var(--cyan));
  transition: width .18s ease;
}
.progress-copy {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .78rem;
}
.progress-copy strong {
  color: var(--text);
}
.mini-progress {
  width: 100px;
  height: 6px;
}
.progress-with-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.upload-summary {
  display: grid;
  grid-template-columns: 1.3fr repeat(3,1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.upload-summary code {
  display: block;
  margin: 13px 0 8px;
  color: #adddff;
  overflow-wrap: anywhere;
  font-size: .78rem;
}
.summary-main .status {
  margin: 11px 0 3px;
}
.summary-main>strong {
  font-size: 1.25rem !important;
  margin-top: 7px !important;
}
.import-panel {
  padding-bottom: 22px;
}
.import-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
  padding: 22px;
}
.notice {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  font-size: .82rem;
}
.notice.success {
  color: #9af0d8;
  border-color: rgba(80,227,194,.32);
  background: rgba(80,227,194,.08);
}
.notice.danger {
  color: #ffacb3;
  border-color: rgba(255,107,120,.34);
  background: rgba(255,107,120,.08);
}
.notice.warning {
  color: #ffda96;
  border-color: rgba(245,187,85,.34);
  background: rgba(245,187,85,.08);
}
.notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.error-cell {
  max-width: 280px;
  white-space: normal;
  color: var(--muted);
}
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 0,rgba(25,116,190,.2),transparent 38%),var(--bg);
}
.auth-card {
  width: min(100%,430px);
  border: 1px solid var(--line);
  background: rgba(13,24,36,.94);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.auth-brand {
  margin-bottom: 34px;
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -.03em;
}
.auth-card>p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .86rem;
}
@media (max-width:1100px) {
  .metrics {
    grid-template-columns: repeat(2,1fr);
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .import-form {
    grid-template-columns: 1fr 1fr;
  }
  .upload-summary {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    width: min(82vw,280px);
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 18px 0 50px rgba(0,0,0,.4);
  }
  body.menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-menu {
    display: grid;
    place-items: center;
  }
  .topbar {
    min-height: 86px;
    padding: 18px 20px;
  }
  .content {
    padding: 22px 16px 45px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-card strong {
    font-size: 1.45rem;
  }
  .action-row {
    align-items: flex-start;
  }
  .upload-summary {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .import-form {
    grid-template-columns: 1fr;
  }
  .image-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .image-tile figcaption span:last-child {
    display: none;
  }
}
@media (max-width:420px) {
  .metrics,.upload-summary {
    grid-template-columns: 1fr;
  }
  .action-row {
    display: grid;
  }
  .action-row .primary-button {
    width: 100%;
  }
  .auth-card {
    padding: 24px 20px;
  }
}
.split-grid .table-wrap table {
  min-width: 0;
}
.raw-panel-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}
.raw-panel-body p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}
.danger-button {
  border-color: rgba(255,107,120,.45);
  color: #ffacb3;
  white-space: nowrap;
}
.settings-form {
  padding: 22px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.setting-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
.setting-card>span {
  color: var(--text);
  font-weight: 760;
}
.setting-card small {
  color: var(--muted);
  font-weight: 450;
}
.setting-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setting-input input {
  max-width: 140px;
}
.setting-input strong {
  color: var(--blue);
  font-size: .82rem;
}
.retention-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(80,227,194,.24);
  border-radius: 10px;
  background: rgba(80,227,194,.055);
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 18px;
}
.retention-note strong {
  color: #8ae9cf;
  white-space: nowrap;
}
.retention-note code {
  color: #bcefff;
}
.publication-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}
.publication-summary>div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.publication-summary>div:first-child>strong {
  font-size: 1rem;
}
.publication-summary>div:first-child>span,.publication-summary>div:first-child>small {
  color: var(--muted);
  font-size: .8rem;
}
.publication-summary .status {
  display: inline-flex;
  margin-left: 4px;
}
.publication-summary .button-group {
  flex: 0 0 auto;
}
@media (max-width:760px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .raw-panel-body,.retention-note,.publication-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .raw-panel-body form,.raw-panel-body button,.publication-summary form,.publication-summary button,.publication-summary .secondary-button {
    width: 100%;
  }
}
/* v0.2.4 management + no-horizontal-scroll */
.content {
  width: 100%;
  min-width: 0;
}
.metrics {
  grid-template-columns: repeat(5,minmax(0,1fr));
}
.metric-link {
  display: block;
  min-width: 0;
}
.metric-link .metric-card {
  height: 100%;
  transition:
    border-color .16s ease,transform .16s ease;
}
.metric-link:hover .metric-card {
  border-color: #315b78;
  transform: translateY(-1px);
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}
table,.split-grid .table-wrap table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}
th,td {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.compact-table th,.compact-table td {
  padding-left: 16px;
  padding-right: 16px;
}
.error-cell {
  max-width: none;
}
.progress-with-label {
  min-width: 0;
}
.mini-progress {
  width: min(100px,65%);
  min-width: 34px;
  flex: 1;
}
.status {
  max-width: 100%;
}
input[type="checkbox"],input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--blue);
}
.check-cell {
  width: 46px;
  text-align: center;
  padding-left: 14px;
  padding-right: 8px;
}
.action-cell {
  width: 150px;
}
.row-action {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 6px 4px;
  font-size: .78rem;
  font-weight: 760;
  cursor: pointer;
}
.danger-text {
  color: #ff929c;
}
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-actions form {
  margin: 0;
}
.identity-row,.button-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-lead code {
  color: #adddff;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}
.bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
}
.check-label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .8rem;
}
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,107,120,.27);
  border-radius: var(--radius);
  background: rgba(255,107,120,.045);
  padding: 18px 20px;
  margin-top: 6px;
}
.danger-zone strong {
  display: block;
  color: #ffb0b7;
}
.danger-zone p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .8rem;
}
.trash-summary {
  max-width: 356px;
  margin-bottom: 20px;
}
.trash-metric {
  min-height: 150px;
}
.retention-note a {
  color: var(--blue);
}
@media (max-width:1250px) {
  .metrics {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media (max-width:1100px) {
  .metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .action-cell {
    width: 120px;
  }
}
@media (max-width:760px) {
  body {
    overflow-x: hidden;
  }
  .content,.main-column,.panel,.table-wrap {
    max-width: 100%;
    min-width: 0;
  }
  .table-wrap {
    overflow-x: hidden;
  }
  table {
    font-size: .78rem;
  }
  th,td {
    padding: 11px 9px;
    font-size: .76rem;
  }
  .compact-table th,.compact-table td {
    padding-left: 9px;
    padding-right: 9px;
  }
  .panel-head {
    padding: 16px;
  }
  .action-cell {
    width: 92px;
  }
  .row-action {
    font-size: .72rem;
  }
  .button-group {
    width: 100%;
  }
  .button-group .primary-button,.button-group .secondary-button {
    flex: 1;
  }
  .bulk-toolbar,.danger-zone {
    align-items: stretch;
    flex-direction: column;
  }
  .bulk-toolbar .secondary-button,.danger-zone form,.danger-zone button {
    width: 100%;
  }
  .trash-summary {
    max-width: none;
  }
  .inline-actions {
    display: grid;
    gap: 3px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .progress-with-label {
    display: grid;
    gap: 4px;
  }
  .mini-progress {
    width: 100%;
    min-width: 0;
  }
  .breadcrumbs {
    white-space: normal;
    flex-wrap: wrap;
  }
  .identity-row {
    margin-bottom: 4px;
  }
}
@media (max-width:520px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .series-title {
    display: block;
  }
  .check-cell {
    width: 36px;
  }
  .action-cell {
    width: 76px;
  }
  th,td {
    padding: 10px 7px;
  }
  .status {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .panel-head {
    gap: 10px;
  }
  .text-button {
    white-space: normal;
  }
}
/* v0.3.0-alpha1 scrapper pilot */
.scraper-provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px;
}
.plain-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: .84rem;
}
.plain-list li+li {
  margin-top: 5px;
}
.scraper-connect-form {
  display: grid;
  grid-template-columns: minmax(160px,.7fr) minmax(280px,1.5fr) minmax(220px,1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 22px;
}
.source-url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: .72rem;
}
.scraper-table th:nth-child(1) {
  width: 28%;
}
.scraper-table th:nth-child(2) {
  width: 12%;
}
.scraper-table th:nth-child(4) {
  width: 100px;
}
.alpha-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(245,187,85,.32);
  background: rgba(245,187,85,.07);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: .82rem;
}
.alpha-note strong {
  color: #ffd27f;
  white-space: nowrap;
}
.probe-strip {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-top: 10px;
}
.probe-thumb {
  width: 64px;
  flex: 0 0 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #050a0f;
}
.probe-thumb img {
  display: block;
  width: 64px;
  height: 76px;
  object-fit: cover;
  object-position: top;
}
.probe-thumb span {
  display: block;
  padding: 4px 5px;
  color: var(--muted);
  font-size: .56rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-date {
  font-size: 1rem !important;
  line-height: 1.3 !important;
}
.source-panel {
  margin-top: 4px;
}
.source-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.source-link-row:first-of-type {
  border-top: 0;
}
.source-link-row>div:first-child {
  min-width: 0;
}
.source-link-row strong,.source-link-row span {
  display: block;
}
.source-link-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
}
@media (max-width:1150px) {
  .scraper-connect-form {
    grid-template-columns: 1fr 1fr;
  }
  .scraper-connect-form .primary-button {
    align-self: end;
  }
  .scraper-provider-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width:760px) {
  .scraper-connect-form {
    grid-template-columns: 1fr;
  }
  .scraper-connect-form .primary-button {
    width: 100%;
  }
  .source-link-row {
    align-items: stretch;
    flex-direction: column;
  }
  .scraper-table th:nth-child(3),.scraper-table td:nth-child(3) {
    display: none;
  }
  .scraper-table th:nth-child(1) {
    width: auto;
  }
  .scraper-table th:nth-child(2) {
    width: 86px;
  }
  .probe-strip {
    max-width: 100%;
  }
  .alpha-note {
    flex-direction: column;
  }
  .source-url {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Alpha6 — bounded source lists and searchable series picker */
.series-picker {
  position: relative;
  min-width: 220px;
}
.series-picker-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--strong);
  border-radius: 10px;
  background: #09141f;
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
}
.series-picker-results>small {
  display: block;
  padding: 10px;
}
.series-picker-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.series-picker-option:hover,.series-picker-option:focus-visible {
  background: rgba(57,168,255,.12);
}
.series-picker-option small {
  color: var(--muted);
}
.connection-search {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.connection-search label {
  flex: 1;
  max-width: 520px;
}
.list-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.list-pager .secondary-button {
  min-height: 38px;
  padding: 8px 12px;
}
@media (max-width:760px) {
  .series-picker-results {
    position: static;
    margin-top: 6px;
  }
  .connection-search,.list-pager {
    align-items: stretch;
    flex-direction: column;
  }
  .connection-search label {
    max-width: none;
  }
  .connection-search .secondary-button {
    width: 100%;
  }
  .list-pager .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .list-pager .secondary-button {
    width: 100%;
  }
}
@media (min-width:1151px) {
  .scraper-connect-form {
    grid-template-columns: minmax(150px,.7fr) minmax(250px,1.25fr) minmax(210px,1fr) minmax(140px,.6fr) auto;
  }
  .import-form {
    grid-template-columns: minmax(210px,1.2fr) minmax(150px,.65fr) minmax(190px,1fr) minmax(150px,.7fr) auto;
  }
}
/* v0.3.0-alpha2 probe workflow */
.alpha-note p {
  margin: 0;
  color: var(--muted);
}
.scraper-chapter-table th:nth-child(1) {
  width: 18%;
}
.scraper-chapter-table th:nth-child(2) {
  width: 11%;
}
.scraper-chapter-table th:nth-child(3) {
  width: 19%;
}
.scraper-chapter-table th:nth-child(4) {
  width: auto;
}
.scraper-chapter-table th:nth-child(5) {
  width: 150px;
}
.scraper-list-head {
  align-items: center;
}
.probe-summary {
  display: grid;
  gap: 2px;
  color: var(--blue);
  text-decoration: none;
}
.probe-summary strong {
  font-size: .8rem;
}
.probe-summary span {
  color: var(--muted);
  font-size: .7rem;
}
.probe-summary:hover strong {
  text-decoration: underline;
}
.probe-source-link {
  color: var(--blue);
  max-width: min(760px,72vw);
}
.probe-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.probe-nav>:last-child {
  justify-self: end;
}
.probe-nav .secondary-button {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.probe-metrics {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.probe-result-panel {
  margin-top: 12px;
}
.probe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(185px,1fr));
  gap: 14px;
  padding: 18px;
}
.probe-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
.probe-image-link {
  display: block;
  height: 320px;
  background: #050a0f;
  overflow: hidden;
}
.probe-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.probe-card-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  padding: 10px 11px;
  color: var(--muted);
  font-size: .7rem;
}
.probe-card-meta strong {
  color: var(--text);
  font-size: .78rem;
}
.probe-card-meta code {
  grid-column: 1/-1;
  color: #86b5d3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.probe-empty-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}
.probe-empty-body p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}
@media (max-width:900px) {
  .scraper-chapter-table th:nth-child(4),.scraper-chapter-table td:nth-child(4) {
    display: none;
  }
  .scraper-chapter-table th:nth-child(3),.scraper-chapter-table td:nth-child(3) {
    display: table-cell;
  }
  .scraper-chapter-table th:nth-child(1) {
    width: 26%;
  }
  .scraper-chapter-table th:nth-child(2) {
    width: 16%;
  }
  .scraper-chapter-table th:nth-child(3) {
    width: auto;
  }
  .scraper-chapter-table th:nth-child(5) {
    width: 120px;
  }
  .probe-gallery {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media (max-width:760px) {
  .scraper-list-head {
    align-items: stretch;
  }
  .scraper-list-head>.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .scraper-list-head>.button-group form {
    grid-column: 1/-1;
  }
  .scraper-list-head>.button-group form button {
    width: 100%;
  }
  .scraper-chapter-table th:nth-child(2),.scraper-chapter-table td:nth-child(2) {
    display: none;
  }
  .scraper-chapter-table th:nth-child(1) {
    width: 30%;
  }
  .scraper-chapter-table th:nth-child(3) {
    width: auto;
  }
  .scraper-chapter-table th:nth-child(5) {
    width: 92px;
  }
  .probe-nav {
    grid-template-columns: 1fr 1fr;
  }
  .probe-nav .text-button {
    grid-column: 1/-1;
    grid-row: 1;
    text-align: center;
  }
  .probe-nav>:first-child {
    grid-column: 1;
    grid-row: 2;
  }
  .probe-nav>:last-child {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
  }
  .probe-nav .secondary-button {
    width: 100%;
    max-width: none;
  }
  .probe-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
    padding: 12px;
  }
  .probe-image-link {
    height: 260px;
  }
  .probe-empty-body {
    align-items: stretch;
    flex-direction: column;
  }
  .probe-empty-body .secondary-button {
    width: 100%;
  }
  .probe-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:480px) {
  .probe-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .probe-image-link {
    height: 220px;
  }
  .probe-card-meta {
    grid-template-columns: 1fr;
  }
  .probe-card-meta code {
    grid-column: auto;
  }
  .probe-metrics {
    grid-template-columns: 1fr;
  }
  .scraper-chapter-table th:nth-child(3),.scraper-chapter-table td:nth-child(3) {
    display: none;
  }
  .scraper-chapter-table th:nth-child(1) {
    width: auto;
  }
  .scraper-chapter-table th:nth-child(5) {
    width: 84px;
  }
}

/* v0.3.0-alpha3 — Promo Library / detector training */
.promo-train-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.probe-image-stage {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #050a10;
}
.probe-image-stage .probe-image-link {
  display: block;
}
.probe-image-stage img {
  display: block;
  width: 100%;
  height: auto;
}
.promo-detection-overlay {
  position: absolute;
  left: 0;
  right: 0;
  border: 2px solid rgba(255,90,90,.95);
  background: rgba(255,65,65,.18);
  pointer-events: none;
  z-index: 3;
}
.promo-detection-overlay.detection-approved {
  border-color: rgba(74,222,128,.95);
  background: rgba(34,197,94,.18);
}
.promo-detection-overlay.detection-rejected {
  border-color: rgba(148,163,184,.95);
  background: rgba(100,116,139,.16);
}
.promo-train-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-train-actions form {
  margin: 0;
}
.detection-list {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line,#243447);
}
.detection-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}
.detection-row>div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.detection-row span,.detection-row small {
  font-size: 12px;
  color: var(--muted,#8da5bc);
}
.detection-row>div:last-child {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.no-detection {
  font-size: 12px;
  color: var(--muted,#8da5bc);
  padding-top: 6px;
  border-top: 1px solid var(--line,#243447);
}
.promo-mark-dialog {
  width: min(980px,94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line,#243447);
  border-radius: 16px;
  background: #0b1620;
  color: #e7f0f8;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.promo-mark-dialog::backdrop {
  background: rgba(0,0,0,.72);
}
.promo-dialog-close {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  height: 0;
  margin: 0;
}
.promo-dialog-close button {
  margin: 10px 10px 0 0;
  width: 38px;
  height: 38px;
  border: 1px solid #36506a;
  border-radius: 10px;
  background: #102335;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.promo-dialog-head {
  padding: 22px 60px 14px 22px;
  border-bottom: 1px solid var(--line,#243447);
}
.promo-dialog-head>div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.promo-dialog-head span {
  color: var(--muted,#8da5bc);
  font-size: 13px;
}
.promo-dialog-head p {
  margin: 6px 0 0;
  color: var(--muted,#8da5bc);
}
.promo-select-scroll {
  max-height: 58vh;
  overflow: auto;
  padding: 14px;
  background: #050a10;
}
.promo-select-stage {
  position: relative;
  width: min(900px,100%);
  margin: 0 auto;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
}
.promo-select-stage img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.promo-select-overlay {
  position: absolute;
  left: 0;
  right: 0;
  border: 2px solid #38bdf8;
  background: rgba(14,165,233,.22);
  pointer-events: none;
}
.promo-select-overlay.is-start-marker {
  height: 3px !important;
  border-width: 0 0 3px;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(56,189,248,.25);
}
.promo-mark-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.promo-mark-tools .row-action {
  white-space: nowrap;
}
.promo-mark-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line,#243447);
}
.promo-mark-form label {
  display: grid;
  gap: 6px;
}
.promo-selection-readout {
  grid-column: 1/-1;
  color: var(--muted,#8da5bc);
  font-size: 13px;
}
.promo-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 14px;
  padding: 16px;
}
.promo-reference-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line,#243447);
  border-radius: 12px;
  background: #0d1b28;
}
.promo-reference-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #050a10;
  border-radius: 8px;
}
.promo-reference-card>div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.promo-reference-card>div span,.promo-reference-card>div small {
  font-size: 12px;
  color: var(--muted,#8da5bc);
}
.promo-reference-card code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.promo-reference-card form {
  grid-column: 1/-1;
  margin: 0;
}
@media (max-width:720px) {
  .promo-mark-form {
    grid-template-columns: 1fr;
  }
  .promo-reference-grid {
    grid-template-columns: 1fr;
  }
  .detection-row {
    flex-direction: column;
  }
  .detection-row>div:last-child {
    justify-items: start;
  }
}
/* v0.3.0-alpha4 — final import / bulk review / auto pipeline */
.scraper-auto-settings {
  grid-template-columns: minmax(0,1.5fr) minmax(240px,.7fr);
}
.setting-toggle .toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09141f;
}
.setting-toggle .toggle-row input[type="checkbox"] {
  flex: 0 0 auto;
}
.setting-toggle .toggle-row strong {
  font-size: .8rem;
  color: #cfe8f8;
  font-weight: 680;
}
.scraper-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scraper-bulk-actions form {
  margin: 0;
}
.scraper-bulk-actions .danger-text {
  border-color: rgba(255,107,120,.35);
}
.scraper-metrics {
  grid-template-columns: repeat(5,minmax(0,1fr));
}
.import-summary {
  display: grid;
  gap: 2px;
}
.import-summary small {
  color: var(--muted);
}
@media (max-width:1150px) {
  .scraper-metrics {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .scraper-auto-settings {
    grid-template-columns: 1fr;
  }
}
@media (max-width:760px) {
  .scraper-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .scraper-bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .scraper-bulk-actions form,.scraper-bulk-actions button {
    width: 100%;
  }
}
@media (max-width:480px) {
  .scraper-metrics {
    grid-template-columns: 1fr;
  }
  .scraper-bulk-actions {
    grid-template-columns: 1fr;
  }
}

/* Alpha4 HOTFIX6 — Promo Library review console */
.promo-reference-grid {
  grid-template-columns: repeat(auto-fit,minmax(430px,1fr));
  gap: 16px;
  padding: 18px;
}
.promo-reference-card {
  display: block;
  padding: 0;
  border: 1px solid var(--line,#243447);
  border-radius: 14px;
  background: linear-gradient(145deg,#0d1b28,#0a1621);
  overflow: hidden;
}
.promo-reference-header {
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 14px;
  padding: 14px;
}
.promo-reference-thumb {
  width: 128px;
  height: 128px;
  object-fit: contain;
  background: #050a10;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.04);
}
.promo-reference-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: start;
}
.promo-reference-meta>strong {
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.promo-reference-meta>span,.promo-reference-meta>small {
  font-size: 12px;
  color: var(--muted,#8da5bc);
}
.promo-reference-meta code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.promo-reference-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.promo-reference-badges .status {
  font-size: 10px;
  padding: 4px 8px;
}
.promo-component-section {
  border-top: 1px solid var(--line,#243447);
  padding: 12px 14px 14px;
  background: rgba(255,255,255,.012);
}
.promo-component-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}
.promo-component-title strong {
  font-size: .78rem;
}
.promo-component-title small {
  font-size: 11px;
  color: var(--muted,#8da5bc);
  text-align: right;
}
.promo-component-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.promo-component-card {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  grid-template-areas: 'preview meta' 'action action';
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid rgba(64,93,120,.62);
  border-radius: 10px;
  background: #09131d;
}
.promo-component-card>img {
  grid-area: preview;
  width: 88px;
  height: 78px;
  object-fit: contain;
  background: #03070b;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.04);
}
.promo-component-meta {
  grid-area: meta;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}
.promo-component-meta strong {
  font-size: .78rem;
}
.promo-component-meta small {
  font-size: 11px;
  color: var(--muted,#8da5bc);
}
.promo-component-meta .status {
  justify-self: start;
  font-size: 9px;
  padding: 3px 7px;
}
.promo-component-card form {
  grid-area: action;
  margin: 0;
}
.compact-button {
  min-height: 32px;
  border: 1px solid var(--line,#243447);
  border-radius: 8px;
  background: #102233;
  color: #dceaf6;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  line-height: 1.2;
}
.compact-button:hover {
  border-color: #2f83bd;
  background: #132a3d;
}
.compact-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.trust-button {
  border-color: rgba(44,207,154,.38);
  background: rgba(44,207,154,.08);
  color: #75e6be;
}
.danger-button {
  border-color: rgba(255,107,120,.28);
  background: rgba(255,107,120,.055);
  color: #ff9aa4;
}
.promo-component-card .compact-button {
  width: 100%;
}
.reference-advanced {
  border-top: 1px solid var(--line,#243447);
  padding: 0 14px;
  background: rgba(0,0,0,.09);
}
.reference-advanced summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 0;
  color: var(--blue,#38aef5);
  font-size: 12px;
  font-weight: 760;
}
.reference-advanced summary::-webkit-details-marker {
  display: none;
}
.reference-advanced summary::after {
  content: '▾';
  float: right;
  color: var(--muted,#8da5bc);
}
.reference-advanced[open] summary::after {
  content: '▴';
}
.reference-policy-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr);
  gap: 8px;
  padding: 0 0 12px;
  align-items: center;
}
.reference-policy-actions form {
  margin: 0;
}
.force-compound-form {
  display: grid;
  grid-template-columns: minmax(120px,1fr) auto;
  gap: 8px;
}
.force-compound-form input {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
}
.promo-reference-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  border-top: 1px solid rgba(36,52,68,.7);
}
.promo-reference-footer form {
  margin: 0;
}
@media (max-width:1100px) {
  .promo-reference-grid {
    grid-template-columns: 1fr;
  }
  .promo-component-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:650px) {
  .promo-reference-header {
    grid-template-columns: 92px minmax(0,1fr);
  }
  .promo-reference-thumb {
    width: 92px;
    height: 92px;
  }
  .promo-component-grid {
    grid-template-columns: 1fr;
  }
  .promo-component-title {
    display: grid;
  }
  .promo-component-title small {
    text-align: left;
  }
  .reference-policy-actions {
    grid-template-columns: 1fr 1fr;
  }
  .force-compound-form {
    grid-column: 1/-1;
  }
  .reference-policy-actions .compact-button {
    width: 100%;
  }
}

/* Alpha4 HOTFIX7 — Worker Pool + live status */
.live-summary-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.live-summary-grid .metric-card {
  min-height: 132px;
}
[data-worker-runtime] {
  white-space: nowrap;
}
@media (max-width:1000px) {
  .live-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:560px) {
  .live-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* v0.3.0-alpha5 UI-PROSES-R1 — human-facing process console */
.process-intro [data-live-poll-state] {
  gap: 0;
  padding: 7px 11px;
}
.process-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.process-metrics .metric-card {
  min-height: 132px;
}
.process-pipeline {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(57,168,255,.035);
}
.process-pipeline>div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.process-pipeline>div>span:last-child,.process-pipeline strong,.process-pipeline small {
  display: block;
}
.process-pipeline strong {
  font-size: .82rem;
}
.process-pipeline small {
  color: var(--muted);
  font-size: .68rem;
}
.pipeline-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(57,168,255,.2);
  border-radius: 9px;
  color: var(--blue);
  background: rgba(57,168,255,.07);
  font-size: .78rem;
  font-weight: 850;
}
.pipeline-arrow {
  color: #526b7f;
  font-size: 1.15rem;
}
.process-panel {
  overflow: visible;
}
.process-tabs {
  display: flex;
  width: 100%;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  scrollbar-width: thin;
}
.process-tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: .8rem;
  font-weight: 720;
  cursor: pointer;
}
.process-tab:hover {
  color: var(--text);
}
.process-tab.active {
  border-bottom-color: var(--blue);
  color: var(--text);
}
.process-tab>span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #a9bfd1;
  background: rgba(255,255,255,.055);
  font-size: .68rem;
}
.process-tab.active>span {
  color: #7bcbff;
  background: rgba(57,168,255,.12);
}
.process-groups {
  display: grid;
  gap: 22px;
  padding: 18px;
}
.process-group {
  display: grid;
  gap: 9px;
}
.process-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.process-group-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #cbd9e4;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .02em;
}
.process-group-head h3>span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: #071019;
  background: #ff929c;
  font-size: .68rem;
  font-weight: 900;
}
.process-group-head>span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
}
.process-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.012);
}
.process-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) minmax(150px,180px) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(32,49,66,.72);
}
.process-row:last-child {
  border-bottom: 0;
}
.process-row-failed {
  background: rgba(255,107,120,.035);
}
.process-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue);
  background: #0b1722;
  font-size: .7rem;
  font-weight: 850;
}
.process-row-failed .process-icon {
  border-color: rgba(255,107,120,.28);
  color: #ff929c;
  background: rgba(255,107,120,.06);
}
.process-main {
  min-width: 0;
}
.process-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
  font-size: .9rem;
}
.process-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.process-title span {
  flex: 0 0 auto;
  color: #cbd9e4;
}
.process-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
}
.process-meta>*+*::before {
  margin-right: 7px;
  color: #526b7f;
  content: '·';
}
.process-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: #eaa1a8;
  font-size: .75rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.process-state {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 8px;
}
.process-state .progress-with-label {
  width: 100%;
}
.process-detail-button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}
.process-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 42px 20px;
  text-align: center;
}
.process-empty strong {
  font-size: .88rem;
}
.process-empty span {
  color: var(--muted);
  font-size: .78rem;
}
.process-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw,540px);
  max-width: 540px;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 16px 0 0 16px;
  color: var(--text);
  background: #0b1620;
  box-shadow: -28px 0 80px rgba(0,0,0,.42);
}
.process-dialog::backdrop {
  background: rgba(0,0,0,.68);
}
.process-dialog-shell {
  min-height: 100%;
  position: relative;
}
.process-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.process-dialog-close button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--strong);
  border-radius: 10px;
  color: var(--text);
  background: #102335;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.process-dialog header {
  padding: 24px 64px 20px 20px;
  border-bottom: 1px solid var(--line);
}
.process-dialog header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.process-dialog header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .8rem;
}
.process-dialog-body {
  display: grid;
  gap: 20px;
  padding: 20px;
}
.process-detail-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}
.process-detail-summary>div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}
.process-detail-summary span,.process-detail-summary strong {
  display: block;
}
.process-detail-summary>div>span:first-child {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .7rem;
}
.process-detail-summary strong {
  overflow-wrap: anywhere;
  font-size: .82rem;
}
.process-detail-message {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(57,168,255,.24);
  border-radius: 10px;
  background: rgba(57,168,255,.055);
}
.process-detail-message>span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 850;
}
.process-detail-message strong {
  font-size: .8rem;
}
.process-detail-message p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .78rem;
}
.process-timeline {
  display: grid;
  gap: 9px;
}
.process-timeline h3 {
  margin: 0 0 3px;
  font-size: .86rem;
}
.process-timeline>[data-detail-timeline] {
  display: grid;
  gap: 9px;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.process-step>span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255,255,255,.03);
  font-size: .72rem;
  font-weight: 850;
}
.process-step strong,.process-step small {
  display: block;
}
.process-step strong {
  color: #cbd9e4;
  font-size: .8rem;
}
.process-step small {
  margin-top: 2px;
  font-size: .68rem;
}
.process-step.is-done {
  border-color: rgba(80,227,194,.22);
}
.process-step.is-done>span {
  color: #71e5c5;
  background: rgba(80,227,194,.08);
}
.process-step.is-current {
  border-color: rgba(57,168,255,.32);
  background: rgba(57,168,255,.04);
}
.process-step.is-current>span {
  color: var(--blue);
  background: rgba(57,168,255,.1);
}
.process-technical {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.08);
}
.process-technical summary {
  padding: 11px 13px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}
.process-technical dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 13px 13px;
}
.process-technical dl>div {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr);
  gap: 10px;
  font-size: .72rem;
}
.process-technical dt {
  color: var(--muted);
}
.process-technical dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #cbd9e4;
}
.process-source-link {
  justify-self: start;
}
.compact-table td>strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width:1000px) {
  .process-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .process-row {
    grid-template-columns: 38px minmax(0,1fr) auto;
  }
  .process-state {
    grid-column: 2;
  }
  .process-row>.process-detail-button {
    grid-column: 3;
    grid-row: 1/span 2;
  }
}
@media (max-width:560px) {
  .process-metrics {
    grid-template-columns: 1fr;
  }
  .process-pipeline {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    padding: 10px;
  }
  .pipeline-arrow {
    display: none;
  }
  .process-pipeline>div {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }
  .process-pipeline strong {
    font-size: .7rem;
  }
  .process-groups {
    padding: 12px;
  }
  .process-row {
    grid-template-columns: 36px minmax(0,1fr);
    gap: 10px;
    padding: 13px;
  }
  .process-title {
    display: grid;
    gap: 0;
  }
  .process-title span {
    font-size: .78rem;
  }
  .process-meta {
    flex-wrap: wrap;
  }
  .process-state {
    grid-column: 2;
  }
  .process-row>.process-detail-button {
    grid-column: 2;
    grid-row: auto;
    width: 100%;
  }
  .process-dialog {
    width: 100vw;
    max-width: none;
    border-radius: 0;
  }
  .process-detail-summary {
    grid-template-columns: 1fr;
  }
  .process-dialog-body {
    padding: 16px;
  }
  .process-technical dl>div {
    grid-template-columns: 90px minmax(0,1fr);
  }
}

/* v0.3.0-alpha5 WORKFLOW-JOBS-R2 — operational filters, retry, cleanup */
.process-metric-filter {
  width: 100%;
  appearance: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.process-metric-filter:hover {
  border-color: #2f83bd;
  background: rgba(57,168,255,.045);
}
.process-metric-filter.active {
  border-color: rgba(57,168,255,.55);
  box-shadow: inset 0 0 0 1px rgba(57,168,255,.12);
}
.process-status-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,16,25,.38);
  scrollbar-width: thin;
}
.process-status-tabs>span {
  flex: 0 0 auto;
  margin-right: 4px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.process-status-tab {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.018);
  font-size: .72rem;
  font-weight: 720;
  cursor: pointer;
}
.process-status-tab:hover {
  border-color: #315a78;
  color: var(--text);
}
.process-status-tab.active {
  border-color: rgba(57,168,255,.45);
  color: #8fd4ff;
  background: rgba(57,168,255,.09);
}
.process-status-tab>span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  font-size: .62rem;
}
.process-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.process-actions form,.process-dialog-actions form {
  margin: 0;
}
.process-retry-form .secondary-button {
  min-height: 38px;
  white-space: nowrap;
}
.process-dialog-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.process-attempt-history {
  display: grid;
  gap: 8px;
  padding: 0 13px 13px;
}
.process-attempt-history>strong {
  color: #cbd9e4;
  font-size: .72rem;
}
.process-attempt-history>div {
  display: grid;
  gap: 6px;
}
.process-attempt-item {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.015);
  font-size: .68rem;
}
.process-attempt-item strong {
  color: #e6eef5;
}
.process-attempt-item span {
  color: var(--muted);
}
.process-attempt-item code {
  white-space: normal;
  overflow-wrap: anywhere;
  color: #d8a8ad;
  font: inherit;
}
[data-live-analyze-needed-action]:disabled,[data-live-cleanup-action]:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.action-cell .inline-actions .status {
  white-space: nowrap;
}
@media (max-width:1000px) {
  .process-row>.process-actions {
    grid-column: 3;
    grid-row: 1/span 2;
    align-self: center;
  }
  .process-actions {
    display: grid;
    justify-items: stretch;
  }
  .process-actions .secondary-button {
    width: 100%;
  }
}
@media (max-width:560px) {
  .process-status-tabs {
    padding: 8px 12px;
  }
  .process-row>.process-actions {
    grid-column: 2;
    grid-row: auto;
    width: 100%;
  }
  .process-actions {
    grid-template-columns: 1fr;
  }
  .process-dialog-actions {
    display: grid;
  }
  .process-dialog-actions>* {
    width: 100%;
  }
  .process-dialog-actions .secondary-button,.process-dialog-actions .primary-button {
    width: 100%;
  }
}

/* MasterImage Alpha6 + HOTFIX1. Candidate CSS; append after app.css.
   Dashboard preview verified in Chrome; other routes require regression QA. */
:root {
  --bg: #10151e;
  --panel: #171f2b;
  --panel2: #1b2635;
  --line: #2a3544;
  --strong: #42536a;
  --text: #f1f5fa;
  --muted: #a6b3c5;
  --blue: #82b4ff;
  --blue2: #3479d7;
  --radius: 12px;
}
.app-shell {
  grid-template-columns: 220px minmax(0,1fr);
}
.sidebar {
  background: #131a25;
  padding: 24px 16px;
  border-color: var(--line);
}
.brand {
  gap: 10px;
}
.brand-mark {
  background: #377de0;
  box-shadow: none;
  border-radius: 11px;
  font-weight: 750;
}
.brand small {
  font-size: 12px;
}
.sidebar nav {
  margin-top: 30px;
  gap: 5px;
}
.nav-link {
  font-size: 14px;
  min-height: 44px;
  border-radius: 8px;
}
.nav-link.active {
  background: #243854;
  box-shadow: none;
  color: #dceaff;
}
.nav-icon {
  opacity: .85;
}
.topbar {
  min-height: 82px;
  padding: 20px 32px;
  background: var(--bg);
  backdrop-filter: none;
  border-color: var(--line);
}
.topbar h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.035em;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: .11em;
  color: var(--muted);
}
.content {
  padding: 26px 32px 48px;
}
.page-lead {
  font-size: 14px;
  line-height: 1.6;
}
.action-row {
  gap: 20px;
  margin-bottom: 24px;
}
.action-row>.page-lead {
  flex: 1;
  min-width: 0;
}
.action-row>.primary-button,.action-row>.secondary-button {
  flex-shrink: 0;
  white-space: nowrap;
}
.primary-button {
  background: #377de0;
  box-shadow: none;
  font-weight: 650;
}
.primary-button:hover {
  background: #4489ed;
  filter: none;
}
.secondary-button {
  background: #1d2939;
  font-weight: 600;
}
.primary-button,.secondary-button {
  border-radius: 8px;
  min-height: 42px;
  white-space: nowrap;
}
.panel {
  background: var(--panel);
  box-shadow: none;
  border-color: var(--line);
}
.panel-head {
  padding: 18px 20px;
  align-items: center;
}
.panel-head h2 {
  font-size: 16px;
  font-weight: 650;
}
.panel-head p {
  font-size: 13px;
  line-height: 1.55;
}
.text-button {
  font-weight: 600;
  font-size: 13px;
}
.metrics {
  gap: 12px;
}
.metric-card,.upload-summary article {
  background: var(--panel);
  padding: 17px 18px;
  border-radius: 12px;
  box-shadow: none;
}
.metric-card span {
  font-size: 13px;
  font-weight: 550;
}
.metric-card strong {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -.035em;
  margin: 9px 0 7px;
  line-height: 1.15;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.metric-card small {
  font-size: 12px;
  line-height: 1.4;
}
.process-metrics .metric-card {
  min-height: 118px;
}
[data-dashboard-live]>.metrics {
  grid-template-columns: repeat(5,minmax(0,1fr));
  margin-bottom: 24px;
}
[data-dashboard-live]>.split-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
[data-dashboard-live]>.split-grid>.panel {
  margin-bottom: 20px;
}
[data-dashboard-live] .compact-table {
  table-layout: auto;
}
[data-dashboard-live] .compact-table th {
  white-space: nowrap;
}
[data-dashboard-live] .compact-table th:first-child {
  width: 36%;
}
[data-dashboard-live] .empty-cell {
  padding: 24px 20px;
}
th {
  letter-spacing: .045em;
  font-size: 11px;
  font-weight: 650;
  background: #1c2735;
}
td {
  font-size: 13px;
}
th,td {
  padding: 14px 18px;
  border-color: var(--line);
  overflow-wrap: break-word;
}
tbody tr:hover td {
  background: #1d2939;
}
.status {
  font-weight: 600;
  font-size: 11px;
  padding: 4px 9px;
}
.status-active,.status-complete {
  color: #96e2ca;
  background: #1b3835;
  border-color: #31544c;
}
.mini-progress {
  height: 4px;
}
.mini-progress>span {
  background: #70baa8;
  box-shadow: none;
}
.progress-with-label {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
label {
  font-weight: 600;
}
input,select,textarea {
  background: #111a27;
  border-color: var(--strong);
  border-radius: 8px;
}
input::placeholder {
  color: #92a2b8;
}
.file-drop {
  background: #182536;
  border-color: #50627a;
  min-height: 152px;
}
.file-icon,.process-icon {
  background: #223249;
  box-shadow: none;
}
.process-metrics {
  gap: 12px;
}
.process-row {
  min-height: 80px;
  padding: 12px 16px;
}
.process-title {
  font-size: 14px;
}
.process-meta {
  font-size: 12px;
}
.process-pipeline {
  background: #172332;
}
.process-status-tabs {
  background: #141d29;
}
.process-status-tab {
  min-height: 36px;
}
.process-tab {
  font-size: 13px;
}
.process-dialog {
  background: var(--panel);
}
@media (min-width:1500px) {
  [data-dashboard-live]>.split-grid {
    grid-template-columns: minmax(0,.85fr) minmax(0,1.3fr);
    gap: 20px;
  }
}
@media (max-width:1050px) {
  [data-dashboard-live]>.metrics {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .topbar {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width:760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: min(82vw,280px);
  }
  .topbar {
    min-height: 72px;
    padding: 16px;
  }
  .topbar h1 {
    font-size: 23px;
  }
  .content {
    padding: 20px 16px 40px;
  }
  .metrics,[data-dashboard-live]>.metrics,.process-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .metric-card {
    padding: 15px;
  }
  .metric-card strong {
    font-size: 26px;
  }
  .process-metrics .metric-card {
    min-height: 110px;
  }
  .action-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .table-wrap {
    overflow-x: auto;
  }
  table {
    min-width: 560px;
    table-layout: auto;
  }
  th,td {
    padding: 12px 14px;
  }
  .panel-head {
    padding: 16px;
    align-items: flex-start;
  }
  .panel-head p {
    font-size: 12px;
  }
  .primary-button,.secondary-button {
    min-height: 44px;
  }
  [data-dashboard-live] .compact-table {
    min-width: 510px;
  }
  .process-row {
    min-height: 0;
  }
  .process-status-tab {
    min-height: 40px;
  }
  .process-tabs {
    padding-left: 12px;
  }
  .process-meta {
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.metric-card>span,.metric-card>small {
  display: block;
  line-height: 1.4;
}
.metric-card>strong {
  line-height: 1.15;
}
[data-dashboard-live] .panel:has(.empty-cell) thead {
  display: none;
}

/* Source-integrated refinements */
.series-search {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 20px;
}
.series-search label {
  flex: 1;
  max-width: 540px;
}
.series-search button {
  width: auto;
  flex: 0 0 auto;
}
th.series-name-column {
  width: 36%;
}
.metric-card strong.metric-date {
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.scraper-metrics:has(>article:nth-child(4):last-child) {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
@media (max-width:760px) {
  .series-search {
    flex-wrap: wrap;
    padding: 16px;
  }
  .series-search label {
    flex-basis: 100%;
    max-width: none;
  }
  .series-search button {
    width: auto;
  }
  .scraper-metrics:has(>article:nth-child(4):last-child) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
/* Alpha6: keep search results inside the form instead of clipping the popup. */
.series-picker {
  min-width: 0;
  width: 100%;
}
.series-picker-results {
  position: static;
  margin-top: 8px;
  max-height: 240px;
  overscroll-behavior: contain;
}
.series-picker-option {
  min-height: 44px;
  overflow-wrap: anywhere;
}
.scraper-connect-form[data-series-picker] {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
}
.scraper-connect-form[data-series-picker]>*,.scraper-connect-form[data-series-picker] input {
  min-width: 0;
  max-width: 100%;
}
.scraper-connect-form[data-series-picker]>.primary-button {
  align-self: start;
  justify-self: start;
}
@media (min-width:1600px) {
  .scraper-connect-form[data-series-picker] {
    grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1.3fr) minmax(0,.8fr) auto;
  }
}
@media (max-width:760px) {
  .scraper-connect-form[data-series-picker] {
    grid-template-columns: minmax(0,1fr);
  }
  .scraper-connect-form[data-series-picker]>.primary-button {
    width: 100%;
  }
}

/* VoraToon Temporary Export R1 */
.export-discover-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 20px;
}
.export-discover-form label {
  min-width: 0;
}
.export-chapter-panel {
  margin-top: 20px;
}
.export-chapter-table .select-cell {
  width: 52px;
  text-align: center;
}
.export-chapter-table input[type=checkbox] {
  width: 18px;
  height: 18px;
}
.export-status {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.export-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.export-status-head>div:first-child>span {
  color: var(--muted);
  font-size: 12px;
}
.export-status-head h2 {
  margin: 10px 0 5px;
}
.export-status-head p {
  margin: 0;
  color: var(--muted);
}
.export-progress {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
}
.export-progress .mini-progress {
  height: 7px;
}
.export-status>[data-export-current-chapter] {
  min-height: 18px;
  color: var(--muted);
}
@media (max-width:760px) {
  .export-discover-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .export-discover-form .primary-button {
    width: 100%;
  }
  .export-status-head {
    display: grid;
  }
  .export-status-head .button-group {
    width: 100%;
  }
  .export-status-head .button-group>* {
    flex: 1;
  }
}

.status-conflict,.status-unmatched,.status-rejected,.status-corrupt,.status-manifest_invalid {
  color: #ff929c;
  border-color: rgba(255,107,120,.35);
  background: rgba(255,107,120,.1);
}
.status-candidate,.status-unchecked,.status-missing {
  color: #ffd27f;
  border-color: rgba(245,187,85,.38);
  background: rgba(245,187,85,.1);
}
.status-matched,.status-healthy,.status-legacy,.status-masterimage {
  color: #96e2ca;
  background: #1b3835;
  border-color: #31544c;
}
.legacy-filter {
  margin: 0 0 16px;
}
.legacy-review-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.inline-review {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.inline-review .series-picker {
  min-width: 220px;
}
.inline-review input[type=search] {
  min-width: 220px;
}

.wp-catalog-picker {
  position: relative;
  grid-column: 1/-1;
  min-width: 0;
}
.wp-catalog-picker label {
  display: grid;
  gap: 7px;
}
.wp-catalog-results {
  position: static;
  margin-top: 8px;
  max-height: 300px;
  overflow: auto;
}
.wp-catalog-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.wp-catalog-option:hover,.wp-catalog-option:focus-visible {
  background: rgba(57,168,255,.12);
}
.wp-catalog-option[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.wp-catalog-option small {
  color: var(--muted);
}
.mapping-chain-note {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(57,168,255,.22);
  border-radius: 10px;
  background: rgba(57,168,255,.05);
  font-size: .8rem;
  color: var(--muted);
}
.mapping-chain-note strong {
  color: var(--text);
  white-space: nowrap;
}
.catalog-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
@media (max-width:760px) {
  .mapping-chain-note {
    flex-direction: column;
  }
  .catalog-summary {
    flex-direction: column;
  }
}

/* Daily Discovery + Daily Ops R1 */
.ops-section {
  display: grid;
  gap: 18px;
  margin: 4px 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121c28;
}
.ops-title {
  padding: 0;
}
.ops-scheduler-copy {
  margin-top: -10px;
  color: var(--muted);
  font-size: .78rem;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 10px;
}
.ops-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.ops-metric span,.ops-metric small {
  color: var(--muted);
  font-size: .7rem;
}
.ops-metric strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.ops-metric.is-warning {
  border-color: rgba(245,187,85,.48);
  background: rgba(245,187,85,.07);
}
.ops-metric.is-warning strong {
  color: #ffd27f;
}
.ops-warning-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.ops-warning,.ops-clear {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(245,187,85,.38);
  border-radius: 10px;
  color: var(--text);
  background: rgba(245,187,85,.06);
}
.ops-warning span,.ops-clear span {
  color: var(--muted);
  font-size: .75rem;
}
.ops-clear {
  grid-column: 1/-1;
  border-color: rgba(80,227,194,.24);
  background: rgba(80,227,194,.05);
}
.ops-panel {
  margin: 0;
}
.ops-panel table {
  min-width: 900px;
}
.ops-error {
  display: block;
  max-width: 280px;
  color: #ffb0b7;
  font-size: .74rem;
  line-height: 1.45;
}
.ops-control-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 10px;
  padding: 16px 20px;
}
.ops-control-grid>div {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.ops-control-grid span {
  color: var(--muted);
  font-size: .7rem;
}
.ops-control-grid strong {
  overflow-wrap: anywhere;
  font-size: .8rem;
}
.ops-good {
  color: #96e2ca;
}
.ops-muted {
  color: #ffd27f;
}
.ops-outbox-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.ops-outbox-counts strong {
  margin-left: 5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ops-metric-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color .15s ease,background .15s ease,transform .15s ease;
}
.ops-metric-link:hover {
  border-color: rgba(245,187,85,.72);
  background: rgba(245,187,85,.11);
  transform: translateY(-1px);
}
.ops-warning {
  position: relative;
  padding-right: 112px;
}
.ops-warning-action {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd27f !important;
  font-size: .7rem !important;
  font-weight: 700;
  white-space: nowrap;
}
.ops-review-panel {
  overflow: hidden;
}
.ops-review-list {
  display: grid;
}
.ops-review-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.ops-review-item:first-child {
  border-top: 0;
}
.ops-review-item>div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ops-review-item>div:first-child strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-review-item>div:first-child span,.ops-review-item>div:first-child small {
  color: var(--muted);
  font-size: .75rem;
}
.ops-review-item .button-group {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.promo-review-metrics {
  grid-template-columns: repeat(2,minmax(0,1fr));
  max-width: 620px;
}
.promo-review-queue table {
  min-width: 860px;
}
@media (max-width:1200px) {
  .ops-metrics {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .ops-control-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media (max-width:760px) {
  .ops-section {
    padding: 14px;
  }
  .ops-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ops-warning-list {
    grid-template-columns: 1fr;
  }
  .ops-control-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 14px;
  }
  .ops-title {
    align-items: flex-start;
  }
  .ops-title .status {
    flex-shrink: 0;
  }
  .ops-warning {
    padding-right: 14px;
  }
  .ops-warning-action {
    position: static;
    transform: none;
    margin-top: 4px;
  }
  .ops-review-item {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .ops-review-item .button-group {
    justify-content: stretch;
  }
  .ops-review-item .button-group>* {
    flex: 1;
  }
  .promo-review-metrics {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

/* Domain editor is a single field, separate from the source connection grid. */
.frontend-domain-form {
  display: grid;
  grid-template-columns: minmax(0,360px) auto;
  justify-content: start;
  align-items: end;
  gap: 8px 14px;
  padding: 22px;
}
.frontend-domain-form>label {
  min-width: 0;
}
.frontend-domain-form>button {
  justify-self: start;
  white-space: nowrap;
}
.frontend-domain-form>.field-help {
  grid-column: 1/-1;
  color: var(--muted);
}
@media (max-width:760px) {
  .frontend-domain-form {
    grid-template-columns: minmax(0,1fr);
    justify-content: stretch;
  }
  .frontend-domain-form>.field-help {
    grid-row: 2;
  }
  .frontend-domain-form>button {
    width: 100%;
    grid-row: 3;
    margin-top: 6px;
  }
}

.source-rename-form {
  display: grid;
  grid-template-columns: minmax(0,420px) auto;
  justify-content: start;
  align-items: end;
  gap: 8px 14px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.source-rename-form>label {
  min-width: 0;
}
.source-rename-form>button {
  justify-self: start;
  white-space: nowrap;
}
.source-rename-form>.field-help {
  grid-column: 1/-1;
  margin: 0;
}
@media (max-width:760px) {
  .source-rename-form {
    grid-template-columns: minmax(0,1fr);
    padding: 14px;
  }
  .source-rename-form>button {
    width: 100%;
  }
}

/* Media Alias Manager R1.2 - align with settings gutter; compact add action */
.media-alias-panel {
  overflow: hidden;
  margin-left: 22px;
  margin-right: 22px;
}
.media-alias-flow {
  margin: 18px 22px 0;
}
.media-alias-add-form {
  display: grid;
  grid-template-columns: minmax(0,720px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 18px 22px;
}
.media-alias-input-card {
  min-width: 0;
  width: 100%;
  padding: 16px 18px;
}
.media-alias-input-card .setting-input {
  min-width: 0;
}
.media-alias-input-card .setting-input input {
  width: min(100%,360px);
  max-width: 360px;
  min-width: 0;
}
.media-alias-add-actions {
  align-self: end;
  justify-self: end;
  align-items: flex-end;
  justify-content: flex-end;
}
.media-alias-add-actions .primary-button {
  height: auto;
  min-height: 44px;
  padding: 10px 18px;
  white-space: nowrap;
}
.media-alias-table {
  table-layout: fixed;
}
.media-alias-table th:nth-child(1),.media-alias-table td:nth-child(1) {
  width: 22%;
}
.media-alias-table th:nth-child(2),.media-alias-table td:nth-child(2) {
  width: 40%;
}
.media-alias-table th:nth-child(3),.media-alias-table td:nth-child(3) {
  width: 22%;
}
.media-alias-table th:nth-child(4),.media-alias-table td:nth-child(4) {
  width: 16%;
}
.media-alias-domain-cell {
  min-width: 0;
}
.media-alias-domain-cell strong,.media-alias-domain-cell small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-alias-status-cell small {
  overflow-wrap: anywhere;
}
.media-alias-checked-cell {
  white-space: nowrap;
}
.media-alias-action-cell form {
  margin: 0;
}
.media-alias-action-cell .secondary-button {
  width: 100%;
  max-width: 150px;
}
@media (max-width:900px) {
  .media-alias-add-form {
    grid-template-columns: minmax(0,1fr);
  }
  .media-alias-add-actions {
    justify-self: start;
    align-self: auto;
    justify-content: flex-start;
  }
  .media-alias-table th:nth-child(1),.media-alias-table td:nth-child(1) {
    width: 27%;
  }
  .media-alias-table th:nth-child(2),.media-alias-table td:nth-child(2) {
    width: 38%;
  }
  .media-alias-table th:nth-child(3),.media-alias-table td:nth-child(3) {
    width: 20%;
  }
  .media-alias-table th:nth-child(4),.media-alias-table td:nth-child(4) {
    width: 15%;
  }
}
@media (max-width:760px) {
  .media-alias-panel {
    margin-left: 0;
    margin-right: 0;
  }
  .media-alias-flow {
    margin: 14px 16px 0;
  }
  .media-alias-add-form {
    padding: 14px 16px;
  }
  .media-alias-input-card .setting-input input {
    width: 100%;
    max-width: none;
  }
  .media-alias-add-actions,.media-alias-add-actions .primary-button {
    width: 100%;
  }
  .media-alias-table-wrap {
    overflow-x: auto;
  }
  .media-alias-table {
    min-width: 680px;
    table-layout: fixed;
  }
}

/* Source navigation R1 — flyout only; content/panel widths intentionally reuse existing layout. */
.nav-source-group {
  position: relative;
}
.nav-source-group>.nav-link {
  position: relative;
}
.nav-caret {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition:
    transform .15s ease,color .15s ease;
}
.nav-submenu {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #131a25;
  box-shadow: 0 14px 36px rgba(0,0,0,.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-4px);
  transition:
    opacity .12s ease,transform .12s ease,visibility .12s ease;
  z-index: 45;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -10px;
  width: 10px;
  background: transparent;
}
.nav-source-group:hover>.nav-submenu,.nav-source-group:focus-within>.nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.nav-source-group:hover>.nav-link .nav-caret,.nav-source-group:focus-within>.nav-link .nav-caret {
  color: var(--text);
  transform: translateX(2px);
}
.nav-submenu .nav-link {
  min-height: 40px;
  font-size: 13px;
}
.provider-action-row>div:first-child {
  flex: 1;
  min-width: 0;
}
.provider-action-row>.button-group {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  width: auto;
}
.provider-action-row>.button-group>* {
  flex: 0 0 auto;
}
@media (max-width:1200px) {
  .provider-action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .provider-action-row>.button-group {
    flex-wrap: wrap;
    width: auto;
  }
}
@media (max-width:760px) {
  .nav-source-group>.nav-submenu {
    position: static;
    width: auto;
    margin: 2px 0 0;
    padding: 0 0 0 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-source-group>.nav-submenu::before {
    display: none;
  }
  .nav-source-group>.nav-submenu .nav-link {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .nav-caret {
    display: none;
  }
  .provider-action-row>.button-group {
    width: 100%;
  }
}

/* V1 review fixes — 2026-10-05: image coordinates, narrow cards and mobile navigation. */
.probe-image-viewport {
  height: 320px;
  flex: 0 0 auto;
  overflow: auto;
  background: #050a10;
  border-radius: 10px;
}
.probe-image-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.probe-image-stage .probe-image-link {
  height: auto;
  overflow: visible;
}
.detection-list {
  padding: 4px 10px 10px;
}
.detection-row {
  flex-direction: column;
  gap: 8px;
}
.detection-row>div:first-child {
  width: 100%;
  overflow-wrap: anywhere;
}
.detection-row>div:last-child {
  min-width: 0;
  max-width: 100%;
  justify-items: start;
}
.detection-row .status {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detection-row .inline-actions {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.detection-row .inline-actions form {
  margin: 0;
}
.sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sidebar-foot a.user-name {
  white-space: nowrap;
  line-height: 1.6;
}
.sidebar-foot a.user-name:hover,.sidebar-foot a.user-name[aria-current=page] {
  color: var(--text);
}
.sidebar-head .brand {
  flex: 1;
}
.menu-close {
  flex-shrink: 0;
  font-size: 24px;
  cursor: pointer;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0,0,0,.6);
  cursor: pointer;
}
.menu-backdrop[hidden] {
  display: none;
}
@media (max-width:760px) {
  .probe-image-viewport {
    height: 260px;
  }
  .sidebar {
    left: 0;
    height: 100vh;
    height: 100dvh;
    visibility: hidden;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .sidebar {
    visibility: visible;
  }
  .sidebar nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    margin-top: 20px;
  }
  .sidebar-foot {
    flex-shrink: 0;
    margin-top: 16px;
  }
}
@media (max-width:480px) {
  .probe-image-viewport {
    height: 220px;
  }
}

.chapter-anomaly-panel {
  padding: 20px;
  min-width: 0;
}
.chapter-anomaly-panel h2 {
  margin-top: 0;
}
.chapter-anomaly-panel .table-wrap {
  max-width: 100%;
}
.chapter-anomaly-panel .button-group {
  margin-top: 18px;
}
.chapter-anomaly-panel caption {
  text-align: left;
  white-space: normal;
}
@media (max-width:480px) {
  .chapter-anomaly-panel {
    padding: 16px;
  }
}

/* Admin navigation and optional configuration */
.nav-section-label {
  padding: 18px 12px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-disclosure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin: 0 0 18px;
}
.admin-disclosure>summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 650;
  line-height: 1.5;
}
.admin-disclosure>summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.admin-disclosure-body {
  padding: 0 16px 16px;
  min-width: 0;
}
.admin-disclosure-body>.panel:last-child {
  margin-bottom: 0;
}
.admin-settings-links h2 {
  margin-top: 0;
}
.admin-settings-links p {
  color: var(--muted);
}
.wp-optional-picker {
  grid-column: 1/-1;
}
.wp-optional-picker>.wp-catalog-picker {
  padding: 0 16px 16px;
}
@media (max-width:680px) {
  .panel-body,.narrow-panel {
    padding: 16px;
  }
  .admin-disclosure-body {
    padding: 0 10px 10px;
  }
  .admin-settings-links .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* GLOBAL COMPONENT: promo-v2.css */
.pv2-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px;
  color: var(--text);
}
.pv2-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.pv2-header h1 {
  margin: .35rem 0;
  letter-spacing: -.035em;
}
.pv2-header p {
  margin: 0;
  color: var(--muted);
}
.pv2-header>a,.pv2-header a {
  color: var(--blue);
}
.pv2-user {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
}
.pv2-notice {
  padding: 14px 16px;
  border-radius: 12px;
  margin: 0 0 18px;
  background: rgba(80,227,194,.08);
  border: 1px solid rgba(80,227,194,.28);
  color: #9af0d8;
}
.pv2-status-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.pv2-status-grid article,.pv2-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg,var(--panel2),var(--panel));
  box-shadow: 0 16px 50px rgba(0,0,0,.12);
  color: var(--text);
}
.pv2-status-grid article {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pv2-status-grid span {
  font-size: .82rem;
  color: var(--muted);
}
.pv2-status-grid strong {
  font-size: 1.6rem;
  letter-spacing: -.035em;
}
.pv2-status-grid em {
  font-style: normal;
  font-size: .8rem;
  color: var(--muted);
}
.pv2-status-grid em.ok {
  color: #71e5c5;
}
.pv2-status-grid em.warn {
  color: #ffd27f;
}
.pv2-panel {
  padding: 20px;
  margin-bottom: 20px;
}
.pv2-panel>h2 {
  margin-top: 0;
}
.pv2-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pv2-panel-head h2 {
  margin: 0 0 4px;
}
.pv2-panel-head p,.pv2-section-note {
  margin: 0;
  color: var(--muted);
}
.pv2-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
.pv2-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #09141f;
}
.pv2-card>img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #050a0f;
}
.pv2-card-body {
  padding: 14px;
}
.pv2-card-body h3 {
  margin: 0 0 10px;
}
.pv2-card-body p {
  margin: 5px 0;
  font-size: .9rem;
  color: var(--muted);
}
.pv2-card-body p strong {
  color: var(--text);
}
.pv2-explain {
  font-size: .8rem !important;
  line-height: 1.45;
}
.pv2-actions,.pv2-row,.pv2-range {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pv2-actions {
  margin-top: 12px;
}
.pv2-row {
  margin-top: 10px;
}
.pv2-row select {
  min-width: 180px;
}
.pv2-actions form {
  margin: 0;
}
.pv2-shell input,.pv2-shell select {
  font: inherit;
}
.pv2-guide {
  border-color: rgba(74,163,255,.35);
}
.pv2-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.pv2-steps>article {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1723;
}
.pv2-steps>article>b {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel2);
  border: 1px solid var(--strong);
}
.pv2-steps>article>div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.pv2-steps strong {
  font-size: 1rem;
}
.pv2-steps span {
  color: var(--text);
  font-size: .88rem;
}
.pv2-steps small {
  color: var(--muted);
  line-height: 1.45;
}
.pv2-steps .done {
  border-color: rgba(80,227,194,.32);
}
.pv2-steps .done>b {
  color: #71e5c5;
}
.pv2-steps .current {
  border-color: rgba(74,163,255,.45);
}
.pv2-steps .locked {
  opacity: .67;
}
.pv2-step-done {
  color: #71e5c5 !important;
  font-weight: 700;
}
.pv2-warning {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,185,83,.4);
  background: rgba(255,185,83,.08);
  color: #ffd27f;
  font-size: .82rem;
  line-height: 1.45;
}
.pv2-warning strong {
  color: #ffe3aa;
}
.pv2-policy {
  display: grid;
  grid-template-columns: minmax(130px,1fr) minmax(160px,1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #08131e;
}
.pv2-policy label {
  font-size: .75rem;
  color: var(--muted);
}
.pv2-policy input,.pv2-policy select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  border: 1px solid var(--strong);
  border-radius: 8px;
  padding: 8px;
  background: #09141f;
  color: var(--text);
}
.pv2-components {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 10px 0;
}
.pv2-component {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #07111a;
}
.pv2-component>img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #03070b;
}
.pv2-component>div {
  padding: 9px;
}
.pv2-component strong,.pv2-component span {
  display: block;
}
.pv2-component span {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: .76rem;
}
.pv2-component button {
  width: 100%;
  font-size: .78rem;
}
.pv2-family-tools {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(74,163,255,.32);
  border-radius: 13px;
  background: #08131e;
}
.pv2-family-tools>div:not(.pv2-or) {
  display: grid;
  gap: 8px;
}
.pv2-family-tools strong {
  font-size: .9rem;
}
.pv2-family-tools small {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}
.pv2-family-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pv2-family-heading>div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pv2-family-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(74,163,255,.32);
  border-radius: 999px;
  background: rgba(74,163,255,.08);
  color: #adddff !important;
  font-size: .7rem !important;
  font-weight: 700;
}
.pv2-family-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
}
.pv2-family-form input,.pv2-family-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--strong);
  border-radius: 8px;
  padding: 8px;
  background: #09141f;
  color: var(--text);
}
.pv2-family-form input::placeholder {
  color: #64798b;
}
.pv2-family-picker-form {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 9px;
}
.pv2-family-search-ui {
  display: none;
}
.pv2-js .pv2-family-search-ui {
  display: grid;
  gap: 8px;
}
.pv2-js .pv2-family-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.pv2-family-search-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .72rem;
}
.pv2-family-search-label input {
  padding: 10px 11px;
  border-color: rgba(74,163,255,.42);
  background: #06111b;
}
.pv2-family-search-label input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,163,255,.12);
}
.pv2-family-selection {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 2px 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #07111a;
}
.pv2-family-selection>span {
  grid-row: 1/3;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pv2-family-selection>strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
}
.pv2-family-selection>small {
  font-size: .7rem;
}
.pv2-family-selection.has-selection {
  border-color: rgba(80,227,194,.34);
  background: rgba(80,227,194,.045);
}
.pv2-family-selection.has-selection>span {
  color: #9af0d8;
  background: rgba(80,227,194,.09);
}
.pv2-family-results-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .7rem;
}
.pv2-family-clear {
  border: 0 !important;
  background: transparent !important;
  padding: 2px 0 !important;
  color: #8dcaff !important;
  font-size: .7rem !important;
}
.pv2-family-results {
  display: grid;
  gap: 5px;
  max-height: 286px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}
.pv2-family-option {
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left !important;
  padding: 9px 10px !important;
  border-color: var(--line) !important;
  background: #07111a !important;
}
.pv2-family-option>span {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.pv2-family-option strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}
.pv2-family-option small {
  font-size: .69rem;
}
.pv2-family-option em {
  font-style: normal;
  font-size: .68rem;
  color: #8dcaff;
}
.pv2-family-option:hover,.pv2-family-option:focus-visible {
  border-color: rgba(74,163,255,.65) !important;
  background: #0a1927 !important;
  outline: none;
}
.pv2-family-option.is-selected {
  border-color: rgba(80,227,194,.42) !important;
  background: rgba(80,227,194,.07) !important;
}
.pv2-family-option.is-selected em {
  color: #9af0d8;
  font-weight: 700;
}
.pv2-family-empty-search {
  padding: 10px 11px;
  border: 1px dashed var(--strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: .76rem;
}
.pv2-family-submit-row {
  display: flex;
  justify-content: flex-end;
}
.pv2-family-submit-row button {
  min-width: 150px;
}
.pv2-family-create {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #07111a;
}
.pv2-family-create summary {
  cursor: pointer;
  padding: 9px 10px;
  color: #adddff;
  font-size: .8rem;
  font-weight: 700;
  list-style: none;
}
.pv2-family-create summary::-webkit-details-marker {
  display: none;
}
.pv2-family-create summary:before {
  content: "+ ";
  color: #71e5c5;
}
.pv2-family-create[open] summary:before {
  content: "− ";
}
.pv2-family-create>div {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}
.pv2-or {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pv2-or:before,.pv2-or:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.pv2-or span {
  color: var(--muted);
}
.pv2-probe-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}
.pv2-probe {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #09141f;
}
.pv2-probe>img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #050a0f;
}
.pv2-probe>div {
  padding: 12px;
}
.pv2-probe strong,.pv2-probe span {
  display: block;
}
.pv2-probe strong {
  color: var(--text);
}
.pv2-probe span {
  font-size: .8rem;
  color: var(--muted);
  margin: 3px 0 10px;
}
.pv2-probe p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
}
.pv2-probe form {
  display: grid;
  gap: 8px;
}
.pv2-probe input,.pv2-probe select,.pv2-row select {
  border: 1px solid var(--strong);
  border-radius: 8px;
  padding: 8px;
  background: #09141f;
  color: var(--text);
}
.pv2-probe input::placeholder {
  color: #64798b;
}
.pv2-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pv2-range label {
  font-size: .75rem;
  color: var(--muted);
}
.pv2-range input {
  width: 100%;
  margin-top: 3px;
  box-sizing: border-box;
}
.pv2-table-wrap {
  overflow: auto;
}
.pv2-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.pv2-table-wrap th,.pv2-table-wrap td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pv2-table-wrap th {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pv2-table-wrap td {
  color: var(--text);
}
.pv2-table-wrap code {
  color: #adddff;
}
.pv2-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--strong);
  border-radius: 12px;
  background: rgba(255,255,255,.012);
}
.pv2-empty.compact {
  padding: 12px;
  font-size: .8rem;
  text-align: left;
}
@media (max-width:1100px) {
  .pv2-status-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .pv2-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .pv2-probe-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .pv2-steps {
    grid-template-columns: 1fr;
  }
  .pv2-policy {
    grid-template-columns: 1fr 1fr;
  }
  .pv2-policy button {
    grid-column: 1/-1;
  }
}
@media (max-width:680px) {
  .pv2-shell {
    padding: 16px;
  }
  .pv2-header {
    display: block;
  }
  .pv2-user {
    display: inline-block;
    margin-top: 10px;
  }
  .pv2-status-grid,.pv2-grid,.pv2-probe-grid {
    grid-template-columns: 1fr;
  }
  .pv2-table-wrap table {
    min-width: 560px;
  }
  .pv2-policy,.pv2-components {
    grid-template-columns: 1fr;
  }
  .pv2-family-form {
    grid-template-columns: 1fr;
  }
}
.pv2-training-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.pv2-training-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.pv2-training-confirm input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}
.pv2-training-form small {
  line-height: 1.5;
  color: var(--muted,#a6b3c5);
}

/* Shared admin shell; each library view stays bounded. */
.content .pv2-shell {
  max-width: none;
  padding: 0;
  min-width: 0;
}
.pv2-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.pv2-tabs a {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  background: var(--panel);
}
.pv2-tabs a[aria-current=page] {
  border-color: var(--blue);
  background: rgba(74,163,255,.12);
  color: var(--text);
}
.pv2-tabs span {
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.pv2-search {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pv2-search label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 160px;
  color: var(--muted);
}
.pv2-search input {
  width: 100%;
  border: 1px solid var(--strong);
  border-radius: 9px;
  padding: 10px;
  background: var(--panel);
  color: var(--text);
}
.pv2-shell .pv2-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.pv2-shell .pv2-probe-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-top: 18px;
}
.pv2-shell .pv2-probe>img {
  height: 170px;
}
.pv2-shell .pv2-table-wrap {
  max-width: 100%;
}
.pv2-shell .pv2-table-wrap td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.pv2-shell .pv2-table-wrap th {
  white-space: nowrap;
}
.pv2-shell .pv2-panel,.pv2-shell .pv2-card,.pv2-shell .pv2-probe {
  min-width: 0;
}
.pv2-shell .pv2-card-body h3,.pv2-shell .pv2-probe strong {
  overflow-wrap: anywhere;
}
.pv2-shell .list-pager {
  margin-top: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width:1100px) {
  .pv2-shell .pv2-grid,.pv2-shell .pv2-probe-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:680px) {
  .pv2-shell .pv2-grid,.pv2-shell .pv2-probe-grid {
    grid-template-columns: 1fr;
  }
  .pv2-shell .pv2-status-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .pv2-status-grid article {
    padding: 12px;
  }
  .pv2-status-grid strong {
    font-size: 1.25rem;
  }
  .pv2-panel {
    padding: 12px;
  }
  .pv2-tabs a {
    flex: 1 1 auto;
    text-align: center;
  }
  .pv2-search label {
    min-width: 0;
    flex-basis: 100%;
  }
}

.pv2-grid>.pv2-empty {
  grid-column: 1/-1;
}

/* Picker visibility must win over its grid/flex component layout. */
[data-family-picker] [hidden] {
  display: none !important;
}

/* One-step promo review: keep manual art verification beside the chosen family. */
.pv2-shell .pv2-one-step-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(98,187,159,.38);
  border-radius: 9px;
  background: rgba(38,117,95,.08);
  color: #cee5db;
  font-size: 12px;
  line-height: 1.5;
}
.pv2-shell .pv2-one-step-confirm input[type=checkbox] {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
}
.pv2-shell .pv2-one-step-confirm span {
  min-width: 0;
  line-height: 1.5;
}
.pv2-shell .pv2-family-submit-row .primary-button {
  min-height: 43px;
  padding: 10px 15px;
}
@media (max-width:540px) {
  .pv2-shell .pv2-family-submit-row {
    justify-content: stretch;
  }
  .pv2-shell .pv2-family-submit-row button {
    width: 100%;
    min-width: 0;
  }
}

/* GLOBAL COMPONENT: promo-visual-v3.css */
/* Visual Pustaka V3. Scoped selectors: never restyle global admin UI. */
.pv2-shell .pv3-gallery {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 18px 0;
}
.pv2-shell .pv3-tile,.pv2-shell .pv3-family-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #09141f;
  display: flex;
  flex-direction: column;
}
.pv2-shell .pv3-image-button {
  appearance: none;
  border: 0;
  background: #040a11;
  color: inherit;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 150px;
  max-height: 240px;
  overflow: hidden;
  padding: 0;
  width: 100%;
  text-align: center;
}
.pv2-shell .pv3-image-button img {
  width: 100%;
  height: 200px;
  max-height: 240px;
  object-fit: contain;
  display: block;
}
.pv2-shell .pv3-image-button span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 8px;
  color: #edf6ff;
  background: rgba(4,10,17,.88);
  border: 1px solid rgba(255,255,255,.3);
}
.pv2-shell .pv3-image-button:hover,.pv2-shell .pv3-image-button:focus-visible {
  outline: 2px solid #91c8ff;
  outline-offset: -3px;
}
.pv2-shell .pv3-image-button:hover img {
  filter: brightness(1.13);
}
.pv2-shell .pv3-tile-content {
  padding: 12px 13px 14px;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  flex: 1;
}
.pv2-shell .pv3-tile h3 {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  color: var(--text);
  margin: 0;
}
.pv2-shell .pv3-tile p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.pv2-shell .pv3-tile small {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.pv2-shell .pv3-tile details {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  font-size: 12px;
}
.pv2-shell .pv3-tile summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #a6d1fb;
  line-height: 1.5;
}
.pv2-shell .pv3-tile dl {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 6px;
  font-size: 11px;
  margin: 8px 0;
}
.pv2-shell .pv3-tile dt {
  color: var(--muted);
}
.pv2-shell .pv3-tile dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pv2-shell .pv3-tile code {
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 10px;
  color: #adddff;
}
.pv2-shell .pv3-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 9px 10px;
  text-decoration: none;
  margin-top: auto;
}
.pv2-shell .pv3-family-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin: 16px 0;
}
.pv2-shell .pv3-family-card {
  padding: 13px;
  gap: 10px;
}
.pv2-shell .pv3-family-card.is-selected {
  border-color: #7dbdff;
  box-shadow: 0 0 0 1px rgba(125,189,255,.25);
}
.pv2-shell .pv3-family-header {
  text-decoration: none;
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--text);
}
.pv2-shell .pv3-family-header h3 {
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.pv2-shell .pv3-family-header span {
  color: var(--muted);
  font-size: 12px;
}
.pv2-shell .pv3-family-thumbs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  min-height: 116px;
}
.pv2-shell .pv3-family-thumbs .pv3-image-button {
  min-height: 112px;
  max-height: 116px;
  border-radius: 7px;
}
.pv2-shell .pv3-family-thumbs img {
  height: 116px;
}
.pv2-shell .pv3-family-thumbs .pv3-image-button span {
  display: none;
}
.pv2-shell .pv3-no-thumb {
  font-size: 12px;
  color: var(--muted);
  align-self: center;
  grid-column: 1/-1;
}
.pv2-shell .pv3-family-count {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.pv2-shell .pv3-family-link {
  text-align: center;
  display: block;
  text-decoration: none;
  font-size: 12px;
  margin-top: auto;
}
.pv2-shell .pv3-expanded {
  margin: 24px 0 0;
  border: 1px solid rgba(125,189,255,.4);
  border-radius: 14px;
  background: #07131f;
  padding: 15px;
  scroll-margin: 20px;
}
.pv2-shell .pv3-expanded header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.pv2-shell .pv3-expanded h3 {
  font-size: 16px;
  margin: 0;
}
.pv2-shell .pv3-expanded p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.pv2-shell .pv3-release-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.pv2-shell .pv3-release-item {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  background: #081521;
  text-decoration: none;
  color: var(--text);
}
.pv2-shell .pv3-release-item:hover,.pv2-shell .pv3-release-item:focus-visible,.pv2-shell .pv3-release-item.is-selected {
  border-color: #81beff;
  background: #0b2032;
  outline: none;
}
.pv2-shell .pv3-release-number {
  font-weight: 750;
  color: #abdaff;
  font-size: 17px;
}
.pv2-shell .pv3-release-item>span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.pv2-shell .pv3-release-item strong {
  font-size: 13px;
}
.pv2-shell .pv3-release-item small {
  font-size: 11px;
  color: var(--muted);
}
.pv2-shell .pv3-release-item code {
  color: #8fbce4;
  font-size: 11px;
}
.pv2-shell .pv3-release-open {
  font-size: 12px;
  color: #a1d2ff;
}
.pv2-shell .pv3-pager {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.pv2-shell .pv3-pager a {
  color: #a1d2ff;
}
.pv2-shell .pv3-exact-note {
  border: 1px solid rgba(74,202,152,.35);
  padding: 12px;
  border-radius: 10px;
  color: #a7ebc9 !important;
  background: rgba(74,202,152,.07);
}
.pv2-shell .pv3-tile.is-archived {
  opacity: .7;
}
.pv2-shell .pv3-archive {
  border: 1px solid rgba(245,113,113,.33);
  border-radius: 9px;
  padding: 8px;
  margin-top: 8px;
}
.pv2-shell .pv3-archive form {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}
.pv2-shell .pv3-archive label {
  display: flex;
  gap: 8px;
  font-size: 12px;
  align-items: flex-start;
}
.pv2-shell .pv3-archive p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0;
}
.pv2-shell .pv3-archive label:has(select),.pv2-shell .pv3-archive label:has(textarea) {
  display: grid;
  gap: 5px;
}
.pv2-shell .pv3-archive select,.pv2-shell .pv3-archive textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--strong);
  border-radius: 8px;
  background: #09141f;
  color: var(--text);
  padding: 9px;
  font: inherit;
  font-size: 12px;
}
.pv2-shell .pv3-archive button {
  width: 100%;
  min-height: 40px;
}

.pv2-shell .pv3-negative-capture {
  margin-top: 10px;
  border: 1px solid rgba(143,188,238,.32);
  border-radius: 11px;
  background: #0b1d2b;
}
.pv2-shell .pv3-negative-capture>details>summary {
  cursor: pointer;
  padding: 11px;
  color: #adddff;
  font-size: 12px;
  font-weight: 700;
}
.pv2-shell .pv3-negative-capture>details[open]>summary {
  border-bottom: 1px solid var(--line);
}
.pv2-shell .pv3-negative-capture>details>p {
  padding: 0 12px;
  line-height: 1.55;
  font-size: 12px;
  color: var(--muted);
}
.pv2-shell .pv3-negative-capture form {
  padding: 12px;
  display: grid;
  gap: 11px;
}
.pv2-shell .pv3-negative-capture form>label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.pv2-shell .pv3-negative-capture input:not([type=checkbox]),.pv2-shell .pv3-negative-capture textarea {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--strong);
  border-radius: 8px;
  color: var(--text);
  background: #09141f;
  padding: 9px;
  font: inherit;
  font-size: 13px;
}
.pv2-shell .pv3-negative-capture .pv3-crop-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.pv2-shell .pv3-crop-fields label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.pv2-shell .pv3-negative-capture .pv3-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
}
.pv2-shell .pv3-negative-capture input[type=checkbox],.pv2-shell .pv3-archive input[type=checkbox] {
  flex: 0 0 17px;
  height: 17px;
  width: 17px;
}
.pv2-shell .pv3-negative-capture small {
  color: var(--muted);
  line-height: 1.5;
  font-size: 11px;
}
.pv3-lightbox {
  padding: 0;
  border: 1px solid rgba(142,187,243,.43);
  border-radius: 15px;
  background: #08131f;
  color: #eff6ff;
  width: min(96vw,1050px);
  max-height: 94vh;
  overflow: hidden;
  box-shadow: 0 35px 140px rgba(0,0,0,.85);
}
.pv3-lightbox::backdrop {
  background: rgba(1,5,12,.88);
}
.pv3-dialog-head,.pv3-dialog-foot {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0d1b2a;
}
.pv3-dialog-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-size: 14px;
}
.pv3-dialog-head button {
  flex: none;
}
.pv3-dialog-foot span {
  color: #aec0cf;
  font-size: 12px;
}
.pv3-dialog-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  max-height: 78vh;
  padding: 10px;
  background: #03080f;
}
.pv3-dialog-body img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.pv3-crop-dialog {
  max-width: 800px;
}
.pv3-crop-dialog>p {
  font-size: 12px;
  line-height: 1.45;
  padding: 0 16px;
  color: #bacbda;
}
.pv3-crop-scroll {
  overflow: auto;
  max-height: 67vh;
  padding: 8px;
  background: #050b12;
  touch-action: pan-y;
}
.pv3-crop-surface {
  margin: 0 auto;
  max-width: 600px;
  position: relative;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.pv3-crop-surface img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.pv3-crop-overlay {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  border-top: 3px solid #54ebbf;
  border-bottom: 3px solid #54ebbf;
  background: rgba(55,224,181,.19);
  box-sizing: border-box;
}
@media (max-width:1150px) {
  .pv2-shell .pv3-gallery {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .pv2-shell .pv3-family-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px) {
  .pv2-shell .pv3-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .pv2-shell .pv3-release-item {
    grid-template-columns: 55px minmax(0,1fr);
    gap: 6px 12px;
  }
  .pv2-shell .pv3-release-item code,.pv2-shell .pv3-release-open {
    grid-column: 2;
    justify-self: start;
  }
  .pv3-dialog-foot {
    flex-wrap: wrap;
  }
}
@media (max-width:470px) {
  .pv2-shell .pv3-gallery,.pv2-shell .pv3-family-grid {
    grid-template-columns: 1fr;
  }
  .pv2-shell .pv3-release-item {
    padding: 10px;
  }
  .pv2-shell .pv3-family-thumbs .pv3-image-button {
    min-height: 140px;
  }
  .pv2-shell .pv3-family-thumbs img {
    height: 140px;
  }
  .pv3-dialog-head,.pv3-dialog-foot {
    padding: 9px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .pv2-shell .pv3-image-button:hover img {
    filter: none;
  }
}

/* GLOBAL COMPONENT: promo-family-ux.css */
/* Pustaka Iklan — focused family detail and compact searchable picker.
 * All selectors are scoped; no global admin layout restyling. */
.pv2-shell [data-pv3-family-panel] {
  scroll-margin-top: 120px;
}
.pv2-shell [data-pv3-family-panel].is-pv3-navigating {
  opacity: .8;
  pointer-events: none;
}
.pv2-shell .pv3-loading-status {
  padding: 10px 12px;
  border: 1px solid rgba(125,189,255,.38);
  border-radius: 10px;
  color: #b6dcff;
  background: #0a1a2b;
  margin: 0 0 12px;
  font-size: 13px;
}
.pv2-shell .pv3-family-focused {
  min-width: 0;
  scroll-margin-top: 120px;
}
.pv2-shell .pv3-focus-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.pv2-shell .pv3-focus-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 40px;
}
.pv2-shell .pv3-focus-id {
  font-size: 12px;
  letter-spacing: .03em;
  color: #9cb7d2;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
}
.pv2-shell .pv3-focus-header {
  display: block;
  border: 1px solid rgba(125,189,255,.35);
  background: linear-gradient(120deg,#0b2134,#071421);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.pv2-shell .pv3-focus-header>div {
  min-width: 0;
}
.pv2-shell .pv3-focus-eyebrow {
  display: block;
  color: #8fbcdf;
  font-size: 11px;
  letter-spacing: .095em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 5px;
}
.pv2-shell .pv3-focus-header h3 {
  font-size: clamp(17px,1.7vw,23px);
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: #e8f3ff;
  margin: 0 0 7px;
}
.pv2-shell .pv3-focus-header h3:focus {
  outline: none;
}
.pv2-shell .pv3-focus-header p {
  font-size: 12px;
  line-height: 1.5;
  color: #b1c6d9;
  margin: 0;
}
.pv2-shell .pv3-family-focused .pv3-focused-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 0;
}
.pv2-shell .pv3-move-picker-ui[hidden] {
  display: none !important;
}
.pv2-shell [data-pv3-move-form][data-pv3-move-ready="1"] .pv3-move-native-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.pv2-shell .pv3-move-picker-ui {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.pv2-shell .pv3-move-picker-caption {
  font-size: 12px;
  color: #b9c9db;
  font-weight: 650;
}
.pv2-shell .pv3-move-picker-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: left;
  line-height: 1.45;
  min-height: 46px;
  padding: 10px 12px;
  background: #0a2232;
  border: 1px solid #466c91;
  color: #d4e7fb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.pv2-shell .pv3-move-picker-trigger:hover,.pv2-shell .pv3-move-picker-trigger:focus-visible {
  border-color: #98d4ff;
  outline: 2px solid rgba(115,191,245,.22);
  outline-offset: 1px;
  background: #0c283d;
}
.pv2-shell .pv3-move-picker-trigger.has-family {
  border-color: rgba(91,211,168,.68);
  color: #b5efdb;
  background: #0c292b;
}
.pv2-shell .pv3-move-picker-trigger>span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pv2-shell .pv3-picker-chevron {
  flex: none;
  color: #8cc7fa;
  font-size: 19px;
  line-height: 1;
}
.pv2-shell .pv3-move-picker-help {
  font-size: 11px;
  line-height: 1.5;
  color: #9bb0c4;
}
.pv2-shell .pv3-move button[type="submit"]:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pv3-family-choice-dialog {
  color: #eaf3ff;
  border: 1px solid #55708e;
  background: #091724;
  border-radius: 16px;
  width: min(92vw,620px);
  max-width: 620px;
  max-height: min(88dvh,760px);
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 20px 80px rgba(0,0,0,.72);
  overflow: hidden;
}
.pv3-family-choice-dialog::backdrop {
  background: rgba(0,5,14,.81);
}
.pv3-chooser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px;
  border-bottom: 1px solid #2b455b;
  background: #0d1e30;
}
.pv3-chooser-head>div {
  min-width: 0;
}
.pv3-chooser-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fbade;
  margin-bottom: 5px;
}
.pv3-chooser-head h2 {
  font-size: 19px;
  line-height: 1.4;
  color: #ecf6ff;
  margin: 0 0 6px;
}
.pv3-chooser-head p {
  font-size: 12px;
  line-height: 1.5;
  color: #9eb5cb;
  margin: 0;
  overflow-wrap: anywhere;
}
.pv3-chooser-close {
  appearance: none;
  flex: none;
  border: 1px solid #46627d;
  border-radius: 9px;
  background: #122a3e;
  color: #c8def0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.pv3-chooser-body {
  padding: 15px 18px 8px;
  overflow-y: auto;
  max-height: calc(min(88dvh,760px) - 174px);
  scrollbar-width: thin;
}
.pv3-chooser-body>label {
  display: block;
  font-size: 12px;
  color: #bcd1e4;
  font-weight: 650;
  margin-bottom: 7px;
}
.pv3-chooser-searchrow {
  display: flex;
  align-items: stretch;
  gap: 7px;
}
.pv3-chooser-searchrow input {
  min-width: 0;
  flex: 1;
  width: 100%;
  background: #05111d;
  color: #edf6ff;
  border: 1px solid #527395;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.pv3-chooser-searchrow input:focus {
  border-color: #96d2ff;
  box-shadow: 0 0 0 3px rgba(110,179,238,.16);
}
.pv3-chooser-searchrow button {
  border: 1px solid #3e5d79;
  border-radius: 9px;
  color: #a8d6fb;
  background: #0e263a;
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
}
.pv3-chooser-count {
  font-size: 11px;
  color: #a7bbd0;
  margin: 12px 0 8px;
  line-height: 1.5;
}
.pv3-chooser-results {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
}
.pv3-chooser-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #304a61;
  border-radius: 9px;
  background: #0b1d2b;
  color: #edf5ff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.pv3-chooser-option span {
  font-weight: 650;
  overflow-wrap: anywhere;
  min-width: 0;
  line-height: 1.45;
}
.pv3-chooser-option small {
  flex: none;
  font-size: 11px;
  color: #98c8f2;
  font-weight: 700;
}
.pv3-chooser-option:hover,.pv3-chooser-option:focus-visible {
  outline: none;
  background: #14334b;
  border-color: #90cbff;
}
.pv3-chooser-option.is-selected {
  background: #10372f;
  border-color: #55bea1;
}
.pv3-chooser-empty {
  color: #afc3d7;
  font-size: 12px;
  padding: 12px;
  border: 1px dashed #41617b;
  border-radius: 9px;
}
.pv3-chooser-empty[hidden] {
  display: none;
}
.pv3-chooser-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid #2b455b;
  background: #0d1e30;
}
.pv3-chooser-foot span {
  font-size: 11px;
  color: #9cb5cd;
}
.pv3-chooser-foot button {
  width: auto;
  min-width: 75px;
  cursor: pointer;
}
@media (max-width:1050px) {
  .pv2-shell .pv3-family-focused .pv3-focused-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:680px) {
  .pv2-shell .pv3-family-focused .pv3-focused-grid {
    grid-template-columns: 1fr;
  }
  .pv2-shell .pv3-focus-header {
    padding: 13px;
  }
  .pv2-shell .pv3-focus-nav {
    align-items: stretch;
  }
  .pv2-shell .pv3-focus-back {
    flex: 1;
  }
  .pv3-family-choice-dialog {
    width: calc(100vw - 20px);
    max-height: 86dvh;
  }
  .pv3-chooser-head {
    padding: 13px 14px;
  }
  .pv3-chooser-head h2 {
    font-size: 17px;
  }
  .pv3-chooser-body {
    padding: 12px 12px 4px;
    max-height: calc(86dvh - 173px);
  }
  .pv3-chooser-foot {
    padding: 10px 12px;
  }
  .pv3-chooser-foot span {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .pv2-shell .pv3-family-focused * {
    scroll-behavior: auto !important;
  }
}

/* Safe deletion appears only on database-verified truly empty families. */
.pv2-shell .pv3-family-delete {
  min-width: 0;
  margin-top: 12px;
  border: 1px solid rgba(240,123,123,.35);
  border-radius: 11px;
  padding: 9px 11px;
  background: #180f18;
}
.pv2-shell .pv3-family-card>.pv3-family-delete {
  margin-top: 0;
}
.pv2-shell .pv3-family-delete>summary {
  color: #ffb4b4;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.5;
}
.pv2-shell .pv3-family-delete p {
  font-size: 12px;
  line-height: 1.5;
  color: #dbc2c2;
  margin: 10px 0;
}
.pv2-shell .pv3-family-delete form {
  display: grid;
  gap: 11px;
  margin: 12px 0 0;
}
.pv2-shell .pv3-family-delete label {
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.pv2-shell .pv3-family-delete input[type=checkbox] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
}
.pv2-shell .pv3-family-delete button {
  min-height: 40px;
  width: 100%;
  cursor: pointer;
}
.pv2-shell .pv3-move-success {
  margin: 0 0 12px !important;
  padding: 11px 13px !important;
  color: #b7eed9 !important;
  border: 1px solid rgba(106,217,162,.44);
  background: #0e2b26;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.pv2-shell .pv3-move-error {
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(239,117,117,.6);
  border-radius: 8px;
  background: #371821;
  color: #ffd3d3 !important;
  font-size: 12px;
  line-height: 1.5;
}
.pv2-shell [data-pv3-move-form][data-pv3-moving="1"] {
  opacity: .77;
  pointer-events: none;
}

/* GLOBAL COMPONENT: series-metadata.css */
.series-metadata {
  display: grid;
  gap: 22px;
  max-width: 1320px;
  min-width: 0;
}
.series-metadata .panel {
  margin: 0;
}
.sm-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.sm-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(22px,2.3vw,30px);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.sm-heading p {
  margin: 0;
  max-width: 740px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.sm-heading>.secondary-button {
  flex-shrink: 0;
}
.sm-kicker {
  color: #82baff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.sm-search-panel,.sm-editor,.sm-review-confirm {
  padding: 24px;
}
.sm-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}
.sm-step {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid #315979;
  background: #122d42;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  color: #91cfff;
}
.sm-section-heading h3,.sm-review-confirm h3 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.015em;
  margin: 0 0 5px;
}
.sm-section-heading p,.sm-review-confirm>p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.sm-search-bar {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.sm-search-bar>label {
  flex: 1;
  min-width: 0;
}
.sm-search-bar input {
  min-height: 46px;
}
.sm-search-bar button {
  min-height: 46px;
  white-space: nowrap;
}
.sm-search-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 13px 0 0;
}
.sm-results {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.sm-results:empty {
  margin: 0;
}
.sm-results[aria-busy=true] {
  opacity: .65;
}
.sm-result {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.016);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition:
    background .14s,border-color .14s;
}
.sm-result:hover {
  border-color: #466785;
  background: rgba(57,168,255,.055);
}
.sm-result-icon {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  height: 46px;
  border-radius: 6px;
  background: #1a2c3d;
  color: #80a6c6;
  font-size: 22px;
}
.sm-result-copy {
  min-width: 0;
  flex: 1;
}
.sm-result strong {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.sm-result small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.sm-result-alternatives {
  max-height: 3.3em;
  overflow: hidden;
}
.sm-result-action {
  font-size: 11px;
  font-weight: 650;
  color: #8fc6ff;
  white-space: nowrap;
}
.sm-search-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.sm-search-pagination span {
  font-size: 11px;
  color: var(--muted);
}
.sm-search-pagination button {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 11px;
}
.sm-provider-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 20px 0 0;
}
.sm-provider-note a,.sm-source-link {
  color: #94c1f3;
  text-decoration: underline;
  text-decoration-color: rgba(148,193,243,.3);
  text-underline-offset: 3px;
}
.sm-provider-note a:hover,.sm-source-link:hover {
  text-decoration-color: currentColor;
}
.sm-preview {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #365672;
  border-radius: 12px;
  background: #0a1722;
  scroll-margin-top: 130px;
}
.sm-preview-main {
  display: grid;
  grid-template-columns: 124px minmax(0,1fr);
  gap: 22px;
  align-items: start;
}
.sm-cover {
  position: relative;
  min-width: 0;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #132331;
  border: 1px solid #263f52;
  border-radius: 9px;
}
.sm-cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  text-align: center;
  color: #7591a5;
  padding: 12px;
}
.sm-cover img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background: #132331;
}
.sm-preview-copy h3 {
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}
.sm-preview-facts {
  margin: 0 0 6px;
  color: #bacadc;
  font-size: 12px;
}
.sm-source-link {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.sm-original-label {
  font-size: 11px;
  color: #94a9bf;
  margin: 19px 0 7px;
}
.sm-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.85;
  margin: 8px 0 0;
  color: #c9d7e4;
}
.sm-preview .sm-description {
  max-height: 260px;
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 8px;
}
.sm-details-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px 24px;
  margin: 22px 0 0;
}
.sm-details-list>div {
  min-width: 0;
}
.sm-details-list dt {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .035em;
  color: var(--muted);
  margin-bottom: 5px;
}
.sm-details-list dd {
  margin: 0;
  color: #c4d3e1;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.sm-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.sm-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(80,227,194,.24);
  border-radius: 9px;
  background: rgba(80,227,194,.055);
  font-size: 12px;
  color: #95dbc7;
  overflow-wrap: anywhere;
}
.sm-text-button {
  border: 0;
  padding: 5px 0;
  background: none;
  color: #94c1f3;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sm-selection .sm-text-button {
  white-space: nowrap;
  flex-shrink: 0;
  color: #9cccc2;
}
.sm-required,.sm-optional {
  display: inline;
  font-size: 10px;
  font-weight: 450;
  color: var(--muted);
  margin-left: 4px;
}
.sm-editor label,.sm-edit-fields label {
  font-size: 12px;
  font-weight: 650;
}
.sm-editor label>small,.sm-edit-fields label>small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
}
.sm-field-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}
.sm-field-grid>label {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}
.sm-description-fields {
  display: grid;
  gap: 18px;
}
.sm-description-fields>label {
  display: grid;
  gap: 7px;
}
.sm-editor textarea,.sm-edit-fields textarea,.sm-editor input,.sm-edit-fields input {
  min-width: 0;
  width: 100%;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: #08141f;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}
.sm-editor textarea,.sm-edit-fields textarea {
  resize: vertical;
  min-height: 95px;
}
.sm-editor textarea:focus-visible,.sm-edit-fields textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.sm-editor textarea[readonly],.sm-edit-fields textarea[readonly] {
  background: #0b1824;
  color: #9fafbf;
}
.sm-original-description {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
}
.sm-original-description>summary,.sm-source-fields>summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #b7c9db;
  line-height: 1.7;
}
.sm-original-description>summary>span,.sm-source-fields>summary>span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
}
.sm-original-description>label {
  display: block;
  margin-top: 12px;
}
.sm-original-description>small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.sm-source-fields {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.sm-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.sm-form-footer>p {
  font-size: 11px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
  margin: 0;
}
.sm-form-footer .form-actions {
  flex-shrink: 0;
}
.sm-editor {
  scroll-margin-top: 125px;
}
.sm-edit-fields {
  min-width: 0;
  margin: 4px 0 0;
  padding: 19px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.sm-edit-fields legend {
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px 0 0;
}
.sm-edit-fields>.sm-provider-note {
  margin: 0 0 16px;
}
.sm-detail {
  padding: 24px;
  margin: 0 0 22px !important;
}
.sm-detail-main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.sm-detail-main>.sm-cover {
  flex: 0 0 126px;
}
.sm-detail-copy {
  flex: 1;
  min-width: 0;
}
.sm-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sm-detail-title h2 {
  font-size: 17px;
  margin: 0;
}
.sm-detail-title .sm-provider-note {
  margin: 0;
}
.sm-detail .sm-original-description {
  margin-top: 18px;
}
.sm-detail .sm-details-list {
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sm-detail-foot {
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.sm-muted {
  color: var(--muted);
  font-size: 12px;
}
.sm-error {
  color: #ffacb3 !important;
}
.sm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sm-catalog-start>summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 13px;
}
.sm-catalog-start>summary>span {
  color: var(--muted);
  font-size: 11px;
}
.sm-start-form {
  display: grid;
  grid-template-columns: repeat(3,minmax(100px,1fr)) auto;
  gap: 15px;
  align-items: end;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}
.sm-start-form>label {
  display: grid;
  gap: 7px;
  color: #c3d1dd;
  font-size: 11px;
  min-width: 0;
}
.sm-start-form input {
  min-height: 43px;
}
.sm-start-form>p {
  grid-column: 1/4;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.sm-start-form>.sm-text-button {
  justify-self: end;
}
.sm-catalog-run {
  padding: 22px;
}
.sm-run-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.sm-run-label {
  font-size: 10px;
  color: var(--muted);
}
.sm-run-heading h3 {
  margin: 5px 0 7px;
  font-size: 19px;
  letter-spacing: -.02em;
}
.sm-run-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.sm-run-controls {
  display: flex;
  gap: 8px;
}
.sm-run-controls button {
  font-size: 12px;
}
.sm-progress {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 23px;
}
.sm-progress progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #142738;
  color: #55b6ed;
}
.sm-progress progress::-webkit-progress-bar {
  background: #142738;
  border-radius: 20px;
}
.sm-progress progress::-webkit-progress-value {
  background: #55b6ed;
  border-radius: 20px;
}
.sm-progress progress::-moz-progress-bar {
  background: #55b6ed;
  border-radius: 20px;
}
.sm-progress>span {
  color: #a5bdd1;
  font-size: 11px;
  white-space: nowrap;
}
.sm-poll-status {
  margin: 12px 0 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.sm-catalog-run>.notice {
  margin: 17px 0 0;
}
.sm-catalog-tabs {
  display: flex;
  align-items: stretch;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.sm-catalog-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 16px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.sm-catalog-tab>span {
  padding: 3px 6px;
  min-width: 23px;
  text-align: center;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  font-size: 10px;
}
.sm-catalog-tab:hover {
  color: #c5e4ff;
}
.sm-catalog-tab.is-active {
  border-bottom-color: #55b6ed;
  color: #a1d5ff;
}
.sm-catalog-tab.is-active>span {
  background: rgba(57,168,255,.13);
}
.sm-catalog-filter {
  display: flex;
  gap: 10px;
  padding: 18px 22px;
  max-width: 590px;
}
.sm-catalog-filter>label {
  flex: 1;
  min-width: 0;
}
.sm-catalog-filter input,.sm-catalog-filter button {
  min-height: 40px;
  font-size: 12px;
}
.sm-catalog-table {
  min-width: 700px;
}
.sm-catalog-table th {
  font-size: 10px;
  white-space: nowrap;
}
.sm-catalog-table td {
  padding-top: 16px;
  padding-bottom: 16px;
  vertical-align: middle;
}
.sm-catalog-table td:first-child {
  min-width: 220px;
  width: 32%;
}
.sm-catalog-table td:first-child strong {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.sm-catalog-table .sm-source-link {
  display: block;
  width: fit-content;
  margin-top: 6px;
  font-size: 10px;
}
.sm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #2c4054;
  border-radius: 6px;
  padding: 5px 8px;
  color: #aac0d2;
  background: rgba(150,176,198,.05);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.sm-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.sm-status-added {
  border-color: rgba(96,201,159,.23);
  color: #8ed9ba;
  background: rgba(96,201,159,.07);
}
.sm-status-existing {
  border-color: rgba(92,159,230,.24);
  color: #a0c9f3;
  background: rgba(92,159,230,.07);
}
.sm-status-review,.sm-status-not_found {
  border-color: rgba(219,174,99,.23);
  color: #e2c088;
  background: rgba(219,174,99,.06);
}
.sm-status-error {
  border-color: rgba(238,108,125,.24);
  color: #ffa4b2;
  background: rgba(238,108,125,.06);
}
.sm-status-skipped {
  color: #90a1b2;
}
.sm-row-reason {
  display: block;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
  overflow-wrap: anywhere;
  max-width: 340px;
}
.sm-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}
.sm-row-actions .secondary-button {
  min-height: 35px;
  font-size: 11px;
  padding: 7px 10px;
}
.sm-inline-link {
  font-size: 11px;
  color: #9dc9f5;
}
.sm-catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 17px 22px;
  font-size: 11px;
  color: var(--muted);
}
.sm-catalog-footer>nav {
  display: flex;
  gap: 10px;
}
.sm-catalog-footer .secondary-button {
  font-size: 11px;
  padding: 7px 11px;
  min-height: 36px;
}
.sm-empty {
  text-align: center;
  padding: 40px 22px !important;
  color: var(--muted);
  font-size: 12px;
}
.sm-review-source {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}
.sm-review-source>div {
  flex: 1;
  min-width: 0;
}
.sm-review-source h2 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -.02em;
  margin: 7px 0 9px;
  overflow-wrap: anywhere;
}
.sm-review-source>p {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sm-review-confirm {
  scroll-margin-top: 125px;
}
.sm-review-choice {
  padding: 16px;
  border: 1px solid #345d56;
  background: rgba(80,227,194,.04);
  border-radius: 9px;
}
.sm-review-choice strong {
  display: block;
  font-size: 16px;
}
.sm-review-choice span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.sm-skip-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  padding: 2px 0;
  font-size: 11px;
  color: var(--muted);
}
.sm-skip-form button {
  font-size: 12px;
}
.series-metadata button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.series-metadata a:focus-visible,.series-metadata summary:focus-visible,.sm-edit-fields summary:focus-visible,.sm-detail summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.series-metadata a:hover {
  text-decoration: none;
}
@media (max-width:1100px) {
  .sm-start-form {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .sm-start-form>button.primary-button {
    grid-column: 1/4;
    width: fit-content;
  }
  .sm-start-form>p {
    grid-column: 1/3;
  }
  .sm-result-action {
    white-space: normal;
    max-width: 105px;
    text-align: right;
  }
  .sm-detail .sm-details-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px) {
  .series-metadata {
    gap: 16px;
  }
  .sm-heading {
    gap: 13px;
    flex-wrap: wrap;
  }
  .sm-heading h2 {
    font-size: 23px;
  }
  .sm-heading p {
    font-size: 12px;
  }
  .sm-heading>.secondary-button {
    font-size: 11px;
    padding: 8px 11px;
    min-height: 40px;
  }
  .sm-search-panel,.sm-editor,.sm-review-confirm,.sm-catalog-run,.sm-review-source,.sm-detail {
    padding: 18px;
  }
  .sm-section-heading {
    gap: 10px;
    margin-bottom: 18px;
  }
  .sm-section-heading h3 {
    font-size: 16px;
  }
  .sm-section-heading p {
    font-size: 11px;
  }
  .sm-step {
    height: 27px;
    flex-basis: 27px;
  }
  .sm-search-bar {
    flex-wrap: wrap;
  }
  .sm-search-bar>label {
    flex-basis: 100%;
  }
  .sm-search-bar button {
    width: 100%;
    font-size: 12px;
    min-height: 44px;
  }
  .sm-result {
    gap: 10px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .sm-result-icon {
    flex-basis: 30px;
    height: 38px;
    font-size: 19px;
  }
  .sm-result strong {
    font-size: 12px;
  }
  .sm-result small {
    font-size: 10px;
  }
  .sm-result-action {
    flex-basis: 100%;
    max-width: none;
    font-size: 10px;
    padding-left: 40px;
    text-align: left;
  }
  .sm-search-status {
    font-size: 11px;
  }
  .sm-search-pagination {
    justify-content: space-between;
    gap: 7px;
  }
  .sm-search-pagination button {
    font-size: 10px;
    padding: 6px 8px;
    min-height: 39px;
  }
  .sm-search-pagination span {
    font-size: 10px;
  }
  .sm-preview {
    padding: 16px;
  }
  .sm-preview-main {
    grid-template-columns: 80px minmax(0,1fr);
    gap: 14px;
  }
  .sm-preview-copy h3 {
    font-size: 17px;
  }
  .sm-preview .sm-description {
    font-size: 12px;
    max-height: 220px;
  }
  .sm-preview .sm-original-label {
    font-size: 10px;
    margin-top: 13px;
  }
  .sm-preview-facts {
    font-size: 11px;
  }
  .sm-details-list {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .sm-preview-actions {
    flex-wrap: wrap;
  }
  .sm-preview-actions button {
    flex: 1;
    min-height: 43px;
    font-size: 11px;
  }
  .sm-field-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sm-selection {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 11px;
  }
  .sm-form-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .sm-form-footer .form-actions {
    width: 100%;
  }
  .sm-form-footer .form-actions>* {
    flex: 1;
    text-align: center;
    font-size: 12px;
  }
  .sm-original-description>summary>span,.sm-source-fields>summary>span {
    display: block;
    margin-left: 0;
  }
  .sm-detail-main {
    gap: 16px;
  }
  .sm-detail-main>.sm-cover {
    flex-basis: 78px;
  }
  .sm-detail-title {
    flex-wrap: wrap;
    gap: 6px;
  }
  .sm-detail-title h2 {
    font-size: 16px;
  }
  .sm-detail-title .sm-provider-note {
    font-size: 10px;
  }
  .sm-detail .sm-details-list {
    grid-template-columns: 1fr;
  }
  .sm-detail .sm-description {
    font-size: 12px;
  }
  .sm-catalog-start>summary {
    padding: 16px 18px;
    align-items: flex-start;
    font-size: 12px;
  }
  .sm-catalog-start>summary>span {
    font-size: 10px;
    text-align: right;
    max-width: 100px;
  }
  .sm-start-form {
    padding: 17px 18px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .sm-start-form>label:first-of-type {
    grid-column: 1/3;
  }
  .sm-start-form>button.primary-button {
    grid-column: 1/3;
    width: 100%;
    min-height: 44px;
  }
  .sm-start-form>p,.sm-start-form>.sm-text-button {
    grid-column: 1/3;
    justify-self: start;
  }
  .sm-run-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .sm-run-heading h3 {
    font-size: 18px;
  }
  .sm-run-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .sm-run-controls button {
    min-height: 40px;
    font-size: 11px;
  }
  .sm-progress {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 19px;
  }
  .sm-catalog-tabs {
    padding: 0 9px;
  }
  .sm-catalog-tab {
    padding: 14px 9px;
    font-size: 11px;
  }
  .sm-catalog-filter {
    padding: 16px 18px;
    gap: 8px;
  }
  .sm-catalog-filter input {
    font-size: 12px;
  }
  .sm-catalog-table td:first-child {
    min-width: 210px;
  }
  .sm-catalog-footer {
    padding: 15px 18px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .sm-catalog-footer nav {
    margin-left: auto;
  }
  .sm-review-source h2 {
    font-size: 19px;
  }
  .sm-skip-form {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 9px;
  }
  .sm-review-confirm .form-actions {
    flex-wrap: wrap;
  }
  .sm-review-confirm .form-actions>* {
    font-size: 12px;
  }
  .sm-editor,.sm-preview,.sm-review-confirm {
    scroll-margin-top: 105px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .sm-result {
    transition: none;
  }
}

.sm-batch-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  line-height: 1.7;
}
.sm-batch-notice>.sm-text-button {
  flex-shrink: 0;
}
@media (max-width:760px) {
  .sm-batch-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
.sm-id-lookup {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.sm-lookup-label {
  margin: 0 0 9px;
  color: #c3d1dd;
  font-size: 12px;
  font-weight: 650;
}
.sm-id-lookup>.field-help {
  margin: 8px 0 0;
}
.sm-primary-note {
  font-size: 12px;
  line-height: 1.7;
  color: #a6c7de;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.sm-edit-fields>.sm-primary-note {
  margin: 0 0 16px;
}
.sm-edit-fields>.sm-selection {
  margin-bottom: 18px;
}

/* Saved metadata enrichment: independent progress and scoped selection. */
.sm-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sm-enrichment>.panel {
  padding: 24px;
}
.sm-enrichment h3 {
  margin-top: 0;
}
.sm-enrichment-options,.sm-enrichment-lanes {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin: 20px 0;
}
.sm-check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(18,35,50,.42);
}
.sm-check-card input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}
.sm-check-card strong,.sm-check-card small {
  display: block;
}
.sm-check-card small {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
}
.sm-enrichment-scope {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.sm-enrichment-scope legend {
  padding: 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.sm-enrichment-scope label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.sm-enrichment-scope input,.sm-enrichment-table input {
  width: 18px;
  height: 18px;
  accent-color: #42b4b1;
}
.sm-enrichment .sm-form-footer {
  margin-top: 18px;
}
.sm-enrichment .sm-form-footer p {
  max-width: 620px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.sm-enrichment-lane {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18,35,50,.36);
}
.sm-enrichment-lane h4 {
  margin: 0 0 15px;
  font-size: 14px;
}
.sm-enrichment progress {
  width: 100%;
  height: 9px;
  border-radius: 5px;
  accent-color: #42b4b1;
}
.sm-enrichment-lane p,[data-enrichment-poll] {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0;
}
.sm-enrichment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.sm-enrichment-table th {
  padding: 14px 12px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.sm-enrichment-table td {
  padding: 15px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  max-width: 380px;
}
.sm-enrichment-table small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.sm-enrichment-table strong {
  font-weight: 600;
}
.sm-enrichment-table .sm-task-running {
  color: #75dcca;
}
.sm-enrichment-table .sm-task-error {
  color: #f3a59d;
}
.sm-enrichment .sm-catalog-filter {
  padding: 10px 0 20px;
}
.sm-enrichment .sm-catalog-footer {
  padding: 20px 0 0;
}
.sm-enrichment .sm-catalog-footer nav {
  display: flex;
  gap: 8px;
}
.sm-enrichment .notice a {
  color: inherit;
  text-decoration: underline;
}
.sm-detail>.secondary-button {
  margin-top: 15px;
}
.sm-field-grid select {
  width: 100%;
}
.sm-enrichment [hidden] {
  display: none !important;
}
@media (max-width:760px) {
  .sm-enrichment>.panel {
    padding: 18px;
  }
  .sm-enrichment-options,.sm-enrichment-lanes {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sm-enrichment-scope {
    flex-direction: column;
    gap: 14px;
  }
  .sm-enrichment-table {
    min-width: 580px;
  }
  .sm-enrichment .sm-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .sm-enrichment .sm-form-footer button {
    width: 100%;
    min-height: 44px;
  }
  .sm-heading-actions {
    width: 100%;
  }
  .sm-heading-actions>a {
    flex: 1;
    text-align: center;
    font-size: 12px;
  }
  .sm-enrichment .sm-run-controls {
    justify-content: flex-start;
  }
  .sm-enrichment .sm-run-controls form {
    flex: 1;
  }
  .sm-enrichment .sm-run-controls button {
    width: 100%;
  }
  .sm-check-card {
    padding: 15px;
  }
}

.sm-catalog-results[aria-busy="true"] .table-wrap {
  opacity: .6;
}
.sm-catalog-tabs {
  flex-wrap: wrap;
}
.sm-alias-evidence {
  margin-top: .6rem;
  overflow-wrap: anywhere;
}
.sm-alias-evidence summary {
  cursor: pointer;
}
.sm-alias-evidence p {
  white-space: normal;
}
[data-catalog-navigation-status]:empty {
  display: none;
}

/* GLOBAL COMPONENT: ai-updates.css (legacy contract preserved) */
.ai-updates {
  display: grid;
  gap: 18px;
  max-width: 1400px;
  min-width: 0;
}
.ai-updates .panel {
  margin: 0;
}
.ai-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 0 2px;
}
.ai-kicker {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  color: #75acf5;
}
.ai-heading h2 {
  font-size: clamp(20px,2vw,27px);
  letter-spacing: -.035em;
  line-height: 1.25;
  margin: 7px 0;
}
.ai-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.ai-heading>.secondary-button {
  flex-shrink: 0;
}
.ai-scan-control>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
}
.ai-scan-control>summary::-webkit-details-marker {
  display: none;
}
.ai-scan-control>summary>span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #6cbf9c;
}
.ai-scan-meta {
  color: var(--muted);
  font-size: 12px;
}
.ai-scan-toggle {
  color: #9fc2f3;
  white-space: nowrap;
  font-weight: 650;
}
.ai-scan-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}
.ai-scan-body>p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.ai-scan-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.ai-scan-form label {
  max-width: 150px;
  flex: 1;
}
.ai-caption {
  font-size: 12px;
  color: var(--muted);
}
.ai-error {
  color: #ff9ea5 !important;
  overflow-wrap: anywhere;
}
.ai-tabs {
  display: flex;
  gap: 6px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.ai-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 57px;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  white-space: nowrap;
}
.ai-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,.025);
}
.ai-tab.is-active {
  color: #8cbbff;
  border-bottom-color: #5999f7;
}
.ai-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 23px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.065);
  color: #b7c6d9;
  font-size: 11px;
}
.ai-tab.is-active .ai-count {
  background: rgba(74,142,240,.16);
  color: #9bc3ff;
}
.ai-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}
.ai-inbox-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.ai-inbox-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.ai-total {
  font-size: 12px;
  white-space: nowrap;
  color: #b9c8da;
}
.ai-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
}
.ai-search {
  flex: 1;
  max-width: 450px;
  min-width: 0;
}
.ai-filter {
  width: 205px;
  flex-shrink: 0;
}
.ai-filterbar input,.ai-filterbar select {
  font-size: 13px;
  min-height: 42px;
}
.ai-reset {
  font-size: 12px;
  color: #9fc2f3;
}
.ai-results {
  padding: 0 20px 20px;
  display: grid;
  gap: 14px;
}
.ai-series {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  background: rgba(0,0,0,.09);
}
.ai-series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,.018);
}
.ai-series-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.ai-series-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 37px;
  height: 42px;
  border: 1px solid #354961;
  background: #21324a;
  border-radius: 7px;
  color: #a4c3ea;
  font-size: 19px;
}
.ai-title {
  min-width: 0;
}
.ai-title h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-series-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.ai-series-meta a {
  color: #9db5d2;
}
.ai-series-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.ai-series-actions .secondary-button {
  font-size: 12px;
  min-height: 37px;
  padding: 8px 12px;
}
.ai-chapter {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.ai-chapter-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 145px 166px;
  gap: 16px;
  align-items: center;
}
.ai-chapter-title {
  min-width: 0;
}
.ai-chapter-title strong {
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
.ai-chapter-title small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.ai-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  max-width: 100%;
}
.ai-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.ai-tone-green {
  color: #87d5b0;
  background: rgba(65,171,120,.09);
  border-color: rgba(65,171,120,.2);
}
.ai-tone-blue {
  color: #95bffc;
  background: rgba(62,136,237,.09);
  border-color: rgba(62,136,237,.2);
}
.ai-tone-amber {
  color: #ddbe8e;
  background: rgba(208,156,77,.07);
  border-color: rgba(208,156,77,.18);
}
.ai-tone-red {
  color: #f39caa;
  background: rgba(224,86,112,.09);
  border-color: rgba(224,86,112,.2);
}
.ai-chapter-action {
  justify-self: end;
}
.ai-chapter-action .primary-button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
.ai-inline-link {
  font-size: 12px;
  color: #95bffc;
  font-weight: 650;
}
.ai-item-details {
  margin-top: 9px;
}
.ai-item-details>summary,.ai-connection-help summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  width: fit-content;
  padding: 5px 0;
}
.ai-item-details>summary:hover,.ai-connection-help summary:hover {
  color: var(--text);
}
.ai-item-body {
  margin-top: 8px;
  padding: 14px;
  background: rgba(0,0,0,.12);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ai-item-body p {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.ai-detail-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.ai-detail-links a {
  color: #9fc2f3;
}
.ai-item-form {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ai-item-form label {
  font-size: 11px;
}
.ai-item-form select,.ai-item-form input {
  font-size: 12px;
}
.ai-reason {
  flex: 1;
  min-width: 180px;
}
.ai-connection-help {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(208,156,77,.035);
}
.ai-connection-help>p {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.6;
  color: #c3b59f;
}
.ai-provision {
  padding: 12px 0 0;
  font-size: 12px;
}
.ai-provision p {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ai-provision label {
  margin-top: 14px;
}
.ai-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
}
.ai-footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.ai-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.ai-footer .secondary-button {
  min-height: 36px;
  font-size: 12px;
}
.ai-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}
.ai-empty>span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #8fc9b1;
  font-size: 20px;
}
.ai-empty h3 {
  font-size: 16px;
  color: var(--text);
  margin: 15px 0 8px;
}
.ai-empty p {
  font-size: 13px;
  line-height: 1.6;
}
.ai-updates .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.ai-updates a:focus-visible,.ai-updates summary:focus-visible {
  outline: 2px solid #80b6ff;
  outline-offset: 3px;
}
.ai-updates a:hover {
  text-decoration: none;
}
@media (max-width:1100px) {
  .ai-series-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 230px;
  }
  .ai-chapter-row {
    grid-template-columns: minmax(0,1fr) 135px 150px;
    gap: 10px;
  }
  .ai-title h3 {
    font-size: 14px;
  }
  .ai-tab {
    padding: 12px 10px;
  }
  .ai-inbox-head {
    align-items: flex-start;
  }
  .ai-total {
    padding-top: 2px;
  }
}
@media (max-width:760px) {
  .ai-updates {
    gap: 14px;
  }
  .ai-heading h2 {
    font-size: 21px;
  }
  .ai-heading {
    align-items: flex-start;
  }
  .ai-heading>.secondary-button {
    font-size: 12px;
    padding: 8px 11px;
    min-height: 40px;
  }
  .ai-heading p {
    font-size: 12px;
  }
  .ai-tabs {
    padding: 0 10px;
    gap: 2px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .ai-tab {
    flex: 1 1 44%;
    min-height: 47px;
    padding: 10px 6px;
    font-size: 12px;
    gap: 6px;
  }
  .ai-inbox-head {
    padding: 16px 14px 0;
    display: block;
  }
  .ai-total {
    display: block;
    margin-top: 9px;
  }
  .ai-filterbar {
    padding: 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ai-search {
    flex: 1 1 100%;
    max-width: none;
  }
  .ai-filter {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .ai-filterbar>.secondary-button {
    min-height: 42px;
  }
  .ai-results {
    padding: 0 12px 14px;
    gap: 12px;
  }
  .ai-series-head {
    padding: 13px 12px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .ai-series-identity {
    flex-basis: 100%;
  }
  .ai-series-actions {
    max-width: none;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .ai-series-icon {
    width: 31px;
    height: 37px;
    font-size: 16px;
  }
  .ai-title h3 {
    font-size: 14px;
  }
  .ai-chapter {
    padding: 12px;
  }
  .ai-chapter-row {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
  }
  .ai-chapter-title {
    grid-column: 1/-1;
  }
  .ai-chapter-action {
    grid-column: 2;
  }
  .ai-chapter-action .primary-button {
    font-size: 11px;
    min-height: 40px;
    padding: 7px 9px;
  }
  .ai-status {
    font-size: 10px;
    padding: 5px 6px;
  }
  .ai-item-details {
    margin-top: 6px;
  }
  .ai-item-details>summary,.ai-connection-help summary {
    padding: 9px 0;
  }
  .ai-connection-help {
    padding: 12px;
  }
  .ai-item-form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ai-item-form label,.ai-reason {
    min-width: 0;
  }
  .ai-footer {
    padding: 12px 14px;
  }
  .ai-footer p {
    font-size: 10px;
  }
  .ai-scan-control>summary {
    padding: 13px 14px;
    align-items: flex-start;
  }
  .ai-scan-control>summary>span:first-child {
    gap: 7px;
  }
  .ai-scan-meta {
    flex-basis: 100%;
    padding-left: 14px;
    font-size: 11px;
  }
  .ai-scan-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ai-scan-form label {
    max-width: none;
    min-width: 0;
  }
  .ai-scan-form button {
    grid-column: 1/-1;
    width: 100%;
  }
  .ai-scan-body {
    padding: 0 14px 14px;
  }
}

/* GLOBAL COMPONENT: chat-integrations.css (legacy contract preserved) */
.mi-integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.mi-integration-grid>.panel {
  min-width: 0;
  margin: 0;
}
.mi-integration-facts {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin: 20px 0;
}
.mi-integration-facts>div {
  padding: 16px;
  border: 1px solid var(--border,#303a4c);
  border-radius: 12px;
  display: grid;
  gap: 6px;
}
.mi-integration-facts span,.mi-integration-details {
  font-size: 14px;
  color: var(--muted,#a2aebf);
}
.mi-integration-copy {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mi-integration-copy input {
  min-width: 0;
  flex: 1;
}
.mi-integration-copy button {
  flex-shrink: 0;
}
.mi-integration-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}
.mi-integration-details dd {
  margin: 0;
  color: var(--text,#e5e7eb);
  overflow-wrap: anywhere;
}
.mi-integration-steps {
  padding-left: 22px;
  line-height: 1.7;
}
.mi-integration-steps li+li {
  margin-top: 8px;
}
@media (max-width:1100px) {
  .mi-integration-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width:650px) {
  .mi-integration-facts {
    grid-template-columns: 1fr;
  }
  .mi-integration-copy {
    flex-direction: column;
    align-items: stretch;
  }
  .mi-integration-details {
    grid-template-columns: 1fr;
  }
  .mi-integration-details dd {
    margin-bottom: 8px;
  }
}

.mi-integrations .stack-form {
  padding: 20px;
  align-content: start;
  gap: 16px;
}
.mi-integrations .stack-form>p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.mi-integration-facts {
  padding: 0 20px;
}
.mi-integration-hero>p {
  padding: 0 20px 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.mi-integrations>.panel>.form-actions {
  padding: 0 20px 20px;
}
.mi-integrations textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--strong);
  border-radius: 9px;
  color: var(--text);
  background: var(--bg,#101a28);
  font: 14px/1.6 system-ui;
  resize: vertical;
}
.mi-integrations .retention-note {
  margin: 0;
}
.mi-integration-steps {
  font-size: 14px;
  margin: 0;
}

/* GLOBAL COMPONENT: consent; scoped to its standalone body. */
body.chat-consent {
  color-scheme: dark;
  font-family:
    Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #e9eef7;
  background: #0b111b;
  font-synthesis: none;
}
body.chat-consent,body.chat-consent * {
  box-sizing: border-box;
}
body.chat-consent {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0,rgba(45,109,110,.16),transparent 60%);
}
body.chat-consent a {
  color: inherit;
}
body.chat-consent .connect {
  width: min(100% - 40px,560px);
  margin: 0 auto;
  padding: 40px 0 28px;
}
body.chat-consent .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 28px;
}
body.chat-consent .brand-mark,body.chat-consent .app-mark {
  display: grid;
  place-items: center;
  font-weight: 800;
}
body.chat-consent .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #80dfc0;
  color: #10382d;
  font-size: 20px;
}
body.chat-consent .brand-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #8f9cb0;
  border-left: 1px solid #344050;
  padding-left: 12px;
  margin-left: 3px;
}
body.chat-consent .card {
  background: #141e2c;
  border: 1px solid #2a384a;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 24px 70px #0004;
}
body.chat-consent .card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
body.chat-consent .eyebrow,body.chat-consent .step {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;
}
body.chat-consent .eyebrow {
  color: #82dcc0;
}
body.chat-consent .step {
  color: #93a3b7;
}
body.chat-consent .connection {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 24px;
}
body.chat-consent .app-mark {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 29px;
}
body.chat-consent .mi {
  background: #80dfc0;
  color: #123a30;
}
body.chat-consent .gpt {
  background: #25364a;
  border: 1px solid #415368;
  color: #e6edf5;
  font-size: 15px;
  letter-spacing: -.5px;
}
body.chat-consent .connection-line {
  width: 30px;
  height: 1px;
  background: #3d5061;
}
body.chat-consent .link-symbol {
  color: #8dbeaF;
  margin: 0 10px;
  font-size: 22px;
}
body.chat-consent header {
  text-align: center;
}
body.chat-consent h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.7px;
  margin: 0 0 12px;
}
body.chat-consent header p {
  font-size: 14px;
  line-height: 1.65;
  color: #aab8c9;
  margin: 0 auto 26px;
  max-width: 380px;
}
body.chat-consent .account {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #2d3d51;
  border-radius: 12px;
  padding: 14px;
  background: #111b28;
}
body.chat-consent .avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2c3e53;
  color: #b9cedd;
  font-size: 14px;
}
body.chat-consent .account>div {
  min-width: 0;
}
body.chat-consent .caption {
  display: block;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #95a6bb;
  margin-bottom: 4px;
}
body.chat-consent .account strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
body.chat-consent .verified {
  margin-left: auto;
  white-space: nowrap;
  color: #8eddbf;
  font-size: 11px;
}
body.chat-consent .permissions {
  margin-top: 24px;
}
body.chat-consent h2 {
  font-size: 14px;
  margin: 0 0 16px;
}
body.chat-consent ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.chat-consent li {
  display: flex;
  gap: 12px;
  margin-top: 17px;
}
body.chat-consent .check {
  color: #80dfc0;
  font-size: 16px;
}
body.chat-consent li strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
body.chat-consent li div>span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #a5b4c6;
}
body.chat-consent .note {
  border-left: 2px solid #728ba9;
  background: #192638;
  padding: 12px 14px;
  margin-top: 24px;
  border-radius: 0 8px 8px 0;
}
body.chat-consent .note strong {
  font-size: 12px;
  color: #d4dfec;
}
body.chat-consent .note p {
  font-size: 12px;
  line-height: 1.6;
  color: #aabace;
  margin: 5px 0 0;
}
body.chat-consent .actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
body.chat-consent .actions button,body.chat-consent .actions a {
  min-height: 48px;
  border-radius: 10px;
  font: 650 13px/1.4 inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}
body.chat-consent .primary {
  background: #80dfc0;
  color: #102f28;
  border: 1px solid #80dfc0;
  flex: 1;
}
body.chat-consent .primary:hover {
  background: #a1edD4;
}
body.chat-consent .secondary {
  background: transparent;
  color: #d2ddeb;
  border: 1px solid #405168;
}
body.chat-consent .secondary:hover {
  background: #24344a;
}
body.chat-consent a:focus-visible,body.chat-consent button:focus-visible {
  outline: 3px solid #c0f7e6;
  outline-offset: 4px;
}
body.chat-consent .footnote {
  font-size: 11px;
  line-height: 1.7;
  color: #91a2b7;
  text-align: center;
  margin: 16px 5px 0;
}
body.chat-consent footer {
  text-align: center;
  margin-top: 22px;
  color: #8193a9;
  font-size: 11px;
}
body.chat-consent footer span {
  margin: 0 9px;
  color: #4f667e;
}
body.chat-consent .login-steps {
  border-top: 1px solid #2a384a;
  padding-top: 24px;
}
body.chat-consent .login-steps>div {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
body.chat-consent .number {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #253a49;
  color: #94dfc6;
  font-size: 12px;
}
body.chat-consent .login-steps strong {
  font-size: 14px;
}
body.chat-consent .login-steps p {
  font-size: 13px;
  line-height: 1.65;
  color: #aab8c9;
  margin: 7px 0 0;
}
body.chat-consent .login-actions {
  flex-direction: column;
}
@media (max-width:520px) {
  body.chat-consent .connect {
    width: calc(100% - 28px);
    padding-top: 24px;
  }
  body.chat-consent .brand {
    margin-bottom: 20px;
  }
  body.chat-consent .card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  body.chat-consent h1 {
    font-size: 24px;
  }
  body.chat-consent .brand-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
  body.chat-consent .verified {
    font-size: 10px;
  }
  body.chat-consent .card-top {
    gap: 8px;
  }
  body.chat-consent .eyebrow,body.chat-consent .step {
    font-size: 9px;
    letter-spacing: 1px;
  }
  body.chat-consent .actions {
    flex-direction: column;
  }
  body.chat-consent .connection {
    margin-top: 26px;
  }
}

/* Global legacy backport: shared layout, data-driven progress and SVG geometry. */
.ops-review-panel,#mapping-series-holds,#mapping-chapter-holds {
  scroll-margin-top: 110px;
}
progress.mini-progress,progress.progress-track {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  padding: 0;
  color: #70baa8;
  background: #071019;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
progress.mini-progress {
  height: 6px;
  min-height: 6px;
}
progress.progress-track {
  width: 100%;
  height: 8px;
  min-height: 8px;
}
progress.mini-progress::-webkit-progress-bar,progress.progress-track::-webkit-progress-bar {
  background: #071019;
  border-radius: 99px;
}
progress.mini-progress::-webkit-progress-value {
  background: #70baa8;
  border-radius: 99px;
}
progress.progress-track::-webkit-progress-value {
  background: linear-gradient(90deg,var(--blue2),var(--cyan));
  border-radius: 99px;
}
progress.mini-progress::-moz-progress-bar {
  background: #70baa8;
  border-radius: 99px;
}
progress.progress-track::-moz-progress-bar {
  background: var(--blue);
  border-radius: 99px;
}
.export-progress progress.mini-progress {
  height: 7px;
  min-height: 7px;
}
.promo-coordinate-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.promo-detection-region {
  fill: rgba(255,65,65,.18);
  stroke: rgba(255,90,90,.95);
  stroke-width: 2;
}
.promo-detection-region.detection-approved {
  fill: rgba(34,197,94,.18);
  stroke: rgba(74,222,128,.95);
}
.promo-detection-region.detection-rejected {
  fill: rgba(100,116,139,.16);
  stroke: rgba(148,163,184,.95);
}
.promo-selection-region {
  fill: rgba(57,168,255,.2);
  stroke: var(--blue);
  stroke-width: 2;
}
.promo-selection-canvas.is-start-marker .promo-selection-region {
  fill: var(--blue);
  stroke-width: 0;
}
.pv3-crop-region {
  fill: rgba(55,224,181,.19);
  stroke: #54ebbf;
  stroke-width: 3;
}
.pv3-coordinate-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body.chat-consent {
  background: radial-gradient(ellipse at 50% 0,rgba(45,109,110,.16),transparent 60%) #0b111b;
}
body.chat-consent .brand {
  padding: 0;
}
body.chat-consent .number {
  text-align: center;
}
.pv3-family-choice-dialog {
  display: none;
}
.pv3-family-choice-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  max-height: 88dvh;
}
.pv3-chooser-head,.pv3-chooser-foot {
  flex: 0 0 auto;
}
.pv3-chooser-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
.pv3-lightbox[open] {
  display: flex;
  flex-direction: column;
}
.pv3-dialog-head,.pv3-dialog-foot {
  flex: 0 0 auto;
}
.pv3-dialog-body,.pv3-crop-scroll {
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-width:680px) {
  .pv3-family-choice-dialog[open] {
    max-height: 86vh;
    max-height: 86dvh;
  }
  .pv3-chooser-body {
    max-height: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .promo-coordinate-canvas {
    scroll-behavior: auto;
  }
  progress {
    transition: none;
  }
}

#scraper-bulk-review {
  scroll-margin-top: 110px;
}
.owner-bulk-result {
  margin: 12px 16px;
  padding: 10px 12px;
  white-space: normal;
  text-align: left;
  line-height: 1.6;
  font-size: 13px;
  color: #b7eed9;
  border: 1px solid rgba(106,217,162,.44);
  background: #0e2b26;
  border-radius: 9px;
}
[data-owner-bulk-review][aria-busy="true"] {
  cursor: progress;
}

/* Short desktop windows retain access to every legacy navigation item. */
@media (min-width:761px) and (max-height:860px) {
  .sidebar nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    margin-top: 20px;
  }
  .sidebar-foot {
    flex-shrink: 0;
    margin-top: 16px;
  }
  .sidebar .nav-source-group>.nav-submenu {
    position: static;
    width: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 22px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .sidebar .nav-source-group>.nav-submenu::before {
    display: none;
  }
  .sidebar .nav-source-group:hover>.nav-submenu,.sidebar .nav-source-group:focus-within>.nav-submenu {
    max-height: 100px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

/* Explicit legacy WordPress metadata action card. */
.wordpress-series-metadata-panel {
  padding: 22px;
}
.wordpress-series-metadata-panel>.section-heading {
  margin: 0 0 14px;
}
.wordpress-series-metadata-panel h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}
.wordpress-series-metadata-panel>p {
  margin: 0 0 14px;
  line-height: 1.6;
}
.wordpress-series-metadata-panel>p:not(.field-help) {
  color: var(--muted);
  font-size: 14px;
}
.wordpress-series-metadata-panel>p:last-child {
  margin-bottom: 0;
}
.wordpress-series-metadata-panel>.stack-form {
  margin-top: 18px;
}
.wordpress-series-metadata-panel>.table-wrap {
  margin-top: 18px;
}
@media (max-width:760px) {
  .wordpress-series-metadata-panel {
    padding: 18px;
  }
}

/* Candidate family selection: saved independently of explicit visual promotion. */
.pv2-family-picker-form.is-family-picker-ready .pv2-family-submit-row {
  display: none;
}
.pv2-family-save-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.pv2-family-save-feedback[hidden],.pv2-family-save-feedback [hidden] {
  display: none !important;
}
.pv2-family-save-status {
  flex: 1 0 100%;
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pv2-family-picker-form[data-family-save-state="saving"] .pv2-family-save-status {
  border-color: rgba(100,178,245,.45);
  color: #b9dbfb;
  background: rgba(41,109,169,.1);
}
.pv2-family-picker-form[data-family-save-state="saved"] .pv2-family-save-status {
  border-color: rgba(98,187,159,.4);
  color: #bfe8d8;
  background: rgba(38,117,95,.08);
}
.pv2-family-picker-form[data-family-save-state="error"] .pv2-family-save-status {
  border-color: rgba(241,143,127,.45);
  color: #ffd3cb;
  background: rgba(159,65,48,.12);
}
.pv2-family-picker-form[data-family-save-state="error"] .pv2-family-selection {
  border-color: rgba(241,143,127,.55);
}
.pv2-family-picker-form[aria-busy="true"] .pv2-family-option {
  cursor: progress;
  opacity: .7;
}
.pv2-family-picker-form[aria-busy="true"] .pv2-family-selection>span {
  color: #b9dbfb;
}
.pv2-family-retry {
  font-size: .78rem;
  min-height: 36px;
}
.pv2-family-reload {
  font-size: .78rem;
  line-height: 1.5;
}
.pv2-family-picker-form:not([data-family-save-state="error"]) .pv2-family-reload {
  display: none;
}
.pv2-promotion-form {
  display: grid;
  gap: 10px;
  flex: 1 1 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09151f;
}
.pv2-promotion-form .pv2-one-step-confirm {
  margin: 0;
}
.pv2-card-body .pv2-promotion-reason {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.pv2-promotion-form .primary-button {
  justify-self: start;
  min-height: 42px;
  white-space: normal;
  text-align: center;
}
@media (max-width:540px) {
  .pv2-promotion-form {
    padding: 10px;
  }
  .pv2-promotion-form .primary-button {
    justify-self: stretch;
    width: 100%;
  }
  .pv2-family-selection>span {
    max-width: 110px;
    overflow-wrap: anywhere;
  }
}

/* An open guide must also fit the narrow admin column. */
.pv2-guide .pv2-steps>article {
  min-width: 0;
}
.pv2-guide .pv2-steps>article>div {
  flex: 1;
  min-width: 0;
}
.pv2-guide .pv2-steps .primary-button,.pv2-guide .pv2-steps .secondary-button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Reader recovery: balanced progress cards and a single-row search action. */
.metrics.reader-integrity-summary {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.reader-integrity-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  min-width: 0;
}
.reader-integrity-search input {
  flex: 1;
  min-width: 0;
  width: auto;
}
.reader-integrity-search button {
  flex: none;
}
@media (max-width:1100px) {
  .metrics.reader-integrity-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:540px) {
  .reader-integrity-search {
    gap: 8px;
    padding: 14px;
  }
}
@media (max-width:760px) {
  .alpha-note>strong {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Legacy migration progress: all production presentation stays in global CSS. */
.lm-page {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.lm-page .panel {
  margin: 0;
}
.lm-page h2,.lm-page h3,.lm-page p {
  margin-top: 0;
}
.lm-page button,.lm-page a,.lm-page input,.lm-page select {
  touch-action: manipulation;
}
.lm-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 95% 0,rgba(80,227,194,.09),transparent 62%),linear-gradient(130deg,var(--panel2),var(--panel));
  position: relative;
  overflow: hidden;
}
.lm-kicker {
  display: block;
  color: var(--cyan);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 13px;
}
.lm-hero h2 {
  font-size: clamp(1.7rem,3vw,2.7rem);
  letter-spacing: -.06em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.lm-route-arrow {
  color: var(--cyan);
  font-weight: 450;
  padding: 0 .22em;
}
.lm-hero p {
  max-width: 610px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
  margin: 0;
}
.lm-hero-side {
  display: grid;
  justify-items: end;
  gap: 13px;
  flex: none;
}
.lm-environment {
  font-size: .73rem;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.lm-refresh {
  gap: 8px;
}
.lm-connection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: var(--muted);
  font-size: .77rem;
}
.lm-connection-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lm-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.lm-connection[data-state=connected] .lm-indicator {
  background: var(--blue);
}
.lm-connection[data-state=offline],.lm-connection[data-state=expired] {
  color: var(--amber);
}
.lm-connection[data-state=offline] .lm-indicator,.lm-connection[data-state=expired] .lm-indicator {
  background: var(--amber);
}
.lm-connection time {
  font-variant-numeric: tabular-nums;
}
.lm-session-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lm-notice {
  display: flex;
  gap: 12px;
  border: 1px solid rgba(245,187,85,.28);
  background: rgba(245,187,85,.055);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: .82rem;
  color: #d9c8a6;
}
.lm-notice strong {
  display: block;
  color: var(--amber);
  margin-bottom: 3px;
}
.lm-notice p {
  margin: 0;
}
.lm-metrics {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 12px;
}
.lm-metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 17px;
  background: var(--panel);
}
.lm-metric-label {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}
.lm-metric strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem,2.5vw,1.85rem);
  letter-spacing: -.045em;
  line-height: 1.2;
  margin: 12px 0 6px;
  overflow-wrap: anywhere;
}
.lm-metric small {
  font-size: .69rem;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}
.lm-metric-completed {
  border-color: rgba(80,227,194,.28);
  background: linear-gradient(140deg,rgba(80,227,194,.055),var(--panel));
}
.lm-metric-completed strong {
  color: var(--cyan);
}
.lm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.lm-section-head h3 {
  margin: 0;
  font-size: .94rem;
  letter-spacing: -.015em;
}
.lm-section-head p {
  font-size: .77rem;
  color: var(--muted);
  margin: 5px 0 0;
}
.lm-head-label {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid var(--strong);
  background: rgba(145,164,182,.07);
  color: #b7c7d6;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .69rem;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.lm-tone-blue {
  color: #91d0ff;
  border-color: rgba(57,168,255,.32);
  background: rgba(57,168,255,.09);
}
.lm-tone-green {
  color: #91ebd1;
  border-color: rgba(80,227,194,.3);
  background: rgba(80,227,194,.08);
}
.lm-tone-amber {
  color: #f7cf8a;
  border-color: rgba(245,187,85,.32);
  background: rgba(245,187,85,.08);
}
.lm-tone-red {
  color: #ffabb3;
  border-color: rgba(255,107,120,.32);
  background: rgba(255,107,120,.07);
}
.lm-body {
  padding: 24px;
  min-width: 0;
}
.lm-batch-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.lm-batch-title {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.lm-batch-subtitle {
  font-size: .77rem;
  color: var(--muted);
  margin: 7px 0 0;
}
.lm-batch-progress-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lm-batch-progress-number strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.lm-batch-progress-number small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  margin-top: 5px;
}
.lm-progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  accent-color: var(--cyan);
}
.lm-progress::-webkit-progress-bar {
  background: var(--bg);
  border-radius: 999px;
}
.lm-progress::-webkit-progress-value {
  background: linear-gradient(90deg,var(--blue),var(--cyan));
  border-radius: 999px;
}
.lm-progress::-moz-progress-bar {
  background: var(--cyan);
  border-radius: 999px;
}
.lm-progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .72rem;
  color: var(--muted);
  margin: 9px 0 20px;
}
.lm-steps {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lm-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 12px 8px;
  border-top: 2px solid var(--line);
  color: var(--muted);
}
.lm-step-index {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--line);
  font-size: .69rem;
  flex: none;
}
.lm-step strong {
  display: block;
  font-size: .7rem;
  font-weight: 680;
}
.lm-step small {
  display: block;
  font-size: .69rem;
  margin-top: 3px;
  line-height: 1.5;
}
.lm-step.is-current {
  border-color: var(--blue);
  color: #a7dcff;
}
.lm-step.is-current .lm-step-index {
  border-color: var(--blue);
  background: rgba(57,168,255,.15);
}
.lm-step.is-complete {
  border-color: rgba(80,227,194,.45);
  color: var(--cyan);
}
.lm-step.is-complete .lm-step-index {
  border-color: rgba(80,227,194,.4);
  background: rgba(80,227,194,.08);
}
.lm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 190px;
  padding: 30px 24px;
}
.lm-empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--strong);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(57,168,255,.04);
  font-size: 1.35rem;
  margin-bottom: 15px;
}
.lm-empty h3 {
  margin: 0 0 7px;
  font-size: .95rem;
  font-weight: 700;
}
.lm-empty p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.65;
}
.lm-detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 285px;
  gap: 20px;
  align-items: start;
}
.lm-filterbar {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.lm-search {
  flex: 1 1 200px;
  min-width: 0;
}
.lm-filter {
  flex: 0 1 180px;
  min-width: 130px;
}
.lm-filterbar label {
  font-size: .7rem;
  color: var(--muted);
  gap: 6px;
}
.lm-filterbar input,.lm-filterbar select {
  min-height: 40px;
  font-size: .8rem;
}
.lm-filterbar .secondary-button {
  min-height: 40px;
  padding: 9px 14px;
  font-size: .78rem;
}
.lm-table {
  width: 100%;
  min-width: 560px;
}
.lm-table th {
  font-size: .69rem;
}
.lm-table td {
  font-size: .78rem;
  padding: 15px 20px;
}
.lm-table th:first-child,.lm-table td:first-child {
  padding-left: 24px;
}
.lm-row-title {
  display: block;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.lm-row-meta {
  display: block;
  color: var(--muted);
  font-size: .69rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.lm-row-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  min-height: 36px;
  border: 0;
  background: transparent;
  padding: 6px 0;
  cursor: pointer;
}
.lm-table tr.is-selected td {
  background: rgba(57,168,255,.055);
}
.lm-table tr.is-selected td:first-child {
  box-shadow: inset 3px 0 var(--blue);
}
.lm-pagination {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 24px;
  color: var(--muted);
  font-size: .73rem;
  border-top: 1px solid var(--line);
}
.lm-pagination-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lm-page-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--strong);
  background: var(--panel2);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}
.lm-page-button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.lm-activity-list {
  list-style: none;
  padding: 4px 22px;
  margin: 0;
}
.lm-activity-item {
  padding: 17px 0 17px 16px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  overflow-wrap: anywhere;
}
.lm-activity-item:last-child {
  border: 0;
}
.lm-activity-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
}
.lm-activity-item time {
  display: block;
  font-size: .69rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.lm-activity-item p {
  margin: 0;
  line-height: 1.6;
}
.lm-activity-empty {
  padding: 24px 22px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.7;
}
.lm-related {
  display: grid;
  gap: 10px;
}
.lm-related a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--panel);
}
.lm-related a:hover {
  border-color: var(--strong);
  background: var(--panel2);
}
.lm-related strong {
  display: block;
  font-size: .8rem;
}
.lm-related small {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  margin-top: 3px;
}
.lm-related-arrow {
  color: var(--blue);
  flex: none;
}
.lm-aside {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.lm-selected {
  grid-column: 1/-1;
}
.lm-selected-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .74rem;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.lm-selected-meta strong {
  color: var(--text);
  font-weight: 650;
}
.lm-chapter-reason {
  max-width: 290px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.lm-footer {
  font-size: .71rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 2px;
}
.lm-footer a {
  color: var(--blue);
}
.lm-simulation-label {
  padding: 12px 20px;
  border: 1px solid var(--amber);
  border-radius: 10px;
  color: var(--amber);
  font-weight: 750;
  font-size: .8rem;
}
.lm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.lm-retry-note {
  font-size: .7rem;
  color: var(--muted);
}
@media (max-width:1250px) {
  .lm-metrics {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .lm-detail-layout {
    grid-template-columns: minmax(0,1fr) 250px;
  }
  .lm-steps {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .lm-step {
    padding-top: 10px;
  }
}
@media (max-width:1000px) {
  .lm-detail-layout {
    grid-template-columns: 1fr;
  }
  .lm-aside {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
  .lm-hero {
    padding: 25px;
  }
  .lm-hero-side {
    align-self: flex-start;
  }
  .lm-hero p {
    max-width: 480px;
  }
}
@media (max-width:600px) {
  .lm-page {
    gap: 16px;
  }
  .lm-hero {
    padding: 22px;
    display: grid;
    gap: 20px;
  }
  .lm-hero-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
  }
  .lm-hero h2 {
    font-size: clamp(1.45rem,7vw,2rem);
    overflow-wrap: anywhere;
  }
  .lm-hero p {
    font-size: .8rem;
  }
  .lm-environment {
    font-size: .69rem;
  }
  .lm-connection {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .lm-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .lm-metric {
    padding: 15px 13px;
  }
  .lm-metric strong {
    font-size: 1.6rem;
  }
  .lm-metric small {
    font-size: .69rem;
  }
  .lm-section-head,.lm-body {
    padding: 19px 18px;
  }
  .lm-batch-top {
    gap: 12px;
    margin-bottom: 18px;
  }
  .lm-batch-title {
    font-size: .95rem;
  }
  .lm-batch-progress-number strong {
    font-size: 1.25rem;
  }
  .lm-steps {
    gap: 8px 5px;
  }
  .lm-step {
    gap: 6px;
    padding: 10px 2px;
  }
  .lm-step strong {
    font-size: .69rem;
  }
  .lm-step small {
    font-size: .69rem;
  }
  .lm-step-index {
    width: 18px;
    height: 18px;
    font-size: .69rem;
  }
  .lm-filterbar {
    padding: 16px 18px;
    gap: 10px;
  }
  .lm-search {
    flex-basis: 100%;
  }
  .lm-filter {
    flex: 1;
    min-width: 0;
  }
  .lm-aside {
    grid-template-columns: 1fr;
  }
  .lm-pagination {
    padding: 13px 18px;
    gap: 8px;
  }
  .lm-pagination-controls {
    gap: 6px;
  }
  .lm-table th:first-child,.lm-table td:first-child {
    padding-left: 18px;
  }
  .lm-empty {
    min-height: 170px;
    padding: 26px 18px;
  }
  .lm-selected-meta {
    padding: 14px 18px;
  }
  .lm-notice {
    padding: 14px 16px;
  }
  .lm-progress-caption {
    font-size: .69rem;
  }
  .lm-activity-list {
    padding: 2px 18px;
  }
  .lm-related a {
    padding: 15px 18px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .lm-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Master Legacy whole-catalog migration controller */
.lm-global-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lm-global-controls form {
  margin: 0;
}
.lm-global-controls button {
  min-width: 110px;
}
.lm-global-stats {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .75rem;
}
.lm-global-stats strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.lm-worker-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  padding: 20px 24px;
}
.lm-worker-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  padding: 14px;
  min-width: 0;
}
.lm-worker-card>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lm-worker-card small {
  display: block;
  color: var(--muted);
  font-size: .69rem;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.lm-page-button[aria-disabled=true] {
  opacity: .35;
  pointer-events: none;
}
@media (max-width:1000px) {
  .lm-worker-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:600px) {
  .lm-worker-grid {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }
  .lm-global-controls form {
    flex: 1 1 30%;
  }
  .lm-global-controls button {
    width: 100%;
    min-width: 0;
  }
}

/* asset-cache-bust-20261013-1437 */

/* Structured metadata editor: scoped to Series forms. */
.series-metadata .sm-taxonomy-fields {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
  min-width: 0;
}
.series-metadata .sm-taxonomy-fields legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
}
.series-metadata .sm-taxonomy-fields textarea {
  min-height: 72px;
  max-height: 240px;
}
.series-metadata .sm-link-fields textarea {
  max-height: 200px;
}
.series-metadata .sm-replace-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.series-metadata .sm-replace-choice input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: #42b4b1;
}
.series-metadata .sm-replace-choice small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
  margin-top: 4px;
}
.series-metadata .sm-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.series-metadata .sm-preview-review {
  padding: 12px;
  border: 1px solid #705828;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #e8cf95;
  margin-top: 18px;
}
@media (max-width:760px) {
  .series-metadata .sm-taxonomy-fields {
    padding: 14px;
  }
  .series-metadata .sm-replace-choice {
    font-size: 12px;
  }
}

/* Unified VoraToon/KomikIndo catalogue, including the compact review flow. */
.sm-catalog .sm-unified-start {
  padding: 24px;
}
.sm-catalog .sm-start-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.sm-catalog .sm-start-heading h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.sm-catalog .sm-start-heading p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.sm-catalog .sm-start-heading>button {
  flex: none;
  min-height: 44px;
}
.sm-catalog .sm-catalog-options {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.sm-catalog .sm-catalog-options>summary {
  font-size: 12px;
  color: #b7c9db;
  cursor: pointer;
}
.sm-catalog .sm-catalog-options>summary span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 8px;
}
.sm-catalog .sm-catalog-options-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin: 18px 0;
}
.sm-catalog .sm-catalog-options-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
}
.sm-catalog .sm-catalog-options-grid input {
  min-width: 0;
  width: 100%;
}
.sm-catalog .sm-inline-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
}
.sm-catalog .sm-inline-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  flex: none;
  margin: 2px 0 0;
  accent-color: #42b4b1;
}
.sm-catalog .sm-inline-check small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin-top: 4px;
}
.sm-catalog .sm-start-foot {
  margin: 18px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.sm-catalog .sm-catalog-summary {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 12px;
}
.sm-catalog .sm-summary-card {
  border: 1px solid var(--line);
  background: var(--panel,#13202d);
  border-radius: 11px;
  padding: 16px;
  min-width: 0;
}
.sm-catalog .sm-summary-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  color: #d9e8f5;
}
.sm-catalog .sm-summary-card span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sm-catalog .sm-catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  white-space: normal;
  gap: 0;
}
.sm-catalog .sm-catalog-tab {
  white-space: nowrap;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-catalog .sm-catalog-filter {
  padding: 18px 20px;
  min-width: 0;
}
.sm-catalog .sm-catalog-filter label {
  flex: 1;
  min-width: 0;
}
.sm-catalog .sm-catalog-filter input {
  width: 100%;
  min-width: 0;
}
.sm-catalog .sm-catalog-table-wrap {
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.sm-catalog .sm-catalog-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.sm-catalog .sm-catalog-table th:nth-child(1) {
  width: 29%;
}
.sm-catalog .sm-catalog-table th:nth-child(2) {
  width: 17%;
}
.sm-catalog .sm-catalog-table th:nth-child(3) {
  width: 25%;
}
.sm-catalog .sm-catalog-table th:nth-child(4) {
  width: 13%;
}
.sm-catalog .sm-catalog-table th:nth-child(5) {
  width: 16%;
}
.sm-catalog .sm-catalog-table td,.sm-catalog .sm-catalog-table td:first-child {
  min-width: 0;
  max-width: none;
  padding: 17px 14px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sm-catalog .sm-cell-title {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 650;
  color: #cfdeeb;
  overflow-wrap: anywhere;
}
.sm-catalog .sm-cell-subtitle {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.sm-catalog .sm-cell-title+small {
  margin-top: 4px;
}
.sm-catalog .sm-wp-state {
  display: inline-block;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 650;
  color: #b5c8da;
}
.sm-catalog .sm-wp-existing {
  color: #8fd4bd;
}
.sm-catalog .sm-wp-new {
  color: #9dbdf0;
}
.sm-catalog .sm-publish-applied {
  color: #8fd4bd;
}
.sm-catalog .sm-publish-failed,.sm-catalog .sm-publish-blocked {
  color: #e3b18d;
}
.sm-catalog .sm-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.sm-catalog .sm-row-actions .secondary-button {
  min-height: 35px;
  padding: 7px 11px;
  font-size: 11px;
  white-space: nowrap;
}
.sm-catalog .sm-alias-evidence {
  margin-top: 8px;
}
.sm-catalog .sm-alias-evidence>summary {
  font-size: 10px;
}
.sm-catalog .sm-alias-evidence>p {
  max-height: 120px;
  overflow: auto;
}
.series-metadata .sm-provider-select {
  max-width: 330px;
  margin-bottom: 12px;
}
.series-metadata .sm-provider-select label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.series-metadata .sm-provider-select select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}
.series-metadata .sm-wp-review {
  padding: 24px;
}
.series-metadata .sm-wp-choices {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}
.series-metadata .sm-wp-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.015);
  cursor: pointer;
}
.series-metadata .sm-wp-choice:has(input:checked) {
  border-color: #4b9aaf;
  background: rgba(65,165,184,.07);
}
.series-metadata .sm-wp-choice input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
  accent-color: #42b4b1;
}
.series-metadata .sm-wp-choice>span {
  min-width: 0;
}
.series-metadata .sm-wp-choice strong {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.series-metadata .sm-wp-choice small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.series-metadata .sm-match-reason {
  flex-basis: 100%;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.series-metadata [data-catalog-item-status] {
  font-size: 12px;
  line-height: 1.7;
  color: #9ad9c9;
}
@media (max-width:1100px) {
  .sm-catalog .sm-catalog-summary {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .sm-catalog .sm-catalog-table td,.sm-catalog .sm-catalog-table th {
    padding-left: 10px;
    padding-right: 10px;
  }
  .sm-catalog .sm-start-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width:760px) {
  .sm-catalog .sm-unified-start,.series-metadata .sm-wp-review {
    padding: 18px;
  }
  .sm-catalog .sm-start-heading {
    display: block;
  }
  .sm-catalog .sm-start-heading>button {
    width: 100%;
    margin-top: 16px;
  }
  .sm-catalog .sm-catalog-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sm-catalog .sm-catalog-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .sm-catalog .sm-summary-card {
    padding: 14px;
  }
  .sm-catalog .sm-summary-card strong {
    font-size: 23px;
  }
  .sm-catalog .sm-catalog-tabs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 0 10px;
  }
  .sm-catalog .sm-catalog-tab {
    padding: 12px 8px;
    justify-content: space-between;
    font-size: 11px;
  }
  .sm-catalog .sm-catalog-filter {
    padding: 16px;
    gap: 8px;
  }
  .sm-catalog .sm-catalog-filter button {
    font-size: 11px;
    padding: 9px 11px;
    flex: none;
  }
  .sm-catalog .sm-catalog-table,.sm-catalog .sm-catalog-table tbody,.sm-catalog .sm-catalog-table tr {
    display: block;
    width: 100%;
  }
  .sm-catalog .sm-catalog-table thead {
    display: none;
  }
  .sm-catalog .sm-catalog-table tr {
    border-top: 1px solid var(--line);
    padding: 15px 16px;
  }
  .sm-catalog .sm-catalog-table td,.sm-catalog .sm-catalog-table td:first-child {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0 0 13px;
    border: 0;
  }
  .sm-catalog .sm-catalog-table td:last-child {
    padding-bottom: 0;
  }
  .sm-catalog .sm-catalog-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 5px;
  }
  .sm-catalog .sm-catalog-table td[data-label="Status"],.sm-catalog .sm-catalog-table td[data-label="Aksi"] {
    display: inline-block;
    width: auto;
    vertical-align: top;
    margin-right: 18px;
  }
  .sm-catalog .sm-row-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .sm-catalog .sm-cell-title {
    font-size: 13px;
  }
  .sm-catalog .sm-catalog-footer {
    gap: 14px;
  }
  .sm-catalog .sm-catalog-footer nav {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .series-metadata .sm-provider-select {
    max-width: none;
  }
}

/* Series information: bound long alias lists and keep the reading summary compact. */
.sm-series-info {
  padding: 24px !important;
}
.sm-series-info .si-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sm-series-info .si-heading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.sm-series-info .si-provider {
  flex: none;
  font-size: 11px;
  color: var(--muted);
}
.sm-series-info .si-provider a {
  color: #9ac8f1;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 7px;
}
.sm-series-info .si-provider a:hover {
  text-decoration: underline;
}
.sm-series-info .si-overview {
  display: grid;
  grid-template-columns: 136px minmax(0,1fr);
  gap: 24px;
  align-items: start;
}
.sm-series-info .si-overview-copy {
  min-width: 0;
}
.sm-series-info .si-cover {
  width: 136px;
  aspect-ratio: 2/3;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101e2b;
  overflow: hidden;
  position: relative;
}
.sm-series-info .si-cover>a {
  display: block;
  width: 100%;
  height: 100%;
}
.sm-series-info .si-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.sm-series-info .si-cover>span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}
.sm-series-info .si-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 26px;
  padding: 0;
  margin: 0 0 20px;
}
.sm-series-info .si-facts>div {
  min-width: 72px;
  max-width: 100%;
}
.sm-series-info .si-facts dt,.sm-series-info .si-creators dt {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}
.sm-series-info .si-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.sm-series-info .si-facts .si-score {
  color: #92dbc0;
  font-variant-numeric: tabular-nums;
}
.sm-series-info .si-synopsis h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 0 0 9px;
  color: #d0deeb;
  line-height: 1.6;
}
.sm-series-info .si-synopsis h3>span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.sm-series-info .si-synopsis .sm-description {
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sm-series-info .si-creators {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 24px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sm-series-info .si-creators>div {
  min-width: 0;
}
.sm-series-info .si-creators dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #c8d8e7;
  overflow-wrap: anywhere;
}
.sm-series-info .si-taxonomy {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sm-series-info .si-taxonomy>div {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}
.sm-series-info .si-taxonomy dt {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 4px;
}
.sm-series-info .si-taxonomy dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  min-width: 0;
}
.sm-series-info .si-chip {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(150,190,220,.035);
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #c4d8e8;
  overflow-wrap: anywhere;
}
.sm-series-info .si-additional {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.sm-series-info .si-additional:empty {
  display: none;
}
.sm-series-info .si-disclosure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sm-series-info .si-disclosure>summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 550;
  color: #bbcede;
  line-height: 1.6;
}
.sm-series-info .si-disclosure>summary>span {
  display: inline-block;
  font-size: 10px;
  font-weight: 450;
  color: var(--muted);
  margin-left: 7px;
}
.sm-series-info .si-disclosure-body {
  border-top: 1px solid var(--line);
  padding: 14px;
  min-width: 0;
}
.sm-series-info .si-alias-search {
  display: block;
  max-width: 480px;
}
.sm-series-info .si-alias-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  font-size: 12px;
}
.sm-series-info .si-alias-status {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0;
  line-height: 1.7;
}
.sm-series-info .si-alias-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow: auto;
  scrollbar-width: thin;
}
.sm-series-info .si-alias-list li {
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(150,190,220,.08);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.sm-series-info .si-alias-list li[hidden] {
  display: none !important;
}
.sm-series-info .si-link-groups {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.sm-series-info .si-link-groups>div {
  min-width: 0;
}
.sm-series-info .si-link-groups h3 {
  font-size: 10px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: var(--muted);
}
.sm-series-info .si-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
}
.sm-series-info .si-links a {
  font-size: 12px;
  line-height: 1.8;
  color: #9ac8f1;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sm-series-info .si-links a:hover {
  text-decoration: underline;
}
.sm-series-info .si-source-synopsis .sm-description {
  margin: 0;
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
}
.sm-series-info .si-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.sm-series-info .si-footer a {
  font-size: 11px;
}
.sm-series-info .si-muted {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
@media (max-width:760px) {
  .sm-series-info {
    padding: 18px !important;
  }
  .sm-series-info .si-heading {
    gap: 10px;
    margin-bottom: 17px;
  }
  .sm-series-info .si-heading h2 {
    font-size: 16px;
  }
  .sm-series-info .si-provider {
    font-size: 10px;
  }
  .sm-series-info .si-overview {
    grid-template-columns: 82px minmax(0,1fr);
    gap: 16px;
  }
  .sm-series-info .si-cover {
    width: 82px;
  }
  .sm-series-info .si-facts {
    gap: 11px 16px;
    margin-bottom: 0;
  }
  .sm-series-info .si-facts>div {
    min-width: 66px;
  }
  .sm-series-info .si-facts dt {
    font-size: 9px;
  }
  .sm-series-info .si-facts dd {
    font-size: 12px;
  }
  .sm-series-info .si-synopsis {
    grid-column: 1/-1;
    margin-top: 18px;
  }
  .sm-series-info .si-overview-copy {
    display: contents;
  }
  .sm-series-info .si-overview-copy>.si-facts {
    grid-column: 2;
    grid-row: 1;
  }
  .sm-series-info .si-synopsis .sm-description {
    font-size: 12px;
    line-height: 1.9;
  }
  .sm-series-info .si-creators {
    gap: 13px 18px;
    margin-top: 17px;
    padding-top: 15px;
  }
  .sm-series-info .si-taxonomy {
    gap: 11px;
    margin-top: 16px;
    padding-top: 15px;
  }
  .sm-series-info .si-taxonomy>div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .sm-series-info .si-taxonomy dt {
    padding-top: 0;
    font-size: 10px;
  }
  .sm-series-info .si-chip {
    font-size: 10px;
    padding: 4px 7px;
  }
  .sm-series-info .si-alias-list {
    grid-template-columns: 1fr;
    max-height: 230px;
  }
  .sm-series-info .si-link-groups {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sm-series-info .si-disclosure>summary {
    padding: 11px 12px;
    font-size: 11px;
  }
  .sm-series-info .si-disclosure-body {
    padding: 12px;
  }
  .sm-series-info .si-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep preview decisions visible before long metadata. */
.series-metadata .sm-preview>.sm-preview-actions {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

/* Automatic publication controls share the existing metadata workflow. */
.wp-auto-create,.wp-auto-settings {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(109,165,220,.025);
}
.wp-auto-create {
  margin: 18px 0 0;
}
.wp-auto-create>legend,.wp-auto-targets>legend {
  font-size: 12px;
  font-weight: 650;
  padding: 0 6px;
}
.wp-auto-create>label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  max-width: 500px;
}
.wp-auto-create select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}
.wp-auto-default {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.wp-auto-default strong {
  color: #c5dbed;
  font-weight: 550;
}
.wp-auto-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.wp-auto-heading h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 4px;
}
.wp-auto-heading p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}
.wp-auto-badge {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  color: #a8c6de;
}
.wp-auto-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1925;
}
.wp-auto-toggle>span {
  min-width: 0;
}
.wp-auto-toggle strong,.wp-auto-site strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.wp-auto-toggle small,.wp-auto-site small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.wp-auto-toggle input[role=switch] {
  appearance: none;
  flex: none;
  width: 38px;
  height: 22px;
  border: 1px solid #4b6176;
  border-radius: 13px;
  background: #263949;
  position: relative;
  cursor: pointer;
}
.wp-auto-toggle input[role=switch]::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c4d2df;
  transition: transform .15s;
}
.wp-auto-toggle input[role=switch]:checked {
  background: #2d74c8;
  border-color: #4d99ee;
}
.wp-auto-toggle input[role=switch]:checked::after {
  transform: translateX(16px);
  background: #fff;
}
.wp-auto-toggle input[role=switch]:focus-visible {
  outline: 2px solid #9ac8f1;
  outline-offset: 4px;
}
.wp-auto-targets {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px 14px;
  border: 0;
  padding: 12px 0 0;
  margin: 8px 0 0;
  min-width: 0;
}
.wp-auto-targets[hidden] {
  display: none !important;
}
.wp-auto-targets>legend {
  padding: 0;
  font-size: 11px;
  color: #bdcfe0;
}
.wp-auto-site {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  min-width: 0;
  margin: 0 !important;
}
.wp-auto-site>input[type=checkbox] {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  accent-color: #3b87e1;
}
.wp-auto-site>span {
  min-width: 0;
}
.wp-auto-site-state {
  flex: none;
  margin-left: auto;
  font-size: 9px;
  line-height: 1.8;
  color: #d5b989;
}
.wp-auto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.wp-auto-footer p {
  margin: 0;
  max-width: 650px;
}
.wp-auto-footer button {
  flex: none;
  min-height: 40px;
  font-size: 11px;
}
.wordpress-series-metadata-panel>.wp-auto-settings {
  margin: 0 0 20px;
}
.wp-manual-publication {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.wp-manual-publication>summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  color: #bed4e6;
  line-height: 1.7;
}
.wp-manual-publication>p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.wp-auto-intent {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 3px solid #4d8eb8;
  font-size: 11px;
  line-height: 1.8;
  color: #bdd5e6;
}
@media (max-width:760px) {
  .wp-auto-create,.wp-auto-settings {
    padding: 14px;
  }
  .wp-auto-targets {
    grid-template-columns: 1fr;
  }
  .wp-auto-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .wp-auto-footer button {
    width: 100%;
  }
  .wp-auto-heading {
    gap: 10px;
  }
  .wp-auto-site-state {
    font-size: 8px;
  }
  .wp-auto-toggle {
    gap: 12px;
    padding: 11px 12px;
  }
  .wp-auto-toggle strong,.wp-auto-site strong {
    font-size: 11px;
  }
  .wp-auto-create>label {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .wp-auto-toggle input[role=switch]::after {
    transition: none;
  }
}

.wp-auto-create .field-help,.wp-auto-settings .field-help {
  font-size: 11px;
  line-height: 1.75;
  margin: 10px 0 0;
}
.wp-auto-create>[data-auto-publish-summary] {
  margin: 12px 0 8px;
}
.wp-auto-intents {
  margin: 0 0 18px;
}
.wp-auto-intents h3 {
  margin: 0 0 10px;
  font-size: 12px;
}
.wp-auto-intents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.wp-auto-intents li {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.wp-auto-intents strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wp-auto-intents small,.wp-auto-intents p {
  display: block;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
@media (max-width:760px) {
  .wp-auto-intents ul {
    grid-template-columns: 1fr;
  }
  .wp-auto-badge {
    max-width: 130px;
    white-space: normal;
    line-height: 1.6;
  }
}

/* Chapter work and catalogue metadata have independent queues. */
.jobs-scope-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #101b28;
  max-width: 520px;
}
.jobs-scope-tab {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  line-height: 1.6;
}
.jobs-scope-tab.active {
  color: #e0edf9;
  background: #253951;
  border-color: #3e5f80;
}
.jobs-scope-tab:hover {
  color: var(--text);
}
.jobs-scope-tab:focus-visible {
  outline: 2px solid #8dc4f5;
  outline-offset: 3px;
}
[data-jobs-chapter-pipeline][hidden],.jobs-metadata-link[hidden] {
  display: none !important;
}
.jobs-metadata-link {
  margin: 0 0 18px;
  font-size: 12px;
}
.jobs-metadata-link a {
  color: #9bc8f1;
  text-decoration: none;
}
.jobs-metadata-link a:hover {
  text-decoration: underline;
}
@media (max-width:760px) {
  .jobs-scope-tabs {
    margin-bottom: 14px;
    width: 100%;
    max-width: none;
    gap: 4px;
  }
  .jobs-scope-tab {
    font-size: 12px;
    min-height: 42px;
    padding: 8px;
  }
  .process-tabs {
    max-width: 100%;
  }
}

.worker-capacity-plan,.worker-capacity-runtime {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.worker-capacity-plan h3,.worker-capacity-runtime>strong {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 650;
}
.worker-capacity-plan dl {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  margin: 0;
}
.worker-capacity-plan dl>div {
  min-width: 0;
}
.worker-capacity-plan dt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.worker-capacity-plan dd {
  margin: 5px 0 0;
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.worker-capacity-plan .field-help {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.8;
}
.worker-capacity-plan [hidden] {
  display: none !important;
}
.worker-capacity-runtime>div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.worker-capacity-runtime span>strong {
  color: var(--text);
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}
@media (max-width:760px) {
  .worker-capacity-plan,.worker-capacity-runtime {
    padding: 14px;
  }
  .worker-capacity-plan dl {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
  }
  .worker-capacity-plan dd {
    font-size: 21px;
  }
  .worker-capacity-plan dt {
    font-size: 10px;
  }
}

/* Online capacity and active jobs are separate, scoped measurements. */
.process-intro {
  align-items: flex-start;
}
.process-intro>.page-lead {
  flex: 1;
  min-width: 0;
}
.jobs-worker-context {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 240px;
  max-width: 380px;
  text-align: right;
}
.jobs-worker-context>strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  color: #c7deef;
}
.jobs-worker-context>small {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.jobs-worker-context .jobs-worker-note {
  max-width: 320px;
  color: #8ea7bb;
}
.jobs-count-scope-note {
  margin: -4px 0 16px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
@media (max-width:760px) {
  .process-intro>.page-lead {
    flex: 1 0 100%;
  }
  .jobs-worker-context {
    min-width: 0;
    width: 100%;
    max-width: none;
    justify-items: start;
    text-align: left;
    gap: 6px;
  }
  .jobs-worker-context .jobs-worker-note {
    max-width: none;
  }
  .jobs-worker-context>strong {
    font-size: 12px;
  }
  .jobs-worker-context [data-live-poll-state] {
    max-width: 100%;
    white-space: normal;
    line-height: 1.7;
  }
  .jobs-count-scope-note {
    margin: 0 0 14px;
    font-size: 10px;
  }
  .process-status-tabs>span:first-child {
    white-space: normal;
    line-height: 1.5;
    max-width: 100px;
  }
}

/* Local save and WordPress delivery are separate statuses. */
.chapter-publication-status {
  margin-top: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.chapter-publication-status .status {
  max-width: 100%;
  white-space: normal;
}
.chapter-publication-status .text-button {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
}
.chapter-publication-status small {
  margin-top: 4px;
  line-height: 1.45;
}
.publication-summary>div {
  min-width: 0;
}

.ai-chapter-row>.ai-status {
  white-space: normal;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ai-chapter-row>.ai-status::before {
  flex-shrink: 0;
}
@media (max-width:760px) {
  .ai-chapter-row {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
  .ai-chapter-action {
    min-width: 0;
    text-align: right;
  }
  .ai-chapter-action a {
    overflow-wrap: anywhere;
  }
}
