/*
 * Matsorik Publisher Studio V3
 * A dense publishing operations surface layered over the stable application.
 * The existing DOM ids, events and API contracts remain unchanged.
 */

:root {
  --v3-canvas: #eef3f1;
  --v3-canvas-strong: #e6ece9;
  --v3-surface: #ffffff;
  --v3-surface-soft: #f7f9f8;
  --v3-ink: #10272e;
  --v3-ink-soft: #334b52;
  --v3-muted: #66777c;
  --v3-line: #d5dfdb;
  --v3-line-strong: #bfcfc9;
  --v3-accent: #007f70;
  --v3-accent-strong: #00675c;
  --v3-accent-soft: #e5f3ef;
  --v3-success: #24734f;
  --v3-warning: #9a6418;
  --v3-warning-soft: #fff7e8;
  --v3-danger: #b64a3a;
  --v3-danger-soft: #fff1ee;
  --v3-sidebar: #10292e;
  --v3-sidebar-soft: #17373d;
  --v3-radius-surface: 8px;
  --v3-radius-control: 6px;
  --v3-shadow-float: 0 24px 64px rgba(16, 39, 46, .16);
  --v3-ease: cubic-bezier(.2, 0, 0, 1);
  --v3-space-1: 4px;
  --v3-space-2: 8px;
  --v3-space-3: 12px;
  --v3-space-4: 16px;
  --v3-space-5: 24px;
  --v3-space-6: 32px;
  --ui-bg: var(--v3-canvas);
  --ui-panel: var(--v3-surface);
  --ui-panel-subtle: var(--v3-surface-soft);
  --ui-ink: var(--v3-ink);
  --ui-ink-soft: var(--v3-ink-soft);
  --ui-muted: var(--v3-muted);
  --ui-line: var(--v3-line);
  --ui-line-strong: var(--v3-line-strong);
  --ui-accent: var(--v3-accent);
  --ui-accent-strong: var(--v3-accent-strong);
  --ui-accent-soft: var(--v3-accent-soft);
  --ui-radius: var(--v3-radius-control);
  --ui-radius-small: 4px;
  --ui-shadow: none;
  --ui-shadow-strong: var(--v3-shadow-float);
}

html,
body {
  color: var(--v3-ink);
  background: var(--v3-canvas);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

body {
  font-size: 14px;
}

h1,
h2,
h3,
h4,
.auth-panel h1 {
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 760;
}

.button,
.icon-button,
input,
select,
textarea,
.badge {
  border-radius: var(--v3-radius-control);
}

.button {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 12px;
  font-weight: 720;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 180ms var(--v3-ease), transform 120ms ease;
}

.button:active:not(:disabled),
.icon-button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
  box-shadow: 0 8px 18px rgba(0, 127, 112, .16);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--v3-accent-strong);
  background: var(--v3-accent-strong);
  box-shadow: 0 10px 24px rgba(0, 103, 92, .2);
}

.button-secondary,
.button-quiet {
  color: var(--v3-ink-soft);
  border-color: var(--v3-line-strong);
  background: var(--v3-surface);
}

.button-secondary:hover:not(:disabled),
.button-quiet:hover:not(:disabled) {
  color: var(--v3-accent-strong);
  border-color: #87b8af;
  background: #f2faf7;
}

.button-success {
  border-color: var(--v3-success);
  background: var(--v3-success);
}

.button-danger {
  color: var(--v3-danger);
  border-color: #ddb0a7;
  background: var(--v3-surface);
}

.icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  color: #50646a;
  border: 1px solid var(--v3-line);
  background: var(--v3-surface);
}

.icon-button:hover:not(:disabled) {
  color: var(--v3-accent-strong);
  border-color: #8bbab2;
  background: var(--v3-accent-soft);
}

input,
select,
textarea {
  border-color: var(--v3-line-strong);
  background: var(--v3-surface);
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--v3-accent);
  box-shadow: 0 0 0 3px rgba(0, 127, 112, .12);
}

/* Authentication */
.auth-view {
  grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr);
  background: var(--v3-surface);
}

.auth-brand {
  padding: 38px 42px;
  border-right: 1px solid var(--v3-line);
  background: var(--v3-canvas);
}

.auth-brand::before {
  content: "";
  position: absolute;
  right: 42px;
  bottom: 94px;
  left: 42px;
  height: 1px;
  background: var(--v3-line-strong);
}

.auth-brand::after {
  right: 42px;
  bottom: 58px;
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 680;
  content: "PDF  /  SORU  /  COZUM  /  YAYIN";
}

.auth-panel {
  width: min(560px, calc(100% - 64px));
  padding: 44px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  box-shadow: 0 18px 50px rgba(16, 39, 46, .08);
}

.auth-panel h1 {
  max-width: 470px;
  margin: 0;
  font-size: 36px;
  font-weight: 780;
  line-height: 1.08;
}

.auth-copy {
  max-width: 58ch;
  margin: 18px 0 28px;
  color: var(--v3-muted);
  line-height: 1.65;
}

/* Application frame */
.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--v3-canvas);
}

.sidebar {
  color: #eaf4f1;
  border-right: 0;
  background: var(--v3-sidebar);
}

.sidebar-brand {
  min-height: 76px;
  padding: 17px 18px;
  border-bottom-color: rgba(255, 255, 255, .1);
}

.sidebar .brand-mark {
  color: var(--v3-sidebar);
  background: #9bd7ca;
}

.sidebar-brand .brand-name,
.sidebar .organization-name {
  color: #fff;
}

.sidebar-brand .brand-product,
.sidebar .sidebar-label,
.sidebar .environment-row {
  color: #9bb0b3;
}

.sidebar-nav {
  gap: 4px;
  padding: 18px 12px;
}

.sidebar .nav-item {
  min-height: 44px;
  color: #bdd0d2;
  border-color: transparent;
  background: transparent;
}

.sidebar .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.sidebar .nav-item.is-active {
  color: #fff;
  border-color: rgba(155, 215, 202, .18);
  background: var(--v3-sidebar-soft);
  box-shadow: inset 3px 0 0 #66c7b8;
}

.sidebar .nav-count {
  color: #dff7f1;
  background: rgba(102, 199, 184, .18);
}

.sidebar-footer {
  border-top-color: rgba(255, 255, 255, .1);
}

.sidebar-team-button {
  color: #d4e4e4;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
}

.sidebar-team-button:hover {
  color: #fff;
  border-color: rgba(155, 215, 202, .38);
  background: rgba(155, 215, 202, .1);
}

@media (min-width: 1101px) {
  .app-shell.is-book-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.is-book-editor > .sidebar,
  .app-shell.is-book-editor > .nav-backdrop {
    display: none;
  }

  .app-shell.is-book-editor .book-workspace {
    width: min(1760px, 100%);
  }
}

.topbar {
  min-height: 76px;
  padding-inline: 28px;
  border-bottom-color: var(--v3-line);
  background: rgba(255, 255, 255, .98);
  box-shadow: none;
  backdrop-filter: none;
}

.project-identity h2 {
  font-size: 16px;
  font-weight: 760;
}

.topbar-metrics > div {
  min-width: 108px;
  border-left-color: var(--v3-line);
}

.topbar-metrics strong {
  font-size: 18px;
}

.workspace {
  width: min(1680px, 100%);
  padding: 30px 34px 54px;
}

.books-workspace,
.book-workspace,
.home-workspace,
.deliveries-workspace {
  width: min(1600px, 100%);
}

/* Portfolio command surface */
.books-header {
  min-height: 96px;
  align-items: center;
  padding: 2px 0 24px;
  order: 1;
}

.books-header h1 {
  font-size: 34px;
  font-weight: 790;
}

.books-header p:not(.eyebrow) {
  max-width: 660px;
  color: var(--v3-muted);
  font-size: 13px;
}

.books-header .button {
  min-width: 150px;
  min-height: 46px;
}

.books-workspace .assurance-flow {
  position: relative;
  display: grid !important;
  min-height: 104px;
  grid-template-columns: minmax(210px, 1.15fr) repeat(4, minmax(130px, 1fr));
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  order: 2;
}

.assurance-flow-route {
  position: absolute;
  inset: 18px 16px 14px;
  z-index: 0;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  pointer-events: none;
}

.assurance-route-track,
.assurance-route-progress {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.assurance-route-track {
  stroke: var(--v3-line);
}

.assurance-route-progress {
  stroke: #71bbae;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.assurance-flow-heading,
.assurance-flow-step {
  position: relative;
  z-index: 1;
}

.assurance-flow-heading {
  padding-right: 22px;
}

.assurance-flow-heading strong {
  display: block;
  max-width: 190px;
  color: var(--v3-ink);
  font-size: 14px;
  line-height: 1.35;
}

.assurance-flow-step {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: transparent;
}

.assurance-flow-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--v3-accent);
  border: 1px solid #a8d2ca;
  border-radius: 50%;
  background: var(--v3-surface);
}

.assurance-flow-step.is-complete > span {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
}

.assurance-flow-step div {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 2px 4px;
  background: var(--v3-surface);
}

.assurance-flow-step small,
.assurance-flow-step strong,
.assurance-flow-step em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assurance-flow-step small {
  color: var(--v3-muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 740;
}

.assurance-flow-step strong {
  color: var(--v3-ink);
  font-size: 10px;
}

.assurance-flow-step em {
  color: var(--v3-accent-strong);
  font-size: 9px;
  font-style: normal;
  font-weight: 720;
}

.books-workspace .operations-status {
  min-height: 92px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #e4d7ba;
  border-left: 4px solid var(--v3-warning);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-warning-soft);
  order: 3;
}

.operations-risk-icon {
  color: var(--v3-warning);
  border-color: #ead7af;
  background: #fff;
}

.operations-status h2 {
  font-size: 17px;
}

.operations-status-detail {
  max-width: 740px;
}

.books-workspace .operations-summary {
  overflow: hidden;
  border-color: var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  order: 4;
}

.books-workspace .operations-summary > div {
  min-height: 78px;
  padding: 15px 18px;
}

.books-workspace .operations-summary span {
  font-size: 9px;
}

.books-workspace .operations-summary strong {
  font-size: 22px;
}

.operations-grid {
  order: 5;
}

.books-table-section {
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  order: 6;
}

.production-table-heading {
  min-height: 72px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--v3-line);
}

.library-heading-line h2 {
  font-size: 17px;
}

.book-table-head {
  padding-inline: 16px;
  color: var(--v3-muted);
  border-bottom: 1px solid var(--v3-line);
  background: var(--v3-surface-soft);
}

.books-table {
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.publication-book-card {
  min-height: 126px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--v3-line);
  border-radius: 0;
  background: var(--v3-surface);
  box-shadow: none;
  transition: background-color 140ms ease, box-shadow 180ms var(--v3-ease), transform 180ms var(--v3-ease);
}

.publication-book-card:last-child {
  border-bottom: 0;
}

.publication-book-card:hover {
  background: #f5faf8;
  box-shadow: inset 3px 0 0 var(--v3-accent);
  transform: none;
}

.publication-book-cover {
  width: 50px;
  height: 68px;
  color: #dff4ef;
  border: 0;
  border-radius: 4px 7px 7px 4px;
  background: var(--v3-sidebar);
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, .13);
}

.publication-book-cover strong {
  color: #fff;
}

.publication-book-title > strong {
  font-size: 15px;
}

.publication-book-type,
.publication-book-readiness small,
.publication-book-next small {
  color: var(--v3-muted);
}

.publication-book-track > span > i {
  color: var(--v3-muted);
  border-color: var(--v3-line);
  background: var(--v3-surface-soft);
}

.publication-book-track > span.is-complete > i {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
}

.publication-book-track > span.is-current > i {
  color: var(--v3-accent);
  border-color: #8fc8bd;
  background: var(--v3-accent-soft);
}

.publication-book-next {
  border-left-color: var(--v3-line);
}

.publication-book-next.has-work {
  color: #71490f;
  background: var(--v3-warning-soft);
}

/* Portfolio V4: action first, workflow second, records always scannable. */
.books-workspace {
  gap: 0;
}

.books-header {
  min-height: 78px;
  padding: 0 0 18px;
}

.books-header h1 {
  font-size: 32px;
  line-height: 1.05;
}

.books-header p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 6px;
  font-size: 12px;
}

.portfolio-command {
  display: grid;
  min-height: 126px;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .72fr);
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  order: 2;
}

.portfolio-command .operations-status {
  min-height: 126px;
  margin: 0;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid var(--v3-line);
  border-left: 4px solid var(--v3-accent);
  border-radius: 0;
  background: var(--v3-surface);
  order: initial;
}

.portfolio-command .operations-status[data-status="critical"] {
  border-left-color: var(--v3-danger);
}

.portfolio-command .operations-status[data-status="review"] {
  border-left-color: var(--v3-warning);
}

.portfolio-command .operations-risk-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--v3-accent);
  border-color: #a8d2ca;
  border-radius: var(--v3-radius-control);
  background: var(--v3-accent-soft);
}

.portfolio-command .operations-status[data-status="critical"] .operations-risk-icon {
  color: var(--v3-danger);
  border-color: #edb5ac;
  background: var(--v3-danger-soft);
}

.portfolio-command .operations-status[data-status="review"] .operations-risk-icon {
  color: var(--v3-warning);
  border-color: #ead7af;
  background: var(--v3-warning-soft);
}

.portfolio-command .operations-status h2 {
  font-size: 18px;
  line-height: 1.25;
}

.portfolio-command .operations-status-detail {
  max-width: 580px;
  margin-top: 4px;
  font-size: 10px;
}

.portfolio-command .operations-status-actions {
  align-self: center;
}

.portfolio-command .operations-status-actions .button {
  min-height: 40px;
  white-space: nowrap;
}

.books-workspace .portfolio-command .operations-summary {
  display: grid !important;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: var(--v3-surface-soft);
  order: initial;
}

.books-workspace .portfolio-command .operations-summary > div {
  min-height: 63px;
  padding: 12px 15px;
  border-right: 1px solid var(--v3-line);
  border-bottom: 1px solid var(--v3-line);
}

.books-workspace .portfolio-command .operations-summary > div:nth-child(2n) {
  border-right: 0;
}

.books-workspace .portfolio-command .operations-summary > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.books-workspace .portfolio-command .operations-summary span {
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.books-workspace .portfolio-command .operations-summary strong {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1;
}

.books-workspace .assurance-flow {
  min-height: 80px;
  grid-template-columns: minmax(170px, .82fr) repeat(4, minmax(130px, 1fr));
  margin: 0 0 16px;
  padding: 9px 14px;
  order: 3;
}

.assurance-flow-route {
  inset: 12px 14px;
  width: calc(100% - 28px);
  height: calc(100% - 24px);
}

.assurance-flow-heading {
  padding-right: 16px;
}

.assurance-flow-heading .eyebrow {
  margin-bottom: 3px;
}

.assurance-flow-heading strong {
  max-width: 145px;
  font-size: 13px;
}

.assurance-flow-step {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 9px;
}

.assurance-flow-step > span {
  width: 34px;
  height: 34px;
  border-radius: var(--v3-radius-control);
}

.assurance-flow-step > span svg {
  width: 16px;
  height: 16px;
}

.assurance-flow-step small {
  font-size: 7px;
}

.assurance-flow-step strong {
  font-size: 10px;
}

.assurance-flow-step em {
  font-size: 8px;
}

.operations-grid {
  order: 4;
}

.books-table-section {
  order: 5;
}

.books-table-section .production-table-heading {
  min-height: 66px;
  padding: 11px 14px;
}

.books-table-section .eyebrow {
  margin-bottom: 2px;
}

.book-table-head {
  display: none;
}

.publication-book-card {
  min-height: 112px;
  grid-template-areas: "cover main next readiness";
  grid-template-columns: 48px minmax(410px, 1.55fr) minmax(220px, .62fr) minmax(110px, .3fr);
  gap: 16px;
  padding: 14px 16px;
}

.publication-book-cover {
  grid-area: cover;
  width: 46px;
  height: 64px;
}

.publication-book-main {
  grid-area: main;
  gap: 5px;
}

.publication-book-type {
  font-size: 7px;
}

.publication-book-title > strong {
  font-size: 14px;
}

.publication-book-title em {
  margin-top: 2px;
  font-size: 9px;
}

.publication-book-track {
  gap: 6px;
}

.publication-book-track > i {
  width: 34px;
}

.publication-book-next {
  grid-area: next;
  min-height: 68px;
  padding: 10px 36px 10px 16px;
  border-left: 1px solid var(--v3-line);
  background: transparent;
}

.publication-book-next.has-work {
  color: var(--v3-ink);
  background: var(--v3-warning-soft);
}

.publication-book-next.has-work strong {
  color: #71490f;
}

.publication-book-next strong {
  font-size: 12px;
}

.publication-book-next > svg {
  right: 10px;
  color: var(--v3-accent);
  transition: transform 180ms var(--v3-ease);
}

.publication-book-card:hover .publication-book-next > svg {
  transform: translate(3px, calc(-50% - 3px));
}

.publication-book-readiness {
  grid-area: readiness;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--v3-line);
}

.publication-book-readiness strong {
  font-size: 21px;
}

.publication-book-readiness > i {
  max-width: 96px;
  height: 4px;
}

.publication-book-readiness em,
.publication-book-next em {
  font-size: 8px;
}

@media (max-width: 1180px) {
  .portfolio-command {
    grid-template-columns: 1fr;
  }

  .portfolio-command .operations-status {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
  }

  .books-workspace .portfolio-command .operations-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .books-workspace .portfolio-command .operations-summary > div {
    min-height: 58px;
    border-right: 1px solid var(--v3-line);
    border-bottom: 0;
  }

  .books-workspace .portfolio-command .operations-summary > div:nth-child(2) {
    border-right: 1px solid var(--v3-line);
  }

  .publication-book-card {
    grid-template-columns: 46px minmax(0, 1fr) minmax(200px, .55fr) 104px;
  }
}

@media (max-width: 900px) {
  .portfolio-command .operations-status {
    align-items: stretch;
  }

  .portfolio-command .operations-status-actions {
    width: 100%;
  }

  .publication-book-card {
    grid-template-areas:
      "cover main readiness"
      "cover next readiness";
    grid-template-columns: 44px minmax(0, 1fr) 106px;
    grid-template-rows: auto auto;
  }

  .publication-book-cover {
    grid-column: auto;
    grid-row: auto;
  }

  .publication-book-main {
    grid-column: auto;
    grid-row: auto;
  }

  .publication-book-next {
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
    padding: 9px 30px 0 0;
    border-top: 1px solid var(--v3-line);
    border-left: 0;
    background: transparent;
  }

  .publication-book-readiness {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .portfolio-command .operations-status {
    padding: 14px;
  }

  .books-workspace .portfolio-command .operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-workspace .portfolio-command .operations-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--v3-line);
  }

  .books-workspace .portfolio-command .operations-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .books-workspace .assurance-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-flow-step {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .assurance-flow-step > span {
    width: 32px;
    height: 32px;
  }

  .publication-book-card {
    grid-template-areas:
      "cover main"
      "next next"
      "readiness readiness";
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 12px;
  }

  .publication-book-cover {
    grid-column: auto;
    grid-row: auto;
  }

  .publication-book-main {
    grid-column: auto;
    grid-row: auto;
  }

  .publication-book-next {
    grid-column: auto;
    grid-row: auto;
  }

  .publication-book-readiness {
    display: grid;
    min-height: 32px;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: auto 46px minmax(64px, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0;
    border-top: 1px solid var(--v3-line);
    border-left: 0;
  }

  .publication-book-readiness strong {
    font-size: 17px;
  }
}

/* Book and source review */
.book-strip {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface) var(--v3-radius-surface) 0 0;
  background: var(--v3-surface);
}

.book-strip-copy h1 {
  font-size: 20px;
}

.book-tabs {
  min-height: 50px;
  padding-inline: 12px;
  border: 1px solid var(--v3-line);
  border-top: 0;
  background: var(--v3-surface);
}

.book-tab {
  min-height: 49px;
  padding-inline: 14px;
  color: var(--v3-muted);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.book-tab.is-active {
  color: var(--v3-ink);
  border-bottom-color: var(--v3-accent);
  background: transparent;
  box-shadow: none;
}

.candidate-progress-strip {
  min-height: 76px;
  border-color: var(--v3-line);
  background: var(--v3-surface);
}

.candidate-progress-strip > div {
  position: relative;
  padding-left: 18px;
}

.candidate-progress-strip > div::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 2px;
  background: var(--v3-line-strong);
  content: "";
}

