body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f5f7fb;
  overflow-x: hidden;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  padding: 24px 16px;
  color: #e5edf7;
  background: #243447;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar-title {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

.sidebar-nav {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

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

.sidebar-subsection {
  gap: 6px;
}

.sidebar-collapsible {
  display: grid;
}

.sidebar-section-title {
  padding: 0 12px;
  color: #9fb1c8;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-subsection .sidebar-section-title {
  color: #c8d5e6;
}

.sidebar-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sidebar-collapse-toggle::-webkit-details-marker {
  display: none;
}

.sidebar-collapse-toggle::after {
  content: "›";
  color: #9fb1c8;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.sidebar-collapsible[open] .sidebar-collapse-toggle::after {
  transform: rotate(90deg);
}

.sidebar-nav a {
  display: block;
  border-radius: 6px;
  padding: 10px 12px;
  color: #e5edf7;
  text-decoration: none;
  font-size: 14px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.12);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 32px 32px 248px;
  box-sizing: border-box;
  min-width: 0;
}

.top-account-bar {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 8px 10px 8px 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.top-account-user {
  display: grid;
  gap: 2px;
  min-width: 96px;
}

.top-account-user span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.top-account-user small {
  color: #64748b;
  font-size: 12px;
}

.top-account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-account-actions a,
.top-account-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 6px;
  padding: 6px 10px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.top-account-actions a {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #ffffff;
}

.top-account-actions a.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.top-account-actions form {
  display: block;
}

.top-account-actions button {
  background: #334155;
}

.panel {
  width: min(720px, 100%);
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  min-width: 0;
}

.standards-panel {
  width: min(1180px, 100%);
}

.rule-archive-shell {
  align-items: start;
  place-items: start stretch;
}

.rule-archive-panel {
  width: 100%;
  max-width: calc(100vw - 280px);
  justify-self: stretch;
}

h1 {
  margin: 0 0 24px;
  font-size: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0;
}

.link-button {
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  background: #334155;
  text-decoration: none;
  font-weight: 700;
}

.sidebar-nav a.active {
  color: #ffffff;
  background: #2563eb;
  font-weight: 700;
}

.admin-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.admin-header h1 {
  margin: 0 0 10px;
}

.admin-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.admin-eyebrow {
  margin-bottom: 8px !important;
  color: #2563eb !important;
  font-size: 13px;
  font-weight: 700;
}

.admin-groups {
  display: grid;
  gap: 18px;
}

.admin-group {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
}

.admin-group header {
  margin-bottom: 14px;
}

.admin-group h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.admin-group header p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}

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

.admin-module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.admin-module-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.admin-module-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.admin-module-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}

.log-viewer {
  min-height: 360px;
  max-height: 620px;
  margin: 18px 0 0;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.health-summary {
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
  font-weight: 700;
}

.health-summary.ok {
  color: #166534;
  background: #dcfce7;
}

.health-summary.error {
  color: #991b1b;
  background: #fee2e2;
}

.operator-note {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #eff6ff;
}

.operator-note strong {
  display: block;
  margin-bottom: 6px;
  color: #1e3a8a;
}

.operator-note p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}

.raw-log-details {
  margin-top: 16px;
}

.raw-log-details summary {
  cursor: pointer;
  color: #334155;
  font-weight: 700;
}

.ops-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.ops-summary div {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f8fafc;
}

.ops-summary strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 20px;
}

.ops-summary span {
  color: #64748b;
  font-size: 13px;
}

.ops-actions {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.settings-form {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
  margin-bottom: 16px;
}

.settings-form label span {
  color: #475569;
}

.settings-form button {
  min-width: 96px;
}

.enterprise-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 16px;
  background: #f8fafc;
}

.enterprise-action-bar div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.enterprise-action-bar strong {
  color: #0f172a;
}

.enterprise-action-bar span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

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

.storage-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
  align-items: end;
  gap: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.storage-action-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.storage-action-panel p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.secondary-button {
  color: #ffffff;
  background: #2563eb;
}

.muted-text {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 16px 0 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-bar span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-width: 0;
}

.standards-filter-section {
  margin-top: 16px;
}

.standards-filter-section h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.standards-filter-bar {
  grid-template-columns: minmax(220px, 320px) auto auto;
  justify-content: start;
  margin: 0;
}

.filter-reset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  background: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.storage-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  min-width: 128px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

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

.help-grid article {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.help-grid h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.help-grid p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.topnav {
  display: none;
}

form {
  display: grid;
  gap: 16px;
}

.standard-list {
  display: grid;
  gap: 12px;
}

.standard-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
}

.standard-item p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.standards-table input[type="file"] {
  width: 220px;
  max-width: 100%;
  padding: 8px;
}

.version-row:not(.is-editing) .version-edit-field,
.version-row.is-editing .version-display-field,
.version-row.is-editing .edit-version-button {
  display: none;
}

.version-row.is-editing .version-edit-field,
.version-row.is-editing .save-version-button,
.version-row.is-editing .cancel-version-button {
  display: inline-block;
}

.version-row.is-editing .date-field {
  display: inline-grid;
}

