:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --panel: #ffffff;
  --panel-soft: #f8fafb;
  --line: #dde3e8;
  --line-strong: #c9d2da;
  --text: #16202a;
  --muted: #66727f;
  --primary: #2f6f5f;
  --primary-soft: #e8f3ef;
  --warning: #c9851e;
  --warning-soft: #fff4e4;
  --danger: #cb5a4a;
  --danger-soft: #ffeceb;
  --success: #237b63;
  --success-soft: #eaf8f2;
  --shadow: 0 14px 32px rgba(19, 32, 43, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

button:hover {
  background: #285f51;
  border-color: #285f51;
}

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

button.secondary:hover {
  background: #f4f7f9;
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

button.danger:hover {
  background: #b74e40;
  border-color: #b74e40;
}

button.wide {
  width: 100%;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7cb1a3;
  box-shadow: 0 0 0 3px rgba(47, 111, 95, 0.12);
}

textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 144px;
  height: 144px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14));
}

.brand-logo.small {
  width: 104px;
  height: 104px;
}

.auth-brand h1,
.sidebar-brand h2,
.topbar h1,
.section-heading h2,
.card-title {
  margin: 0;
}

.auth-brand p,
.sidebar-brand p,
.topbar p,
.section-heading p,
.card-subtitle,
.auth-note {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.auth-tabs,
.subtabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}

.tab-button,
.subtab-button {
  background: #fff;
  color: var(--muted);
  border-color: var(--line-strong);
}

.tab-button.active,
.subtab-button.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #90b8ac;
}

.auth-tab-panel {
  display: none;
  gap: 14px;
}

.auth-tab-panel.active {
  display: grid;
}

.auth-options {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.check-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

.check-line input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: end;
}