.candidate-progress-strip > div:first-child::before,
.candidate-progress-strip > div:nth-child(2)::before {
  background: var(--v3-accent);
}

.candidate-editor {
  min-height: calc(100dvh - 244px);
  grid-template-columns: 430px minmax(560px, 1fr);
  border-color: var(--v3-line);
  border-radius: 0 0 var(--v3-radius-surface) var(--v3-radius-surface);
  box-shadow: 0 12px 36px rgba(16, 39, 46, .07);
}

.book-workspace:not(.is-bulk-mode) .candidate-list-panel {
  border-right-color: var(--v3-line);
  background: #f4f7f6;
}

.book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
  grid-template-columns: 430px minmax(520px, 1fr) 300px;
}

.candidate-panel-heading {
  min-height: 66px;
  padding: 13px 15px;
  border-bottom-color: var(--v3-line);
  background: var(--v3-surface);
}

.candidate-panel-heading h2 {
  font-size: 14px;
}

.candidate-filter-zone {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--v3-line);
  background: #f7faf9;
}

.candidate-filter-zone-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.candidate-filter-zone-heading span {
  color: var(--v3-ink-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.candidate-filter-zone-heading small {
  color: var(--v3-muted);
  font-size: 9px;
}

.candidate-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.candidate-filter {
  display: grid;
  min-width: 0;
  min-height: 44px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-control);
  color: var(--v3-ink-soft);
  background: var(--v3-surface);
  font-size: 9px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 180ms var(--v3-ease), transform 140ms var(--v3-ease);
}

.candidate-filter > svg,
.candidate-filter > i {
  width: 15px;
  height: 15px;
}

.candidate-filter > span {
  min-width: 0;
  line-height: 1.15;
  white-space: normal;
}

.candidate-filter > em,
.candidate-approval-filter > em {
  display: inline-flex;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 4px;
  background: #edf3f1;
  font-size: 8px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.candidate-filter:hover:not(.is-active) {
  border-color: #abc2bc;
  background: #fbfdfc;
  transform: translateY(-1px);
}

.candidate-filter.is-active {
  border-color: var(--v3-accent-strong);
  color: #fff;
  background: var(--v3-accent-strong);
  box-shadow: 0 7px 16px rgba(0, 103, 92, .16);
}

.candidate-filter.is-active > em {
  color: #fff;
  background: rgba(255, 255, 255, .17);
}

.candidate-filter:focus-visible,
.candidate-approval-filter:focus-visible {
  outline: 3px solid rgba(0, 127, 112, .2);
  outline-offset: 2px;
}

.candidate-approval-panel {
  display: grid;
  gap: 9px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #c8d8d4;
  background: #eaf2ef;
}

.candidate-approval-panel[hidden] {
  display: none;
}

.candidate-approval-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-approval-heading > svg,
.candidate-approval-heading > i {
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 1px solid #bfd4ce;
  border-radius: 5px;
  color: var(--v3-accent-strong);
  background: rgba(255, 255, 255, .68);
}

.candidate-approval-heading > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.candidate-approval-heading strong {
  color: #274b45;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.candidate-approval-heading small {
  color: #607b75;
  font-size: 9px;
}

.candidate-approval-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.candidate-approval-filter {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #526d67;
  background: transparent;
  font-size: 8px;
  font-weight: 740;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 180ms var(--v3-ease), transform 140ms var(--v3-ease);
}

.candidate-approval-filter > svg,
.candidate-approval-filter > i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.candidate-approval-filter > span {
  line-height: 1.15;
}

.candidate-approval-filter:hover:not(.is-active) {
  color: var(--v3-accent-strong);
  background: rgba(255, 255, 255, .58);
}

.candidate-approval-filter.is-active {
  border-color: #9fc2b9;
  color: var(--v3-accent-strong);
  background: var(--v3-surface);
  box-shadow: 0 3px 10px rgba(16, 39, 46, .07);
}

.candidate-approval-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: var(--v3-accent-soft);
}

.candidate-list {
  padding: 10px 12px 14px;
}

.candidate-structure-section {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-control);
  background: var(--v3-surface);
}

.candidate-structure-section.is-expanded {
  border-color: #b8ccc7;
}

.candidate-structure-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--v3-ink);
  text-align: left;
  cursor: pointer;
}

.structure-disclosure {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #b9cbc7;
  border-radius: 4px;
  color: #315d57;
  background: rgba(255, 255, 255, .72);
}

.structure-disclosure svg,
.structure-disclosure i {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.candidate-structure-toggle[aria-expanded="false"] .structure-disclosure svg,
.candidate-structure-toggle[aria-expanded="false"] .structure-disclosure i {
  transform: rotate(-90deg);
}

.candidate-structure-toggle > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.candidate-structure-toggle strong,
.candidate-structure-toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-structure-toggle strong {
  font-size: 14px;
  font-weight: 760;
}

.candidate-structure-toggle small {
  color: var(--v3-muted);
  font-size: 11px;
}

.candidate-structure-toggle em {
  min-width: 46px;
  padding: 4px 7px;
  border: 1px solid var(--v3-line);
  border-radius: 4px;
  color: var(--v3-muted);
  font-size: 11px;
  text-align: center;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.candidate-structure-toggle.is-section {
  min-height: 72px;
  padding: 11px 12px;
  background: #e7efed;
}

.candidate-structure-toggle.is-section strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.candidate-structure-toggle.is-section:hover {
  background: #dfeae7;
}

.candidate-section-body {
  padding: 0 8px 8px;
  border-top: 1px solid var(--v3-line);
  background: #f8faf9;
}

.candidate-test-group + .candidate-test-group {
  border-top: 1px solid #dbe5e2;
}

.candidate-structure-toggle.is-test {
  min-height: 56px;
  padding: 9px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.candidate-structure-toggle.is-test:hover {
  background: #eef4f2;
}

.candidate-structure-toggle.is-test .structure-disclosure {
  width: 26px;
  height: 26px;
  border-color: transparent;
  background: #edf3f1;
}

.candidate-structure-toggle.is-test strong {
  font-size: 13px;
}

.candidate-test-body {
  margin: 0 0 8px 18px;
  padding: 4px 0 2px 12px;
  border-left: 2px solid #9fc4bc;
}

.candidate-test-body .candidate-row {
  min-height: 66px;
}

.candidate-row {
  min-height: 72px;
  margin-bottom: 5px;
  padding: 8px;
  border-radius: var(--v3-radius-control);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.candidate-row:hover {
  border-color: var(--v3-line-strong);
  background: var(--v3-surface);
}

.candidate-row.is-active {
  border-color: #83baaf;
  background: var(--v3-accent-soft);
  box-shadow: inset 3px 0 0 var(--v3-accent);
}

.candidate-thumb {
  border-color: var(--v3-line);
  border-radius: 4px;
  background: #fff;
}

.candidate-canvas-panel {
  background: #e7eeeb;
}

.candidate-page-stage,
.candidate-crop-stage {
  min-height: 620px;
  padding: 28px;
  background-color: #e9efed;
  background-image: linear-gradient(#dce6e2 1px, transparent 1px), linear-gradient(90deg, #dce6e2 1px, transparent 1px);
  background-size: 24px 24px;
}

.candidate-page-stage img,
.candidate-crop-stage img {
  max-width: min(100%, 980px);
  border: 1px solid #c9d5d1;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 39, 46, .13);
}

.candidate-flow-bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  min-height: 70px;
  padding: 10px 14px;
  border-top-color: var(--v3-line);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -10px 28px rgba(16, 39, 46, .07);
}

.candidate-flow-navigation small {
  color: var(--v3-muted);
}

.candidate-inspector {
  border-left-color: var(--v3-line);
  background: var(--v3-surface);
  box-shadow: -18px 0 42px rgba(16, 39, 46, .12);
}

/* Question review and proof chain */
.question-strip {
  min-height: 88px;
  padding: 12px 0 20px;
  border: 0;
  border-bottom: 1px solid var(--v3-line-strong);
  border-radius: 0;
  background: transparent;
}

.question-heading h1 {
  font-size: 22px;
  font-weight: 780;
}

.question-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--v3-accent-strong);
  border: 1px solid #9bc9c0;
  border-radius: var(--v3-radius-control);
  background: var(--v3-accent-soft);
  font-size: 16px;
  font-weight: 790;
}

.assurance-bar {
  grid-template-columns: minmax(320px, 1fr) minmax(480px, .9fr);
  min-height: 98px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-left: 4px solid var(--v3-accent);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  box-shadow: none;
}

.assurance-lead {
  padding: 16px 18px;
}

.assurance-seal {
  color: var(--v3-accent);
  border-color: #a5d0c7;
  background: var(--v3-accent-soft);
}

.assurance-metrics {
  border-left: 1px solid var(--v3-line);
  background: var(--v3-surface-soft);
}

.assurance-metrics > div {
  min-height: 96px;
  padding: 18px 14px;
  border-left: 1px solid var(--v3-line);
  background: transparent;
}

.assurance-metrics > div:first-child {
  border-left: 0;
}

.assurance-metrics strong {
  font-size: 16px;
}

.value-workspace-grid {
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 18px;
  margin-top: 18px;
}

.delivery-preview {
  border-color: var(--v3-line);
  border-radius: var(--v3-radius-surface);
  box-shadow: 0 12px 36px rgba(16, 39, 46, .07);
}

.delivery-heading {
  min-height: 76px;
  padding: 14px 16px;
  border-bottom-color: var(--v3-line);
}

.delivery-heading h2 {
  font-size: 18px;
}

.proof-mode {
  border-color: var(--v3-line);
  background: #edf2f0;
}

.proof-mode-button {
  min-height: 34px;
  padding-inline: 11px;
}

.proof-mode-button.is-active {
  color: var(--v3-accent-strong);
  box-shadow: none;
}

.delivery-video-frame {
  background: #0d2025;
}

.proof-timeline {
  display: grid;
  grid-auto-columns: minmax(150px, 1fr);
  grid-auto-flow: column;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--v3-line);
  border-bottom: 1px solid var(--v3-line);
  background: var(--v3-surface-soft);
}

.proof-timeline button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-right: 1px solid var(--v3-line);
  border-radius: 0;
  background: transparent;
}

.proof-timeline button > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: var(--v3-muted);
  border: 1px solid var(--v3-line-strong);
  border-radius: 50%;
  background: var(--v3-surface);
  font-size: 9px;
  font-weight: 760;
}

.proof-timeline button > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-timeline button.is-active {
  color: var(--v3-accent-strong);
  background: var(--v3-accent-soft);
  box-shadow: inset 0 -3px 0 var(--v3-accent);
}

.proof-timeline button.is-active > span {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
}

.delivery-gates-heading,
.assurance-checks {
  background: var(--v3-surface);
}

.review-evidence-details {
  margin-top: 14px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
}

.review-evidence-details > summary {
  min-height: 58px;
  border-radius: var(--v3-radius-surface);
}

.visual-compare-grid {
  gap: 0;
  padding: 0;
}

.visual-column {
  border: 0;
  border-right: 1px solid var(--v3-line);
  border-radius: 0;
  box-shadow: none;
}

.visual-column:last-child {
  border-right: 0;
}

.panel-heading {
  min-height: 64px;
  padding: 12px 14px;
  border-bottom-color: var(--v3-line);
}

.image-stage {
  min-height: 360px;
  background: #eef3f1;
}

.image-stage img {
  max-width: 100%;
  max-height: 520px;
}

.review-rail {
  top: 94px;
  gap: 10px;
}

.decision-overview,
.answer-band,
.review-form,
.generation-panel,
.step-evidence-details {
  border-color: var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  box-shadow: none;
}

.answer-band {
  border-left: 4px solid var(--v3-accent);
  background: var(--v3-accent-soft);
}

.review-quick-actions button {
  border-radius: var(--v3-radius-control);
}

.editor-action-dock {
  border-color: var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 44px rgba(16, 39, 46, .14);
}

/* Book intake dialog and semantic SVG */
.upload-dialog::backdrop {
  background: rgba(11, 30, 35, .62);
}

.book-upload-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v3-line-strong);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  box-shadow: var(--v3-shadow-float);
}

.book-upload-dialog .upload-form {
  display: flex;
  max-height: min(760px, calc(100dvh - 32px));
  flex-direction: column;
  overflow-y: auto;
}

.book-upload-dialog .dialog-heading {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, .98);
}

.book-upload-dialog .dialog-heading > div > p:last-child {
  margin-top: 3px;
  color: var(--v3-muted);
  font-size: 11px;
}

.dialog-heading h2 {
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 780;
}

.book-upload-route {
  position: relative;
  display: grid;
  min-height: 106px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 13px 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--v3-line);
  background: var(--v3-surface-soft);
}

.book-upload-route > svg {
  position: absolute;
  inset: 17px 34px;
  width: calc(100% - 68px);
  height: calc(100% - 34px);
  pointer-events: none;
}

.book-upload-route-track,
.book-upload-route-progress {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.book-upload-route-track {
  stroke: #cdd9d5;
}

.book-upload-route-progress {
  stroke: var(--v3-accent);
  stroke-dasharray: 1;
  stroke-dashoffset: .75;
}

.book-upload-route-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.book-upload-route-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  place-items: center;
  color: var(--v3-muted);
  border: 1px solid var(--v3-line-strong);
  border-radius: 50%;
  background: var(--v3-surface);
}

.book-upload-route-step.is-current > span {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
  box-shadow: 0 0 0 5px rgba(0, 127, 112, .11);
}

.book-upload-route-step.is-complete > span {
  color: var(--v3-accent);
  border-color: #8bc2b7;
  background: var(--v3-accent-soft);
}

.book-upload-route-step strong {
  color: var(--v3-ink);
  font-size: 10px;
}

.book-upload-route-step small {
  color: var(--v3-muted);
  font-size: 8px;
}

.book-upload-body {
  display: block;
  min-height: 0;
}

.book-upload-source,
.book-upload-metadata {
  padding: 22px 24px;
}

.book-upload-source {
  border-right: 0;
  background: #f2f6f4;
}

.form-section-label {
  margin-bottom: 12px;
  color: var(--v3-ink-soft);
  font-size: 10px;
}

.book-upload-dialog .pdf-dropzone {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed #7eaaa2;
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 180ms var(--v3-ease), transform 180ms var(--v3-ease);
}

.book-upload-dialog .pdf-dropzone:hover,
.book-upload-dialog .pdf-dropzone:focus-within,
.book-upload-dialog .pdf-dropzone.is-dragging {
  border-color: var(--v3-accent);
  background: #f8fcfb;
  box-shadow: 0 0 0 4px rgba(0, 127, 112, .09);
  transform: translateY(-1px);
}

.book-upload-dialog .pdf-dropzone.has-file {
  border-style: solid;
  border-color: #82b9ae;
  background: var(--v3-accent-soft);
}

.book-upload-dialog[data-upload-phase="preparing"] .pdf-dropzone,
.book-upload-dialog[data-upload-phase="uploading"] .pdf-dropzone,
.book-upload-dialog[data-upload-phase="processing"] .pdf-dropzone {
  cursor: default;
  border-style: solid;
  border-color: #82b9ae;
  background: var(--v3-accent-soft);
  box-shadow: none;
  transform: none;
}

.book-upload-dialog .pdf-dropzone .book-intake-visual {
  width: min(280px, 80%);
  height: auto;
  margin-bottom: 2px;
  overflow: visible;
}

.book-intake-page-back {
  fill: #dfe8e5;
  stroke: #adc1bb;
}

.book-intake-page {
  fill: #fff;
  stroke: #718c86;
  stroke-width: 1.5;
}

.book-intake-copy,
.book-intake-transfer {
  fill: none;
  stroke: #8ca19c;
  stroke-width: 2;
  stroke-linecap: round;
}

.book-intake-detection {
  fill: rgba(0, 127, 112, .08);
  stroke: var(--v3-accent);
  stroke-width: 1.5;
}

.book-intake-corners {
  fill: none;
  stroke: var(--v3-accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.book-intake-scan {
  fill: none;
  stroke: #2da493;
  stroke-width: 2;
  stroke-linecap: round;
}

.book-intake-crops rect {
  fill: #fff;
  stroke: #84a49e;
  stroke-width: 1.5;
}

.book-intake-crops rect:nth-child(2) {
  fill: var(--v3-accent-soft);
  stroke: var(--v3-accent);
}

.pdf-dropzone > span {
  max-width: 300px;
}

.book-upload-prompt {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.pdf-dropzone > span > svg {
  width: 24px;
  height: 24px;
  margin: 0;
}

.pdf-dropzone strong {
  font-size: 14px;
}

.pdf-dropzone small {
  font-size: 10px;
}

.book-upload-picker {
  min-width: 120px;
  min-height: 40px;
  margin-top: 8px;
  pointer-events: none;
}

.book-upload-dialog[data-upload-phase="preparing"] .book-upload-picker,
.book-upload-dialog[data-upload-phase="uploading"] .book-upload-picker,
.book-upload-dialog[data-upload-phase="processing"] .book-upload-picker {
  display: none;
}

.book-upload-safety {
  margin-top: 14px;
  padding: 13px;
  border-color: #bfd9d3;
  background: var(--v3-accent-soft);
}

.book-upload-assurance {
  align-items: center;
  margin-inline: auto;
  max-width: 440px;
}

.book-upload-essentials {
  display: grid;
  max-width: 440px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 14px auto 0;
}

.book-upload-essentials label {
  display: grid;
  gap: 6px;
}

.book-upload-essentials label > span {
  color: var(--v3-ink-soft);
  font-size: 10px;
  font-weight: 720;
}

.book-upload-essentials input,
.book-upload-essentials select {
  min-width: 0;
}

.book-upload-dialog[data-upload-phase="preparing"] .book-upload-essentials,
.book-upload-dialog[data-upload-phase="uploading"] .book-upload-essentials,
.book-upload-dialog[data-upload-phase="processing"] .book-upload-essentials {
  opacity: .55;
  pointer-events: none;
}

.book-upload-safety strong {
  font-size: 11px;
}

.book-upload-safety span {
  color: #526d68;
  font-size: 10px;
}

.book-upload-metadata .upload-fields {
  gap: 16px;
}

.book-upload-metadata label > span {
  margin-bottom: 6px;
  color: var(--v3-ink-soft);
  font-size: 10px;
  font-weight: 720;
}

.book-upload-dialog .upload-progress-copy {
  padding: 11px 20px 6px;
  border-top-color: var(--v3-line);
  background: var(--v3-surface);
}

.book-upload-live-status {
  padding: 0 20px 18px;
  border-top: 1px solid var(--v3-line);
  background: var(--v3-surface);
}

.book-upload-live-status[hidden] {
  display: none;
}

.book-upload-live-status .upload-progress-copy {
  padding-inline: 0;
  border-top: 0;
}

.book-upload-dialog .book-upload-live-status .upload-progress-track {
  margin-inline: 0;
}

.book-upload-transfer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--v3-muted);
  font-size: 10px;
}

.book-upload-dialog .upload-progress-track {
  margin-inline: 20px;
  background: var(--v3-canvas-strong);
}

.book-upload-dialog .dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 12;
  flex: 0 0 auto;
  min-height: 84px;
  padding: 14px 20px;
  border-top-color: var(--v3-line);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -12px 30px rgba(16, 39, 46, .07);
}

.book-upload-dialog .dialog-actions p {
  color: var(--v3-muted);
  font-size: 10px;
}

.book-upload-dialog .dialog-actions .button {
  min-height: 46px;
}

/* Functional motion */
.v3-motion-enter {
  transform-origin: top center;
}

.book-upload-dialog[open] .book-upload-route-progress {
  animation: v3-route-draw 620ms var(--v3-ease) both;
}

.book-upload-dialog[open] .book-intake-scan {
  animation: v3-scan-line 1800ms ease-in-out 260ms infinite;
}

.book-upload-dialog[open] .book-intake-crops rect {
  animation: v3-crop-reveal 360ms var(--v3-ease) both;
}

.book-upload-dialog[open] .book-intake-crops rect:nth-child(1) {
  animation-delay: 220ms;
}

.book-upload-dialog[open] .book-intake-crops rect:nth-child(2) {
  animation-delay: 300ms;
}

.book-upload-dialog[open] .book-intake-crops rect:nth-child(3) {
  animation-delay: 380ms;
}

@keyframes v3-route-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: .75; }
}

@keyframes v3-scan-line {
  0%, 100% { transform: translateY(-8px); opacity: .45; }
  50% { transform: translateY(17px); opacity: 1; }
}

