/* ═══════════════════════════════════════════════════════════════════
   Email Studio – modern, dark-mode-first UI
   ═══════════════════════════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-elevated: #12181f;
  --surface: #1a222d;
  --surface-hover: #222b38;
  --border: #2a3544;
  --border-subtle: #1e2836;
  --text: #e8eef6;
  --text-secondary: #9aabbf;
  --text-muted: #6b7c91;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-muted: rgba(59, 130, 246, 0.15);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f0f3f7;
  --border: #d8dee8;
  --border-subtle: #e8ecf2;
  --text: #1a2332;
  --text-secondary: #4a5a70;
  --text-muted: #7a8b9f;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-muted: rgba(37, 99, 235, 0.1);
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.1);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar ─────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo {
  font-size: 1.6rem;
  line-height: 1;
}

.brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  background: var(--surface);
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.tab-icon {
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--surface-hover);
}

/* ── Panels ──────────────────────────────────────────────────── */
.panel {
  flex: 1;
  display: none;
  min-height: 0;
  overflow: hidden;
}

.panel.active {
  display: flex;
  flex-direction: column;
}

/* ── Generator layout ────────────────────────────────────────── */
.generator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.4fr);
  gap: 0;
  height: 100%;
  min-height: 0;
}

.chat-pane,
.preview-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}

.chat-pane {
  border-right: 1px solid var(--border);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
  gap: 0.75rem;
}

.pane-header h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pane-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Chat messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.message {
  max-width: 92%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.user {
  align-self: flex-end;
  background: var(--accent-muted);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text);
}

.message.assistant {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.message.assistant.system-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent;
  border-style: dashed;
}

.message pre {
  margin: 0.4rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  overflow-x: auto;
  max-height: 120px;
  opacity: 0.8;
}

/* Typing indicator */
.typing-indicator {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.typing-indicator.visible {
  display: flex;
}

.typing-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Chat input */
.chat-input-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

#user-input {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 140px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
}

#user-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

#user-input::placeholder {
  color: var(--text-muted);
}

/* Example chips */
.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.85rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

/* Preview pane */
.preview-tabs {
  display: flex;
  gap: 0.25rem;
}

.preview-tab {
  padding: 0.35rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.preview-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.preview-tab.active {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.preview-container {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #e5e7eb; /* email client chrome feel */
}

[data-theme="dark"] .preview-container {
  background: #1a1f26;
}

/* Subtle pulse while the LLM is streaming HTML */
.preview-container.is-streaming::after {
  content: "Streaming…";
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.45);
  pointer-events: none;
  animation: stream-pulse 1.2s ease-in-out infinite;
}

@keyframes stream-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.preview-frame-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  min-height: 0;
}

#email-preview,
#composer-preview-iframe {
  width: 100%;
  max-width: 620px;
  height: 100%;
  min-height: 400px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.source-editor-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.source-editor-wrap::before {
  content: "Editable HTML — changes update the Live Preview";
  display: block;
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

#html-source {
  flex: 1;
  width: 100%;
  border: none;
  resize: none;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}

#html-source:focus {
  outline: none;
}

#html-source:read-only {
  opacity: 0.92;
  cursor: wait;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
  pointer-events: none;
  background: var(--bg);
  z-index: 2;
}

.empty-state[hidden] {
  display: none !important;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.empty-state .muted {
  font-size: 0.85rem;
}

.compatibility-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 700;
}

/* ── Composer layout ─────────────────────────────────────────── */
.composer-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 1fr);
  height: 100%;
  min-height: 0;
}

.composer-form {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg);
}

.composer-form form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.composer-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
  position: relative;
}

.composer-preview-frame {
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

label .required {
  color: var(--error);
}

label .optional {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
  opacity: 0.8;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
}

#html-body {
  min-height: 180px;
}

.hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.body-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.body-mode-toggle .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.toggle-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.composer-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.send-status {
  margin: 0 1.25rem 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.send-status.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.send-status.error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 560;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
}

.btn-xs {
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────────── */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.app-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent);
}

.sep {
  opacity: 0.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .generator-layout,
  .composer-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .chat-pane,
  .composer-form {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 50vh;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .tabs {
    margin-left: 0;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .brand .tagline {
    display: none;
  }
}

@media (max-width: 560px) {
  .tab span:not(.tab-icon) {
    display: none;
  }

  .pane-actions .btn span {
    display: none;
  }
}

/* ── Auth ────────────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(59, 130, 246, 0.16), transparent 50%),
    var(--bg);
}

.auth-shell {
  width: 100%;
  max-width: 440px;
}

.terms-shell {
  max-width: 640px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
}

.auth-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.auth-lead {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-card .field {
  margin-bottom: 0.85rem;
}

.auth-alert {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.auth-alert.error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.4rem 0 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
}

.terms-row input {
  margin-top: 0.2rem;
  width: auto;
  accent-color: var(--accent);
}

.terms-row a {
  color: var(--accent);
}

.auth-submit {
  width: 100%;
  padding: 0.7rem 1rem;
}

.auth-foot {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terms-card h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.terms-card p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.terms-placeholder {
  background: var(--accent-muted);
  border: 1px dashed var(--accent);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.terms-back a {
  color: var(--accent);
  text-decoration: none;
}

.user-chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

/* ── Admin ───────────────────────────────────────────────────── */
.admin-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 0;
}

.admin-main,
.admin-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-side {
  border-left: 1px solid var(--border);
  background: var(--bg-elevated);
}

.admin-filters {
  align-items: center;
}

.admin-filters input,
.admin-filters select {
  width: auto;
  min-width: 160px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.admin-banner {
  margin: 0.75rem 1rem 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.table-wrap {
  overflow: auto;
  padding: 0.5rem 1rem 1.25rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.acct-name {
  font-weight: 600;
}

.acct-email,
.acct-ip,
.acct-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.acct-notes {
  margin-top: 0.2rem;
  font-style: italic;
}

.pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.role-admin {
  background: var(--accent-muted);
  color: var(--accent);
}

.role-user {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.status-active {
  background: var(--success-bg);
  color: var(--success);
}

.status-suspended {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
}

.status-banned,
.status-deleted {
  background: var(--error-bg);
  color: var(--error);
}

.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.btn-danger {
  color: var(--error) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.audit-list {
  list-style: none;
  overflow-y: auto;
  padding: 0.85rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-action {
  font-size: 0.84rem;
}

.audit-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-side {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 40vh;
  }
}
