/* ==========================================================================
   gitpush design system — vedant.me / engram.vedant.me theme (D:\portfolio-revamp)
   Warm paper (#f6f1e7), one rust accent (#a74c22 / #e38558), serif headings,
   soft 1px warm-bordered cards, dark charcoal (#17171a) dark mode.
   Hand-written CSS, zero build step.
   ========================================================================== */

/* ── 1. Theme Tokens: Light Mode (Default — Warm Paper & Rust) ── */
:root,
[data-theme="light"] {
  --bg:                   #f6f1e7;
  --surface:              #fffdf8;
  --surface-2:            #efe8da;
  --border:               #e2d8c6;
  --text:                 #2b2723;
  --muted:                #6b6256;
  --accent:               #a74c22;
  --accent-text:          #ffffff;
  --ok:                   #3d7a4f;
  --warning:              #b76b1e;
  --danger:               #b83a2e;
  --code-bg:              #2b2723;
  --code-fg:              #f6f1e7;
  --shadow:               0 1px 2px rgb(60 40 20 / 0.06), 0 4px 16px rgb(60 40 20 / 0.06);
  --shadow-sm:            0 1px 2px rgb(60 40 20 / 0.05);
  --shadow-lg:            0 4px 20px rgb(60 40 20 / 0.12);
  --radius:               8px;
  --radius-lg:            10px;

  --font:                 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:                "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, serif;
  --mono:                 ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  /* Mapped semantic aliases for components */
  --color-bg:             var(--bg);
  --color-bg-subtle:      var(--surface-2);
  --color-surface:        var(--surface);
  --color-surface-muted:  var(--surface-2);
  --color-border:         var(--border);
  --color-border-hover:   color-mix(in oklab, var(--accent) 45%, var(--border));
  --color-text:           var(--text);
  --color-text-muted:     var(--muted);
  --color-primary:        var(--accent);
  --color-primary-fg:     var(--accent-text);
  --color-primary-hover:  var(--accent);
  --color-accent:         var(--accent);
  --color-ring:           var(--accent);
  --color-success:        var(--ok);
  --color-warning:        var(--warning);
  --color-danger:         var(--danger);

  --color-badge-deployed: var(--ok);
  --color-badge-building: var(--accent);
  --color-badge-failed:   var(--danger);
  --color-badge-sleeping: var(--muted);
  --color-badge-queued:   var(--muted);

  color-scheme: light;
}

/* ── Dark Mode (@media prefers-color-scheme: dark & [data-theme="dark"]) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:                   #17171a;
    --surface:              #202024;
    --surface-2:            #2a2a30;
    --border:               #34343b;
    --text:                 #e7e4de;
    --muted:                #9a958c;
    --accent:               #e38558;
    --accent-text:          #1b1b1b;
    --ok:                   #7cc28f;
    --warning:              #e5a952;
    --danger:               #f07a6c;
    --code-bg:              #111113;
    --code-fg:              #e7e4de;
    --shadow:               0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.3);
    --shadow-sm:            0 1px 2px rgb(0 0 0 / 0.25);
    --shadow-lg:            0 8px 24px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:                   #17171a;
  --surface:              #202024;
  --surface-2:            #2a2a30;
  --border:               #34343b;
  --text:                 #e7e4de;
  --muted:                #9a958c;
  --accent:               #e38558;
  --accent-text:          #1b1b1b;
  --ok:                   #7cc28f;
  --warning:              #e5a952;
  --danger:               #f07a6c;
  --code-bg:              #111113;
  --code-fg:              #e7e4de;
  --shadow:               0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.3);
  --shadow-sm:            0 1px 2px rgb(0 0 0 / 0.25);
  --shadow-lg:            0 8px 24px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in oklab, var(--accent) 28%, transparent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover {
  color: var(--accent);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.mono, pre, code {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

:not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--text);
}

/* ── Typography Scale (Nothing below 12px per DESIGN.md) ── */
.text-xl       { font-family: var(--serif); font-size: 1.4rem;   font-weight: 600; line-height: 1.3; }
.text-lg       { font-family: var(--serif); font-size: 1.2rem;   font-weight: 600; line-height: 1.35; }
.text-base     { font-size: 1rem;     font-weight: 400; line-height: 1.6; }
.text-sm       { font-size: 0.92rem;  font-weight: 400; line-height: 1.5; }
.text-xs       { font-size: 0.82rem;  font-weight: 500; line-height: 1.45; }
.text-muted    { color: var(--muted); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ── Layout: App Shell & Sidebar ── */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  user-select: none;
}

.sidebar-header {
  height: 60px;
  padding: 0 1.15rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-slash {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
}

.sidebar-nav {
  list-style: none;
  padding: 0.75rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-section {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 1rem 0.6rem 0.35rem;
}

.sidebar-section:first-child {
  padding-top: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.nav-icon,
.sidebar-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  flex-shrink: 0;
  color: currentColor;
}

.sidebar-link:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.sidebar-link:hover .nav-icon,
.sidebar-link:hover svg {
  opacity: 1;
  color: var(--accent);
}

.sidebar-link.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
}

.sidebar-link.active .nav-icon,
.sidebar-link.active svg {
  opacity: 1;
  color: var(--accent);
}

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 45%, var(--surface));
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.main-col {
  flex: 1;
  margin-left: 252px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: var(--bg);
}

