.skill-center {
  height: 100%;
  min-height: 0;
}

.skill-view-enter-active,
.skill-view-leave-active {
  transition: opacity 220ms ease, transform 300ms var(--ease);
}

.skill-view-enter-from,
.skill-view-leave-to {
  opacity: 0;
  transform: translateY(14px);
}

.skill-list,
.skill-detail {
  height: 100%;
  min-height: 0;
}

.skill-detail {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.skill-detail.spreadsheet-skill-detail {
  gap: 10px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 20px;
  overflow: hidden;
}

.status-tabs {
  display: flex;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.status-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 760;
}

.status-tabs button.active {
  color: #0f172a;
}

.status-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 3px;
  border-radius: 999px;
  background: var(--theme-primary);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
}

.filter-set {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.search-filter {
  width: 280px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #64748b;
}

.search-filter i {
  color: #94a3b8;
  font-size: 16px;
}

.search-filter input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
}

.search-filter input::placeholder {
  color: #94a3b8;
}

.search-filter:focus-within {
  border-color: rgba(var(--theme-primary-rgb), 0.48);
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
}

.picker-trigger,
.ghost-filter-btn,
.create-btn,
.row-action {
  min-height: 38px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 760;
}

.picker-filter {
  position: relative;
}

.picker-trigger {
  min-width: 124px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 34px 0 12px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #334155;
  white-space: nowrap;
}

.picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-trigger .mdi {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.picker-trigger:hover,
.picker-filter.open .picker-trigger {
  border-color: rgba(var(--theme-primary-rgb), 0.34);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 224px;
  z-index: 40;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

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

.picker-popover header strong {
  color: #0f172a;
  font-size: 15px;
}

.picker-popover header button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
}

.picker-popover header button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.picker-option-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.picker-option {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.picker-option:hover,
.picker-option.active {
  border-color: rgba(var(--theme-primary-rgb), 0.32);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #475569;
}

.ghost-filter-btn:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.28);
  color: var(--theme-primary-active);
}

.create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 8px 18px var(--theme-primary-shadow);
}

.create-btn:disabled {
  background: #cbd5e1;
  color: #f8fafc;
  box-shadow: none;
  cursor: not-allowed;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 12px;
}

.hint .mdi {
  color: #94a3b8;
}

.active-filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.active-filter-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  flex: 1 1 auto;
  position: relative;
  min-height: 400px;
  overflow: auto;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.table-wrap.is-empty {
  align-items: center;
  justify-content: center;
}

.table-wrap table {
  width: 100%;
  align-self: flex-start;
}

.table-state,
.detail-inline-state {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px 24px;
  text-align: center;
  color: #64748b;
  align-self: center;
}

.detail-inline-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.table-state > .table-loading,
.detail-inline-state > .table-loading {
  width: 100%;
}

.table-state i,
.detail-inline-state i {
  font-size: 28px;
  color: #94a3b8;
}

.table-state.error i,
.detail-inline-state.error i {
  color: #dc2626;
}

.table-state.empty i {
  color: #3a7ca5;
}

.table-state p,
.detail-inline-state p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.detail-inline-state strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.detail-inline-state > div {
  flex: 1 1 auto;
}

.state-action {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--theme-primary-active);
  font-size: 13px;
  font-weight: 760;
}

.list-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
}

.page-summary {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f7;
  text-align: center;
  vertical-align: middle;
  color: #334155;
  font-size: 12px;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
}

tbody tr {
  cursor: pointer;
  transition: background 180ms ease;
}

th:first-child,
td:first-child {
  text-align: left;
}

.audit-asset-table th:first-child,
.audit-asset-table td:first-child {
  text-align: left;
}

tbody tr:hover {
  background: #f8fbff;
}

tbody tr.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

tbody tr.is-disabled:hover {
  background: transparent;
}

.skill-name-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: start;
  text-align: left;
}

.skill-name-cell > div {
  min-width: 0;
  text-align: left;
}

