:root {
  --bg: #071914;
  --bg-soft: #0c241e;
  --panel: #102d26;
  --panel-2: #13362d;
  --line: #1d4f42;
  --line-soft: rgba(150, 197, 180, 0.12);
  --text: #eef7f3;
  --muted: #9eb8ae;
  --accent: #1ec28b;
  --accent-2: #79e0ba;
  --danger: #d36f62;
  --warn: #d7a14a;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.production-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #081b16 0%, #05120f 100%);
}

body.production-sheet-body {
  background: #071812;
}

body.production-intake-clean {
  background: linear-gradient(180deg, #f4efe5 0%, #efe7da 100%);
  color: #20322b;
}

body.production-intake-clean .small,
body.production-intake-clean .helper-text,
body.production-intake-clean .panel-copy,
body.production-intake-clean .metric-label,
body.production-intake-clean .table-meta,
body.production-intake-clean .top-note {
  color: #5e746c;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
.hidden { display: none !important; }
.small, .helper-text, .panel-copy, .metric-label, .table-meta, .top-note { color: var(--muted); }

.intake-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.intake-clean-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.intake-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7b5f3d;
  margin-bottom: 8px;
}

.intake-clean-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.intake-main-panel {
  background: rgba(255,255,255,0.74);
  border-color: rgba(99, 116, 107, 0.14);
  box-shadow: 0 20px 48px rgba(63, 50, 35, 0.12);
}

.intake-side-stack {
  display: grid;
  gap: 16px;
}

.intake-upload-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.intake-mini-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.intake-mini-steps span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ef;
  color: #315347;
  font-size: 0.86rem;
  font-weight: 700;
}

.intake-flow-panel {
  margin-bottom: 20px;
}

.workflow-panel {
  margin-top: 0;
  margin-bottom: 22px;
}

.workflow-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.workflow-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(99, 116, 107, 0.16);
  background: rgba(244, 248, 244, 0.84);
  color: #315347;
}

.workflow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e4ece5;
  color: #315347;
  font-weight: 800;
  font-size: 0.94rem;
}

.workflow-step-copy {
  display: grid;
  gap: 6px;
}

.workflow-step-copy strong {
  font-size: 0.93rem;
  color: #20352d;
}

.workflow-step-copy span {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #5b7168;
}

.workflow-step.complete {
  border-color: rgba(53, 214, 160, 0.26);
  background: rgba(226, 252, 245, 0.86);
}

.workflow-step.complete .workflow-step-num {
  background: rgba(53, 214, 160, 0.18);
  color: #168664;
}

.workflow-step.active {
  border-color: rgba(62, 167, 255, 0.34);
  background: rgba(230, 243, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(62, 167, 255, 0.08) inset;
}

.workflow-step.active .workflow-step-num {
  background: rgba(62, 167, 255, 0.16);
  color: #176db0;
}

.workflow-step.pending {
  opacity: 0.82;
}

.intake-clean-zone {
  background: linear-gradient(180deg, #fbfaf7, #f5f0e7);
  border: 2px dashed rgba(61, 119, 98, 0.24);
  color: #244137;
  box-shadow: none;
}

.intake-clean-zone .upload-icon {
  background: rgba(30, 194, 139, 0.12);
}

.intake-form-section {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 116, 107, 0.14);
}

.intake-selected-list .file-item,
.production-intake-clean .file-item,
.production-intake-clean .panel,
.production-intake-clean .upload-zone,
.production-intake-clean .notice,
.production-intake-clean .profile-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(99, 116, 107, 0.14);
  box-shadow: 0 16px 34px rgba(63, 50, 35, 0.1);
  color: #20322b;
}

.production-intake-clean .field label {
  color: #28433a;
}

.production-intake-clean .field input,
.production-intake-clean .field textarea,
.production-intake-clean .field select {
  background: #fcfaf6;
  color: #183029;
  border-color: rgba(75, 111, 97, 0.2);
}

.production-intake-clean .field input:focus,
.production-intake-clean .field textarea:focus,
.production-intake-clean .field select:focus {
  border-color: rgba(38, 131, 99, 0.32);
}

.production-intake-clean .action-btn {
  background: #146c4f;
  color: #f8fffc;
}

