/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.25_@playwright+test@1.63.0_@types+node@22.20.2_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.25_@playwright+test@1.63.0_@types+node@22.20.2_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/components/ui/ui.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:active:not(:disabled) {
  transform: translateY(0.5px);
}

.btn-loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn-sm {
  padding: 5px 9px;
  font-size: 12px;
}

.btn-lg {
  padding: 11px 16px;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-muted);
}

.btn-danger {
  background: rgba(226, 104, 111, 0.15);
  border-color: rgba(226, 104, 111, 0.45);
  color: #ffb4b8;
}

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.bulk-bar-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.bulk-bar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.field label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.field-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--text);
}

.field-control:hover {
  border-color: var(--border-strong);
}

.field-control::placeholder {
  color: color-mix(in srgb, var(--text-muted) 80%, transparent);
}

textarea.field-control {
  min-height: 96px;
  resize: vertical;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  white-space: nowrap;
}

.badge-success {
  color: #9aefc9;
  border-color: rgba(47, 191, 138, 0.4);
  background: rgba(47, 191, 138, 0.12);
}

.badge-warning {
  color: #f0d08a;
  border-color: rgba(226, 163, 54, 0.4);
  background: rgba(226, 163, 54, 0.12);
}

.badge-danger {
  color: #ffb4b8;
  border-color: rgba(226, 104, 111, 0.4);
  background: rgba(226, 104, 111, 0.12);
}

.badge-info {
  color: #a8d7f2;
  border-color: rgba(74, 163, 217, 0.4);
  background: rgba(74, 163, 217, 0.12);
}

.badge-primary {
  color: #b6dcff;
  border-color: rgba(59, 154, 225, 0.45);
  background: rgba(59, 154, 225, 0.14);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 1px;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius);
  overflow: visible;
}

.metric-strip .metric-card {
  min-height: 64px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  gap: 4px;
  background: var(--surface-1);
}

.metric-strip .metric-value {
  font-size: 18px;
  min-height: 1.15em;
  overflow: visible;
}

.metric-strip .metric-footer {
  min-height: 0;
  margin-top: 0;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-1);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: background 0.12s ease;
  min-height: 88px;
}

a.metric-card:hover {
  border-color: var(--border);
  background: var(--surface-2);
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  order: -1;
}

.metric-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  min-height: 16px;
}

.metric-hint {
  font-size: 11px;
  color: var(--text-faint);
}

.metric-delta {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
}

.metric-delta.tone-success,
.metric-success .metric-value { color: var(--success); }
.metric-delta.tone-warning,
.metric-warning .metric-value { color: var(--warning); }
.metric-delta.tone-danger,
.metric-danger .metric-value { color: var(--danger); }
.metric-delta.tone-info,
.metric-info .metric-value { color: var(--info); }


.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr.clickable {
  cursor: pointer;
}

.data-table th:last-child,
.data-table td:last-child,
.data-table th.col-actions,
.data-table td.col-actions {
  width: 1%;
  max-width: max-content;
  text-align: right;
  white-space: nowrap;
}

.data-table td:last-child .row,
.data-table td.col-actions .row {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2px;
}

.data-table td.wrap {
  white-space: normal;
  max-width: 280px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--border-subtle);
}

.form-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.form-section h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.setting-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.setting-chip strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.empty-state,
.error-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  background: var(--surface-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-state h3,
.error-state h3 {
  margin: 0;
  font-size: 15px;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-muted) 0%,
    color-mix(in srgb, var(--border) 55%, var(--surface-muted)) 50%,
    var(--surface-muted) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-secondary);
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px 10px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.page-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  max-width: 64ch;
  font-weight: 400;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 12, 0.55);
  z-index: var(--z-drawer);
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: min(var(--drawer-width), 100vw);
  height: 100%;
  background: var(--surface-1);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.drawer-header p {
  margin: 4px 0 0;
  font-size: 12px;
}

.drawer-body {
  padding: 16px 18px;
  overflow: auto;
  flex: 1 1;
}

.drawer-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}


.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-3);
}

.tab {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 13px;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 12, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 80;
}