.skill-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.skill-avatar.primary { background: var(--theme-gradient-primary); }
.skill-avatar.rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.skill-avatar.violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.skill-avatar.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.skill-avatar.amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.skill-name-cell strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.skill-name-cell span:last-child {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scope-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.scope-pill {
  background: #f1f5f9;
  color: #475569;
}

.status-pill.success {
  background: var(--success-soft);
  color: var(--success-hover);
}

.status-pill.warning {
  background: #fff7ed;
  color: #ea580c;
}

.status-pill.draft {
  background: #eef2ff;
  color: #6366f1;
}

.status-pill.info {
  background: #eaf4fa;
  color: #2f6d95;
}

.status-pill.danger {
  background: #fee2e2;
  color: #dc2626;
}

.status-pill.disabled {
  background: #e2e8f0;
  color: #475569;
}

.row-action {
  padding: 0 12px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.32);
  background: #fff;
  color: var(--theme-primary-active);
}

.row-action:hover {
  background: var(--theme-primary-soft);
}

.detail-scroll {
  height: 100%;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 16px;
}

.spreadsheet-skill-detail .detail-scroll {
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
}

.json-risk-skill-detail .detail-scroll {
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
}

.detail-loading-state {
  width: 100%;
  min-height: 260px;
  align-self: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 10px;
  padding: 16px 20px;
}

.hero-title {
  min-width: 0;
}