@keyframes v3-crop-reveal {
  from { opacity: 0; transform: translateX(-7px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive behavior */
@media (max-width: 1320px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .books-workspace .assurance-flow {
    grid-template-columns: 190px repeat(4, minmax(115px, 1fr));
    padding-inline: 14px;
  }

  .assurance-flow-step {
    grid-template-columns: 34px minmax(0, 1fr);
    padding-inline: 7px;
  }

  .assurance-flow-step > span {
    width: 34px;
    height: 34px;
  }

  .value-workspace-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 1100px) {
  .books-workspace .assurance-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 18px;
  }

  .assurance-flow-heading,
  .assurance-flow-route {
    display: none;
  }

  .assurance-flow-step {
    padding-inline: 10px;
  }

  .assurance-bar {
    grid-template-columns: 1fr;
  }

  .assurance-metrics {
    border-top: 1px solid var(--v3-line);
    border-left: 0;
  }

  .assurance-metrics > div {
    min-height: 64px;
  }

  .value-workspace-grid {
    grid-template-columns: 1fr;
  }

  .review-rail {
    position: static;
  }
}

@media (max-width: 900px) {
  .auth-view {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 92px;
    padding: 20px 22px;
  }

  .auth-brand::before,
  .auth-brand::after {
    display: none;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    width: 248px;
  }

  .topbar,
  .app-shell.is-book-editor .topbar,
  .app-shell.is-question-review .topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 10px;
    padding-inline: 14px;
  }

  .topbar > .mobile-only {
    grid-column: 1;
  }

  .topbar .project-identity {
    min-width: 0;
    grid-column: 2;
  }

  .topbar .user-menu {
    grid-column: 3;
  }

  .workspace {
    padding: 22px 16px 38px;
  }

  .books-workspace .assurance-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  .books-workspace .operations-status {
    align-items: stretch;
  }

  .candidate-editor {
    height: auto !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .book-workspace:not(.is-bulk-mode) .candidate-list-panel {
    min-height: 340px;
    max-height: 390px;
  }

  .candidate-list {
    min-height: 180px;
  }

  .book-workspace:not(.is-bulk-mode) .candidate-canvas-panel {
    height: auto;
    min-height: 640px;
    grid-template-rows: auto minmax(520px, auto) auto;
    overflow: visible;
  }

  .candidate-page-stage,
  .candidate-crop-stage {
    min-height: 520px;
    padding: 18px;
  }

  .book-upload-route {
    min-width: 680px;
  }

  .book-upload-dialog .upload-form {
    overflow-x: hidden;
  }

  .book-upload-dialog .book-upload-route {
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-inline: 14px;
  }

  .book-upload-body {
    grid-template-columns: 1fr;
  }

  .book-upload-source {
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
  }
}

/* Book explorer V4: full-width source collection and publication library. */
@media (min-width: 1101px) {
  .app-shell.is-book-editor .topbar {
    display: none;
  }

  .app-shell.is-book-editor .route-progress {
    top: 0;
    left: 0;
  }

  .app-shell.is-book-editor .book-workspace {
    width: 100%;
    max-width: none;
    padding: 0 24px 48px;
  }
}

.book-workspace > .book-strip {
  position: sticky;
  z-index: 16;
  top: 0;
  min-height: 92px;
  padding: 14px 20px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(16, 39, 46, .06);
}

.book-workspace > .book-tabs {
  position: sticky;
  z-index: 15;
  top: 92px;
  min-height: 54px;
  border-right: 0;
  border-left: 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 7px 18px rgba(16, 39, 46, .045);
}

.book-strip-copy {
  min-width: 0;
}

.book-strip-copy h1 {
  overflow: hidden;
  max-width: min(900px, 64vw);
  font-size: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-ready-video-count {
  margin-left: auto;
  color: var(--v3-accent-strong);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

#bookSendToVideoButton {
  min-height: 46px;
  padding-inline: 18px;
  border-color: #006c60;
  box-shadow: 0 10px 24px rgba(0, 103, 92, .22);
}

#bookSendToVideoButton svg {
  width: 18px;
  height: 18px;
}

#bookContentPanel,
#bookProductionPanel,
#bookDeliveryPanel {
  padding-top: 0;
}

.candidate-production-command {
  position: sticky;
  z-index: 14;
  top: 146px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 13px 18px;
  border: 1px solid #8ebdb4;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #e8f4f1;
  box-shadow: 0 10px 26px rgba(16, 83, 74, .1);
}

.candidate-production-command[hidden] {
  display: none !important;
}

.candidate-production-copy,
.candidate-production-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.candidate-production-copy span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.candidate-production-copy strong {
  color: var(--v3-ink);
  font-size: 15px;
}

.candidate-production-copy small {
  overflow: hidden;
  color: #4f6964;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-production-actions {
  justify-content: flex-end;
}

.candidate-production-actions .button {
  min-height: 42px;
  white-space: nowrap;
}

.candidate-production-actions #generateSelectedButton {
  min-width: 180px;
}

.candidate-production-actions #generateSelectedButton:not(:disabled) {
  box-shadow: 0 10px 24px rgba(0, 103, 92, .22);
}

.book-workspace .candidate-editor,
.book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor,
.book-workspace.is-bulk-mode .candidate-editor {
  height: calc(100dvh - 146px);
  min-height: 680px;
  grid-template-columns: minmax(520px, 590px) minmax(620px, 1fr);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(16, 39, 46, .06);
}

.book-workspace.is-bulk-mode .candidate-editor {
  height: calc(100dvh - 228px);
}

.book-workspace .candidate-list-panel,
.book-workspace.is-bulk-mode .candidate-list-panel {
  min-width: 0;
  background: #f2f6f4;
}

.book-workspace .candidate-list {
  padding: 12px 16px 22px;
}

.book-workspace .candidate-panel-heading {
  min-height: 72px;
  padding-inline: 18px;
}

.book-workspace .candidate-panel-heading h2 {
  font-size: 16px;
}

.book-workspace .candidate-list-tools {
  padding: 10px 16px;
}

.book-workspace .candidate-structure-toggle.is-section {
  min-height: 68px;
  padding-inline: 14px;
}

.book-workspace .candidate-structure-toggle.is-test {
  min-height: 52px;
}

.book-workspace .candidate-row,
.book-workspace.is-bulk-mode .candidate-row {
  width: 100%;
  min-height: 92px;
  grid-template-columns: 72px minmax(0, 1fr) 30px 9px;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px;
  box-sizing: border-box;
}

.book-workspace.is-review-selection:not(.is-bulk-mode) .candidate-row {
  grid-template-columns: 24px 72px minmax(0, 1fr) 30px 9px;
}

.book-workspace.is-bulk-mode .candidate-row {
  grid-template-columns: 28px 82px minmax(0, 1fr) 10px;
}

.book-workspace .candidate-thumb,
.book-workspace.is-bulk-mode .candidate-thumb {
  width: 72px;
  height: 70px;
  padding: 3px;
  object-fit: contain;
}

.book-workspace.is-bulk-mode .candidate-thumb {
  width: 82px;
  height: 78px;
}

.book-workspace .candidate-row-copy strong,
.book-workspace.is-bulk-mode .candidate-row-copy strong {
  font-size: 13px;
}

.book-workspace .candidate-row-copy > span,
.book-workspace.is-bulk-mode .candidate-row-copy > span {
  font-size: 10px;
}

.book-workspace .candidate-crop-stage,
.book-workspace .candidate-page-stage {
  min-height: 0;
  padding: 34px;
}

/* Publication library mirrors the source explorer: collection left, selected work right. */
.book-video-library {
  padding-top: 18px;
}

.book-video-header {
  min-height: 104px;
  padding: 18px 22px;
  border-radius: 0;
  box-shadow: 0 9px 28px rgba(16, 39, 46, .045);
}

.book-video-toolbar {
  position: sticky;
  z-index: 10;
  top: 146px;
  min-height: 62px;
  padding-inline: 18px;
  background: rgba(255, 255, 255, .98);
}

.video-library-layout {
  align-items: start;
  min-height: calc(100dvh - 344px);
  grid-template-columns: minmax(520px, 620px) minmax(620px, 1fr);
  gap: 16px;
  padding-top: 16px;
}

.video-library-index {
  display: block;
  min-height: 0;
  max-height: none;
  overflow: visible;
  border-radius: 6px;
}

.video-library-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 12px;
  background: #f2f6f4;
}

.video-library-list.video-structure-list {
  display: block;
  padding: 0;
  background: #edf3f1;
}

.video-structure-section {
  border-bottom: 1px solid #cfdcd8;
  background: #f8fbfa;
}

.video-structure-section:last-child {
  border-bottom: 0;
}

.video-structure-section-toggle,
.video-structure-test-toggle {
  display: grid;
  width: 100%;
  align-items: center;
  border: 0;
  color: var(--v3-ink);
  text-align: left;
  cursor: pointer;
}

.video-structure-section-toggle {
  min-height: 78px;
  grid-template-columns: 34px minmax(0, 1fr) 116px;
  gap: 10px;
  padding: 12px 16px;
  background: #e6f0ed;
  transition: background-color 160ms ease;
}

.video-structure-section-toggle:hover {
  background: #dcebe7;
}

.video-structure-tests {
  padding: 0 12px 12px 34px;
}

.video-structure-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 220ms var(--v3-ease), opacity 150ms ease;
}

.video-structure-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.video-structure-section.is-collapsed > .video-structure-panel,
.video-structure-test.is-collapsed > .video-structure-panel {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.video-structure-test {
  border-left: 1px solid #b8cfca;
  border-bottom: 1px solid #d8e3df;
  background: #fff;
}

.video-structure-test:first-child {
  border-top: 1px solid #d8e3df;
}

.video-structure-test-toggle {
  min-height: 64px;
  grid-template-columns: 30px minmax(0, 1fr) 102px;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  transition: background-color 160ms ease;
}

.video-structure-test-toggle:hover,
.video-structure-test.is-expanded > .video-structure-test-toggle {
  background: #f3f8f6;
}

.video-structure-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #c7d8d4;
  border-radius: 5px;
  background: #fff;
  color: var(--v3-accent-strong);
}

.video-structure-chevron svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms var(--v3-ease);
}

.video-structure-section-toggle:focus-visible,
.video-structure-test-toggle:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(0, 137, 123, .24);
  outline-offset: -3px;
}

.video-structure-section.is-collapsed > .video-structure-section-toggle .video-structure-chevron svg,
.video-structure-test.is-collapsed > .video-structure-test-toggle .video-structure-chevron svg {
  transform: rotate(-90deg);
}

.video-structure-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.video-structure-title strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 790;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-structure-title small {
  color: var(--v3-muted);
  font-size: 9px;
  font-weight: 690;
  letter-spacing: 0;
}

.video-structure-section-toggle .video-structure-title small {
  color: #56716b;
  font-size: 8px;
  font-weight: 800;
}

.video-structure-section-toggle .video-structure-title strong {
  font-size: 15px;
}

.video-structure-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 5px;
  justify-self: stretch;
  color: #47615b;
  text-align: right;
}

.video-structure-progress strong {
  color: var(--v3-ink);
  font-size: 13px;
}

.video-structure-progress small {
  font-size: 8px;
}

.video-structure-progress > i {
  height: 3px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 2px;
  background: #d4e1dd;
}

.video-structure-progress > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--v3-accent);
}

.video-structure-test-body {
  display: block;
  padding: 0;
  border-top: 1px solid #e1e9e6;
  background: #fff;
}

.video-library-item {
  position: relative;
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e4ebe8;
  border-left: 3px solid #bd4039;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.video-library-item:hover {
  z-index: 1;
  transform: none;
  background: #fbf5f4;
  box-shadow: inset 0 0 0 1px rgba(170, 55, 49, .12);
}

.video-library-item.is-active {
  background: #fff1ef;
  box-shadow: inset 0 0 0 1px rgba(170, 55, 49, .22);
}

.video-library-item.is-ready {
  border-left-color: #087d69;
}

.video-library-item.is-ready:hover,
.video-library-item.is-ready.is-active {
  background: #edf9f5;
  box-shadow: inset 0 0 0 1px rgba(8, 125, 105, .18);
}

.video-library-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d4dfdc;
  border-radius: 5px;
  color: #2d454b;
  background: #f6f9f8;
  font-size: 12px;
  font-weight: 820;
}

.video-library-item.is-ready .video-library-number {
  border-color: #a7d3c8;
  color: #08705f;
  background: #eaf7f3;
}

.video-library-item-copy {
  gap: 5px;
}

.video-library-item-copy strong {
  display: block;
  min-height: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-library-item-copy small,
.video-library-item-copy em {
  font-size: 9px;
}

.video-library-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid #e0b2ae;
  border-radius: 4px;
  background: #fff0ee;
  color: #a23832;
  font-style: normal;
  font-weight: 760;
}

.video-library-state svg {
  width: 12px;
  height: 12px;
}

.video-library-state.is-ready {
  border-color: #abd6c9;
  background: #eaf8f3;
  color: #08725f;
}

.video-library-state.is-processing,
.video-library-state.is-queued,
.video-library-state.is-loading {
  border-color: #e0b2ae;
  background: #fff0ee;
  color: #a23832;
}

.video-library-state.is-revision,
.video-library-state.is-failed,
.video-library-state.is-outdated,
.video-library-state.is-missing,
.video-library-state.is-source-hold {
  border-color: #e0b2ae;
  background: #fff0ee;
  color: #a23832;
}

.video-library-open {
  display: grid;
  width: 18px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #9a4a44;
}

.video-library-open svg {
  width: 14px;
  height: 14px;
}

.video-library-stage {
  position: sticky;
  top: 224px;
  align-self: start;
  min-height: calc(100dvh - 344px);
  max-height: none;
  border-radius: 6px;
}

.video-library-media {
  min-height: 480px;
}

.video-library-stage.is-source-only {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.video-library-source-preview {
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  padding: 26px;
  border-block: 1px solid #dce6e3;
  background: #eef3f1;
}

.video-library-source-preview img {
  display: block;
  max-width: 100%;
  max-height: 58dvh;
  object-fit: contain;
  border: 1px solid #d5dfdc;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 39, 46, .08);
}

.video-library-source-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  background: #f8fbfa;
}

.video-library-source-status > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #cbdad6;
  border-radius: 5px;
  color: var(--v3-accent-strong);
}

.video-library-source-status > div {
  display: grid;
  gap: 2px;
}

.video-library-source-status strong {
  font-size: 13px;
}

.video-library-source-status span {
  color: var(--v3-muted);
  font-size: 10px;
}

.video-revision-index {
  display: block;
  max-height: none;
  overflow: visible;
}

.video-revision-list,
.video-revision-list.video-structure-list {
  min-height: 0;
  overflow: visible;
  background: #edf3f1;
}

.video-structure-section.is-revision-section > .video-structure-section-toggle {
  background: #f3e9e7;
}

.video-structure-section.is-revision-section > .video-structure-section-toggle:hover {
  background: #ecdcda;
}

.video-structure-test.is-revision-test > .video-structure-test-toggle:hover,
.video-structure-test.is-revision-test.is-expanded > .video-structure-test-toggle {
  background: #fcf5f4;
}

.video-revision-count {
  justify-self: end;
  padding: 4px 7px;
  border: 1px solid #dfb0ac;
  border-radius: 4px;
  color: #a03933;
  background: #fff0ee;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.video-revision-test-body {
  border-top: 1px solid #eadbd8;
  background: #fff;
}

.video-revision-queue-item {
  position: relative;
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 0;
  border-bottom: 1px solid #eadfdd;
  border-left: 3px solid #bd4039;
  background: #fff;
}

.video-revision-queue-item:hover,
.video-revision-queue-item.is-active {
  background: #fff1ef;
  box-shadow: inset 0 0 0 1px rgba(170, 55, 49, .16);
}

.video-revision-question {
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  gap: 10px;
  padding: 8px 7px;
  cursor: pointer;
}

.video-revision-question > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.video-revision-question > span.video-library-state:last-of-type {
  display: inline-flex;
  width: fit-content;
  color: #a23832;
  background: #fff0ee;
}

.video-revision-question em {
  color: #8f4a45;
}

.video-library-row-arrow {
  width: 15px;
  color: #a54a44;
}

.video-revision-edit,
.video-revision-queue-item .video-revision-edit {
  width: 74px;
  min-height: 32px;
  margin: 0;
  padding: 0 8px;
  font-size: 8px;
}

.video-revision-edit svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1400px) {
  .book-workspace .candidate-editor,
  .book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor,
  .book-workspace.is-bulk-mode .candidate-editor {
    grid-template-columns: minmax(450px, 520px) minmax(540px, 1fr);
  }

  .video-library-layout {
    grid-template-columns: minmax(460px, 540px) minmax(520px, 1fr);
  }

  .video-library-list {
    grid-template-columns: 1fr;
  }

  .video-library-item {
    min-height: 68px;
    grid-template-columns: 42px minmax(0, 1fr) auto 18px;
    grid-template-rows: 1fr;
  }
}

@media (max-width: 1100px) {
  .book-workspace > .book-strip,
  .book-workspace > .book-tabs,
  .candidate-production-command,
  .book-video-toolbar,
  .video-library-stage {
    position: static;
  }

  .book-ready-video-count {
    margin-left: 0;
  }

  .candidate-production-command {
    grid-template-columns: 1fr;
  }

  .candidate-production-actions {
    justify-content: stretch;
  }

  .candidate-production-actions .button {
    flex: 1;
  }

  .book-workspace .candidate-editor,
  .book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor,
  .book-workspace.is-bulk-mode .candidate-editor {
    height: auto;
    grid-template-columns: 1fr;
  }

  .video-library-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .video-library-stage {
    grid-row: 1;
    min-height: 520px;
  }

  .video-library-index {
    grid-row: 2;
    max-height: none;
  }

  .video-library-list {
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .book-workspace > .book-strip {
    align-items: flex-start;
  }

  .book-strip-copy h1 {
    max-width: 100%;
    font-size: 19px;
    white-space: normal;
  }

  .candidate-production-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .candidate-production-actions #generateSelectedButton {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .video-library-list {
    grid-template-columns: 1fr;
  }

  .video-structure-section-toggle {
    grid-template-columns: 30px minmax(0, 1fr) 88px;
    padding-inline: 10px;
  }

  .video-structure-tests {
    padding: 0 6px 8px 15px;
  }

  .video-structure-test-toggle {
    grid-template-columns: 28px minmax(0, 1fr) 78px;
    padding-inline: 8px;
  }

  .video-structure-progress small {
    display: none;
  }
}

/* Collection hierarchy: section > test > question, shared by review and publication. */
.candidate-structure-section {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #c2d2ce;
  border-radius: 6px;
  background: var(--v3-surface);
  box-shadow: 0 2px 8px rgba(16, 39, 46, .035);
}

.candidate-structure-section.is-expanded {
  border-color: #a9c2bc;
}

.candidate-structure-toggle.is-section {
  min-height: 64px;
  grid-template-columns: 30px minmax(0, 1fr) 78px;
  gap: 8px;
  padding: 8px 10px;
  background: #e1ebe8;
  box-shadow: inset 4px 0 0 #356f66;
}

.candidate-structure-toggle.is-section:hover {
  background: #dae7e3;
}

.candidate-structure-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.candidate-structure-copy .candidate-structure-level {
  color: #3e6b64;
  font-size: 8px;
  font-weight: 820;
  line-height: 1.1;
  text-transform: uppercase;
}

.candidate-structure-copy .candidate-structure-detail {
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 560;
}

.candidate-structure-toggle.is-section .candidate-structure-copy strong {
  color: var(--v3-ink);
  font-size: 15px;
  font-weight: 790;
}

.candidate-structure-toggle .candidate-structure-progress {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 5px;
  padding: 0;
  border: 0;
  color: #55706a;
  background: transparent;
  text-align: right;
}

.candidate-structure-progress strong {
  display: block;
  overflow: visible;
  color: var(--v3-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  font-variant-numeric: tabular-nums;
}

.candidate-structure-progress small {
  color: #5f7772;
  font-size: 8px;
  font-weight: 650;
}

.candidate-structure-progress > i {
  height: 3px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 2px;
  background: #c8d8d4;
}

.candidate-structure-progress > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--v3-accent);
}