.version-row .save-version-button,
.version-row .cancel-version-button {
  display: none;
}

.version-row input[type="text"],
.version-row input[type="date"] {
  width: 110px;
  padding: 8px;
}

.carrier-row:not(.is-editing) .carrier-edit-field,
.carrier-row.is-editing .carrier-display-field,
.carrier-row.is-editing .edit-carrier-button {
  display: none;
}

.carrier-row.is-editing .carrier-edit-field,
.carrier-row.is-editing .save-carrier-button,
.carrier-row.is-editing .cancel-carrier-button {
  display: inline-block;
}

.carrier-row .save-carrier-button,
.carrier-row .cancel-carrier-button {
  display: none;
}

.carrier-row input[type="text"],
.carrier-row select {
  width: min(180px, 100%);
  padding: 8px;
}

.date-field {
  display: inline-grid;
  grid-template-columns: minmax(96px, 1fr) 32px;
  align-items: center;
  gap: 4px;
  max-width: 142px;
}

.date-field .formatted-date-input {
  width: 100%;
  min-width: 0;
}

.date-field .date-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.calendar-picker-button {
  width: 32px;
  height: 34px;
  min-width: 32px;
  padding: 0;
  color: #334155;
  background: #e2e8f0;
  line-height: 1;
}

.standard-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.subsection {
  margin-top: 24px;
}

.subsection h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.hint {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
}

.field-hint {
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.user-management-form {
  display: grid;
  grid-template-columns: repeat(3, 196px);
  align-items: start;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
  background: #f8fafc;
}

.user-management-form input,
.user-management-form select {
  width: 100%;
}

.user-password-field {
  min-width: 0;
}

.user-management-form label:nth-of-type(4) {
  width: 196px;
}

.user-form-submit {
  grid-column: 2;
  align-self: end;
  width: 132px;
  min-height: 42px;
  padding: 10px 12px;
  white-space: nowrap;
}

.user-management-table {
  table-layout: fixed;
}

.user-management-table td,
.user-management-table th {
  height: 46px;
}

.user-management-table td:not(:last-child) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-col-username {
  width: 24%;
}

.user-col-display {
  width: 24%;
}

.user-col-role,
.user-col-status {
  width: 14%;
}

.user-col-actions {
  width: 24%;
}

.user-management-table .row-actions {
  justify-content: flex-start;
}

.user-action-button {
  width: 82px;
  min-height: 34px;
  padding: 7px 10px;
  text-align: center;
  white-space: nowrap;
}

.version-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  background: #f8fafc;
  min-width: 0;
}

.version-form .wide-field {
  grid-column: span 2;
}