.production-intake-clean .secondary-btn,
.production-intake-clean .ghost-btn,
.production-intake-clean .style-chip,
.production-intake-clean .link-btn {
  background: rgba(255,255,255,0.82);
  color: #244137;
  border-color: rgba(75, 111, 97, 0.16);
}

.production-intake-clean .progress-panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(99, 116, 107, 0.14);
}

.production-intake-clean .progress-hero-track,
.production-intake-clean .progress-track {
  background: #dde7df;
}

.intake-foldout summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
}

.intake-foldout summary::-webkit-details-marker {
  display: none;
}

.intake-foldout[open] summary {
  margin-bottom: 2px;
}

.production-detail-clean .detail-shell {
  max-width: 1320px;
}

.detail-hero-clean {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(99, 116, 107, 0.14);
  box-shadow: 0 16px 34px rgba(63, 50, 35, 0.1);
}

.production-detail-clean .detail-hero,
.production-detail-clean .detail-hero-clean {
  background: rgba(255,255,255,0.82) !important;
  border: 1px solid rgba(99, 116, 107, 0.14) !important;
  box-shadow: 0 16px 34px rgba(63, 50, 35, 0.1) !important;
  color: #20322b !important;
}

.production-detail-clean .detail-title,
.production-detail-clean .detail-meta,
.production-detail-clean .detail-meta span,
.production-detail-clean .detail-meta strong,
.production-detail-clean #tracking-id,
.production-detail-clean #source-file {
  color: #20322b !important;
}

.production-detail-clean .detail-status.status-pill,
.production-detail-clean #handoff-state-pill.status-pill {
  background: #eff5f0 !important;
  border: 1px solid rgba(75, 111, 97, 0.18) !important;
}

.detail-clean-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.detail-clean-grid.secondary {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.detail-clean-grid.tertiary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-main-panel,
.detail-side-panel,
.production-detail-clean .panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(99, 116, 107, 0.14);
  box-shadow: 0 16px 34px rgba(63, 50, 35, 0.1);
  color: #20322b;
}

.production-detail-clean .detail-kv {
  background: #f8f4ec;
  border: 1px solid rgba(99, 116, 107, 0.12);
}

.production-detail-clean .text-preview {
  background: #fcfaf6;
  color: #22372f;
  border-color: rgba(75, 111, 97, 0.18);
}

.production-detail-clean .summary-strip {
  margin-bottom: 18px;
}

.handoff-banner {
  margin-bottom: 18px;
  border: 1px solid rgba(38, 131, 99, 0.18) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249,245,236,0.92)) !important;
}

.handoff-banner-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.handoff-kicker {
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #146c4f;
}

.handoff-banner-title {
  margin-bottom: 8px;
}

.handoff-banner-copy {
  max-width: 860px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #42574f !important;
}

.handoff-banner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.handoff-banner-card {
  padding: 14px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid rgba(99, 116, 107, 0.14);
}

.handoff-banner-card-wide {
  grid-column: span 2;
}

.handoff-banner-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #657972;
}

.handoff-banner-value {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #1f342c;
  word-break: break-word;
}

.handoff-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.handoff-upload-state {
  margin-top: 10px;
  color: #42574f !important;
  font-weight: 600;
}

.production-detail-clean .summary-tile,
.production-detail-clean .result-card,
.production-detail-clean .file-link-item,
.production-detail-clean .timeline-card {
  background: #fbf8f1;
  border: 1px solid rgba(99, 116, 107, 0.12);
  color: #20322b;
}

.production-detail-clean .summary-label,
.production-detail-clean .result-label {
  color: #6a7e76;
}

.production-detail-clean .field label {
  color: #28433a;
}

.production-detail-clean .field input,
.production-detail-clean .field textarea,
.production-detail-clean .field select {
  background: #fcfaf6;
  color: #183029;
  border-color: rgba(75, 111, 97, 0.2);
}

.production-detail-clean .field input:focus,
.production-detail-clean .field textarea:focus,
.production-detail-clean .field select:focus {
  border-color: rgba(38, 131, 99, 0.32);
}