.candidate-section-body {
  padding: 6px 6px 8px 16px;
  border-top: 1px solid #c9d8d4;
  background:
    linear-gradient(90deg, #d4e3df 0 1px, transparent 1px) 8px 0 / 1px 100% no-repeat,
    #f5f8f7;
}

.candidate-test-group {
  position: relative;
  overflow: hidden;
  border: 1px solid #ccdcd7;
  border-left: 3px solid #7aaea5;
  border-radius: 4px;
  background: #fff;
}

.candidate-test-group.is-expanded {
  border-color: #b7d0ca;
  border-left-color: var(--v3-accent);
  box-shadow: none;
}

.candidate-test-group + .candidate-test-group {
  margin-top: 4px;
  border-top: 1px solid #d4e0dc;
}

.candidate-structure-toggle.is-test {
  min-height: 52px;
  grid-template-columns: 28px minmax(0, 1fr) 72px;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid transparent;
  background: #eef5f3;
}

.candidate-test-group:has(.candidate-test-body:not([hidden])) > .candidate-structure-toggle.is-test {
  border-bottom-color: #ccddd8;
  background: #e8f2ef;
}

.candidate-structure-toggle.is-test:hover {
  background: #e5efec;
}

.candidate-structure-toggle.is-test .structure-disclosure {
  width: 26px;
  height: 26px;
  border-color: #b7d0ca;
  color: var(--v3-accent-strong);
  background: #fff;
}

.candidate-structure-toggle.is-test .candidate-structure-copy strong {
  font-size: 13px;
  font-weight: 770;
}

.candidate-test-body {
  position: relative;
  margin: 0;
  padding: 2px 4px 4px 20px;
  border-left: 0;
  background: #f7faf9;
}

.candidate-test-spine,
.video-test-spine {
  position: absolute;
  top: 0;
  bottom: 6px;
  left: 4px;
  width: 10px;
  height: calc(100% - 6px);
  overflow: visible;
  pointer-events: none;
}

.candidate-test-spine path,
.video-test-spine path {
  fill: none;
  stroke: #8fbeb5;
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row {
  position: relative;
  min-height: 58px;
  grid-template-columns: 44px minmax(0, 1fr) 28px 9px;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #dde8e4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.candidate-test-body .candidate-row::before {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 13px;
  border-top: 1.5px solid #8fbeb5;
  content: "";
  pointer-events: none;
}

.book-workspace.is-review-selection:not(.is-bulk-mode) .candidate-test-body .candidate-row {
  grid-template-columns: 20px 44px minmax(0, 1fr) 28px 9px;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row:last-child {
  border-bottom: 0;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row:hover {
  border-color: #dce7e3;
  background: #f8fbfa;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active {
  border-color: #b9d6cf;
  background: #eaf6f2;
  box-shadow: inset 3px 0 0 var(--v3-accent), 0 2px 7px rgba(0, 103, 92, .07);
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-thumb {
  width: 44px;
  height: 44px;
  padding: 3px;
  object-fit: contain;
  box-sizing: border-box;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row-copy strong {
  font-size: 12px;
  font-weight: 760;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row-copy > span {
  margin-top: 3px;
  font-size: 9px;
}

.video-library-list.video-structure-list {
  padding: 8px;
  background: #edf3f1;
}

.video-structure-section {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #c2d2ce;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 39, 46, .035);
}

.video-structure-section:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid #c2d2ce;
}

.video-structure-section-toggle {
  min-height: 64px;
  grid-template-columns: 30px minmax(0, 1fr) 108px;
  padding: 8px 10px;
  background: #e1ebe8;
  box-shadow: inset 4px 0 0 #356f66;
}

.video-structure-section-toggle:hover {
  background: #dae7e3;
}

.video-structure-tests {
  padding: 6px 6px 8px 16px;
  border-top: 1px solid #c9d8d4;
  background:
    linear-gradient(90deg, #d4e3df 0 1px, transparent 1px) 8px 0 / 1px 100% no-repeat,
    #f5f8f7;
}

.video-structure-test {
  position: relative;
  overflow: hidden;
  border: 1px solid #ccdcd7;
  border-left: 3px solid #7aaea5;
  border-radius: 4px;
  background: #fff;
}

.video-structure-test.is-expanded {
  border-color: #b7d0ca;
  border-left-color: var(--v3-accent);
  box-shadow: none;
}

.video-structure-test:first-child {
  border-top: 1px solid #d4e0dc;
}

.video-structure-test + .video-structure-test {
  margin-top: 4px;
}

.video-structure-test-toggle {
  min-height: 52px;
  grid-template-columns: 28px minmax(0, 1fr) 96px;
  padding: 6px 8px;
  background: #eef5f3;
}

.video-structure-test-toggle:hover,
.video-structure-test.is-expanded > .video-structure-test-toggle {
  background: #e8f2ef;
}

.video-structure-level {
  color: #3e6b64 !important;
  font-size: 8px !important;
  font-weight: 820 !important;
  line-height: 1.1;
  text-transform: uppercase;
}

.video-structure-detail {
  color: var(--v3-muted) !important;
  font-size: 9px !important;
  font-weight: 580 !important;
}

.video-structure-test-body,
.video-revision-test-body {
  position: relative;
  padding: 2px 4px 4px 20px;
  border-top: 1px solid #ccddd8;
  background: #f7faf9;
}

.video-library-item {
  position: relative;
  min-height: 56px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid #dde8e4;
  border-radius: 0;
  background: transparent;
}

.video-library-item:last-child {
  border-bottom: 0;
}

.video-structure-test-body .video-library-item::before,
.video-revision-test-body .video-revision-queue-item::before {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 13px;
  border-top: 1.5px solid #8fbeb5;
  content: "";
  pointer-events: none;
}

.video-library-item:hover {
  background: #f8fbfa;
  box-shadow: inset 0 0 0 1px #d8e5e1;
}

.video-library-item.is-active {
  background: #fff4f2;
}

.video-library-item.is-ready:hover,
.video-library-item.is-ready.is-active {
  background: #eaf6f2;
  box-shadow: inset 0 0 0 1px #b8d8d0;
}

@media (max-width: 760px) {
  .candidate-structure-toggle.is-section,
  .candidate-structure-toggle.is-test {
    grid-template-columns: 30px minmax(0, 1fr) 68px;
  }

  .video-library-list.video-structure-list {
    padding: 8px;
  }

  .video-structure-section-toggle,
  .video-structure-test-toggle {
    grid-template-columns: 30px minmax(0, 1fr) 86px;
    padding-inline: 10px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 66px;
    padding-inline: 10px;
  }

  .workspace {
    padding: 16px 10px 30px;
  }

  .books-header {
    min-height: 0;
    padding-bottom: 18px;
  }

  .books-header h1 {
    font-size: 28px;
  }

  .books-workspace .assurance-flow {
    grid-template-columns: 1fr;
  }

  .assurance-flow-step {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .books-workspace .operations-status {
    padding: 14px;
  }

  .publication-book-card {
    padding: 13px;
  }

  .question-strip {
    padding-bottom: 16px;
  }

  .question-heading h1 {
    font-size: 19px;
  }

  .assurance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-metrics > div {
    border-bottom: 1px solid var(--v3-line);
  }

  .delivery-actions .artifact-link,
  .delivery-format {
    display: none;
  }

  .proof-mode,
  .proof-mode-button {
    width: 100%;
  }

  .book-upload-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .book-upload-dialog .upload-form {
    max-height: calc(100dvh - 12px);
  }

  .book-upload-dialog .dialog-heading,
  .book-upload-source,
  .book-upload-metadata {
    padding-inline: 16px;
  }

  .book-upload-route {
    padding-inline: 12px;
  }

  .book-upload-route-step strong {
    font-size: 9px;
  }

  .book-upload-route-step small {
    display: none;
  }

  .book-upload-dialog .pdf-dropzone {
    min-height: 280px;
  }

  .book-upload-dialog .pdf-dropzone .book-intake-visual {
    width: 238px;
  }

  .book-upload-essentials {
    grid-template-columns: 1fr;
  }

  .book-upload-metadata .upload-fields {
    grid-template-columns: 1fr;
  }

  .book-upload-dialog .dialog-actions {
    align-items: stretch;
    flex-direction: column;
    min-height: 70px;
    padding-block: 10px;
  }

  .book-upload-dialog .dialog-actions p {
    display: none;
  }

  .book-upload-dialog .dialog-actions .button {
    width: 100%;
  }

  .book-workspace:not(.is-bulk-mode) .candidate-list-panel {
    min-height: 310px;
    max-height: 360px;
  }

  .book-workspace:not(.is-bulk-mode) .candidate-canvas-panel {
    min-height: 560px;
    grid-template-rows: auto minmax(450px, auto) auto;
  }

  .candidate-page-stage,
  .candidate-crop-stage {
    min-height: 450px;
  }
}

@media (max-width: 1100px) {
  .book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Publisher Studio V6: editorial control center and source-first workspace. */
.studio-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 340px;
  align-items: stretch;
  gap: var(--v3-space-3);
  margin-bottom: 20px;
}

.studio-control-grid .portfolio-command {
  display: grid;
  min-height: 220px;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) 68px;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: var(--v3-sidebar);
  box-shadow: 0 1px 0 rgba(16, 39, 46, .12);
}

.studio-control-grid .portfolio-command .operations-status {
  min-height: 0;
  align-items: center;
  padding: 24px;
  border: 0;
  border-left: 4px solid #65cabb;
  color: #fff;
  background: transparent;
}

.studio-control-grid .portfolio-command .operations-status[data-status="critical"] {
  border-left-color: #ef8f7f;
}

.studio-control-grid .portfolio-command .operations-status[data-status="review"] {
  border-left-color: #e2ad56;
}

.studio-control-grid .portfolio-command .operations-risk-icon {
  color: #d7f4ed;
  border-color: rgba(211, 242, 235, .28);
  background: rgba(229, 243, 239, .1);
}

.studio-control-grid .portfolio-command .operations-status[data-status="critical"] .operations-risk-icon,
.studio-control-grid .portfolio-command .operations-status[data-status="review"] .operations-risk-icon {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
}

.studio-control-grid .portfolio-command .operations-status .eyebrow {
  color: #9fc6bf;
}

.studio-control-grid .portfolio-command .operations-status h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 760;
  text-wrap: balance;
}

.studio-control-grid .portfolio-command .operations-status-detail {
  max-width: 660px;
  color: #bfd0cc;
  font-size: 11px;
}

.studio-control-grid .portfolio-command .operations-status-actions .icon-button,
.studio-control-grid .portfolio-command .operations-status-actions .button-secondary {
  color: #effaf7;
  border-color: rgba(229, 243, 239, .28);
  background: rgba(255, 255, 255, .08);
}

.studio-control-grid .portfolio-command .operations-status-actions .icon-button:hover,
.studio-control-grid .portfolio-command .operations-status-actions .button-secondary:hover {
  color: #fff;
  border-color: rgba(229, 243, 239, .48);
  background: rgba(255, 255, 255, .14);
}

.studio-control-grid .portfolio-command .operations-status-actions .button-primary {
  color: var(--v3-sidebar);
  border-color: #bce9df;
  background: #bce9df;
}

.studio-control-grid .portfolio-command .operations-status-actions .button-primary:hover {
  color: var(--v3-sidebar);
  border-color: #d5f4ed;
  background: #d5f4ed;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(213, 223, 219, .22);
  background: #17363c;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary > div,
.books-workspace .studio-control-grid .portfolio-command .operations-summary > div:nth-child(2n),
.books-workspace .studio-control-grid .portfolio-command .operations-summary > div:nth-last-child(-n + 2) {
  min-height: 68px;
  padding: 12px 16px;
  border-right: 1px solid rgba(213, 223, 219, .16);
  border-bottom: 0;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary > div:last-child {
  border-right: 0;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary span {
  color: #9fc0ba;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary strong {
  color: #fff;
  font-size: 20px;
}

.books-workspace .studio-control-grid .assurance-flow {
  display: grid;
  min-height: 220px;
  grid-template-columns: 1fr;
  grid-template-rows: 52px repeat(4, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
}

.studio-control-grid .assurance-flow-route {
  display: none;
}

.studio-control-grid .assurance-flow-heading {
  display: grid;
  align-content: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--v3-line);
  background: var(--v3-surface-soft);
}

.studio-control-grid .assurance-flow-heading strong {
  font-size: 13px;
}

.studio-control-grid .assurance-flow-step {
  min-height: 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px 12px;
  border-right: 0;
  border-bottom: 1px solid var(--v3-line);
  background: #fff;
}

.studio-control-grid .assurance-flow-step:last-child {
  border-bottom: 0;
}

.studio-control-grid .assurance-flow-step > span {
  width: 28px;
  height: 28px;
  grid-row: 1;
}

.studio-control-grid .assurance-flow-step div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 7px;
}

.studio-control-grid .assurance-flow-step small {
  grid-column: 1 / -1;
}

.studio-control-grid .assurance-flow-step strong {
  font-size: 11px;
}

.studio-control-grid .assurance-flow-step em {
  justify-self: end;
  color: var(--v3-accent-strong);
  font-size: 8px;
  font-weight: 760;
}

.books-table-section {
  overflow: hidden;
}

.book-ledger-head {
  display: grid;
  min-height: 38px;
  grid-template-columns: 44px minmax(260px, 1fr) 86px 86px 86px minmax(180px, 240px) 82px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--v3-line-strong);
  color: var(--v3-muted);
  background: #edf2f0;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-ledger-head > span:first-child {
  grid-column: 1 / 3;
}

.publication-book-card {
  min-height: 78px;
  grid-template-columns: 44px minmax(260px, 1fr) 86px 86px 86px minmax(180px, 240px) 82px;
  gap: 12px;
  padding: 11px 16px;
}

.publication-book-cover {
  width: 44px;
  height: 44px;
  place-self: center;
  border: 1px solid #bdd0cb;
  border-radius: 6px;
  color: #dff4ef;
  background: #17363c;
}

.publication-book-cover > span,
.publication-book-cover > small {
  display: none;
}

.publication-book-cover strong {
  font-size: 11px;
}

.publication-book-main {
  align-content: center;
  gap: 3px;
}

.publication-book-title > strong {
  font-size: 13px;
}

.publication-book-title em {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-book-stage {
  display: grid;
  min-width: 0;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 5px;
  color: var(--v3-muted);
}

.publication-book-stage > svg,
.publication-book-stage > i {
  width: 15px;
  height: 15px;
}

.publication-book-stage strong {
  color: var(--v3-ink-soft);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.publication-book-stage > em {
  height: 3px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 2px;
  background: #dfe7e4;
}

.publication-book-stage > em > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9fb8b2;
}

.publication-book-stage.is-current {
  color: var(--v3-accent);
}

.publication-book-stage.is-complete {
  color: var(--v3-success);
}

.publication-book-stage.is-current > em > b,
.publication-book-stage.is-complete > em > b {
  background: var(--v3-accent);
}

.publication-book-next {
  min-height: 48px;
  padding: 7px 10px;
}

.publication-book-next small {
  display: none;
}

.publication-book-next strong {
  font-size: 10px;
}

.publication-book-next em {
  font-size: 8px;
}

.publication-book-readiness {
  padding-left: 10px;
}

.publication-book-readiness small {
  display: none;
}

.publication-book-readiness strong {
  font-size: 17px;
}

.publication-book-readiness em {
  font-size: 7px;
}

/* Source record header: visually separate lineage context from editing. */
.book-workspace > .book-strip {
  color: #fff;
  border-bottom: 0;
  background: var(--v3-sidebar);
}

.book-workspace > .book-strip .icon-button {
  color: #e9f5f2;
  border-color: rgba(229, 243, 239, .28);
  background: rgba(255, 255, 255, .06);
}

.book-workspace > .book-strip .icon-button:hover {
  color: #fff;
  border-color: rgba(229, 243, 239, .48);
  background: rgba(255, 255, 255, .12);
}

.book-workspace > .book-strip .book-strip-copy h1 {
  color: #fff;
}

.book-workspace > .book-strip .book-strip-copy .eyebrow {
  color: #9fc0ba;
}

.book-workspace > .book-strip #bookStatusBadge {
  color: #e8f5f1;
  border-color: rgba(188, 233, 223, .28);
  background: rgba(188, 233, 223, .1);
}

.book-workspace > .book-strip .book-ready-video-count {
  color: #bce9df;
}

.book-workspace > .book-strip #bookSendToVideoButton {
  color: var(--v3-sidebar);
  border-color: #bce9df;
  background: #bce9df;
  box-shadow: none;
}

.book-workspace > .book-strip #bookSendToVideoButton:hover {
  border-color: #d5f4ed;
  background: #d5f4ed;
}

.book-workspace > .book-tabs {
  border-bottom-color: var(--v3-line-strong);
}

.book-tab.is-active {
  color: var(--v3-accent-strong);
  background: #f2f8f6;
}

.candidate-progress-strip {
  min-height: 42px;
  padding-left: 0;
  border-bottom: 1px solid var(--v3-line);
  background: #edf3f1;
}

.candidate-progress-strip > div {
  min-height: 42px;
  justify-content: center;
  padding: 0 12px;
  border-right: 1px solid #d5e0dc;
}

.candidate-progress-strip > div::before {
  display: none;
}

.candidate-progress-strip strong {
  font-size: 13px;
}

.candidate-progress-strip span {
  color: #526c67;
  font-size: 8px;
  font-weight: 720;
  text-transform: uppercase;
}

.book-workspace .candidate-editor,
.book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor {
  height: calc(100dvh - 160px);
  grid-template-columns: minmax(360px, 390px) minmax(620px, 1fr);
}

.book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
  grid-template-columns: minmax(340px, 370px) minmax(540px, 1fr) 300px;
}

.candidate-list-panel > .candidate-panel-heading {
  color: #fff;
  border-bottom-color: rgba(213, 223, 219, .16);
  background: #17363c;
}

.candidate-list-panel > .candidate-panel-heading .eyebrow {
  color: #9fc0ba;
}

.candidate-list-panel > .candidate-panel-heading h2 {
  color: #fff;
}

.candidate-list-panel > .candidate-panel-heading .data-count {
  color: #d9f1eb;
  border-color: rgba(188, 233, 223, .24);
  background: rgba(188, 233, 223, .09);
}

.candidate-canvas-panel > .candidate-panel-heading {
  min-height: 54px;
  background: #fff;
}

.candidate-filter-zone {
  padding-top: 10px;
  background: #eef4f2;
}

.candidate-filter-zone-heading {
  display: none;
}

.candidate-filters {
  border-color: #c1d2cd;
  background: #dfe9e6;
}

.candidate-approval-panel {
  background: #f8faf9;
}

.candidate-list-tools {
  box-shadow: 0 1px 0 var(--v3-line);
}

.candidate-list {
  scrollbar-gutter: stable;
}

.candidate-structure-toggle.is-section {
  background: #dfeae7;
}

.candidate-structure-toggle.is-section:hover {
  background: #d5e4e0;
}

.candidate-test-group,
.candidate-test-group.is-expanded {
  border-left-width: 2px;
  border-left-color: var(--v3-accent);
}

.candidate-structure-toggle.is-test {
  background: #f1f6f4;
}

.candidate-test-group:has(.candidate-test-body:not([hidden])) > .candidate-structure-toggle.is-test {
  background: #e9f2ef;
}

.candidate-canvas-panel {
  border-left: 1px solid var(--v3-line-strong);
}

.candidate-page-stage,
.candidate-crop-stage {
  background-color: #e7edeb;
  background-image: radial-gradient(circle, #cbd8d4 1px, transparent 1px);
  background-size: 20px 20px;
}

.candidate-page-stage img,
.candidate-crop-stage img {
  border-color: #bacac5;
  box-shadow: 0 18px 48px rgba(16, 39, 46, .14);
}

.candidate-flow-bar {
  border-top: 1px solid var(--v3-line-strong);
  box-shadow: 0 -8px 24px rgba(16, 39, 46, .08);
}

@media (max-width: 1320px) {
  .studio-control-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .book-ledger-head,
  .publication-book-card {
    grid-template-columns: 40px minmax(230px, 1fr) 72px 72px 72px minmax(150px, 200px) 72px;
    gap: 9px;
  }

  .publication-book-cover {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1080px) {
  .studio-control-grid {
    grid-template-columns: 1fr;
  }

  .books-workspace .studio-control-grid .assurance-flow {
    min-height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 48px 62px;
  }

  .studio-control-grid .assurance-flow-heading {
    grid-column: 1 / -1;
  }

  .studio-control-grid .assurance-flow-step {
    border-right: 1px solid var(--v3-line);
    border-bottom: 0;
  }

  .book-ledger-head {
    display: none;
  }

  .publication-book-card {
    grid-template-columns: 42px minmax(240px, 1fr) repeat(3, 70px) 76px;
  }

  .publication-book-next {
    grid-column: 2 / 6;
    grid-row: 2;
  }

  .publication-book-readiness {
    grid-column: 6;
    grid-row: 1 / 3;
  }

  .publication-book-cover {
    grid-row: 1 / 3;
  }
}

@media (max-width: 760px) {
  .studio-control-grid .portfolio-command {
    min-height: auto;
  }

  .studio-control-grid .portfolio-command .operations-status {
    padding: 20px 16px;
  }

  .studio-control-grid .portfolio-command .operations-status h2 {
    font-size: 19px;
  }

  .books-workspace .studio-control-grid .assurance-flow {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 46px repeat(2, 58px);
  }

  .studio-control-grid .assurance-flow-step:nth-of-type(odd) {
    border-right: 0;
  }

  .studio-control-grid .assurance-flow-step:nth-last-child(-n + 2) {
    border-top: 1px solid var(--v3-line);
  }

  .publication-book-card {
    grid-template-columns: 40px minmax(0, 1fr) 66px;
    grid-template-rows: auto auto;
  }

  .publication-book-cover {
    grid-row: 1;
  }

  .publication-book-main {
    grid-column: 2;
  }

  .publication-book-stage {
    display: none;
  }

  .publication-book-next {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .publication-book-readiness {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .book-workspace > .book-strip {
    padding: 10px;
  }

  .book-strip-copy h1 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-control-grid *,
  .publication-book-stage *,
  .candidate-list-panel * {
    scroll-behavior: auto !important;
  }
}

/* Publisher Studio V6.1: light editorial register, no dashboard surface. */
.studio-control-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.studio-control-grid .portfolio-command {
  display: none;
}

.books-workspace .studio-control-grid .assurance-flow {
  min-height: 88px;
  grid-template-columns: minmax(190px, .9fr) repeat(4, minmax(130px, 1fr));
  grid-template-rows: 1fr;
  border-color: var(--v3-line-strong);
  background: #fff;
}

.studio-control-grid .assurance-flow-heading {
  border-right: 1px solid var(--v3-line);
  border-bottom: 0;
  background: #f5f8f7;
}

.studio-control-grid .assurance-flow-step {
  border-right: 1px solid var(--v3-line);
  border-bottom: 0;
}

.studio-control-grid .assurance-flow-step:last-child {
  border-right: 0;
}

.book-workspace > .book-strip {
  color: var(--v3-ink);
  border-bottom: 1px solid var(--v3-line-strong);
  background: #fff;
}

.book-workspace > .book-strip .book-strip-copy h1 {
  color: var(--v3-ink);
}

.book-workspace > .book-strip .book-strip-copy .eyebrow {
  color: var(--v3-muted);
}

.book-workspace > .book-strip .icon-button {
  color: var(--v3-ink-soft);
  border-color: var(--v3-line-strong);
  background: #fff;
}

.book-workspace > .book-strip .icon-button:hover {
  color: var(--v3-accent-strong);
  border-color: #8bbab2;
  background: var(--v3-accent-soft);
}

.book-workspace > .book-strip #bookStatusBadge {
  color: var(--v3-accent-strong);
  border-color: #aad1c9;
  background: #edf7f4;
}

.book-workspace > .book-strip .book-ready-video-count {
  color: var(--v3-accent-strong);
}

.book-workspace > .book-strip #bookSendToVideoButton {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
}

.candidate-approval-heading {
  gap: 0;
}

.candidate-list-panel > .candidate-panel-heading {
  color: var(--v3-ink);
  border-bottom-color: var(--v3-line);
  border-left: 3px solid var(--v3-accent);
  background: #fff;
}

.candidate-list-panel > .candidate-panel-heading .eyebrow {
  color: var(--v3-muted);
}

.candidate-list-panel > .candidate-panel-heading h2 {
  color: var(--v3-ink);
}

.candidate-list-panel > .candidate-panel-heading .data-count {
  color: var(--v3-accent-strong);
  border-color: #b9d5cf;
  background: #edf7f4;
}

.book-tab.is-active {
  color: var(--v3-accent-strong);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--v3-accent);
}

.candidate-filter-zone {
  padding: 10px 12px 8px;
  border-bottom: 0;
  background: #fff;
}

.candidate-filters {
  gap: 3px;
  padding: 3px;
  border: 1px solid #d1dcda;
  background: #f0f3f2;
}

.candidate-filter {
  min-height: 42px;
  color: #506368;
  background: transparent;
}

.candidate-filter:hover:not(.is-active) {
  background: #f8faf9;
}

.candidate-filter.is-active {
  color: var(--v3-ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 39, 46, .1), inset 0 -2px 0 var(--v3-accent);
}

.candidate-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: #edf2f0;
}

.candidate-approval-panel {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 12px 10px 46px;
  border-bottom: 1px solid var(--v3-line);
  background: #fff;
}

.candidate-approval-panel[hidden] {
  display: none;
}

.candidate-approval-panel::before {
  position: absolute;
  top: -1px;
  left: 26px;
  width: 12px;
  height: 22px;
  border-bottom: 1px solid #aebfba;
  border-left: 1px solid #aebfba;
  border-radius: 0 0 0 5px;
  content: "";
}

.candidate-approval-filters {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: start;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d6dfdc;
  border-radius: var(--v3-radius-control);
  background: #f4f6f5;
}

.candidate-approval-filter {
  min-height: 32px;
  padding: 0 8px;
  color: #5d6e72;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.candidate-approval-filter:hover:not(.is-active) {
  background: #fff;
}

.candidate-approval-filter.is-active {
  color: var(--v3-accent-strong);
  border: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 39, 46, .1);
}

.candidate-structure-toggle.is-section {
  color: var(--v3-ink);
  border-bottom: 1px solid #c8d8d3;
  background: #f2f5f4;
}

.candidate-structure-toggle.is-section:hover {
  background: #ebf0ee;
}

.candidate-structure-toggle.is-section .structure-disclosure {
  color: var(--v3-accent-strong);
  border-color: #a9cac3;
  background: #fff;
}

.candidate-structure-toggle.is-section .candidate-structure-copy strong {
  color: var(--v3-ink);
}

.candidate-structure-toggle.is-section .candidate-structure-level,
.candidate-structure-toggle.is-section .candidate-structure-detail,
.candidate-structure-toggle.is-section .candidate-structure-progress small {
  color: #5b716f;
}

.candidate-structure-toggle.is-section .candidate-structure-progress strong {
  color: var(--v3-accent-strong);
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i {
  background: #cadbd6;
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i > b {
  background: var(--v3-accent);
}

@media (max-width: 1080px) {
  .books-workspace .studio-control-grid .assurance-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 48px 66px;
  }

  .studio-control-grid .assurance-flow-heading {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
  }
}

@media (max-width: 760px) {
  .books-workspace .studio-control-grid .assurance-flow {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 46px repeat(2, 62px);
  }
}

/* Publisher Studio V6.3 compatibility draft: neutral hierarchy rules. */
.book-workspace > .book-strip {
  color: var(--v3-ink);
  border-bottom: 1px solid var(--v3-line-strong);
  background: #fff;
}

.book-workspace > .book-strip .book-strip-copy h1 {
  color: var(--v3-ink);
}

.book-workspace > .book-strip .book-strip-copy .eyebrow {
  color: var(--v3-muted);
}

.book-workspace > .book-strip .icon-button {
  color: var(--v3-ink-soft);
  border-color: var(--v3-line-strong);
  background: #fff;
}

.book-workspace > .book-strip .icon-button:hover {
  color: var(--v3-accent-strong);
  border-color: #8bbab2;
  background: var(--v3-accent-soft);
}

.book-workspace > .book-strip #bookStatusBadge {
  color: var(--v3-accent-strong);
  border-color: #aad1c9;
  background: #edf7f4;
}

.book-workspace > .book-strip .book-ready-video-count {
  color: var(--v3-accent-strong);
}

.book-workspace > .book-strip #bookSendToVideoButton {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
}

.book-tab.is-active {
  color: var(--v3-accent-strong);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--v3-accent);
}

.candidate-list-panel > .candidate-panel-heading {
  color: var(--v3-ink);
  border-bottom-color: var(--v3-line);
  border-left: 3px solid var(--v3-accent);
  background: #fff;
}

.candidate-list-panel > .candidate-panel-heading .eyebrow {
  color: var(--v3-muted);
}

.candidate-list-panel > .candidate-panel-heading h2 {
  color: var(--v3-ink);
}

.candidate-list-panel > .candidate-panel-heading .data-count {
  color: var(--v3-accent-strong);
  border-color: #b9d5cf;
  background: #edf7f4;
}

.candidate-filter-zone {
  padding: 10px 12px 8px;
  border-bottom: 0;
  background: #fff;
}

.candidate-filters {
  gap: 3px;
  padding: 3px;
  border: 1px solid #d1dcda;
  background: #f0f3f2;
}

.candidate-filter {
  min-height: 42px;
  color: #506368;
  background: transparent;
}

.candidate-filter:hover:not(.is-active) {
  background: #f8faf9;
}

.candidate-filter.is-active {
  color: var(--v3-ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 39, 46, .1), inset 0 -2px 0 var(--v3-accent);
}

.candidate-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: #edf2f0;
}