.version-form button {
  align-self: end;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.task-button {
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.selected-file-list {
  display: grid;
  gap: 8px;
  margin: -8px 0 0;
  padding: 0;
  list-style: none;
}

.selected-file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f8fafc;
}

.selected-file-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-remove {
  min-height: 26px;
  padding: 3px 8px;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 12px;
  line-height: 1.2;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.version-upload[hidden] {
  display: none;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
  min-width: 0;
  box-sizing: border-box;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  background: #94a3b8;
  cursor: wait;
}

.status {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.backend-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.backend-progress-row progress {
  width: 100%;
  height: 16px;
  accent-color: #2563eb;
}

#backend-progress-text {
  min-width: 84px;
  text-align: right;
  color: #334155;
  font-weight: 700;
}

.backend-progress-row.is-preparing progress {
  accent-color: #94a3b8;
}

.backend-progress-row.is-preparing #backend-progress-text {
  color: #64748b;
}

dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

dt {
  color: #64748b;
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.download {
  display: inline-block;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  background: #16a34a;
  text-decoration: none;
  font-weight: 700;
}

.result-list {
  margin-top: 28px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.list-toolbar h2 {
  margin: 0;
  font-size: 18px;
}

.toolbar-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-actions button,
.row-actions button {
  padding: 8px 10px;
}

.danger-button,
.link-danger {
  background: #dc2626;
}

.config-table {
  min-width: 1120px;
}

.config-table td {
  vertical-align: top;
  white-space: normal;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  white-space: nowrap;
}

.status-pill.success {
  color: #166534;
  background: #dcfce7;
}

.status-pill.info {
  color: #1d4ed8;
  background: #dbeafe;
}

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

.task-status-pending {
  color: #92400e;
  background: #fef3c7;
}

.task-status-running {
  color: #1d4ed8;
  background: #dbeafe;
}

.task-status-succeeded {
  color: #166534;
  background: #dcfce7;
}

.task-status-failed {
  color: #991b1b;
  background: #fee2e2;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
}

.admin-task-table {
  min-width: 1120px;
}

.task-id-cell {
  max-width: 220px;
  word-break: break-all;
}

.task-message-cell {
  min-width: 240px;
  white-space: normal;
}

.inline-danger-form {
  margin: 0;
}

.compact-danger-button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.enterprise-config-page {
  display: grid;
  gap: 18px;
}

.refund-capability-page {
  width: min(1560px, 100%);
  max-width: calc(100vw - 288px);
}

.enterprise-page-header {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0;
  padding-bottom: 18px;
}

.business-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  background: #eff6ff;
  color: #334155;
}

.business-tip.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.business-tip strong {
  color: #1e3a8a;
  white-space: nowrap;
}

.business-tip.warning strong {
  color: #92400e;
}

.business-tip span {
  line-height: 1.6;
  font-size: 13px;
}

.enterprise-filter-bar {
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  margin: 0;
}

.refund-capability-page .enterprise-filter-bar {
  grid-template-columns: minmax(180px, 1.1fr) minmax(160px, 1fr) minmax(140px, 0.8fr) auto auto;
}

.refund-capability-page .enterprise-filter-bar button,
.refund-capability-page .enterprise-filter-bar .secondary-link {
  min-height: 40px;
}

.capability-page-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.enterprise-form-section {
  margin-top: 0;
}

.enterprise-form-section .section-title-row {
  align-items: flex-start;
}

.enterprise-form-section .hint {
  margin: 4px 0 0;
}

.enterprise-config-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.enterprise-config-form label {
  min-width: 0;
}

.enterprise-config-form input,
.enterprise-config-form select {
  width: 100%;
}

.enterprise-config-form button {
  min-height: 42px;
}

.enterprise-config-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.enterprise-config-form .form-actions button {
  min-width: 132px;
}

.field-help {
  min-height: 18px;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.capability-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: auto;
}

.capability-table {
  min-width: 1296px;
  table-layout: fixed;
}

.capability-table th,
.capability-table td {
  vertical-align: top;
  white-space: normal;
}

.capability-table th {
  white-space: nowrap;
}

.capability-col-carrier {
  width: 130px;
}

.capability-col-task {
  width: 130px;
}

.capability-col-status {
  width: 126px;
}

.capability-col-source {
  width: 96px;
}

.capability-col-check {
  width: 130px;
}

.capability-col-summary {
  width: 310px;
}

.capability-col-gap {
  width: 284px;
}

.capability-col-action {
  width: 100px;
}

.capability-table .compact-list {
  margin: 0;
  padding-left: 18px;
  white-space: normal;
}

.capability-table .compact-list li + li {
  margin-top: 6px;
}

.capability-cell-text,
.capability-table .compact-list {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.capability-maintain-button {
  width: 72px;
  min-height: 34px;
  padding: 7px 10px;
}

.capability-row-form {
  display: grid;
  gap: 8px;
}

.capability-row-form + .capability-row-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.capability-row-form label {
  display: grid;
  gap: 4px;
}

.capability-row-form label span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.capability-row-form select,
.capability-row-form input {
  width: 100%;
}

.capability-maintenance-form {
  gap: 12px;
}

.capability-takeover-form {
  gap: 14px;
}

.takeover-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.takeover-config-grid > label,
.capability-option-group,
.config-readonly-note {
  min-width: 0;
}

.capability-option-group {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
}

.capability-option-group legend {
  padding: 0 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.capability-row-form .checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: #334155;
  line-height: 1.45;
}

.capability-row-form .checkbox-line input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 3px;
}

.capability-row-form .checkbox-line span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.takeover-wide-option {
  grid-column: 1 / -1;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
}

.config-readonly-note {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
}

.config-readonly-note span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.config-readonly-note strong {
  color: #0f172a;
  font-size: 13px;
}

.config-readonly-note small {
  color: #64748b;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.capability-action-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.capability-action-footer button {
  width: auto;
  min-width: 112px;
}

.capability-drawer[hidden],
.capability-drawer-content[hidden] {
  display: none;
}

.capability-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.capability-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
}

.capability-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 32px));
  height: 100vh;
  border-left: 1px solid #dbe3ef;
  background: #ffffff;
  box-shadow: -18px 0 36px rgba(15, 23, 42, 0.18);
}

.capability-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding: 22px 24px 18px;
}

.capability-drawer-header h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 20px;
}

.capability-drawer-close {
  min-width: 72px;
}

.capability-drawer-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 28px;
}

.capability-drawer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.capability-status-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.capability-drawer-meta div,
.drawer-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.capability-drawer-meta div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.capability-drawer-meta span,
.drawer-info-list dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.capability-drawer-meta strong {
  color: #0f172a;
  font-size: 14px;
}

.capability-drawer-meta small {
  color: #64748b;
  font-size: 12px;
}

.drawer-section {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.drawer-section h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.drawer-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

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

.drawer-info-list div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
}