.skill-badge,
.skill-detail :deep(.skill-badge) {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.skill-badge.primary,
.skill-detail :deep(.skill-badge.primary) { background: var(--theme-gradient-primary); }
.skill-badge.rose,
.skill-detail :deep(.skill-badge.rose) { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.skill-badge.violet,
.skill-detail :deep(.skill-badge.violet) { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.skill-badge.blue,
.skill-detail :deep(.skill-badge.blue) { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.skill-badge.amber,
.skill-detail :deep(.skill-badge.amber) { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.hero-title h2 {
  margin-top: 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 850;
}

.hero-title p {
  margin-top: 8px;
  max-width: 820px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.hero-review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.inline-review-meta {
  margin-top: 10px;
}

.review-note-block {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--theme-primary-soft), #ffffff);
}

.review-note-block strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.review-note-block p,
.review-note-block span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.review-note-block.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.hero-review-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.hero-review-meta i {
  color: var(--theme-primary);
  font-size: 15px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-stat {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5eaf0;
}

.hero-stat span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stat strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-stat .status-pill {
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.78fr);
  gap: 16px;
}

.detail-grid.skill-md-detail-grid {
  grid-template-columns: minmax(0, 1fr) 372px;
  align-items: stretch;
}

.detail-grid.skill-md-detail-grid .detail-main {
  height: 100%;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.detail-card,
.side-card {
  padding: 18px;
}

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

.card-head h3 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.card-head p {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.edit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.span-2 {
  grid-column: span 2;
}

.field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea,
.prompt-block textarea {
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  resize: vertical;
}

.field input[readonly],
.field textarea[readonly],
.prompt-block textarea[readonly] {
  background: #f8fafc;
  color: #334155;
}

.markdown-card {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.json-editor-card {
  display: grid;
  gap: 12px;
}

.spreadsheet-rule-card {
  display: grid;
  gap: 14px;
}

.spreadsheet-editor-shell {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.spreadsheet-editor-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spreadsheet-editor-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.spreadsheet-editor-meta strong {
  color: #0f172a;
  font-weight: 850;
}

.spreadsheet-editor-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 14px;
  align-items: start;
}

.spreadsheet-main-stage {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spreadsheet-workbench {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  overflow: visible;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.spreadsheet-workbench .rule-spreadsheet-host {
  min-height: 0;
  height: 100%;
  overflow: visible;
}

.spreadsheet-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.spreadsheet-change-center {
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.change-center-head h3,
.change-center-head p,
.change-center-section header,
.change-center-section p {
  margin: 0;
}

.change-center-head h3 {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.change-center-head p {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.version-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.version-pair-card {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 10px;
  border-radius: 12px;
}

.version-pair-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.version-pair-card strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.version-pair-card b {
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.version-pair-card.published {
  background: var(--success-soft);
}

.version-pair-card.published b {
  background: var(--success-line);
  color: var(--success-hover);
}

.version-pair-card.working {
  background: rgba(37, 99, 235, 0.08);
}

.version-pair-card.working b {
  background: #dbeafe;
  color: #2563eb;
}

.change-center-section {
  display: grid;
  gap: 8px;
}

.change-history-section {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.change-center-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.change-center-section > header strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.change-center-section > header small,
.change-center-section > header button {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.change-center-section > header button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
}

.change-center-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.change-center-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.change-center-item.active {
  border-color: rgba(var(--theme-primary-rgb), 0.35);
  background: var(--theme-primary-soft);
}

.change-center-item > button {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.change-center-item > button:disabled {
  cursor: default;
}

.change-center-item > button div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.change-center-item > button strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.change-center-item > button span,
.change-center-item > button p,
.change-center-item > button small {
  color: #64748b;
  font-size: 11px;
}

.change-center-item > button p {
  margin: 0;
  line-height: 1.45;
}

.change-record-summary-empty {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.change-record-item {
  gap: 10px;
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.change-record-item:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.change-record-item:focus-visible {
  outline: 3px solid var(--theme-focus-ring);
  outline-offset: 1px;
}

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

.change-record-head > div {
  display: grid;
  gap: 3px;
}

.change-record-head strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.change-record-head span,
.change-record-item p,
.change-record-more {
  color: #64748b;
  font-size: 11px;
}

.change-record-head b {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 850;
}

.change-record-item p {
  margin: 0;
  line-height: 1.5;
}

.change-record-preview {
  display: grid;
  gap: 6px;
}

.change-record-preview span {
  display: block;
  padding: 7px 8px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.change-record-more {
  font-weight: 800;
}

.change-detail-content {
  gap: 14px;
}

.change-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.change-detail-meta article {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.change-detail-meta span {
  color: #64748b;
  font-size: 12px;
}

.change-detail-meta strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.change-flow-empty {
  color: #64748b;
  font-size: 11px;
}

.rule-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(3px);
}

.rule-drawer {
  width: min(860px, 78vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  overflow: auto;
  background: #fff;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.18);
}

.timeline-drawer {
  width: min(640px, 62vw);
}

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

.rule-drawer-head span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
}

.rule-drawer-head h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.rule-drawer-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
}

.rule-drawer-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #64748b;
}

.rule-drawer-state.error {
  color: #dc2626;
}

.rule-timeline-list {
  display: grid;
  align-content: start;
}

.rule-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 20px;
}

.rule-timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.rule-timeline-item > i {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.rule-timeline-item > i.success {
  background: var(--success-soft);
  color: var(--success-hover);
}

.rule-timeline-item > i.warning {
  background: #fef3c7;
  color: #d97706;
}

.rule-timeline-item > i.danger {
  background: #fee2e2;
  color: #dc2626;
}

.rule-timeline-item > i.info {
  background: #dbeafe;
  color: #2563eb;
}

.rule-timeline-item header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rule-timeline-item header strong {
  color: #0f172a;
  font-size: 14px;
}

.rule-timeline-item header b {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
}

.rule-timeline-item header span,
.rule-timeline-item p,
.rule-timeline-item small {
  color: #64748b;
}

.rule-timeline-item p {
  margin: 8px 0 4px;
  line-height: 1.6;
}

.compare-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
}

.compare-toolbar label {
  min-width: 0;
  display: grid;
  gap: 6px;
  flex: 1;
}

.compare-toolbar span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.compare-toolbar i {
  margin-bottom: 10px;
  color: #94a3b8;
}

.compare-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
}

.compare-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compare-summary-grid article {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.compare-summary-grid span {
  color: #64748b;
  font-size: 12px;
}

.compare-summary-grid strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
}

.compare-panel {
  display: grid;
  gap: 10px;
}