.status-line {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.status-line.inline {
  margin: 0 0 16px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 20px 16px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.account-card,
.card,
.topbar,
.metric-tile,
.list-item,
.empty-box,
.summary-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-card {
  padding: 14px;
}

.account-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.role-pill,
.badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge {
  min-height: 34px;
}

.badge.success {
  background: var(--success-soft);
  border-color: #b9e5d4;
  color: var(--success);
}

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

.nav-group {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.nav-group + .nav-group {
  border-top: 1px solid var(--line);
  margin-top: 6px;
}

.nav-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}

.nav-group-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.nav-group-count {
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #c8ddd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.nav-group-desc {
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.nav-button {
  width: 100%;
  display: grid;
  gap: 4px;
  align-items: start;
  justify-items: start;
  padding: 12px 14px;
  min-height: 58px;
  background: #fff;
  color: var(--text);
  border: 1px solid transparent;
}

.nav-button:hover {
  background: #f6f9fb;
  border-color: var(--line);
}

.nav-button.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #96baaf;
}

.nav-button strong {
  font-size: 14px;
}

.nav-button span {
  font-size: 12px;
  color: inherit;
  opacity: 0.9;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.main-shell {
  padding: 20px 22px 28px;
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.topbar {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.page-kicker {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.topbar h1 {
  font-size: 28px;
}

.topbar-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.module-areas {
  display: grid;
}

.module-area-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.module-area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.module-area-head strong {
  font-size: 14px;
}

.module-area-head span {
  color: var(--muted);
  font-size: 12px;
}

.module-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.module-area-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.module-area-card.active {
  border-color: #96baaf;
  background: var(--primary-soft);
}

.module-area-card strong {
  font-size: 13px;
  color: var(--text);
}

.module-area-card small {
  color: var(--muted);
  line-height: 1.55;
}

.page-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel {
  display: none;
  gap: 16px;
  min-width: 0;
}

.panel.active {
  display: grid;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-heading h2 {
  font-size: 22px;
}

.card {
  padding: 16px;
}

.grid-2,
.grid-3,
.grid-4,
.metrics-grid,
.summary-grid,
.workspace {
  display: grid;
  gap: 16px;
}

.metrics-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-tile {
  padding: 16px;
}

.metric-tile small,
.summary-block small,
.list-item small,
.empty-box small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.metric-tile strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-overview {
  min-width: 0;
}

.page-overview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.overview-tile,
.sidebar-summary-card,
.panel-hero,
.list-table,
.binding-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.overview-tile {
  padding: 14px 16px;
}

.overview-tile small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.overview-tile strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.sidebar-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--panel-soft);
}

.sidebar-summary-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.sidebar-summary-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.sidebar-summary-item strong {
  display: block;
  font-size: 18px;
}

.panel-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: var(--shadow);
}

.panel-hero-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.panel-hero-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 720px;
}

.panel-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
}

.summary-block {
  padding: 14px;
}

.summary-action {
  width: 100%;
  min-height: 0;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.summary-action strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.summary-action.active {
  border-color: #7ca999;
  background: #f4faf7;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 95, 0.08);
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.media-preview-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.media-preview-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.media-preview-card--compact {
  gap: 8px;
}

.media-preview-card strong {
  font-size: 14px;
  line-height: 1.4;
}

.media-preview-card small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.media-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(228, 123, 73, 0.14);
  background: #fff;
}

.media-preview-thumb--compact {
  aspect-ratio: 4 / 3;
}

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

.customer-filters {
  margin-top: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.filter-chip strong {
  font-size: 12px;
}

.filter-chip.active {
  border-color: #7ca999;
  background: #f4faf7;
  color: #285f51;
}

.compact-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace {
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
}

.workspace.narrow-left {
  grid-template-columns: 300px minmax(0, 1fr);
}

.workspace.single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-workspace,
.list-pane,
.detail-pane {
  min-width: 0;
}

.list-table,
.binding-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.list-table-head,
.list-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.list-table-head {
  padding: 12px 14px;
  background: #f6f8fa;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.list-table-body {
  max-height: 620px;
  overflow: auto;
}

.list-table-row {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.list-table-row:first-child {
  border-top: 0;
}

.list-table-row:hover {
  background: #f8fbfc;
}

.list-table-row.active {
  background: #f4faf7;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 95, 0.08);
}

.list-table-main {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  min-height: 0;
}

.list-table-main strong {
  font-size: 14px;
  line-height: 1.45;
}

.list-table-main small,
.list-table-cell small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.list-table-cell {
  min-width: 0;
}

.table-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pager-info {
  color: var(--muted);
  font-size: 12px;
}

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

.pager-actions button {
  min-width: 40px;
  padding: 0 12px;
}

.pager-actions button.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #96baaf;
}

.list-stack,
.log-stack,
.simple-stack {
  display: grid;
  gap: 10px;
}

.list-toolbar,
.editor-toolbar,
.inline-actions,
.meta-row,
.stack-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.list-toolbar input,
.list-toolbar select,
.editor-toolbar input,
.editor-toolbar select {
  margin-top: 0;
}

.list-scroll,
.log-scroll {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.toolbar-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}

.media-audit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.media-audit-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.media-audit-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.media-audit-card strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.2;
}

.media-audit-note {
  margin-bottom: 14px;
}

.list-item {
  padding: 12px;
  cursor: pointer;
}

.list-item:hover {
  border-color: #a8bbc8;
}

.list-item.active {
  border-color: #7ca999;
  background: #f4faf7;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 95, 0.08);
}

.list-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.empty-box {
  padding: 20px;
  text-align: center;
}

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

.record-overview {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.record-overview strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.record-overview small {
  color: var(--muted);
  line-height: 1.5;
}

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

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 14px;
  margin-bottom: 14px;
}

.compact-heading {
  margin-bottom: 12px;
}

.compact-heading h2 {
  font-size: 15px;
}

.compact-heading p {
  font-size: 12px;
}

.full-span {
  grid-column: 1 / -1;
}

.config-editor,
.detail-stack,
.detail-grid,
.readonly-tree {
  display: grid;
  gap: 14px;
}

.config-group,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 14px;
}

.config-group.root-group,
.detail-card.root-group {
  padding: 0;
  border: 0;
  background: transparent;
}

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

.config-group-head strong {
  display: block;
  font-size: 14px;
}

.config-group-head small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

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

.config-array {
  display: grid;
  gap: 12px;
}

.config-array-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.config-array-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.config-leaf {
  display: block;
}

.config-leaf-title {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.config-leaf textarea {
  min-height: 96px;
}

.config-leaf-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.checkbox-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.checkbox-tile input {
  width: 18px;
  height: 18px;
  margin-top: 0;
}

.detail-item,
.status-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.detail-item small,
.status-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-item strong,
.status-item strong {
  display: block;
  line-height: 1.5;
}

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

.alert-list,
.trend-list,
.rank-list,
.binding-table {
  display: grid;
  gap: 10px;
}

.alert-item,
.trend-item,
.rank-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-soft);
}

.alert-item.high {
  border-color: #e8b4ad;
  background: var(--danger-soft);
}

.alert-item.medium {
  border-color: #eed6a8;
  background: var(--warning-soft);
}

.alert-item.low {
  border-color: #c5ddd6;
  background: var(--success-soft);
}

.trend-bar {
  height: 8px;
  background: #e8eef2;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.trend-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.binding-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.binding-row {
  display: grid;
  grid-template-columns: 160px 1.2fr 1.05fr 1.15fr;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.binding-row:first-child {
  border-top: 0;
  background: #f6f8fa;
  font-weight: 700;
}

.summary-block span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.object-storage-stat,
.object-storage-guide-item,
.object-storage-hint-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
}

.object-storage-stat small,
.object-storage-guide-item small,
.object-storage-hint-box small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.object-storage-stat strong,
.object-storage-guide-item strong,
.object-storage-hint-box strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.5;
}

.object-storage-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.media-library-overview,
.media-library-guide {
  margin-bottom: 14px;
}

.object-storage-hint-box {
  background: #fbfcfd;
}

.media-library-warning {
  background: linear-gradient(180deg, #fff9ee, #fff4e4);
  border-color: rgba(201, 133, 30, 0.28);
}

.object-storage-hint-box code,
.object-storage-guide-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 1440px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace,
  .workspace.narrow-left,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar-side,
  .page-tools {
    justify-items: start;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .metrics-grid,
  .summary-grid,
  .field-grid,
  .field-grid.three,
  .config-grid,
  .detail-grid,
  .status-grid,
  .split-row,
  .binding-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-heading,
  .editor-header,
  .config-group-head,
  .config-array-head {
    flex-direction: column;
  }
}