.drawer-info-grid div {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.drawer-info-list dd {
  margin: 0;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.capability-drawer-open {
  overflow: hidden;
}

.enterprise-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.enterprise-config-table {
  min-width: 1180px;
}

.enterprise-config-table th {
  color: #334155;
  font-size: 12px;
}

.enterprise-config-table td {
  line-height: 1.55;
}

.enterprise-config-table .row-actions {
  flex-wrap: wrap;
  min-width: 180px;
}

.enterprise-config-table tbody tr:hover td {
  background: #f8fbff;
}

.cell-main {
  color: #0f172a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cell-sub {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rule-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

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

th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #475569;
  background: #f8fafc;
}

.rule-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.rule-filter-panel {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  background: #f8fafc;
}

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

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

.section-title-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.rule-filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-on,
.status-confirmed {
  color: #166534;
  background: #dcfce7;
}

.status-off,
.status-safe {
  color: #475569;
  background: #e2e8f0;
}

.status-pending {
  color: #92400e;
  background: #fef3c7;
}

.calculation-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.calculation-source-badge-success {
  color: #166534;
  background: #dcfce7;
}

.calculation-source-badge-warning {
  color: #92400e;
  background: #fef3c7;
}

.calculation-source-badge-muted {
  color: #475569;
  background: #e2e8f0;
}

.finance-rule-shell {
  align-items: start;
  place-items: start stretch;
}

.finance-rule-page {
  width: 100%;
  max-width: calc(100vw - 280px);
  justify-self: stretch;
}

.finance-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.finance-page-header h1 {
  margin: 0;
  color: #0f172a;
}

.finance-page-header p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.finance-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.finance-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.finance-filter-actions,
.finance-form-actions,
.finance-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.finance-rule-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.finance-editor-panel,
.finance-list-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.finance-editor-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.finance-rule-form,
.finance-preview-form,
.finance-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.finance-preview-form {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.finance-rule-form label,
.finance-preview-form label,
.finance-inline-fields label,
.finance-filter-bar label {
  display: grid;
  gap: 6px;
}

.finance-rule-form span,
.finance-preview-form span,
.finance-inline-fields span,
.finance-filter-bar span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

#default-weight-rule-panel .finance-inline-fields {
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  align-items: center;
  column-gap: 20px;
  row-gap: 10px;
}

#default-weight-rule-panel .finance-inline-fields label {
  grid-template-columns: 92px auto;
  align-items: center;
  justify-content: start;
  column-gap: 8px;
}

#default-weight-rule-panel .finance-inline-fields span {
  white-space: nowrap;
}

#default-weight-rule-panel input[type="number"] {
  width: 180px;
  max-width: 100%;
  min-width: 100px;
  justify-self: start;
}

#default-weight-rule-panel select {
  width: 180px;
  max-width: 100%;
  justify-self: start;
}

.finance-rule-editor-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.finance-rule-editor-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.finance-table-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.finance-table-toolbar h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 18px;
}

.finance-table-toolbar p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.finance-config-table {
  min-width: 920px;
  table-layout: fixed;
}

.finance-rule-list-table {
  min-width: 760px;
}

.finance-config-table th,
.finance-config-table td,
.finance-rule-list-table th,
.finance-rule-list-table td {
  vertical-align: middle;
}

.finance-config-table input,
.finance-config-table select {
  width: 100%;
  min-width: 0;
}

.finance-config-table .row-actions {
  flex-wrap: nowrap;
}

.finance-default-freight {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.finance-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.finance-method-options label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.weight-region-group-list {
  display: grid;
  gap: 12px;
}

.weight-region-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #ffffff;
}

.weight-region-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.weight-region-header textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
}

.weight-range-table {
  min-width: 980px;
  table-layout: fixed;
}

.weight-range-table th,
.weight-range-table td {
  vertical-align: middle;
}

.weight-range-table input,
.weight-range-table select {
  width: 100%;
  min-width: 0;
}

.weight-region-actions,
.weight-range-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

.finance-subtle-note {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.finance-preview-result {
  margin-top: 14px;
}

.rule-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rule-archive-list {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.rule-archive-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
  min-width: 0;
}

.rule-card-primary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.rule-card-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, auto);
  gap: 10px;
  align-items: center;
}

.rule-card-title {
  min-width: 0;
}

.rule-card-title span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.rule-card-header h3 {
  margin: 0;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
}

.rule-card-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.rule-card-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 2px 7px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.rule-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
  min-width: 0;
}

.rule-card-business-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rule-card-business-row span {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
  color: #334155;
  background: #ffffff;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-card-business-row b {
  margin-right: 6px;
  color: #64748b;
  font-weight: 700;
}

.rule-candidate-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
}

.rule-candidate-note b {
  white-space: nowrap;
}

.candidate-qualified {
  color: #166534;
  background: #dcfce7;
}

.candidate-blocked {
  color: #475569;
  background: #f1f5f9;
}

.batch-candidate-panel,
.real-calculation-admission-panel,
.rule-acceptance-diagnostics-panel,
.rule-acceptance-workbench-panel,
.rule-difference-governance-panel,
.rule-takeover-governance-panel,
.rule-governance-closure-panel,
.rule-source-binding-preview-panel,
.rule-source-gap-strategy-panel,
.rule-source-version-draft-panel,
.rule-source-governance-review-panel,
.carrier-rule-batch-plan-panel,
.carrier-adapter-standard-gap-plan-panel,
.carrier-billing-template-onboarding-plan-panel {
  display: grid;
  gap: 12px;
}

.governance-panel-note {
  border-left: 3px solid #93c5fd;
  margin: 0;
  padding: 8px 10px;
  background: #f8fafc;
  line-height: 1.6;
}

.governance-action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.toolbar-note {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.acceptance-workbench-toolbar,
.difference-governance-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  background: #f8fafc;
}