.production-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.app-sidebar {
  background: #081d18;
  border-right: 1px solid var(--line-soft);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 194, 139, 0.16), rgba(16, 45, 38, 0.98));
  border: 1px solid rgba(121, 224, 186, 0.16);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #072019;
  font-weight: 800;
}

.brand-text h1, .page-title, .metric-value, .section-title, .detail-title {
  font-family: 'Sora', sans-serif;
}

.brand-text h1 { margin: 0; font-size: 1rem; }
.brand-text p { margin: 4px 0 0; color: var(--accent-2); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }

.sidebar-nav { display: grid; gap: 8px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #d6e9e1;
  border: 1px solid transparent;
}
.nav-link:hover, .nav-link.active {
  background: rgba(19, 54, 45, 0.92);
  border-color: rgba(121, 224, 186, 0.12);
}
.nav-icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #108b68);
}

.sidebar-user {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(16, 45, 38, 0.9);
  border: 1px solid var(--line-soft);
}

.app-main { padding: 24px; }
.sheet-page {
  min-height: 100vh;
  padding: 16px 18px 18px;
}
.sheet-page-topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.sheet-page-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.sheet-shell {
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #0b211b, #081713);
  box-shadow: var(--shadow);
  padding: 10px;
}
.sheet-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0 10px;
}
.sheet-toolbar-input {
  min-width: 220px;
  background: #0b1f1a;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.sheet-toolbar-input:focus {
  border-color: rgba(121, 224, 186, 0.34);
}
.main-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.title-stack { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 1.9rem; }
.top-note { font-size: 0.9rem; }
.toolbar-actions, .action-row, .profile-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }

.action-btn, .secondary-btn, .ghost-btn, .link-btn, .style-chip {
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}
.action-btn, .secondary-btn, .ghost-btn { padding: 11px 14px; font-weight: 700; }
.action-btn { background: var(--accent); color: #082019; }
.secondary-btn { background: var(--panel-2); color: var(--text); border-color: var(--line-soft); }
.ghost-btn, .style-chip, .link-btn { background: transparent; color: var(--accent-2); border-color: rgba(121, 224, 186, 0.14); }
.action-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .style-chip:hover, .link-btn:hover { transform: translateY(-1px); }
.action-btn:disabled, .secondary-btn:disabled, .ghost-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card, .panel, .upload-zone, .notice, .queue-row, .timeline-card, .file-item, .profile-card {
  background: linear-gradient(180deg, var(--panel) 0%, #0d2721 100%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.metric-card { border-radius: 18px; padding: 18px; }
.metric-value { margin-top: 10px; font-size: 2rem; }
.stat-meta { margin-top: 6px; font-size: 0.86rem; }

.panel, .upload-zone { border-radius: var(--radius-xl); padding: 20px; }
.section-title, .detail-title { margin: 0 0 10px; font-size: 1.2rem; }
.panel + .panel, .stack > .panel + .panel { margin-top: 16px; }

.intake-grid, .dashboard-grid, .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.9fr);
  gap: 18px;
}

.upload-zone {
  border-style: dashed;
  border-color: rgba(121, 224, 186, 0.22);
  text-align: center;
}
.upload-zone.dragover { border-color: rgba(121, 224, 186, 0.5); }
.upload-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(30, 194, 139, 0.12);
  color: var(--accent);
  font-size: 1.5rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.quick-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: #dbece6; font-size: 0.9rem; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  background: #0b1f1a;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(121, 224, 186, 0.36); }

.file-list, .timeline-list, .profile-list { display: grid; gap: 10px; }
.file-item, .timeline-card, .profile-card { border-radius: 14px; padding: 14px; }

.queue-list { display: grid; gap: 12px; }
.queue-row {
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.queue-check { width: 18px; height: 18px; accent-color: var(--accent); }

.sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sheet-wrap {
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(10, 27, 23, 0.98), rgba(8, 22, 18, 0.98)),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.sheet-body {
  min-width: 1180px;
}

.sheet-grid {
  min-width: 1180px;
  display: grid;
  grid-template-columns: 54px 88px minmax(280px, 2fr) minmax(220px, 1.3fr) 160px 170px 170px 160px 220px;
}

.sheet-grid-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #173f35, #12352d);
  border-bottom: 1px solid rgba(121, 224, 186, 0.12);
}

.sheet-grid-head > div {
  padding: 12px 14px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b9d4ca;
  font-weight: 800;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sheet-grid-filters {
  position: sticky;
  top: 43px;
  z-index: 2;
  background: linear-gradient(180deg, #122f28, #0f2a23);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sheet-grid-filters > div {
  padding: 8px 10px;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sheet-filter {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(121, 224, 186, 0.12);
  background: #0b1f1a;
  color: var(--text);
  outline: none;
}

.sheet-filter:focus {
  border-color: rgba(121, 224, 186, 0.34);
}

.sheet-grid-row {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005));
}

.sheet-grid-row:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(16, 45, 38, 0.82), rgba(11, 31, 26, 0.82));
}