.candidate-approval-panel {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 12px 10px 46px;
  border-bottom: 1px solid var(--v3-line);
  background: #fff;
}

.candidate-approval-panel[hidden] {
  display: none;
}

.candidate-approval-panel::before {
  position: absolute;
  top: -1px;
  left: 26px;
  width: 12px;
  height: 22px;
  border-bottom: 1px solid #aebfba;
  border-left: 1px solid #aebfba;
  border-radius: 0 0 0 5px;
  content: "";
}

.candidate-approval-filters {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: start;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d6dfdc;
  border-radius: var(--v3-radius-control);
  background: #f4f6f5;
}

.candidate-approval-filter {
  min-height: 32px;
  padding: 0 8px;
  color: #5d6e72;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.candidate-approval-filter > svg,
.candidate-approval-filter > i {
  width: 13px;
  height: 13px;
}

.candidate-approval-filter:hover:not(.is-active) {
  background: #fff;
}

.candidate-approval-filter.is-active {
  color: var(--v3-accent-strong);
  border: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 39, 46, .1);
}

.candidate-structure-toggle.is-section {
  color: var(--v3-ink);
  border-bottom: 1px solid #d0d9d6;
  background: #f2f5f4;
}

.candidate-structure-toggle.is-section:hover {
  background: #ebf0ee;
}

.candidate-structure-toggle.is-section .structure-disclosure {
  color: var(--v3-accent-strong);
  border-color: #b8c9c4;
  background: #fff;
}

.candidate-structure-toggle.is-section .candidate-structure-copy strong {
  color: var(--v3-ink);
}

.candidate-structure-toggle.is-section .candidate-structure-level,
.candidate-structure-toggle.is-section .candidate-structure-detail,
.candidate-structure-toggle.is-section .candidate-structure-progress small {
  color: #5b716f;
}

.candidate-structure-toggle.is-section .candidate-structure-progress strong {
  color: var(--v3-accent-strong);
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i {
  background: #d7dfdc;
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i > b {
  background: var(--v3-accent);
}

.candidate-section-body {
  background: #f6f8f7;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active {
  background: #f0f4f3;
}

/* Publisher Studio V6.6: the book register is the workspace, not a dashboard preface. */
body .books-workspace {
  width: min(1640px, 100%);
  gap: 0;
  padding-top: var(--v3-space-5);
}

body .books-workspace > .books-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: var(--v3-space-5);
  padding: 0 0 var(--v3-space-5);
}

body .books-workspace .books-header-copy {
  display: grid;
  min-width: 0;
  gap: var(--v3-space-1);
}

body .books-workspace > .books-header h1 {
  margin: 0;
  color: var(--v3-ink);
  font-size: 30px;
  font-weight: 790;
  line-height: 1.08;
  letter-spacing: 0;
}

body .books-workspace > .books-header p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--v3-muted);
  font-size: 13px;
  line-height: 1.45;
}

body .books-workspace > .books-header .button {
  min-width: 132px;
  min-height: 42px;
  padding-inline: var(--v3-space-4);
  box-shadow: none;
}

body .books-workspace > .studio-control-grid[hidden] {
  display: none !important;
}

body .books-workspace > .books-table-section {
  overflow: hidden;
  border: 1px solid var(--v3-line-strong);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
  box-shadow: none;
}

body .books-workspace > .books-table-section .production-table-heading {
  min-height: 72px;
  padding: var(--v3-space-3) var(--v3-space-4);
  border-bottom: 1px solid var(--v3-line);
  background: var(--v3-surface);
}

body .books-workspace > .books-table-section .library-heading-line {
  gap: var(--v3-space-2);
}

body .books-workspace > .books-table-section .production-table-heading h2 {
  margin: 0;
  color: var(--v3-ink);
  font-size: 18px;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: 0;
}

body .books-workspace > .books-table-section .library-record-count {
  min-height: 22px;
  padding: 0 7px;
  color: var(--v3-muted);
  border-color: var(--v3-line);
  background: var(--v3-surface-soft);
  font-size: 9px;
}

body .books-workspace > .books-table-section .compact-search input {
  background: #f4f7f6;
}

body .books-workspace > .books-table-section .book-ledger-head {
  background: #f2f6f4;
}

@media (max-width: 760px) {
  body .books-workspace {
    padding-top: var(--v3-space-4);
  }

  body .books-workspace > .books-header {
    align-items: stretch;
    gap: var(--v3-space-3);
    padding-bottom: var(--v3-space-4);
  }

  body .books-workspace > .books-header h1 {
    font-size: 26px;
  }

  body .books-workspace > .books-header .button {
    min-width: 42px;
  }

  body .books-workspace > .books-table-section .production-table-heading {
    min-height: auto;
    gap: var(--v3-space-3);
    align-items: stretch;
  }

  body .books-workspace > .books-table-section .book-table-tools {
    width: 100%;
  }
}

/* Publisher Studio V6.5 final authority: selection hierarchy and nested records. */
.candidate-filter-zone {
  padding: 10px 12px 12px;
  border-bottom: 0;
  background: #fff;
}

.candidate-filter-zone-heading {
  display: flex;
  min-height: 16px;
  align-items: center;
  margin: 0 0 7px;
}

.candidate-filter-zone-heading span {
  color: #637277;
  font-size: 8px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.candidate-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.candidate-filter {
  min-height: 42px;
  padding: 0 9px;
  color: #41555a;
  border: 1px solid #cbd3d1;
  border-radius: var(--v3-radius-control);
  background: #fff;
  box-shadow: none;
}

.candidate-filter:hover:not(.is-active) {
  color: var(--v3-ink);
  border-color: #98aaa6;
  background: #f6f8f7;
  transform: none;
}

.candidate-filter.is-active {
  color: #fff;
  border-color: var(--v3-ink);
  background: var(--v3-ink);
  box-shadow: 0 3px 9px rgba(16, 39, 46, .14);
}

.candidate-filter.is-active > svg,
.candidate-filter.is-active > i,
.candidate-filter.is-active > span {
  color: #fff;
}

.candidate-filter.is-active > em {
  color: var(--v3-ink);
  background: #fff;
}

.candidate-approval-panel {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 12px 10px 46px;
  border-bottom: 1px solid var(--v3-line);
  background: #fff;
}

.candidate-approval-panel[hidden] {
  display: none;
}

.candidate-approval-panel::before {
  position: absolute;
  top: -1px;
  left: 26px;
  width: 12px;
  height: 22px;
  border-bottom: 1px solid #aebfba;
  border-left: 1px solid #aebfba;
  border-radius: 0 0 0 5px;
  content: "";
}

.candidate-approval-filters {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: start;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.candidate-approval-filter {
  position: relative;
  min-height: 34px;
  padding: 0 4px;
  color: #607075;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.candidate-approval-filter::after {
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 2px;
  background: transparent;
  content: "";
}

.candidate-approval-filter:hover:not(.is-active) {
  color: var(--v3-ink);
  background: transparent;
}

.candidate-approval-filter.is-active {
  color: var(--v3-accent-strong);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.candidate-approval-filter.is-active::after {
  background: var(--v3-accent);
}

.candidate-approval-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: #eaf3f0;
}

.canvas-mode {
  gap: 4px;
  padding: 3px;
  border: 1px solid #cfd9d6;
  background: #f3f6f5;
}

.canvas-mode-button {
  color: #617176;
  background: transparent;
  box-shadow: none;
}

.canvas-mode-button.is-active {
  color: #fff;
  background: var(--v3-ink);
  box-shadow: 0 2px 7px rgba(16, 39, 46, .13);
}

.book-video-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid #cbd5d2;
  border-radius: var(--v3-radius-control);
  background: #f0f3f2;
}

.book-video-filters button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: #5c6d72;
  border: 0;
  border-radius: calc(var(--v3-radius-control) - 2px);
  background: transparent;
  box-shadow: none;
}

.book-video-filters button:hover:not(.is-active) {
  color: var(--v3-ink);
  background: #fff;
}

.book-video-filters button.is-active {
  color: #fff;
  background: var(--v3-ink);
  box-shadow: 0 2px 7px rgba(16, 39, 46, .13);
}

.book-video-filters button.is-active > svg,
.book-video-filters button.is-active > i,
.book-video-filters button.is-active > span {
  color: #fff;
}

.candidate-list-panel > .candidate-list,
.video-library-list.video-structure-list {
  background: #f5f7f6;
}

.candidate-structure-section,
.video-structure-section {
  overflow: hidden;
  margin: 0 0 8px;
  border: 1px solid #d2dcda;
  border-radius: var(--v3-radius-panel);
  background: #fff;
  box-shadow: none;
}

.candidate-structure-toggle.is-section,
.video-structure-section-toggle {
  color: var(--v3-ink);
  border: 0;
  border-bottom: 1px solid transparent;
  background: #eef2f1;
}

.candidate-structure-section.is-expanded > .candidate-structure-toggle.is-section,
.video-structure-section.is-expanded > .video-structure-section-toggle {
  border-bottom-color: #cbd6d3;
  background: #e8eeec;
}

.candidate-section-body,
.video-structure-tests {
  position: relative;
  padding: 8px 8px 8px 22px;
  background: #f7f9f8;
}

.candidate-section-body::before,
.video-structure-tests::before {
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 12px;
  width: 1px;
  background: #b9cac5;
  content: "";
}

.candidate-test-group,
.video-structure-test {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: var(--v3-radius-control);
  background: #fff;
}

.candidate-test-group + .candidate-test-group,
.video-structure-test + .video-structure-test {
  margin-top: 6px;
}

.candidate-test-group.is-expanded,
.video-structure-test.is-expanded {
  box-shadow: inset 3px 0 0 var(--v3-accent);
}

.candidate-structure-toggle.is-test,
.video-structure-test-toggle {
  border: 0;
  background: #fff;
}