.modal {
  width: min(480px, 100%);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal h2 {
  margin: 0;
  font-size: 16px;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}

.toast-success { border-color: rgba(47, 191, 138, 0.45); }
.toast-error { border-color: rgba(226, 104, 111, 0.5); }
.toast-info { border-color: rgba(74, 163, 217, 0.45); }

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.health-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.health-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-muted);
  flex-shrink: 0;
}

.health-ready::before { background: var(--success); }
.health-attention::before { background: var(--warning); }
.health-blocked::before { background: var(--danger); }
.health-paused::before { background: var(--text-faint); }

.health-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-track {
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

.filter-bar-compact {
  background: transparent;
  border: 0;
  padding: 0;
}

.filter-bar .field {
  width: auto;
  min-width: 140px;
  flex: 0 0 200px;
}

.filter-bar .field:has(select) {
  flex: 0 0 200px;
  width: 200px;
  max-width: 240px;
}

.filter-bar .field:has(input:not([type='checkbox'])) {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
}

.filter-bar .field-control {
  padding: 6px 10px;
}

.filter-bar .dest-search {
  width: auto;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
  margin-bottom: 0;
}

.attention-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.attention-card h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.attention-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attention-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.attention-banner {
  background: var(--warning-muted);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
}

.page.ops-fill {
  overflow: hidden;
}

.page.ops-fill > :not(.ops-workspace) {
  flex-shrink: 0;
}

.ops-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  flex: 1 1;
  min-height: 0;
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ops-pane,
.ops-pane-center,
.ops-pane-right {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.ops-pane {
  padding: 14px 12px;
}

.ops-pane-center {
  background: var(--bg-app);
  padding: 14px 16px 24px;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.ops-pane-right {
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 12px;
}

.dest-search {
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 12px;
  color: inherit;
}

.ops-pane .dest-search {
  width: 100%;
  margin-bottom: 8px;
}

.dest-row {
  width: 100%;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  padding: 8px 8px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text);
}

.dest-row:hover,
.dest-row.active {
  background: var(--surface-2);
}

.dest-row.active {
  background: var(--primary-muted);
}

.dest-row > div {
  min-width: 0;
}

.dest-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dest-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.dest-count {
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.saved-views {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ops-timeline-group {
  margin-bottom: 18px;
}

.ops-timeline-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 72px;
}

.ops-job {
  display: grid;
  grid-template-columns: 56px 18px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: stretch;
}

.ops-job-time {
  font-size: 12px;
  color: var(--text-muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  padding-top: 10px;
  text-align: right;
}

.ops-job-rail {
  position: relative;
}

.ops-job-rail::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.ops-job-marker {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 11px;
  border-radius: 999px;
  border: 2px solid var(--info);
  background: var(--bg-app);
}

.ops-job-marker.published {
  border-color: var(--success);
  background: var(--success);
}

.ops-job-marker.failed {
  border-color: var(--danger);
  background: var(--danger);
}

.ops-job-marker.paused,
.ops-job-marker.waiting {
  border-color: var(--text-faint);
  background: var(--surface-3);
}

.ops-job-marker.running {
  border-color: var(--accent, var(--primary));
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent);
}

.ops-job-card.is-live {
  outline: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
}

.ops-job-card.is-live .ops-job-actions,
.ops-job-card:hover .ops-job-actions,
.ops-job-card:focus-within .ops-job-actions {
  display: flex;
}

.ops-job-kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ops-job-progress {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.ops-job-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
  word-break: break-word;
}

.failure-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 0;
}

.failure-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  height: auto;
  flex: 0 0 auto;
}

.failure-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.failure-card-copy {
  min-width: 0;
}

.failure-card-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
  word-break: break-word;
}

.failure-card-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.failure-card-meta {
  font-size: var(--text-meta);
  color: var(--text-faint);
}

.failure-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.job-report {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.job-report-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-gap: 6px 12px;
  gap: 6px 12px;
  font-size: 13px;
}

.job-report-grid dt {
  color: var(--text-muted);
}

