.console-page {
  --console-sidebar: clamp(190px, 14vw, 260px);
}
.console-header {
  height: 68px;
  gap: 20px;
}
.console-label {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}
.console-header .header-actions {
  margin-left: auto;
}
.admin-username {
  font-size: 12px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#adminMenuToggle {
  display: none;
}
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 68px;
  bottom: 0;
  width: var(--console-sidebar);
  padding: 28px 16px 20px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
}
.sidebar-heading {
  color: var(--muted);
  font-size: 11px;
  margin: 0 12px 16px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 43px;
  padding: 10px 14px;
  border-radius: 5px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.admin-nav.active,
.admin-nav:hover {
  background: var(--accent-soft);
  color: var(--primary-color);
}
.admin-nav.active {
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 18px 10px 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.console-main {
  margin-left: var(--console-sidebar);
  padding: 30px clamp(24px, 2.5vw, 64px) 60px;
  min-width: 0;
}
.console-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.console-page-heading h1 {
  font-size: 24px;
  margin-top: 9px;
}
.console-page .breadcrumb {
  margin: 0;
}
.overview-metrics {
  margin: 0 0 28px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric {
  margin: 0;
  padding: 0 25px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border: 0;
}
.metric dt {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.metric dt svg {
  width: 16px;
}
.metric dd {
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.metric:nth-child(2) dd {
  color: var(--primary-color);
}
.metric:nth-child(3) dd {
  color: #ac6b34;
}
.metric:nth-child(4) dd {
  color: #687aa6;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 28px;
}
.console-band {
  border-bottom: 1px solid var(--border);
  padding: 0 0 24px;
  margin-bottom: 28px;
  min-width: 0;
}
.band-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.band-heading h2 {
  font-size: 15px;
}
.band-heading > svg {
  color: var(--muted);
}
.band-heading .text-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.band-heading .text-btn svg {
  width: 14px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.chart-legend i {
  width: 7px;
  height: 7px;
  background: var(--primary-color);
}
.chart-legend i:nth-of-type(2) {
  background: #a7b5d3;
  margin-left: 8px;
}
.activity-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  height: 198px;
  padding: 15px 6px 0;
}
.activity-day {
  display: grid;
  grid-template-rows: 1fr 24px;
  min-width: 0;
  gap: 10px;
}
.activity-day > span {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.activity-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  border-bottom: 1px solid var(--border);
}
.activity-bars span {
  width: 16px;
  max-width: 40%;
  min-height: 2px;
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
}
.activity-bars span + span {
  background: #a7b5d3;
}
.moderation-summary {
  margin: 0;
}
.moderation-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  font-size: 12px;
}
.moderation-summary > div:last-child {
  border: 0;
}
.moderation-summary dt {
  color: var(--muted);
}
.moderation-summary dd {
  margin: 0;
  font-weight: 600;
}
.recent-post {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 24px;
  align-items: center;
  width: 100%;
  gap: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.recent-post:last-child {
  border: 0;
}
.recent-post strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.recent-post small {
  color: var(--muted);
  font-size: 11px;
}
.recent-post > svg {
  width: 15px;
  color: var(--muted);
}
.audit-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  align-items: start;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.audit-entry > svg {
  width: 16px;
  color: var(--muted);
  margin-top: 3px;
}
.audit-entry p {
  overflow-wrap: anywhere;
}
.audit-entry time {
  color: var(--muted);
  font-size: 11px;
}
.audit-entry small {
  color: var(--muted);
}
.admin-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.admin-filter select {
  font-size: 12px;
  min-height: 39px;
}
.admin-search {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.admin-search svg {
  color: var(--muted);
  width: 16px;
}
.admin-search input {
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.table-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}
.table-heading h2 {
  font-size: 15px;
}
.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  font-size: 12px;
}
.admin-table th {
  color: var(--muted);
  background: var(--surface-muted);
  font-weight: 500;
  padding: 13px 12px;
  white-space: nowrap;
}
.admin-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.admin-table th:first-child,
.admin-table td:first-child {
  padding-left: 0;
}
.admin-table th:first-child {
  padding-left: 12px;
  width: 30%;
}
.admin-table th:last-child {
  width: 88px;
}
.admin-table .post-title {
  font-size: 13px;
  font-weight: 550;
  display: block;
  text-align: left;
  line-height: 1.6;
  padding: 0;
  overflow-wrap: anywhere;
}
.post-tags {
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}
.table-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.table-person span {
  overflow-wrap: anywhere;
}
.table-person .avatar {
  width: 28px;
  height: 28px;
}
.user-name .table-person {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 9px;
}
.user-name .table-person .avatar {
  grid-row: 1 / 3;
}
.user-name .table-person small {
  grid-column: 2;
  overflow-wrap: anywhere;
}
.table-actions {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.table-actions .icon-btn {
  width: 30px;
  height: 32px;
  flex-basis: 30px;
}
.admin-sensitive-switch {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
}
.admin-sensitive-switch:has(input:disabled) {
  opacity: 0.6;
  cursor: wait;
}
.table-actions svg {
  width: 16px;
}
.account-table th:last-child {
  width: 118px;
}
.posts-table th:last-child {
  width: 164px;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.8;
  background: var(--accent-soft);
  color: var(--primary-color);
  max-width: 100%;
}
.admin-badge svg {
  width: 11px;
  height: 11px;
}
.admin-badge.removed,
.admin-badge.disabled {
  background: #bd414b12;
  color: var(--danger);
}
.admin-badge.protected,
.admin-badge.restricted {
  background: #b8882714;
  color: #946926;
}
.dark .admin-badge.restricted,
.dark .admin-badge.protected {
  color: #dfb66d;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}
.admin-pagination > span {
  margin-right: 8px;
}
.settings-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 44px;
}
.settings-band {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-bottom: 25px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.settings-band h2 {
  font-size: 15px;
  margin-bottom: 4px;
}
.settings-band label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.settings-band input:not([type='color']) {
  width: 100%;
}
.settings-band .upload-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-band .range-label {
  flex-direction: row;
  justify-content: space-between;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: -15px;
}
.settings-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}
.settings-colors label {
  margin-bottom: 10px;
}
.appearance-preview {
  position: sticky;
  top: 98px;
  align-self: start;
}
.appearance-preview h2 {
  font-size: 13px;
  margin-bottom: 16px;
}
.settings-preview {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  height: 310px;
  display: grid;
  align-items: center;
  background: repeating-conic-gradient(#dce3df 0% 25%, #f5f7f6 0% 50%) 50% / 18px 18px;
  background-size: cover;
}
.settings-preview:not([data-image]) {
  background-size: 18px 18px;
}
.preview-sheet {
  background: color-mix(in srgb, var(--surface) var(--preview-fill, 85%), transparent);
  color: var(--preview-text, var(--text));
  padding: 20px 16px;
  border: 1px solid #bac5bf70;
  border-radius: 4px;
}
.preview-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--preview-accent, var(--primary-color));
}
.preview-title strong {
  overflow-wrap: anywhere;
}
.preview-title svg {
  width: 15px;
  flex-shrink: 0;
}
.preview-sheet h3 {
  margin: 24px 0 14px;
  font-size: 16px;
}
.preview-sheet p {
  font-size: 11px;
}
.preview-rule {
  height: 1px;
  background: #8d9b9555;
  margin: 22px 0 16px;
}
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}
.preview-meta svg {
  width: 12px;
}
.appearance-preview > .muted {
  display: block;
  margin-top: 12px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.form-columns .account-enable {
  flex-direction: row;
  min-height: 43px;
  align-items: center;
}
.permission-fields {
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.permission-fields legend,
.password-reset-fields legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px 0 0;
}
.permission-fields .switch-label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.password-reset-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.edit-user-dialog {
  width: 580px;
}
.edit-user-dialog .form-stack label.switch-label {
  flex-direction: row;
  align-items: center;
  min-height: 36px;
  font-weight: 400;
}
.danger-button {
  background: var(--danger);
}
.admin-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.admin-post-body-title {
  font-size: 24px;
  margin-bottom: 25px;
  overflow-wrap: anywhere;
}
.admin-post-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 28px;
}
.admin-post-dialog .reader-grid {
  grid-template-columns: minmax(0, 1fr) 150px;
}
.admin-post-comments {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 25px;
}
.admin-post-comments h3 {
  margin-bottom: 15px;
}
@media (max-width: 1199px) {
  .console-page {
    --console-sidebar: 190px;
  }
  .console-main {
    padding: 26px 24px 45px;
  }
  .admin-table {
    min-width: 700px;
  }
  .overview-columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr);
    gap: 22px;
  }
  .settings-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .appearance-preview {
    position: static;
    width: min(400px, 100%);
  }
  .metric {
    padding: 0 14px;
  }
  .console-label {
    display: none;
  }
}
@media (max-width: 1023px) {
  #adminMenuToggle {
    display: inline-flex;
  }
  .console-header {
    gap: 12px;
    padding: 0 16px;
  }
  .admin-sidebar {
    display: none;
    box-shadow: var(--shadow);
  }
  .admin-sidebar.open {
    display: flex;
  }
  .admin-nav-backdrop {
    position: fixed;
    inset: 68px 0 0;
    width: 100%;
    z-index: 29;
    background: #12241e65;
  }
  .console-main {
    margin-left: 0;
  }
  .overview-columns {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.8fr);
  }
  .admin-username {
    display: none;
  }
  .console-header .header-actions {
    gap: 5px;
  }
}
@media (max-width: 959px) {
  .console-header {
    height: 58px;
    gap: 8px;
    padding: 0 10px;
  }
  .console-header .brand {
    font-size: 15px;
    gap: 6px;
  }
  .console-header .brand > span:last-child {
    max-width: 120px;
  }
  .console-header .return-site {
    padding: 7px;
    min-height: 34px;
  }
  .return-site span,
  #adminAvatar {
    display: none;
  }
  .admin-sidebar {
    top: 58px;
    width: 220px;
  }
  .admin-nav-backdrop {
    top: 58px;
  }
  .console-main {
    padding: 22px 16px 40px;
  }
  .console-page-heading {
    margin-bottom: 20px;
  }
  .console-page-heading h1 {
    font-size: 21px;
  }
  .console-page-heading .subtle-btn {
    font-size: 12px;
    padding: 7px 10px;
  }
  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
    padding: 20px 0;
  }
  .metric {
    padding: 0 16px;
  }
  .metric:nth-child(3) {
    padding-left: 0;
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .metric dd {
    font-size: 28px;
  }
  .overview-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .activity-chart {
    gap: 7px;
  }
  .admin-filter {
    gap: 8px;
  }
  .admin-search {
    max-width: none;
    flex-basis: 100%;
  }
  .admin-search input,
  .admin-filter select,
  .settings-band input:not([type='color']):not([type='range']),
  .edit-user-dialog input {
    font-size: 16px;
  }
  .admin-filter select {
    flex: 1;
  }
  .admin-filter .primary-btn {
    font-size: 12px;
  }
  .admin-table {
    min-width: 0;
    display: block;
  }
  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .admin-table tbody {
    display: block;
  }
  .admin-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .admin-table td:first-child {
    grid-column: 1 / -1;
  }
  .admin-table .post-title {
    font-size: 15px;
  }
  .admin-table td[data-label]::before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
  }
  .admin-table td:last-child {
    align-self: end;
  }
  .admin-table .user-name {
    font-size: 14px;
  }
  .table-person .avatar {
    width: 30px;
    height: 30px;
  }
  .table-actions .icon-btn {
    width: 36px;
    height: 38px;
    flex-basis: 36px;
    background: var(--surface-muted);
  }
  .recent-post {
    grid-template-columns: 30px minmax(0, 1fr) 20px;
  }
  .recent-post > .admin-badge {
    display: none;
  }
  .audit-entry {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
  }
  .audit-entry time {
    grid-column: 2;
  }
  .settings-workspace {
    gap: 32px;
  }
  .settings-colors {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .form-columns,
  .password-reset-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .permission-fields {
    gap: 14px;
  }
  .admin-post-dialog .reader-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-post-body-title {
    font-size: 21px;
  }
}
/* Community moderation keeps table actions reachable on narrow screens. */
.community-admin-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.community-admin-filter input {
  flex: 1;
  min-width: 140px;
}
.community-admin-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.community-admin-row > div:first-child {
  min-width: 0;
  flex: 1;
}
.community-admin-row p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.community-admin-row .table-actions {
  flex-wrap: wrap;
}
.settings-band .switch-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.settings-band .switch-label input {
  width: auto;
}
#adminTopicFilter {
  max-width: 200px;
}
@media (max-width: 1023px) {
  .console-page #adminSidebar nav {
    grid-template-columns: repeat(10, minmax(62px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .console-page #adminSidebar .dock-indicator {
    display: none;
  }
  .console-page #adminSidebar .admin-nav.active {
    background: var(--accent-soft);
  }
  .console-page #adminSidebar .admin-nav {
    padding: 8px 2px;
    min-width: 0;
  }
  .console-page #adminSidebar .admin-nav span {
    font-size: 11px;
  }
  .community-admin-row .table-actions {
    max-width: 100px;
  }
}
.site-maintenance-form {
  max-width: 760px;
}
.ai-admin > .table-heading:not(:first-child) {
  margin-top: 32px;
}
.ai-admin > .muted {
  overflow-wrap: anywhere;
}
.ai-bot-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ai-bot-main > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ai-bot-main .avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.ai-bot-main .admin-badge {
  margin-left: 8px;
}
.ai-bot-editor {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.ai-bot-editor label {
  min-width: 0;
}
.ai-bot-editor textarea {
  width: 100%;
  resize: vertical;
}
.ai-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ai-time-grid input {
  width: 100%;
  min-width: 0;
}
.ai-avatar-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-avatar-tools .avatar {
  width: 56px;
  height: 56px;
}
.ai-bot-editor input[type='checkbox'],
.ai-admin input[type='checkbox'] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ai-preview-content p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .ai-time-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ai-bot-row {
    flex-direction: column;
  }
  .ai-bot-row .table-actions {
    max-width: none;
    align-self: flex-end;
  }
}
.site-maintenance-form input[type='checkbox'],
.site-bulletin-editor input[type='checkbox'] {
  width: 20px;
  height: 20px;
  display: inline-block;
}
.site-bulletin-editor {
  width: min(680px, calc(100vw - 32px));
}
.site-bulletin-editor textarea,
.site-maintenance-form textarea {
  width: 100%;
  resize: vertical;
}
.site-bulletin-row > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bulletin-summary {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-sidebar nav {
  overflow-y: auto;
  min-height: 0;
}
.migration-workspace {
  max-width: 1100px;
}
.migration-config,
.migration-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.migration-config dt,
.migration-metrics dt {
  color: var(--muted);
  font-size: 13px;
}
.migration-config dd,
.migration-metrics dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.migration-config div {
  min-width: 0;
}
.migration-metrics dd {
  font-size: 20px;
  font-weight: 600;
}
.migration-warning {
  color: var(--muted);
  line-height: 1.7;
  margin: 20px 0;
}
.migration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.migration-actions button {
  min-height: 40px;
}
.migration-status {
  margin: 24px 0 10px;
  font-weight: 600;
}
.migration-progress {
  display: block;
  width: 100%;
  height: 10px;
  accent-color: var(--primary-color);
}
.migration-current {
  min-height: 24px;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.migration-failures h2 {
  font-size: 16px;
  margin-top: 24px;
}
.migration-failures ul {
  list-style: none;
  padding: 0;
}
.migration-failures li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.migration-failures li span {
  min-width: 0;
}
@media (max-width: 480px) {
  .migration-config,
  .migration-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .migration-actions {
    gap: 8px;
  }
  .migration-actions .primary-btn,
  .migration-actions .subtle-btn {
    padding: 8px 10px;
  }
}