.candidate-test-body,
.video-revision-test-body {
  padding-left: 12px;
  border-top: 1px solid #e0e6e4;
  background: #fff;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row,
.video-library-item {
  border-left: 3px solid transparent;
  background: #fff;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row:hover,
.video-library-item:hover {
  background: #f6f8f7;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active,
.video-library-item.is-active {
  border-left-color: var(--v3-accent);
  background: #edf5f2;
}

.candidate-filter:focus-visible,
.candidate-approval-filter:focus-visible,
.canvas-mode-button:focus-visible,
.book-video-filters button:focus-visible {
  outline: 3px solid rgba(0, 127, 112, .3);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .candidate-approval-panel {
    padding-left: 34px;
  }

  .candidate-approval-panel::before {
    left: 18px;
    width: 9px;
  }

  .candidate-approval-filters {
    width: 100%;
    gap: 5px;
  }

  .book-video-filters {
    width: 100%;
  }
}

/* Publisher Studio V6.5 selection hierarchy: primary choice, secondary filter, nested records. */
.candidate-filter-zone {
  padding: 10px 12px 12px;
  border-bottom: 0;
  background: #fff;
}

.candidate-filter-zone-heading {
  display: flex;
  min-height: 16px;
  align-items: center;
  margin: 0 0 7px;
}

.candidate-filter-zone-heading span {
  color: #637277;
  font-size: 8px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.candidate-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.candidate-filter {
  min-height: 42px;
  padding: 0 9px;
  border: 1px solid #cbd3d1;
  border-radius: var(--v3-radius-control);
  color: #41555a;
  background: #fff;
  box-shadow: none;
}

.candidate-filter:hover:not(.is-active) {
  color: var(--v3-ink);
  border-color: #98aaa6;
  background: #f6f8f7;
  transform: none;
}

.candidate-filter.is-active {
  color: #fff;
  border-color: var(--v3-ink);
  background: var(--v3-ink);
  box-shadow: 0 3px 9px rgba(16, 39, 46, .14);
}

.candidate-filter.is-active > em {
  color: #fff;
  background: rgba(255, 255, 255, .15);
}

.candidate-approval-panel {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 12px 11px 44px;
  border-bottom: 1px solid var(--v3-line);
  background: #fff;
}

.candidate-approval-panel[hidden] {
  display: none;
}

.candidate-approval-panel::before {
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 25px;
  border-bottom: 1px solid #aab6b3;
  border-left: 1px solid #aab6b3;
  border-radius: 0 0 0 5px;
  content: "";
}

.candidate-approval-filters {
  display: flex;
  width: auto;
  max-width: 100%;
  justify-self: start;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.candidate-approval-filter {
  position: relative;
  min-height: 32px;
  flex: 0 1 auto;
  gap: 5px;
  padding: 0 3px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #637277;
  background: transparent;
  box-shadow: none;
}

.candidate-approval-filter > em {
  min-width: 18px;
  min-height: 18px;
  color: #56676b;
  background: #edf0ef;
}

.candidate-approval-filter:hover:not(.is-active) {
  color: var(--v3-ink);
  background: transparent;
}

.candidate-approval-filter.is-active {
  color: var(--v3-accent-strong);
  border: 0;
  border-bottom: 2px solid var(--v3-accent);
  background: transparent;
  box-shadow: none;
}

.candidate-approval-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: var(--v3-accent-soft);
}

.book-workspace .candidate-list-panel,
.book-workspace.is-bulk-mode .candidate-list-panel {
  background: #f4f6f5;
}

.book-workspace .candidate-list {
  padding: 10px 12px 22px;
}

.candidate-structure-section {
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid #c8d0ce;
  border-radius: var(--v3-radius-control);
  background: #fff;
  box-shadow: none;
}

.candidate-structure-toggle.is-section {
  min-height: 60px;
  padding: 8px 10px;
  color: var(--v3-ink);
  border: 0;
  border-bottom: 1px solid transparent;
  background: #e9edec;
  box-shadow: none;
}

.candidate-structure-section.is-expanded > .candidate-structure-toggle.is-section {
  border-bottom-color: #c8d0ce;
}

.candidate-structure-toggle.is-section:hover {
  background: #e2e7e5;
}

.candidate-structure-toggle.is-section .structure-disclosure {
  color: var(--v3-ink-soft);
  border-color: #b8c2bf;
  background: #fff;
}

.candidate-structure-toggle.is-section .candidate-structure-level,
.candidate-structure-toggle.is-section .candidate-structure-detail,
.candidate-structure-toggle.is-section .candidate-structure-progress small {
  color: #61716f;
}

.candidate-section-body {
  position: relative;
  padding: 8px 8px 8px 25px;
  border-top: 0;
  background: #f8f9f9;
  background-image: none;
}

.candidate-section-body::before {
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 13px;
  border-left: 1px solid #b9c4c1;
  content: "";
}

.candidate-test-group,
.candidate-test-group.is-expanded {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d2d9d7;
  border-left: 3px solid #9ba9a6;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.candidate-test-group.is-expanded {
  border-left-color: var(--v3-accent);
}

.candidate-test-group + .candidate-test-group {
  margin-top: 6px;
  border-top: 1px solid #d2d9d7;
}

.candidate-structure-toggle.is-test,
.candidate-test-group:has(.candidate-test-body:not([hidden])) > .candidate-structure-toggle.is-test {
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: #fff;
}

.candidate-test-group:has(.candidate-test-body:not([hidden])) > .candidate-structure-toggle.is-test {
  border-bottom-color: #d9dfdd;
  background: #f4f6f5;
}

.candidate-structure-toggle.is-test:hover {
  background: #f1f3f2;
}

.candidate-test-body {
  padding: 2px 4px 4px 20px;
  background: #fff;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row {
  background: #fff;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row:hover {
  background: #f5f7f6;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active {
  background: #eef5f3;
  box-shadow: inset 3px 0 0 var(--v3-accent);
}

.canvas-mode {
  gap: 3px;
  padding: 3px;
  border: 1px solid #cbd3d1;
  border-radius: var(--v3-radius-control);
  background: #f0f2f1;
}

.canvas-mode-button {
  min-height: 32px;
  color: #506166;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.canvas-mode-button:hover:not(.is-active) {
  color: var(--v3-ink);
  background: #fff;
}

.canvas-mode-button.is-active {
  color: #fff;
  border: 0;
  background: var(--v3-ink);
  box-shadow: none;
}

.book-video-filters {
  display: inline-grid;
  width: fit-content;
  grid-template-columns: repeat(2, minmax(112px, auto));
  gap: 0;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #c7cfcd;
  border-radius: var(--v3-radius-control);
  background: #eef1f0;
}

.book-video-filters button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  color: #53656a;
  background: transparent;
  box-shadow: none;
}

.book-video-filters button > svg,
.book-video-filters button > i {
  width: 14px;
  height: 14px;
}

.book-video-filters button:hover:not(.is-active) {
  color: var(--v3-ink);
  background: #fff;
}

.book-video-filters button.is-active {
  color: #fff;
  border: 0;
  background: var(--v3-ink);
  box-shadow: none;
}

.video-library-list.video-structure-list {
  padding: 10px;
  background: #f2f4f3;
}

.video-structure-section {
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid #c8d0ce;
  border-radius: var(--v3-radius-control);
  background: #fff;
  box-shadow: none;
}

.video-structure-section:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid #c8d0ce;
}

.video-structure-section-toggle {
  min-height: 60px;
  grid-template-columns: 30px minmax(0, 1fr) 108px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: #e9edec;
  box-shadow: none;
}

.video-structure-section.is-expanded > .video-structure-section-toggle {
  border-bottom-color: #c8d0ce;
}

.video-structure-section-toggle:hover {
  background: #e2e7e5;
}

.video-structure-tests {
  position: relative;
  padding: 8px 8px 8px 25px;
  border-top: 0;
  background: #f8f9f9;
  background-image: none;
}

.video-structure-tests::before {
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 13px;
  border-left: 1px solid #b9c4c1;
  content: "";
}

.video-structure-test,
.video-structure-test.is-expanded {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d2d9d7;
  border-left: 3px solid #9ba9a6;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.video-structure-test.is-expanded {
  border-left-color: var(--v3-accent);
}

.video-structure-test:first-child {
  border-top: 1px solid #d2d9d7;
}

.video-structure-test + .video-structure-test {
  margin-top: 6px;
}

.video-structure-test-toggle,
.video-structure-test.is-expanded > .video-structure-test-toggle {
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: #fff;
}

.video-structure-test.is-expanded > .video-structure-test-toggle {
  border-bottom-color: #d9dfdd;
  background: #f4f6f5;
}

.video-structure-test-toggle:hover {
  background: #f1f3f2;
}

.video-structure-test-body,
.video-revision-test-body {
  border-top: 0;
  background: #fff;
}

.video-library-item,
.video-library-item.is-ready {
  border-left-color: transparent;
  background: #fff;
}

.video-library-item:hover,
.video-library-item.is-ready:hover {
  background: #f5f7f6;
  box-shadow: none;
}

.video-library-item.is-active,
.video-library-item.is-ready.is-active {
  background: #eef5f3;
  box-shadow: inset 3px 0 0 var(--v3-accent);
}

@media (max-width: 760px) {
  .candidate-approval-panel {
    padding-left: 34px;
  }

  .candidate-approval-panel::before {
    left: 18px;
  }

  .candidate-approval-filters {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }

  .book-video-filters {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Video selection: a visible, bounded queue instead of an ambiguous all-book action. */
.book-workspace.is-bulk-mode .candidate-editor {
  height: calc(100dvh - 244px);
  min-height: 640px;
  grid-template-columns: minmax(460px, 520px) minmax(560px, 1fr);
}

.book-workspace.is-bulk-mode .candidate-list-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--v3-line);
  background: #f3f7f5;
}

.book-workspace.is-bulk-mode .candidate-list {
  min-height: 0;
  max-height: none;
  flex: 1;
  padding: 8px 12px 18px;
  overflow-x: hidden;
  overflow-y: auto;
}

.book-workspace.is-bulk-mode .candidate-list-tools {
  grid-template-columns: minmax(0, 1fr) 36px;
  padding: 9px 12px;
}

.book-workspace.is-bulk-mode #selectVisibleCandidatesButton {
  display: none;
}

.book-workspace.is-bulk-mode .candidate-bulk-dock {
  position: static;
  z-index: auto;
  display: grid;
  min-height: 0;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #adc9c3;
  border-radius: 0;
  background: #e7f2ef;
  box-shadow: inset 3px 0 0 var(--v3-accent);
}

.candidate-bulk-dock[hidden] {
  display: none !important;
}

.book-workspace.is-bulk-mode .candidate-bulk-dock > div {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.book-workspace.is-bulk-mode .candidate-bulk-dock > div:last-child {
  grid-template-columns: 1fr 1fr;
}

.book-workspace.is-bulk-mode .candidate-bulk-dock #generateSelectedButton {
  grid-column: 1 / -1;
  min-height: 44px;
  font-size: 12px;
}

.book-workspace.is-bulk-mode .candidate-bulk-dock #generateSelectedButton:not(:disabled) {
  box-shadow: 0 8px 20px rgba(8, 127, 115, .18);
}

.book-workspace.is-bulk-mode .candidate-bulk-dock strong {
  overflow: hidden;
  color: var(--v3-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-workspace.is-bulk-mode .candidate-bulk-dock small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--v3-muted);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-workspace.is-bulk-mode .candidate-test-body {
  margin: 0 0 10px;
  padding: 7px;
  border-left: 0;
  border-radius: 5px;
  background: #f1f5f4;
}

.book-workspace.is-bulk-mode .candidate-row {
  min-height: 104px;
  grid-template-columns: 28px 76px minmax(0, 1fr) 10px;
  gap: 12px;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid #d4dfdc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(16, 39, 46, .035);
  cursor: pointer;
  transition: transform 140ms cubic-bezier(.2, 0, 0, 1), border-color 140ms cubic-bezier(.2, 0, 0, 1), background-color 140ms cubic-bezier(.2, 0, 0, 1), box-shadow 140ms cubic-bezier(.2, 0, 0, 1);
}

.book-workspace.is-bulk-mode .candidate-row:hover {
  transform: translateY(-1px);
  border-color: #9fbeb7;
  box-shadow: 0 7px 18px rgba(16, 39, 46, .075);
}

.book-workspace.is-bulk-mode .candidate-row.is-selected,
.book-workspace.is-bulk-mode .candidate-row:has(.candidate-checkbox:checked) {
  border-color: #54a698;
  background: #e9f6f2;
  box-shadow: inset 4px 0 0 var(--v3-accent), 0 7px 18px rgba(8, 127, 115, .09);
}

.book-workspace.is-bulk-mode .candidate-checkbox {
  width: 20px;
  height: 20px;
}

.book-workspace.is-bulk-mode .candidate-thumb {
  width: 76px;
  height: 84px;
  padding: 4px;
  object-fit: contain;
  border-color: #c9d8d4;
  background: #fff;
  box-sizing: border-box;
}

.book-workspace.is-bulk-mode .candidate-row-copy {
  min-width: 0;
  align-self: center;
}

.book-workspace.is-bulk-mode .candidate-row-copy strong {
  color: var(--v3-ink);
  font-size: 14px;
}

.book-workspace.is-bulk-mode .candidate-row-copy > span {
  margin-top: 5px;
  color: var(--v3-muted);
  font-size: 11px;
}

.book-workspace.is-bulk-mode .candidate-approval-source {
  margin-top: 7px;
  font-size: 9px;
}

.book-workspace.is-bulk-mode .candidate-video-choice {
  display: block;
  margin-top: 8px;
  color: #47645e;
  font-size: 10px;
  font-weight: 800;
}

.book-workspace.is-bulk-mode .candidate-row.is-selected .candidate-video-choice {
  color: var(--v3-accent);
}

.book-workspace.is-bulk-mode .candidate-canvas-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

@media (max-width: 1180px) {
  .book-workspace.is-bulk-mode .candidate-editor {
    height: auto;
    grid-template-columns: minmax(390px, 460px) minmax(460px, 1fr);
  }
}

@media (max-width: 900px) {
  .book-workspace.is-bulk-mode .candidate-editor {
    grid-template-columns: 1fr;
  }

  .book-workspace.is-bulk-mode .candidate-list-panel {
    min-height: 640px;
    max-height: 75dvh;
  }
}

/* Keep the full-width production command authoritative over legacy bulk styles. */
.book-workspace.is-bulk-mode .candidate-production-command {
  position: sticky;
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 13px 18px;
  border: 1px solid #8ebdb4;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #e8f4f1;
  box-shadow: 0 10px 26px rgba(16, 83, 74, .1);
}

.book-workspace.is-bulk-mode .candidate-production-command > div,
.book-workspace.is-bulk-mode .candidate-production-command > div:last-child {
  display: flex;
  min-width: 0;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.book-workspace.is-bulk-mode .candidate-production-command > div:last-child {
  justify-content: flex-end;
}

.book-workspace.is-bulk-mode .candidate-production-command #generateSelectedButton {
  min-width: 180px;
  min-height: 42px;
  grid-column: auto;
  font-size: 12px;
}

.book-workspace.is-bulk-mode .candidate-editor {
  height: calc(100dvh - 228px);
  min-height: 680px;
  grid-template-columns: minmax(520px, 590px) minmax(620px, 1fr);
}

.book-workspace.is-bulk-mode .candidate-list-panel {
  min-height: 0;
  max-height: none;
}

@media (max-width: 1400px) {
  .book-workspace.is-bulk-mode .candidate-editor {
    grid-template-columns: minmax(450px, 520px) minmax(540px, 1fr);
  }
}

@media (max-width: 1100px) {
  .book-workspace.is-bulk-mode .candidate-production-command {
    position: static;
    grid-template-columns: 1fr;
  }

  .book-workspace.is-bulk-mode .candidate-production-command > div:last-child {
    justify-content: stretch;
  }

  .book-workspace.is-bulk-mode .candidate-production-command > div:last-child .button {
    flex: 1;
  }

  .book-workspace.is-bulk-mode .candidate-editor {
    height: auto;
    grid-template-columns: 1fr;
  }

  .book-workspace.is-bulk-mode .candidate-list-panel {
    min-height: 560px;
    max-height: 72dvh;
  }
}

@media (max-width: 700px) {
  .book-workspace.is-bulk-mode .candidate-production-command > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .book-workspace.is-bulk-mode .candidate-production-command #generateSelectedButton {
    min-width: 0;
    grid-column: 1 / -1;
  }
}

/* Publisher Studio V5: concise editorial operations, stable contracts. */
.books-workspace,
.book-workspace {
  color: var(--v3-ink);
}

.books-workspace {
  padding-top: var(--v3-space-5);
  padding-bottom: 56px;
}

.books-header {
  min-height: 68px;
  align-items: end;
  padding: 0 0 var(--v3-space-4);
}

.books-header h1 {
  font-size: 28px;
  line-height: 1.08;
}

.books-header p:not(.eyebrow) {
  max-width: 620px;
  margin-top: var(--v3-space-1);
  color: var(--v3-muted);
  font-size: 12px;
  line-height: 1.45;
}

.books-header .button {
  min-height: 40px;
  box-shadow: none;
}

.portfolio-command {
  min-height: 96px;
  grid-template-columns: minmax(0, 1fr) 432px;
  margin-bottom: var(--v3-space-2);
}

.portfolio-command .operations-status {
  min-height: 96px;
  padding: var(--v3-space-4) 18px;
  border-left-width: 3px;
}

.portfolio-command .operations-status-copy {
  gap: var(--v3-space-3);
}

.portfolio-command .operations-risk-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.portfolio-command .operations-risk-icon svg {
  width: 17px;
  height: 17px;
}

.portfolio-command .operations-status h2 {
  font-size: 16px;
  line-height: 1.25;
}

.portfolio-command .operations-status-detail {
  margin-top: 2px;
  color: var(--v3-muted);
  font-size: 10px;
  line-height: 1.4;
}

.portfolio-command .operations-status-actions {
  gap: var(--v3-space-2);
}

.portfolio-command .operations-status-actions .button {
  min-height: 36px;
  padding-inline: var(--v3-space-3);
  box-shadow: none;
}

.books-workspace .portfolio-command .operations-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.books-workspace .portfolio-command .operations-summary > div {
  min-height: 96px;
  justify-content: center;
  padding: var(--v3-space-3);
  border-bottom: 0;
}

.books-workspace .portfolio-command .operations-summary > div:nth-child(2n) {
  border-right: 1px solid var(--v3-line);
}

.books-workspace .portfolio-command .operations-summary > div:last-child {
  border-right: 0;
}

.books-workspace .portfolio-command .operations-summary span {
  font-size: 8px;
  line-height: 1.2;
}

.books-workspace .portfolio-command .operations-summary strong {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1;
}

.books-workspace .assurance-flow {
  min-height: 58px;
  margin-bottom: 18px;
  grid-template-columns: 174px repeat(4, minmax(0, 1fr));
}

.assurance-flow-route {
  height: 58px;
}

.assurance-flow-heading {
  padding-inline: 14px;
}

.assurance-flow-heading .eyebrow {
  margin-bottom: 2px;
  font-size: 8px;
}

.assurance-flow-heading strong {
  font-size: 12px;
}

.assurance-flow-step {
  min-height: 58px;
  gap: var(--v3-space-2);
  padding: 7px 10px;
}

.assurance-flow-step > span {
  width: 30px;
  height: 30px;
}

.assurance-flow-step > span svg {
  width: 14px;
  height: 14px;
}

.assurance-flow-step small,
.assurance-flow-step em {
  font-size: 7px;
}

.assurance-flow-step strong {
  font-size: 10px;
}

.books-table-section {
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
}

.books-table-section .production-table-heading {
  min-height: 62px;
  padding: 10px var(--v3-space-4);
  border-bottom: 1px solid var(--v3-line);
  background: var(--v3-surface-soft);
}

.books-table-section .production-table-heading h2 {
  font-size: 16px;
}

.books-table-section .eyebrow {
  margin-bottom: 2px;
}

.books-table {
  overflow: hidden;
  border-radius: 0 0 var(--v3-radius-surface) var(--v3-radius-surface);
}

.publication-book-card {
  min-height: 92px;
  grid-template-columns: 46px minmax(0, 1fr) minmax(220px, 270px) 112px;
  gap: var(--v3-space-4);
  padding: var(--v3-space-3) var(--v3-space-4);
  border: 0;
  border-bottom: 1px solid var(--v3-line);
  border-radius: 0;
  background: var(--v3-surface);
  box-shadow: none;
}

.publication-book-card:last-child {
  border-bottom: 0;
}

.publication-book-card:hover {
  border-color: var(--v3-line);
  background: #fbfdfc;
  box-shadow: inset 3px 0 0 var(--v3-accent);
  transform: none;
}

.publication-book-card:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(0, 127, 112, .25);
  outline-offset: -3px;
}

.publication-book-cover {
  width: 46px;
  height: 64px;
  border-radius: 4px;
}

.publication-book-main {
  gap: 5px;
}

.publication-book-type {
  font-size: 8px;
}

.publication-book-title > strong {
  font-size: 14px;
}

.publication-book-title em {
  margin-top: 2px;
  font-size: 9px;
}

.publication-book-track {
  margin-top: 5px;
  gap: var(--v3-space-3);
}

.publication-book-track > span small,
.publication-book-track > span strong {
  font-size: 7px;
}

.publication-book-next {
  min-height: 58px;
  align-self: center;
  padding: 9px 12px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-control);
  background: var(--v3-surface-soft);
}

.publication-book-next.has-work {
  border-color: #ead7af;
}

.publication-book-next small,
.publication-book-readiness small {
  font-size: 7px;
}

.publication-book-next strong {
  font-size: 11px;
}

.publication-book-readiness {
  padding-left: var(--v3-space-3);
}

.publication-book-readiness strong {
  font-size: 20px;
}

/* The book record stays sticky; content gets the remaining viewport. */
.book-workspace > .book-strip {
  min-height: 72px;
  padding: 10px var(--v3-space-4);
  box-shadow: none;
}

.book-strip-copy h1 {
  font-size: 19px;
}

.book-strip-copy .eyebrow {
  margin-bottom: 3px;
}

.book-workspace > .book-tabs {
  top: 72px;
  min-height: 46px;
  box-shadow: 0 5px 14px rgba(16, 39, 46, .035);
}