.job-report-json {
  margin: 0;
  max-height: 240px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-job-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.live-job-row {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: inherit;
}

.live-job-row a:not(.dest-link) {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.live-job-row:hover {
  background: var(--surface-3, var(--surface-1));
}

.sync-progress-note {
  white-space: pre-line;
}

.ops-job-card {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
}

.ops-job-card:hover {
  background: var(--surface-2);
}

.ops-job-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ops-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.ops-job-actions {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ops-job-card:hover .ops-job-actions,
.ops-job-card:focus-within .ops-job-actions {
  display: flex;
}

.ops-job-list .ops-job {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.ops-job-list .ops-job-rail {
  display: none;
}

.content-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.content-toolbar .field {
  min-width: 160px;
  flex: 1 1;
  margin: 0;
}

.taxonomy-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.taxonomy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.taxonomy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.taxonomy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.taxonomy-check-spacer {
  width: 14px;
}

.taxonomy-body {
  flex: 1 1;
  min-width: 0;
}

.taxonomy-name {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 650;
  font-size: 14px;
  padding: 0;
}

.composer-preview-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 280px;
}

.composer-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.composer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface-3);
}

.lifecycle {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lifecycle-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-gap: 10px;
  gap: 10px;
  padding: 8px 0;
}

.lifecycle-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--surface-3);
  color: var(--text-muted);
}

.lifecycle-mark.ok {
  background: var(--success-muted);
  color: var(--success);
}

.lifecycle-mark.fail {
  background: var(--danger-muted);
  color: var(--danger);
}

.workflow-chain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.workflow-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
}

.workflow-node.trigger { color: var(--info); }
.workflow-node.condition { color: var(--warning); }
.workflow-node.action { color: var(--success); }
.workflow-node.wait { color: var(--text-muted); }

@media (max-width: 1439px) {
  .ops-workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .ops-pane-right {
    display: none;
  }
}

@media (max-width: 1023px) {
  .ops-workspace {
    grid-template-columns: 1fr;
  }
  .ops-pane-center {
    border: 0;
  }
}

.media-attach-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.media-attach-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.media-attach-tile.is-primary {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 1px;
}

.media-attach-primary {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
  color: #fff;
  cursor: pointer;
  background: color-mix(in srgb, #000 58%, transparent);
}

.media-attach-tile.is-primary .media-attach-primary {
  background: var(--accent, #2563eb);
}

.media-attach-tile img,
.media-attach-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-attach-tile-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 13px;
  color: var(--muted);
}

.media-attach-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  background: color-mix(in srgb, #000 62%, transparent);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.media-attach-tile:hover .media-attach-remove,
.media-attach-tile:focus-within .media-attach-remove,
.media-attach-remove:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .media-attach-remove {
    opacity: 1;
  }
}

.media-attach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.media-attach-item .field {
  margin: 0;
}

.media-attach-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-3);
  flex-shrink: 0;
}

.media-attach-thumb-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.media-attach-thumb-saved {
  display: grid;
  place-items: center;
  font-size: 18px;
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 12px;
}

.media-preview-item {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-3);
}

.guide-card {
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  background: var(--surface-2);
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.guide-html {
  max-width: 56rem;
}

.guide-html h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.guide-html h2 + p,
.guide-html h2 + ul,
.guide-html h2 + ol,
.guide-html h2 + .data-table-wrap {
  margin-top: 0;
}

.guide-html p,
.guide-html ul,
.guide-html ol {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.55;
}

.guide-html ul,
.guide-html ol {
  padding-left: 1.2rem;
}

.guide-html .data-table-wrap {
  margin: 0 0 18px;
}

.guide-html kbd {
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-muted);
}

.target-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0;
}

.target-section legend {
  font-size: 12px;
  font-weight: 650;
  padding: 0 6px;
}

.target-list {
  max-height: 180px;
  overflow: auto;
}

.target-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
}