.sheet-grid-row:hover {
  background: linear-gradient(180deg, rgba(30, 194, 139, 0.08), rgba(30, 194, 139, 0.04));
}

.sheet-cell {
  padding: 12px 14px;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  min-height: 62px;
}

.sheet-grid-head > div:nth-child(1),
.sheet-grid-filters > div:nth-child(1),
.sheet-grid-row > div:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
  background: inherit;
}

.sheet-grid-head > div:nth-child(2),
.sheet-grid-filters > div:nth-child(2),
.sheet-grid-row > div:nth-child(2) {
  position: sticky;
  left: 54px;
  z-index: 3;
  background: inherit;
}

.sheet-grid-head > div:nth-child(3),
.sheet-grid-filters > div:nth-child(3),
.sheet-grid-row > div:nth-child(3) {
  position: sticky;
  left: 142px;
  z-index: 2;
  background: inherit;
  box-shadow: 8px 0 14px rgba(0,0,0,0.18);
}

.sheet-cell-check {
  justify-content: center;
}

.sheet-title-cell {
  display: block;
  min-width: 0;
}

.sheet-code {
  color: #cde7dd;
  font-size: 0.82rem;
}

.spreadsheet-badge {
  min-width: 48px;
  padding: 7px 6px;
  font-size: 0.76rem;
  border-radius: 10px;
}

.spreadsheet-track {
  width: 112px;
}

.queue-editable {
  width: 100%;
  min-height: 20px;
  padding: 4px 6px;
  border-radius: 8px;
  outline: none;
  border: 1px solid transparent;
  cursor: text;
}

.queue-editable:hover {
  background: rgba(255,255,255,0.04);
}

.queue-editable:focus {
  background: #0b1f1a;
  border-color: rgba(121, 224, 186, 0.32);
}