.book-tab {
  min-height: 46px;
  padding-inline: 16px;
  font-size: 11px;
}

.candidate-progress-strip {
  min-height: 54px;
  padding: 0 var(--v3-space-4);
  background: var(--v3-surface-soft);
}

.candidate-progress-strip > div {
  min-height: 54px;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: var(--v3-space-2);
  padding-left: var(--v3-space-3);
}

.candidate-progress-strip > div::before {
  top: 14px;
  bottom: 14px;
}

.candidate-progress-strip strong {
  font-size: 16px;
}

.candidate-progress-strip span {
  font-size: 9px;
}

.book-workspace .candidate-editor,
.book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor {
  height: calc(100dvh - 172px);
  min-height: 620px;
  grid-template-columns: minmax(390px, 430px) minmax(560px, 1fr);
  border-top: 1px solid var(--v3-line);
  box-shadow: none;
}

.book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
  grid-template-columns: minmax(370px, 410px) minmax(500px, 1fr) 296px;
}

.book-workspace .candidate-list-panel,
.book-workspace.is-bulk-mode .candidate-list-panel {
  background: #f5f8f7;
}

.book-workspace .candidate-panel-heading {
  min-height: 54px;
  padding: 10px var(--v3-space-3);
}

.book-workspace .candidate-panel-heading h2 {
  font-size: 14px;
}

.candidate-filter-zone {
  padding: 8px var(--v3-space-3) 10px;
  background: #edf3f1;
}

.candidate-filter-zone-heading {
  margin-bottom: 6px;
}

.candidate-filter-zone-heading span {
  color: #526c67;
  font-size: 8px;
  letter-spacing: 0;
}

.candidate-filters {
  gap: var(--v3-space-1);
  padding: 3px;
  border: 1px solid #cbd9d5;
  border-radius: var(--v3-radius-control);
  background: #e2ebe8;
}

.candidate-filter {
  min-height: 36px;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  color: #526963;
  background: transparent;
  box-shadow: none;
}

.candidate-filter:hover:not(.is-active) {
  border: 0;
  background: rgba(255, 255, 255, .62);
  transform: none;
}

.candidate-filter.is-active {
  color: var(--v3-accent-strong);
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 39, 46, .1);
}

.candidate-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: var(--v3-accent-soft);
}

.candidate-filter > svg,
.candidate-filter > i {
  width: 14px;
  height: 14px;
}

.candidate-approval-panel {
  min-height: 48px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--v3-space-3);
  padding: 7px var(--v3-space-3);
  border-bottom-color: var(--v3-line);
  background: #f7faf9;
}

.candidate-approval-heading {
  gap: 6px;
}

.candidate-approval-heading > svg,
.candidate-approval-heading > i {
  width: 24px;
  height: 24px;
  padding: 5px;
}

.candidate-approval-heading strong {
  font-size: 8px;
}

.candidate-approval-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--v3-space-1);
}

.candidate-approval-filter {
  min-height: 30px;
  padding: 0 6px;
  font-size: 8px;
}

.book-workspace .candidate-list-tools {
  min-height: 50px;
  padding: 8px var(--v3-space-3);
  border-bottom: 1px solid var(--v3-line);
  background: var(--v3-surface);
}

.book-workspace .candidate-list {
  padding: 8px var(--v3-space-3) 18px;
}

.candidate-structure-section {
  margin-bottom: 6px;
  box-shadow: none;
}

.candidate-structure-toggle.is-section {
  min-height: 58px;
  padding: 7px 9px;
  box-shadow: inset 3px 0 0 #356f66;
}

.candidate-structure-toggle.is-test {
  min-height: 46px;
  padding: 5px 7px;
}

.candidate-test-body {
  padding-left: 18px;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row {
  min-height: 54px;
  grid-template-columns: 40px minmax(0, 1fr) 28px 8px;
  gap: 7px;
  padding: 5px 7px;
}

.book-workspace.is-review-selection:not(.is-bulk-mode) .candidate-test-body .candidate-row {
  grid-template-columns: 20px 40px minmax(0, 1fr) 28px 8px;
}

.candidate-row {
  position: relative;
}

.candidate-row-target {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.candidate-row-target:focus-visible {
  outline: 3px solid rgba(0, 127, 112, .3);
  outline-offset: -3px;
}

.candidate-row > .candidate-thumb,
.candidate-row > .candidate-row-copy,
.candidate-row > .candidate-state-mark {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.candidate-row > .candidate-checkbox,
.candidate-row > .candidate-row-action,
.candidate-row > .candidate-row-spinner {
  position: relative;
  z-index: 3;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-thumb {
  width: 40px;
  height: 40px;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row-copy > span {
  margin-top: 2px;
}

.candidate-canvas-panel {
  background: #e8eeec;
}

.candidate-page-stage,
.candidate-crop-stage {
  padding: 22px;
  background-color: #edf2f0;
  background-image: linear-gradient(#e2e9e6 1px, transparent 1px), linear-gradient(90deg, #e2e9e6 1px, transparent 1px);
  background-size: 24px 24px;
}

.candidate-page-stage img,
.candidate-crop-stage img {
  box-shadow: 0 10px 30px rgba(16, 39, 46, .11);
}

.candidate-flow-bar {
  min-height: 62px;
  padding: 8px var(--v3-space-3);
}

.candidate-production-command {
  top: 118px;
}

@media (max-width: 1480px) {
  .portfolio-command {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .portfolio-command .operations-status {
    align-items: flex-start;
  }

  .portfolio-command .operations-status-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .books-workspace .portfolio-command .operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-workspace .portfolio-command .operations-summary > div {
    min-height: 48px;
    padding: 7px 11px;
    border-bottom: 1px solid var(--v3-line);
  }

  .books-workspace .portfolio-command .operations-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .publication-book-card {
    grid-template-columns: 46px minmax(0, 1fr) minmax(190px, 230px) 100px;
  }
}

@media (max-width: 1180px) {
  .portfolio-command {
    grid-template-columns: 1fr;
  }

  .portfolio-command .operations-status {
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
  }

  .books-workspace .portfolio-command .operations-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .books-workspace .portfolio-command .operations-summary > div,
  .books-workspace .portfolio-command .operations-summary > div:nth-last-child(-n + 2) {
    min-height: 58px;
    border-bottom: 0;
  }

  .books-workspace .assurance-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .assurance-flow-heading {
    display: none;
  }

  .publication-book-card {
    grid-template-columns: 46px minmax(0, 1fr) 190px 96px;
  }

  .publication-book-track > span small {
    display: none;
  }

  .book-workspace .candidate-editor,
  .book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor,
  .book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
    height: auto;
    grid-template-columns: minmax(360px, 410px) minmax(520px, 1fr);
  }

  .book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-inspector {
    position: fixed;
    z-index: 30;
    inset: 0 0 0 auto;
    width: min(360px, 92vw);
  }
}

@media (max-width: 900px) {
  .books-workspace {
    padding-top: var(--v3-space-4);
  }

  .books-header h1 {
    font-size: 24px;
  }

  .portfolio-command .operations-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--v3-space-3);
  }

  .portfolio-command .operations-status-actions {
    justify-content: flex-start;
  }

  .books-workspace .assurance-flow {
    display: grid;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-flow-route {
    display: none;
  }

  .assurance-flow-step {
    border-bottom: 1px solid var(--v3-line);
  }

  .publication-book-card {
    grid-template-columns: 42px minmax(0, 1fr) 92px;
  }

  .publication-book-cover {
    width: 42px;
    height: 58px;
  }

  .publication-book-next {
    display: none;
  }

  .book-workspace .candidate-editor,
  .book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor {
    grid-template-columns: 1fr;
  }

  .candidate-list-panel {
    max-height: 64dvh;
  }

  .candidate-canvas-panel {
    min-height: 70dvh;
  }
}

@media (max-width: 620px) {
  .books-header {
    align-items: stretch;
  }

  .books-header .button {
    width: 100%;
  }

  .books-workspace .portfolio-command .operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-workspace .portfolio-command .operations-summary > div,
  .books-workspace .portfolio-command .operations-summary > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--v3-line);
  }

  .books-workspace .portfolio-command .operations-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .publication-book-card {
    grid-template-columns: 40px minmax(0, 1fr) 70px;
    gap: var(--v3-space-2);
    padding-inline: var(--v3-space-3);
  }

  .publication-book-track {
    display: none;
  }

  .publication-book-readiness strong {
    font-size: 17px;
  }

  .candidate-progress-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .candidate-progress-strip > div {
    min-height: 42px;
  }

  .candidate-filters {
    grid-template-columns: 1fr;
  }

  .candidate-filter {
    min-height: 34px;
  }

  .candidate-approval-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publication-book-card,
  .candidate-filter,
  .candidate-approval-filter,
  .structure-disclosure svg,
  .structure-disclosure i {
    transition: none !important;
  }
}

/*
 * Publisher Studio V6 authority layer.
 * This block intentionally follows the archived V5 rules so the control-center
 * layout wins the cascade without changing any application or lineage contract.
 */
.books-workspace {
  width: min(1640px, 100%);
}

.books-header {
  min-height: 88px;
  padding: 2px 0 20px;
}

.books-header h1 {
  font-size: 36px;
  line-height: 1;
}

.books-header p:not(.eyebrow) {
  max-width: 600px;
  font-size: 13px;
}

.studio-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) 360px;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 16px;
  order: 2;
}

.studio-control-grid .portfolio-command {
  display: grid;
  min-height: 236px;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) 72px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--v3-radius-surface);
  color: #fff;
  background: var(--v3-sidebar);
  box-shadow: 0 18px 42px rgba(16, 41, 46, .15);
}

.studio-control-grid .portfolio-command .operations-status {
  min-height: 0;
  margin: 0;
  padding: 26px 28px;
  border: 0;
  border-left: 4px solid #65cabb;
  border-radius: 0;
  color: #fff;
  background: transparent;
}

.studio-control-grid .portfolio-command .operations-status[data-status="critical"] {
  border-left-color: #ef8f7f;
}

.studio-control-grid .portfolio-command .operations-status[data-status="review"] {
  border-left-color: #e2ad56;
}

.studio-control-grid .portfolio-command .operations-risk-icon {
  color: #d7f4ed;
  border-color: rgba(211, 242, 235, .3);
  background: rgba(229, 243, 239, .1);
}

.studio-control-grid .portfolio-command .operations-status[data-status="critical"] .operations-risk-icon,
.studio-control-grid .portfolio-command .operations-status[data-status="review"] .operations-risk-icon {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
}

.studio-control-grid .portfolio-command .operations-status .eyebrow {
  color: #9fc6bf;
}

.studio-control-grid .portfolio-command .operations-status h2 {
  max-width: 700px;
  color: #fff;
  font-size: 24px;
  font-weight: 780;
  line-height: 1.15;
  text-wrap: balance;
}

.studio-control-grid .portfolio-command .operations-status-detail {
  max-width: 700px;
  color: #bfd0cc;
  font-size: 12px;
}

.studio-control-grid .portfolio-command .operations-status-actions .icon-button,
.studio-control-grid .portfolio-command .operations-status-actions .button-secondary {
  color: #effaf7;
  border-color: rgba(229, 243, 239, .28);
  background: rgba(255, 255, 255, .08);
}

.studio-control-grid .portfolio-command .operations-status-actions .icon-button:hover,
.studio-control-grid .portfolio-command .operations-status-actions .button-secondary:hover {
  color: #fff;
  border-color: rgba(229, 243, 239, .48);
  background: rgba(255, 255, 255, .14);
}

.studio-control-grid .portfolio-command .operations-status-actions .button-primary {
  color: var(--v3-sidebar);
  border-color: #bce9df;
  background: #bce9df;
  box-shadow: none;
}

.studio-control-grid .portfolio-command .operations-status-actions .button-primary:hover {
  color: var(--v3-sidebar);
  border-color: #d5f4ed;
  background: #d5f4ed;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(213, 223, 219, .2);
  border-radius: 0;
  background: #17363c;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary > div,
.books-workspace .studio-control-grid .portfolio-command .operations-summary > div:nth-child(2n),
.books-workspace .studio-control-grid .portfolio-command .operations-summary > div:nth-last-child(-n + 2) {
  min-height: 72px;
  padding: 13px 18px;
  border-right: 1px solid rgba(213, 223, 219, .16);
  border-bottom: 0;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary > div:last-child {
  border-right: 0;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary span {
  color: #9fc0ba;
  font-size: 9px;
}

.books-workspace .studio-control-grid .portfolio-command .operations-summary strong {
  color: #fff;
  font-size: 21px;
}

.books-workspace .studio-control-grid .assurance-flow {
  display: grid !important;
  min-height: 236px;
  grid-template-columns: 1fr;
  grid-template-rows: 52px repeat(4, minmax(42px, 1fr));
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-surface);
  background: var(--v3-surface);
}

.studio-control-grid .assurance-flow-route {
  display: none;
}

.studio-control-grid .assurance-flow-heading {
  display: grid;
  align-content: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--v3-line);
  background: #edf3f1;
}

.studio-control-grid .assurance-flow-heading strong {
  max-width: none;
  font-size: 13px;
}

.studio-control-grid .assurance-flow-step {
  display: grid;
  min-height: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 12px;
  border-right: 0;
  border-bottom: 1px solid var(--v3-line);
  background: #fff;
}

.studio-control-grid .assurance-flow-step:last-child {
  border-bottom: 0;
}

.studio-control-grid .assurance-flow-step > span {
  width: 30px;
  height: 30px;
}

.studio-control-grid .assurance-flow-step div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 7px;
  padding: 0;
}

.studio-control-grid .assurance-flow-step small {
  grid-column: 1 / -1;
}

.studio-control-grid .assurance-flow-step strong {
  font-size: 11px;
}

.studio-control-grid .assurance-flow-step em {
  justify-self: end;
  font-size: 9px;
}

.books-table-section {
  overflow: hidden;
  border: 1px solid var(--v3-line-strong);
  background: var(--v3-surface);
}

.books-table-section .production-table-heading {
  min-height: 70px;
  padding: 12px 16px;
  background: #fff;
}

.book-ledger-head {
  display: grid;
  min-height: 38px;
  grid-template-columns: 44px minmax(260px, 1fr) 86px 86px 86px minmax(180px, 240px) 82px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--v3-line-strong);
  color: #50686c;
  background: #e6eeeb;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-ledger-head > span:first-child {
  grid-column: 1 / 3;
}

.publication-book-card {
  min-height: 82px;
  grid-template-columns: 44px minmax(260px, 1fr) 86px 86px 86px minmax(180px, 240px) 82px;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--v3-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.publication-book-card > .publication-book-cover,
.publication-book-card > .publication-book-main,
.publication-book-card > .publication-book-stage,
.publication-book-card > .publication-book-next,
.publication-book-card > .publication-book-readiness {
  grid-area: auto;
}

.publication-book-card:last-child {
  border-bottom: 0;
}

.publication-book-card:hover {
  border-color: var(--v3-line);
  background: #f3f8f6;
  box-shadow: inset 4px 0 0 var(--v3-accent);
  transform: none;
}

.publication-book-card:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(0, 127, 112, .28);
  outline-offset: -3px;
}

.publication-book-cover {
  width: 44px;
  height: 44px;
  place-self: center;
  border: 1px solid #bdd0cb;
  border-radius: 6px;
  color: #dff4ef;
  background: #17363c;
  box-shadow: none;
}

.publication-book-cover > span,
.publication-book-cover > small {
  display: none;
}

.publication-book-cover strong {
  color: #fff;
  font-size: 11px;
}

.publication-book-main {
  align-content: center;
  gap: 3px;
}

.publication-book-type {
  font-size: 8px;
}

.publication-book-title > strong {
  font-size: 13px;
}

.publication-book-title em {
  overflow: hidden;
  max-width: 100%;
  margin-top: 1px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-book-stage {
  display: grid;
  min-width: 0;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 5px;
  color: var(--v3-muted);
}

.publication-book-stage > svg,
.publication-book-stage > i {
  width: 15px;
  height: 15px;
}

.publication-book-stage strong {
  color: var(--v3-ink-soft);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.publication-book-stage > em {
  height: 3px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 2px;
  background: #dfe7e4;
}

.publication-book-stage > em > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9fb8b2;
}

.publication-book-stage.is-current,
.publication-book-stage.is-complete {
  color: var(--v3-accent);
}

.publication-book-stage.is-current > em > b,
.publication-book-stage.is-complete > em > b {
  background: var(--v3-accent);
}

.publication-book-next {
  min-height: 50px;
  align-self: center;
  padding: 8px 10px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-control);
  background: #f7faf9;
}

.publication-book-next.has-work {
  color: #71490f;
  border-color: #ead7af;
  background: var(--v3-warning-soft);
}

.publication-book-next small {
  display: none;
}

.publication-book-next strong {
  font-size: 10px;
}

.publication-book-next em {
  font-size: 8px;
}

.publication-book-readiness {
  align-self: center;
  padding-left: 10px;
}

.publication-book-readiness small {
  display: none;
}

.publication-book-readiness strong {
  font-size: 18px;
}

.publication-book-readiness em {
  font-size: 7px;
}

/* The source record anchors every editorial action inside a book. */
.book-workspace > .book-strip {
  min-height: 78px;
  padding: 11px 18px;
  color: #fff;
  border-bottom: 0;
  background: var(--v3-sidebar);
  box-shadow: none;
}

.book-workspace > .book-strip .book-strip-copy h1 {
  color: #fff;
  font-size: 21px;
}

.book-workspace > .book-strip .book-strip-copy .eyebrow {
  color: #9fc0ba;
}

.book-workspace > .book-strip .icon-button {
  color: #e9f5f2;
  border-color: rgba(229, 243, 239, .28);
  background: rgba(255, 255, 255, .06);
}

.book-workspace > .book-strip .icon-button:hover {
  color: #fff;
  border-color: rgba(229, 243, 239, .48);
  background: rgba(255, 255, 255, .12);
}

.book-workspace > .book-strip #bookStatusBadge {
  color: #e8f5f1;
  border-color: rgba(188, 233, 223, .28);
  background: rgba(188, 233, 223, .1);
}

.book-workspace > .book-strip .book-ready-video-count {
  color: #bce9df;
}

.book-workspace > .book-strip #bookSendToVideoButton {
  color: var(--v3-sidebar);
  border-color: #bce9df;
  background: #bce9df;
  box-shadow: none;
}

.book-workspace > .book-tabs {
  top: 78px;
  min-height: 48px;
  border-bottom: 1px solid var(--v3-line-strong);
  background: #fff;
  box-shadow: none;
}

.book-tab {
  min-height: 48px;
}

.book-tab.is-active {
  color: var(--v3-accent-strong);
  background: #edf6f3;
}

.candidate-progress-strip {
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--v3-line);
  background: #e7efec;
}

.candidate-progress-strip > div {
  min-height: 44px;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid #d1deda;
}

.candidate-progress-strip > div::before {
  display: none;
}

.candidate-progress-strip strong {
  font-size: 14px;
}

.candidate-progress-strip span {
  color: #526c67;
  font-size: 8px;
  font-weight: 740;
  text-transform: uppercase;
}

.book-workspace .candidate-editor,
.book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor {
  height: calc(100dvh - 170px);
  min-height: 620px;
  grid-template-columns: minmax(360px, 400px) minmax(620px, 1fr);
  border-top: 0;
}

.book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
  grid-template-columns: minmax(340px, 380px) minmax(540px, 1fr) 300px;
}

.book-workspace .candidate-list-panel,
.book-workspace.is-bulk-mode .candidate-list-panel {
  background: #eff4f2;
}

.candidate-list-panel > .candidate-panel-heading {
  min-height: 58px;
  padding: 10px 14px;
  color: #fff;
  border-bottom-color: rgba(213, 223, 219, .16);
  background: #17363c;
}

.candidate-list-panel > .candidate-panel-heading .eyebrow {
  color: #9fc0ba;
}

.candidate-list-panel > .candidate-panel-heading h2 {
  color: #fff;
}

.candidate-list-panel > .candidate-panel-heading .data-count {
  color: #d9f1eb;
  border-color: rgba(188, 233, 223, .24);
  background: rgba(188, 233, 223, .09);
}

.candidate-filter-zone {
  padding: 9px 12px 10px;
  background: #e6efec;
}

.candidate-filter-zone-heading {
  display: none;
}

.candidate-filters {
  border-color: #c1d2cd;
  background: #d7e5e1;
}

.candidate-approval-panel {
  background: #f8faf9;
}