.linkish {
  background: none;
  border: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  padding: 0 0 6px;
  cursor: pointer;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.cat-chip {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.cat-chip.active {
  background: var(--primary);
  color: var(--primary-contrast, #fff);
  border-color: transparent;
}

.dest-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.dest-cats .field {
  flex: 1 1;
  min-width: 180px;
  margin: 0;
}

.dest-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
}

.dest-toolbar .field {
  width: auto;
  flex: 1 1 128px;
  min-width: 0;
  margin: 0;
  gap: 0;
}

.dest-toolbar .field:has(.dest-toolbar-n) {
  flex: 0 0 64px;
  max-width: 72px;
}

.dest-toolbar .field-control,
.dest-toolbar .field-control.dest-toolbar-n {
  padding: 6px 8px;
  font-size: 12px;
}

.dest-toolbar .linkish {
  padding: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.dest-cat-col {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.dest-cats-row {
  flex-wrap: nowrap;
  max-width: 280px;
  overflow-x: auto;
  white-space: nowrap;
}

.dest-cats-row .badge {
  flex: 0 0 auto;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.dest-cat-add {
  flex: 0 0 auto;
  width: 36px;
  height: 22px;
  margin: 0;
  padding: 0 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.dest-cat-x {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 0 0 2px;
}

.dest-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

button.dest-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.dest-link:disabled {
  opacity: 0.6;
  cursor: wait;
}

.dest-link:hover {
  text-decoration: underline;
}

.dest-source .dest-link,
.ops-job-meta .dest-link {
  word-break: break-word;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
}

.dt-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 7px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dt-trigger span {
  flex: 1 1;
}

.dt-trigger .icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dt-trigger .icon:first-child {
  color: var(--primary);
}

.dt-trigger:hover,
.dt-trigger.open {
  border-color: var(--border-strong);
}

.dt-trigger.placeholder span {
  color: var(--text-muted);
}

.dt-time-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 8px 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dt-time-inline > .icon {
  color: var(--primary);
  flex-shrink: 0;
}

.dt-time-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dt-time-inline .field-control {
  background: transparent;
  border: 0;
  padding: 4px 2px;
  min-height: 28px;
  font-weight: 650;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.dt-time-row {
  display: flex;
  align-items: end;
  gap: 6px;
  flex: 1 1;
}

.dt-time-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1;
  min-width: 0;
  margin: 0;
  font-size: 10px;
  font-weight: 650;
  color: var(--text-muted);
}

.dt-time-col .field-control {
  padding: 5px 6px;
  min-height: 32px;
}

.dt-time-inline .dt-time-col .field-control {
  background: transparent;
  border: 0;
  padding: 4px 2px;
  min-height: 28px;
  font-weight: 650;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.dt-time-inline:hover,
.dt-time-inline:focus-within {
  border-color: var(--border-strong);
}

.dt-time-sep {
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 7px;
}

.dt-time-row.unlabeled {
  align-items: center;
}

.dt-time-row.unlabeled .dt-time-sep {
  padding-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dt-pop-portal {
  position: fixed;
  z-index: 80;
  padding: 10px;
  background: var(--surface-elevated, var(--surface-1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px color-mix(in srgb, #000 28%, transparent);
}

.dt-day,
.dt-nav-btn {
  border: 1px solid transparent;
  background: var(--surface-muted);
  color: var(--text);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  min-height: 30px;
}

.dt-day:hover,
.dt-nav-btn:hover {
  border-color: var(--border-strong);
}

.dt-day.active {
  background: var(--primary);
  color: var(--primary-fg, #fff);
}

.dt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dt-nav-btn {
  width: 32px;
  min-height: 32px;
}

.dt-cal-week,
.dt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 2px;
  gap: 2px;
  margin-bottom: 8px;
}

.dt-cal-week span {
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
  padding: 4px 0;
}

.dt-day.mute {
  opacity: 0.4;
}

.dt-day.today:not(.active) {
  border-color: var(--primary);
}

.dt-pop-time {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 8px 4px 2px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.dt-pop-time > .icon {
  color: var(--primary);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.dt-cal-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.policy-page .panel {
  padding: 14px 16px;
}

.policy-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.policy-head .field {
  max-width: 280px;
}

.policy-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 176px));
  grid-gap: 8px;
  gap: 8px;
}

.policy-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.policy-metric > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
}

.policy-metric .field-control {
  padding: 6px 8px;
}

.policy-windows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-window {
  display: grid;
  grid-template-columns: max-content auto max-content 36px;
  width: max-content;
  max-width: 100%;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
}

.policy-window > .muted {
  padding: 0;
  font-weight: 700;
}

.policy-window .field {
  margin: 0;
}

.policy-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
}