.acceptance-workbench-toolbar label,
.difference-governance-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.acceptance-workbench-toolbar label span,
.difference-governance-toolbar label span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.acceptance-workbench-toolbar input,
.acceptance-workbench-toolbar select,
.difference-governance-toolbar input,
.difference-governance-toolbar select {
  min-width: 0;
}

.acceptance-workbench-toolbar button,
.difference-governance-toolbar button {
  min-height: 38px;
  padding: 8px 12px;
}

.batch-adaptation-summary,
.admission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-adaptation-summary span,
.admission-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 3px 8px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.batch-candidate-table {
  min-width: 980px;
}

.real-calculation-admission-table {
  min-width: 1040px;
}

.rule-acceptance-diagnostics-table,
.rule-acceptance-workbench-table,
.difference-governance-table,
.rule-takeover-governance-table,
.rule-governance-closure-table,
.rule-source-binding-preview-table,
.rule-source-gap-strategy-table,
.rule-source-version-draft-table,
.rule-source-governance-review-table,
.carrier-rule-batch-plan-table,
.carrier-adapter-standard-gap-plan-table,
.carrier-billing-template-onboarding-plan-table {
  min-width: 1080px;
  table-layout: fixed;
}

.sample-gap-table {
  min-width: 820px;
}

.batch-candidate-table td {
  vertical-align: top;
}

.real-calculation-admission-table td,
.rule-acceptance-diagnostics-table td,
.rule-acceptance-workbench-table td,
.difference-governance-table td,
.rule-takeover-governance-table td,
.rule-governance-closure-table td,
.rule-source-binding-preview-table td,
.rule-source-gap-strategy-table td,
.rule-source-version-draft-table td,
.rule-source-governance-review-table td,
.carrier-rule-batch-plan-table td,
.carrier-adapter-standard-gap-plan-table td,
.carrier-billing-template-onboarding-plan-table td,
.sample-gap-table td {
  vertical-align: top;
}

.batch-candidate-table td:nth-child(4),
.batch-candidate-table td:nth-child(8) {
  white-space: normal;
}

.real-calculation-admission-table td:nth-child(1),
.real-calculation-admission-table td:nth-child(5),
.real-calculation-admission-table td:nth-child(6) {
  white-space: normal;
}

.rule-acceptance-diagnostics-table td:nth-child(1),
.rule-acceptance-diagnostics-table td:nth-child(6),
.rule-acceptance-diagnostics-table td:nth-child(7) {
  white-space: normal;
}

.rule-acceptance-workbench-table td:nth-child(1),
.rule-acceptance-workbench-table td:nth-child(6) {
  white-space: normal;
}

.difference-governance-table td:nth-child(1),
.difference-governance-table td:nth-child(5),
.difference-governance-table td:nth-child(6),
.rule-takeover-governance-table td:nth-child(1),
.rule-takeover-governance-table td:nth-child(3),
.rule-takeover-governance-table td:nth-child(5),
.rule-governance-closure-table td:nth-child(1),
.rule-governance-closure-table td:nth-child(5),
.rule-source-binding-preview-table td:nth-child(1),
.rule-source-binding-preview-table td:nth-child(3),
.rule-source-binding-preview-table td:nth-child(5),
.rule-source-gap-strategy-table td:nth-child(1),
.rule-source-gap-strategy-table td:nth-child(3),
.rule-source-gap-strategy-table td:nth-child(4),
.rule-source-gap-strategy-table td:nth-child(5),
.rule-source-version-draft-table td:nth-child(1),
.rule-source-version-draft-table td:nth-child(3),
.rule-source-version-draft-table td:nth-child(4),
.rule-source-version-draft-table td:nth-child(5),
.rule-source-version-draft-table td:nth-child(6),
.rule-source-governance-review-table td:nth-child(1),
.rule-source-governance-review-table td:nth-child(2),
.rule-source-governance-review-table td:nth-child(4),
.carrier-rule-batch-plan-table td:nth-child(2),
.carrier-rule-batch-plan-table td:nth-child(4),
.carrier-rule-batch-plan-table td:nth-child(5),
.sample-gap-table td:nth-child(1),
.sample-gap-table td:nth-child(4) {
  white-space: normal;
}

.rule-governance-closure-table th:nth-child(1),
.rule-source-binding-preview-table th:nth-child(1),
.rule-source-gap-strategy-table th:nth-child(1),
.rule-source-version-draft-table th:nth-child(1),
.rule-source-governance-review-table th:nth-child(1) {
  width: 22%;
}

.rule-source-binding-preview-table th:nth-child(6) {
  width: 132px;
}

.governance-rule-cell b {
  display: block;
  overflow-wrap: anywhere;
  color: #0f172a;
  line-height: 1.45;
}