.sheet-status {
  width: 100%;
  justify-content: center;
  font-weight: 800;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.sheet-status.status-uploaded,
.sheet-status.status-text_extracted,
.sheet-status.status-metadata_review {
  background: rgba(215, 161, 74, 0.12);
  border-color: rgba(215, 161, 74, 0.2);
  color: #f0ca88;
}

.sheet-status.status-ready_for_production,
.sheet-status.status-queued,
.sheet-status.status-doi_reserved,
.sheet-status.status-packaged {
  background: rgba(70, 132, 221, 0.16);
  border-color: rgba(70, 132, 221, 0.22);
  color: #9cc6ff;
}

.sheet-status.status-ojs_published,
.sheet-status.status-zenodo_deposited,
.sheet-status.status-certificates_generated,
.sheet-status.status-completed {
  background: rgba(30, 194, 139, 0.14);
  border-color: rgba(30, 194, 139, 0.2);
  color: #7ff0c6;
}

.sheet-status.status-failed {
  background: rgba(211, 111, 98, 0.14);
  border-color: rgba(211, 111, 98, 0.22);
  color: #f1b4aa;
}

.danger-btn {
  background: rgba(211, 111, 98, 0.14);
  color: #f7c1b9;
  border-color: rgba(211, 111, 98, 0.28);
}

.danger-btn:hover {
  background: rgba(211, 111, 98, 0.22);
  color: #fff4f1;
  border-color: rgba(211, 111, 98, 0.34);
}
.file-badge {
  min-width: 52px;
  padding: 10px 8px;
  border-radius: 12px;
  text-align: center;
  background: rgba(30, 194, 139, 0.1);
  color: var(--accent-2);
  font-weight: 800;
}
.queue-main { min-width: 0; display: grid; gap: 6px; }
.queue-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.queue-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.progress-track { width: 180px; max-width: 100%; height: 8px; border-radius: 999px; background: #0a1d18; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #0ea176); }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.status-uploaded, .status-text_extracted, .status-metadata_review { color: #c1d9cf; }
.status-ready_for_production, .status-queued, .status-doi_reserved, .status-packaged, .status-ojs_published, .status-zenodo_deposited, .status-certificates_generated, .status-completed { color: var(--accent-2); }
.status-failed { color: #f3b2a7; }

.notice { margin-bottom: 16px; border-radius: 14px; padding: 12px 14px; }
.notice.success { border-color: rgba(30, 194, 139, 0.32); }
.notice.error { border-color: rgba(211, 111, 98, 0.32); }
.notice.info { border-color: rgba(121, 224, 186, 0.22); }

.progress-panel { margin-bottom: 18px; }
.progress-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.progress-panel-percent {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  color: var(--accent-2);
}
.progress-hero-track {
  margin-top: 14px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #0a1d18;
  overflow: hidden;
}
.progress-hero-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #79e0ba);
  transition: width 0.25s ease;
}
.progress-job-list {
  display: grid;
  gap: 10px;
}
.progress-job-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
}
.progress-job-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.progress-job-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-job-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-hero { border-radius: 20px; padding: 18px 20px; margin-bottom: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-soft); }
.detail-meta, .detail-kv { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.detail-list { display: grid; gap: 10px; }
.detail-kv { justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line-soft); }
.text-preview {
  margin: 0;
  border-radius: 14px;
  padding: 16px;
  background: #0b1f1a;
  border: 1px solid var(--line);
  color: #d9ebe4;
  white-space: pre-wrap;
  line-height: 1.55;
}
.profile-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-swatch { width: 30px; height: 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); }
.profile-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.style-chip.active { background: rgba(30, 194, 139, 0.12); color: var(--text); }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: rgba(30, 194, 139, 0.12); color: var(--accent-2); }

@media (max-width: 1100px) {
  .production-app { grid-template-columns: 1fr; }
  .app-sidebar { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake-grid, .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
  .intake-clean-layout { grid-template-columns: 1fr; }
  .detail-clean-grid,
  .detail-clean-grid.secondary,
  .detail-clean-grid.tertiary { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-main { padding: 16px; }
  .metrics-grid, .quick-grid, .form-grid { grid-template-columns: 1fr; }
  .queue-row { grid-template-columns: 1fr; }
  .sheet-page {
    padding: 12px;
  }
  .sheet-page-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .sheet-wrap {
    border-radius: 14px;
  }
  .sheet-grid-head > div:nth-child(1),
  .sheet-grid-filters > div:nth-child(1),
  .sheet-grid-row > div:nth-child(1),
  .sheet-grid-head > div:nth-child(2),
  .sheet-grid-filters > div:nth-child(2),
  .sheet-grid-row > div:nth-child(2),
  .sheet-grid-head > div:nth-child(3),
  .sheet-grid-filters > div:nth-child(3),
  .sheet-grid-row > div:nth-child(3) {
    position: static;
    left: auto;
    box-shadow: none;
  }
  .intake-shell {
    padding: 18px 14px 28px;
  }
  .intake-clean-topbar,
  .intake-upload-head {
    flex-direction: column;
  }
}


.result-grid {
  display: grid;
  gap: 10px;
}

.result-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.result-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.result-value {
  margin-top: 8px;
  font-weight: 700;
  word-break: break-word;
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.result-state.ok { color: var(--accent-2); }
.result-state.empty { color: var(--muted); }

.file-link-list {
  display: grid;
  gap: 8px;
}

.file-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
}

.file-link-item code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}


.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary-tile {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
}

.summary-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.summary-value {
  margin-top: 8px;
  font-weight: 800;
  word-break: break-word;
}

.summary-value.ok { color: var(--accent-2); }
.summary-value.empty { color: var(--muted); }

.summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.settings-note {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.settings-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.settings-status.pending { color: var(--muted); }
.settings-status.valid { color: var(--accent-2); border-color: rgba(121, 224, 186, 0.22); }
.settings-status.invalid { color: #f1b4aa; border-color: rgba(211, 111, 98, 0.24); }

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
}

@media (max-width: 980px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .handoff-banner-card-wide {
    grid-column: span 2;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .handoff-banner-head {
    flex-direction: column;
  }

  .handoff-banner-grid {
    grid-template-columns: 1fr;
  }

  .handoff-banner-card-wide {
    grid-column: span 1;
  }
}

body.production-detail-dashboard {
  background:
    radial-gradient(circle at top right, rgba(24, 112, 122, 0.22), transparent 28%),
    linear-gradient(180deg, #061720 0%, #06131b 100%);
  color: #e8f1f7;
}

.production-detail-dashboard .helper-text,
.production-detail-dashboard .small,
.production-detail-dashboard .top-note {
  color: #8ca0b2;
}

.detail-dashboard-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 30px 28px;
}

.detail-dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 14px;
  border-bottom: 1px solid rgba(65, 108, 128, 0.22);
  margin-bottom: 26px;
}

.detail-dashboard-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-dashboard-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #143c57, #0f2c43);
  color: #45c8ff;
  border: 1px solid rgba(69, 200, 255, 0.16);
}

.detail-dashboard-kicker,
.panel-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #91a6b8;
}

