:root {
  --bg: #f2f3f5;
  --panel: #ffffff;
  --text: #1d2129;
  --muted: #86909c;
  --line: #e5e6eb;
  --cyan: #165dff;
  --cyan-dark: #0e42d2;
  --purple: #722ed1;
  --orange: #ff7d00;
  --red: #f53f3f;
  --green: #00b42a;
  --sidebar: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 6px;
  --arco-primary: #165dff;
  --arco-primary-hover: #4080ff;
  --arco-primary-active: #0e42d2;
  --arco-fill: #f2f3f5;
  --arco-fill-hover: #e5e6eb;
  --arco-border: #e5e6eb;
  --arco-text-1: #1d2129;
  --arco-text-2: #4e5969;
  --arco-text-3: #86909c;
  --arco-success: #00b42a;
  --arco-warning: #ff7d00;
  --arco-danger: #f53f3f;
}

* {
  scrollbar-color: #c9cdd4 transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-thumb {
  background: #c9cdd4;
  border-radius: 3px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

html {
  background: var(--arco-fill);
}

body {
  background: var(--arco-fill);
  color: var(--arco-text-1);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  outline: none;
}

button,
a,
input,
select,
textarea {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.16) !important;
  border-color: var(--arco-primary) !important;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.sidebar {
  width: 220px;
  padding: 0 12px 16px;
  background: #fff;
  color: var(--arco-text-2);
  border-right: 1px solid var(--arco-border);
  box-shadow: none;
}

.brand {
  height: 60px;
  padding: 0 8px;
  gap: 10px;
  border-bottom: 1px solid transparent;
}

.brand-mark {
  width: 30px;
  height: 24px;
  color: var(--arco-primary);
  border-color: var(--arco-primary);
  border-radius: 6px;
}

.brand-eye,
.brand-antenna {
  background: var(--arco-primary);
}

.brand-copy strong {
  color: var(--arco-text-1);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 2px;
  color: var(--arco-text-3);
  font-size: 8px;
  letter-spacing: 1.3px;
}

.main-nav {
  gap: 2px;
  padding-top: 8px;
}

.nav-label {
  margin: 18px 12px 6px;
  color: var(--arco-text-3);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-item {
  position: relative;
  height: 40px;
  padding: 0 12px;
  gap: 10px;
  color: var(--arco-text-2);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
}

.nav-item:hover {
  color: var(--arco-text-1);
  background: var(--arco-fill);
}

.nav-item.active {
  color: var(--arco-primary);
  background: #e8f3ff;
  font-weight: 500;
}

.nav-item.active::before {
  display: none;
}

.nav-icon {
  width: 18px;
  color: inherit;
  font-size: 16px;
}

.nav-badge {
  min-width: 20px;
  margin-left: auto;
  padding: 1px 6px;
  color: var(--arco-text-2);
  background: #e5e6eb;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}

.nav-item.active .nav-badge {
  color: var(--arco-primary);
  background: #bedaff;
}

.nav-dot {
  background: var(--arco-primary);
}

.nav-unavailable {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  color: #98a2b3;
  background: #f9fafb;
  font-size: 8px;
  line-height: 1.4;
  white-space: nowrap;
}
.nav-item.active .nav-unavailable { border-color: #b9e8f4; color: #087ea4; background: #eaf8fc; }
.learning-heading-actions { display: flex; align-items: center; gap: 12px; }
.learning-heading-actions .soon-badge { white-space: nowrap; }

.sidebar-status {
  margin-top: auto;
}

.system-status {
  padding: 10px 12px;
  color: var(--arco-text-2);
  background: var(--arco-fill);
  border: 0;
  border-radius: 4px;
}

.status-pulse {
  width: 7px;
  height: 7px;
  background: var(--arco-success);
  box-shadow: 0 0 0 3px rgba(0, 180, 42, 0.12);
}

.system-status strong,
.sidebar-user strong {
  color: var(--arco-text-1);
  font-weight: 500;
}

.system-status span,
.sidebar-user span {
  color: var(--arco-text-3);
}

.sidebar-user {
  margin-top: 12px;
  padding: 12px 4px 0;
  border-top-color: var(--arco-border);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
}

.avatar-blue {
  background: #165dff;
}

.avatar-gradient {
  background: #722ed1;
}

.main-column {
  margin-left: 220px;
}

.topbar {
  height: 60px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--arco-border);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.breadcrumb {
  gap: 8px;
  color: var(--arco-text-3);
  font-size: 13px;
}

.breadcrumb strong {
  color: var(--arco-text-1);
  font-weight: 500;
}

.breadcrumb i {
  color: #c9cdd4;
}

.icon-button {
  width: 32px;
  height: 32px;
  color: var(--arco-text-2);
  border-radius: 4px;
}

.icon-button:hover {
  color: var(--arco-text-1);
  background: var(--arco-fill);
}

.global-search,
.search-field {
  height: 32px;
  color: var(--arco-text-3);
  background: var(--arco-fill);
  border: 1px solid transparent;
  border-radius: 4px;
}

.global-search:hover,
.search-field:hover {
  background: #fff;
  border-color: #c9cdd4;
}

.global-search:focus-within,
.search-field:focus-within {
  background: #fff;
  border-color: var(--arco-primary);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.global-search input,
.search-field input {
  color: var(--arco-text-1);
}

.global-search kbd {
  color: var(--arco-text-3);
  background: #fff;
  border: 1px solid var(--arco-border);
  border-radius: 3px;
  box-shadow: none;
}

.notification-button span {
  background: var(--arco-danger);
  border-color: #fff;
}

.role-switch {
  height: 32px;
  padding: 0 10px;
  gap: 7px;
  color: var(--arco-text-2);
  background: #fff;
  border: 1px solid var(--arco-border);
  border-radius: 4px;
  font-size: 12px;
}

.role-switch:hover {
  color: var(--arco-primary);
  border-color: #94bfff;
  background: #f7f8fa;
}

.role-dot {
  background: var(--arco-primary);
}

main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

.view {
  animation: arcoViewIn 0.18s ease-out;
}

@keyframes arcoViewIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  margin-bottom: 20px;
}

.page-heading h1 {
  margin: 4px 0 6px;
  color: var(--arco-text-1);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
}

.page-heading > div > p:last-child,
.section-heading p,
.panel-heading p {
  color: var(--arco-text-3);
}

.eyebrow {
  color: var(--arco-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
}

.live-dot {
  background: var(--arco-success);
  box-shadow: none;
}

.last-updated {
  color: var(--arco-text-3);
}

.last-updated strong {
  color: var(--arco-text-2);
}

.button,
.primary-mini,
.table-action,
.text-button,
.back-button,
.template-actions button,
.component-group button,
.canvas-toolbar button,
.keyframe-actions button,
.tag-parent,
.tag-option,
.filter-button,
.add-rule,
.remove-rule {
  border-radius: 4px;
}

.button {
  min-height: 32px;
  padding: 0 15px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.button.primary,
.primary-mini,
.submit-review {
  color: #fff;
  background: var(--arco-primary);
  border-color: var(--arco-primary);
  box-shadow: none;
}

.button.primary:hover,
.primary-mini:hover,
.submit-review:hover:not(:disabled) {
  background: var(--arco-primary-hover);
  border-color: var(--arco-primary-hover);
  box-shadow: none;
}

.button.primary:active,
.primary-mini:active,
.submit-review:active:not(:disabled) {
  background: var(--arco-primary-active);
  border-color: var(--arco-primary-active);
}

.button.secondary {
  color: var(--arco-text-2);
  background: #fff;
  border-color: var(--arco-border);
}

.button.secondary:hover {
  color: var(--arco-primary);
  background: #fff;
  border-color: #94bfff;
}

.submit-review:disabled,
.button:disabled {
  color: #c9cdd4;
  background: var(--arco-fill);
  border-color: var(--arco-fill);
}

.back-button,
.text-button,
.table-action {
  color: var(--arco-primary);
  font-weight: 400;
}

.back-button:hover,
.text-button:hover,
.table-action:hover {
  color: var(--arco-primary-hover);
  background: #e8f3ff;
}

.metric-grid {
  gap: 16px;
}

.metric-card,
.panel,
.queue-card,
.pool-card,
.template-card,
.template-stats,
.queue-detail-hero,
.review-content-column,
.review-operation-column,
.component-library,
.property-panel,
.template-canvas-area {
  background: #fff;
  border: 1px solid var(--arco-border);
  border-radius: 6px;
  box-shadow: none;
}

.metric-card {
  min-height: 156px;
  padding: 20px;
  overflow: hidden;
}

.metric-card::before,
.metric-primary::after {
  display: none !important;
}

.metric-card:hover,
.queue-card:hover,
.pool-card:hover,
.template-card:hover {
  border-color: #94bfff;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.08);
  transform: translateY(-1px);
}

.metric-card > p {
  color: var(--arco-text-2);
}

.metric-card > strong {
  color: var(--arco-text-1);
  font-size: 28px;
  font-weight: 600;
}

.metric-icon,
.queue-symbol,
.pool-icon {
  color: var(--arco-primary) !important;
  background: #e8f3ff !important;
  border-radius: 4px !important;
}

.metric-icon.purple {
  color: #722ed1 !important;
  background: #f5e8ff !important;
}

.metric-icon.orange {
  color: var(--arco-warning) !important;
  background: #fff3e8 !important;
}

.metric-note {
  color: var(--arco-text-3);
}

.trend {
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
}

.trend.down {
  color: var(--arco-success);
  background: #e8ffea;
}

.trend.up {
  color: var(--arco-warning);
  background: #fff3e8;
}

.progress,
.queue-load,
.target-line {
  background: var(--arco-fill);
  border-radius: 2px;
}

.progress i,
.queue-load i,
.target-line i,
.mini-bars i {
  background: var(--arco-primary);
}

.progress.orange i {
  background: var(--arco-warning);
}

.section-heading {
  margin: 28px 0 14px;
}

.section-heading h2,
.panel-heading h3 {
  color: var(--arco-text-1);
  font-weight: 600;
}

.segmented {
  padding: 2px;
  background: var(--arco-fill);
  border: 0;
  border-radius: 4px;
}

.segmented button {
  min-height: 28px;
  padding: 0 12px;
  color: var(--arco-text-2);
  border: 0;
  border-radius: 3px;
  background: transparent;
}

.segmented button:hover {
  color: var(--arco-primary);
}

.segmented button.active {
  color: var(--arco-primary);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 500;
}

.queue-grid {
  gap: 16px;
}

.queue-card {
  padding: 18px;
  text-align: left;
}

.queue-card.danger,
.queue-card.warning {
  border-left-width: 1px;
}

.queue-card-header h3 {
  color: var(--arco-text-1);
  font-weight: 500;
}

.queue-card-header small,
.queue-main-stat small {
  color: var(--arco-text-3);
}

.queue-main-stat strong {
  color: var(--arco-text-1);
  font-weight: 600;
}

.queue-mini-stats {
  border-top-color: var(--arco-border);
}

.queue-mini-stats span {
  color: var(--arco-text-3);
}

.queue-mini-stats b {
  color: var(--arco-text-2);
  font-weight: 500;
}

.health-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.normal .health-dot,
.health-dot.normal {
  background: var(--arco-success);
}

.warning .health-dot,
.health-dot.warning {
  background: var(--arco-warning);
}

.danger .health-dot,
.health-dot.danger {
  background: var(--arco-danger);
}

.panel {
  padding: 20px;
}

.panel-heading {
  margin-bottom: 18px;
}

.legend {
  color: var(--arco-text-3);
}

.legend-cyan {
  background: var(--arco-primary);
}

.legend-purple {
  background: #722ed1;
}

.cyan-line {
  stroke: var(--arco-primary);
}

.purple-line {
  stroke: #722ed1;
}

.grid-lines line {
  stroke: var(--arco-border);
}

.chart-x,
.chart-y {
  color: var(--arco-text-3);
}

.alert-row {
  border-color: var(--arco-border);
  border-radius: 4px;
}

.alert-row:hover {
  background: var(--arco-fill);
}

.alert-icon {
  border-radius: 50%;
}

.alert-icon.high {
  color: var(--arco-danger);
  background: #ffece8;
}

.alert-icon.medium {
  color: var(--arco-warning);
  background: #fff3e8;
}

.alert-icon.info {
  color: var(--arco-primary);
  background: #e8f3ff;
}

.toolbar,
.compact-panel {
  padding: 12px 16px;
}

.toolbar-filters button,
.filter-button {
  color: var(--arco-text-2);
  background: #fff;
  border-color: var(--arco-border);
}

.toolbar-filters button:hover,
.toolbar-filters button.active,
.filter-button:hover,
.filter-button.active {
  color: var(--arco-primary);
  background: #e8f3ff;
  border-color: #94bfff;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.data-table {
  border-collapse: collapse;
}

.data-table thead {
  background: var(--arco-fill);
}

.data-table th {
  height: 44px;
  padding: 0 16px;
  color: var(--arco-text-2);
  border-bottom: 1px solid var(--arco-border);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.data-table td {
  height: 56px;
  padding: 10px 16px;
  color: var(--arco-text-2);
  border-bottom: 1px solid var(--arco-border);
}

.data-table tbody tr:hover {
  background: #f7f8fa;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-name b {
  color: var(--arco-text-1);
  font-weight: 500;
}

.table-name span,
.data-table small {
  color: var(--arco-text-3);
}

.status-badge,
.content-type,
.risk-badge,
.soon-badge,
.draft-indicator {
  border-radius: 3px;
  font-weight: 400;
}

.status-badge.normal {
  color: var(--arco-success);
  background: #e8ffea;
  border-color: transparent;
}

.status-badge.warning {
  color: var(--arco-warning);
  background: #fff3e8;
  border-color: transparent;
}

.status-badge.danger,
.risk-badge {
  color: var(--arco-danger);
  background: #ffece8;
  border-color: transparent;
}

.queue-detail-hero {
  padding: 22px 24px;
}

.queue-detail-hero h1 {
  color: var(--arco-text-1);
  font-size: 22px;
  font-weight: 600;
}

.detail-live {
  background: var(--arco-fill);
  border-radius: 4px;
}

.detail-live div {
  border-color: var(--arco-border);
}

.detail-live span {
  color: var(--arco-text-3);
}

.detail-live strong {
  color: var(--arco-text-1);
  font-weight: 600;
}

.reviewer {
  border-color: var(--arco-border);
  border-radius: 4px;
}

.reviewer:hover {
  background: var(--arco-fill);
}

.pool-card {
  padding: 16px;
}

.pool-card span,
.pool-card small {
  color: var(--arco-text-3);
}

.pool-card strong {
  color: var(--arco-text-1);
  font-weight: 600;
}

.scheduling-layout {
  gap: 16px;
}

.strategy-list-panel,
.strategy-editor {
  border-color: var(--arco-border);
  border-radius: 6px;
  box-shadow: none;
}

.strategy-row {
  border-color: var(--arco-border);
  border-radius: 4px;
}

.strategy-row:hover {
  background: var(--arco-fill);
  border-color: #94bfff;
}

.strategy-row.active {
  background: #e8f3ff;
  border-color: #94bfff;
  box-shadow: none;
}

.strategy-row h3,
.strategy-editor h2 {
  color: var(--arco-text-1);
  font-weight: 600;
}

.strategy-meta,
.strategy-route,
.editor-empty p {
  color: var(--arco-text-3);
}

.switch,
.switch-label i {
  background: #c9cdd4;
}

.switch.active,
.switch-label input:checked + i {
  background: var(--arco-primary);
}

.editor-fields,
.rule-builder {
  background: #fff;
  border-color: var(--arco-border);
  border-radius: 4px;
}

.rule-line {
  background: var(--arco-fill);
  border-color: transparent;
  border-radius: 4px;
}

.rule-group {
  color: var(--arco-primary);
  background: #e8f3ff;
  border-color: #bedaff;
}

.add-rule {
  color: var(--arco-primary);
  background: #fff;
  border-color: #94bfff;
}

.add-rule:hover {
  background: #e8f3ff;
}

.remove-rule:hover {
  color: var(--arco-danger);
  background: #ffece8;
}

input,
select,
textarea,
.editor-field input,
.editor-field select,
.property-form input,
.property-form select,
.modal input,
.modal select {
  color: var(--arco-text-1);
  background: #fff;
  border: 1px solid var(--arco-border);
  border-radius: 4px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c9cdd4;
}

input::placeholder,
textarea::placeholder {
  color: #c9cdd4;
}

.template-stats {
  overflow: hidden;
}

.template-stats div {
  border-color: var(--arco-border);
}

.template-stats span {
  color: var(--arco-text-3);
}

.template-stats strong {
  color: var(--arco-text-1);
  font-weight: 600;
}

.template-grid {
  gap: 16px;
}

.template-card {
  overflow: hidden;
}

.template-preview {
  background: var(--arco-fill);
  border-bottom: 1px solid var(--arco-border);
}

.template-card-body h3 {
  color: var(--arco-text-1);
  font-weight: 500;
}

.template-card-body p,
.template-meta {
  color: var(--arco-text-3);
}

.content-type {
  color: var(--arco-primary);
  background: #e8f3ff;
}

.template-actions {
  border-top-color: var(--arco-border);
}

.template-actions button:not(.primary-mini) {
  color: var(--arco-text-2);
  background: #fff;
  border-color: var(--arco-border);
}

.template-actions button:not(.primary-mini):hover {
  color: var(--arco-primary);
  border-color: #94bfff;
}

.editor-topbar {
  margin: -24px -24px 16px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--arco-border);
}

.draft-indicator {
  color: var(--arco-success);
  background: #e8ffea;
}

.template-editor-layout {
  gap: 12px;
}

.component-library,
.property-panel {
  padding: 16px;
}

.component-library h2,
.property-panel h2 {
  color: var(--arco-text-1);
  font-weight: 600;
}

.component-library > p,
.property-panel > p {
  color: var(--arco-text-3);
}

.component-group h3 {
  color: var(--arco-text-3);
  font-size: 12px;
  font-weight: 500;
}

.component-group button {
  color: var(--arco-text-2);
  background: #fff;
  border-color: var(--arco-border);
}

.component-group button:hover {
  color: var(--arco-primary);
  background: #e8f3ff;
  border-color: #94bfff;
}

.canvas-toolbar {
  background: #fff;
  border-bottom-color: var(--arco-border);
}

.canvas-toolbar button {
  color: var(--arco-text-2);
  background: var(--arco-fill);
  border-color: transparent;
}

.canvas-toolbar button:hover {
  color: var(--arco-primary);
  background: #e8f3ff;
}

.template-canvas-area {
  background: #eef0f3;
}

.template-canvas {
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.canvas-header {
  color: var(--arco-text-1);
  border-bottom-color: var(--arco-border);
}

.canvas-block {
  border-color: var(--arco-border);
  border-radius: 4px;
}

.canvas-block.selected {
  border-color: var(--arco-primary);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.12);
}

.property-form label {
  color: var(--arco-text-2);
}

.binding-block {
  color: var(--arco-text-2);
  background: var(--arco-fill);
  border: 0;
  border-radius: 4px;
}

.binding-block span {
  color: var(--arco-primary);
  background: #e8f3ff;
  border-radius: 3px;
}

.review-header {
  margin: -24px -24px 16px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--arco-border);
}

.task-id,
.review-progress {
  color: var(--arco-text-3);
}

.review-progress strong {
  color: var(--arco-text-1);
}

.review-layout {
  gap: 16px;
}

.review-content-column,
.review-operation-column {
  overflow: hidden;
}

.video-stage {
  border-radius: 6px 6px 0 0;
}

.video-overlay-top span,
.video-controls {
  border-radius: 3px;
}

.content-info-panel {
  border-top-color: var(--arco-border);
}

.content-title-row h1,
.review-section-title h3,
.operation-heading h2 {
  color: var(--arco-text-1);
  font-weight: 600;
}

.content-title-row p,
.summary-block p,
.author-meta span,
.review-section-title p,
.operation-heading p {
  color: var(--arco-text-3);
}

.summary-block,
.author-block,
.review-section {
  background: #fff;
  border-color: var(--arco-border);
  border-radius: 4px;
}

.summary-block {
  background: #f7f8fa;
}

.author-stats div {
  border-color: var(--arco-border);
}

.keyframe {
  border-color: var(--arco-border);
  border-radius: 4px;
  overflow: hidden;
}

.keyframe:hover {
  border-color: #94bfff;
}

.keyframe.flagged {
  border-color: #ff9a9a;
  box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.08);
}

.keyframe-actions {
  background: #fff;
  border-top-color: var(--arco-border);
}

.keyframe-actions button {
  color: var(--arco-text-2);
  background: #fff;
}

.keyframe-actions button:hover {
  background: var(--arco-fill);
}

.keyframe-actions button.active-risk,
.keyframe-actions button[data-frame-status="risk"]:hover {
  color: var(--arco-danger);
  background: #ffece8;
}

.verdict-card {
  border-color: var(--arco-border);
  border-radius: 4px;
}

.verdict-card:hover {
  background: #f7f8fa;
  border-color: #94bfff;
}

.verdict-card.pass.active {
  color: var(--arco-success);
  background: #e8ffea;
  border-color: #7be188;
  box-shadow: 0 0 0 2px rgba(0, 180, 42, 0.08);
}

.verdict-card.reject.active {
  color: var(--arco-danger);
  background: #ffece8;
  border-color: #ff9a9a;
  box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.08);
}

.tag-section {
  border-top-color: var(--arco-border);
}

.tag-tree {
  border-color: var(--arco-border);
  border-radius: 4px;
}

.tag-group + .tag-group {
  border-top-color: var(--arco-border);
}

.tag-parent {
  color: var(--arco-text-2);
  background: #fff;
}

.tag-parent:hover {
  background: var(--arco-fill);
}

.tag-option {
  color: var(--arco-text-2);
  background: transparent;
}

.tag-option:hover {
  color: var(--arco-primary);
  background: #f7f8fa;
}

.tag-option.active {
  color: var(--arco-primary);
  background: #e8f3ff;
  font-weight: 500;
}

.note-label {
  color: var(--arco-text-2);
}

.note-label textarea {
  min-height: 72px;
  resize: vertical;
}

.operation-footer {
  background: #fff;
  border-top-color: var(--arco-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.coming-soon {
  min-height: calc(100vh - 108px);
}

.ai-core {
  background: var(--arco-primary);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.2);
}

.orbit {
  border-color: rgba(22, 93, 255, 0.2);
}

.coming-features div {
  background: #fff;
  border-color: var(--arco-border);
  border-radius: 6px;
}

.coming-features div:hover {
  border-color: #94bfff;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.08);
}

.coming-features div > span,
.spark {
  color: var(--arco-primary);
}

.soon-badge {
  color: var(--arco-primary);
  background: #e8f3ff;
  border-color: #bedaff;
}

.modal-backdrop {
  padding: 24px;
  background: rgba(29, 33, 41, 0.55);
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.modal-backdrop.open .modal {
  animation: arcoModalIn 0.18s ease-out;
}

@keyframes arcoModalIn {
  from { opacity: 0; transform: scale(0.98) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal {
  width: 480px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--arco-border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.modal-header {
  flex: 0 0 auto;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--arco-border);
}

.modal-header h2 {
  margin: 3px 0 0;
  color: var(--arco-text-1);
  font-size: 18px;
  font-weight: 600;
}

.modal form {
  padding: 8px 20px 20px;
}

.modal form > label {
  color: var(--arco-text-2);
}

.modal-actions {
  margin: 20px -20px -20px;
  padding: 12px 20px;
  background: #f7f8fa;
  border-top: 1px solid var(--arco-border);
}

.toast-region {
  right: 24px;
  top: 76px;
  bottom: auto;
  align-items: flex-end;
}

.toast {
  position: relative;
  min-width: 280px;
  padding: 12px 16px 12px 42px;
  color: var(--arco-text-1);
  background: #fff;
  border: 1px solid var(--arco-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  animation: arcoMessageIn 0.2s ease-out;
}

.toast::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 11px;
  color: var(--arco-success);
  font-weight: 600;
}

.toast.warning::before {
  content: "!";
  color: var(--arco-warning);
}

.toast.success,
.toast.warning {
  border-left: 1px solid var(--arco-border);
}

@keyframes arcoMessageIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .sidebar {
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
  }

  .main-column {
    margin-left: 0;
  }

  .topbar,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .review-header,
  .editor-topbar {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 16px;
  }

  .page-heading h1 {
    font-size: 21px;
  }

  .metric-card {
    min-height: 140px;
  }

  .toast-region {
    left: 14px;
    right: 14px;
    top: 70px;
  }

  .toast {
    width: 100%;
    min-width: 0;
  }
}

/* Governance-domain review workbench */
.workbench-domain-bar {
  margin-top: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.domain-bar-copy {
  flex: 0 0 auto;
}

.domain-bar-copy span,
.domain-bar-copy strong {
  display: block;
}

.domain-bar-copy span {
  color: #9aa4b4;
  font-size: 11px;
}

.domain-bar-copy strong {
  margin-top: 3px;
  color: #344054;
  font-size: 14px;
}

.workbench-domain-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workbench-domain-tabs button {
  min-width: 174px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  color: #69768a;
  background: #f8f9fc;
  border: 1px solid #e3e7ed;
  border-radius: 7px;
  text-align: left;
}

.workbench-domain-tabs button:hover {
  color: var(--gov-primary);
  background: #fff8fb;
  border-color: #f2c8d6;
}

.workbench-domain-tabs button.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f2bfd0;
  box-shadow: inset 3px 0 var(--gov-primary);
}

.workbench-domain-tabs button > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #8793a6;
  background: #edf0f4;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.workbench-domain-tabs button.active > span {
  color: #fff;
  background: var(--gov-primary);
}

.workbench-domain-tabs strong,
.workbench-domain-tabs small {
  display: block;
}

.workbench-domain-tabs strong { font-size: 13px; }
.workbench-domain-tabs small { margin-top: 2px; color: #929cab; font-size: 11px; }

#dashboardMetrics {
  margin-top: 14px;
}

#dashboardMetrics .metric-card {
  min-height: 133px;
}

.workbench-toolbar {
  margin: 22px 0 11px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 15px;
}

.workbench-toolbar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.workbench-toolbar h2 {
  margin: 0;
  color: #263348;
  font-size: 19px;
}

.workbench-toolbar p {
  margin: 4px 0 0;
  color: var(--gov-muted);
  font-size: 13px;
}

.workbench-layout {
  min-height: 590px;
  padding: 0;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  overflow: hidden;
}

.workbench-scene-sidebar {
  padding: 16px 12px;
  background: #fafbfc;
  border-right: 1px solid var(--gov-line);
}

.scene-sidebar-title {
  padding: 0 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #344054;
  font-size: 13px;
}

.scene-sidebar-title span {
  color: #929cab;
  font-size: 11px;
}

.workbench-list-search {
  height: 38px;
  margin: 0 5px 10px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #98a2b3;
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: 7px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.workbench-list-search:focus-within {
  border-color: #efadc3;
  box-shadow: 0 0 0 3px rgba(242, 93, 141, .08);
}

.workbench-list-search > span { font-size: 15px; }

.workbench-list-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #344054;
  background: transparent;
  font-size: 11px;
}

.workbench-list-search input::placeholder { color: #a4adba; }

.workbench-list-search button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8e99aa;
  background: #eef1f5;
  line-height: 20px;
}

.workbench-list-search button:hover { color: #fff; background: var(--gov-primary); }
.workbench-list-search button[hidden] { display: none; }

.workbench-search-empty {
  min-height: 160px;
  padding: 28px 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #98a2b3;
  text-align: center;
}

.workbench-search-empty > span {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  background: #eef1f5;
  border-radius: 9px;
  font-size: 18px;
}

.workbench-search-empty strong { color: #69768a; font-size: 12px; }
.workbench-search-empty small { margin-top: 5px; font-size: 10px; line-height: 1.5; }

/* Review group configuration */
.review-group-domain-tabs { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.review-group-domain-tabs button { min-height: 64px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--gov-line); border-radius: 8px; color: #69768a; background: #fff; text-align: left; transition: .18s ease; }
.review-group-domain-tabs button:hover { border-color: #efbfd0; transform: translateY(-1px); }
.review-group-domain-tabs button.active { border-color: #efadc3; background: #fff7fa; box-shadow: inset 3px 0 var(--gov-primary); }
.review-group-domain-tabs button > span { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #8792a3; background: #f0f2f5; font-size: 12px; font-weight: 700; }
.review-group-domain-tabs button.active > span { color: #fff; background: var(--gov-primary); }
.review-group-domain-tabs strong,.review-group-domain-tabs small { display: block; }
.review-group-domain-tabs strong { color: #344054; font-size: 12px; }
.review-group-domain-tabs small { margin-top: 3px; color: #98a2b3; font-size: 9px; }
.review-group-overview { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.review-group-overview article { min-height: 86px; padding: 14px 16px; background: #fff; border: 1px solid var(--gov-line); border-radius: 8px; }
.review-group-overview span,.review-group-overview small { display: block; color: #929cab; font-size: 10px; }
.review-group-overview strong { display: block; margin: 5px 0 3px; color: #263348; font-size: 23px; }
.review-group-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 14px; align-items: start; }
.review-group-sidebar,.review-group-detail { padding: 0; overflow: hidden; }
.review-group-list-heading { padding: 16px 16px 12px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--gov-line); }
.review-group-list-heading h2,.review-group-list-heading p { margin: 0; }
.review-group-list-heading h2 { color: #344054; font-size: 15px; }
.review-group-list-heading p { margin-top: 4px; color: #98a2b3; font-size: 10px; }
.review-group-list-heading > span { color: #929cab; font-size: 10px; }
.review-group-search { height: 36px; margin: 12px; padding: 0 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #e2e6ec; border-radius: 7px; color: #98a2b3; background: #fafbfc; }
.review-group-search:focus-within { border-color: #efadc3; background: #fff; box-shadow: 0 0 0 3px rgba(242,93,141,.08); }
.review-group-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #344054; background: transparent; font-size: 11px; }
#reviewGroupList { padding: 0 8px 12px; }
.review-group-domain-tree + .review-group-domain-tree { margin-top: 7px; }
.review-group-domain-root { width: 100%; min-height: 54px; padding: 7px 8px; display: grid; grid-template-columns: 18px 30px minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid #e3e7ed; border-radius: 8px; color: #69768a; background: #fafbfc; text-align: left; }
.review-group-domain-root:hover { border-color: #efbfd0; background: #fff7fa; }
.review-group-domain-root > span { color: #98a2b3; font-size: 17px; transition: transform .15s ease; }
.review-group-domain-root.expanded > span { transform: rotate(90deg); }
.review-group-domain-root > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #5b8ff9; font-size: 10px; font-style: normal; font-weight: 700; }
.review-group-domain-tree:nth-child(2) .review-group-domain-root > i { background: #6f7de8; }
.review-group-domain-tree:nth-child(3) .review-group-domain-root > i { background: #20b7a0; }
.review-group-domain-root strong,.review-group-domain-root small { display: block; }
.review-group-domain-root strong { color: #344054; font-size: 11px; }
.review-group-domain-root small { margin-top: 3px; color: #98a2b3; font-size: 8px; }
.review-group-domain-root > em { min-width: 22px; padding: 3px 6px; border-radius: 9px; color: #69768a; background: #eef1f5; font-size: 8px; font-style: normal; text-align: center; }
.review-group-domain-children { position: relative; margin: 3px 0 0 15px; padding-left: 8px; border-left: 1px solid #dfe3e9; }
.review-group-tree-node { position: relative; }
.review-group-tree-row { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; padding-left: calc(var(--tree-depth) * 18px); }
.review-group-tree-row::before { content: ""; position: absolute; left: calc(var(--tree-depth) * 18px + 8px); top: 0; bottom: 0; width: 1px; background: #e4e8ee; opacity: calc(var(--tree-depth)); }
.review-group-tree-toggle { position: relative; z-index: 1; width: 18px; height: 28px; padding: 0; border: 0; color: #8792a3; background: transparent; font-size: 17px; line-height: 1; transition: transform .15s ease; }
.review-group-tree-toggle.expanded { transform: rotate(90deg); }
.review-group-tree-spacer { width: 18px; }
.review-group-tree-children { position: relative; }
.review-group-tree-children::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 14px; width: 1px; background: #e4e8ee; }
.review-group-list-item { width: 100%; min-height: 70px; padding: 9px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; color: #69768a; background: transparent; text-align: left; }
.review-group-list-item:hover { background: #fafbfc; border-color: #e7eaf0; }
.review-group-list-item.active { background: #fff7fa; border-color: #f1bed0; box-shadow: inset 3px 0 var(--gov-primary); }
.review-group-list-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #8792a3; background: #eef1f5; border-radius: 8px; font-size: 12px; font-weight: 700; }
.review-group-list-item.active .review-group-list-icon { color: var(--gov-primary); background: #fdeaf0; }
.review-group-list-item strong,.review-group-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-group-list-item strong { color: #344054; font-size: 11px; }
.review-group-list-item small { margin-top: 3px; color: #98a2b3; font-size: 9px; }
.review-group-list-item div > i { height: 4px; margin-top: 7px; display: block; overflow: hidden; background: #edf0f4; border-radius: 3px; }
.review-group-list-item div > i b { height: 100%; display: block; background: #62bd98; border-radius: inherit; }
.review-group-list-item > em { padding: 3px 5px; border-radius: 4px; color: #40a77c; background: #eaf8f2; font-size: 9px; font-style: normal; }
.review-group-list-item > em.medium { color: #d7812f; background: #fff3e5; }
.review-group-list-item > em.high { color: #d84e58; background: #ffedef; }
.review-group-empty { min-height: 160px; padding: 25px; display: flex; align-items: center; flex-direction: column; justify-content: center; color: #98a2b3; text-align: center; }
.review-group-empty > span { margin-bottom: 8px; font-size: 20px; }
.review-group-empty strong { color: #69768a; font-size: 12px; }
.review-group-empty small { margin-top: 4px; font-size: 9px; }
.review-group-detail { position: relative; padding: 20px; }
.review-group-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.review-group-breadcrumb { display: flex; align-items: center; gap: 6px; color: #98a2b3; font-size: 9px; }
.review-group-breadcrumb i { font-style: normal; }
.review-group-breadcrumb strong { color: var(--gov-primary); }
.review-group-title-row { margin: 7px 0 4px; display: flex; align-items: center; gap: 9px; }
.review-group-title-row h2 { margin: 0; color: #263348; font-size: 20px; }
.review-group-title-row span { padding: 3px 7px; border-radius: 4px; color: #69768a; background: #f1f3f6; font-size: 9px; }
.review-group-detail-head p { margin: 0; color: #8792a3; font-size: 11px; }
.dynamic-allocation-card { margin: 17px 0 14px; padding: 13px 14px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid #e3e7ed; border-radius: 8px; background: #fafbfc; }
.dynamic-allocation-card.enabled { border-color: #efbfd0; background: #fff7fa; }
.dynamic-allocation-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #8792a3; background: #eef1f5; border-radius: 8px; font-size: 17px; }
.dynamic-allocation-card.enabled .dynamic-allocation-icon { color: #fff; background: var(--gov-primary); }
.dynamic-allocation-card strong { color: #344054; font-size: 12px; }
.dynamic-allocation-card p { margin: 4px 0 0; color: #8792a3; font-size: 10px; }
.dynamic-allocation-title { display: flex; align-items: center; gap: 8px; }
.dynamic-allocation-title > span { padding: 2px 6px; border-radius: 4px; color: #8792a3; background: #eef1f5; font-size: 8px; }
.dynamic-allocation-title > span.standby { color: #c77a2c; background: #fff1df; }
.dynamic-allocation-title > span.active { color: #2f9b70; background: #e8f7f0; }
.review-group-routing-rule { margin: -3px 0 14px; padding: 11px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; border: 1px solid #e6e9ee; border-radius: 8px; background: #fbfcfd; }
.review-group-routing-rule > span { min-width: 0; display: grid; grid-template-columns: 25px minmax(0,1fr); column-gap: 8px; }
.review-group-routing-rule > span > b { width: 25px; height: 25px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--gov-primary); font-size: 8px; }
.review-group-routing-rule > span.secondary > b { color: #69768a; background: #e9edf2; }
.review-group-routing-rule > span.secondary.active > b { color: #fff; background: #3eb082; }
.review-group-routing-rule strong,.review-group-routing-rule small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-group-routing-rule strong { color: #344054; font-size: 10px; }
.review-group-routing-rule small { margin-top: 2px; color: #98a2b3; font-size: 8px; }
.review-group-routing-rule > i { color: #aeb6c2; font-style: normal; }
.review-group-switch input { display: none; }
.review-group-switch i { width: 38px; height: 22px; display: block; position: relative; border-radius: 12px; background: #dce1e8; transition: .18s ease; }
.review-group-switch i::after { width: 18px; height: 18px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.16); content: ""; transition: .18s ease; }
.review-group-switch input:checked + i { background: var(--gov-primary); }
.review-group-switch input:checked + i::after { left: 18px; }
.review-group-metrics { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--gov-line); border-radius: 8px; }
.review-group-metrics > span { padding: 13px 15px; border-right: 1px solid var(--gov-line); color: #929cab; font-size: 9px; }
.review-group-metrics > span:last-child { border-right: 0; }
.review-group-metrics strong,.review-group-metrics small { display: block; }
.review-group-metrics strong { margin: 5px 0 2px; color: #263348; font-size: 19px; }
.review-group-metrics small { color: #98a2b3; font-size: 9px; }
.review-group-section { margin-top: 18px; }
.review-group-section-head { margin-bottom: 9px; display: flex; align-items: flex-end; justify-content: space-between; }
.review-group-section-head h3,.review-group-section-head p { margin: 0; }
.review-group-section-head h3 { color: #344054; font-size: 14px; }
.review-group-section-head p { margin-top: 3px; color: #98a2b3; font-size: 9px; }
.review-group-section-head > span { color: #929cab; font-size: 9px; }
.queue-role-heading { display: flex; align-items: center; gap: 7px; }
.queue-role-heading > span { padding: 2px 6px; border-radius: 4px; color: #fff; background: var(--gov-primary); font-size: 8px; font-weight: 700; }
.queue-role-section.secondary .queue-role-heading > span { color: #69768a; background: #e9edf2; }
.queue-role-section.secondary.active .queue-role-heading > span { color: #fff; background: #3eb082; }
.queue-role-heading > em { padding: 2px 6px; border-radius: 4px; color: #8792a3; background: #f0f2f5; font-size: 8px; font-style: normal; }
.queue-role-section.secondary.standby .queue-role-heading > em { color: #c77a2c; background: #fff1df; }
.queue-role-section.secondary.active .queue-role-heading > em { color: #2f9b70; background: #e8f7f0; }
.review-group-queue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.review-group-queue-grid article { padding: 11px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 1px solid var(--gov-line); border-radius: 7px; background: #fff; }
.review-group-queue-grid article.secondary { background: #fafbfc; }
.queue-role-section.secondary.disabled .review-group-queue-grid { opacity: .58; }
.review-group-queue-name { display: flex; align-items: center; gap: 6px; }
.review-group-queue-name > b { padding: 1px 5px; border-radius: 3px; color: var(--gov-primary); background: #fdebf1; font-size: 7px; }
.review-group-queue-card.secondary .review-group-queue-name > b { color: #69768a; background: #e9edf2; }
.review-group-queue-empty { grid-column: 1 / -1; padding: 20px; border: 1px dashed #dfe3e9; border-radius: 7px; color: #98a2b3; text-align: center; font-size: 9px; }
.review-group-queue-grid article > div strong,.review-group-queue-grid article > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-group-queue-grid article > div strong { color: #344054; font-size: 11px; }
.review-group-queue-grid article > div small { margin-top: 3px; color: #98a2b3; font-size: 8px; }
.review-group-queue-grid footer { grid-column: 2 / 4; display: flex; gap: 14px; color: #8792a3; font-size: 9px; }
.reviewer-saturation-list { display: grid; gap: 7px; }
.reviewer-saturation-list article { min-height: 76px; padding: 10px 12px; display: grid; grid-template-columns: 38px minmax(260px,1.5fr) 54px minmax(150px,1fr); align-items: center; gap: 11px; border: 1px solid var(--gov-line); border-radius: 8px; background: #fff; }
.reviewer-saturation-person strong,.reviewer-saturation-person small { display: block; }
.reviewer-saturation-person strong { color: #344054; font-size: 11px; }
.reviewer-saturation-person small { margin-top: 3px; color: #98a2b3; font-size: 8px; }
.reviewer-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.reviewer-role,.reviewer-level { display: inline-flex; min-height: 20px; align-items: center; justify-content: center; padding: 0 7px; border-radius: 10px; white-space: nowrap; font-size: 8px; font-weight: 600; }
.reviewer-role { color: #5d6b7e; background: #eef1f5; }
.reviewer-role.leader { color: #9a6310; background: #fff2d9; }
.reviewer-level.level-专家 { color: #d5880c; background: #fff5dc; }
.reviewer-level.level-熟练 { color: #1aa47e; background: #eafaf5; }
.reviewer-level.level-中等 { color: #477fd0; background: #edf4ff; }
.reviewer-level.level-新手 { color: #7c8795; background: #f1f3f6; }
.reviewer-skill-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.reviewer-skill-tags span,.reviewer-skill-tags em { min-height: 20px; display: inline-flex; align-items: center; padding: 0 6px; border: 1px solid #deedf2; border-radius: 5px; color: #536c7a; background: #eff7fa; font-size: 8px; font-style: normal; }
.reviewer-skill-tags em { color: #8792a3; border-color: #e6e9ee; background: #f3f5f7; }
.reviewer-status { color: #36a878; font-size: 9px; }
.reviewer-status.offline { color: #a2aab7; }
.reviewer-saturation-bar > span { display: flex; justify-content: space-between; color: #929cab; font-size: 8px; }
.reviewer-saturation-bar > span em { color: #59667a; font-style: normal; }
.reviewer-saturation-bar > i { height: 5px; margin-top: 5px; display: block; overflow: hidden; border-radius: 4px; background: #edf0f4; }
.reviewer-saturation-bar > i b { height: 100%; display: block; border-radius: inherit; background: #57b98f; }
.reviewer-saturation-bar > i b.medium { background: #eba04c; }
.reviewer-saturation-bar > i b.high { background: #e35c66; }
.review-group-edit-drawer { position: absolute; inset: 0; z-index: 5; padding: 18px; background: rgba(255,255,255,.98); backdrop-filter: blur(4px); }
.review-group-edit-drawer[hidden] { display: none; }
.review-group-edit-head,.review-group-edit-footer { display: flex; align-items: center; justify-content: space-between; }
.review-group-edit-head { padding-bottom: 12px; border-bottom: 1px solid var(--gov-line); }
.review-group-edit-head strong,.review-group-edit-head small { display: block; }
.review-group-edit-head strong { color: #344054; font-size: 15px; }
.review-group-edit-head small { margin-top: 3px; color: #98a2b3; font-size: 9px; }
.review-group-edit-head button { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #8792a3; background: #f1f3f6; }
.review-group-edit-columns { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-group-edit-columns h4,.review-group-edit-columns p { margin: 0; }
.review-group-edit-columns h4 { color: #344054; font-size: 12px; }
.review-group-edit-columns p { margin: 3px 0 8px; color: #98a2b3; font-size: 9px; }
.review-group-check-list { max-height: 430px; display: grid; gap: 6px; overflow-y: auto; }
.review-group-check-list label { min-height: 72px; padding: 8px; display: grid; grid-template-columns: 30px minmax(0,1fr) 18px; align-items: center; gap: 8px; border: 1px solid var(--gov-line); border-radius: 7px; cursor: pointer; }
.review-group-check-list label:has(input:checked) { border-color: #efadc3; background: #fff7fa; }
.review-group-check-list input { position: absolute; opacity: 0; }
.review-group-check-list strong,.review-group-check-list small { display: block; }
.review-group-check-list strong { color: #344054; font-size: 10px; }
.review-group-check-list small { margin-top: 2px; color: #98a2b3; font-size: 8px; }
.review-group-check-list label > i { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #dce1e8; border-radius: 4px; color: transparent; font-size: 9px; font-style: normal; }
.review-group-check-list input:checked ~ i { color: #fff; border-color: var(--gov-primary); background: var(--gov-primary); }
.review-group-queue-role-list { max-height: 430px; display: grid; gap: 6px; overflow-y: auto; }
.review-group-queue-role-list article { min-height: 50px; padding: 7px 8px; display: grid; grid-template-columns: 28px minmax(0,1fr) 92px; align-items: center; gap: 8px; border: 1px solid var(--gov-line); border-radius: 6px; }
.review-group-queue-role-list strong,.review-group-queue-role-list small { display: block; }
.review-group-queue-role-list strong { color: #344054; font-size: 10px; }
.review-group-queue-role-list small { margin-top: 2px; color: #98a2b3; font-size: 8px; }
.review-group-queue-role-list select { height: 30px; padding: 0 6px; border: 1px solid #dfe3e9; border-radius: 5px; outline: 0; color: #59667a; background: #fff; font-size: 9px; }
.review-group-queue-role-list select:focus { border-color: #efadc3; box-shadow: 0 0 0 2px rgba(242,93,141,.08); }
.review-group-edit-footer { margin-top: 14px; padding-top: 12px; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--gov-line); }

.review-group-create-modal { width: min(1060px,calc(100vw - 48px)); max-height: calc(100vh - 48px); padding: 0; overflow: hidden; }
.review-group-create-head { padding: 20px 24px 15px; border-bottom: 1px solid var(--gov-line); }
.review-group-create-head h2,.review-group-create-head p { margin: 0; }
.review-group-create-head h2 { color: #263348; font-size: 19px; }
.review-group-create-head p { margin-top: 5px; color: #929cab; font-size: 11px; }
.review-group-create-basic,.review-group-create-members { padding: 17px 24px; }
.review-group-create-basic { border-bottom: 1px solid var(--gov-line); background: #fafbfc; }
.review-group-create-section-title { display: flex; align-items: center; gap: 10px; }
.review-group-create-section-title > span { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #fff; background: var(--gov-primary); font-size: 10px; font-weight: 700; }
.review-group-create-section-title strong,.review-group-create-section-title small { display: block; }
.review-group-create-section-title strong { color: #344054; font-size: 13px; }
.review-group-create-section-title small { margin-top: 2px; color: #98a2b3; font-size: 9px; }
.review-group-create-section-title > em { margin-left: auto; padding: 4px 8px; border-radius: 10px; color: var(--gov-primary); background: #fff0f5; font-size: 10px; font-style: normal; }
.review-group-create-fields { margin-top: 14px; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.review-group-create-fields label { display: flex; flex-direction: column; gap: 6px; color: #69768a; font-size: 10px; }
.review-group-create-fields input,.review-group-create-fields select { height: 38px; padding: 0 10px; border: 1px solid #dfe3e9; border-radius: 7px; outline: 0; color: #344054; background: #fff; }
.review-group-create-fields input:focus,.review-group-create-fields select:focus { border-color: #efadc3; box-shadow: 0 0 0 3px rgba(242,93,141,.08); }
.review-group-create-members { min-height: 390px; }
.review-group-member-transfer { height: 330px; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-group-org-panel,.review-group-selected-panel { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dfe3e9; border-radius: 9px; background: #fff; transition: .15s ease; }
.review-group-org-panel > header,.review-group-selected-panel > header { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--gov-line); background: #fafbfc; }
.review-group-org-panel header strong,.review-group-org-panel header small,.review-group-selected-panel header strong,.review-group-selected-panel header small { display: block; }
.review-group-org-panel header strong,.review-group-selected-panel header strong { color: #344054; font-size: 11px; }
.review-group-org-panel header small,.review-group-selected-panel header small { margin-top: 3px; color: #98a2b3; font-size: 8px; }
.review-group-org-panel header label { width: 175px; height: 31px; padding: 0 8px; display: flex; align-items: center; gap: 5px; border: 1px solid #e0e4ea; border-radius: 6px; color: #98a2b3; background: #fff; }
.review-group-org-panel header input { min-width: 0; flex: 1; border: 0; outline: 0; color: #344054; background: transparent; font-size: 9px; }
.review-group-selected-panel > header > span { padding: 4px 7px; border-radius: 4px; color: #8792a3; background: #eef1f5; font-size: 8px; }
.review-group-org-tree,.review-group-selected-members { min-height: 0; flex: 1; padding: 9px; overflow-y: auto; }
.review-group-org-root { min-height: 100%; }
.review-group-org-node.root { height: 34px; grid-template-columns: 17px 24px minmax(0,1fr) auto; color: #344054; font-size: 11px; font-weight: 700; }
.review-group-org-node.root > i,.review-group-org-node.department > i { width: 22px; height: 17px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: #5b8ff9; font-size: 9px; font-style: normal; }
.review-group-org-function-list { margin-left: 9px; padding-left: 10px; border-left: 1px solid #e2e6ec; }
.review-group-org-department + .review-group-org-department { margin-top: 7px; }
.review-group-org-node { height: 30px; display: grid; grid-template-columns: 17px 24px minmax(0,1fr) auto; align-items: center; color: #59667a; font-size: 10px; }
.review-group-org-node.base { margin-left: 15px; color: #69768a; }
.review-group-org-node > span { color: #98a2b3; }
.review-group-org-node > em { color: #98a2b3; font-size: 8px; font-style: normal; }
.review-group-org-members { margin-left: 42px; display: grid; gap: 4px; }
.review-group-org-person { width: 100%; min-height: 46px; padding: 5px 7px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 6px; color: #69768a; background: transparent; text-align: left; }
.review-group-org-person:hover { border-color: #efbfd0; background: #fff7fa; }
.review-group-org-person.dragging { opacity: .45; }
.review-group-org-person.selected { cursor: default; opacity: .55; }
.review-group-org-person.locked { cursor: not-allowed; opacity: .48; }
.review-group-org-person .avatar { width: 28px; height: 28px; border-radius: 7px; font-size: 10px; }
.review-group-org-person strong,.review-group-org-person small { display: block; }
.review-group-org-person strong { color: #344054; font-size: 10px; }
.review-group-org-person small { margin-top: 2px; color: #98a2b3; font-size: 8px; }
.review-group-org-person > em { color: #a0a8b5; font-size: 8px; font-style: normal; }
.review-group-selected-panel.review-group-drop-active { border-color: var(--gov-primary); background: #fff7fa; box-shadow: 0 0 0 4px rgba(242,93,141,.09); }
.review-group-selected-panel.node-selected > header > span { color: var(--gov-primary); background: #fff0f5; }
.review-group-create-target-tree { padding: 12px; border-bottom: 1px solid var(--gov-line); background: #fff; }
.review-group-target-root { height: 34px; display: grid; grid-template-columns: 18px 25px minmax(0,1fr); align-items: center; color: #344054; }
.review-group-target-root > span { color: #98a2b3; }
.review-group-target-root > i { width: 22px; height: 17px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: #5b8ff9; font-size: 9px; font-style: normal; }
.review-group-target-root > strong { font-size: 11px; }
.review-group-target-child { position: relative; width: calc(100% - 19px); min-height: 54px; margin: 3px 0 0 19px; padding: 6px 8px 6px 22px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; color: #69768a; background: transparent; text-align: left; }
.review-group-target-child::before { content: ""; position: absolute; left: -10px; top: -9px; width: 17px; height: 35px; border-left: 1px solid #dfe3e9; border-bottom: 1px solid #dfe3e9; border-radius: 0 0 0 5px; }
.review-group-target-child:hover { border-color: #efbfd0; background: #fff7fa; }
.review-group-target-child.active { border-color: #efadc3; background: #fff7fa; box-shadow: inset 3px 0 var(--gov-primary); }
.review-group-target-child > span { display: none; }
.review-group-target-child > i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; color: var(--gov-primary); background: #fdeaf0; font-style: normal; }
.review-group-target-child strong,.review-group-target-child small { display: block; }
.review-group-target-child strong { color: #344054; font-size: 10px; }
.review-group-target-child small { margin-top: 2px; color: #98a2b3; font-size: 8px; }
.review-group-target-child > em { padding: 3px 6px; border-radius: 9px; color: #8792a3; background: #eef1f5; font-size: 8px; font-style: normal; }
.review-group-target-child.active > em { color: var(--gov-primary); background: #fff0f5; }
.review-group-selected-panel:not(.node-selected) .review-group-create-target-tree { flex: 1; }
.review-group-selected-person { min-height: 82px; padding: 8px; display: grid; grid-template-columns: 36px minmax(0,1fr) 32px; align-items: center; gap: 8px; border: 1px solid var(--gov-line); border-radius: 7px; }
.review-group-selected-person + .review-group-selected-person { margin-top: 6px; }
.review-group-selected-person .avatar { width: 34px; height: 34px; border-radius: 8px; font-size: 11px; }
.review-group-selected-person strong,.review-group-selected-person small { display: block; }
.review-group-selected-person strong { color: #344054; font-size: 10px; }
.review-group-selected-person small,.review-group-selected-person p { margin: 2px 0 0; color: #98a2b3; font-size: 8px; }
.review-group-selected-person button { width: 24px; height: 24px; border: 0; border-radius: 5px; color: #98a2b3; background: #f1f3f6; }
.review-group-selected-person button:hover { color: #d84e58; background: #ffedef; }
.review-group-leader-lock { color: #9a6310; font-size: 8px; text-align: center; }
.review-group-selected-empty,.review-group-org-empty { height: 100%; min-height: 140px; display: flex; align-items: center; flex-direction: column; justify-content: center; color: #98a2b3; text-align: center; }
.review-group-selected-empty > span { font-size: 28px; }
.review-group-selected-empty strong { margin-top: 7px; color: #69768a; font-size: 11px; }
.review-group-selected-empty small { margin-top: 3px; font-size: 8px; }
.review-group-create-actions { margin: 0; padding: 13px 24px; border-top: 1px solid var(--gov-line); background: #fafbfc; }
.review-group-create-actions .button { min-width: 88px; }
@media (max-width: 1100px) { .review-group-layout { grid-template-columns: 1fr; } .review-group-sidebar { max-height: 420px; overflow-y: auto; } }
@media (max-width: 760px) { .review-group-domain-tabs,.review-group-overview,.review-group-queue-grid,.review-group-edit-columns,.review-group-create-fields,.review-group-member-transfer { grid-template-columns: 1fr; } .review-group-create-modal { width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; } .review-group-member-transfer { height: auto; } .review-group-org-panel,.review-group-selected-panel { min-height: 300px; } .review-group-metrics { grid-template-columns: 1fr; } .review-group-metrics > span { border-right: 0; border-bottom: 1px solid var(--gov-line); } .review-group-routing-rule { grid-template-columns: 1fr; } .review-group-routing-rule > i { transform: rotate(90deg); text-align: center; } .reviewer-saturation-list article { grid-template-columns: 34px 1fr auto; } .reviewer-saturation-bar { grid-column: 2 / 4; } }

.scene-nav-group > p {
  margin: 15px 8px 6px;
  color: #9aa4b4;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.scene-nav-item {
  width: 100%;
  min-height: 54px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: #5f6c80;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}

.scene-nav-item:hover {
  background: #fff;
  border-color: #e6e9ee;
}

.scene-nav-item.active {
  color: var(--gov-primary);
  background: #fff;
  border-color: #f2c8d6;
  box-shadow: inset 3px 0 var(--gov-primary), 0 2px 6px rgba(31, 45, 70, 0.04);
}

.scene-nav-item > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #7e899a;
  background: #edf0f4;
  border-radius: 7px;
  font-size: 12px;
}

.scene-nav-item.active > span {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
}

.scene-nav-item strong,
.scene-nav-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-nav-item strong { font-size: 12px; }
.scene-nav-item small { margin-top: 3px; color: #929cab; font-size: 10px; }

.scene-status {
  width: 7px;
  height: 7px;
  background: #38b48b;
  border-radius: 50%;
}

.scene-status.warning { background: #ef8d3c; }
.scene-status.idle { background: #aab2bf; }

.workbench-scene-workspace {
  min-width: 0;
  padding: 20px;
  background: #fff;
}

.workspace-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-heading h2 {
  margin: 7px 0 4px;
  color: #263348;
  font-size: 20px;
}

.workspace-heading p {
  margin: 0;
  color: #8792a3;
  font-size: 12px;
}

.scope-badge {
  display: inline-flex;
  padding: 3px 7px;
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 650;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8792a3;
  font-size: 11px;
}

.sync-state i {
  width: 7px;
  height: 7px;
  background: #38b48b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 180, 139, 0.1);
}

.scene-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scene-overview-card {
  min-height: 222px;
  padding: 16px;
  color: #59667a;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
  text-align: left;
}

.scene-overview-card:hover {
  border-color: #f2bfd0;
  box-shadow: 0 6px 18px rgba(31, 45, 70, 0.07);
  transform: translateY(-1px);
}

.scene-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scene-card-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #69768a;
  background: #f1f3f6;
  border-radius: 8px;
  font-size: 15px;
}

.scene-overview-card > small {
  display: block;
  margin-top: 13px;
  color: #9aa4b4;
  font-size: 10px;
}

.scene-overview-card h3 {
  margin: 4px 0;
  color: #344054;
  font-size: 15px;
}

.scene-overview-card > p {
  min-height: 34px;
  margin: 0;
  color: #8792a3;
  font-size: 11px;
  line-height: 1.55;
}

.scene-card-metrics {
  margin-top: 13px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
}

.scene-card-metrics span {
  color: #929cab;
  font-size: 10px;
}

.scene-card-metrics b {
  display: block;
  margin-top: 4px;
  color: #344054;
  font-size: 13px;
}

.scene-card-footer {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}

.scene-card-footer span {
  overflow: hidden;
  color: #8792a3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-card-footer b {
  flex: 0 0 auto;
  color: var(--gov-primary);
}

.scene-detail-heading > div:first-child { min-width: 0; }

.workspace-title-block { display: block; }

.workspace-title-row {
  margin: 8px 0 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-title-row h2 { margin: 0; }

.workspace-reference-tag {
  padding: 3px 8px;
  color: #69768a;
  background: #f1f3f6;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-back {
  padding: 5px 8px;
  color: #69768a;
  background: #f6f7f9;
  border: 1px solid #e3e7ed;
  border-radius: 5px;
  font-size: 10px;
}

.scene-detail-metrics {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f8f9fc;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
}

.scene-detail-metrics > span {
  padding: 14px 16px;
  color: #8792a3;
  border-right: 1px solid var(--gov-line);
  font-size: 10px;
}

.scene-detail-metrics > span:last-child { border-right: 0; }
.scene-detail-metrics strong { display: block; margin: 5px 0 2px; color: #263348; font-size: 19px; }
.scene-detail-metrics small { color: #9aa4b4; font-size: 9px; }

.channel-list-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.channel-list-heading h3 { margin: 0; color: #344054; font-size: 15px; }
.channel-list-heading p { margin: 3px 0 0; color: #929cab; font-size: 10px; }
.channel-list-heading > span { color: #929cab; font-size: 10px; }

.workbench-channel-list {
  display: grid;
  gap: 9px;
}

.workbench-channel-row {
  width: 100%;
  min-height: 85px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) repeat(3, minmax(88px, .7fr)) minmax(110px, .9fr) auto 18px;
  gap: 14px;
  align-items: center;
  color: #59667a;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 7px;
  text-align: left;
}

.workbench-channel-row:hover {
  background: #fffafd;
  border-color: #f2bfd0;
  box-shadow: 0 4px 12px rgba(31, 45, 70, 0.05);
}

.channel-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-identity h4 { margin: 0; color: #344054; font-size: 13px; }
.channel-identity p { margin: 4px 0 0; overflow: hidden; color: #929cab; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.channel-stat span,
.channel-stat strong,
.channel-stat small {
  display: block;
}

.channel-stat span { color: #929cab; font-size: 9px; }
.channel-stat strong { margin: 4px 0 2px; color: #344054; font-size: 13px; }
.channel-stat small { color: #a1a9b6; font-size: 9px; }

.channel-load > span {
  display: flex;
  justify-content: space-between;
  color: #8792a3;
  font-size: 9px;
}

.channel-load em { color: #59667a; font-style: normal; }
.channel-load > i { height: 6px; margin-top: 7px; display: block; overflow: hidden; background: #edf0f4; border-radius: 5px; }
.channel-load > i b { display: block; height: 100%; background: linear-gradient(90deg, var(--gov-primary), #ff9bbb); border-radius: inherit; }
.workbench-channel-row.warning .channel-load > i b { background: #ef8d3c; }
.workbench-channel-row.danger .channel-load > i b { background: #e85b61; }
.channel-arrow { color: #a1a9b6; font-size: 14px; }

@media (max-width: 1280px) {
  .workbench-domain-tabs button { min-width: 145px; }
  .workbench-channel-row { grid-template-columns: minmax(155px, 1.2fr) repeat(3, minmax(75px, .65fr)) minmax(90px, .8fr) auto; }
  .channel-arrow { display: none; }
}

@media (max-width: 1050px) {
  .workbench-domain-bar { align-items: stretch; flex-direction: column; }
  .workbench-domain-tabs button { min-width: 0; flex: 1; }
  .workbench-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .scene-overview-grid { grid-template-columns: 1fr; }
  .workbench-channel-row { grid-template-columns: minmax(155px, 1.3fr) repeat(3, minmax(76px, .7fr)) auto; }
  .channel-load { display: none; }
}

@media (max-width: 760px) {
  .workbench-domain-tabs { align-items: stretch; flex-direction: column; }
  .workbench-layout { display: block; }
  .workbench-scene-sidebar { border-right: 0; border-bottom: 1px solid var(--gov-line); }
  .scene-detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .scene-detail-metrics > span:nth-child(2) { border-right: 0; }
  .scene-detail-metrics > span:nth-child(-n+2) { border-bottom: 1px solid var(--gov-line); }
  .workbench-channel-row { grid-template-columns: minmax(150px, 1fr) repeat(2, 82px) auto; }
  .channel-stat:nth-of-type(3) { display: none; }
}

/* Visual refinement v2 — Arco interaction, Bilibili operations character */
:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --text: #1f2329;
  --muted: #8a9099;
  --line: #edf0f5;
  --cyan: #00aeec;
  --cyan-dark: #008ac5;
  --sidebar: #121827;
  --shadow: 0 8px 28px rgba(26, 36, 55, 0.06);
  --radius: 12px;
  --arco-primary: #00aeec;
  --arco-primary-hover: #18b8ef;
  --arco-primary-active: #008ac5;
  --arco-fill: #f5f6fa;
  --arco-fill-hover: #eef1f6;
  --arco-border: #e8ebf0;
  --arco-text-1: #1f2329;
  --arco-text-2: #505968;
  --arco-text-3: #8a9099;
}

body {
  background:
    radial-gradient(circle at 78% -10%, rgba(0, 174, 236, 0.055), transparent 28%),
    #f5f6fa;
  letter-spacing: 0.01em;
}

.sidebar {
  width: 224px;
  padding: 0 14px 18px;
  color: #aeb7c6;
  background:
    radial-gradient(circle at 10% 4%, rgba(0, 174, 236, 0.16), transparent 24%),
    linear-gradient(180deg, #151c2c 0%, #111724 100%);
  border-right: 0;
  box-shadow: 10px 0 30px rgba(15, 22, 36, 0.04);
}

.brand {
  height: 72px;
  padding: 0 10px;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 26px;
  color: #fff;
  background: linear-gradient(135deg, #00aeec, #48c9f4);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 174, 236, 0.28);
}

.brand-eye,
.brand-antenna {
  background: #fff;
}

.brand-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.brand-copy span {
  color: #748096;
  font-size: 8px;
  letter-spacing: 1.8px;
}

.main-nav {
  gap: 5px;
  padding-top: 6px;
}

.nav-label {
  margin: 19px 12px 7px;
  color: #5f6a7c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.nav-item {
  height: 44px;
  padding: 0 11px;
  gap: 11px;
  color: #9aa5b7;
  border-radius: 9px;
  font-size: 13px;
}

.nav-item:hover {
  color: #ecf5fb;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 174, 236, 0.22), rgba(0, 174, 236, 0.08));
  box-shadow: inset 0 0 0 1px rgba(73, 202, 244, 0.08);
  font-weight: 550;
}

.nav-item.active::before {
  display: block;
  left: -14px;
  width: 3px;
  height: 24px;
  background: #2bc4f4;
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #8f9bad;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  font-size: 14px;
}

.nav-item.active .nav-icon {
  color: #6cdbff;
  background: rgba(0, 174, 236, 0.16);
}

.nav-badge {
  color: #b9c3d2;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active .nav-badge {
  color: #77ddff;
  background: rgba(0, 174, 236, 0.15);
}

.system-status {
  color: #aeb7c6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
}

.system-status strong,
.sidebar-user strong {
  color: #eaf0f7;
}

.system-status span,
.sidebar-user span {
  color: #718096;
}

.sidebar-user {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.avatar-blue {
  background: linear-gradient(135deg, #00aeec, #526df5);
  box-shadow: 0 5px 14px rgba(0, 174, 236, 0.22);
}

.main-column {
  margin-left: 224px;
}

.topbar {
  height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(229, 233, 240, 0.85);
  backdrop-filter: blur(16px) saturate(130%);
}

.breadcrumb strong {
  font-weight: 600;
}

.global-search,
.search-field {
  height: 36px;
  background: #f4f6f9;
  border-color: transparent;
  border-radius: 8px;
}

.global-search:hover,
.search-field:hover,
.global-search:focus-within,
.search-field:focus-within {
  background: #fff;
  border-color: rgba(0, 174, 236, 0.36);
  box-shadow: 0 0 0 3px rgba(0, 174, 236, 0.07);
}

.role-switch {
  height: 36px;
  padding: 0 12px;
  border-color: #e7eaf0;
  border-radius: 8px;
}

.role-dot {
  background: #00b578;
  box-shadow: 0 0 0 3px rgba(0, 181, 120, 0.1);
}

main {
  max-width: 1540px;
  padding: 30px 32px 48px;
}

.page-heading {
  position: relative;
  margin-bottom: 24px;
}

.dashboard-heading {
  min-height: 132px;
  padding: 26px 28px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(0, 174, 236, 0.11), rgba(255, 255, 255, 0.92) 42%, rgba(116, 91, 229, 0.06)),
    #fff;
  border: 1px solid rgba(0, 174, 236, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(30, 45, 70, 0.055);
}

.dashboard-heading::after {
  content: "";
  position: absolute;
  top: -58px;
  right: 10%;
  width: 190px;
  height: 190px;
  border: 32px solid rgba(0, 174, 236, 0.035);
  border-radius: 50%;
  pointer-events: none;
}

.page-heading h1 {
  margin: 5px 0 7px;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.dashboard-heading h1 {
  font-size: 28px;
}

.dashboard-heading > div,
.dashboard-heading .heading-actions {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #009fd9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.button,
.role-switch,
.icon-button {
  border-radius: 8px;
}

.button {
  min-height: 36px;
  padding: 0 16px;
  font-weight: 550;
}

.button.primary,
.primary-mini,
.submit-review {
  background: linear-gradient(135deg, #00aeec, #13bdf1);
  border-color: #00aeec;
  box-shadow: 0 6px 16px rgba(0, 174, 236, 0.2);
}

.button.primary:hover,
.primary-mini:hover,
.submit-review:hover:not(:disabled) {
  background: linear-gradient(135deg, #00a2dd, #20c3f2);
  border-color: #00a2dd;
  box-shadow: 0 8px 20px rgba(0, 174, 236, 0.25);
  transform: translateY(-1px);
}

.button.secondary {
  color: #485260;
  background: rgba(255, 255, 255, 0.8);
  border-color: #e4e8ee;
}

.button.secondary:hover {
  color: #009fd9;
  background: #fff;
  border-color: rgba(0, 174, 236, 0.35);
}

.metric-grid {
  gap: 14px;
}

.metric-card,
.panel,
.queue-card,
.pool-card,
.template-card,
.template-stats,
.queue-detail-hero,
.review-content-column,
.review-operation-column,
.component-library,
.property-panel,
.template-canvas-area {
  background: #fff;
  border: 1px solid rgba(231, 235, 241, 0.78);
  border-radius: 13px;
  box-shadow: 0 7px 24px rgba(29, 43, 68, 0.045);
}

.metric-card {
  position: relative;
  min-height: 148px;
  padding: 19px 20px;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 174, 236, 0.82), rgba(0, 174, 236, 0));
  border-radius: 13px 13px 0 0;
}

.metric-card:nth-child(2)::after {
  background: linear-gradient(90deg, rgba(54, 179, 126, 0.85), transparent);
}

.metric-card:nth-child(3)::after {
  background: linear-gradient(90deg, rgba(114, 46, 209, 0.75), transparent);
}

.metric-card:nth-child(4)::after {
  background: linear-gradient(90deg, rgba(255, 125, 0, 0.78), transparent);
}

.metric-card:hover,
.queue-card:hover,
.pool-card:hover,
.template-card:hover {
  border-color: rgba(0, 174, 236, 0.22);
  box-shadow: 0 12px 30px rgba(28, 48, 78, 0.08);
  transform: translateY(-2px);
}

.metric-card > p {
  margin-top: 13px;
  color: #697382;
  font-size: 12px;
  font-weight: 550;
}

.metric-card > strong {
  font-size: 29px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.metric-icon,
.queue-symbol,
.pool-icon {
  color: #00a8e5 !important;
  background: linear-gradient(145deg, #e6f8ff, #f1fbff) !important;
  border-radius: 8px !important;
}

.metric-icon {
  width: 32px;
  height: 32px;
}

.trend {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
}

.section-heading {
  margin: 30px 0 15px;
}

.section-heading h2,
.panel-heading h3 {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.segmented {
  padding: 3px;
  background: #eceff4;
  border-radius: 9px;
}

.segmented button {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 7px;
}

.segmented button.active {
  color: #1f2733;
  background: #fff;
  box-shadow: 0 2px 8px rgba(28, 39, 58, 0.09);
  font-weight: 600;
}

.queue-grid {
  gap: 13px;
}

.queue-card {
  padding: 17px;
}

.queue-card.danger {
  background: linear-gradient(145deg, rgba(245, 63, 63, 0.035), #fff 38%);
  border-color: rgba(245, 63, 63, 0.16);
}

.queue-card.warning {
  background: linear-gradient(145deg, rgba(255, 125, 0, 0.035), #fff 38%);
  border-color: rgba(255, 125, 0, 0.14);
}

.queue-card-header h3 {
  font-weight: 620;
}

.queue-main-stat strong {
  font-size: 23px;
  letter-spacing: -0.02em;
}

.queue-load {
  height: 5px;
  border-radius: 5px;
}

.queue-load i {
  background: linear-gradient(90deg, #00aeec, #4dd1f5);
  border-radius: 5px;
}

.queue-card.warning .queue-load i {
  background: linear-gradient(90deg, #ff9a2e, #ffc15a);
}

.queue-card.danger .queue-load i {
  background: linear-gradient(90deg, #f53f3f, #ff7a7a);
}

.queue-mini-stats {
  margin: 14px -4px -4px;
  padding: 11px 4px 0;
  border-top: 1px solid #f0f2f5;
}

.dashboard-bottom-grid {
  gap: 14px;
}

.panel {
  padding: 20px;
}

.throughput-panel {
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.alert-item {
  margin: 0 -4px;
  padding: 12px 8px;
  border-radius: 9px;
}

.alert-item:hover {
  background: #f7f9fc;
}

.compact-panel,
.toolbar.panel {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 18px rgba(29, 43, 68, 0.035);
}

.data-table thead th {
  color: #7c8592;
  background: #f7f8fa;
  font-size: 11px;
  font-weight: 650;
}

.data-table tbody tr:hover td {
  background: #f7fbfd;
}

.status-badge {
  padding: 4px 9px;
  border-radius: 20px;
}

.queue-detail-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(0, 174, 236, 0.1), transparent 25%),
    linear-gradient(120deg, #fff, #f8fcfe);
}

.detail-live > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(227, 233, 240, 0.8);
  border-radius: 10px;
}

.review-header {
  height: 58px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e9edf2;
  box-shadow: 0 4px 18px rgba(28, 40, 60, 0.035);
}

.review-layout {
  gap: 16px;
}

.review-content-column,
.review-operation-column {
  border-color: rgba(225, 230, 237, 0.85);
  box-shadow: 0 9px 30px rgba(29, 43, 68, 0.055);
}

.video-stage {
  background:
    radial-gradient(circle at 50% 44%, #283443, #121820 66%),
    #111820;
}

.play-button {
  background: rgba(0, 174, 236, 0.92);
  box-shadow: 0 0 0 10px rgba(0, 174, 236, 0.12), 0 12px 30px rgba(0, 0, 0, 0.28);
}

.content-summary,
.author-card {
  background: #fafbfc;
  border-color: #edf0f3;
  border-radius: 10px;
}

.operation-tabs {
  background: #f5f7fa;
}

.operation-tabs button.active {
  color: #009fd9;
}

.operation-tabs button.active::after {
  background: #00aeec;
}

.keyframe,
.verdict-button,
.tag-group {
  border-radius: 9px;
}

.verdict-button:hover,
.verdict-button.active {
  border-color: rgba(0, 174, 236, 0.45);
  background: #f2fbfe;
}

.operation-footer {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.pool-card {
  overflow: hidden;
}

.scheduling-layout,
.template-grid,
.template-editor-layout {
  gap: 16px;
}

.strategy-row {
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.strategy-row:hover,
.strategy-row.active {
  background: #f4fbfe;
  border-color: rgba(0, 174, 236, 0.16);
}

.template-stats {
  overflow: hidden;
  background: linear-gradient(90deg, #fff, #fbfdff);
}

.template-stats strong {
  color: #1f2733;
  font-size: 25px;
}

.template-card {
  overflow: hidden;
}

.template-preview {
  background:
    linear-gradient(145deg, rgba(0, 174, 236, 0.08), rgba(114, 46, 209, 0.045)),
    #f5f7fa;
}

.template-card-body {
  padding: 17px;
}

.component-library,
.property-panel {
  background: #fff;
}

.template-canvas-area {
  background: #eef1f5;
}

.canvas-toolbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.template-canvas {
  box-shadow: 0 18px 55px rgba(28, 40, 61, 0.13);
}

.coming-soon {
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 174, 236, 0.1), transparent 26%),
    linear-gradient(160deg, #fff, #fbfdff);
  border-color: rgba(0, 174, 236, 0.12);
  box-shadow: 0 15px 45px rgba(29, 43, 68, 0.055);
}

.ai-core {
  background: linear-gradient(135deg, #00aeec, #765bea);
  box-shadow: 0 18px 40px rgba(0, 174, 236, 0.25);
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 26px 75px rgba(16, 24, 40, 0.22);
}

.toast {
  border: 0;
  border-radius: 9px;
  box-shadow: 0 12px 35px rgba(25, 37, 57, 0.14);
}

@media (max-width: 900px) {
  .sidebar {
    width: 224px;
  }

  .main-column {
    margin-left: 0;
  }

  .dashboard-heading {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .dashboard-heading {
    min-height: 0;
    border-radius: 13px;
  }

  .dashboard-heading h1 {
    font-size: 24px;
  }
}

/* Typography scale v3 — larger, more readable interface */
body {
  font-size: 15px;
  line-height: 1.55;
}

.sidebar {
  width: 236px;
}

.main-column {
  margin-left: 236px;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy span {
  font-size: 10px;
}

.nav-label {
  font-size: 12px;
}

.nav-item {
  height: 46px;
  font-size: 15px;
}

.nav-icon {
  font-size: 16px;
}

.nav-badge,
.system-status span,
.sidebar-user span {
  font-size: 12px;
}

.system-status strong,
.sidebar-user strong {
  font-size: 14px;
}

.breadcrumb,
.role-switch,
.global-search,
.search-field {
  font-size: 14px;
}

.global-search,
.search-field,
.role-switch {
  height: 40px;
}

.global-search kbd,
.last-updated {
  font-size: 12px;
}

.page-heading h1 {
  font-size: 29px;
}

.dashboard-heading h1 {
  font-size: 31px;
}

.eyebrow {
  font-size: 12px !important;
}

.button {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 14px;
}

.metric-card > p,
.metric-card > strong small {
  font-size: 14px;
}

.metric-card > strong {
  font-size: 31px;
}

.metric-note,
.trend {
  font-size: 12px;
}

.section-heading h2,
.panel-heading h2 {
  font-size: 20px;
}

.section-heading p,
.panel-heading p,
.segmented button,
.text-button {
  font-size: 13px;
}

.queue-card h3 {
  font-size: 15px;
}

.queue-main-stat span,
.queue-mini-stats,
.legend,
.alert-row p {
  font-size: 12px;
}

.queue-main-stat strong {
  font-size: 26px;
}

.chart-y,
.chart-x,
.alert-row time {
  font-size: 11px;
}

.alert-row strong {
  font-size: 13px;
}

.data-table th,
.data-table thead th {
  font-size: 13px;
}

.data-table td {
  padding-block: 16px;
  font-size: 14px;
}

.table-name span,
.status-badge,
.risk-badge {
  font-size: 12px;
}

.queue-detail-hero h1 {
  font-size: 27px;
}

.detail-live span,
.reviewer span,
.task-id,
.review-progress {
  font-size: 13px;
}

.detail-live strong {
  font-size: 26px;
}

.review-header {
  height: 64px;
}

.video-overlay-top,
.video-controls,
.content-type,
.author-meta span,
.author-stats {
  font-size: 12px;
}

.content-title-row h2 {
  font-size: 20px;
}

.summary-block h3,
.note-label,
.verdict-card strong {
  font-size: 14px;
}

.summary-block h3 span,
.verdict-card small,
.frame-thumb span,
.submit-review kbd {
  font-size: 11px;
}

.summary-block p,
.review-section-title span,
.tag-parent {
  font-size: 13px;
}

.review-section-title h3 {
  font-size: 16px;
}

.keyframe-actions button,
.tag-option,
.note-label textarea {
  font-size: 12px;
}

.keyframe-actions button {
  padding-block: 8px;
}

.tag-option {
  padding: 9px;
}

.pool-card span,
.strategy-row p,
.strategy-route,
.strategy-meta,
.editor-field {
  font-size: 12px;
}

.pool-card strong {
  font-size: 21px;
}

.pool-card small,
.strategy-row h4,
.rule-builder-title h3 {
  font-size: 13px;
}

.template-stats span,
.component-library > p:not(.eyebrow),
.draft-indicator {
  font-size: 12px;
}

.template-stats strong {
  font-size: 28px;
}

.template-card h3 {
  font-size: 16px;
}

.template-card p,
.template-meta,
.template-actions button {
  font-size: 12px;
}

.template-card p {
  height: 40px;
}

.template-actions button {
  height: 36px;
}

.component-library h2,
.property-panel h2 {
  font-size: 19px;
}

.component-group h3,
.binding-block h3,
.canvas-toolbar span,
.property-form label,
.binding-block p,
.binding-block span {
  font-size: 12px;
}

.canvas-header,
.canvas-block {
  font-size: 13px;
}

.canvas-header span,
.canvas-block small {
  font-size: 11px;
}

.property-form input,
.property-form select {
  height: 38px;
}

.ai-core span,
.soon-badge,
.coming-features strong,
.coming-features p,
.modal form > label,
.toast {
  font-size: 13px !important;
}

.coming-soon > p:not(.eyebrow) {
  font-size: 15px;
}

.modal input,
.modal select {
  height: 42px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 236px;
  }

  .main-column {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .page-heading h1,
  .dashboard-heading h1 {
    font-size: 27px;
  }

  .data-table {
    min-width: 860px;
  }
}

/* Learning & certification center */
.learning-badge {
  color: #ffb65b;
  background: rgba(255, 154, 46, 0.15);
}

.learning-heading {
  min-height: 138px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(114, 46, 209, 0.1), transparent 28%),
    linear-gradient(110deg, rgba(0, 174, 236, 0.12), rgba(255, 255, 255, 0.96) 45%, rgba(114, 46, 209, 0.06));
  border: 1px solid rgba(0, 174, 236, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(30, 45, 70, 0.055);
}

.learning-heading h1 {
  margin: 5px 0 6px;
  font-size: 31px;
}

.learning-heading p:last-child {
  margin: 0;
  color: var(--arco-text-2);
}

.learning-level {
  min-width: 230px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  background: linear-gradient(135deg, #151e31, #273452);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  box-shadow: 0 12px 26px rgba(26, 38, 64, 0.16);
}

.learning-level span,
.learning-level small {
  color: #aab5c8;
  font-size: 12px;
}

.learning-level strong {
  font-size: 17px;
}

.learning-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.learning-overview article {
  position: relative;
  min-height: 132px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(29, 43, 68, 0.045);
}

.learning-stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #00a6df;
  background: #e9f9fe;
  border-radius: 11px;
  font-size: 20px;
}

.learning-stat-icon.purple { color: #7053d6; background: #f1edff; }
.learning-stat-icon.orange { color: #e98215; background: #fff4e7; }
.learning-stat-icon.green { color: #0ba874; background: #e8faf4; }

.learning-overview small {
  display: block;
  color: var(--arco-text-3);
  font-size: 12px;
}

.learning-overview strong {
  display: block;
  margin: 2px 0 0;
  color: var(--arco-text-1);
  font-size: 28px;
  line-height: 1.2;
}

.learning-overview strong em {
  margin-left: 3px;
  color: var(--arco-text-3);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.learning-overview p {
  margin: 4px 0 0;
  color: var(--arco-text-3);
  font-size: 12px;
}

.learning-overview article > i {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  height: 5px;
  overflow: hidden;
  background: #edf0f3;
  border-radius: 5px;
}

.learning-overview article > i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00aeec, #63d8ff);
  border-radius: inherit;
}

.learning-overview article:nth-child(2) > i b { background: linear-gradient(90deg, #7255db, #a28df1); }
.learning-overview .text-button { position: absolute; right: 16px; bottom: 13px; }
.certification-mark { position: absolute; right: 16px; bottom: 15px; color: #05a271; font-size: 12px; font-weight: 600; }

.learning-tabs {
  height: 56px;
  margin-bottom: 16px;
  padding: 0 8px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(29, 43, 68, 0.03);
}

.learning-tabs button {
  position: relative;
  height: 55px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--arco-text-2);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 550;
}

.learning-tabs button span { color: var(--arco-text-3); font-size: 17px; }
.learning-tabs button i { min-width: 18px; padding: 1px 5px; color: #fff; background: #f53f3f; border-radius: 9px; font-size: 10px; font-style: normal; }
.learning-tabs button:hover { color: #00a1db; }
.learning-tabs button.active { color: #009fd9; }
.learning-tabs button.active span { color: #00aeec; }
.learning-tabs button.active::after { content: ""; position: absolute; right: 13px; bottom: -1px; left: 13px; height: 3px; background: #00aeec; border-radius: 3px 3px 0 0; }

.learning-panel { display: none; }
.learning-panel.active { display: block; animation: fadeIn .2s ease; }
.learning-content-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 16px; align-items: start; }
.manual-catalog { position: sticky; top: 80px; padding: 16px; }
.manual-search { height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: var(--arco-text-3); background: #f4f6f9; border: 1px solid transparent; border-radius: 9px; }
.manual-search:focus-within { background: #fff; border-color: rgba(0, 174, 236, .35); box-shadow: 0 0 0 3px rgba(0,174,236,.07); }
.manual-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.catalog-label { margin: 20px 8px 8px; color: var(--arco-text-3); font-size: 11px; font-weight: 650; letter-spacing: .5px; }
.manual-chapter { width: 100%; min-height: 65px; padding: 10px; display: grid; grid-template-columns: 32px 1fr 12px; gap: 10px; align-items: center; color: var(--arco-text-2); background: transparent; border: 1px solid transparent; border-radius: 10px; text-align: left; }
.manual-chapter:hover { background: #f5f8fb; }
.manual-chapter.active { color: #009fd9; background: #effaff; border-color: rgba(0,174,236,.12); }
.manual-chapter > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--arco-text-3); background: #f0f2f5; border-radius: 8px; font-size: 11px; }
.manual-chapter.active > span { color: #009fd9; background: rgba(0,174,236,.11); }
.manual-chapter div { min-width: 0; }
.manual-chapter strong, .manual-chapter small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manual-chapter strong { font-size: 13px; }
.manual-chapter small { margin-top: 3px; color: var(--arco-text-3); font-size: 11px; }
.manual-chapter i { color: #b8bec7; font-size: 18px; font-style: normal; }

.manual-reader { padding: 0; overflow: hidden; }
.manual-reader-head { padding: 24px 26px 18px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #edf0f3; }
.manual-reader-head h2 { margin: 5px 0 3px; font-size: 24px; }
.manual-reader-head p { margin: 0; color: var(--arco-text-3); font-size: 12px; }
.manual-version { color: #009fd9; font-size: 11px; font-weight: 650; }
#bookmarkManual.bookmarked { color: #d98212; background: #fff8e8; border-color: #ffd58f; }
.manual-progress-line { padding: 12px 26px; display: grid; grid-template-columns: auto minmax(120px, 220px) 36px; gap: 10px; align-items: center; color: var(--arco-text-3); background: #fbfcfd; font-size: 11px; }
.manual-progress-line i { height: 5px; overflow: hidden; background: #e9edf1; border-radius: 5px; }
.manual-progress-line b { display: block; height: 100%; background: linear-gradient(90deg,#00aeec,#58d4fb); border-radius: inherit; }
.manual-progress-line strong { color: #00a2dc; }
.manual-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.manual-body nav { padding: 24px 18px; display: flex; flex-direction: column; gap: 3px; background: #fbfcfd; border-right: 1px solid #edf0f3; }
.manual-body nav strong { margin: 0 8px 9px; font-size: 12px; }
.manual-body nav a { padding: 8px; color: var(--arco-text-3); border-radius: 6px; font-size: 12px; text-decoration: none; }
.manual-body nav a:hover, .manual-body nav a.active { color: #009fd9; background: #edfaff; }
.manual-article { max-height: 570px; padding: 28px 34px 38px; overflow: auto; color: var(--arco-text-2); }
.manual-index { margin: 0; color: #00a3dd; font-size: 11px; font-weight: 650; letter-spacing: .8px; }
.manual-article h3 { margin: 8px 0 12px; color: var(--arco-text-1); font-size: 20px; }
.manual-article > p:not(.manual-index) { line-height: 1.9; }
.manual-tip { margin: 22px 0 28px; padding: 15px; display: flex; gap: 12px; background: #effaff; border: 1px solid rgba(0,174,236,.14); border-radius: 10px; }
.manual-tip > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #00aeec; border-radius: 50%; font-weight: 700; }
.manual-tip p { margin: 4px 0 0; color: var(--arco-text-2); font-size: 13px; line-height: 1.7; }
.rule-sample { margin-top: 10px; padding: 13px 14px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; background: #fafbfc; border: 1px solid #edf0f3; border-radius: 9px; }
.rule-sample p { margin: 0; font-size: 13px; line-height: 1.65; }
.manual-reader-footer { padding: 15px 25px; display: flex; align-items: center; justify-content: space-between; color: var(--arco-text-3); background: #fbfcfd; border-top: 1px solid #edf0f3; font-size: 12px; }

.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.practice-main { padding: 24px; }
.practice-head { display: flex; align-items: flex-start; justify-content: space-between; }
.practice-label { color: #009fd9; font-size: 12px; font-weight: 650; }
.practice-head h2 { margin: 5px 0 18px; font-size: 22px; }
.practice-count { color: var(--arco-text-3); font-size: 14px; }
.practice-count strong { color: #00a7e2; font-size: 26px; }
.practice-video { position: relative; height: 340px; display: grid; place-items: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 52% 40%, #34475b, #121a24 67%); border-radius: 12px; }
.practice-video::before { content: ""; position: absolute; inset: 28% 25% 0; background: linear-gradient(135deg, transparent 20%, rgba(255,255,255,.05)); transform: skew(-12deg); }
.practice-video-top { position: absolute; top: 15px; right: 17px; left: 17px; display: flex; justify-content: space-between; color: #cbd4df; font-size: 11px; }
.practice-video > button { position: relative; width: 64px; height: 64px; padding-left: 5px; color: #fff; background: rgba(0,174,236,.92); border: 0; border-radius: 50%; box-shadow: 0 0 0 10px rgba(0,174,236,.12); font-size: 21px; }
.practice-video-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 35px 18px 14px; background: linear-gradient(transparent,rgba(0,0,0,.8)); font-size: 12px; }
.practice-context { margin: 15px 0 22px; padding: 14px 15px; background: #f8fafc; border: 1px solid #edf0f3; border-radius: 9px; }
.practice-context span { color: #009fd9; font-size: 11px; font-weight: 650; }
.practice-context p { margin: 5px 0 0; color: var(--arco-text-2); font-size: 13px; line-height: 1.7; }
.practice-question > strong { font-size: 15px; }
.practice-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.practice-options button { min-height: 82px; padding: 13px; display: flex; align-items: center; gap: 10px; color: var(--arco-text-2); background: #fff; border: 1px solid #e5e9ee; border-radius: 10px; text-align: left; }
.practice-options button:hover, .practice-options button.selected { border-color: rgba(0,174,236,.5); background: #f1fbfe; box-shadow: 0 0 0 3px rgba(0,174,236,.06); }
.practice-options button.correct { border-color: #15b57a; background: #effbf7; }
.practice-options button.incorrect { border-color: #f53f3f; background: #fff3f3; }
.practice-options i { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; color: var(--arco-text-3); background: #f1f3f5; border-radius: 50%; font-size: 12px; font-style: normal; font-weight: 650; }
.practice-options button.selected i { color: #fff; background: #00aeec; }
.practice-options b, .practice-options small { display: block; }
.practice-options b { font-size: 13px; }
.practice-options small { margin-top: 3px; color: var(--arco-text-3); font-size: 11px; line-height: 1.45; }
.practice-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.practice-aside { display: flex; flex-direction: column; gap: 16px; }
.practice-score, .practice-guide { padding: 22px; }
.practice-score p { margin: 0; color: var(--arco-text-3); font-size: 12px; }
.practice-score strong { display: block; margin: 4px 0 0; font-size: 30px; }
.practice-score span, .practice-score small { color: var(--arco-text-3); font-size: 11px; }
.practice-score > div { height: 6px; margin: 15px 0 8px; overflow: hidden; background: #edf0f3; border-radius: 6px; }
.practice-score > div i { display: block; height: 100%; background: linear-gradient(90deg,#00aeec,#54d5fc); border-radius: inherit; }
.practice-guide { background: linear-gradient(145deg,#fff,#f5fbfe); border-color: rgba(0,174,236,.12); }
.practice-guide > span { width: 38px; height: 38px; display: grid; place-items: center; color: #00a7e2; background: #e6f9ff; border-radius: 10px; font-size: 19px; }
.practice-guide h3 { margin: 13px 0 7px; }
.practice-guide p { color: var(--arco-text-2); font-size: 12px; line-height: 1.7; }
.practice-guide button { padding: 0; color: #009fd9; background: none; border: 0; font-size: 12px; }

.exam-banner { min-height: 165px; margin-bottom: 16px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; color: #fff; background: linear-gradient(120deg,#172339,#243b68 62%,#324c85); border-radius: 15px; box-shadow: 0 12px 30px rgba(29,45,77,.13); }
.exam-banner .eyebrow { color: #72dafd !important; }
.exam-banner h2 { margin: 5px 0; font-size: 25px; }
.exam-banner p { margin: 0; color: #b9c6d9; }
.exam-banner-art { position: relative; width: 150px; height: 110px; display: grid; place-items: center; }
.exam-banner-art span { position: relative; z-index: 1; width: 72px; height: 72px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#00aeec,#765bea); border: 7px solid rgba(255,255,255,.14); border-radius: 50%; font-size: 27px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.exam-banner-art i { position: absolute; width: 112px; height: 112px; border: 1px solid rgba(107,216,255,.2); border-radius: 50%; }
.exam-banner-art i:last-child { width: 145px; height: 75px; transform: rotate(28deg); }
.exam-list { display: flex; flex-direction: column; gap: 12px; }
.exam-card { min-height: 145px; padding: 20px; display: grid; grid-template-columns: 54px minmax(0,1fr) 130px; gap: 17px; align-items: center; background: #fff; border: 1px solid #e8ebf0; border-radius: 13px; box-shadow: 0 6px 20px rgba(29,43,68,.035); }
.exam-card.urgent { border-left: 3px solid #ff9a2e; }
.exam-card.completed { background: linear-gradient(90deg,#fff,#fbfefc); }
.exam-card-icon { width: 54px; height: 54px; display: grid; place-items: center; color: #00a6df; background: #e9f9fe; border-radius: 13px; font-size: 21px; }
.exam-card-icon.purple { color: #7053d6; background: #f1edff; }
.exam-card-icon.green { color: #0aa874; background: #e9faf4; }
.exam-card-content > div { display: flex; align-items: center; gap: 10px; }
.exam-card-content > div small { color: var(--arco-text-3); font-size: 11px; }
.exam-card h3 { margin: 8px 0 3px; font-size: 17px; }
.exam-card p { margin: 0; color: var(--arco-text-2); font-size: 12px; }
.exam-card ul { margin: 10px 0 0; padding: 0; display: flex; gap: 22px; color: var(--arco-text-3); font-size: 11px; list-style: none; }
.exam-card li::before { content: "•"; margin-right: 6px; color: #00aeec; }
.exam-card-action { display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
.exam-card-action strong { color: var(--arco-text-3); font-size: 12px; }
.learning-record-panel { padding: 22px; }
.learning-record-panel .panel-heading { margin-bottom: 18px; }
.record-type { padding: 4px 9px; display: inline-flex; border-radius: 6px; font-size: 11px; font-weight: 600; }
.record-type.manual { color: #009fd9; background: #eaf9fe; }
.record-type.practice { color: #6b4fd0; background: #f1edff; }
.record-type.exam { color: #d87813; background: #fff3e5; }

.exam-room-top { height: 62px; margin: -30px -32px 22px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e8ebf0; }
.exam-room-top > div { display: flex; align-items: center; gap: 18px; }
.exam-room-top > div span { color: var(--arco-text-2); font-size: 13px; }
.exam-room-top > div strong { min-width: 74px; padding: 7px 11px; color: #f53f3f; background: #fff1f0; border-radius: 7px; font-variant-numeric: tabular-nums; text-align: center; }
.exam-room-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 18px; align-items: start; }
.exam-progress-panel { position: sticky; top: 84px; padding: 22px; }
.exam-progress-panel h2 { margin: 4px 0 17px; font-size: 20px; }
.exam-progress-ring { width: 100px; height: 100px; margin: 0 auto 19px; display: grid; place-content: center; color: var(--arco-text-3); background: conic-gradient(#00aeec 0 33%,#edf0f3 33%); border: 9px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #e5e9ee inset; text-align: center; }
.exam-progress-ring strong { color: var(--arco-text-1); font-size: 29px; line-height: 1; }
.exam-progress-ring span { font-size: 11px; }
.exam-question-map { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.exam-question-map button { height: 36px; color: var(--arco-text-2); background: #f6f7f9; border: 1px solid #e7eaee; border-radius: 7px; }
.exam-question-map button.active { color: #009fd9; background: #eaf9fe; border-color: #66d2f5; }
.exam-question-map button.answered { color: #fff; background: #00aeec; border-color: #00aeec; }
.exam-legend { margin-top: 13px; display: flex; justify-content: center; gap: 15px; color: var(--arco-text-3); font-size: 10px; }
.exam-legend i { width: 8px; height: 8px; display: inline-block; margin-right: 4px; background: #eef0f3; border-radius: 2px; }
.exam-legend i.answered { background: #00aeec; }
.exam-notice { margin-top: 20px; padding: 13px; background: #fff8e9; border: 1px solid #ffe4ae; border-radius: 8px; }
.exam-notice strong { color: #a86710; font-size: 12px; }
.exam-notice p { margin: 5px 0 0; color: #8b6c3d; font-size: 11px; line-height: 1.6; }
.exam-question-card { min-height: 560px; padding: 30px 34px; }
.exam-question-meta { display: flex; align-items: center; justify-content: space-between; }
.exam-question-meta span { padding: 4px 9px; color: #009fd9; background: #eaf9fe; border-radius: 6px; font-size: 11px; }
.exam-question-meta small { color: var(--arco-text-3); }
.exam-question-index { margin: 32px 0 8px; color: var(--arco-text-3); font-size: 13px; }
.exam-question-index strong { color: #009fd9; font-size: 18px; }
.exam-question-card > h2 { max-width: 760px; margin: 0 0 28px; font-size: 20px; line-height: 1.7; }
.exam-answer-list { display: flex; flex-direction: column; gap: 10px; }
.exam-answer-list button { min-height: 54px; padding: 10px 14px; display: flex; align-items: center; gap: 13px; color: var(--arco-text-2); background: #fff; border: 1px solid #e4e8ed; border-radius: 9px; text-align: left; }
.exam-answer-list button:hover, .exam-answer-list button.selected { color: #008fc5; background: #f1fbfe; border-color: rgba(0,174,236,.55); box-shadow: 0 0 0 3px rgba(0,174,236,.06); }
.exam-answer-list i { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; color: var(--arco-text-3); background: #f1f3f5; border-radius: 50%; font-size: 12px; font-style: normal; font-weight: 650; }
.exam-answer-list button.selected i { color: #fff; background: #00aeec; }
.exam-question-actions { margin-top: 32px; display: flex; justify-content: flex-end; gap: 9px; }

@media (max-width: 1180px) {
  .learning-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-content-layout { grid-template-columns: 270px minmax(0,1fr); }
  .manual-body { grid-template-columns: 150px minmax(0,1fr); }
  .practice-options { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .learning-heading { align-items: flex-start; gap: 20px; }
  .learning-content-layout, .practice-layout, .exam-room-layout { grid-template-columns: 1fr; }
  .manual-catalog, .exam-progress-panel { position: static; }
  .manual-catalog { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
  .manual-search, .catalog-label { grid-column: 1 / -1; }
  .practice-aside { display: grid; grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .learning-heading { flex-direction: column; }
  .learning-level { width: 100%; }
  .learning-overview { grid-template-columns: 1fr; }
  .learning-tabs { overflow-x: auto; align-items: stretch; }
  .learning-tabs button { flex: 0 0 auto; }
  .manual-catalog { grid-template-columns: 1fr; }
  .manual-body { grid-template-columns: 1fr; }
  .manual-body nav { display: none; }
  .manual-reader-head, .manual-reader-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .manual-progress-line { grid-template-columns: auto 1fr 36px; }
  .manual-article { padding: 24px 20px; }
  .practice-video { height: 250px; }
  .practice-aside { grid-template-columns: 1fr; }
  .exam-banner-art { display: none; }
  .exam-card { grid-template-columns: 46px minmax(0,1fr); }
  .exam-card-action { grid-column: 1 / -1; align-items: stretch; }
  .exam-room-top { margin: -18px -14px 18px; padding: 0 14px; }
  .exam-room-top > div span { display: none; }
  .exam-question-card { padding: 22px 18px; }
  .learning-record-panel { overflow-x: auto; }
  .learning-record-table { min-width: 760px; }
}

/* Governance-synced review manual */
.manual-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-readonly {
  padding: 3px 7px;
  color: #687386;
  background: #f1f3f5;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}

.manual-reader-head > div > small {
  display: block;
  margin-top: 5px;
  color: #9aa1ab;
  font-size: 11px;
}

.manual-chapter > span {
  font-weight: 700;
}

.manual-chapter:first-of-type > span {
  color: #f53f3f;
  background: #fff1f0;
}

.standard-definition,
.standard-knowledge,
.standard-controls {
  scroll-margin-top: 20px;
}

.standard-knowledge,
.standard-controls {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #edf0f3;
}

.standard-section-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.standard-section-heading > span {
  padding: 4px 8px;
  color: #009fd9;
  background: #eaf9fe;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
}

.standard-section-heading h3 {
  margin: 0;
  font-size: 20px;
}

.standard-section-heading em {
  color: #929aa5;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.standard-section-heading .risk-level {
  min-width: 48px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 6px;
  text-align: center;
}

.risk-level.level-s { background: #f53f3f; }
.risk-level.level-a { background: #ff7d00; }
.risk-level.level-b { background: #f7ba1e; }

.standard-definition > p {
  margin: 16px 0;
  color: #4e5969;
  font-size: 14px;
  line-height: 1.9;
}

.standard-source {
  padding: 13px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f7f8fa;
  border: 1px solid #e8ebef;
  border-radius: 9px;
}

.standard-source > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #009fd9;
  background: #e6f8fe;
  border-radius: 8px;
}

.standard-source strong,
.standard-source small {
  display: block;
}

.standard-source strong { font-size: 12px; }
.standard-source small {
  margin-top: 2px;
  color: #8a9099;
  font-size: 11px;
}

.standard-section-desc {
  margin: 8px 0 16px;
  color: #86909c;
  font-size: 12px;
}

.knowledge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knowledge-list article {
  padding: 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  background: linear-gradient(120deg, #fff, #fafcfe);
  border: 1px solid #e7ebef;
  border-radius: 10px;
}

.knowledge-list article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #009fd9;
  background: #eaf9fe;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.knowledge-list small {
  color: #009fd9;
  font-size: 10px;
  font-weight: 650;
}

.knowledge-list h4 {
  margin: 2px 0 6px;
  color: #1d2129;
  font-size: 15px;
}

.knowledge-list p {
  margin: 0;
  color: #596270;
  font-size: 13px;
  line-height: 1.75;
}

.control-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-block {
  overflow: hidden;
  border: 1px solid #e7ebef;
  border-radius: 11px;
}

.control-block > header {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e8ebef;
}

.control-block > header > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #00aeec, #35c7f5);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.control-block header small {
  color: #8a9099;
  font-size: 10px;
}

.control-block header h4 {
  margin: 1px 0 0;
  color: #1d2129;
  font-size: 14px;
}

.case-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-case {
  padding: 15px;
  border: 1px solid #e7ebef;
  border-radius: 9px;
}

.manual-case.positive {
  background: linear-gradient(145deg, #fff, #fff8f7);
  border-color: #ffd8d4;
}

.manual-case.negative {
  background: linear-gradient(145deg, #fff, #f4fcf9);
  border-color: #cbeee1;
}

.manual-case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.manual-case-top span {
  color: #7c8592;
  font-size: 10px;
}

.manual-case-top strong {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
}

.manual-case.positive .manual-case-top strong {
  color: #d83a35;
  background: #fff0ef;
}

.manual-case.negative .manual-case-top strong {
  color: #08855c;
  background: #e7f8f2;
}

.manual-case-title {
  margin: 13px 0 9px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
}

.manual-case-title i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-style: normal;
  font-weight: 700;
}

.manual-case.positive .manual-case-title i { background: #f53f3f; }
.manual-case.negative .manual-case-title i { background: #0eb57b; }

.manual-case-title small {
  color: #8a9099;
  font-size: 9px;
}

.manual-case-title h5 {
  margin: 1px 0 0;
  color: #1d2129;
  font-size: 13px;
}

.manual-case > p {
  min-height: 66px;
  margin: 0;
  color: #596270;
  font-size: 12px;
  line-height: 1.75;
}

.manual-conclusion {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed #dfe3e8;
}

.manual-conclusion small {
  color: #8a9099;
  font-size: 9px;
  font-weight: 650;
}

.manual-conclusion p {
  margin: 4px 0 0;
  color: #4e5969;
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .case-grid { grid-template-columns: 1fr; }
  .manual-case > p { min-height: 0; }
}

@media (max-width: 640px) {
  .manual-title-meta { flex-wrap: wrap; }
  .standard-section-heading { grid-template-columns: auto 1fr; }
  .standard-section-heading em { grid-column: 2; justify-self: start; }
  .case-grid { padding: 10px; }
}

/* Governance workbench theme v4 */
:root {
  --bg: #f4f8f8;
  --panel: #ffffff;
  --text: #20232d;
  --muted: #8d97a8;
  --line: #e8ebf2;
  --cyan: #fb7299;
  --cyan-dark: #e85f87;
  --purple: #4470f8;
  --orange: #f08434;
  --red: #e85b61;
  --green: #19946e;
  --sidebar: #ffffff;
  --shadow: 0 2px 4px rgba(26, 41, 64, 0.03);
  --radius: 9px;
  --arco-primary: #fb7299;
  --arco-primary-hover: #e85f87;
  --arco-primary-active: #d84e77;
  --arco-fill: #f4f8f8;
  --arco-fill-hover: #f1f3f7;
  --arco-border: #e8ebf2;
  --arco-text-1: #20232d;
  --arco-text-2: #4b5568;
  --arco-text-3: #8d97a8;
  --arco-success: #19946e;
  --arco-warning: #f08434;
  --arco-danger: #e85b61;
  --gov-primary: #fb7299;
  --gov-primary-hover: #e85f87;
  --gov-primary-soft: #fff1f6;
  --gov-blue: #4470f8;
  --gov-blue-soft: #ecf0ff;
  --gov-page: #f4f8f8;
  --gov-surface: #fff;
  --gov-surface-subtle: #f8f9fc;
  --gov-text: #4b5568;
  --gov-text-strong: #20232d;
  --gov-muted: #8d97a8;
  --gov-line: #e8ebf2;
}

html,
body {
  background: var(--gov-page);
  color: var(--gov-text);
}

body {
  letter-spacing: 0;
}

.sidebar {
  width: 224px;
  padding: 0 12px 16px;
  color: #657187;
  background: #fff;
  border-right: 1px solid #e5e9f0;
  box-shadow: none;
}

.brand {
  height: 72px;
  margin: 0 -12px;
  padding: 13px 15px;
  gap: 10px;
  border-bottom: 1px solid #edf0f4;
}

.brand-mark {
  width: 35px;
  height: 35px;
  color: #fff;
  background: var(--gov-primary);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(251, 114, 153, 0.22);
}

.brand-eye,
.brand-antenna {
  background: #fff;
}

.brand-copy strong {
  color: #30394a;
  font-size: 15px;
  font-weight: 700;
}

.brand-copy span {
  margin-top: 1px;
  color: #9aa3b1;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.main-nav {
  gap: 3px;
  padding-top: 0;
}

.nav-label {
  margin: 20px 9px 8px;
  color: #a1a9b6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.nav-item {
  height: 42px;
  padding: 0 10px;
  gap: 10px;
  color: #657187;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  color: var(--gov-primary);
  background: #fcf7f8;
}

.nav-item.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  box-shadow: inset 3px 0 var(--gov-primary);
  font-weight: 700;
}

.nav-item.active::before {
  display: none;
}

.nav-icon {
  width: 23px;
  height: 23px;
  color: #8793a6;
  background: #f0f3f7;
  border-radius: 6px;
  font-size: 14px;
}

.nav-item.active .nav-icon {
  color: #fff;
  background: var(--gov-primary);
}

.nav-badge {
  color: #778397;
  background: #edf0f4;
  font-size: 10px;
}

.nav-item.active .nav-badge,
.learning-badge {
  color: var(--gov-primary);
  background: #ffe2ec;
}

.nav-dot {
  background: var(--gov-primary);
}

.system-status {
  padding: 10px;
  color: #657187;
  background: #f8f9fc;
  border: 1px solid #edf0f4;
  border-radius: 8px;
}

.system-status strong,
.sidebar-user strong {
  color: #435069;
  font-size: 12px;
}

.system-status span,
.sidebar-user span {
  color: #9aa4b4;
  font-size: 10px;
}

.sidebar-user {
  margin-top: 12px;
  padding: 14px 3px 0;
  border-top-color: #edf0f4;
}

.sidebar-user .icon-button {
  color: #9aa4b4;
}

.avatar-blue,
.avatar-gradient {
  color: #1854c5;
  background: #dce8ff;
  box-shadow: none;
}

.main-column {
  margin-left: 224px;
}

.topbar {
  height: 64px;
  padding: 0 27px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gov-line);
  box-shadow: 0 1px 8px rgba(31, 45, 70, 0.04);
  backdrop-filter: blur(12px);
}

.breadcrumb {
  color: #7b8799;
  font-size: 12px;
}

.breadcrumb strong {
  color: #4e5a6e;
  font-weight: 500;
}

.breadcrumb i {
  color: #c2c9d3;
}

.global-search,
.search-field {
  height: 34px;
  color: #9aa4b5;
  background: #f7f9fc;
  border: 1px solid #e0e5ed;
  border-radius: 7px;
  font-size: 13px;
}

.global-search:hover,
.search-field:hover,
.global-search:focus-within,
.search-field:focus-within {
  background: #fff;
  border-color: #f2bfd0;
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.08);
}

.global-search kbd {
  color: #9aa4b2;
  background: #fff;
  border-color: #dfe4eb;
}

.icon-button {
  color: #778397;
  border-radius: 7px;
}

.icon-button:hover {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
}

.role-switch {
  height: 34px;
  color: #657187;
  background: #fff;
  border-color: #e0e5ed;
  border-radius: 7px;
  font-size: 12px;
}

.role-dot {
  background: #19946e;
}

main {
  max-width: 1550px;
  padding: 24px 27px 38px;
}

.page-heading {
  margin-bottom: 20px;
}

.page-heading h1 {
  margin: 3px 0 6px;
  color: #1e293b;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.page-heading p {
  color: var(--gov-muted);
  font-size: 14px;
}

.dashboard-heading,
.learning-heading {
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-heading::after {
  display: none;
}

.dashboard-heading h1,
.learning-heading h1 {
  font-size: 23px;
}

.eyebrow,
.practice-label,
.manual-version,
.manual-index {
  color: var(--gov-primary) !important;
  font-size: 12px !important;
  letter-spacing: 0.8px;
}

.live-dot {
  background: var(--gov-primary);
  box-shadow: 0 0 0 4px rgba(251, 114, 153, 0.12);
}

.button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.button.primary,
.primary-mini,
.submit-review {
  color: #fff;
  background: var(--gov-primary);
  border-color: var(--gov-primary);
  box-shadow: 0 5px 14px rgba(251, 114, 153, 0.2);
}

.button.primary:hover,
.primary-mini:hover,
.submit-review:hover:not(:disabled) {
  background: var(--gov-primary-hover);
  border-color: var(--gov-primary-hover);
}

.button.secondary,
.filter-button,
.back-button {
  color: #657187;
  background: #fff;
  border-color: #e1e5ec;
  border-radius: 6px;
}

.button.secondary:hover,
.filter-button:hover,
.back-button:hover {
  color: var(--gov-primary);
  background: #fff7fa;
  border-color: #f2bfd0;
}

.panel,
.metric-card,
.queue-card,
.template-card,
.pool-card,
.review-content-column,
.review-operation-column,
.strategy-list-panel,
.strategy-editor,
.component-library,
.property-panel,
.coming-soon,
.modal,
.learning-overview article,
.learning-tabs,
.exam-card,
.practice-main,
.practice-score,
.practice-guide,
.exam-question-card,
.exam-progress-panel {
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(26, 41, 64, 0.03);
}

.metric-grid,
.queue-grid,
.dashboard-bottom-grid,
.scheduling-layout,
.template-grid,
.template-editor-layout,
.learning-overview,
.learning-content-layout,
.practice-layout {
  gap: 14px;
}

.metric-card {
  min-height: 0;
  padding: 16px 17px;
  overflow: hidden;
}

.metric-card::before {
  display: none;
}

.metric-card:hover,
.queue-card:hover,
.template-card:hover {
  border-color: #dce1e9;
  box-shadow: 0 6px 16px rgba(31, 45, 70, 0.06);
  transform: translateY(-1px);
}

.metric-icon {
  width: 27px;
  height: 27px;
  color: #3974eb;
  background: #edf3ff;
  border-radius: 7px;
  font-size: 13px;
}

.metric-card:nth-child(2) .metric-icon { color: #7b61dd; background: #f2efff; }
.metric-card:nth-child(3) .metric-icon { color: #db8422; background: #fff3e3; }
.metric-card:nth-child(4) .metric-icon { color: #19946e; background: #eaf8f3; }

.metric-card > p {
  margin: 11px 0 3px;
  color: #69768a;
  font-size: 13px;
}

.metric-card > strong {
  color: #202b3d;
  font-size: 25px;
}

.metric-note,
.trend {
  font-size: 11px;
}

.trend {
  color: #1ca378;
  background: #edf9f5;
}

.trend.down,
.trend.warn {
  color: #e05959;
  background: #fff0f0;
}

.mini-bars {
  opacity: 0.65;
}

.section-heading h2,
.panel-heading h2 {
  color: #263348;
  font-size: 18px;
}

.section-heading p,
.panel-heading p {
  color: var(--gov-muted);
  font-size: 12px;
}

.segmented {
  padding: 3px;
  background: #f3f5f8;
  border-radius: 6px;
}

.segmented button {
  color: #778397;
  border-radius: 5px;
  font-size: 11px;
}

.segmented button.active {
  color: var(--gov-primary);
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 45, 70, 0.08);
}

.queue-card {
  min-height: 0;
  padding: 16px;
}

.queue-card.warning,
.queue-card.danger {
  border-color: var(--gov-line);
  background: #fff;
}

.queue-card.warning::after,
.queue-card.danger::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #f08434;
}

.queue-card.danger::after {
  background: #e85b61;
}

.queue-icon {
  border-radius: 7px;
}

.queue-load,
.progress {
  background: #edf0f4;
}

.queue-load i,
.progress i {
  background: linear-gradient(90deg, var(--gov-primary), #ff9bbb);
}

.throughput-panel,
.compact-panel,
.toolbar.panel,
.template-stats,
.queue-detail-hero {
  background: #fff;
  border: 1px solid var(--gov-line);
  box-shadow: 0 2px 4px rgba(26, 41, 64, 0.03);
}

.alert-item:hover,
.data-table tbody tr:hover td,
.strategy-row:hover,
.strategy-row.active {
  background: #fff7fa;
}

.data-table thead th,
.data-table th {
  color: #7c8799;
  background: #f8f9fc;
  border-bottom-color: var(--gov-line);
  font-size: 12px;
}

.data-table td {
  color: #4b5568;
  border-bottom-color: #edf0f4;
  font-size: 13px;
}

.table-action,
.text-button {
  color: #3972db;
}

.status-badge.info,
.content-type {
  color: #3972db;
  background: #edf3ff;
}

.status-badge.normal {
  color: #188665;
  background: #eaf8f3;
}

.status-badge.warning {
  color: #c1741e;
  background: #fff3e3;
}

.status-badge.danger,
.risk-badge.danger {
  color: #d84141;
  background: #ffebeb;
}

.queue-detail-hero {
  overflow: hidden;
  border-radius: 9px;
}

.queue-detail-hero h1 {
  color: #263348;
  font-size: 22px;
}

.detail-live > div {
  background: #f7f8fb;
  border-color: transparent;
  border-radius: 7px;
}

.review-header,
.editor-topbar,
.exam-room-top {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--gov-line);
  box-shadow: 0 1px 8px rgba(31, 45, 70, 0.04);
}

.review-layout {
  gap: 14px;
}

.operation-tabs,
.canvas-toolbar {
  background: #f8f9fc;
}

.operation-tabs button.active,
.operation-tabs button:hover {
  color: var(--gov-primary);
}

.operation-tabs button.active::after {
  background: var(--gov-primary);
}

.play-button,
.practice-video > button {
  background: rgba(251, 114, 153, 0.92);
  box-shadow: 0 0 0 10px rgba(251, 114, 153, 0.12), 0 12px 30px rgba(0, 0, 0, 0.2);
}

.content-summary,
.author-card,
.practice-context {
  background: #f8f9fc;
  border-color: #edf0f4;
}

.verdict-button:hover,
.verdict-button.active,
.tag-option:hover,
.tag-option.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f2bfd0;
}

.strategy-row.active {
  border-color: #f2bfd0;
}

.switch.on,
.switch-label input:checked + i {
  background: var(--gov-primary);
}

.template-preview {
  background: linear-gradient(145deg, #f5f6fa, #fafbfc);
}

.template-card-body {
  padding: 16px;
}

.template-canvas-area {
  background: #f3f5f8;
}

.template-canvas {
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(31, 45, 70, 0.11);
}

.coming-soon {
  background: #fff;
}

.ai-core {
  background: linear-gradient(135deg, var(--gov-primary), #7b61dd);
  box-shadow: 0 15px 35px rgba(251, 114, 153, 0.25);
}

.soon-badge {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f6ccda;
}

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

.learning-level {
  min-width: 230px;
  padding: 14px 17px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(26, 41, 64, 0.03);
}

.learning-level span,
.learning-level small {
  color: var(--gov-muted);
}

.learning-level strong {
  color: var(--gov-primary);
}

.learning-overview article {
  min-height: 116px;
  padding: 16px;
}

.learning-stat-icon {
  color: #3974eb;
  background: #edf3ff;
  border-radius: 7px;
}

.learning-overview article > i b {
  background: linear-gradient(90deg, var(--gov-primary), #ff9bbb);
}

.learning-tabs {
  height: 50px;
  padding: 0 8px;
  border-radius: 9px;
}

.learning-tabs button {
  height: 49px;
  color: #687489;
  font-size: 13px;
}

.learning-tabs button:hover,
.learning-tabs button.active,
.learning-tabs button.active span {
  color: var(--gov-primary);
}

.learning-tabs button.active::after {
  background: var(--gov-primary);
}

.manual-search,
.practice-context,
.standard-source,
.control-block > header {
  background: #f8f9fc;
}

.manual-search:focus-within {
  border-color: #f2bfd0;
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.08);
}

.manual-chapter {
  border-radius: 7px;
}

.manual-chapter:hover {
  background: #fcf7f8;
}

.manual-chapter.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f6ccda;
  box-shadow: inset 3px 0 var(--gov-primary);
}

.manual-chapter.active > span,
.standard-section-heading > span,
.knowledge-list small {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
}

.manual-body nav a:hover,
.manual-body nav a.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
}

.standard-source > span,
.knowledge-list article > span,
.control-block > header > span {
  color: #fff;
  background: var(--gov-primary);
}

.knowledge-list article,
.control-block,
.manual-case {
  border-radius: 8px;
}

.practice-options button:hover,
.practice-options button.selected,
.exam-answer-list button:hover,
.exam-answer-list button.selected {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f2bfd0;
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.06);
}

.practice-options button.selected i,
.exam-answer-list button.selected i,
.exam-question-map button.answered,
.exam-question-map button.active {
  color: #fff;
  background: var(--gov-primary);
  border-color: var(--gov-primary);
}

.practice-score > div i {
  background: linear-gradient(90deg, var(--gov-primary), #ff9bbb);
}

.practice-guide {
  background: #fff;
  border-color: var(--gov-line);
}

.practice-guide > span {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
}

.exam-banner {
  min-height: 145px;
  color: #344054;
  background: linear-gradient(120deg, #fff1f6, #fff 55%, #f2efff);
  border: 1px solid #f6d3df;
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(26, 41, 64, 0.03);
}

.exam-banner .eyebrow {
  color: var(--gov-primary) !important;
}

.exam-banner h2 {
  color: #263348;
}

.exam-banner p {
  color: #7c8799;
}

.exam-banner-art span {
  background: linear-gradient(135deg, var(--gov-primary), #7b61dd);
}

.exam-card.urgent {
  border-left-color: var(--gov-primary);
}

.exam-progress-ring {
  background: conic-gradient(var(--gov-primary) 0 33%, #edf0f3 33%);
}

.exam-question-meta span,
.record-type.manual {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
}

.modal {
  border-radius: 9px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
}

.toast {
  color: #fff;
  background: #30394a;
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(31, 45, 70, 0.18);
}

@media (max-width: 900px) {
  .sidebar { width: 224px; }
  .main-column { margin-left: 0; }
}

.exam-room-top {
  margin: -24px -27px 22px;
  padding: 0 27px;
}

@media (max-width: 640px) {
  .exam-room-top {
    margin: -18px -14px 18px;
    padding: 0 14px;
  }
}

/* Scene-aligned task pools and dual scheduling domains */
.scheduling-source-note {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f8f9fc;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
}

.scheduling-source-note > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gov-blue);
  border-radius: 7px;
  font-size: 14px;
}

.scheduling-source-note > div {
  min-width: 0;
  flex: 1;
}

.scheduling-source-note strong,
.scheduling-source-note p {
  display: block;
  margin: 0;
}

.scheduling-source-note strong {
  color: var(--gov-text-strong);
  font-size: 13px;
}

.scheduling-source-note p {
  margin-top: 2px;
  color: var(--gov-muted);
  font-size: 11px;
}

.scheduling-source-note p b {
  color: #4b5c75;
}

.scheduling-source-note a {
  color: #3972db;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.pool-overview {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.scene-pool-card {
  position: relative;
  min-width: 0;
  min-height: 202px;
  padding: 14px;
  display: block;
  color: inherit;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(26, 41, 64, 0.03);
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.scene-pool-card:hover {
  border-color: #cfd8e8;
  box-shadow: 0 6px 16px rgba(31, 45, 70, 0.06);
  transform: translateY(-1px);
}

.scene-pool-card.active {
  border-color: #f2bfd0;
  background: linear-gradient(145deg, #fff, #fff8fb);
  box-shadow: inset 3px 0 var(--gov-primary), 0 4px 12px rgba(251, 114, 153, 0.08);
}

.pool-card-top,
.pool-card-title,
.scene-pool-upstream {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scene-pool-card .pool-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #3974eb;
  background: #edf3ff;
  border-radius: 7px;
  font-size: 14px;
}

.scene-pool-card:nth-child(2) .pool-icon { color: #7b61dd; background: #f2efff; }
.scene-pool-card:nth-child(3) .pool-icon { color: #d27128; background: #fff3e3; }
.scene-pool-card:nth-child(4) .pool-icon { color: #19946e; background: #eaf8f3; }
.scene-pool-card:nth-child(5) .pool-icon { color: #687489; background: #edf0f4; }

.scene-sync-badge {
  padding: 3px 6px;
  color: #7b8799;
  background: #f1f3f6;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.pool-card-title {
  margin-top: 10px;
  align-items: flex-start;
  flex-direction: column;
}

.pool-card-title span {
  color: var(--gov-muted);
  font-size: 10px;
}

.pool-card-title strong {
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #303b4e;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-pool-card > p {
  height: 34px;
  margin: 7px 0 10px;
  overflow: hidden;
  color: #8792a3;
  font-size: 10px;
  line-height: 1.65;
}

.scene-pool-metrics {
  padding: 9px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}

.scene-pool-metrics span {
  min-width: 0;
}

.scene-pool-metrics small,
.scene-pool-metrics b {
  display: block;
}

.scene-pool-metrics small {
  color: #9aa4b4;
  font-size: 9px;
}

.scene-pool-metrics b {
  margin-top: 3px;
  overflow: hidden;
  color: #3c4960;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-pool-upstream {
  margin-top: 8px;
  gap: 5px;
  color: #929cab;
  font-size: 9px;
}

.scheduling-scope-bar {
  min-height: 74px;
  margin-bottom: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(26, 41, 64, 0.03);
}

.scheduling-scope-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scheduling-scope-info .pool-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gov-primary);
  border-radius: 9px;
}

.scheduling-scope-info small,
.scheduling-scope-info strong,
.scheduling-scope-info p {
  display: block;
  margin: 0;
}

.scheduling-scope-info small { color: #9aa4b4; font-size: 9px; }
.scheduling-scope-info strong { margin-top: 1px; color: #344054; font-size: 14px; }
.scheduling-scope-info p { margin-top: 2px; color: #8792a3; font-size: 10px; }

.strategy-domain-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 210px);
  gap: 7px;
}

.strategy-domain-tabs button {
  min-height: 51px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 8px;
  align-items: center;
  color: #657187;
  background: #f8f9fc;
  border: 1px solid #e3e7ed;
  border-radius: 7px;
  text-align: left;
}

.strategy-domain-tabs button:hover {
  color: var(--gov-primary);
  background: #fff8fb;
  border-color: #f2c8d6;
}

.strategy-domain-tabs button.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f2bfd0;
  box-shadow: inset 3px 0 var(--gov-primary);
}

.strategy-domain-tabs button > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #8793a6;
  background: #edf0f4;
  border-radius: 7px;
  font-size: 11px;
}

.strategy-domain-tabs button.active > span {
  color: #fff;
  background: var(--gov-primary);
}

.strategy-domain-tabs strong,
.strategy-domain-tabs small {
  display: block;
}

.strategy-domain-tabs strong { font-size: 12px; }
.strategy-domain-tabs small { margin-top: 2px; color: #929cab; font-size: 9px; }

.scheduling-layout {
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 12px;
}

.strategy-list-panel,
.strategy-editor {
  min-height: 560px;
  padding: 16px;
}

.strategy-row {
  padding: 12px;
  border-radius: 7px;
}

.strategy-row.active {
  background: var(--gov-primary-soft);
  border-color: #f2bfd0;
  box-shadow: inset 3px 0 var(--gov-primary);
}

.strategy-row-head {
  align-items: flex-start;
  gap: 10px;
}

.strategy-row-head h4 {
  margin-top: 5px;
  color: #344054;
  font-size: 13px;
}

.strategy-type-badge {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 650;
}

.strategy-type-badge.routing {
  color: #3568d4;
  background: #edf3ff;
}

.strategy-type-badge.priority {
  color: #8a5ec0;
  background: #f3efff;
}

.strategy-list-empty {
  padding: 52px 15px;
  color: #9aa4b4;
  font-size: 12px;
  text-align: center;
}

.strategy-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.strategy-editor-heading h2 {
  margin: 6px 0 0;
  font-size: 20px;
}

.routing-targets,
.priority-formula {
  margin-top: 14px;
  padding: 14px;
  background: #f8f9fc;
  border: 1px solid var(--gov-line);
  border-radius: 7px;
}

.rule-builder-title > span {
  color: #929cab;
  font-size: 10px;
}

.routing-target-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 150px minmax(100px, 1fr) 40px;
  gap: 10px;
  align-items: center;
  color: #59667a;
  font-size: 11px;
}

.routing-target-row i {
  height: 7px;
  overflow: hidden;
  background: #e6eaf0;
  border-radius: 6px;
}

.routing-target-row i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gov-primary), #ff9bbb);
  border-radius: inherit;
}

.routing-target-row strong {
  color: var(--gov-primary);
  font-size: 11px;
  text-align: right;
}

.priority-formula-box {
  min-height: 52px;
  margin-top: 10px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #6c7789;
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 7px;
}

.priority-formula-box b { color: #344054; font-size: 12px; }
.priority-formula-box span { color: #a1a9b6; }
.priority-formula-box em { color: #7b61dd; font-size: 12px; font-style: normal; }

@media (max-width: 1280px) {
  .pool-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strategy-domain-tabs { grid-template-columns: repeat(2, 180px); }
}

@media (max-width: 1050px) {
  .pool-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheduling-scope-bar { align-items: stretch; flex-direction: column; }
  .strategy-domain-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
  .scheduling-source-note { align-items: flex-start; flex-wrap: wrap; }
  .scheduling-source-note a { margin-left: 41px; }
  .pool-overview, .strategy-domain-tabs { grid-template-columns: 1fr; }
  .routing-target-row { grid-template-columns: 115px minmax(70px, 1fr) 36px; }
}

/* Workbench hierarchy refinement: domain -> scene -> pool -> channel */
.workbench-domain-top {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-top-label {
  color: #929cab;
  font-size: 12px;
  font-weight: 600;
}

.domain-top-switcher {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(31, 45, 70, 0.04);
}

.domain-top-switcher button {
  min-width: 152px;
  min-height: 44px;
  padding: 6px 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  color: #69768a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
}

.domain-top-switcher button:hover {
  color: var(--gov-primary);
  background: #fff8fb;
}

.domain-top-switcher button.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f2bfd0;
  box-shadow: inset 3px 0 var(--gov-primary);
}

.domain-top-switcher button > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #8793a6;
  background: #edf0f4;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.domain-top-switcher button.active > span {
  color: #fff;
  background: var(--gov-primary);
}

.domain-top-switcher strong,
.domain-top-switcher small {
  display: block;
}

.domain-top-switcher strong { font-size: 12px; }
.domain-top-switcher small { margin-top: 2px; color: #929cab; font-size: 9px; }

.hierarchy-guide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8792a3;
  font-size: 11px;
}

.hierarchy-guide span,
.hierarchy-guide strong {
  padding: 5px 8px;
  background: #f5f7fa;
  border: 1px solid #e5e8ed;
  border-radius: 5px;
}

.hierarchy-guide strong {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f2c8d6;
}

.hierarchy-guide i {
  color: #b0b7c3;
  font-style: normal;
}

.workbench-layout {
  grid-template-columns: 286px minmax(0, 1fr);
}

.workbench-scene-workspace {
  background: #fbfcfd;
}

.hierarchy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #929cab;
  font-size: 10px;
}

.hierarchy-breadcrumb i {
  color: #b4bbc6;
  font-style: normal;
}

.hierarchy-breadcrumb strong {
  color: var(--gov-primary);
}

.scene-flow-line {
  margin: 0 0 16px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto;
  align-items: center;
  color: #69768a;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 7px;
  font-size: 11px;
}

.scene-flow-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.scene-flow-line span b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-radius: 50%;
  font-size: 9px;
}

.scene-flow-line > i {
  height: 1px;
  margin: 0 10px;
  background: linear-gradient(90deg, #f2bfd0, #e3e7ed);
}

.task-pool-stack {
  display: grid;
  gap: 14px;
}

.task-pool-block {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 9px;
  box-shadow: 0 2px 5px rgba(31, 45, 70, 0.035);
}

.task-pool-header {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-pool-identity {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.pool-node-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--gov-primary), #ff9cba);
  border-radius: 9px;
  box-shadow: 0 5px 13px rgba(251, 114, 153, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.task-pool-identity small {
  color: #9aa4b4;
  font-size: 9px;
}

.task-pool-identity h3 {
  margin: 3px 0 2px;
  color: #344054;
  font-size: 16px;
}

.task-pool-identity p {
  margin: 0;
  color: #8792a3;
  font-size: 10px;
}

.task-pool-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pool-detail-metrics {
  margin-bottom: 16px;
}

.channel-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.channel-title-line em {
  padding: 2px 5px;
  color: #7b61dd;
  background: #f2efff;
  border-radius: 3px;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}

.risk-symbol {
  color: var(--gov-primary) !important;
  background: var(--gov-primary-soft) !important;
  font-size: 10px !important;
  font-weight: 700;
}

.task-pool-block .workbench-channel-row {
  background: #fcfcfd;
}

.task-pool-block .workbench-channel-row:hover {
  background: #fff8fb;
}

@media (max-width: 1050px) {
  .workbench-domain-top { align-items: flex-start; flex-direction: column; }
  .workbench-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .hierarchy-guide { display: none; }
}

@media (max-width: 760px) {
  .domain-top-switcher { width: 100%; }
  .domain-top-switcher button { min-width: 0; flex: 1; }
  .scene-flow-line { display: flex; overflow-x: auto; }
  .scene-flow-line > i { min-width: 38px; }
  .task-pool-header { flex-direction: column; }
}

/* Compact governance-domain dropdown */
.workbench-domain-top {
  position: relative;
  z-index: 30;
  min-height: 52px;
  margin-bottom: 12px;
}

.domain-top-switcher {
  position: relative;
  width: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.domain-top-switcher .domain-select-trigger {
  width: 246px;
  min-width: 246px;
  min-height: 52px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  gap: 9px;
  align-items: center;
  color: #4f5d73;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(31, 45, 70, 0.05);
  text-align: left;
}

.domain-top-switcher .domain-select-trigger:hover,
.domain-top-switcher .domain-select-trigger.open {
  color: var(--gov-primary);
  background: #fff;
  border-color: #f2bfd0;
  box-shadow: 0 5px 16px rgba(31, 45, 70, 0.08);
}

.domain-select-trigger > span,
.domain-select-option > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--gov-primary), #ff9cba);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.domain-select-trigger small,
.domain-select-trigger strong {
  display: block;
}

.domain-select-trigger small {
  margin-bottom: 2px;
  color: #9aa4b4;
  font-size: 9px;
  font-weight: 500;
}

.domain-select-trigger strong {
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-select-trigger > em {
  color: #929cab;
  font-size: 14px;
  font-style: normal;
  transition: transform .18s ease;
}

.domain-select-trigger.open > em {
  transform: rotate(180deg);
}

.domain-current-summary {
  color: #929cab;
  font-size: 11px;
  white-space: nowrap;
}

.domain-select-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 7px);
  left: 0;
  width: 310px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(31, 45, 70, 0.16);
}

.domain-select-menu header {
  padding: 8px 9px 10px;
  border-bottom: 1px solid #edf0f4;
}

.domain-select-menu header strong,
.domain-select-menu header small {
  display: block;
}

.domain-select-menu header strong {
  color: #344054;
  font-size: 13px;
}

.domain-select-menu header small {
  margin-top: 3px;
  color: #929cab;
  font-size: 10px;
}

.domain-top-switcher .domain-select-option {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin-top: 4px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  color: #59667a;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}

.domain-top-switcher .domain-select-option:hover {
  color: var(--gov-primary);
  background: #fff8fb;
  border-color: #f6d8e2;
}

.domain-top-switcher .domain-select-option.active {
  color: var(--gov-primary);
  background: var(--gov-primary-soft);
  border-color: #f2bfd0;
  box-shadow: inset 3px 0 var(--gov-primary);
}

.domain-select-option strong,
.domain-select-option small {
  display: block;
}

.domain-select-option strong {
  color: #344054;
  font-size: 12px;
}

.domain-select-option small {
  margin-top: 2px;
  color: #929cab;
  font-size: 9px;
}

.domain-select-option > b {
  color: var(--gov-primary);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .domain-top-switcher { width: 100%; }
  .domain-top-switcher .domain-select-trigger { width: min(100%, 320px); min-width: 0; }
  .domain-select-menu { width: min(310px, calc(100vw - 48px)); }
  .domain-current-summary { display: none; }
}

/* Governance-domain scheduling tree */
.scheduling-domain-row {
  margin: 16px 0 12px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.scheduling-domain-select {
  position: relative;
  z-index: 25;
  flex: 0 0 255px;
}

.schedule-domain-trigger {
  width: 100%;
  min-height: 62px;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  gap: 9px;
  align-items: center;
  color: #59667a;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(31,45,70,.04);
}

.schedule-domain-trigger:hover,
.schedule-domain-trigger.open { border-color: #f2bfd0; }
.schedule-domain-trigger > span,
.schedule-domain-menu button > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--gov-primary); border-radius: 7px; font-size: 10px; font-weight: 700; }
.schedule-domain-trigger small,
.schedule-domain-trigger strong { display: block; }
.schedule-domain-trigger small { color: #9aa4b4; font-size: 9px; }
.schedule-domain-trigger strong { margin-top: 2px; color: #344054; font-size: 13px; }
.schedule-domain-trigger em { color: #929cab; font-style: normal; transition: .18s ease; }
.schedule-domain-trigger.open em { transform: rotate(180deg); }

.schedule-domain-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  left: 0;
  width: 300px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 9px;
  box-shadow: 0 16px 40px rgba(31,45,70,.16);
}

.schedule-domain-menu button {
  width: 100%;
  min-height: 52px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  gap: 9px;
  align-items: center;
  color: #59667a;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}
.schedule-domain-menu button:hover { background: #fff8fb; }
.schedule-domain-menu button.active { color: var(--gov-primary); background: var(--gov-primary-soft); border-color: #f2bfd0; box-shadow: inset 3px 0 var(--gov-primary); }
.schedule-domain-menu strong,.schedule-domain-menu small { display: block; }
.schedule-domain-menu strong { color: #344054; font-size: 11px; }
.schedule-domain-menu small { margin-top: 2px; color: #929cab; font-size: 9px; }
.schedule-domain-menu b { color: var(--gov-primary); }

.scheduling-domain-row .scheduling-source-note { flex: 1; margin: 0; min-height: 62px; }

.schedule-flow-tabs {
  margin-bottom: 12px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: #eef1f5;
  border-radius: 9px;
}

.schedule-flow-tabs button {
  min-height: 64px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  color: #69768a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}
.schedule-flow-tabs button:hover { background: rgba(255,255,255,.68); }
.schedule-flow-tabs button.active { color: var(--gov-primary); background: #fff; border-color: #f2bfd0; box-shadow: 0 2px 7px rgba(31,45,70,.07); }
.schedule-flow-tabs button > span { width: 30px; height: 30px; display: grid; place-items: center; color: #8792a3; background: #e4e8ee; border-radius: 50%; font-size: 9px; font-weight: 700; }
.schedule-flow-tabs button.active > span { color: #fff; background: var(--gov-primary); }
.schedule-flow-tabs strong,.schedule-flow-tabs small { display: block; }
.schedule-flow-tabs strong { font-size: 12px; }
.schedule-flow-tabs small { margin-top: 3px; color: #929cab; font-size: 9px; }

.schedule-tree-layout {
  display: grid;
  grid-template-columns: 355px minmax(0, 1fr);
  gap: 12px;
}

.schedule-tree-panel,
.schedule-config-panel { min-height: 630px; padding: 16px; }
.schedule-tree-heading { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: flex-start; }
.schedule-tree-heading h2 { margin: 0; color: #344054; font-size: 16px; }
.schedule-tree-heading p { margin: 3px 0 0; color: #929cab; font-size: 10px; }
.schedule-tree-heading > span { color: #929cab; font-size: 10px; }
.schedule-tree-group > p { margin: 14px 7px 6px; color: #9aa4b4; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.schedule-tree-branch { margin-bottom: 6px; }
.schedule-tree-node { width: 100%; min-height: 49px; padding: 7px 8px; display: grid; grid-template-columns: 29px minmax(0,1fr) auto; gap: 8px; align-items: center; color: #5f6c80; background: transparent; border: 1px solid transparent; border-radius: 7px; text-align: left; }
.schedule-tree-node:hover { background: #f8f9fc; }
.schedule-tree-node.active { color: var(--gov-primary); background: var(--gov-primary-soft); border-color: #f2c8d6; }
.schedule-tree-node > span { width: 29px; height: 29px; display: grid; place-items: center; color: #7d899b; background: #edf0f4; border-radius: 6px; font-size: 9px; font-weight: 700; }
.schedule-tree-node.active > span { color: var(--gov-primary); background: #fff; }
.schedule-tree-node strong,.schedule-tree-node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-tree-node strong { font-size: 11px; }
.schedule-tree-node small { margin-top: 2px; color: #929cab; font-size: 8px; }
.schedule-tree-node em { color: #a1a9b6; font-style: normal; }
.schedule-tree-children { margin-left: 20px; padding-left: 10px; border-left: 1px dashed #dce1e8; }
.schedule-tree-node.pool { min-height: 45px; }
.schedule-tree-node.channel { min-height: 41px; }
.schedule-reviewer-leaves { margin: 2px 0 6px 21px; padding-left: 10px; display: grid; gap: 3px; border-left: 1px dashed #e2e6ec; }
.schedule-reviewer-leaves span { display: flex; align-items: center; gap: 6px; color: #8792a3; font-size: 9px; }
.schedule-reviewer-leaves i { width: 20px; height: 20px; display: grid; place-items: center; color: #62728a; background: #edf2fa; border-radius: 50%; font-style: normal; }

.schedule-config-heading { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.schedule-config-heading h2 { margin: 6px 0 3px; color: #344054; font-size: 19px; }
.schedule-config-heading p { margin: 0; color: #929cab; font-size: 10px; }
.schedule-route-overview { margin: 16px 0 12px; padding: 14px; display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 8px; background: #f8f9fc; border: 1px solid var(--gov-line); border-radius: 8px; }
.schedule-route-overview > div { padding: 11px 13px; background: #fff; border: 1px solid #e3e7ed; border-radius: 7px; }
.schedule-route-overview small,.schedule-route-overview strong { display: block; }
.schedule-route-overview small { color: #929cab; font-size: 9px; }
.schedule-route-overview strong { margin-top: 4px; color: #344054; font-size: 13px; }
.schedule-route-overview > i { color: var(--gov-primary); font-size: 18px; font-style: normal; text-align: center; }
.schedule-config-metrics { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--gov-line); border-radius: 7px; }
.schedule-config-metrics > span { padding: 11px 13px; color: #929cab; border-right: 1px solid var(--gov-line); font-size: 9px; }
.schedule-config-metrics > span:last-child { border-right: 0; }
.schedule-config-metrics strong,.schedule-config-metrics small { display: block; }
.schedule-config-metrics strong { margin: 4px 0 2px; color: #344054; font-size: 12px; }
.schedule-config-metrics small { color: #a1a9b6; font-size: 8px; }
.schedule-rule-section,.schedule-target-section { margin-top: 14px; padding: 14px; border: 1px solid var(--gov-line); border-radius: 8px; }
.schedule-rule-list { margin-top: 9px; display: grid; gap: 7px; }
.schedule-rule-row { display: grid; grid-template-columns: 35px 1fr 100px 1fr 28px; gap: 7px; align-items: center; }
.schedule-rule-row > span { color: var(--gov-primary); font-size: 9px; font-weight: 700; }
.schedule-rule-row select,.schedule-rule-row input { width: 100%; min-height: 34px; padding: 0 9px; color: #59667a; background: #f8f9fc; border: 1px solid #dfe4eb; border-radius: 5px; font-size: 10px; }
.schedule-rule-row > button { width: 28px; height: 28px; color: #a1a9b6; background: transparent; border: 0; }
.schedule-target-list { margin-top: 9px; display: grid; gap: 6px; }
.schedule-target-list > div { min-height: 39px; padding: 7px 10px; display: flex; justify-content: space-between; align-items: center; background: #f8f9fc; border-radius: 6px; }
.schedule-target-list span { display: flex; align-items: center; gap: 8px; }
.schedule-target-list i { color: #9aa4b4; font-size: 8px; font-style: normal; }
.schedule-target-list strong { color: #59667a; font-size: 10px; }
.schedule-target-list em { color: var(--gov-primary); font-size: 10px; font-style: normal; }

@media (max-width: 1050px) {
  .schedule-tree-layout { grid-template-columns: 300px minmax(0,1fr); }
  .schedule-rule-row { grid-template-columns: 30px 1fr 80px 1fr 28px; }
}
@media (max-width: 820px) {
  .scheduling-domain-row { flex-direction: column; }
  .scheduling-domain-select { flex-basis: auto; width: 255px; }
  .schedule-flow-tabs { grid-template-columns: 1fr; }
  .schedule-tree-layout { grid-template-columns: 1fr; }
  .schedule-tree-panel,.schedule-config-panel { min-height: 0; }
}

/* Workbench command layout */
.sidebar-domain-select {
  position: relative;
  z-index: 40;
  margin: 12px 12px 4px;
}

.sidebar-domain-select .domain-select-trigger {
  width: 100%;
  min-height: 58px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  color: #59667a;
  background: #fafbfc;
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  text-align: left;
}

.sidebar-domain-select .domain-select-trigger:hover,
.sidebar-domain-select .domain-select-trigger.open {
  color: var(--gov-primary);
  background: #fff8fb;
  border-color: #f2bfd0;
}

.sidebar-domain-select .domain-select-trigger > span,
.sidebar-domain-select .domain-select-option > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gov-primary);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-domain-select .domain-select-trigger small,
.sidebar-domain-select .domain-select-trigger strong {
  display: block;
}

.sidebar-domain-select .domain-select-trigger small {
  color: #9aa4b4;
  font-size: 9px;
}

.sidebar-domain-select .domain-select-trigger strong {
  margin-top: 3px;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-domain-select .domain-select-trigger > em {
  color: #929cab;
  font-style: normal;
  transition: transform .18s ease;
}

.sidebar-domain-select .domain-select-trigger.open > em {
  transform: rotate(180deg);
}

.sidebar-domain-select .domain-current-summary {
  display: block;
  margin: 5px 2px 0;
  color: #a1a9b6;
  font-size: 9px;
}

.sidebar-domain-select .domain-select-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  left: 0;
  width: 286px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 9px;
  box-shadow: 0 16px 40px rgba(31,45,70,.18);
}

.sidebar-domain-select .domain-select-menu header {
  padding: 7px 8px 9px;
  border-bottom: 1px solid #edf0f4;
}

.sidebar-domain-select .domain-select-menu header strong,
.sidebar-domain-select .domain-select-menu header small {
  display: block;
}

.sidebar-domain-select .domain-select-menu header strong { color: #344054; font-size: 12px; }
.sidebar-domain-select .domain-select-menu header small { margin-top: 3px; color: #929cab; font-size: 9px; }

.sidebar-domain-select .domain-select-option {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 18px;
  gap: 8px;
  align-items: center;
  color: #59667a;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}

.sidebar-domain-select .domain-select-option:hover { background: #fff8fb; }
.sidebar-domain-select .domain-select-option.active { background: var(--gov-primary-soft); border-color: #f2bfd0; box-shadow: inset 3px 0 var(--gov-primary); }
.sidebar-domain-select .domain-select-option strong,
.sidebar-domain-select .domain-select-option small { display: block; }
.sidebar-domain-select .domain-select-option strong { color: #344054; font-size: 11px; }
.sidebar-domain-select .domain-select-option small { margin-top: 2px; color: #929cab; font-size: 9px; }
.sidebar-domain-select .domain-select-option > b { color: var(--gov-primary); text-align: center; }

.dashboard-heading {
  position: relative;
}

.dashboard-heading .heading-actions {
  position: relative;
}

.alert-trigger {
  position: relative;
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #e46772;
  background: #fff5f5;
  border: 1px solid #f5d6d9;
  border-radius: 7px;
}

.alert-trigger:hover { background: #ffecef; border-color: #efaeb7; }
.alert-trigger > span { font-size: 17px; font-weight: 800; }
.alert-trigger > b { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; color: #fff; background: #ed6c78; border: 2px solid #f5f7f9; border-radius: 9px; font-size: 9px; }

.alert-popover {
  position: absolute;
  z-index: 35;
  top: 142px;
  right: 25px;
  width: 330px;
  padding: 10px;
  display: none;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(31,45,70,.16);
}

.alert-popover.open { display: block; }
.alert-popover-head { padding: 3px 5px 10px; display: flex; justify-content: space-between; border-bottom: 1px solid #edf0f4; }
.alert-popover-head strong,.alert-popover-head small { display: block; }
.alert-popover-head strong { color: #344054; font-size: 14px; }
.alert-popover-head small { margin-top: 3px; color: #929cab; font-size: 10px; }
.alert-popover-head button { width: 24px; height: 24px; color: #929cab; background: transparent; border: 0; font-size: 17px; }
.alert-popover-row { padding: 10px 5px; display: flex; align-items: flex-start; gap: 9px; border-bottom: 1px solid #f1f3f5; }
.alert-popover-row:last-child { border-bottom: 0; }
.alert-popover-row .alert-icon { flex: 0 0 auto; }
.alert-popover-row strong { color: #4f5d73; font-size: 11px; }
.alert-popover-row p { margin: 3px 0 0; color: #929cab; font-size: 10px; line-height: 1.45; }

.dashboard-metric-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card-clickable {
  position: relative;
  width: 100%;
  min-height: 158px;
  cursor: pointer;
  text-align: left;
}

.metric-card-clickable:hover { border-color: #f2bfd0; }
.metric-sparkline { position: absolute; right: 15px; bottom: 13px; width: 43%; height: 34px; opacity: .9; pointer-events: none; }
.metric-sparkline path { fill: none; stroke: var(--gov-primary); stroke-width: 2.5; stroke-linecap: round; }
.metric-card-clickable:nth-child(2) .metric-sparkline path { stroke: #5fbf9e; }
.metric-card-clickable:nth-child(3) .metric-sparkline path { stroke: #8b72e8; }
.metric-card-clickable:nth-child(4) .metric-sparkline path { stroke: #ef9b4d; }
.metric-modal { width: min(1080px, calc(100vw - 48px)); max-height: min(860px, calc(100vh - 48px)); overflow: hidden; }
.metric-modal .modal-header { margin-bottom: 0; padding: 22px 26px 18px; }
#metricModalBody { max-height: calc(100vh - 140px); padding: 24px 26px 28px; overflow-y: auto; }
.metric-modal-overview { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(420px, 1.28fr); gap: 22px; align-items: stretch; }
.metric-modal-overview > div:first-child { display: flex; flex-direction: column; justify-content: center; min-height: 180px; padding: 24px; border: 1px solid #edf0f4; border-radius: 12px; background: linear-gradient(145deg, #fff, #f8fbff); }
.metric-modal-overview > div:first-child > span { color: #929cab; font-size: 12px; }
.metric-modal-value { display: block; margin: 9px 0 7px; color: #263348; font-size: 38px; line-height: 1.1; font-weight: 700; }
.metric-modal-value small { color: #8d97a7; font-size: 17px; font-weight: 500; }
.metric-modal-overview p { margin: 0; color: #7f899a; font-size: 12px; line-height: 1.7; }
.metric-modal-chart { position: relative; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 18px 22px 14px; background: #f8f9fc; border-radius: 12px; }
.metric-modal-chart > span { margin-top: 5px; color: #a1a9b6; font-size: 10px; }
.metric-coordinate-chart { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 17px 130px 24px; min-width: 0; }
.metric-chart-unit { grid-column: 1; grid-row: 1; align-self: start; color: #9aa3b1; font-size: 9px; }
.metric-chart-y-axis { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; padding-right: 8px; color: #9aa3b1; font-size: 9px; text-align: right; }
.metric-chart-plot { position: relative; grid-column: 2; grid-row: 2; min-width: 0; overflow: hidden; border-left: 1px solid #dfe4eb; border-bottom: 1px solid #dfe4eb; }
.metric-chart-grid { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.metric-chart-grid i { display: block; width: 100%; height: 1px; background: #e3e7ed; }
.metric-chart-grid i:last-child { background: transparent; }
.metric-sparkline-large { position: relative; z-index: 1; display: block; width: 100%; height: 130px; }
.metric-sparkline-large path { fill: none; stroke: var(--gov-primary); stroke-width: 3; }
.metric-chart-x-axis { grid-column: 2; grid-row: 3; display: flex; align-items: end; justify-content: space-between; color: #9aa3b1; font-size: 8px; }
.metric-chart-reviewers .metric-sparkline-large path { stroke: #5fbf9e; }
.metric-chart-duration .metric-sparkline-large path { stroke: #8b72e8; }
.metric-chart-throughput .metric-sparkline-large path { stroke: #ef9b4d; }
.metric-detail-section { margin-top: 24px; border: 1px solid #e9edf2; border-radius: 12px; overflow: hidden; background: #fff; }
.metric-detail-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #edf0f3; background: #fbfcfd; }
.metric-detail-heading h3 { margin: 0; color: #344054; font-size: 16px; }
.metric-detail-heading p { margin: 5px 0 0; color: #929cab; font-size: 11px; }
.metric-detail-heading > span { color: #7b8595; font-size: 11px; }
.metric-detail-list { padding: 4px 20px; }
.metric-detail-row { display: grid; grid-template-columns: 34px 38px minmax(0, 1fr) 112px; gap: 12px; align-items: center; min-height: 72px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.metric-detail-row:last-child { border-bottom: 0; }
.metric-detail-rank { color: #a3acb9; font-size: 11px; font-weight: 600; }
.metric-detail-symbol { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gov-primary); background: var(--gov-primary-soft); border-radius: 9px; font-size: 12px; font-weight: 700; }
.metric-detail-identity { min-width: 0; }
.metric-detail-identity > strong,.metric-detail-identity > small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-detail-identity > strong { color: #445066; font-size: 13px; }
.metric-detail-identity > small { margin-top: 4px; color: #929cab; font-size: 10px; }
.metric-detail-identity > i { display: block; height: 5px; margin-top: 8px; overflow: hidden; background: #edf1f5; border-radius: 5px; }
.metric-detail-identity > i > b { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--gov-primary), #ff88aa); border-radius: inherit; }
.metric-detail-value { text-align: right; }
.metric-detail-value strong,.metric-detail-value small { display: block; }
.metric-detail-value strong { color: #344054; font-size: 15px; }
.metric-detail-value small { margin-top: 4px; color: #929cab; font-size: 10px; }
.metric-reviewer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.metric-reviewer-card { padding: 16px; border: 1px solid #edf0f3; border-radius: 10px; background: #fff; }
.metric-reviewer-card header { display: flex; align-items: center; gap: 10px; }
.metric-reviewer-card header > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, var(--gov-primary), #8c6ee8); border-radius: 10px; font-weight: 700; }
.metric-reviewer-card header > div { min-width: 0; flex: 1; }
.metric-reviewer-card header strong,.metric-reviewer-card header small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-reviewer-card header strong { color: #445066; font-size: 12px; }
.metric-reviewer-card header small { margin-top: 4px; color: #929cab; font-size: 9px; }
.metric-reviewer-card header em { padding: 4px 7px; border-radius: 10px; font-size: 9px; font-style: normal; }
.metric-reviewer-card header em.healthy { color: #259b76; background: #eaf8f3; }
.metric-reviewer-card header em.attention { color: #d68034; background: #fff4e9; }
.metric-reviewer-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.metric-reviewer-stats span { color: #929cab; font-size: 10px; }
.metric-reviewer-stats span + span { padding-left: 16px; border-left: 1px solid #edf0f3; }
.metric-reviewer-stats strong { display: block; margin-top: 5px; color: #344054; font-size: 19px; }
.metric-reviewer-stats strong small { color: #929cab; font-size: 11px; font-weight: 500; }
.metric-reviewer-progress { margin-top: 15px; }
.metric-reviewer-progress > span { display: flex; justify-content: space-between; color: #929cab; font-size: 9px; }
.metric-reviewer-progress > span b { font-weight: 500; }
.metric-reviewer-progress > span em { font-style: normal; }
.metric-reviewer-progress > i { display: block; height: 5px; margin-top: 6px; background: #edf1f5; border-radius: 5px; overflow: hidden; }
.metric-reviewer-progress > i b { display: block; height: 100%; background: #5fbf9e; border-radius: inherit; }
.metric-ranking-table { padding: 0 20px 8px; }
.metric-ranking-head,.metric-ranking-table article { display: grid; grid-template-columns: minmax(280px, 1.5fr) .55fr .55fr .5fr .55fr; gap: 16px; align-items: center; }
.metric-ranking-head { min-height: 42px; color: #9aa3b1; font-size: 9px; border-bottom: 1px solid #edf0f3; }
.metric-ranking-table article { min-height: 62px; border-bottom: 1px solid #f0f2f5; color: #667085; font-size: 11px; }
.metric-ranking-table article:last-child { border-bottom: 0; }
.metric-ranking-table article > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.metric-ranking-table article > div > b { width: 24px; color: #a3acb9; font-size: 10px; }
.metric-ranking-table article > div > span:last-child { min-width: 0; }
.metric-ranking-table article > div strong,.metric-ranking-table article > div small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-ranking-table article > div strong { color: #445066; font-size: 12px; }
.metric-ranking-table article > div small { margin-top: 3px; color: #9aa3b1; font-size: 9px; }
.metric-danger-value { color: #e05264 !important; }
.throughput-list .metric-detail-row { grid-template-columns: 34px 38px minmax(0, 1fr) 112px 72px; }
.legacy-dashboard-insights { display: none; }

@media (max-width: 700px) {
  .sidebar-domain-select .domain-select-menu { width: min(286px, calc(100vw - 30px)); }
  .alert-popover { top: 125px; right: 12px; width: min(330px, calc(100vw - 24px)); }
  .dashboard-metric-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-modal { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  #metricModalBody { padding: 16px; }
  .metric-modal-overview { grid-template-columns: 1fr; }
  .metric-modal-overview > div:first-child { min-height: 130px; }
  .metric-coordinate-chart { grid-template-columns: 38px minmax(0, 1fr); }
  .metric-chart-x-axis span:nth-child(even) { display: none; }
  .metric-reviewer-grid { grid-template-columns: 1fr; }
  .metric-detail-row { grid-template-columns: 28px 34px minmax(0, 1fr) 82px; }
  .throughput-list .metric-detail-row { grid-template-columns: 28px 34px minmax(0, 1fr) 82px; }
  .throughput-list .status-badge { display: none; }
  .metric-ranking-head { display: none; }
  .metric-ranking-table article { grid-template-columns: minmax(190px, 1fr) .6fr .5fr; }
  .metric-ranking-table article > span:nth-of-type(2),.metric-ranking-table article > em { display: none; }
}

.modal-backdrop.open {
  display: flex;
}

/* Prevent metric trend charts from overlapping progress bars */
.metric-card-clickable {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.metric-card-clickable .metric-top,
.metric-card-clickable > p,
.metric-card-clickable > strong,
.metric-card-clickable > .metric-note {
  flex: 0 0 auto;
}

.metric-card-clickable > .progress {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 11px;
}

.metric-card-clickable .metric-sparkline {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  height: 28px;
  margin-top: 10px;
}

.metric-card-clickable > .progress + .metric-sparkline {
  margin-top: 8px;
}

/* Machine-review to task-pool strategy list */
.machine-pool-strategy-panel {
  min-height: 100%;
}

.strategy-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.strategy-list-header h2 {
  margin: 7px 0 4px;
  color: #344054;
  font-size: 20px;
}

.strategy-list-header p {
  margin: 0;
  color: #929cab;
  font-size: 11px;
}

.machine-pool-strategy-scope {
  margin: 18px 0 17px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fc;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
  color: #929cab;
  font-size: 10px;
}

.machine-pool-strategy-scope strong {
  padding: 6px 9px;
  color: #344054;
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 5px;
  font-size: 11px;
}

.machine-pool-strategy-scope i {
  color: var(--gov-primary);
  font-size: 16px;
  font-style: normal;
}

.strategy-list-toolbar {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f4;
}

.strategy-list-toolbar > strong {
  color: #344054;
  font-size: 13px;
}

.strategy-list-toolbar > span {
  color: #929cab;
  font-size: 10px;
}

.strategy-list-toolbar .search-field {
  width: 160px;
  margin-left: auto;
}

.machine-pool-strategy-row {
  min-height: 82px;
  margin-top: 8px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 7px;
  cursor: pointer;
}

.machine-pool-strategy-row:hover {
  background: #fff8fb;
  border-color: #f2bfd0;
}

.machine-pool-strategy-row h3 {
  margin: 6px 0 4px;
  color: #344054;
  font-size: 13px;
}

.machine-pool-strategy-row p {
  margin: 0;
  color: #929cab;
  font-size: 10px;
}

.machine-pool-strategy-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.machine-pool-strategy-meta b {
  color: var(--gov-primary);
  font-size: 10px;
}

@media (max-width: 760px) {
  .strategy-list-header,
  .machine-pool-strategy-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .machine-pool-strategy-scope {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .strategy-list-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .strategy-list-toolbar .search-field { width: 100%; margin-left: 0; }
}

/* Make the level-2 pool and level-3 channel hierarchy explicit */
.schedule-tree-children {
  margin-left: 17px;
  padding: 7px 0 2px 13px;
  border-left: 2px solid #f0c3d2;
}

.schedule-pool-level {
  position: relative;
  padding: 8px 8px 8px 12px;
  background: linear-gradient(90deg, #fff7fa 0%, #fff 72%);
  border: 1px solid #f3cbd7;
  border-radius: 9px;
}

.schedule-pool-level::before {
  content: "";
  position: absolute;
  top: 31px;
  left: -15px;
  width: 14px;
  height: 2px;
  background: #f0c3d2;
}

.schedule-pool-level > .schedule-tree-node.pool {
  min-height: 54px;
  padding: 7px 8px 7px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.schedule-pool-level > .schedule-tree-node.pool.active {
  background: rgba(251, 114, 153, .08);
  border-radius: 6px;
}

.tree-level-label {
  display: block;
  margin: 0 0 3px 39px;
  color: var(--gov-primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
}

.schedule-channel-level {
  position: relative;
  margin: 5px 0 0 39px;
  padding: 7px 0 1px 10px;
  border-top: 1px dashed #e5e8ee;
}

.schedule-channel-level::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: 15px;
  left: 0;
  border-left: 1px dashed #cfd6e0;
}

.schedule-channel-level > .tree-level-label {
  margin-left: 6px;
  color: #7b61dd;
}

.schedule-channel-level .schedule-channel-branch {
  position: relative;
  padding-left: 7px;
}

.schedule-channel-level .schedule-channel-branch::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -1px;
  width: 8px;
  border-top: 1px dashed #cfd6e0;
}

.schedule-channel-level .schedule-tree-node.channel {
  min-height: 43px;
  padding-left: 7px;
  background: #fff;
}

.schedule-channel-level .schedule-tree-node.channel:hover,
.schedule-channel-level .schedule-tree-node.channel.active {
  background: #f8f5ff;
  border-color: #ddd3fa;
}

.schedule-channel-level .schedule-tree-node.channel > span {
  color: #7b61dd;
  background: #f1edff;
}

.collapsed-machine-branch .schedule-tree-node.machine {
  background: #fff;
}

/* Channel delivery mode */
.channel-type-badge {
  display: inline-flex;
  align-items: center;
  min-width: 72px;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.channel-type-badge.system {
  color: #087ea4;
  background: #e8f8fc;
}

.channel-type-badge.manual {
  color: #6751b6;
  background: #f1edff;
}

.channel-delivery-config {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 11px;
  border: 1px solid var(--gov-line);
  border-radius: 7px;
  background: #fff;
  color: #8792a3;
  font-size: 11px;
  white-space: nowrap;
}

.channel-delivery-config select {
  min-width: 92px;
  padding: 6px 24px 6px 8px;
  border: 1px solid #dfe4ec;
  border-radius: 5px;
  outline: none;
  background: #f8f9fc;
  color: #344054;
  font-size: 12px;
}

.channel-delivery-config select:focus {
  border-color: var(--gov-primary);
  box-shadow: 0 0 0 2px rgba(0, 174, 236, .12);
}

@media (max-width: 760px) {
  .channel-delivery-config { width: 100%; justify-content: space-between; }
  .detail-actions { align-items: stretch; flex-direction: column; }
}

/* Multi-channel review workspace */
.review-picker-modal { width: min(720px, calc(100vw - 32px)); }
.review-picker-meta { display: flex; justify-content: space-between; margin: 0 0 12px; color: var(--arco-text-3); font-size: 12px; }
.review-picker-meta span:first-child { color: var(--arco-primary); font-weight: 600; }
.review-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; }
.review-picker-item { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px; border: 1px solid var(--arco-border); border-radius: 7px; cursor: pointer; transition: .18s ease; }
.review-picker-item:hover { border-color: #b9dff0; background: #f8fcfe; }
.review-picker-item.selected { border-color: var(--arco-primary); background: #f0fbfe; box-shadow: 0 0 0 2px rgba(0,174,236,.08); }
.review-picker-item.disabled { opacity: .42; cursor: not-allowed; }
.review-picker-item input { position: absolute; opacity: 0; }
.review-picker-item > i { display: grid; place-items: center; width: 17px; height: 17px; margin-left: auto; border: 1px solid #d8dee8; border-radius: 4px; color: transparent; font-size: 11px; font-style: normal; }
.review-picker-item.selected > i { border-color: var(--arco-primary); background: var(--arco-primary); color: #fff; }
.review-picker-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.review-picker-name strong { color: var(--arco-text-1); font-size: 13px; }
.review-picker-name small { overflow: hidden; color: var(--arco-text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-picker-item .channel-type-badge { min-width: 62px; padding: 3px 6px; font-size: 10px; }
.system-symbol { color: #087ea4 !important; background: #e8f8fc !important; }
.manual-symbol { color: #6751b6 !important; background: #f1edff !important; }
.review-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; align-items: start; }
.review-card { min-width: 0; overflow: hidden; border: 1px solid var(--arco-border); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(31,45,70,.06); }
.review-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--arco-border); }
.review-card-header h2 { margin: 4px 0 3px; color: var(--arco-text-1); font-size: 18px; }
.review-card-header small { color: var(--arco-text-3); font-size: 10px; }
.review-card-video { position: relative; height: 164px; overflow: hidden; background: linear-gradient(145deg,#dff5fb,#c8d4e9); }
.review-card-video .video-scene { width: 100%; height: 100%; }
.review-card-video > span { position: absolute; left: 12px; top: 10px; color: #fff; font-size: 10px; text-shadow: 0 1px 3px #345; }
.review-card-video > button { position: absolute; inset: 50% auto auto 50%; width: 40px; height: 40px; transform: translate(-50%,-50%); border: 0; border-radius: 50%; color: #fff; background: rgba(20,30,50,.55); }
.review-card-summary { padding: 12px 16px; border-bottom: 1px solid var(--arco-border); }
.review-card-summary span { color: var(--arco-primary); font-size: 11px; font-weight: 600; }
.review-card-summary p { margin: 6px 0 8px; color: var(--arco-text-2); font-size: 12px; line-height: 1.6; }
.review-card-summary strong { color: var(--arco-text-3); font-size: 11px; }
.review-card-actions { padding: 14px 16px 16px; }
.review-card-actions .review-section-title { margin-bottom: 10px; }
.review-card-actions .keyframe-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 16px; }
.review-card-actions .frame-thumb { height: 58px; }
.review-card-actions .keyframe-actions button { padding: 3px 4px; font-size: 10px; }
.review-card-actions .verdict-options { gap: 7px; margin-bottom: 12px; }
.review-card-actions .verdict-card { min-height: 48px; padding: 8px; }
.review-card-actions .verdict-card small { display: none; }
.card-submit { width: 100%; }
@media (max-width: 760px) { .review-picker-list { grid-template-columns: 1fr; } .review-cards-grid { grid-template-columns: 1fr; } }

/* Standalone review workspace */
body.review-fullscreen .sidebar { display: none; }
body.review-fullscreen .main-column { margin-left: 0; }
body.review-fullscreen main { max-width: none; padding: 16px 20px 24px; }
body.review-fullscreen .topbar { padding: 0 20px; }
body.review-fullscreen #view-review.active { min-height: calc(100vh - 68px); }
body.review-fullscreen .review-header { margin: -16px -20px 16px; padding: 12px 20px; }
body.review-fullscreen .review-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.review-fullscreen .review-card { height: calc(100vh - 132px); overflow-y: auto; }
body.review-fullscreen .review-card-video { height: clamp(150px, 20vh, 245px); }
body.review-fullscreen .review-card-summary p { max-height: 48px; overflow: hidden; }
@media (max-width: 1250px) {
  body.review-fullscreen .review-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.review-fullscreen .review-card { height: auto; }
}
@media (max-width: 700px) {
  body.review-fullscreen main { padding: 10px; }
  body.review-fullscreen .review-header { margin: -10px -10px 12px; padding: 10px; }
  body.review-fullscreen .review-cards-grid { grid-template-columns: 1fr; }
}

/* 16:9 large-screen review cards */
body.review-fullscreen .review-cards-grid { align-items: start; }
body.review-fullscreen .review-card {
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.review-fullscreen .review-card-header { flex: 0 0 22%; min-height: 0; padding: 10px 14px; }
body.review-fullscreen .review-card-header h2 { margin: 2px 0; font-size: 16px; }
body.review-fullscreen .review-card-header small { font-size: 9px; }
body.review-fullscreen .review-card-header .eyebrow { font-size: 9px; }
body.review-fullscreen .review-card-video { flex: 0 0 35%; height: auto; min-height: 0; }
body.review-fullscreen .review-card-summary { flex: 0 0 19%; min-height: 0; padding: 7px 14px; overflow: hidden; }
body.review-fullscreen .review-card-summary p { margin: 3px 0; max-height: 32px; font-size: 10px; line-height: 1.45; }
body.review-fullscreen .review-card-summary span,
body.review-fullscreen .review-card-summary strong { font-size: 9px; }
body.review-fullscreen .review-card-actions { flex: 1 1 auto; min-height: 0; padding: 7px 14px 10px; overflow: hidden; }
body.review-fullscreen .review-card-actions .review-section-title { margin-bottom: 4px; }
body.review-fullscreen .review-card-actions .review-section-title h3 { font-size: 13px; }
body.review-fullscreen .review-card-actions .review-section-title span { font-size: 9px; }
body.review-fullscreen .review-card-actions .keyframe-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 7px; }
body.review-fullscreen .review-card-actions .frame-thumb { height: 32px; }
body.review-fullscreen .review-card-actions .frame-thumb span { padding: 1px 3px; font-size: 8px; }
body.review-fullscreen .review-card-actions .keyframe-actions { display: flex; }
body.review-fullscreen .review-card-actions .keyframe-actions button { padding: 1px 2px; font-size: 8px; }
body.review-fullscreen .review-card-actions .verdict-options { gap: 5px; margin-bottom: 6px; }
body.review-fullscreen .review-card-actions .verdict-card { min-height: 30px; padding: 4px 7px; }
body.review-fullscreen .review-card-actions .verdict-card strong { font-size: 11px; }
body.review-fullscreen .review-card-actions .card-submit { min-height: 27px; padding: 4px 10px; font-size: 11px; }
@media (max-width: 1250px) {
  body.review-fullscreen .review-card { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  body.review-fullscreen .review-card { aspect-ratio: 16 / 9; }
}

/* Full-width review canvas: do not inherit the old two-column detail layout */
body.review-fullscreen .review-layout {
  display: block;
  width: 100%;
}
body.review-fullscreen .review-cards-grid {
  width: 100%;
}

/* A single selected channel owns the full review canvas */
body.review-fullscreen .review-cards-grid:has(.review-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
}
body.review-fullscreen .review-cards-grid:has(.review-card:only-child) .review-card {
  width: 100%;
}

/* Four-channel review uses a 2 x 2 large-screen canvas */
body.review-fullscreen .review-cards-grid.review-card-count-4,
body.review-fullscreen .review-cards-grid.review-card-count-3,
body.review-fullscreen .review-cards-grid.review-card-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.review-fullscreen .review-cards-grid.review-card-count-4 {
  grid-auto-rows: minmax(0, 1fr);
}
body.review-fullscreen .review-cards-grid.review-card-count-4 .review-card {
  min-height: 0;
}

/* Channel detail: card preview and reviewer binding */
#view-queue-detail .detail-grid {
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
}
.queue-detail-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.queue-card-style-panel { overflow: hidden; }
.queue-card-preview {
  overflow: hidden;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
  background: #fff;
}
.queue-card-preview > header {
  min-height: 72px;
  padding: 12px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--gov-line);
}
.queue-card-preview > header h3 { margin: 3px 0; color: #263348; font-size: 17px; }
.queue-card-preview > header small { color: #98a2b3; font-size: 10px; }
.queue-preview-body {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(340px, 1.15fr);
  min-height: 350px;
}
.queue-preview-media {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  background: linear-gradient(145deg,#dff5fb,#c8d4e9);
}
.queue-preview-media .video-scene { width: 100%; height: 100%; }
.queue-preview-media > span { position: absolute; left: 12px; top: 10px; color: #fff; font-size: 10px; text-shadow: 0 1px 3px #345; }
.queue-preview-media > button { position: absolute; inset: 50% auto auto 50%; width: 48px; height: 48px; transform: translate(-50%,-50%); border: 0; border-radius: 50%; color: #fff; background: rgba(20,30,50,.55); }
.queue-preview-content { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--gov-line); }
.queue-preview-summary { padding: 12px 14px; border-bottom: 1px solid var(--gov-line); }
.queue-preview-summary span { color: var(--gov-primary); font-size: 10px; font-weight: 600; }
.queue-preview-summary p { margin: 5px 0 7px; color: #59667a; font-size: 11px; line-height: 1.55; }
.queue-preview-summary strong { color: #929cab; font-size: 10px; }
.queue-preview-actions { padding: 12px 14px; }
.queue-preview-frames { margin: 8px 0 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.queue-preview-frames .frame-thumb { height: 62px; }
.queue-preview-conclusion > strong { color: #344054; font-size: 13px; }
.queue-preview-conclusion > div { margin: 8px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.queue-preview-conclusion > div button { min-height: 38px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--gov-line); border-radius: 6px; color: #344054; background: #fff; }
.queue-preview-conclusion > div span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: #188665; background: #eaf8f3; }
.queue-preview-conclusion > div button:last-child span { color: #d84141; background: #ffebeb; }
.queue-preview-conclusion > .button { width: 100%; }
.reviewer-binding-panel { position: sticky; top: 84px; }
.reviewer-binding-summary { margin-bottom: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8792a3; background: #f8f9fc; border-radius: 6px; font-size: 10px; }
.reviewer-binding-summary strong { color: #344054; font-size: 14px; }
.reviewer-binding-list { display: grid; gap: 7px; }
.reviewer-binding-item { position: relative; min-height: 55px; padding: 8px 9px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--gov-line); border-radius: 7px; cursor: pointer; transition: .18s ease; }
.reviewer-binding-item:hover { border-color: #efbdcf; background: #fff9fb; }
.reviewer-binding-item.selected { border-color: #ef9fbc; background: #fff5f8; }
.reviewer-binding-item input { position: absolute; opacity: 0; pointer-events: none; }
.reviewer-binding-item .avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; font-size: 12px; }
.reviewer-binding-item > span:nth-of-type(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.reviewer-binding-item strong { color: #344054; font-size: 12px; }
.reviewer-binding-item small { overflow: hidden; color: #929cab; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.reviewer-binding-item > i { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dce1e8; border-radius: 4px; color: transparent; font-size: 11px; font-style: normal; }
.reviewer-binding-item.selected > i { border-color: var(--gov-primary); color: #fff; background: var(--gov-primary); }
.reviewer-binding-footer { margin-top: 14px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--gov-line); }
.reviewer-binding-footer span { color: #929cab; font-size: 9px; }
@media (max-width: 1150px) {
  #view-queue-detail .detail-grid { grid-template-columns: 1fr; }
  .reviewer-binding-panel { position: static; }
}
@media (max-width: 760px) {
  .queue-preview-body { grid-template-columns: 1fr; }
  .queue-preview-media { min-height: 230px; }
  .queue-preview-content { border-left: 0; border-top: 1px solid var(--gov-line); }
}

/* Reviewer binding: current members and base-filtered picker */
.bound-reviewer-section,
.reviewer-picker-section {
  padding: 12px 0;
  border-top: 1px solid var(--gov-line);
}
.bound-reviewer-section { padding-top: 2px; border-top: 0; }
.reviewer-subheading {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reviewer-subheading strong { color: #344054; font-size: 12px; }
.reviewer-subheading span { color: #929cab; font-size: 10px; }
.bound-reviewer-list { display: grid; gap: 7px; }
.bound-reviewer-item {
  min-height: 52px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e7eaf0;
  border-radius: 7px;
  background: #fbfcfe;
}
.bound-reviewer-item .avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; font-size: 11px; }
.bound-reviewer-item > span:nth-of-type(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.bound-reviewer-item strong { color: #344054; font-size: 12px; }
.bound-reviewer-item small { color: #929cab; font-size: 9px; }
.bound-reviewer-item > button { width: 24px; height: 24px; border: 0; border-radius: 5px; color: #98a2b3; background: transparent; }
.bound-reviewer-item > button:hover { color: #d84141; background: #ffebeb; }
.reviewer-picker-filters { margin-bottom: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.reviewer-picker-filters label { display: flex; flex-direction: column; gap: 4px; color: #8792a3; font-size: 9px; }
.reviewer-picker-filters select,
.reviewer-picker-filters input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #dfe4ec; border-radius: 6px; outline: none; color: #344054; background: #fff; font-size: 11px; }
.reviewer-picker-filters select:focus,
.reviewer-picker-filters input:focus { border-color: var(--gov-primary); box-shadow: 0 0 0 2px rgba(242, 93, 141, .1); }
.reviewer-candidate-list { max-height: 240px; overflow-y: auto; display: grid; gap: 7px; }
.reviewer-candidate-item[hidden] { display: none; }
.reviewer-candidate-empty,
.reviewer-filter-empty { padding: 22px 10px; color: #98a2b3; background: #f8f9fc; border-radius: 6px; text-align: center; font-size: 10px; }
@media (max-width: 760px) {
  .reviewer-picker-filters { grid-template-columns: 1fr; }
}

/* Queue detail: review groups and active reviewers */
.queue-group-panel { position: sticky; top: 84px; }
.queue-group-summary { margin-bottom: 14px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8792a3; background: #f8f9fc; border-radius: 7px; font-size: 10px; line-height: 1.5; }
.queue-group-summary strong { flex: 0 0 auto; color: #344054; font-size: 14px; }
.queue-group-section,.queue-active-section { padding: 4px 0 15px; }
.queue-active-section { padding-top: 14px; border-top: 1px solid var(--gov-line); }
.queue-group-subheading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.queue-group-subheading strong { color: #344054; font-size: 12px; }
.queue-group-subheading span { color: #929cab; font-size: 10px; }
.queue-bound-group-list,.queue-active-reviewer-list { display: grid; gap: 8px; }
.queue-bound-group-card { min-height: 62px; padding: 10px; display: grid; grid-template-columns: 38px minmax(0,1fr) 42px auto; gap: 9px; align-items: center; border: 1px solid #e7eaf0; border-radius: 8px; background: #fbfcfe; }
.queue-group-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--gov-primary),#8c6ee8); border-radius: 9px; font-size: 12px; font-weight: 700; }
.queue-bound-group-card > div:nth-child(2) { min-width: 0; }
.queue-bound-group-card > div:nth-child(2) strong,.queue-bound-group-card > div:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-bound-group-card > div:nth-child(2) strong { color: #344054; font-size: 11px; }
.queue-bound-group-card > div:nth-child(2) small { margin-top: 4px; color: #929cab; font-size: 9px; }
.queue-group-meta { text-align: center; }
.queue-group-meta strong,.queue-group-meta small { display: block; }
.queue-group-meta strong { color: #344054; font-size: 12px; }
.queue-group-meta small { margin-top: 2px; color: #929cab; font-size: 8px; }
.queue-bound-group-card > em { padding: 4px 7px; color: #7c8798; background: #f0f2f5; border-radius: 10px; font-size: 8px; font-style: normal; white-space: nowrap; }
.queue-bound-group-card > em.enabled { color: #258868; background: #eaf8f3; }
.queue-active-reviewer { min-height: 64px; padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #e7eaf0; border-radius: 8px; background: #fff; }
.queue-active-reviewer .avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; font-size: 11px; }
.queue-active-reviewer > div { min-width: 0; flex: 1; }
.queue-active-reviewer > div > strong,.queue-active-reviewer > div > small { display: block; }
.queue-active-reviewer > div > strong { color: #344054; font-size: 11px; }
.queue-active-reviewer > div > small { margin-top: 3px; color: #929cab; font-size: 8px; }
.queue-active-reviewer p { margin: 5px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.queue-active-reviewer p span { max-width: 100%; padding: 2px 5px; overflow: hidden; color: #7d658d; background: #f6effa; border-radius: 4px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.queue-active-reviewer > em { flex: 0 0 auto; padding: 4px 7px; border-radius: 10px; font-size: 8px; font-style: normal; }
.queue-active-reviewer > em.online { color: #258868; background: #eaf8f3; }
.queue-active-reviewer > em.reviewing { color: #c87328; background: #fff3e7; }
.queue-group-empty { padding: 24px 10px; color: #98a2b3; background: #f8f9fc; border-radius: 7px; text-align: center; font-size: 10px; }
@media (max-width:1150px) { .queue-group-panel { position: static; } }
@media (max-width:520px) { .queue-bound-group-card { grid-template-columns: 36px minmax(0,1fr) auto; } .queue-group-meta { display:none; } }

/* Queue view: scene-to-queue and queue-to-scene perspectives */
.workbench-view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workbench-perspective-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 28px;
  border-bottom: 1px solid #e5e8ee;
}

.workbench-perspective-switch button {
  position: relative;
  min-width: 210px;
  min-height: 48px;
  padding: 0 5px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: #7c8799;
  background: transparent;
  text-align: left;
  transition: color .18s ease;
}

.workbench-perspective-switch button > i {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #8792a3;
  background: #f0f2f5;
  border-radius: 7px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}

.workbench-perspective-switch button > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workbench-perspective-switch button strong {
  color: #59667a;
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease;
}

.workbench-perspective-switch button small {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 400;
}

.workbench-perspective-switch button:hover strong { color: #263348; }

.workbench-perspective-switch button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gov-primary);
  content: "";
}

.workbench-perspective-switch button.active strong { color: var(--gov-primary); }
.workbench-perspective-switch button.active > i { color: #fff; background: var(--gov-primary); }

.queue-nav-item .scene-status.danger,
.scene-status.danger {
  background: #e85b61;
}

.queue-perspective-metrics {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
}

.queue-perspective-metrics > span {
  padding: 14px 16px;
  color: #8792a3;
  border-right: 1px solid var(--gov-line);
  font-size: 10px;
}

.queue-perspective-metrics > span:last-child {
  border-right: 0;
}

.queue-perspective-metrics strong,
.queue-perspective-metrics small {
  display: block;
}

.queue-perspective-metrics strong {
  margin: 5px 0 2px;
  color: #263348;
  font-size: 18px;
}

.queue-perspective-metrics small {
  color: #9aa4b4;
  font-size: 9px;
}

.queue-reference-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.queue-reference-heading h3 {
  margin: 0;
  color: #344054;
  font-size: 15px;
}

.queue-reference-heading p {
  margin: 3px 0 0;
  color: #929cab;
  font-size: 10px;
}

.queue-reference-heading > span {
  color: #929cab;
  font-size: 10px;
}

.queue-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.queue-reference-card {
  min-height: 218px;
  padding: 15px;
  color: #59667a;
  background: #fff;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
  text-align: left;
  transition: .18s ease;
}

.queue-reference-card:hover {
  border-color: #f2bfd0;
  box-shadow: 0 6px 18px rgba(31, 45, 70, .07);
  transform: translateY(-1px);
}

.queue-reference-card > small {
  display: block;
  margin-top: 12px;
  color: #9aa4b4;
  font-size: 10px;
}

.queue-reference-card h3 {
  margin: 4px 0;
  color: #344054;
  font-size: 15px;
}

.queue-reference-card > p {
  min-height: 34px;
  margin: 0;
  color: #8792a3;
  font-size: 11px;
  line-height: 1.55;
}

.reference-pool-row {
  margin-top: 13px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8f9fc;
  border-radius: 6px;
}

.reference-pool-row span {
  color: #929cab;
  font-size: 9px;
}

.reference-pool-row strong {
  overflow: hidden;
  color: #59667a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-reference-card footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #929cab;
  font-size: 10px;
}

.queue-reference-card footer b {
  color: var(--gov-primary);
}

@media (max-width: 1180px) {
  .workbench-toolbar-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-view-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .workbench-view-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench-perspective-switch {
    width: 100%;
    gap: 10px;
  }

  .workbench-perspective-switch button {
    flex: 1;
    min-width: 0;
  }

  .workbench-perspective-switch button small { display: none; }

  .queue-perspective-metrics,
  .queue-reference-grid {
    grid-template-columns: 1fr;
  }

  .queue-perspective-metrics > span {
    border-right: 0;
    border-bottom: 1px solid var(--gov-line);
  }

  .queue-perspective-metrics > span:last-child {
    border-bottom: 0;
  }
}

/* Queue management */
.queue-genre-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--gov-line, #e5e8ef);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 45, 70, .035);
}
.queue-genre-tabs button {
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  color: #667085;
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
  transition: .18s ease;
}
.queue-genre-tabs button:hover { color: var(--gov-primary, #00aeec); background: #f5fbfd; }
.queue-genre-tabs button.active { color: #087ea4; background: #eaf8fc; font-weight: 600; }
.queue-genre-tabs button b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 10px;
  color: #98a2b3;
  background: #f2f4f7;
  font-size: 10px;
}
.queue-genre-tabs button.active b { color: #087ea4; background: #d6f1f8; }
.template-genre-tabs { margin-bottom: 14px; }
.template-global-scope { margin-left: auto; color: #667085; font-size: 11px; }
.queue-scope-summary { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #98a2b3; font-size: 12px; }
.queue-scope-summary span { color: #475467; font-weight: 600; }
.queue-scope-summary i { width: 1px; height: 14px; background: #e4e7ec; }
.queue-scope-summary strong { color: var(--gov-primary, #00aeec); }
.queue-genre-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 5px;
  color: #475467;
  background: #f2f4f7;
  font-size: 11px;
  font-weight: 600;
}
.genre-视频 { color: #1769aa; background: #eaf3ff; }
.genre-直播 { color: #c43267; background: #fff0f5; }
.genre-图文 { color: #8a5c10; background: #fff7e8; }
.genre-多模态 { color: #6941c6; background: #f4f0ff; }
.genre-音频 { color: #087e72; background: #eaf9f5; }
.genre-评论 { color: #475467; background: #f2f4f7; }
.queue-scene-cell { min-width: 150px; display: flex; flex-direction: column; gap: 3px; }
.queue-scene-cell strong { max-width: 180px; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.queue-scene-cell small { max-width: 180px; overflow: hidden; color: #98a2b3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.queue-owner { display: inline-flex; align-items: center; gap: 7px; color: #475467; white-space: nowrap; }
.queue-owner i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #087ea4; background: #e8f8fc; font-size: 10px; font-style: normal; font-weight: 700; }
.queue-table-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: #98a2b3; }
.queue-table-empty span { font-size: 30px; }
.queue-table-empty strong { color: #475467; font-size: 14px; }
.queue-table-empty small { font-size: 11px; }
.queue-create-modal { width: min(760px, calc(100vw - 32px)); }
.queue-create-modal .modal-header p { margin: 5px 0 0; color: #98a2b3; font-size: 11px; }
.queue-create-modal form { padding: 18px 22px 0; }
.queue-form-section + .queue-form-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid #eaecf0; }
.queue-form-section h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; color: #344054; font-size: 14px; }
.queue-form-section h3 span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #087ea4; background: #e8f8fc; font-size: 11px; }
.queue-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.queue-form-grid label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #475467; font-size: 12px; font-weight: 500; }
.queue-form-grid input,
.queue-form-grid select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #dfe3e8; border-radius: 6px; outline: 0; color: #344054; background: #fff; font-size: 13px; }
.queue-form-grid input:focus,
.queue-form-grid select:focus { border-color: var(--gov-primary, #00aeec); box-shadow: 0 0 0 3px rgba(0, 174, 236, .1); }
.queue-form-grid label small { min-height: 15px; color: #98a2b3; font-size: 10px; font-weight: 400; line-height: 1.45; }
.queue-create-modal .modal-actions { margin: 22px -22px 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.queue-form-tip { margin-right: auto; color: #98a2b3; font-size: 11px; }
@media (max-width: 760px) {
  .queue-form-grid { grid-template-columns: 1fr; }
  .queue-form-tip { display: none; }
  .queue-scope-summary { display: none; }
}

/* Queue creation wizard */
.queue-create-modal { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.queue-create-modal form { display: flex; min-height: 620px; max-height: calc(100vh - 126px); padding: 0; flex-direction: column; }
.queue-create-steps { display: flex; align-items: center; padding: 18px 24px; border-bottom: 1px solid #eaecf0; background: #fbfcfd; }
.queue-create-steps > button { min-width: 132px; padding: 0; display: flex; align-items: center; gap: 9px; border: 0; color: #98a2b3; background: transparent; text-align: left; cursor: default; }
.queue-create-steps > b { height: 1px; min-width: 20px; margin: 0 13px; flex: 1; background: #e4e7ec; }
.queue-create-steps button i { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d0d5dd; border-radius: 50%; color: #98a2b3; background: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.queue-create-steps button span { display: flex; flex-direction: column; gap: 2px; }
.queue-create-steps button strong { color: #667085; font-size: 12px; }
.queue-create-steps button small { font-size: 9px; white-space: nowrap; }
.queue-create-steps button.active i { border-color: var(--gov-primary, #00aeec); color: #fff; background: var(--gov-primary, #00aeec); box-shadow: 0 0 0 4px rgba(0,174,236,.1); }
.queue-create-steps button.active strong { color: #087ea4; }
.queue-create-steps button.completed { cursor: pointer; }
.queue-create-steps button.completed i { border-color: #55b89d; color: transparent; background: #eaf8f3; position: relative; }
.queue-create-steps button.completed i::after { content: "✓"; position: absolute; color: #188665; }
.queue-create-steps button.completed + b { background: #88cfbc; }
.queue-create-panel { display: none; min-height: 0; padding: 22px 26px 26px; overflow-y: auto; flex: 1; }
.queue-create-panel.active { display: block; animation: queueStepIn .18s ease-out; }
@keyframes queueStepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.queue-step-heading { margin-bottom: 20px; }
.queue-step-heading > span { color: var(--gov-primary, #00aeec); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.queue-step-heading h3 { margin: 5px 0 4px; color: #263348; font-size: 18px; }
.queue-step-heading p { margin: 0; color: #98a2b3; font-size: 11px; }
.queue-create-modal .queue-form-grid { max-width: 760px; }
.queue-scene-selector { display: flex; flex-direction: column; gap: 7px; color: #475467; font-size: 12px; font-weight: 600; }
.queue-scene-selector select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dfe3e8; border-radius: 7px; outline: 0; color: #344054; background: #fff; }
.queue-scene-selector select:focus { border-color: var(--gov-primary, #00aeec); box-shadow: 0 0 0 3px rgba(0,174,236,.1); }
.queue-scene-preview { margin-top: 14px; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; }
.queue-scene-preview-head { padding: 15px 17px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eaecf0; background: #f9fafb; }
.queue-scene-preview-head > div { min-width: 0; flex: 1; }
.queue-scene-preview-head small { color: #98a2b3; font-size: 9px; }
.queue-scene-preview-head h4 { margin: 3px 0; color: #344054; font-size: 14px; }
.queue-scene-preview-head p { margin: 0; color: #667085; font-size: 10px; }
.queue-scene-preview-head em { padding: 4px 8px; border-radius: 10px; color: #087ea4; background: #e8f8fc; font-size: 9px; font-style: normal; }
.queue-param-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #eaecf0; }
.queue-param-summary span { padding: 11px 14px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid #eaecf0; color: #98a2b3; font-size: 9px; }
.queue-param-summary span:last-child { border-right: 0; }
.queue-param-summary strong { color: #344054; font-size: 12px; }
.queue-param-table { font-size: 10px; }
.queue-param-table > div { min-height: 34px; padding: 0 14px; display: grid; grid-template-columns: 1.1fr .7fr .45fr 2fr; align-items: center; gap: 12px; border-bottom: 1px solid #f0f1f3; color: #667085; }
.queue-param-table > div:last-child { border-bottom: 0; }
.queue-param-table .queue-param-table-head { min-height: 32px; color: #98a2b3; background: #fbfcfd; font-weight: 600; }
.queue-param-table code { color: #175cd3; font-size: 10px; }
.queue-param-table b { color: #d92d20; font-size: 9px; }
.queue-param-table em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.queue-template-visual-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.queue-template-visual-card { position: relative; min-width: 0; padding: 12px; display: grid; grid-template-columns: 148px 1fr; gap: 13px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; cursor: pointer; transition: .18s ease; }
.queue-template-visual-card:hover { border-color: #a8dfea; box-shadow: 0 5px 16px rgba(31,45,70,.06); }
.queue-template-visual-card.selected { border-color: var(--gov-primary, #00aeec); background: #f8fdfe; box-shadow: 0 0 0 2px rgba(0,174,236,.09); }
.queue-template-visual-card > input { position: absolute; opacity: 0; }
.queue-template-visual-card > em { position: absolute; right: 10px; top: 10px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #d0d5dd; border-radius: 50%; color: transparent; background: #fff; font-size: 10px; font-style: normal; }
.queue-template-visual-card.selected > em { border-color: var(--gov-primary, #00aeec); color: #fff; background: var(--gov-primary, #00aeec); }
.queue-template-mini-preview { aspect-ratio: 16/10; padding: 7px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 5px; border-radius: 6px; background: #edf1f6; }
.queue-template-mini-preview > div { display: flex; flex-direction: column; gap: 4px; }
.queue-template-mini-preview > div span { flex: 1; display: grid; place-items: center; border-radius: 4px; color: #fff; background: linear-gradient(135deg,#8da7c2,#52677f); }
.queue-template-mini-preview i { height: 6px; display: block; border-radius: 3px; background: #fff; }
.queue-template-mini-preview aside { padding: 5px; display: flex; flex-direction: column; gap: 5px; border-radius: 4px; background: #fff; }
.queue-template-mini-preview aside i { height: 17px; background: #e8edf3; }
.queue-template-mini-preview aside b { margin-top: auto; height: 10px; border-radius: 3px; background: #a8dfeb; }
.queue-template-card-copy { min-width: 0; padding-top: 1px; }
.queue-template-card-copy h4 { margin: 8px 24px 4px 0; color: #344054; font-size: 13px; }
.queue-template-card-copy p { margin: 0 0 9px; color: #667085; font-size: 10px; line-height: 1.5; }
.queue-template-card-copy small { color: #98a2b3; font-size: 9px; }
.queue-trial-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
.queue-trial-card { min-width: 0; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; }
.queue-trial-card > header { padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eaecf0; }
.queue-trial-card header span { color: #98a2b3; font-size: 9px; }
.queue-trial-card header h4 { margin: 2px 0 0; color: #344054; font-size: 13px; }
.queue-trial-card header em { padding: 4px 7px; border-radius: 4px; color: #087ea4; background: #e8f8fc; font-size: 9px; font-style: normal; }
.queue-trial-media { position: relative; height: 185px; overflow: hidden; background: #51667e; }
.queue-trial-media .video-scene { width: 100%; height: 100%; }
.queue-trial-media > button { position: absolute; inset: 50% auto auto 50%; width: 42px; height: 42px; transform: translate(-50%,-50%); border: 0; border-radius: 50%; color: #fff; background: rgba(25,38,55,.55); }
.queue-trial-media > span { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 9px; text-shadow: 0 1px 3px #234; }
.queue-trial-content { display: grid; grid-template-columns: 1.2fr .8fr; }
.queue-trial-content > div { padding: 12px 14px; border-right: 1px solid #eaecf0; }
.queue-trial-content small { color: var(--gov-primary, #00aeec); font-size: 9px; }
.queue-trial-content p { margin: 6px 0 0; color: #667085; font-size: 10px; line-height: 1.55; }
.queue-trial-content aside { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.queue-trial-content aside strong { grid-column: 1/-1; color: #344054; font-size: 11px; }
.queue-trial-content aside button { min-height: 32px; border: 1px solid #e4e7ec; border-radius: 5px; color: #475467; background: #fff; font-size: 10px; }
.queue-trial-content aside label { grid-column: 1/-1; display: flex; flex-direction: column; gap: 4px; color: #98a2b3; font-size: 9px; }
.queue-trial-content aside select { height: 30px; border: 1px solid #e4e7ec; border-radius: 5px; color: #475467; background: #fff; font-size: 9px; }
.queue-trial-checks { padding: 15px; border: 1px solid #e4e7ec; border-radius: 8px; background: #f9fafb; }
.queue-trial-checks h4 { margin: 0 0 13px; color: #344054; font-size: 13px; }
.queue-trial-checks > div { display: flex; flex-direction: column; gap: 10px; }
.queue-trial-checks span { display: flex; align-items: center; gap: 7px; color: #667085; font-size: 10px; }
.queue-trial-checks span i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #98a2b3; background: #fff; font-size: 10px; font-style: normal; }
.queue-trial-checks span.passed { color: #188665; }
.queue-trial-checks span.passed i { color: #fff; background: #20a47b; }
.queue-trial-checks span.passed i::after { content: "✓"; }
.queue-trial-checks span.passed i { font-size: 0; }
.queue-trial-checks .button { width: 100%; margin-top: 16px; }
.queue-trial-checks > p { margin: 9px 0 0; color: #98a2b3; font-size: 9px; line-height: 1.45; text-align: center; }
.queue-trial-checks > p strong { color: #188665; }
.queue-create-modal .modal-actions { margin: auto 0 0; flex: 0 0 auto; }
.queue-create-modal .modal-actions [hidden] { display: none !important; }
.queue-create-page { max-width: 1480px; margin: 0 auto; }
.queue-create-page-head { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 18px; }
.queue-create-page-head .back-button { margin-top: 4px; flex: 0 0 auto; }
.queue-create-page-head h1 { margin: 4px 0 5px; color: #1d2939; font-size: 26px; }
.queue-create-page-head > div > p:last-child { margin: 0; color: #667085; font-size: 12px; }
.queue-create-workspace { min-height: calc(100vh - 190px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.queue-create-workspace .queue-create-steps { flex: 0 0 auto; padding: 20px 32px; }
.queue-create-workspace .queue-create-steps > button { min-width: 190px; }
.queue-create-workspace .queue-create-panel { padding: 28px 32px 32px; }
.queue-create-workspace .queue-form-grid { max-width: 900px; }
.queue-create-page-actions { position: sticky; z-index: 5; bottom: 0; margin-top: auto; padding: 14px 24px; flex: 0 0 auto; border-top: 1px solid #eaecf0; background: rgba(255,255,255,.96); box-shadow: 0 -8px 20px rgba(17,24,39,.05); backdrop-filter: blur(8px); }
.queue-create-page-actions [hidden] { display: none !important; }
.queue-pool-select-strip { padding: 14px 16px; display: grid; grid-template-columns: 180px minmax(260px, 360px) 1fr; align-items: center; gap: 16px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fbfcfd; }
.queue-pool-select-strip > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.queue-pool-select-strip > div:first-child strong { color: #344054; font-size: 12px; }
.queue-pool-select-strip > div:first-child small { color: #98a2b3; font-size: 9px; }
.queue-pool-select-strip > select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #dfe3e8; border-radius: 6px; color: #344054; background: #fff; }
.queue-pool-select-strip .queue-pool-brief { margin: 0; padding: 9px 12px; }
.queue-pool-select-strip .queue-pool-brief .pool-icon { width: 30px; height: 30px; }
.queue-pool-select-strip .queue-pool-brief p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-template-basic-info { margin-top: 12px; padding: 14px 16px; display: grid; grid-template-columns: 235px 1fr; align-items: center; gap: 20px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; }
.queue-template-basic-heading { display: flex; flex-direction: column; gap: 10px; }
.queue-template-basic-heading > div { display: flex; flex-direction: column; gap: 3px; }
.queue-template-basic-heading > div > span { color: #fb7299; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.queue-template-basic-heading strong { color: #344054; font-size: 13px; }
.queue-template-basic-heading small { color: #98a2b3; font-size: 8px; }
.queue-template-basic-heading label { display: flex; flex-direction: column; gap: 5px; color: #667085; font-size: 8px; }
.queue-template-basic-heading select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #dfe3e8; border-radius: 5px; color: #344054; background: #fff; font-size: 9px; }
.queue-custom-template-fields { display: grid; gap: 8px; }
.queue-custom-template-fields label { display: grid; gap: 5px; color: #667085; font-size: 8px; }
.queue-custom-template-fields input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #dfe3e8; border-radius: 5px; color: #344054; background: #fff; font-size: 9px; }
.queue-custom-template-fields input:focus { border-color: #fb7299; box-shadow: 0 0 0 2px rgba(251,114,153,.12); outline: 0; }
.queue-template-basic-content { min-width: 0; min-height: 80px; padding: 12px 14px; display: flex; align-items: center; gap: 13px; border-left: 1px solid #eaecf0; }
.queue-template-basic-content > div { min-width: 0; flex: 1; }
.queue-template-basic-content h4 { margin: 0 0 5px; color: #344054; font-size: 15px; }
.queue-template-basic-content p { margin: 0 0 7px; color: #667085; font-size: 10px; line-height: 1.5; }
.queue-template-basic-content small { color: #98a2b3; font-size: 8px; }
.queue-template-basic-content > em { padding: 4px 8px; border-radius: 10px; color: #188665; background: #eaf8f3; font-size: 8px; font-style: normal; white-space: nowrap; }
.queue-template-basic-content.custom > em { color: #c11574; background: #fdf2fa; }
.queue-template-config-split { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); gap: 18px; align-items: start; }
.queue-template-preview-pane, .queue-template-params-pane { min-width: 0; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 9px; background: #fff; }
.queue-pane-heading { min-height: 63px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #eaecf0; background: #fbfcfd; }
.queue-pane-heading > div { display: flex; flex-direction: column; gap: 3px; }
.queue-pane-heading span { color: var(--gov-primary, #00aeec); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.queue-pane-heading strong { color: #344054; font-size: 13px; }
.queue-pane-heading small { color: #98a2b3; font-size: 8px; text-align: right; }
.queue-template-preview-pane .queue-template-visual-list { max-height: 570px; padding: 14px; display: grid; grid-template-columns: 1fr; gap: 12px; overflow-y: auto; }
.queue-template-preview-pane .queue-template-visual-card { display: block; padding: 0; overflow: hidden; }
.queue-template-preview-pane .queue-template-card-main { display: block; padding: 13px; }
.queue-template-live-preview { min-width: 0; overflow: hidden; border: 1px solid #dfe4ea; border-radius: 8px; background: #f1f3f6; box-shadow: 0 8px 24px rgba(31,45,70,.08); }
.queue-template-live-preview > header { height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #e4e7ec; color: #98a2b3; background: #fff; font-size: 7px; }
.queue-template-live-preview > header > div { margin-right: auto; display: flex; align-items: center; gap: 6px; }
.queue-template-live-preview > header strong { color: #475467; font-size: 8px; }
.queue-template-live-preview > header > span { font-size: 7px; }
.queue-template-live-preview > header > i { width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; }
.template-window-mark { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: var(--gov-primary, #00aeec); font-size: 8px; font-weight: 700; }
.queue-template-live-body { min-height: 390px; padding: 10px; display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(190px, .58fr); gap: 9px; }
.queue-template-live-body > main, .queue-template-live-body > aside { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.template-preview-region { position: relative; border: 1px solid #e3e7ed; border-radius: 6px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.template-preview-region.is-highlighted { z-index: 2; border-color: #fb7299; box-shadow: 0 0 0 3px rgba(251,114,153,.16), 0 8px 20px rgba(251,114,153,.08); transform: translateY(-1px); }
.template-preview-region.is-highlighted::after { content: "当前配置"; position: absolute; right: 7px; top: 7px; z-index: 3; padding: 2px 6px; border-radius: 8px; color: #fff; background: #fb7299; font-size: 7px; font-weight: 600; }
.template-region-name { position: absolute; left: 7px; top: 7px; z-index: 3; padding: 2px 6px; border-radius: 8px; color: #087ea4; background: rgba(232,248,252,.94); font-size: 7px; font-weight: 600; opacity: 0; transform: translateY(-2px); transition: .18s ease; }
.template-preview-region.is-highlighted .template-region-name { opacity: 1; transform: none; }
.template-preview-media { min-height: 210px; padding: 7px; }
.template-video-stage { position: relative; height: 100%; min-height: 194px; overflow: hidden; border-radius: 5px; background: linear-gradient(180deg,#94b8d0 0 52%,#58758b 52%); }
.template-video-sky { position: absolute; inset: 0 0 44%; background: linear-gradient(180deg,#8bbada,#d2e1e8); }
.template-video-hill { position: absolute; bottom: -28px; width: 70%; height: 65%; border-radius: 50% 50% 0 0; background: #466778; transform: rotate(-8deg); }
.template-video-hill.one { left: -10%; }
.template-video-hill.two { right: -20%; bottom: -42px; background: #365767; transform: rotate(12deg); }
.template-video-stage > button { position: absolute; inset: 50% auto auto 50%; width: 38px; height: 38px; transform: translate(-50%,-50%); border: 0; border-radius: 50%; color: #fff; background: rgba(25,38,55,.62); font-size: 13px; }
.template-video-stage > small { position: absolute; right: 8px; bottom: 7px; padding: 2px 5px; border-radius: 3px; color: #fff; background: rgba(17,24,39,.5); font-size: 7px; }
.template-preview-summary { padding: 11px; }
.template-preview-summary > header { display: flex; align-items: center; gap: 6px; }
.template-preview-summary header strong { color: #344054; font-size: 9px; }
.template-preview-summary header em { margin-left: auto; padding: 2px 5px; border-radius: 6px; color: #087ea4; background: #e8f8fc; font-size: 6px; font-style: normal; }
.template-preview-summary > p { margin: 7px 0; color: #667085; font-size: 7px; line-height: 1.55; }
.template-preview-summary > div { display: flex; gap: 5px; }
.template-preview-summary > div span { padding: 2px 5px; border-radius: 4px; color: #98a2b3; background: #f2f4f7; font-size: 6px; }
.template-preview-author { min-height: 54px; padding: 10px; display: flex; align-items: center; gap: 8px; }
.template-preview-author > b { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#00aeec,#6c7cf5); font-size: 9px; }
.template-preview-author > div { min-width: 0; flex: 1; }
.template-preview-author strong { color: #344054; font-size: 8px; }
.template-preview-author p { margin: 3px 0 0; overflow: hidden; color: #98a2b3; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.template-preview-author > em { color: #087ea4; font-size: 6px; font-style: normal; }
.template-preview-evidence { padding: 11px 9px; }
.template-preview-evidence > header, .template-preview-actions > header { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.template-preview-evidence header strong, .template-preview-actions header strong { color: #344054; font-size: 8px; }
.template-preview-evidence header small, .template-preview-actions header small { color: #98a2b3; font-size: 6px; }
.template-keyframes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.template-keyframes i { position: relative; min-height: 58px; border-radius: 4px; background: linear-gradient(145deg,#9bb6c8,#526d7f); }
.template-keyframes i:nth-child(2) { background: linear-gradient(145deg,#b0c4cf,#657f8d); }
.template-keyframes i:nth-child(3) { background: linear-gradient(145deg,#8ca7b7,#486474); }
.template-keyframes b { position: absolute; left: 3px; bottom: 3px; padding: 1px 3px; border-radius: 2px; color: #fff; background: rgba(17,24,39,.45); font-size: 5px; font-style: normal; }
.template-preview-evidence > p { margin: 8px 0 0; color: #667085; font-size: 7px; }
.template-preview-evidence > p strong { color: #d92d20; }
.template-preview-actions { flex: 1; padding: 11px 9px; display: flex; flex-direction: column; }
.template-verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.template-verdicts button { height: 30px; border: 1px solid #dfe3e8; border-radius: 5px; color: #475467; background: #fff; font-size: 7px; }
.template-verdicts button:last-child { color: #d92d20; border-color: #f5c2c7; background: #fff8f8; }
.template-preview-actions label { margin-top: 9px; display: flex; flex-direction: column; gap: 4px; color: #667085; font-size: 7px; }
.template-preview-actions select { height: 28px; padding: 0 6px; border: 1px solid #dfe3e8; border-radius: 4px; color: #98a2b3; background: #fff; font-size: 6px; }
.template-submit { width: 100%; height: 31px; margin-top: auto; border: 0; border-radius: 5px; color: #fff; background: #fb7299; font-size: 7px; font-weight: 600; }
.queue-template-large-preview { min-height: 265px; overflow: hidden; border: 1px solid #dfe4ea; border-radius: 7px; background: #f2f4f7; box-shadow: 0 5px 16px rgba(31,45,70,.06); }
.queue-template-large-preview > header { height: 30px; padding: 0 8px; display: flex; align-items: center; gap: 5px; color: #667085; background: #fff; border-bottom: 1px solid #e4e7ec; font-size: 7px; }
.queue-template-large-preview > header span { margin-right: auto; font-weight: 600; }
.queue-template-large-preview > header i { width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; }
.queue-template-preview-body { height: 233px; padding: 8px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(110px, .65fr); gap: 7px; }
.queue-template-preview-body > section { min-width: 0; display: grid; grid-template-rows: 1fr auto auto; gap: 6px; }
.preview-media { display: grid; place-items: center; border-radius: 5px; color: #fff; background: linear-gradient(145deg,#60758c,#8ba0b6); font-size: 20px; }
.preview-summary, .preview-author, .queue-template-preview-body > aside { padding: 7px; border-radius: 5px; background: #fff; }
.preview-summary { display: grid; gap: 4px; }
.preview-summary i { height: 4px; border-radius: 2px; background: #dfe4ea; }
.preview-summary i:last-child { width: 65%; }
.preview-author { display: flex; align-items: center; gap: 6px; }
.preview-author > b { width: 18px; height: 18px; border-radius: 50%; background: #c8d2de; }
.preview-author > span { flex: 1; display: grid; gap: 4px; }
.preview-author i { height: 4px; display: block; border-radius: 2px; background: #e4e7ec; }
.queue-template-preview-body > aside { display: flex; flex-direction: column; gap: 8px; }
.preview-evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.preview-evidence i { aspect-ratio: 1; border-radius: 3px; background: #d7e0ea; }
.preview-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.preview-actions b { height: 20px; border-radius: 3px; background: #e8f8fc; border: 1px solid #bfeaf3; }
.preview-actions span { grid-column: 1/-1; height: 28px; border-radius: 3px; background: var(--gov-primary, #00aeec); opacity: .68; }
.queue-template-preview-pane .queue-template-card-copy { padding: 10px 26px 10px 0; }
.queue-template-preview-pane .queue-template-card-copy h4 { margin-top: 10px; font-size: 14px; }
.queue-template-preview-pane .queue-template-card-copy p { line-height: 1.65; }
.queue-template-params-pane { position: sticky; top: 86px; }
.queue-component-param-summary { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid #eaecf0; background: #f6fcfe; }
.queue-component-param-summary span { color: #087ea4; font-size: 8px; }
.queue-component-param-summary strong { color: #344054; font-size: 12px; }
.queue-component-param-summary small { color: #98a2b3; font-size: 8px; }
.queue-template-params-pane .queue-template-module-config { max-height: 500px; padding: 8px 14px 14px; overflow-y: auto; border-top: 0; background: #fff; }
.queue-template-params-pane .queue-template-module-config > label { padding: 12px 2px; grid-template-columns: 1fr; gap: 8px; }
.queue-template-params-pane .queue-template-module-config label > div > i { width: 30px; color: #087ea4; background: #e8f8fc; }
.queue-template-params-pane .queue-template-module-config > label { margin: 3px 0; padding: 11px 9px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; transition: .18s ease; }
.queue-template-params-pane .queue-template-module-config > label:hover { background: #f8fafc; }
.queue-template-params-pane .queue-template-module-config > label.active { border-color: #fb7299; background: #fff7fa; box-shadow: 0 0 0 2px rgba(251,114,153,.08); }
.queue-template-params-pane .queue-template-module-config > label.active label { color: #fb7299; }
.queue-template-params-pane .queue-template-module-config label > div > span { min-width: 0; flex: 1; }
.queue-template-params-pane .queue-template-module-config label > div > em { color: #98a2b3; font-size: 7px; font-style: normal; }
.queue-template-params-pane .queue-template-module-config > label.active label > div > em,
.queue-template-params-pane .queue-template-module-config > label.active > div > em { color: #fb7299; }
@media (max-width: 1050px) {
  .queue-pool-select-strip { grid-template-columns: 160px 1fr; }
  .queue-pool-select-strip .queue-pool-brief { grid-column: 1 / -1; }
  .queue-template-basic-info { grid-template-columns: 200px 1fr; }
  .queue-template-config-split { grid-template-columns: 1fr; }
  .queue-template-params-pane { position: static; }
}
@media (max-width: 760px) {
  .queue-create-page-head { flex-direction: column; }
  .queue-create-workspace .queue-create-panel { padding: 20px 16px; }
  .queue-create-workspace .queue-create-steps > button { min-width: 28px; }
  .queue-pool-select-strip { grid-template-columns: 1fr; }
  .queue-pool-select-strip .queue-pool-brief { grid-column: auto; }
  .queue-template-basic-info { grid-template-columns: 1fr; }
  .queue-template-basic-content { border-left: 0; border-top: 1px solid #eaecf0; }
  .queue-template-preview-pane .queue-template-card-main { grid-template-columns: 1fr; }
}
.queue-config-section { margin-bottom: 18px; padding: 16px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fbfcfd; }
.queue-config-section:last-child { margin-bottom: 0; }
.queue-config-section-head { margin-bottom: 13px; display: flex; align-items: center; gap: 10px; }
.queue-config-section-head > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--gov-primary, #00aeec); font-size: 10px; font-style: normal; font-weight: 700; }
.queue-config-section-head h4 { margin: 0 0 2px; color: #344054; font-size: 13px; }
.queue-config-section-head p { margin: 0; color: #98a2b3; font-size: 9px; }
.queue-pool-brief { margin-top: 11px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #e4e7ec; border-radius: 7px; background: #fff; }
.queue-pool-brief > div { min-width: 0; flex: 1; }
.queue-pool-brief small { color: #98a2b3; font-size: 8px; }
.queue-pool-brief h4 { margin: 3px 0; color: #344054; font-size: 12px; }
.queue-pool-brief p { margin: 0; color: #667085; font-size: 9px; }
.queue-pool-brief > em { padding: 4px 8px; border-radius: 10px; color: #188665; background: #eaf8f3; font-size: 8px; font-style: normal; }
.queue-config-section .queue-template-visual-list { grid-template-columns: 1fr; gap: 9px; }
.queue-config-section .queue-template-visual-card { display: block; padding: 0; overflow: hidden; cursor: pointer; }
.queue-template-card-main { position: relative; padding: 11px; display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.queue-template-card-main > em { position: absolute; right: 11px; top: 11px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #d0d5dd; border-radius: 50%; color: transparent; background: #fff; font-size: 10px; font-style: normal; }
.queue-template-visual-card.selected .queue-template-card-main > em { border-color: var(--gov-primary, #00aeec); color: #fff; background: var(--gov-primary, #00aeec); }
.queue-template-expand { position: absolute; right: 11px; bottom: 11px; padding: 4px 7px; border: 0; border-radius: 4px; color: #087ea4; background: #e8f8fc; font-size: 8px; }
.queue-template-module-config { padding: 13px; border-top: 1px solid #dceff4; background: #f5fbfd; cursor: default; }
.queue-template-module-head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; }
.queue-template-module-head strong { color: #344054; font-size: 11px; }
.queue-template-module-head span { color: #087ea4; font-size: 8px; }
.queue-template-module-config > label { min-height: 52px; padding: 8px 9px; display: grid; grid-template-columns: 1fr minmax(260px, .8fr); align-items: center; gap: 12px; border-bottom: 1px solid #e5eef2; }
.queue-template-module-config > label:last-child { border-bottom: 0; }
.queue-template-module-config label > div { display: flex; align-items: center; gap: 9px; }
.queue-template-module-config label i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: #087ea4; background: #e8f8fc; font-size: 9px; font-style: normal; font-weight: 700; }
.queue-template-module-config label span { display: flex; flex-direction: column; gap: 2px; }
.queue-template-module-config label strong { color: #344054; font-size: 10px; }
.queue-template-module-config label small { color: #98a2b3; font-size: 8px; }
.queue-template-module-config select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #dfe3e8; border-radius: 5px; color: #344054; background: #fff; font-size: 9px; }
@media (max-width: 850px) {
  .queue-create-steps button span { display: none; }
  .queue-create-steps > button { min-width: 28px; }
  .queue-template-visual-list, .queue-trial-layout { grid-template-columns: 1fr; }
  .queue-param-summary { grid-template-columns: repeat(2, 1fr); }
}

/* Task pool to machine-review scene mapping */
.queue-machine-scenes { padding: 13px 14px; border-bottom: 1px solid #eaecf0; background: #fff; }
.queue-machine-scenes-title { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; }
.queue-machine-scenes-title span { color: #344054; font-size: 11px; font-weight: 600; }
.queue-machine-scenes-title small { color: #98a2b3; font-size: 9px; }
.queue-machine-scenes article { min-height: 42px; padding: 7px 9px; display: grid; grid-template-columns: 25px minmax(150px, 1.2fr) 72px 20px minmax(130px, 1fr); align-items: center; gap: 9px; border: 1px solid #edf0f3; border-radius: 6px; background: #fafbfc; }
.queue-machine-scenes article + article { margin-top: 6px; }
.queue-machine-scenes article > i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; color: #087ea4; background: #e8f8fc; font-size: 9px; font-style: normal; font-weight: 700; }
.queue-machine-scenes article > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.queue-machine-scenes article strong { overflow: hidden; color: #344054; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.queue-machine-scenes article small { overflow: hidden; color: #98a2b3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.queue-machine-scenes article > em { color: #667085; font-size: 9px; font-style: normal; text-align: right; }
.queue-machine-scenes article > b { color: #b5bdc9; font-size: 13px; text-align: center; }
.queue-machine-scenes article > span { overflow: hidden; color: #087ea4; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .queue-machine-scenes-title { align-items: flex-start; flex-direction: column; gap: 3px; }
  .queue-machine-scenes article { grid-template-columns: 25px 1fr 64px; }
  .queue-machine-scenes article > b, .queue-machine-scenes article > span { display: none; }
}

/* Human review scheduling: task pool configuration */
.task-pool-list-item {
  width: 100%;
  min-height: 64px;
  margin-bottom: 7px;
  padding: 10px 11px;
  text-align: left;
}
.task-pool-list-item > i {
  width: 7px;
  height: 7px;
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #36b37e;
}
.task-pool-list-item > i.warning { background: #f5a623; }
.task-pool-list-item > i.idle { background: #b8c0cc; }
.task-pool-config-detail { min-height: 100%; }
.task-pool-config-hero {
  padding-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eaecf0;
}
.task-pool-config-title { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.task-pool-config-title .pool-node-icon { flex: 0 0 auto; }
.task-pool-config-title small { color: #98a2b3; font-size: 9px; }
.task-pool-config-title h2 { margin: 4px 0; color: #263348; font-size: 21px; }
.task-pool-config-title p { margin: 0; color: #667085; font-size: 11px; line-height: 1.55; }
.task-pool-config-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.task-pool-config-metrics {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}
.task-pool-config-metrics article { min-width: 0; padding: 14px; border-right: 1px solid #eaecf0; }
.task-pool-config-metrics article:last-child { border-right: 0; }
.task-pool-config-metrics span, .task-pool-config-metrics strong, .task-pool-config-metrics small { display: block; }
.task-pool-config-metrics span { color: #98a2b3; font-size: 9px; }
.task-pool-config-metrics strong { margin: 5px 0 3px; color: #263348; font-size: 20px; }
.task-pool-config-metrics small { overflow: hidden; color: #667085; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-machine-scenes, .task-pool-strategy-section {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}
.task-pool-section-heading { margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.task-pool-section-heading h3 { margin: 0 0 3px; color: #344054; font-size: 14px; }
.task-pool-section-heading p { margin: 0; color: #98a2b3; font-size: 10px; }
.task-pool-section-heading > span { padding: 4px 8px; border-radius: 10px; color: #087ea4; background: #e8f8fc; font-size: 9px; }
.task-pool-machine-scenes article {
  min-height: 48px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 27px minmax(150px, 1.3fr) 76px 22px minmax(130px, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #edf0f3;
  border-radius: 6px;
  background: #fafbfc;
}
.task-pool-machine-scenes article + article { margin-top: 7px; }
.task-pool-machine-scenes article > i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 5px; color: #087ea4; background: #e8f8fc; font-size: 9px; font-style: normal; font-weight: 700; }
.task-pool-machine-scenes article > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-pool-machine-scenes article strong { overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-machine-scenes article small { color: #98a2b3; font-size: 8px; }
.task-pool-machine-scenes article > em { color: #667085; font-size: 9px; font-style: normal; text-align: right; }
.task-pool-machine-scenes article > b { color: #b5bdc9; text-align: center; }
.task-pool-machine-scenes article > span { overflow: hidden; color: #087ea4; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-strategy-section .strategy-list-toolbar { margin-bottom: 8px; }
.machine-pool-strategy-meta em { color: #98a2b3; font-size: 9px; font-style: normal; }
.machine-pool-strategy-meta b { max-width: 150px; overflow: hidden; color: #667085; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) {
  .task-pool-config-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-pool-config-metrics article:nth-child(2) { border-right: 0; }
  .task-pool-config-metrics article:nth-child(-n+2) { border-bottom: 1px solid #eaecf0; }
}
@media (max-width: 760px) {
  .task-pool-config-hero, .task-pool-section-heading { flex-direction: column; }
  .task-pool-config-actions { width: 100%; justify-content: space-between; }
  .task-pool-machine-scenes article { grid-template-columns: 27px 1fr 70px; }
  .task-pool-machine-scenes article > b, .task-pool-machine-scenes article > span { display: none; }
}

/* Task pool creation wizard */
.schedule-tabs-toolbar { display: block; }
.task-pool-create-modal { width: min(900px, calc(100vw - 32px)); height: min(760px, calc(100vh - 32px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.task-pool-create-modal > .modal-header { flex: 0 0 auto; }
.task-pool-create-modal form { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.task-pool-create-steps { padding: 17px 24px; display: flex; align-items: center; border-bottom: 1px solid #eaecf0; background: #fbfcfd; }
.task-pool-create-steps > button { min-width: 128px; padding: 0; display: flex; align-items: center; gap: 9px; border: 0; color: #98a2b3; background: transparent; text-align: left; cursor: default; }
.task-pool-create-steps > b { height: 1px; min-width: 18px; margin: 0 12px; flex: 1; background: #e4e7ec; }
.task-pool-create-steps button i { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d0d5dd; border-radius: 50%; color: #98a2b3; background: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.task-pool-create-steps button span { display: flex; flex-direction: column; gap: 2px; }
.task-pool-create-steps button strong { color: #667085; font-size: 12px; }
.task-pool-create-steps button small { font-size: 9px; white-space: nowrap; }
.task-pool-create-steps button.active i { border-color: var(--gov-primary, #00aeec); color: #fff; background: var(--gov-primary, #00aeec); box-shadow: 0 0 0 4px rgba(0,174,236,.1); }
.task-pool-create-steps button.active strong { color: #087ea4; }
.task-pool-create-steps button.completed { cursor: pointer; }
.task-pool-create-steps button.completed i { position: relative; border-color: #55b89d; color: transparent; background: #eaf8f3; }
.task-pool-create-steps button.completed i::after { content: "✓"; position: absolute; color: #188665; }
.task-pool-create-steps button.completed + b { background: #88cfbc; }
.task-pool-create-panel { display: none; min-height: 0; padding: 22px 26px 26px; overflow-y: auto; flex: 1; }
.task-pool-create-panel.active { display: block; animation: queueStepIn .18s ease-out; }
.task-pool-create-modal .modal-actions { position: relative; z-index: 2; margin: auto 0 0; flex: 0 0 auto; border-top: 1px solid #eaecf0; background: #fff; box-shadow: 0 -6px 16px rgba(17, 24, 39, .04); }
.task-pool-create-modal .modal-actions [hidden] { display: none !important; }
.task-pool-description-field { grid-column: 1 / -1; }
.task-pool-source-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.task-pool-source-types label { position: relative; min-height: 76px; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; cursor: pointer; transition: .18s ease; }
.task-pool-source-types label:hover { border-color: #a8dfea; }
.task-pool-source-types label.selected { border-color: var(--gov-primary, #00aeec); background: #f6fcfe; box-shadow: 0 0 0 2px rgba(0,174,236,.08); }
.task-pool-source-types input { position: absolute; opacity: 0; }
.task-pool-source-types label > i { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #087ea4; background: #e8f8fc; font-size: 13px; font-style: normal; font-weight: 700; }
.task-pool-source-types label > span { display: flex; flex-direction: column; gap: 4px; }
.task-pool-source-types strong { color: #344054; font-size: 13px; }
.task-pool-source-types small { color: #98a2b3; font-size: 9px; }
.task-pool-source-types label > em { position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #d0d5dd; border-radius: 50%; color: transparent; font-size: 9px; font-style: normal; }
.task-pool-source-types label.selected > em { border-color: var(--gov-primary, #00aeec); color: #fff; background: var(--gov-primary, #00aeec); }
.task-pool-source-config { margin-top: 16px; padding: 16px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fafbfc; }
.task-pool-source-heading { margin-bottom: 11px; display: flex; align-items: flex-start; justify-content: space-between; }
.task-pool-source-heading > div { display: flex; flex-direction: column; gap: 3px; }
.task-pool-source-heading strong { color: #344054; font-size: 12px; }
.task-pool-source-heading small { color: #98a2b3; font-size: 9px; }
.task-pool-source-heading > span { padding: 3px 7px; border-radius: 9px; color: #087ea4; background: #e8f8fc; font-size: 9px; }
.task-pool-machine-scene-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 265px; overflow-y: auto; }
.task-pool-machine-scene-picker label { position: relative; min-width: 0; padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; cursor: pointer; }
.task-pool-machine-scene-picker label.selected { border-color: var(--gov-primary, #00aeec); background: #f6fcfe; }
.task-pool-machine-scene-picker input { position: absolute; opacity: 0; }
.task-pool-machine-scene-picker label > i { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #087ea4; background: #e8f8fc; font-size: 10px; font-style: normal; font-weight: 700; }
.task-pool-machine-scene-picker label > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-pool-machine-scene-picker strong { overflow: hidden; color: #344054; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-machine-scene-picker small { overflow: hidden; color: #98a2b3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-machine-scene-picker label > em { margin-left: auto; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #d0d5dd; border-radius: 4px; color: transparent; font-size: 9px; font-style: normal; }
.task-pool-machine-scene-picker label.selected > em { border-color: var(--gov-primary, #00aeec); color: #fff; background: var(--gov-primary, #00aeec); }
.task-pool-source-field { display: flex; flex-direction: column; gap: 7px; color: #475467; font-size: 11px; font-weight: 600; }
.task-pool-source-field select { height: 40px; padding: 0 11px; border: 1px solid #dfe3e8; border-radius: 6px; color: #344054; background: #fff; }
.task-pool-source-field small { color: #98a2b3; font-size: 9px; font-weight: 400; }
.offline-table-list { margin-top: 12px; display: grid; gap: 7px; }
.offline-table-list article { padding: 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #edf0f3; border-radius: 6px; background: #fff; }
.offline-table-list article > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 5px; color: #6941c6; background: #f4f0ff; font-size: 9px; font-style: normal; font-weight: 700; }
.offline-table-list article > div { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.offline-table-list strong { color: #344054; font-size: 10px; }
.offline-table-list small { color: #98a2b3; font-size: 8px; }
.offline-table-list span { color: #667085; font-size: 9px; }
.task-pool-mode-switch { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-pool-mode-switch button { padding: 11px; display: flex; align-items: center; gap: 9px; border: 1px solid #e4e7ec; border-radius: 7px; color: #667085; background: #fff; text-align: left; cursor: pointer; }
.task-pool-mode-switch button.active { border-color: var(--gov-primary, #00aeec); color: #087ea4; background: #f6fcfe; box-shadow: 0 0 0 2px rgba(0,174,236,.07); }
.task-pool-mode-switch button > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; color: #087ea4; background: #e8f8fc; font-style: normal; font-weight: 700; }
.task-pool-mode-switch button > span { display: flex; flex-direction: column; gap: 2px; }
.task-pool-mode-switch strong { color: #344054; font-size: 10px; }
.task-pool-mode-switch small { color: #98a2b3; font-size: 8px; }
.task-pool-upload-zone { min-height: 132px; padding: 20px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 1px dashed #b8c2cc; border-radius: 8px; background: #fff; cursor: pointer; }
.task-pool-upload-zone:hover, .task-pool-upload-zone.has-file { border-color: var(--gov-primary, #00aeec); background: #f6fcfe; }
.task-pool-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.task-pool-upload-zone > i { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #087ea4; background: #e8f8fc; font-size: 18px; font-style: normal; }
.task-pool-upload-zone > span { display: flex; flex-direction: column; gap: 4px; }
.task-pool-upload-zone strong { color: #344054; font-size: 11px; }
.task-pool-upload-zone small { color: #98a2b3; font-size: 9px; }
.task-pool-upload-zone > em { margin-left: 10px; padding: 6px 10px; border: 1px solid #d0d5dd; border-radius: 5px; color: #475467; background: #fff; font-size: 9px; font-style: normal; }
.task-pool-upload-hint { margin-top: 10px; display: flex; align-items: center; gap: 7px; color: #98a2b3; font-size: 8px; }
.task-pool-upload-hint code { padding: 3px 6px; border-radius: 4px; color: #475467; background: #eef1f4; font-size: 8px; }
.task-pool-api-contract { margin-top: 13px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border: 1px solid #dfe7ee; border-radius: 6px; background: #fff; }
.task-pool-api-contract span { padding: 3px 6px; border-radius: 4px; color: #087ea4; background: #e8f8fc; font-size: 9px; font-weight: 700; }
.task-pool-api-contract code { color: #344054; font-size: 10px; }
.task-pool-api-contract em { color: #98a2b3; font-size: 8px; font-style: normal; }
.task-pool-api-contract p { grid-column: 1 / -1; margin: 0; color: #667085; font-size: 9px; }
.task-pool-queue-toolbar { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-pool-queue-toolbar .search-field { max-width: 430px; flex: 1; }
.task-pool-queue-toolbar > span { color: #087ea4; font-size: 10px; font-weight: 600; }
.task-pool-queue-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.task-pool-queue-picker label { position: relative; min-width: 0; padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #e4e7ec; border-radius: 7px; background: #fff; cursor: pointer; }
.task-pool-queue-picker label.selected { border-color: var(--gov-primary, #00aeec); background: #f6fcfe; }
.task-pool-queue-picker input { position: absolute; opacity: 0; }
.task-pool-queue-picker label > div { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.task-pool-queue-picker strong { color: #344054; font-size: 10px; }
.task-pool-queue-picker small { overflow: hidden; color: #98a2b3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-queue-picker label > em { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #d0d5dd; border-radius: 4px; color: transparent; font-size: 9px; font-style: normal; }
.task-pool-queue-picker label.selected > em { border-color: var(--gov-primary, #00aeec); color: #fff; background: var(--gov-primary, #00aeec); }
.task-pool-confirmation { display: grid; gap: 14px; }
.task-pool-confirm-card, .task-pool-confirmation > section, .task-pool-confirm-notice { padding: 15px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; }
.task-pool-confirm-card header { display: flex; align-items: flex-start; gap: 10px; }
.task-pool-confirm-card header > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #087ea4; background: #e8f8fc; font-weight: 700; }
.task-pool-confirm-card header > div { min-width: 0; flex: 1; }
.task-pool-confirm-card header small { color: #98a2b3; font-size: 8px; }
.task-pool-confirm-card h3 { margin: 3px 0; color: #263348; font-size: 15px; }
.task-pool-confirm-card p { margin: 0; color: #667085; font-size: 9px; }
.task-pool-confirm-card header > em { padding: 4px 7px; border-radius: 9px; color: #b54708; background: #fff4e5; font-size: 8px; font-style: normal; }
.task-pool-confirm-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #edf0f3; border-radius: 6px; }
.task-pool-confirm-grid > span { padding: 10px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid #edf0f3; color: #98a2b3; font-size: 8px; }
.task-pool-confirm-grid > span:last-child { border-right: 0; }
.task-pool-confirm-grid strong { overflow: hidden; color: #344054; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-confirmation > section h4 { margin: 0 0 10px; color: #344054; font-size: 12px; }
.task-pool-confirm-queues { display: flex; flex-wrap: wrap; gap: 7px; }
.task-pool-confirm-queues > span { padding: 6px 8px; display: flex; align-items: center; gap: 6px; border-radius: 6px; color: #475467; background: #f5f7fa; font-size: 9px; }
.task-pool-confirm-queues i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 4px; color: #087ea4; background: #e8f8fc; font-size: 8px; font-style: normal; }
.task-pool-confirm-queues small { color: #98a2b3; }
.task-pool-confirm-notice { display: flex; align-items: center; gap: 10px; border-color: #b7e4d5; background: #f1fbf7; }
.task-pool-confirm-notice > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #20a47b; font-style: normal; }
.task-pool-confirm-notice strong { color: #188665; font-size: 11px; }
.task-pool-confirm-notice p { margin: 3px 0 0; color: #667085; font-size: 9px; }
.task-pool-single-source { padding: 11px; display: flex; align-items: center; gap: 10px; border: 1px solid #edf0f3; border-radius: 6px; background: #fafbfc; }
.task-pool-single-source > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: #087ea4; background: #e8f8fc; font-style: normal; font-weight: 700; }
.task-pool-single-source > div { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.task-pool-single-source strong { color: #344054; font-size: 10px; }
.task-pool-single-source small { overflow: hidden; color: #98a2b3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.task-pool-single-source > span { color: #087ea4; font-size: 9px; font-weight: 600; }
@media (max-width: 760px) {
  .task-pool-create-steps button span { display: none; }
  .task-pool-create-steps > button { min-width: 28px; }
  .task-pool-source-types, .task-pool-machine-scene-picker, .task-pool-queue-picker { grid-template-columns: 1fr; }
  .task-pool-confirm-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Task pool creation uses the same independent-page interaction as queue creation. */
.task-pool-create-page { max-width: 1440px; margin: 0 auto; }
.task-pool-create-page-head { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 18px; }
.task-pool-create-page-head .back-button { margin-top: 4px; flex: 0 0 auto; }
.task-pool-create-page-head h1 { margin: 4px 0 5px; color: #1d2939; font-size: 26px; }
.task-pool-create-page-head p { margin: 0; color: #667085; font-size: 12px; }
.task-pool-create-workspace {
  min-height: calc(100vh - 190px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.task-pool-create-workspace .task-pool-create-steps { flex: 0 0 auto; padding: 20px 32px; }
.task-pool-create-workspace .task-pool-create-steps > button { min-width: 190px; }
.task-pool-create-workspace .task-pool-create-panel { padding: 28px 32px 32px; overflow: visible; }
.task-pool-create-workspace .queue-form-grid { max-width: 900px; }
.task-pool-create-actions {
  position: sticky;
  z-index: 5;
  bottom: 0;
  margin-top: auto;
  padding: 14px 24px;
  flex: 0 0 auto;
  border-top: 1px solid #eaecf0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -8px 20px rgba(17,24,39,.05);
  backdrop-filter: blur(8px);
}
.task-pool-create-actions [hidden] { display: none !important; }

@media (max-width: 760px) {
  .task-pool-create-page-head { flex-direction: column; }
  .task-pool-create-workspace .task-pool-create-panel { padding: 20px 16px; }
  .task-pool-create-workspace .task-pool-create-steps > button { min-width: 28px; }
}

/* Queue detail responsive layout and shared operation-page guardrails */
#view-queue-detail .queue-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, auto) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}
#view-queue-detail .queue-detail-identity { min-width: 0; }
#view-queue-detail .queue-detail-identity h1 {
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#view-queue-detail .queue-detail-identity p { margin: 0; line-height: 1.6; }
#view-queue-detail .detail-live {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 10px;
  margin: 0;
  background: transparent;
}
#view-queue-detail .detail-live > div {
  min-width: 0;
  min-height: 74px;
  padding: 12px 14px;
  justify-content: center;
}
#view-queue-detail .detail-live strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#view-queue-detail .detail-actions {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
#view-queue-detail .detail-actions .button { min-height: 42px; white-space: nowrap; }
#view-queue-detail .channel-delivery-config { min-height: 42px; }

.lineage-delete-control { position: relative; display: flex; align-items: center; }
.lineage-delete-control small { position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); width: max-content; max-width: 360px; padding: 7px 9px; border: 1px solid #fecdca; border-radius: 6px; color: #b42318; background: #fffbfa; box-shadow: 0 4px 12px rgba(16, 24, 40, .08); font-size: 9px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: .16s ease; }
.lineage-delete-control small.deletable { border-color: #abefc6; color: #067647; background: #f6fef9; }
.lineage-delete-control:hover small, .lineage-delete-control:focus-within small { opacity: 1; transform: translateY(0); }
.button.danger-outline { border-color: #fda29b; color: #b42318; background: #fff; }
.button.danger-outline:hover:not(:disabled) { border-color: #d92d20; color: #fff; background: #d92d20; }
.button.danger-outline:disabled { border-color: #eaecf0; color: #98a2b3; background: #f9fafb; cursor: not-allowed; }
.button.danger { border-color: #d92d20; color: #fff; background: #d92d20; }
.button.danger:hover { border-color: #b42318; background: #b42318; }
.delete-confirm-modal { width: min(480px, calc(100vw - 32px)); padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.delete-confirm-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 8px solid #fee4e2; border-radius: 50%; color: #d92d20; background: #fef3f2; font-size: 18px; font-weight: 700; }
.delete-confirm-content h2 { margin: 2px 0 9px; color: #1d2939; font-size: 20px; }
.delete-confirm-content p { margin: 0 0 8px; color: #475467; font-size: 13px; }
.delete-confirm-content strong { color: #1d2939; }
.delete-confirm-content small { display: block; color: #667085; font-size: 11px; line-height: 1.7; }
.delete-confirm-modal .modal-actions { grid-column: 1 / -1; margin: 8px -24px -24px; padding: 16px 24px; }
.page-heading > div:first-child,
.panel-heading > div:first-child,
.heading-actions,
.toolbar,
.detail-grid > *,
.queue-create-workspace,
.scheduling-layout > *,
.review-group-layout > * { min-width: 0; }
.page-heading h1,
.page-heading p,
.panel-heading h3,
.panel-heading p { overflow-wrap: anywhere; }
.heading-actions { flex: 0 0 auto; }

@media (max-width: 1500px) {
  #view-queue-detail .queue-detail-hero { grid-template-columns: minmax(220px, 1fr) auto; }
  #view-queue-detail .queue-detail-identity { grid-column: 1 / -1; }
  #view-queue-detail .detail-actions { justify-self: end; }
}

@media (max-width: 1120px) {
  #view-queue-detail .detail-grid { grid-template-columns: minmax(0, 1fr); }
  #view-queue-detail .queue-group-panel { position: static; }
  #view-queue-detail .queue-detail-hero { grid-template-columns: minmax(0, 1fr); }
  #view-queue-detail .queue-detail-identity { grid-column: auto; }
  #view-queue-detail .detail-live { width: 100%; }
  #view-queue-detail .detail-actions { width: 100%; justify-self: stretch; }
}

@media (max-width: 640px) {
  #view-queue-detail .queue-detail-hero { gap: 14px; padding: 18px 16px; }
  #view-queue-detail .detail-live { grid-template-columns: minmax(0, 1fr); }
  #view-queue-detail .detail-live > div {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  #view-queue-detail .detail-live strong { margin: 0; font-size: 21px; }
  #view-queue-detail .detail-actions { align-items: stretch; flex-direction: column; }
  #view-queue-detail .detail-actions .button,
  #view-queue-detail .channel-delivery-config { width: 100%; }
  #view-queue-detail .queue-preview-body { grid-template-columns: minmax(0, 1fr); }
  #view-queue-detail .queue-preview-content { border-top: 1px solid var(--gov-line); border-left: 0; }
}

/* Reviewer workbench */
.reviewer-workbench-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  margin-bottom: 18px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: linear-gradient(115deg, #f7fbff 0%, #eef5ff 56%, #f5f0ff 100%);
}
.reviewer-workbench-hero::after {
  content: "";
  position: absolute;
  right: 16%;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 46px solid rgba(22, 93, 255, .045);
  border-radius: 50%;
}
.reviewer-workbench-hero > * { position: relative; z-index: 1; }
.reviewer-workbench-greeting { color: var(--arco-primary); font-size: 14px; font-weight: 600; }
.reviewer-workbench-hero h1 { margin: 8px 0 7px; color: #1d2939; font-size: 28px; line-height: 1.25; }
.reviewer-workbench-hero p { margin: 0; color: #667085; font-size: 14px; line-height: 1.7; }
.reviewer-shift-status {
  min-width: 220px;
  padding: 17px 20px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 10px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 24px rgba(36, 64, 119, .08);
  backdrop-filter: blur(8px);
}
.reviewer-shift-status span { display: flex; align-items: center; gap: 7px; color: #667085; font-size: 12px; }
.reviewer-shift-status span i { width: 8px; height: 8px; border-radius: 50%; background: #00b42a; box-shadow: 0 0 0 4px rgba(0,180,42,.12); }
.reviewer-shift-status strong { display: block; margin: 8px 0 4px; color: #1d2939; font-size: 20px; }
.reviewer-shift-status small { color: #98a2b3; font-size: 12px; }
.reviewer-workbench-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.reviewer-workbench-metrics article {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--arco-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 41, 57, .035);
}
.reviewer-workbench-metrics article > div { min-width: 0; }
.reviewer-metric-icon { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; font-size: 18px; font-weight: 700; }
.reviewer-metric-icon.cyan { color: #087ea4; background: #e8f8fc; }
.reviewer-metric-icon.orange { color: #d65a00; background: #fff3e8; }
.reviewer-metric-icon.purple { color: #6751b6; background: #f1edff; }
.reviewer-metric-icon.green { color: #067647; background: #ecfdf3; }
.reviewer-workbench-metrics small { color: #667085; font-size: 13px; }
.reviewer-workbench-metrics strong { display: block; margin: 4px 0 5px; color: #1d2939; font-size: 26px; line-height: 1; }
.reviewer-workbench-metrics strong em { margin-left: 3px; color: #667085; font-size: 12px; font-style: normal; font-weight: 500; }
.reviewer-workbench-metrics p { overflow: hidden; margin: 0; color: #98a2b3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.reviewer-workbench-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 17px 20px;
}
.reviewer-workbench-toolbar h2 { margin: 0 0 4px; color: #1d2939; font-size: 18px; }
.reviewer-workbench-toolbar p { margin: 0; color: #86909c; font-size: 12px; }
.reviewer-workbench-toolbar > div:last-child { display: flex; align-items: center; gap: 10px; }
.reviewer-queue-search { display: flex; align-items: center; gap: 8px; width: 250px; height: 38px; padding: 0 11px; border: 1px solid #d9dfe8; border-radius: 7px; color: #98a2b3; background: #fff; }
.reviewer-queue-search:focus-within { border-color: var(--arco-primary); box-shadow: 0 0 0 2px rgba(22,93,255,.1); }
.reviewer-queue-search input { width: 100%; border: 0; color: #344054; background: transparent; font-size: 13px; }
.reviewer-workbench-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 16px; }
.reviewer-queue-section { min-width: 0; padding: 20px; border: 1px solid var(--arco-border); border-radius: 10px; background: #fff; }
.reviewer-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.reviewer-section-heading h3 { margin: 0 0 4px; color: #1d2939; font-size: 17px; }
.reviewer-section-heading p { margin: 0; color: #86909c; font-size: 12px; }
.reviewer-section-heading > span { padding: 4px 9px; border-radius: 12px; color: var(--arco-primary); background: #eef3ff; font-size: 12px; font-weight: 600; }
.reviewer-queue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reviewer-queue-card { min-width: 0; padding: 15px; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.reviewer-queue-card:hover { border-color: #b8caff; box-shadow: 0 8px 20px rgba(29,41,57,.07); transform: translateY(-1px); }
.reviewer-queue-card.danger { border-left: 3px solid #f53f3f; }
.reviewer-queue-card.warning { border-left: 3px solid #ff7d00; }
.reviewer-queue-card header { display: flex; align-items: center; gap: 10px; }
.reviewer-queue-card header > div { min-width: 0; }
.reviewer-queue-card header strong { display: block; overflow: hidden; color: #1d2939; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.reviewer-queue-card header small { display: block; overflow: hidden; margin-top: 3px; color: #98a2b3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.reviewer-urgency { margin-left: auto; padding: 3px 7px; border-radius: 10px; color: #475467; background: #f2f4f7; font-size: 10px; font-style: normal; }
.reviewer-urgency.warning { color: #b54708; background: #fffaeb; }
.reviewer-urgency.danger { color: #b42318; background: #fef3f2; }
.reviewer-queue-backlog { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 14px 0 12px; }
.reviewer-queue-backlog span { padding: 9px 10px; border-radius: 6px; color: #86909c; background: #f7f8fa; font-size: 11px; }
.reviewer-queue-backlog strong { display: block; margin-top: 3px; color: #1d2939; font-size: 17px; }
.reviewer-queue-progress > span { display: flex; justify-content: space-between; color: #86909c; font-size: 11px; }
.reviewer-queue-progress b { font-weight: 500; }
.reviewer-queue-progress em { color: #475467; font-style: normal; font-weight: 600; }
.reviewer-queue-progress > i { display: block; height: 5px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: #edf0f5; }
.reviewer-queue-progress > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4080ff,#165dff); }
.reviewer-queue-card footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f1f3; }
.reviewer-queue-card footer small { overflow: hidden; color: #98a2b3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reviewer-queue-card footer .button { min-height: 32px; padding: 6px 12px; }
.reviewer-today-panel { position: sticky; top: 84px; padding: 20px; }
.reviewer-today-stats { display: grid; gap: 9px; }
.reviewer-today-stats > span { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: baseline; gap: 5px; padding: 11px 0; border-bottom: 1px solid #f0f1f3; }
.reviewer-today-stats small { color: #667085; font-size: 12px; }
.reviewer-today-stats strong { color: #1d2939; font-size: 19px; }
.reviewer-today-stats em { color: #98a2b3; font-size: 10px; font-style: normal; }
.reviewer-efficiency { margin-top: 18px; }
.reviewer-efficiency > div { display: flex; justify-content: space-between; color: #667085; font-size: 12px; }
.reviewer-efficiency > div strong { color: var(--arco-primary); }
.reviewer-efficiency > i { display: block; height: 6px; margin: 8px 0; overflow: hidden; border-radius: 5px; background: #edf0f5; }
.reviewer-efficiency > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#00b42a,#14c95a); }
.reviewer-efficiency p { margin: 0; color: #98a2b3; font-size: 11px; line-height: 1.6; }
.reviewer-notice { display: flex; gap: 10px; margin-top: 17px; padding: 12px; border: 1px solid #fedf89; border-radius: 7px; background: #fffaeb; }
.reviewer-notice > span { flex: 0 0 auto; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #fff; background: #f79009; font-weight: 700; }
.reviewer-notice strong { color: #93370d; font-size: 12px; }
.reviewer-notice p { margin: 3px 0 0; color: #b54708; font-size: 10px; line-height: 1.5; }
.reviewer-queue-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 240px; color: #98a2b3; text-align: center; }
.reviewer-queue-empty span { font-size: 32px; }
.reviewer-queue-empty strong { margin-top: -24px; color: #475467; font-size: 14px; }
.reviewer-queue-empty small { margin-top: -36px; font-size: 11px; }

/* Four-grid queue composer */
.review-picker-modal { display: flex; flex-direction: column; width: min(860px, 100%); max-height: calc(100vh - 48px); }
.review-picker-modal .modal-header { padding: 22px 24px 18px; }
.review-picker-modal .modal-header h2 { margin-bottom: 8px; }
.review-picker-modal .modal-header p { margin: 0; color: #667085; font-size: 13px; line-height: 1.6; }
.review-picker-meta { flex: 0 0 auto; margin: 0; padding: 12px 24px; border-bottom: 1px solid #e5e7eb; }
.review-picker-slots { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 24px 12px; padding: 16px; border: 1px solid #e1e7ef; border-radius: 10px; background: #f7f9fc; }
.review-picker-slot { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 88px; padding: 16px; border: 1px dashed #cfd7e4; border-radius: 9px; color: #98a2b3; background: rgba(255,255,255,.68); }
.review-picker-slot.filled { border-style: solid; border-color: #b7c9ff; color: #344054; background: #fff; box-shadow: 0 2px 6px rgba(29,41,57,.04); cursor: grab; user-select: none; }
.review-picker-slot.filled:active { cursor: grabbing; }
.review-picker-slot.dragging { opacity: .45; transform: scale(.985); }
.review-picker-slot.drag-over { border-color: var(--arco-primary); background: #eef4ff; box-shadow: inset 0 0 0 2px rgba(22,93,255,.12); }
.review-picker-slot > span { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: #667085; background: #e9edf4; font-size: 14px; font-weight: 700; }
.review-picker-slot.filled > span { color: #fff; background: var(--arco-primary); }
.review-picker-slot > div:nth-child(2) { min-width: 0; }
.review-picker-slot strong, .review-picker-slot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-picker-slot strong { color: inherit; font-size: 15px; }
.review-picker-slot small { margin-top: 5px; color: #98a2b3; font-size: 12px; }
.review-slot-actions { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.review-slot-drag-handle { display: grid; place-items: center; width: 28px; height: 32px; color: #98a2b3; font-size: 19px; cursor: grab; }
.review-slot-actions button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #d9dfe8; border-radius: 6px; color: #475467; background: #fff; font-size: 13px; cursor: pointer; }
.review-slot-actions button:hover:not(:disabled) { border-color: var(--arco-primary); color: var(--arco-primary); background: #f5f8ff; }
.review-slot-actions button:last-child:hover { border-color: #fda29b; color: #d92d20; background: #fff5f4; }
.review-picker-modal .review-picker-list { min-height: 0; max-height: none; flex: 1 1 auto; margin: 0; padding: 10px 24px 16px; overflow-y: auto; align-content: start; }
.review-picker-modal > .modal-actions { position: relative; z-index: 2; flex: 0 0 auto; width: 100%; margin: 0; padding: 14px 24px; box-sizing: border-box; background: #fff; box-shadow: 0 -8px 18px rgba(17,24,39,.05); }

@media (max-width: 1280px) {
  .reviewer-workbench-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviewer-workbench-layout { grid-template-columns: minmax(0, 1fr); }
  .reviewer-today-panel { position: static; }
  .reviewer-today-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .reviewer-today-stats > span { display: block; }
  .reviewer-today-stats strong, .reviewer-today-stats em { display: inline-block; margin: 6px 3px 0 0; }
}
@media (max-width: 860px) {
  .reviewer-workbench-hero, .reviewer-workbench-toolbar { align-items: stretch; flex-direction: column; }
  .reviewer-workbench-toolbar > div:last-child { align-items: stretch; flex-direction: column; }
  .reviewer-queue-search { width: auto; }
  .reviewer-queue-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 620px) {
  .reviewer-workbench-hero { padding: 22px 18px; }
  .reviewer-shift-status { min-width: 0; }
  .reviewer-workbench-metrics { grid-template-columns: minmax(0, 1fr); }
  .reviewer-today-stats { grid-template-columns: minmax(0,1fr); }
  .modal-backdrop { padding: 12px; }
  .review-picker-modal { max-height: calc(100vh - 24px); }
  .review-picker-slots { grid-template-columns: minmax(0,1fr); margin-inline: 14px; padding: 12px; }
  .review-picker-modal .review-picker-list { padding-inline: 14px; }
  .review-picker-modal > .modal-actions { padding-inline: 14px; }
  .reviewer-queue-card footer { grid-template-columns: auto minmax(0, 1fr); }
  .reviewer-queue-card footer .button { grid-column: 1 / -1; width: 100%; }
}

/* Secure API session */
.api-auth-modal { width: min(440px, 100%); }
.api-auth-modal .modal-header p { margin: 7px 0 0; color: #667085; font-size: 12px; line-height: 1.6; }
.api-auth-body { padding: 20px 24px 4px; }
.api-auth-body label { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 600; }
.api-auth-body input { width: 100%; height: 42px; border: 1px solid #d9dfe8; border-radius: 7px; padding: 0 12px; color: #1d2939; background: #fff; }
.api-auth-body p { margin: 10px 0 0; color: #98a2b3; font-size: 11px; line-height: 1.6; }
.api-auth-body p.error { color: #d92d20; }
.api-auth-modal > .modal-actions { margin: 20px 0 0; padding: 14px 24px; }

/* Role-based workspace access */
[data-admin-only][hidden],
.global-search[hidden] { display: none !important; }
body.role-reviewer .main-nav { gap: 7px; }
body.role-reviewer .sidebar-domain-select { margin-bottom: 6px; }

.ai-entry { height: 36px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #f3bfd0; border-radius: 8px; color: #d84e7e; background: #fff7fa; cursor: pointer; white-space: nowrap; }
.ai-entry:hover { border-color: #ef82a8; background: #fff0f5; box-shadow: 0 3px 10px rgba(216,78,126,.12); }
.ai-entry span { font-size: 16px; line-height: 1; }
.ai-entry strong { font-size: 12px; font-weight: 700; }
.ai-assistant-backdrop { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: rgba(16,24,40,.08); opacity: 0; transition: opacity .2s ease; }
.ai-assistant-backdrop.open { pointer-events: auto; opacity: 1; }
.ai-assistant-panel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(430px,calc(100vw - 28px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #f0d8e1; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(43,28,40,.2); transform: translateX(18px); transition: transform .2s ease; }
.ai-assistant-backdrop.open .ai-assistant-panel { transform: translateX(0); }
.ai-assistant-header { padding: 20px 20px 16px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #f3e8ec; background: linear-gradient(135deg,#fff7fa,#fff); }
.ai-assistant-brand { display: flex; align-items: center; gap: 11px; }
.ai-assistant-brand > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#f26b9c,#a979ec); font-size: 21px; }
.ai-assistant-brand h2,.ai-assistant-brand p { margin: 0; }
.ai-assistant-brand h2 { color: #293246; font-size: 18px; }
.ai-assistant-brand p { margin-top: 5px; color: #a17b8c; font-size: 11px; }
.ai-assistant-scope { margin: 14px 18px 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; border-radius: 8px; color: #8d7180; background: #fff7fa; font-size: 11px; }
.ai-assistant-scope strong { color: #c44d77; }
.ai-assistant-scope em { margin-left: auto; color: #35a77c; font-size: 10px; font-style: normal; }
.ai-assistant-messages { min-height: 0; flex: 1; padding: 16px 18px; overflow-y: auto; }
.ai-message { max-width: 88%; margin-bottom: 12px; padding: 11px 13px; border-radius: 10px; color: #475467; background: #f7f8fa; font-size: 12px; line-height: 1.7; white-space: pre-line; }
.ai-message.user { margin-left: auto; color: #fff; background: #e76593; }
.ai-message strong { color: #c34d77; }
.ai-message.user strong { color: #fff; }
.ai-assistant-quick { padding: 0 18px 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.ai-assistant-quick button { padding: 7px 10px; border: 1px solid #f1d1dc; border-radius: 7px; color: #b34b72; background: #fffafd; font-size: 11px; cursor: pointer; }
.ai-assistant-quick button:hover { background: #fff0f5; }
.ai-assistant-form { margin: 0; padding: 13px 15px; display: flex; gap: 8px; border-top: 1px solid #f0e8eb; background: #fff; }
.ai-assistant-form input { min-width: 0; flex: 1; height: 38px; padding: 0 11px; border: 1px solid #e5dfe3; border-radius: 8px; outline: 0; color: #344054; font-size: 12px; }
.ai-assistant-form input:focus { border-color: #ee91b0; box-shadow: 0 0 0 3px rgba(238,145,176,.12); }
.ai-assistant-form button { height: 38px; padding: 0 15px; border: 0; border-radius: 8px; color: #fff; background: #e76593; cursor: pointer; font-size: 12px; font-weight: 700; }
@media (max-width: 760px) { .ai-entry strong { display: none; } .ai-entry { width: 36px; padding: 0; justify-content: center; } .ai-assistant-panel { top: 0; right: 0; bottom: 0; width: min(430px,100vw); border-radius: 0; } }

.digital-employee-overview { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.digital-employee-overview article { padding: 16px 18px; border: 1px solid var(--gov-line); border-radius: 9px; background: #fff; }
.digital-employee-overview span,.digital-employee-overview small { display: block; color: #929cab; font-size: 10px; }
.digital-employee-overview strong { display: block; margin: 7px 0 4px; color: #263348; font-size: 25px; }
.digital-employee-toolbar { margin-bottom: 16px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.digital-employee-tabs { display: flex; gap: 5px; }
.digital-employee-tabs button { padding: 8px 13px; border: 0; border-radius: 6px; color: #7d8795; background: transparent; cursor: pointer; font-size: 11px; }
.digital-employee-tabs button.active { color: var(--gov-primary); background: #fff0f5; font-weight: 700; }
.digital-employee-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.digital-employee-card { overflow: hidden; border: 1px solid var(--gov-line); border-radius: 10px; background: #fff; }
.digital-employee-card header { padding: 15px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #f0f2f5; }
.digital-employee-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#f26b9c,#a979ec); font-size: 18px; }
.digital-employee-card h3,.digital-employee-card p { margin: 0; }
.digital-employee-card h3 { color: #344054; font-size: 14px; }
.digital-employee-card header p { margin-top: 5px; color: #98a2b3; font-size: 10px; }
.agent-status { margin-left: auto; padding: 4px 7px; border-radius: 9px; font-size: 9px; font-style: normal; white-space: nowrap; }
.agent-status.gray { color: #b06c15; background: #fff3dc; }.agent-status.published { color: #168c68; background: #e9faf3; }.agent-status.draft { color: #7d8795; background: #f0f2f5; }
.digital-employee-card-body { padding: 14px 15px; display: grid; gap: 11px; }
.digital-employee-card-body div { display: flex; flex-direction: column; gap: 4px; }.digital-employee-card-body span { color: #98a2b3; font-size: 10px; }.digital-employee-card-body strong { color: #59667a; font-size: 11px; font-weight: 600; line-height: 1.45; }
.agent-wide-field { grid-column: 1/-1; }.agent-wide-field textarea,.digital-employee-create-body textarea { width: 100%; padding: 10px; border: 1px solid #dfe3e9; border-radius: 7px; color: #344054; background: #fff; outline: 0; resize: vertical; line-height: 1.55; }.digital-employee-create-body label small { color: #98a2b3; font-size: 10px; font-weight: 400; }
.digital-employee-card footer { padding: 12px 15px; display: flex; align-items: center; gap: 7px; border-top: 1px solid #f0f2f5; }.agent-gray-bar { height: 5px; flex: 1; overflow: hidden; border-radius: 5px; background: #edf0f4; }.agent-gray-bar i { height: 100%; display: block; border-radius: inherit; background: #e9a24b; }.digital-employee-card footer b,.digital-employee-card footer small { color: #929cab; font-size: 9px; white-space: nowrap; }.digital-employee-card footer button { padding: 0; border: 0; color: var(--gov-primary); background: transparent; cursor: pointer; font-size: 10px; white-space: nowrap; }
.digital-employee-empty { grid-column: 1/-1; padding: 60px; color: #98a2b3; text-align: center; }.digital-employee-create-modal { width: min(650px,calc(100vw - 32px)); }.digital-employee-create-body { padding: 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.digital-employee-create-body > label { display: flex; flex-direction: column; gap: 7px; color: #59667a; font-size: 11px; font-weight: 600; }.digital-employee-create-body input,.digital-employee-create-body select { height: 38px; padding: 0 10px; border: 1px solid #dfe3e9; border-radius: 7px; color: #344054; background: #fff; outline: 0; }.digital-employee-queue-field,.digital-employee-gray-config { grid-column: 1/-1; }.digital-employee-queue-field > span,.digital-employee-gray-config > span { color: #98a2b3; font-size: 9px; font-weight: 400; }.digital-employee-queue-picker { max-height: 150px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow-y: auto; border: 1px solid #e7eaf0; border-radius: 7px; }.digital-employee-queue-picker label { padding: 8px; display: flex; align-items: center; gap: 6px; border-radius: 5px; background: #fafbfc; font-size: 10px; }.digital-employee-queue-picker small { margin-left: auto; color: #98a2b3; }.digital-employee-gray-config { padding: 13px; display: flex; flex-direction: column; gap: 6px; border-radius: 8px; background: #fff7fa; }.digital-employee-gray-config strong { color: #344054; font-size: 12px; }.digital-employee-gray-config label { display: flex; align-items: center; gap: 10px; color: #59667a; font-size: 10px; }.digital-employee-gray-config input[type=range] { flex: 1; accent-color: #e76593; }.digital-employee-gray-config output { color: #c44d77; font-weight: 700; }
.agent-workflow-preview { grid-column: 1/-1; padding: 14px; border: 1px solid #e7eaf0; border-radius: 8px; background: #f8fafc; }
.agent-workflow-preview > strong { color: #344054; font-size: 12px; }
.agent-workflow-preview > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 8px; }
.agent-workflow-preview span { padding: 7px 9px; border-radius: 6px; color: #475467; background: #fff; font-size: 11px; }
.agent-workflow-preview i { color: #98a2b3; font-style: normal; }
.agent-workflow-preview small { color: #667085; }
.digital-employee-queue-picker input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gov-primary); }
@media (max-width: 980px) { .digital-employee-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .digital-employee-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }.digital-employee-toolbar { align-items: stretch; flex-direction: column; }.digital-employee-grid,.digital-employee-create-body,.digital-employee-queue-picker { grid-template-columns: 1fr; }.digital-employee-queue-field,.digital-employee-gray-config { grid-column: auto; } }

/* Agent Studio */
.agent-studio { max-width: 1540px; margin: 0 auto; }.agent-studio-topbar { margin: -4px 0 18px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gov-line); }.agent-studio-topbar > div { display: flex; align-items: center; gap: 10px; }.agent-studio-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; }.agent-studio-heading h1 { margin: 0 0 7px; color: #1d2939; font-size: 25px; }.agent-studio-heading p { margin: 0; color: #667085; }.agent-studio-heading > span { padding: 6px 10px; border: 1px solid #d6e4ff; border-radius: 7px; color: #165dff; background: #f2f7ff; font-size: 11px; }.agent-studio-layout { display: grid; grid-template-columns: 205px minmax(0,1fr) 220px; gap: 16px; align-items: start; }.agent-studio-steps { position: sticky; top: 82px; padding: 10px; }.agent-studio-steps button { width: 100%; padding: 11px 10px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; color: #667085; background: transparent; text-align: left; }.agent-studio-steps button + button { margin-top: 3px; }.agent-studio-steps button:hover,.agent-studio-steps button.active { color: #165dff; background: #f2f7ff; }.agent-studio-steps i { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d0d5dd; border-radius: 50%; font-size: 10px; font-style: normal; }.agent-studio-steps button.active i { border-color: #165dff; color: #fff; background: #165dff; }.agent-studio-steps strong,.agent-studio-steps small { display: block; }.agent-studio-steps strong { font-size: 12px; }.agent-studio-steps small { margin-top: 3px; color: #98a2b3; font-size: 9px; }.agent-studio-main { display: grid; gap: 16px; }.agent-config-section { padding: 20px; scroll-margin-top: 84px; }.agent-section-head { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; }.agent-section-head span { color: #165dff; font-size: 9px; font-weight: 700; letter-spacing: .8px; }.agent-section-head h2 { margin: 4px 0 5px; color: #344054; font-size: 17px; }.agent-section-head p { margin: 0; color: #98a2b3; font-size: 11px; }.agent-section-head > em { padding: 5px 8px; border-radius: 6px; color: #667085; background: #f2f4f7; font-size: 9px; font-style: normal; }.agent-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.agent-form-grid label,.agent-test-grid label { display: flex; flex-direction: column; gap: 7px; color: #475467; font-size: 11px; font-weight: 600; }.agent-form-grid input,.agent-form-grid select,.agent-form-grid textarea,.agent-test-grid textarea { width: 100%; padding: 9px 10px; border: 1px solid #dfe3e9; border-radius: 7px; color: #344054; background: #fff; outline: 0; resize: vertical; }.agent-form-grid input,.agent-form-grid select { height: 38px; }.agent-form-grid small { color: #98a2b3; font-size: 9px; font-weight: 400; }.agent-model-grid { margin-bottom: 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.agent-model-card { position: relative; padding: 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #e4e7ec; border-radius: 8px; cursor: pointer; }.agent-model-card:has(input:checked) { border-color: #8fb4ff; background: #f6f9ff; box-shadow: inset 0 0 0 1px #8fb4ff; }.agent-model-card input { position: absolute; opacity: 0; }.agent-model-card > b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(135deg,#165dff,#7b61ff); font-size: 10px; }.agent-model-card strong,.agent-model-card small { display: block; }.agent-model-card strong { color: #344054; font-size: 11px; }.agent-model-card small { margin-top: 3px; color: #98a2b3; font-size: 8px; }.agent-model-card > em { margin-left: auto; padding: 3px 5px; border-radius: 5px; color: #165dff; background: #e8f3ff; font-size: 8px; font-style: normal; }.agent-pe-layout { display: grid; grid-template-columns: minmax(0,1fr) 205px; gap: 12px; }.agent-pe-editor { overflow: hidden; border: 1px solid #dfe3e9; border-radius: 8px; }.agent-editor-bar { height: 37px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: #667085; background: #f8fafc; border-bottom: 1px solid #e4e7ec; font-size: 10px; }.agent-editor-bar button { border: 0; color: #165dff; background: transparent; font-size: 10px; }.agent-pe-editor textarea { width: 100%; min-height: 310px; padding: 15px; border: 0; color: #d0d5dd; background: #1f2937; outline: 0; resize: vertical; font: 12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; }.agent-variable-panel { padding: 10px; border: 1px solid #e4e7ec; border-radius: 8px; }.agent-variable-panel h3 { margin: 4px 5px 10px; color: #344054; font-size: 11px; }.agent-variable-panel button { width: 100%; padding: 8px; display: block; border: 0; border-radius: 6px; background: transparent; text-align: left; }.agent-variable-panel button:hover { background: #f2f7ff; }.agent-variable-panel code,.agent-variable-panel span { display: block; }.agent-variable-panel code { color: #165dff; font-size: 9px; }.agent-variable-panel span { margin-top: 3px; color: #98a2b3; font-size: 8px; }.agent-workflow-canvas { margin-bottom: 16px; padding: 18px; display: flex; align-items: stretch; gap: 7px; overflow-x: auto; border: 1px solid #e4e7ec; border-radius: 9px; background: #f8fafc; }.agent-workflow-canvas article { min-width: 116px; padding: 11px; border: 1px solid #e4e7ec; border-radius: 7px; background: #fff; }.agent-workflow-canvas article.primary { border-color: #8fb4ff; background: #f2f7ff; }.agent-workflow-canvas i,.agent-workflow-canvas b,.agent-workflow-canvas small { display: block; }.agent-workflow-canvas i { color: #165dff; font-size: 9px; font-style: normal; }.agent-workflow-canvas b { margin: 7px 0 4px; color: #344054; font-size: 11px; }.agent-workflow-canvas small { color: #98a2b3; font-size: 8px; line-height: 1.45; }.agent-workflow-canvas > span { align-self: center; color: #98a2b3; }.agent-test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.agent-test-result { min-height: 170px; padding: 16px; border: 1px dashed #ccd4df; border-radius: 8px; color: #667085; background: #f8fafc; }.agent-test-result div span,.agent-test-result div strong { display: block; }.agent-test-result div span { color: #98a2b3; font-size: 9px; }.agent-test-result div strong { margin-top: 6px; color: #344054; font-size: 13px; }.agent-test-result p { margin: 15px 0 0; font-size: 10px; line-height: 1.6; }.agent-test-result.success { border-style: solid; border-color: #a7e8d1; background: #f0fbf7; }.agent-test-json { margin-top: 12px; padding: 10px; border-radius: 6px; color: #c7d7fe; background: #1f2937; font: 9px/1.6 ui-monospace,monospace; white-space: pre-wrap; }.agent-studio-inspector { position: sticky; top: 82px; padding: 14px; }.agent-studio-inspector h3 { margin: 2px 0 13px; color: #344054; font-size: 12px; }.agent-studio-inspector > div { padding: 10px 0; display: flex; gap: 8px; border-top: 1px solid #f0f2f5; }.agent-studio-inspector > div > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #667085; background: #f2f4f7; font-size: 9px; }.agent-studio-inspector > div > span.complete { color: #fff; background: #12b76a; }.agent-studio-inspector strong,.agent-studio-inspector small { display: block; }.agent-studio-inspector strong { color: #475467; font-size: 10px; }.agent-studio-inspector small { margin-top: 3px; color: #98a2b3; font-size: 8px; }.agent-studio-inspector p { margin: 0; }.agent-studio-inspector footer { margin-top: 10px; padding: 12px; border-radius: 7px; background: #f2f7ff; }.agent-studio-inspector footer strong,.agent-studio-inspector footer span { display: block; font-size: 9px; }.agent-studio-inspector footer span { margin: 4px 0; color: #165dff; font-weight: 700; }.agent-studio-inspector footer p { color: #667085; font-size: 8px; line-height: 1.5; }
.agent-resource-previews { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.agent-resource-previews article { padding: 14px; border: 1px solid #e4e7ec; border-radius: 8px; background: #f8fafc; }.agent-resource-previews header { display: flex; justify-content: space-between; }.agent-resource-previews header span,.agent-resource-previews header strong { display: block; }.agent-resource-previews header span { color: #98a2b3; font-size: 9px; }.agent-resource-previews header strong { margin-top: 4px; color: #344054; font-size: 12px; }.agent-resource-previews header em { color: #165dff; font-size: 9px; font-style: normal; }.agent-resource-previews p { color: #667085; font-size: 10px; line-height: 1.6; }.agent-resource-previews article > div { display: flex; flex-wrap: wrap; gap: 5px; }.agent-resource-previews article > div span { padding: 4px 6px; border-radius: 5px; color: #475467; background: #fff; font-size: 8px; }.agent-resource-previews footer { margin-top: 10px; color: #98a2b3; font-size: 8px; }.agent-autope-brief { margin-bottom: 12px; padding: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; border: 1px solid #d6e4ff; border-radius: 8px; background: #f6f9ff; }.agent-autope-brief label { display: flex; flex-direction: column; gap: 7px; color: #475467; font-size: 11px; font-weight: 600; }.agent-autope-brief textarea { padding: 9px; border: 1px solid #dfe3e9; border-radius: 7px; resize: vertical; }.agent-editor-bar em { color: #98a2b3; font-size: 9px; font-style: normal; }.agent-variable-panel > code,.agent-variable-panel > span { padding: 4px 5px; }.agent-variable-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.agent-variable-builder > section { padding: 12px; border: 1px solid #e4e7ec; border-radius: 8px; }.agent-variable-builder header { margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; }.agent-variable-builder header strong,.agent-variable-builder header small { display: block; }.agent-variable-builder header strong { color: #344054; font-size: 11px; }.agent-variable-builder header small { margin-top: 3px; color: #98a2b3; font-size: 8px; }.agent-variable-builder header button { border: 0; color: #165dff; background: transparent; font-size: 9px; }.agent-variable-row { margin-top: 6px; display: grid; grid-template-columns: minmax(0,1fr) 90px 58px 28px; gap: 6px; align-items: center; }.agent-variable-row > input,.agent-variable-row > select { width: 100%; height: 31px; padding: 0 7px; border: 1px solid #e4e7ec; border-radius: 6px; font-size: 9px; }.agent-variable-row label { display: flex; align-items: center; gap: 3px; color: #667085; font-size: 8px; }.agent-variable-row button { width: 27px; height: 27px; border: 0; border-radius: 5px; color: #98a2b3; background: #f2f4f7; }.agent-workflow-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; color: #475467; font-size: 10px; font-weight: 600; }.agent-workflow-steps textarea { padding: 10px; border: 1px solid #e4e7ec; border-radius: 7px; resize: vertical; }.agent-test-toolbar { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }.agent-test-toolbar label { display: flex; flex-direction: column; gap: 6px; color: #475467; font-size: 10px; font-weight: 600; }.agent-test-toolbar select { min-width: 230px; height: 36px; padding: 0 9px; border: 1px solid #dfe3e9; border-radius: 7px; }.agent-test-trace { margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; list-style: none; }.agent-test-trace li { padding: 7px; border-radius: 5px; color: #98a2b3; background: #fff; font-size: 8px; text-align: center; }.agent-test-trace li.active { color: #165dff; background: #e8f3ff; }.agent-test-trace li.done { color: #168c68; background: #e9faf3; }.agent-test-result.running { border-style: solid; border-color: #8fb4ff; background: #f6f9ff; }.agent-test-result.failed { border-style: solid; border-color: #fda29b; background: #fff5f4; }.agent-test-metrics { margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }.agent-test-metrics span { padding: 8px; border-radius: 6px; color: #667085; background: #fff; font-size: 8px; }.agent-test-metrics strong { margin-top: 4px!important; font-size: 12px!important; }
.agent-risk-tree-field { padding: 15px; border: 1px solid #e4e7ec; border-radius: 9px; background: #f8fafc; }
.agent-risk-tree-field > header { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-risk-tree-field > summary { cursor: pointer; padding: 12px 0; color: #344054; }
.agent-risk-tree-field > summary > div { display: inline-block; vertical-align: middle; }
.agent-risk-tree-field > summary small { display: block; margin-top: 5px; color: #667085; font-size: 13px; }
.agent-risk-tree-field > summary > span { display: inline-block; margin-left: 12px; color: #165dff; font-size: 13px; }
.studio-queue-parameters { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; min-width: 0; }
.studio-queue-parameters > header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.studio-queue-parameters > header span,.studio-queue-parameters > p { color: #667085; font-size: 14px; }
.studio-queue-parameter-table { overflow-x: auto; }
.studio-queue-parameter-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.studio-queue-parameter-table th,.studio-queue-parameter-table td { padding: 10px 8px; border-bottom: 1px solid #eef0f3; overflow-wrap: anywhere; }
.studio-queue-parameter-table th { color: #667085; background: #f7f8fa; font-weight: 500; }
.studio-queue-parameter-table button { margin: 3px 8px 3px 0; white-space: nowrap; }
.agent-risk-tree-field > header strong,.agent-risk-tree-field > header small { display: block; }
.agent-risk-tree-field > header strong { color: #344054; font-size: 12px; }
.agent-risk-tree-field > header small { margin-top: 4px; color: #98a2b3; font-size: 9px; font-weight: 400; }
.agent-risk-tree-field > header > span { padding: 5px 9px; border-radius: 12px; color: #165dff; background: #e8f3ff; font-size: 9px; font-weight: 600; white-space: nowrap; }
.agent-risk-tree { overflow: hidden; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; }
.agent-risk-root { padding: 10px 12px 12px; }
.agent-risk-root > summary,.agent-risk-level-one > summary { min-height: 36px; padding: 8px 4px; cursor: pointer; font-size: 14px; color: #344054; }
.agent-risk-tree summary:focus-visible,.agent-risk-tree-field > summary:focus-visible { outline: 2px solid #165dff; outline-offset: 2px; }
.agent-risk-root-title,.agent-risk-level-one-title { min-height: 28px; display: flex; align-items: center; gap: 6px; color: #344054; }
.agent-risk-root-title > span,.agent-risk-level-one-title > span { color: #475467; font-size: 10px; }
.agent-risk-root-title > strong { font-size: 11px; }
.agent-risk-level-one { position: relative; margin-left: 10px; padding-left: 17px; }
.agent-risk-level-one::before,.agent-risk-branches::before,.agent-risk-leaves::before { position: absolute; top: 0; bottom: 10px; left: 0; width: 1px; background: #d9e1ec; content: ""; }
.agent-risk-level-one-title { font-size: 10px; }
.agent-risk-level-one-title::before,.agent-risk-branches details::before,.agent-risk-tree label::before { position: absolute; left: -17px; width: 12px; height: 1px; background: #d9e1ec; content: ""; }
.agent-risk-branches { position: relative; margin-left: 10px; padding-left: 20px; }
.agent-risk-branches details { position: relative; }
.agent-risk-branches details::before { top: 17px; left: -20px; width: 15px; }
.agent-risk-branches summary { min-height: 34px; padding: 0 7px; display: flex; align-items: center; gap: 7px; border-radius: 5px; color: #475467; cursor: pointer; list-style: none; }
.agent-risk-branches summary::-webkit-details-marker { display: none; }
.agent-risk-branches summary::before { color: #667085; content: "▸"; font-size: 9px; transition: transform .15s ease; }
.agent-risk-branches details[open] > summary::before { transform: rotate(90deg); }
.agent-risk-branches summary > i { width: 13px; height: 13px; flex: 0 0 auto; border: 1px solid #98a2b3; border-radius: 50%; background: #fff; }
.agent-risk-branches summary > b,.agent-risk-tree label > b { padding: 2px 5px; border-radius: 4px; color: #4080ff; background: #e8f3ff; font-size: 8px; font-weight: 500; white-space: nowrap; }
.agent-risk-branches summary > strong { font-size: 10px; font-weight: 500; }
.agent-risk-branches summary > small { margin-left: auto; color: #98a2b3; font-size: 8px; }
.agent-risk-leaves { position: relative; margin-left: 28px; padding-left: 17px; }
.agent-risk-tree label { position: relative; min-height: 34px; padding: 0 9px; display: flex; flex-direction: row; align-items: center; gap: 7px; border-radius: 5px; color: #475467; cursor: pointer; font-size: 10px; font-weight: 500; transition: background .15s ease,color .15s ease; }
.agent-risk-tree label::before { top: 17px; }
.agent-risk-tree label:hover { background: #f5f8ff; }
.agent-risk-tree label.selected { color: #344054; background: #eaf3ff; }
.agent-risk-tree label input { width: 14px; height: 14px; flex: 0 0 auto; appearance: none; border: 1px solid #98a2b3; border-radius: 50%; background: #fff; cursor: pointer; }
.agent-risk-tree label input:checked { border: 4px solid #165dff; }
.agent-risk-tree label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-risk-tree label em { margin-left: auto; min-width: 20px; text-align: center; font-size: 8px; font-style: normal; font-weight: 700; }
.agent-risk-tree label em.grade-s { color: #f53f3f; }
.agent-risk-tree label em.grade-a { color: #f77234; }
.agent-risk-tree label em.grade-b { color: #86909c; }
.agent-studio-layout { grid-template-columns: 170px minmax(0,1fr) 200px; }
.agent-studio-main { min-width: 0; width: auto; margin: 0; padding: 0; }
.agent-studio .agent-config-section { min-width: 0; margin: 0; }
.agent-studio input,.agent-studio select,.agent-studio textarea { max-width: 100%; font-size: 13px; }
.agent-studio .agent-form-grid > label,.agent-studio .agent-test-grid > label { font-size: 13px; }
.agent-studio .agent-form-grid small { font-size: 12px; line-height: 1.5; }
.agent-studio .agent-section-head span { letter-spacing: 0; }
.agent-studio .agent-studio-steps strong { font-size: 13px; }
.agent-studio .agent-studio-steps small { font-size: 11px; }
.agent-studio .agent-risk-tree-field { padding: 0; border: 0; background: transparent; }
.agent-studio .agent-risk-tree { max-height: 380px; overflow-y: auto; }
.agent-studio .agent-risk-tree label { min-height: 36px; font-size: 12px; }
.agent-studio .agent-risk-tree label input { padding: 0; }
.agent-studio .agent-risk-tree label input:focus-visible { outline: 2px solid #165dff; outline-offset: 3px; }
.agent-studio .agent-risk-tree label > span { white-space: normal; overflow-wrap: anywhere; }
.agent-studio .agent-pe-layout { grid-template-columns: minmax(0,1fr); }
.agent-studio .agent-variable-panel { display: grid; grid-template-columns: auto 1fr; gap: 8px; border: 0; padding: 0; }
.agent-studio .agent-variable-panel h3 { grid-column: 1 / -1; }
.agent-studio .agent-pe-editor textarea { color: #344054; background: #fcfdff; min-height: 340px; font-size: 13px; }
.agent-studio .agent-test-grid { grid-template-columns: minmax(0,1fr); }
.agent-studio .agent-test-toolbar { flex-wrap: wrap; }
.agent-studio .agent-test-toolbar select { min-width: 140px; }
.agent-studio .agent-test-json { font-size: 12px; overflow-wrap: anywhere; }
.agent-studio .agent-variable-builder { grid-template-columns: minmax(0,1fr); }
.agent-studio .agent-variable-row { grid-template-columns: minmax(0,1fr) 90px 60px 28px; }
.agent-studio .agent-resource-previews { grid-template-columns: minmax(0,1fr); }
.agent-studio .agent-resource-previews article { min-width: 0; }
.agent-studio .agent-resource-previews header { align-items: start; gap: 12px; }
.agent-studio .agent-resource-previews header strong { font-size: 13px; }
.agent-studio .agent-resource-previews em { flex-shrink: 0; font-size: 11px; }
.agent-studio .agent-resource-previews pre,.agent-test-result pre { max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 inherit; color: #475467; }
.agent-studio .agent-resource-previews summary { padding: 12px 0 0; cursor: pointer; font-size: 12px; }
.studio-resource-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.studio-parameters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.studio-parameters label { display: grid; gap: 7px; font-size: 12px; color: #475467; }
.studio-parameters input { width: 100%; height: 36px; padding: 7px; border: 1px solid #dfe3e9; border-radius: 6px; }
.studio-connection { padding: 10px 12px; border-left: 3px solid #ffb74d; color: #805a11; background: #fff8e8; font-size: 12px; }
.studio-connection.ready { border-color: #12b76a; color: #027a48; background: #ecfdf3; }
#studioChecks { display: block; }
#studioChecks p { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 12px; }
#studioChecks strong { font-size: 12px; }
#studioChecks .ready { color: #039855; }
#studioChecks .pending { color: #b57916; }
#studioVersionSelect { width: 100%; height: 34px; border: 1px solid #dfe3e9; border-radius: 4px; font-size: 11px; }
#studioRestoreVersion { width: 100%; margin: 8px 0 20px; }
#studioRunHistory { display: grid; max-height: 320px; overflow: auto; font-size: 12px; gap: 6px; }
#studioRunHistory button { border: 1px solid #e4e7ec; background: #fff; border-radius: 4px; padding: 8px; text-align: left; cursor: pointer; }
#studioRunHistory strong { font-size: 12px; }
#studioRunHistory small { font-size: 10px; }
.studio-trace { padding: 0; list-style: none; margin: 15px 0; }
.studio-trace li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e4e7ec; font-size: 12px; }
.studio-trace strong { min-width: 60px; }
.studio-enum-values { grid-column: 1 / -1; }
.studio-dialog { width: min(720px,calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; padding: 24px; border: 1px solid #dfe3e9; border-radius: 8px; color: #344054; }
.studio-dialog::backdrop { background: rgba(29,41,57,.35); }
.studio-dialog header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.studio-dialog h2 { margin: 0; font-size: 18px; }
.studio-dialog label { display: grid; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.studio-dialog input,.studio-dialog textarea { padding: 10px; border: 1px solid #d0d5dd; border-radius: 6px; font: inherit; }
.studio-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
#studioServiceStatus:not(:empty) { padding: 12px; margin-bottom: 16px; color: #805a11; background: #fff8e8; }
.digital-employee-card footer { flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.digital-employee-card-body strong { overflow-wrap: anywhere; }
@media (max-width: 1450px) { .agent-studio-layout { grid-template-columns: 165px minmax(0,1fr); }.agent-studio .agent-studio-inspector { grid-column: 2; position: static; display: block; } }
@media (max-width: 820px) { .agent-studio .agent-studio-layout { grid-template-columns: minmax(0,1fr); }.agent-studio .agent-studio-inspector { grid-column: 1; }.agent-studio .agent-studio-topbar { align-items: start; flex-wrap: wrap; gap: 10px; }.agent-studio-topbar > div { flex-wrap: wrap; }.agent-studio .agent-config-section { padding: 14px; }.agent-studio .agent-studio-heading { flex-wrap: wrap; gap: 10px; }.studio-parameters { grid-template-columns: minmax(0,1fr); }.agent-studio .agent-risk-root { padding: 8px; }.agent-studio .agent-risk-level-one { margin-left: 2px; padding-left: 10px; }.agent-studio .agent-risk-branches { margin-left: 0; padding-left: 10px; }.agent-studio .agent-risk-leaves { margin-left: 12px; padding-left: 10px; } }
@media (max-width: 1250px) { .agent-studio-layout { grid-template-columns: 180px minmax(0,1fr); }.agent-studio-inspector { display: none; } }
@media (max-width: 820px) { .agent-studio-layout { grid-template-columns: 1fr; }.agent-studio-steps { position: static; display: flex; overflow-x: auto; }.agent-studio-steps button { min-width: 145px; }.agent-form-grid,.agent-model-grid,.agent-pe-layout,.agent-test-grid,.agent-resource-previews,.agent-variable-builder { grid-template-columns: 1fr; }.agent-autope-brief { grid-template-columns: 1fr; }.agent-test-toolbar { align-items: stretch; flex-direction: column; } }