.governance-text-cell {
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.governance-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

.governance-status.success {
  color: #166534;
  background: #dcfce7;
}

.governance-status.info {
  color: #1d4ed8;
  background: #dbeafe;
}

.governance-status.warning {
  color: #92400e;
  background: #fef3c7;
}

.governance-status.danger {
  color: #991b1b;
  background: #fee2e2;
}

.governance-status.muted {
  color: #475569;
  background: #e2e8f0;
}

.governance-action-cell {
  min-width: 118px;
}

.governance-row-actions {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.governance-row-actions span,
.governance-action-muted {
  color: #64748b;
  font-size: 12px;
}

.governance-action-muted {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
}

.acceptance-workbench-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.acceptance-workbench-groups > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 8px;
  background: #ffffff;
}

.acceptance-workbench-groups > div > b {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.acceptance-workbench-groups span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 7px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.batch-version-id {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.empty-cell {
  color: #64748b;
  text-align: center;
}

.batch-status-ready {
  color: #166534;
  background: #dcfce7;
}

.batch-status-dry-run {
  color: #1d4ed8;
  background: #dbeafe;
}

.batch-status-blocked {
  color: #991b1b;
  background: #fee2e2;
}

.batch-status-muted {
  color: #475569;
  background: #e2e8f0;
}

.carrier-readiness-table {
  min-width: 980px;
}

.carrier-readiness-table td {
  vertical-align: top;
  white-space: normal;
}

.carrier-readiness-metric {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.carrier-readiness-metric span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 8px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.carrier-readiness-metric b {
  color: #0f172a;
}

.carrier-rule-batch-gap-list {
  display: grid;
  gap: 4px;
  margin: 0 0 8px;
  padding-left: 18px;
  color: #334155;
  line-height: 1.45;
}

.carrier-rule-batch-next,
.carrier-rule-batch-boundary {
  display: block;
  color: #475569;
  line-height: 1.45;
}

.carrier-rule-batch-next {
  font-weight: 700;
}

.carrier-rule-batch-boundary {
  margin-top: 6px;
  font-size: 12px;
}

.carrier-adapter-standard-gap-block {
  display: grid;
  gap: 6px;
}

.carrier-adapter-standard-gap-block b {
  color: #0f172a;
  font-size: 12px;
}

.special-rule-archive-note {
  display: grid;
  grid-template-columns: 140px repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  padding: 10px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 12px;
  line-height: 1.45;
  min-width: 0;
}

.special-rule-archive-note > b {
  color: #1d4ed8;
  font-weight: 800;
}

.special-rule-archive-note span {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-rule-archive-note strong {
  margin-right: 6px;
  color: #1e40af;
  font-weight: 800;
}

.rule-card-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding-top: 8px;
  min-width: 0;
}

.rule-card-more {
  color: #334155;
  font-size: 13px;
}

.rule-card-more summary {
  width: fit-content;
  cursor: pointer;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.rule-card-meta span,
.rule-card-detail span {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.rule-card-meta b,
.rule-card-detail b {
  margin-right: 6px;
  color: #64748b;
  font-weight: 700;
}

.rule-card-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.rule-card-status,
.rule-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.rule-card-actions button {
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
  font-size: 12px;
}

.small-action-button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: #64748b;
  text-align: center;
}

dialog {
  width: min(1180px, calc(100vw - 32px));
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 18px;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.preview-header,
.preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-header h2 {
  margin: 0;
  font-size: 18px;
}

.preview-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.preview-controls {
  justify-content: flex-start;
}

.preview-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-table-wrap {
  max-height: 68vh;
  overflow: auto;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #ffffff;
}

#preview-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

#preview-table th,
#preview-table td {
  min-width: 112px;
  max-width: 220px;
  height: 34px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef2f7;
  color: #334155;
  text-align: center;
  font-weight: 700;
}

#preview-table .corner-cell,
#preview-table .row-number {
  position: sticky;
  left: 0;
  min-width: 56px;
  max-width: 56px;
  width: 56px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  font-weight: 700;
}

#preview-table .corner-cell {
  z-index: 3;
  top: 0;
  background: #e2e8f0;
}

#preview-table .row-number {
  z-index: 1;
}

#preview-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

#preview-table tbody tr:hover td,
#preview-table tbody tr:hover .row-number {
  background: #eff6ff;
}

.preview-json {
  background: #111827;
  color: #f9fafb;
  border-radius: 6px;
  padding: 12px;
  overflow: auto;
  min-height: 80px;
  white-space: pre-wrap;
}

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

.draft-summary[hidden] {
  display: none;
}

.draft-summary div {
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
}

.draft-summary span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

.draft-summary strong {
  color: #0f172a;
  font-size: 14px;
}

.business-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.business-preview[hidden] {
  display: none;
}

.business-preview div {
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
}

.business-preview span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

.business-preview strong {
  color: #0f172a;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.business-preview .wide-preview-field {
  grid-column: span 2;
}

.candidate-rule-panel .business-preview {
  margin-top: 12px;
}

.publish-preview-panel {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  background: #f8fbff;
}

.publish-preview-form {
  grid-template-columns: minmax(120px, 180px) minmax(160px, 1fr) minmax(120px, 160px) auto;
}

.publish-preview-form .wide-field {
  grid-column: 1 / 4;
}

.publish-preview-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.publish-preview-actions button {
  min-width: 128px;
}

.publish-preview-form textarea {
  min-height: 150px;
}

.publish-preview-result {
  border-top: 1px solid #dbeafe;
  margin-top: 14px;
  padding-top: 14px;
}

.publish-preview-samples {
  border-top: 1px solid #dbeafe;
  margin-top: 14px;
  padding-top: 14px;
}

.publish-preview-samples h3 {
  margin: 0;
  font-size: 14px;
  color: #1e293b;
}

.sample-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.sample-preview-item {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.sample-preview-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.sample-preview-item strong {
  color: #0f172a;
  font-size: 13px;
}

.sample-preview-item span,
.sample-preview-item small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.sample-preview-item.is-consistent {
  border-color: #bbf7d0;
}

.sample-preview-item.is-inconsistent {
  border-color: #fed7aa;
}

.publish-preview-result div {
  background: #ffffff;
}

.publish-preview-result.is-consistent div:first-child,
.publish-preview-result.is-consistent div:nth-child(2) {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.publish-preview-result.is-inconsistent div:first-child,
.publish-preview-result.is-inconsistent div:nth-child(2) {
  border-color: #fed7aa;
  background: #fff7ed;
}

.publish-preview-result .wide-preview-field strong {
  display: block;
  white-space: pre-wrap;
}

.inline-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #475569;
  font-size: 13px;
}

.debug-json {
  margin-top: 12px;
}

.debug-json summary {
  cursor: pointer;
  color: #334155;
  font-weight: 700;
}

.template-rule-workbench {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.template-rule-toolbar,
.template-rule-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.template-rule-toolbar h2 {
  margin-bottom: 6px;
}

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

.template-rule-summary div,
.template-rule-simulator,
.template-rule-mode-grid {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.template-rule-summary div {
  min-height: 72px;
  padding: 10px 12px;
}

.template-rule-summary span,
.template-rule-simulator span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.template-rule-summary strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
}

.template-rule-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.template-rule-mode-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.template-rule-mode-grid input {
  margin-top: 2px;
}

.template-rule-actions {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.template-rule-action-token {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  color: #475569;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.template-rule-simulator {
  margin-bottom: 12px;
  padding: 10px 12px;
}

.template-rule-simulator p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.weight-rule-editor-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.weight-rule-editor-table {
  min-width: 1180px;
}

.weight-rule-editor-table input,
.weight-rule-editor-table select {
  width: 100%;
  min-width: 96px;
}

.surcharge-rule-editor-wrap,
.weight-surcharge-rule-editor-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.surcharge-rule-editor-table {
  min-width: 1040px;
}

.weight-surcharge-rule-editor-table {
  min-width: 560px;
}

.special-rule-editor-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.special-rule-editor-table {
  min-width: 720px;
}

.finance-special-editor-grid,
.finance-compact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.finance-compact-form label {
  min-width: 0;
}

.finance-compact-form input,
.finance-compact-form select {
  width: 100%;
}

.surcharge-rule-editor-table input,
.surcharge-rule-editor-table select,
.weight-surcharge-rule-editor-table input,
.special-rule-editor-table input,
.special-rule-editor-table select {
  width: 100%;
  min-width: 120px;
}

.weight-rule-editor-table .row-actions,
.surcharge-rule-editor-table .row-actions,
.weight-surcharge-rule-editor-table .row-actions,
.special-rule-editor-table .row-actions {
  flex-wrap: nowrap;
}

.rule-release-shell {
  max-width: 1320px;
}

.rule-release-page {
  display: grid;
  gap: 22px;
}

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

.rule-release-header h1 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 28px;
}

.rule-release-header p {
  margin: 0;
  max-width: 720px;
  color: #64748b;
  line-height: 1.7;
}

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

.release-summary-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
  border-left: 4px solid #64748b;
}

.release-summary-card.is-ready {
  border-left-color: #16a34a;
}

.release-summary-card.is-active {
  border-left-color: #2563eb;
}

.release-summary-card.is-blocked {
  border-left-color: #dc2626;
}

.release-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.release-summary-card strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.release-message {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 12px 14px;
}

.release-message-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.release-filter-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.release-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.release-filter-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.release-filter-grid span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.release-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.release-table-panel {
  display: grid;
  gap: 12px;
}

.release-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 10px 12px;
}

.release-bulk-meta {
  color: #334155;
  font-size: 13px;
}

.release-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.release-table-wrap {
  overflow-x: auto;
}

.release-table {
  min-width: 1260px;
  table-layout: fixed;
}

.release-table th,
.release-table td {
  vertical-align: middle;
}

.release-select-column {
  width: 44px;
  text-align: center;
}

.release-sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.release-sort-button:hover {
  color: #2563eb;
}

.release-table th:last-child,
.release-table td:last-child,
.release-sticky-actions {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 190px;
  background: #ffffff;
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.06);
}