@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .main-col {
    margin-left: 0;
  }
}

/* ── Topbar, Breadcrumbs & Tabs ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 60px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.topbar-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--border);
  user-select: none;
}

.breadcrumb-current {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, var(--bg));
  overflow-x: auto;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
}

.tab-link:hover {
  color: var(--text);
  text-decoration: none;
}

.tab-link.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.content-container {
  padding: 1.75rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Cards & Project Cards (vedant.me / engram soft warm cards) ── */
.card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease;
}

.card:hover,
.project-card:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
}

.card-header {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

a.card-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.card-subtitle,
.card-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.card-body {
  padding: 1.25rem 1.35rem;
  flex: 1;
}

.card-footer {
  padding: 0.8rem 1.35rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 55%, var(--surface));
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-value {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.2rem;
}

.quota-bar {
  width: 100%;
  height: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.65rem;
}

.quota-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 9999px;
  transition: width 0.25s ease;
}

/* ── Production Hero Card ── */
.production-hero {
  border-left: 3px solid var(--accent);
}

/* ── Two-Column Settings Layout ── */
.settings-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: sticky;
  top: 76px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

@media (max-width: 768px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .settings-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
}

/* ── Controls & Buttons (from D:\portfolio-revamp\src\app\globals.css) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.35rem;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, filter 120ms ease, border-color 120ms ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--accent-text);
  filter: brightness(1.08);
}

.btn-secondary,
.btn-outline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--surface-2);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}

.btn-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-sm {
  height: 1.95rem;
  padding: 0 0.7rem;
  font-size: 0.82rem;
}

/* ── Tags & Pills (.env-pill, .commit-pill, .branch-pill) ── */
.env-pill,
.commit-pill,
.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: nowrap;
}

/* ── Status Badges ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-deployed,
.badge-running {
  background: color-mix(in oklab, var(--ok) 15%, transparent);
  border-color: color-mix(in oklab, var(--ok) 35%, var(--border));
  color: var(--ok);
}

.badge-building {
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  color: var(--accent);
}

.badge-building::before {
  animation: pulse-dot 1.4s infinite ease-in-out;
}

.badge-failed {
  background: color-mix(in oklab, var(--danger) 15%, transparent);
  border-color: color-mix(in oklab, var(--danger) 35%, var(--border));
  color: var(--danger);
}

.badge-sleeping,
.badge-stopped,
.badge-queued {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.filter-pill:hover {
  background: var(--surface-2);
  color: var(--text);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* ── Inline Code Snippet ── */
.code-snippet {
  display: block;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--text);
  overflow-x: auto;
}

/* ── Tables (vedant.me clean ruled tables) ── */
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}

.table th {
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 50%, var(--surface));
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 120ms ease;
}

.table tbody tr:hover {
  background: color-mix(in oklab, var(--surface-2) 45%, transparent);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Forms ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.input,
.select,
select.input,
textarea.input {
  width: 100%;
  height: 2.35rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 120ms ease;
}

textarea.input {
  height: auto;
  padding: 0.5rem 0.75rem;
}

.input::placeholder,
textarea.input::placeholder {
  color: var(--muted);
}

.input:focus,
.select:focus,
select.input:focus,
textarea.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ── Callouts / Flash Messages (from D:\portfolio-revamp .callout) ── */
.flash {
  margin: 1rem 1.75rem 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.flash-success { border-left-color: var(--ok); }
.flash-error   { border-left-color: var(--danger); }
.flash-warning { border-left-color: var(--warning); }
.flash-info    { border-left-color: var(--accent); }

.flash-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius);
}

.flash-close:hover {
  color: var(--text);
  background: var(--surface);
}

/* ── Modal Dialogs ── */
.modal {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  color: var(--text);
  max-width: 480px;
  width: 100%;
  margin: auto;
}

.modal::backdrop {
  background: rgb(43 39 35 / 0.45);
  backdrop-filter: blur(3px);
}

.modal-header {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.25rem 1.35rem;
}

.modal-footer {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ── Terminal Window & Build Log Block (--code-bg: #2b2723 / #111113) ── */
.terminal-window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  color: var(--code-fg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-header {
  height: 36px;
  padding: 0 1rem;
  background: color-mix(in oklab, var(--code-bg) 88%, #000000);
  border-bottom: 1px solid color-mix(in oklab, var(--code-fg) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: color-mix(in oklab, var(--code-fg) 70%, transparent);
}

.terminal-header .text-muted {
  color: color-mix(in oklab, var(--code-fg) 70%, transparent);
}

.log-block {
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.65;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-window .log-block {
  border: none;
  border-radius: 0;
}

/* ── Auth Shell (Login / Setup / Invite Signup) ── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