.book-workspace .candidate-list-tools {
  min-height: 52px;
  box-shadow: 0 1px 0 var(--v3-line);
}

.book-workspace .candidate-list {
  padding: 10px 12px 22px;
  scrollbar-gutter: stable;
}

.candidate-structure-section {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #bfd0cb;
  border-radius: var(--v3-radius-control);
  background: #fff;
}

.candidate-structure-toggle.is-section {
  min-height: 64px;
  padding: 9px 10px;
  color: #fff;
  border: 0;
  background: #17363c;
  box-shadow: none;
}

.candidate-structure-toggle.is-section:hover {
  background: #21454b;
}

.candidate-structure-toggle.is-section .structure-disclosure {
  color: #d9f1eb;
  border-color: rgba(188, 233, 223, .26);
  background: rgba(188, 233, 223, .08);
}

.candidate-structure-toggle.is-section .candidate-structure-copy strong {
  color: #fff;
  font-size: 14px;
}

.candidate-structure-toggle.is-section .candidate-structure-level,
.candidate-structure-toggle.is-section .candidate-structure-detail,
.candidate-structure-toggle.is-section .candidate-structure-progress small {
  color: #a9c3be;
}

.candidate-structure-toggle.is-section .candidate-structure-progress strong {
  color: #dff5ef;
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i {
  background: rgba(255, 255, 255, .16);
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i > b {
  background: #69c5b7;
}

.candidate-section-body {
  padding: 8px;
  background: #eaf1ef;
}

.candidate-test-group,
.candidate-test-group.is-expanded {
  margin-bottom: 7px;
  overflow: hidden;
  border: 1px solid #ccd9d5;
  border-left: 3px solid var(--v3-accent);
  border-radius: 5px;
  background: #fff;
}

.candidate-test-group:last-child {
  margin-bottom: 0;
}

.candidate-structure-toggle.is-test,
.candidate-test-group:has(.candidate-test-body:not([hidden])) > .candidate-structure-toggle.is-test {
  min-height: 50px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: #f8faf9;
}

.candidate-test-group:has(.candidate-test-body:not([hidden])) > .candidate-structure-toggle.is-test {
  border-bottom-color: #d6e1dd;
  background: #edf5f2;
}

.candidate-structure-toggle.is-test:hover {
  background: #e7f1ee;
}

.candidate-structure-toggle.is-test .candidate-structure-level {
  color: var(--v3-accent-strong);
}

.candidate-structure-toggle.is-test .candidate-structure-copy strong {
  font-size: 12px;
}

.candidate-test-body {
  padding: 5px 6px 6px 20px;
  background: #fff;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row {
  min-height: 56px;
  grid-template-columns: 42px minmax(0, 1fr) 30px 8px;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #e1e8e5;
  border-radius: 0;
  background: #fff;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row:last-child {
  border-bottom: 0;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row:hover {
  background: #f3f8f6;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active {
  background: #e4f3ef;
  box-shadow: inset 3px 0 0 var(--v3-accent);
}

.candidate-canvas-panel {
  border-left: 1px solid var(--v3-line-strong);
  background: #e7edeb;
}

.candidate-canvas-panel > .candidate-panel-heading {
  min-height: 58px;
  background: #fff;
}

.candidate-page-stage,
.candidate-crop-stage {
  padding: 24px;
  background-color: #e7edeb;
  background-image: radial-gradient(circle, #cbd8d4 1px, transparent 1px);
  background-size: 20px 20px;
}

.candidate-page-stage img,
.candidate-crop-stage img {
  border-color: #bacac5;
  box-shadow: 0 18px 48px rgba(16, 39, 46, .14);
}

.candidate-flow-bar {
  border-top: 1px solid var(--v3-line-strong);
  box-shadow: 0 -8px 24px rgba(16, 39, 46, .08);
}

@media (max-width: 1320px) {
  .studio-control-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .book-ledger-head,
  .publication-book-card {
    grid-template-columns: 40px minmax(230px, 1fr) 72px 72px 72px minmax(150px, 200px) 72px;
    gap: 9px;
  }

  .publication-book-cover {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1080px) {
  .studio-control-grid {
    grid-template-columns: 1fr;
  }

  .books-workspace .studio-control-grid .assurance-flow {
    min-height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 48px 66px;
  }

  .studio-control-grid .assurance-flow-heading {
    grid-column: 1 / -1;
  }

  .studio-control-grid .assurance-flow-step {
    border-right: 1px solid var(--v3-line);
    border-bottom: 0;
  }

  .book-ledger-head {
    display: none;
  }

  .publication-book-card {
    grid-template-columns: 42px minmax(240px, 1fr) repeat(3, 70px) 76px;
    grid-template-rows: auto auto;
  }

  .publication-book-next {
    grid-column: 2 / 6;
    grid-row: 2;
  }

  .publication-book-readiness {
    grid-column: 6;
    grid-row: 1 / 3;
  }

  .publication-book-cover {
    grid-row: 1 / 3;
  }

  .book-workspace .candidate-editor,
  .book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor,
  .book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
    height: auto;
    grid-template-columns: minmax(350px, 390px) minmax(500px, 1fr);
  }
}

@media (max-width: 760px) {
  .books-header h1 {
    font-size: 28px;
  }

  .studio-control-grid .portfolio-command {
    min-height: auto;
  }

  .studio-control-grid .portfolio-command .operations-status {
    padding: 20px 16px;
  }

  .studio-control-grid .portfolio-command .operations-status h2 {
    font-size: 20px;
  }

  .books-workspace .studio-control-grid .assurance-flow {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 46px repeat(2, 62px);
  }

  .studio-control-grid .assurance-flow-step:nth-of-type(odd) {
    border-right: 0;
  }

  .studio-control-grid .assurance-flow-step:nth-last-child(-n + 2) {
    border-top: 1px solid var(--v3-line);
  }

  .publication-book-card {
    grid-template-columns: 40px minmax(0, 1fr) 66px;
    grid-template-rows: auto auto;
  }

  .publication-book-cover {
    grid-row: 1;
  }

  .publication-book-main {
    grid-column: 2;
  }

  .publication-book-stage {
    display: none;
  }

  .publication-book-next {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .publication-book-readiness {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .book-workspace > .book-strip {
    padding: 10px;
  }

  .book-workspace > .book-strip .book-strip-copy h1 {
    font-size: 17px;
  }

  .book-workspace .candidate-editor,
  .book-workspace.is-content-tab:not(.is-bulk-mode) .candidate-editor,
  .book-workspace.is-inspector-open:not(.is-bulk-mode) .candidate-editor {
    grid-template-columns: 1fr;
  }

  .candidate-list-panel {
    max-height: 70dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-control-grid *,
  .publication-book-stage *,
  .candidate-list-panel * {
    scroll-behavior: auto !important;
  }
}

/* Publisher Studio V6.2 final: light source review and compact lineage strip. */
.studio-control-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.studio-control-grid .portfolio-command {
  display: none;
}

.books-workspace .studio-control-grid .assurance-flow {
  min-height: 88px;
  grid-template-columns: minmax(190px, .9fr) repeat(4, minmax(130px, 1fr));
  grid-template-rows: 1fr;
  border-color: var(--v3-line-strong);
  background: #fff;
}

.studio-control-grid .assurance-flow-heading {
  border-right: 1px solid var(--v3-line);
  border-bottom: 0;
  background: #f5f8f7;
}

.studio-control-grid .assurance-flow-step {
  border-right: 1px solid var(--v3-line);
  border-bottom: 0;
}

.studio-control-grid .assurance-flow-step:last-child {
  border-right: 0;
}

.book-workspace.is-content-tab > .book-strip {
  color: var(--v3-ink);
  border-bottom: 1px solid var(--v3-line-strong);
  background: #fff;
}

.book-workspace.is-content-tab > .book-strip .book-strip-copy h1 {
  color: var(--v3-ink);
}

.book-workspace.is-content-tab > .book-strip .book-strip-copy .eyebrow {
  color: var(--v3-muted);
}

.book-workspace.is-content-tab > .book-strip .icon-button {
  color: var(--v3-ink-soft);
  border-color: var(--v3-line-strong);
  background: #fff;
}

.book-workspace.is-content-tab > .book-strip .icon-button:hover {
  color: var(--v3-accent-strong);
  border-color: #8bbab2;
  background: var(--v3-accent-soft);
}

.book-workspace.is-content-tab > .book-strip #bookStatusBadge {
  color: var(--v3-accent-strong);
  border-color: #aad1c9;
  background: #edf7f4;
}

.book-workspace.is-content-tab > .book-strip .book-ready-video-count {
  color: var(--v3-accent-strong);
}

.book-workspace.is-content-tab > .book-strip #bookSendToVideoButton {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
}

.candidate-list-panel > .candidate-panel-heading {
  color: var(--v3-ink);
  border-bottom-color: var(--v3-line);
  border-left: 3px solid var(--v3-accent);
  background: #fff;
}

.candidate-list-panel > .candidate-panel-heading .eyebrow {
  color: var(--v3-muted);
}

.candidate-list-panel > .candidate-panel-heading h2 {
  color: var(--v3-ink);
}

.candidate-list-panel > .candidate-panel-heading .data-count {
  color: var(--v3-accent-strong);
  border-color: #b9d5cf;
  background: #edf7f4;
}

.candidate-structure-toggle.is-section {
  color: var(--v3-ink);
  border-bottom: 1px solid #c8d8d3;
  background: #e7f0ed;
}

.candidate-structure-toggle.is-section:hover {
  background: #dceae6;
}

.candidate-structure-toggle.is-section .structure-disclosure {
  color: var(--v3-accent-strong);
  border-color: #a9cac3;
  background: #fff;
}

.candidate-structure-toggle.is-section .candidate-structure-copy strong {
  color: var(--v3-ink);
}

.candidate-structure-toggle.is-section .candidate-structure-level,
.candidate-structure-toggle.is-section .candidate-structure-detail,
.candidate-structure-toggle.is-section .candidate-structure-progress small {
  color: #5b716f;
}

.candidate-structure-toggle.is-section .candidate-structure-progress strong {
  color: var(--v3-accent-strong);
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i {
  background: #cadbd6;
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i > b {
  background: var(--v3-accent);
}

.candidate-section-body {
  background: #f6f8f7;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active {
  background: #f0f4f3;
}

@media (max-width: 1080px) {
  .books-workspace .studio-control-grid .assurance-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 48px 66px;
  }

  .studio-control-grid .assurance-flow-heading {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
  }
}

@media (max-width: 760px) {
  .books-workspace .studio-control-grid .assurance-flow {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 46px repeat(2, 62px);
  }
}

/* Publisher Studio V6.4 final authority: neutral hierarchy, accent only for state. */
/* Publisher Studio V6.5 specificity authority: primary choice, secondary filter, nested records. */
body .book-workspace .candidate-filter-zone {
  padding: 10px 12px 12px;
}

body .book-workspace .candidate-filter-zone-heading {
  display: flex;
  min-height: 16px;
  align-items: center;
  margin: 0 0 7px;
}

body .book-workspace .candidate-filter-zone-heading span {
  color: #637277;
  font-size: 8px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

body .book-workspace .candidate-filters {
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

body .book-workspace .candidate-filter {
  padding: 0 9px;
  color: #41555a;
  border: 1px solid #cbd3d1;
  border-radius: var(--v3-radius-control);
  background: #fff;
  box-shadow: none;
}

body .book-workspace .candidate-filter:hover:not(.is-active) {
  color: var(--v3-ink);
  border-color: #98aaa6;
  background: #f6f8f7;
  transform: none;
}

body .book-workspace .candidate-filter.is-active {
  color: #fff;
  border-color: var(--v3-ink);
  background: var(--v3-ink);
  box-shadow: 0 3px 9px rgba(16, 39, 46, .14);
}

body .book-workspace .candidate-filter.is-active > svg,
body .book-workspace .candidate-filter.is-active > i,
body .book-workspace .candidate-filter.is-active > span {
  color: #fff;
}

body .book-workspace .candidate-filter.is-active > em {
  color: var(--v3-ink);
  background: #fff;
}

body .book-workspace .candidate-approval-filters {
  width: min(100%, 360px);
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body .book-workspace .candidate-approval-filter {
  position: relative;
  min-height: 34px;
  padding: 0 4px;
  color: #607075;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body .book-workspace .candidate-approval-filter::after {
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 2px;
  background: transparent;
  content: "";
}

body .book-workspace .candidate-approval-filter:hover:not(.is-active) {
  color: var(--v3-ink);
  background: transparent;
}

body .book-workspace .candidate-approval-filter.is-active {
  color: var(--v3-accent-strong);
  border: 0;
  background: transparent;
  box-shadow: none;
}

body .book-workspace .candidate-approval-filter.is-active::after {
  background: var(--v3-accent);
}

body .book-workspace .candidate-approval-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: #eaf3f0;
}

body .book-workspace .canvas-mode {
  gap: 4px;
  padding: 3px;
  border: 1px solid #cfd9d6;
  background: #f3f6f5;
}

body .book-workspace .canvas-mode-button.is-active {
  color: #fff;
  background: var(--v3-ink);
  box-shadow: 0 2px 7px rgba(16, 39, 46, .13);
}

body .book-workspace .book-video-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid #cbd5d2;
  border-radius: var(--v3-radius-control);
  background: #f0f3f2;
}

body .book-workspace .book-video-filters button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: #5c6d72;
  border: 0;
  border-radius: calc(var(--v3-radius-control) - 2px);
  background: transparent;
  box-shadow: none;
}

body .book-workspace .book-video-filters button:hover:not(.is-active) {
  color: var(--v3-ink);
  background: #fff;
}

body .book-workspace .book-video-filters button.is-active {
  color: #fff;
  background: var(--v3-ink);
  box-shadow: 0 2px 7px rgba(16, 39, 46, .13);
}

body .book-workspace .book-video-filters button.is-active > svg,
body .book-workspace .book-video-filters button.is-active > i,
body .book-workspace .book-video-filters button.is-active > span {
  color: #fff;
}

body .book-workspace .candidate-list-panel > .candidate-list,
body .book-workspace .video-library-list.video-structure-list {
  background: #f5f7f6;
}

body .book-workspace .candidate-structure-section,
body .book-workspace .video-structure-section {
  margin: 0 0 8px;
  border: 1px solid #d2dcda;
  background: #fff;
  box-shadow: none;
}

body .book-workspace .candidate-structure-toggle.is-section,
body .book-workspace .video-structure-section-toggle {
  color: var(--v3-ink);
  border: 0;
  border-bottom: 1px solid transparent;
  background: #eef2f1;
}

body .book-workspace .candidate-structure-section.is-expanded > .candidate-structure-toggle.is-section,
body .book-workspace .video-structure-section.is-expanded > .video-structure-section-toggle {
  border-bottom-color: #cbd6d3;
  background: #e8eeec;
}

body .book-workspace .candidate-section-body,
body .book-workspace .video-structure-tests {
  background: #f7f9f8;
}

body .book-workspace .candidate-test-group,
body .book-workspace .video-structure-test,
body .book-workspace .candidate-structure-toggle.is-test,
body .book-workspace .video-structure-test-toggle,
body .book-workspace .candidate-test-body,
body .book-workspace .video-revision-test-body {
  background: #fff;
}

body .book-workspace .candidate-test-group.is-expanded,
body .book-workspace .video-structure-test.is-expanded {
  box-shadow: inset 3px 0 0 var(--v3-accent);
}

body .book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row,
body .book-workspace .video-library-item {
  border-left: 3px solid transparent;
  background: #fff;
}

body .book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active,
body .book-workspace .video-library-item.is-active {
  border-left-color: var(--v3-accent);
  background: #edf5f2;
}

body .book-workspace .candidate-filter:focus-visible,
body .book-workspace .candidate-approval-filter:focus-visible,
body .book-workspace .canvas-mode-button:focus-visible,
body .book-workspace .book-video-filters button:focus-visible {
  outline: 3px solid rgba(0, 127, 112, .3);
  outline-offset: 2px;
}

.book-workspace > .book-strip {
  color: var(--v3-ink);
  border-bottom: 1px solid var(--v3-line-strong);
  background: #fff;
}

.book-workspace > .book-strip .book-strip-copy h1 {
  color: var(--v3-ink);
}

.book-workspace > .book-strip .book-strip-copy .eyebrow {
  color: var(--v3-muted);
}

.book-workspace > .book-strip .icon-button {
  color: var(--v3-ink-soft);
  border-color: var(--v3-line-strong);
  background: #fff;
}

.book-workspace > .book-strip .icon-button:hover {
  color: var(--v3-accent-strong);
  border-color: #8bbab2;
  background: var(--v3-accent-soft);
}

.book-workspace > .book-strip #bookStatusBadge {
  color: var(--v3-accent-strong);
  border-color: #aad1c9;
  background: #edf7f4;
}

.book-workspace > .book-strip .book-ready-video-count {
  color: var(--v3-accent-strong);
}

.book-workspace > .book-strip #bookSendToVideoButton {
  color: #fff;
  border-color: var(--v3-accent);
  background: var(--v3-accent);
}

.book-tab.is-active {
  color: var(--v3-accent-strong);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--v3-accent);
}

.candidate-list-panel > .candidate-panel-heading {
  color: var(--v3-ink);
  border-bottom-color: var(--v3-line);
  border-left: 3px solid var(--v3-accent);
  background: #fff;
}

.candidate-list-panel > .candidate-panel-heading .eyebrow {
  color: var(--v3-muted);
}

.candidate-list-panel > .candidate-panel-heading h2 {
  color: var(--v3-ink);
}

.candidate-list-panel > .candidate-panel-heading .data-count {
  color: var(--v3-accent-strong);
  border-color: #b9d5cf;
  background: #edf7f4;
}

.candidate-filter-zone {
  padding: 10px 12px 8px;
  border-bottom: 0;
  background: #fff;
}

.candidate-filters {
  gap: 3px;
  padding: 3px;
  border: 1px solid #d1dcda;
  background: #f0f3f2;
}

.candidate-filter {
  min-height: 42px;
  color: #506368;
  background: transparent;
}

.candidate-filter:hover:not(.is-active) {
  background: #f8faf9;
}

.candidate-filter.is-active {
  color: var(--v3-ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 39, 46, .1), inset 0 -2px 0 var(--v3-accent);
}

.candidate-filter.is-active > em {
  color: var(--v3-accent-strong);
  background: #edf2f0;
}

.candidate-approval-panel {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 12px 10px 46px;
  border-bottom: 1px solid var(--v3-line);
  background: #fff;
}

.candidate-approval-panel[hidden] {
  display: none;
}

.candidate-approval-panel::before {
  position: absolute;
  top: -1px;
  left: 26px;
  width: 12px;
  height: 22px;
  border-bottom: 1px solid #aebfba;
  border-left: 1px solid #aebfba;
  border-radius: 0 0 0 5px;
  content: "";
}

.candidate-approval-filters {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: start;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d6dfdc;
  border-radius: var(--v3-radius-control);
  background: #f4f6f5;
}

.candidate-approval-filter {
  min-height: 32px;
  padding: 0 8px;
  color: #5d6e72;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.candidate-approval-filter > svg,
.candidate-approval-filter > i {
  width: 13px;
  height: 13px;
}

.candidate-approval-filter:hover:not(.is-active) {
  background: #fff;
}

.candidate-approval-filter.is-active {
  color: var(--v3-accent-strong);
  border: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 39, 46, .1);
}

.candidate-structure-toggle.is-section {
  color: var(--v3-ink);
  border-bottom: 1px solid #d0d9d6;
  background: #f2f5f4;
}

.candidate-structure-toggle.is-section:hover {
  background: #ebf0ee;
}

.candidate-structure-toggle.is-section .structure-disclosure {
  color: var(--v3-accent-strong);
  border-color: #b8c9c4;
  background: #fff;
}

.candidate-structure-toggle.is-section .candidate-structure-copy strong {
  color: var(--v3-ink);
}

.candidate-structure-toggle.is-section .candidate-structure-level,
.candidate-structure-toggle.is-section .candidate-structure-detail,
.candidate-structure-toggle.is-section .candidate-structure-progress small {
  color: #5b716f;
}

.candidate-structure-toggle.is-section .candidate-structure-progress strong {
  color: var(--v3-accent-strong);
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i {
  background: #d7dfdc;
}

.candidate-structure-toggle.is-section .candidate-structure-progress > i > b {
  background: var(--v3-accent);
}

.candidate-section-body {
  background: #f6f8f7;
}

.book-workspace:not(.is-bulk-mode) .candidate-test-body .candidate-row.is-active {
  background: #f0f4f3;
}