.release-table th:last-child {
  z-index: 3;
  background: #f8fafc;
}

.release-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.release-status-ready_for_admission,
.release-status-ready {
  background: #ecfdf5;
  color: #16a34a;
}

.release-status-already_participating {
  background: #eff6ff;
  color: #1d4ed8;
}

.release-status-needs_acceptance,
.release-status-not_candidate {
  background: #fef3c7;
  color: #f59e0b;
}

.release-status-governance_required,
.release-status-blocked {
  background: #fee2e2;
  color: #dc2626;
}

.release-status-unknown {
  background: #e2e8f0;
  color: #64748b;
}

.release-blockers {
  color: #475569;
  line-height: 1.6;
}

.release-blocker-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.release-blocker-tag.is-empty {
  background: #ecfdf5;
  color: #16a34a;
}

.release-draft-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.release-table-cell-main {
  color: #0f172a;
  font-weight: 700;
}

.release-table-cell-muted {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.release-table-cell-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

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

.release-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.release-next-step {
  display: inline-block;
  max-width: 260px;
  color: #64748b;
  line-height: 1.6;
}

.release-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.release-pagination-info {
  color: #64748b;
  font-size: 13px;
}

.release-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.release-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.38);
  padding: 24px;
}

.release-confirm-modal[hidden] {
  display: none;
}