.detail-dashboard-title {
  margin: 4px 0 0;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  color: #f2f7fb;
}

.production-detail-dashboard .ghost-btn,
.production-detail-dashboard .secondary-btn,
.production-detail-dashboard .link-btn,
.production-detail-dashboard .style-chip {
  background: transparent;
  color: #9ab0c0;
  border-color: rgba(109, 156, 180, 0.18);
}

.production-detail-dashboard .ghost-btn:hover,
.production-detail-dashboard .secondary-btn:hover,
.production-detail-dashboard .link-btn:hover {
  color: #d9e8f2;
  border-color: rgba(109, 156, 180, 0.32);
}

.production-detail-dashboard .action-btn {
  background: linear-gradient(180deg, #2ec5f4, #22afdf);
  color: #04131b;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(46, 197, 244, 0.18);
}

.production-detail-dashboard .panel,
.production-detail-dashboard .detail-hero,
.production-detail-dashboard .summary-tile,
.production-detail-dashboard .result-card,
.production-detail-dashboard .file-link-item,
.production-detail-dashboard .timeline-card,
.production-detail-dashboard .file-item {
  background: linear-gradient(180deg, rgba(8, 31, 43, 0.98), rgba(6, 25, 35, 0.98));
  border: 1px solid rgba(60, 97, 116, 0.24);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
  color: #e9f2f8;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.45fr);
  gap: 28px;
  padding: 40px;
  border-radius: 22px;
  margin-bottom: 24px;
}

.step-dashboard-shell {
  max-width: 1480px;
}

.step-dashboard-hero {
  align-items: flex-start;
}

.step-stage-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 170, 217, 0.24);
  background: rgba(15, 50, 69, 0.8);
  color: #7ed3ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-hero-actions {
  align-items: stretch;
}

.step-hero-actions > .action-btn,
.step-hero-actions > .secondary-btn,
.step-hero-actions > .ghost-btn,
.step-hero-actions > .field {
  width: 100%;
}

.step-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.78fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.step-page-grid-bottom {
  margin-top: 22px;
}

.step-side-stack {
  display: grid;
  gap: 22px;
}

.step-form-panel .panel-header-row {
  margin-bottom: 18px;
}

.step-metadata-editor {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.step-paper-panel .paper-summary-title {
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.step-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.step-stat-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(68, 108, 128, 0.22);
  background: linear-gradient(180deg, rgba(8, 28, 39, 0.98), rgba(7, 24, 34, 0.98));
}

.step-stat-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea4b5;
}

