.admin-page {
  min-height: 100vh;
  padding: 28px;
  background: #f8fafc;
  color: #172033;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.admin-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #dbe3ef;
}

.admin-kicker {
  display: block;
  color: #64748b;
  font-size: 22px;
  font-weight: 700;
}

.admin-title {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-subtitle {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 24px;
  line-height: 1.45;
}

.admin-tabs,
.admin-actions {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.admin-actions.compact {
  flex-wrap: wrap;
  overflow-x: visible;
}

.admin-button {
  min-width: 132px;
  height: 62px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font-size: 23px;
  font-weight: 700;
  line-height: 62px;
}

.admin-button.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.admin-button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-section {
  margin-top: 4px;
}

.admin-section-title {
  display: block;
  margin-bottom: 14px;
  color: #0f172a;
  font-size: 29px;
  font-weight: 800;
}

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

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

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-metric-grid.compact .admin-metric {
  min-height: 88px;
  padding: 14px;
}

.admin-metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.admin-metric.theme-template {
  cursor: pointer;
}

.admin-metric.theme-template.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #bfdbfe;
}

.admin-metric-label {
  display: block;
  color: #64748b;
  font-size: 21px;
}

.admin-metric-value {
  display: block;
  margin-top: 12px;
  color: #0f172a;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-row {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.admin-row.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.admin-row-main {
  display: block;
  color: #111827;
  font-size: 26px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-row-meta {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 21px;
  line-height: 1.45;
}

.admin-empty {
  padding: 32px 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 23px;
  line-height: 1.45;
}

.admin-input {
  width: 100%;
  height: 66px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 24px;
}

.admin-input.compact {
  margin-top: 14px;
  height: 58px;
  font-size: 22px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.admin-textarea {
  width: 100%;
  min-height: 220px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 23px;
  line-height: 1.45;
}

.admin-row-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}

.admin-mini-button {
  min-width: 112px;
  height: 54px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font-size: 21px;
  font-weight: 700;
  line-height: 54px;
}

.admin-mini-button.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.admin-mini-button.danger {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}

.admin-sub-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-sub-row {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.admin-error {
  display: block;
  margin-top: 12px;
  color: #be123c;
  font-size: 22px;
}

.theme-swatch-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.theme-swatch {
  width: 54px;
  height: 54px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.theme-preview-panel {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}

.theme-preview-banner {
  min-height: 134px;
  padding: 22px;
}

.theme-preview-title {
  display: block;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}

.theme-preview-subtitle {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
}

.theme-preview-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.theme-preview-pill {
  width: 88px;
  height: 34px;
  border-radius: 8px;
}

.break-line {
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