.release-confirm-dialog {
  width: min(420px, 100%);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
  padding: 20px;
}

.release-confirm-dialog h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 18px;
}

.release-confirm-dialog p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.release-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .app-sidebar {
    position: static;
    width: auto;
    padding: 16px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 84px 16px 16px;
  }

  .top-account-bar {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: space-between;
  }

  .top-account-user {
    min-width: 0;
  }

  .rule-archive-panel {
    max-width: calc(100vw - 32px);
  }

  .finance-rule-page {
    max-width: calc(100vw - 32px);
  }

  .finance-page-header,
  .finance-table-toolbar,
  .rule-release-header {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-filter-bar,
  .finance-rule-layout,
  .finance-rule-form,
  .finance-preview-form,
  .finance-inline-fields,
  .finance-special-editor-grid,
  .finance-compact-form,
  .finance-default-freight,
  .finance-method-options,
  .weight-region-header,
  .release-summary-grid,
  .release-filter-grid {
    grid-template-columns: 1fr;
  }

  .release-bulk-toolbar,
  .release-pagination,
  .release-confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #default-weight-rule-panel .finance-inline-fields {
    grid-template-columns: 1fr;
  }

  #default-weight-rule-panel .finance-inline-fields label {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  #default-weight-rule-panel select {
    width: min(180px, 100%);
  }

  .finance-form-actions,
  .finance-filter-actions,
  .finance-row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-form-actions button,
  .finance-filter-actions button,
  .finance-filter-actions a,
  .finance-row-actions button,
  .weight-region-actions button,
  .weight-range-actions button {
    width: 100%;
  }

  .weight-region-actions,
  .weight-range-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .version-form {
    grid-template-columns: 1fr;
  }

  .enterprise-config-form,
  .enterprise-filter-bar,
  .business-tip {
    grid-template-columns: 1fr;
  }

  .refund-capability-page {
    max-width: calc(100vw - 32px);
  }

  .capability-page-actions {
    justify-content: stretch;
  }

  .capability-page-actions button {
    width: 100%;
  }

  .capability-drawer-panel {
    width: 100vw;
  }

  .capability-drawer-meta {
    grid-template-columns: 1fr;
  }

  .takeover-config-grid {
    grid-template-columns: 1fr;
  }

  .drawer-info-grid {
    grid-template-columns: 1fr;
  }

  .drawer-info-list div {
    grid-template-columns: 1fr;
  }

  .capability-action-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .capability-action-footer button {
    width: 100%;
  }

  .user-management-form {
    grid-template-columns: 1fr;
  }

  .user-form-submit,
  .user-action-button {
    width: 100%;
  }

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

  .enterprise-action-bar,
  .filter-bar,
  .acceptance-workbench-toolbar,
  .difference-governance-toolbar,
  .acceptance-workbench-groups,
  .storage-action-grid,
  .storage-action-panel {
    grid-template-columns: 1fr;
  }

  .enterprise-action-bar {
    align-items: stretch;
  }

  .storage-action-button {
    width: 100%;
    min-width: 0;
  }

  .template-rule-toolbar,
  .template-rule-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .template-rule-summary,
  .template-rule-mode-grid {
    grid-template-columns: 1fr;
  }

  .version-form .wide-field {
    grid-column: auto;
  }

  .draft-summary {
    grid-template-columns: 1fr;
  }

  .business-preview {
    grid-template-columns: 1fr;
  }

  .business-preview .wide-preview-field {
    grid-column: auto;
  }

  .publish-preview-form,
  .publish-preview-form .wide-field {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .sample-preview-list {
    grid-template-columns: 1fr;
  }

  .rule-archive-card,
  .rule-card-header,
  .rule-card-meta,
  .special-rule-archive-note,
  .rule-card-detail {
    grid-template-columns: 1fr;
  }

  .rule-card-side {
    justify-items: stretch;
  }

  .rule-card-summary {
    justify-content: flex-start;
  }

  .rule-card-status,
  .rule-card-actions {
    justify-content: flex-start;
  }

  .rule-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header,
  .admin-module-grid,
  .admin-module-card {
    grid-template-columns: 1fr;
  }
}