.step-stat-card strong {
  color: #eef6fb;
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.step-date-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.step-date-row {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(68, 108, 128, 0.18);
  background: rgba(7, 28, 40, 0.76);
  color: #d4e2ec;
}

.production-step-page .summary-strip {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.production-step-page .result-grid {
  gap: 14px;
}

.delivery-panel textarea {
  min-height: 150px;
}

.delivery-summary-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(68, 108, 128, 0.22);
  background: linear-gradient(180deg, rgba(8, 28, 39, 0.98), rgba(7, 24, 34, 0.98));
}

.delivery-summary-title,
.delivery-upload-title {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eef6fb;
}

.delivery-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.delivery-upload-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(68, 108, 128, 0.2);
  background: rgba(7, 28, 40, 0.72);
}

.detail-meta-top {
  margin-bottom: 18px;
}

.production-detail-dashboard .detail-meta span,
.production-detail-dashboard .detail-meta strong,
.production-detail-dashboard #tracking-id,
.production-detail-dashboard #source-file {
  color: #8fa5b6;
}

.detail-dashboard-headline {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  color: #f5f9fc;
}

.dashboard-hero-text {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.65;
  color: #96aaba !important;
}

.dashboard-hero-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.dashboard-upload-btn {
  width: 100%;
  justify-content: center;
  padding: 20px 24px;
  font-size: 1.25rem;
  border-radius: 12px;
}

.dashboard-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px 22px;
  font-size: 1.02rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06) !important;
  color: #e7f2f9 !important;
  border-color: rgba(108, 160, 187, 0.28) !important;
}

.dashboard-submit-btn:disabled {
  opacity: 0.45;
}

.detail-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.78fr);
  gap: 22px;
}

.detail-dashboard-side {
  display: grid;
  gap: 22px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.paper-summary-title {
  margin: 0 0 28px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.14;
  color: #f5f9fc;
}

.paper-author-block,
.paper-abstract-block {
  margin-bottom: 26px;
}

.author-spotlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(64, 105, 126, 0.24);
  background: linear-gradient(180deg, rgba(8, 28, 39, 0.98), rgba(6, 22, 31, 0.98));
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #10374a, #0b2937);
  color: #47d1ff;
  border: 1px solid rgba(71, 209, 255, 0.18);
}

.author-spotlight-copy {
  min-width: 0;
}

.paper-author-label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a8b8;
}

.paper-author-name {
  font-size: 1rem;
  font-weight: 800;
  color: #f4f8fb;
}

.paper-author-affiliation {
  margin-top: 8px;
  color: #8ea4b5;
  font-size: 0.98rem;
}

.paper-abstract-snippet {
  border-radius: 12px;
  border: 1px solid rgba(61, 104, 126, 0.2);
  background: #071b26;
  padding: 24px 26px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #d8e5ef;
  font-style: italic;
}

.metadata-editor {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(65, 108, 128, 0.22);
}

.metadata-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.metadata-editor {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 31, 43, 0.94), rgba(7, 24, 34, 0.94));
  border: 1px solid rgba(68, 108, 128, 0.22);
 }

.production-detail-dashboard .field label {
  color: #c8d8e4;
}

.production-detail-dashboard .field input,
.production-detail-dashboard .field textarea,
.production-detail-dashboard .field select {
  background: #071b26;
  border-color: rgba(72, 113, 133, 0.28);
  color: #f2f7fb;
}

.asset-block {
  margin-top: 20px;
}

.asset-label {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #92a7b8;
}

.asset-doi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(71, 209, 255, 0.24);
  background: linear-gradient(180deg, rgba(7, 30, 42, 0.98), rgba(5, 21, 29, 0.98));
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.asset-doi-value {
  color: #42c6ff;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
}

.asset-doi-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.asset-log {
  display: grid;
  gap: 12px;
  margin: 22px 0 18px;
}

.asset-log-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(65, 108, 128, 0.18);
  color: #91a5b6;
}

.asset-log-row strong {
  color: #35d6a0;
}

.email-action-row {
  margin-top: 14px;
}

.email-send-state {
  margin: 12px 0 4px;
}

.result-grid.compact .result-card {
  padding: 12px;
}

.dashboard-timeline-list {
  gap: 14px;
  margin-top: 20px;
}

.live-stream-panel {
  margin-top: 22px;
}

.live-stream-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.live-stream-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.live-stream-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 39, 54, 0.82);
  border: 1px solid rgba(68, 108, 128, 0.22);
}

.live-stream-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ea7ff 0%, #35d6a0 100%);
  transition: width 0.35s ease;
}

.live-stream-percent {
  min-width: 54px;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
  color: #f1f6fa;
}

.live-stream-message {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #d9e6ef;
}

.live-stream-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stream-entry {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(68, 108, 128, 0.2);
  background: rgba(7, 28, 40, 0.72);
}

.stream-entry.latest {
  border-color: rgba(62, 167, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(62, 167, 255, 0.08) inset;
}

.stream-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.stream-entry-body {
  margin-top: 8px;
  color: #c9d9e5;
  line-height: 1.6;
}

.detail-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.mini-info-card {
  min-height: 138px;
}

.mini-info-value {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
  color: #f1f6fa;
}

.mini-info-stack {
  display: grid;
  gap: 8px;
}

.journal-selection-copy {
  margin-top: 10px;
}

.production-detail-dashboard .summary-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 22px;
}

.production-detail-dashboard .workflow-step {
  background: linear-gradient(180deg, rgba(8, 31, 43, 0.98), rgba(6, 25, 35, 0.98));
  border: 1px solid rgba(60, 97, 116, 0.24);
}

.production-detail-dashboard .workflow-step-copy strong {
  color: #eef6fb;
}

.production-detail-dashboard .workflow-step-copy span {
  color: #8ea4b5;
}

.production-detail-dashboard .workflow-step-num {
  background: rgba(66, 95, 114, 0.4);
  color: #d7e9f7;
}

.production-detail-dashboard .workflow-step.complete {
  background: linear-gradient(180deg, rgba(7, 43, 43, 0.98), rgba(5, 32, 32, 0.98));
  border-color: rgba(53, 214, 160, 0.28);
}

.production-detail-dashboard .workflow-step.complete .workflow-step-num {
  background: rgba(53, 214, 160, 0.18);
  color: #44e0b1;
}

.production-detail-dashboard .workflow-step.active {
  background: linear-gradient(180deg, rgba(11, 43, 64, 0.98), rgba(7, 32, 48, 0.98));
  border-color: rgba(62, 167, 255, 0.36);
}

.production-detail-dashboard .workflow-step.active .workflow-step-num {
  background: rgba(62, 167, 255, 0.18);
  color: #70c2ff;
}

.summary-strip-top {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

.production-detail-dashboard .summary-tile {
  min-height: 132px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(64, 105, 126, 0.24);
}

.production-detail-dashboard .summary-label {
  color: #95a9b8;
}

.production-detail-dashboard .summary-value {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.45;
}

.production-detail-dashboard .summary-actions {
  margin-top: 14px;
}

.detail-dashboard-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
  padding-bottom: 18px;
}

.production-detail-dashboard .text-preview {
  background: #071b26;
  border-color: rgba(72, 113, 133, 0.28);
  color: #d7e5ef;
}

.production-detail-dashboard .status-pill {
  background: rgba(255, 184, 45, 0.1);
  color: #ffbc39;
  border: 1px solid rgba(255, 184, 45, 0.22);
}

.production-detail-dashboard .status-ready_for_production,
.production-detail-dashboard .status-doi_reserved,
.production-detail-dashboard .status-final_pdf_uploaded,
.production-detail-dashboard .status-uploaded,
.production-detail-dashboard .status-metadata_review,
.production-detail-dashboard .status-waiting_for_final_pdf {
  color: #ffbc39;
}

@media (max-width: 1100px) {
  .dashboard-hero,
  .detail-dashboard-grid,
  .detail-dashboard-cards,
  .detail-dashboard-bottom,
  .production-detail-dashboard .summary-strip,
  .step-page-grid {
    grid-template-columns: 1fr;
  }

  .workflow-stepper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .detail-dashboard-shell {
    padding: 0 14px 24px;
  }

  .detail-dashboard-topbar,
  .panel-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-hero {
    padding: 24px;
  }

  .step-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .author-spotlight,
  .metadata-editor-head,
  .asset-doi-row,
  .stream-entry-head,
  .live-stream-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
