/* ============================================================
   Chinaski Manager — Design System
   Font: DM Sans (UI) + IBM Plex Mono (code/data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --c-primary:   #0f172a;
  --c-accent:    #3b82f6;
  --c-accent-d:  #2563eb;
  --c-success:   #16a34a;
  --c-warn:      #d97706;
  --c-danger:    #dc2626;
  --c-bg:        #f1f5f9;
  --c-surface:   #ffffff;
  --c-border:    #e2e8f0;
  --c-border-md: #cbd5e1;
  --c-text:      #0f172a;
  --c-muted:     #64748b;
  --c-sidebar:   #1e293b;
  --c-sidebar-hi:#334155;
  --c-sidebar-t: #94a3b8;
  --c-sidebar-a: #f1f5f9;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  --sh-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --sh-md: 0 4px 6px -1px rgb(0 0 0 / .07), 0 2px 4px -1px rgb(0 0 0 / .05);

  --sidebar-w: 240px;
  --topbar-h:  56px;

  --font-ui:   "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { font-size: 14px; }

body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── App Shell ────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  grid-row: 1 / -1;
  background: var(--c-sidebar);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: var(--topbar-h);
  flex-shrink: 0;
  border-bottom: 1px solid rgb(255 255 255 / .06);
  text-decoration: none;
}

.sidebar-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-mono);
  letter-spacing: -.5px;
}

.sidebar-brand-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
}

.sidebar-brand-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--c-sidebar-t);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-section {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-sidebar-t);
}

.sidebar-section:first-child { padding-top: 8px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-sidebar-t);
  text-decoration: none;
  transition: background .12s, color .12s;
  position: relative;
}

.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }

.sidebar-link:hover {
  background: var(--c-sidebar-hi);
  color: #fff;
  text-decoration: none;
}

.sidebar-link:hover svg { opacity: 1; }

.sidebar-link.active {
  background: rgb(59 130 246 / .15);
  color: #93c5fd;
  font-weight: 500;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--c-accent);
  border-radius: 0 2px 2px 0;
}

.sidebar-link.active svg { opacity: 1; }

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid rgb(255 255 255 / .06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.sidebar-user-name {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 10px;
  color: var(--c-sidebar-t);
}

.sidebar-user-logout {
  margin-left: auto;
  font-size: 11px;
  color: var(--c-sidebar-t);
  text-decoration: none;
}

.sidebar-user-logout:hover { color: var(--c-danger); text-decoration: none; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  box-shadow: var(--sh-sm);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  flex: 1;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ── Main Content ─────────────────────────────────────────── */
.main {
  padding: 28px 32px;
  min-width: 0;
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header-left h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.page-header-left .breadcrumb {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 2px;
}

.page-header-left .breadcrumb a {
  color: var(--c-muted);
}

.page-header-left .breadcrumb a:hover { color: var(--c-accent); }

.page-header-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* shorthand for simple pages that don't use page-header-left/right */
.page-header h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.page-header p.muted { font-size: 13px; color: var(--c-muted); margin-top: 2px; }

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.flash-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.flash-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.flash-warn    { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.flash-token {
  background: #fffbeb;
  color: #78350f;
  border-color: #fcd34d;
  flex-direction: column;
  gap: 6px;
}

.flash-token code {
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  background: #fef3c7;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  display: block;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h2 {
  font-size: 14px;
  font-weight: 600;
}

.card-body { padding: 20px; }

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--c-border);
  background: #fafbfc;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-sm);
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--c-text);
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 6px;
  font-weight: 500;
}

.stat-card.accent .stat-value { color: var(--c-accent); }
.stat-card.success .stat-value { color: var(--c-success); }
.stat-card.warn .stat-value { color: var(--c-warn); }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8fafc;
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafbfc; }

.data-table .col-actions {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}

.data-table .col-mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--c-muted);
}

.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  font-family: var(--font-mono);
}

.badge-running     { background: #dcfce7; color: #15803d; }
.badge-stopped     { background: #f1f5f9; color: #475569; }
.badge-failed      { background: #fef2f2; color: #b91c1c; }
.badge-provisioning{ background: #eff6ff; color: #1d4ed8; }
.badge-deploying   { background: #fef3c7; color: #92400e; }
.badge-active      { background: #dcfce7; color: #15803d; }
.badge-inactive    { background: #f1f5f9; color: #64748b; }
.badge-ok          { background: #dcfce7; color: #15803d; }
.badge-warn        { background: #fef3c7; color: #92400e; }
.badge-err, .badge-error { background: #fef2f2; color: #b91c1c; }
.badge-superadmin  { background: #ede9fe; color: #6d28d9; }
.badge-admin       { background: #dbeafe; color: #1d4ed8; }
.badge-user        { background: #f1f5f9; color: #475569; }

/* Status dot */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.running {
  background: var(--c-success);
  box-shadow: 0 0 0 0 rgb(22 163 74 / .4);
  animation: pulse-green 2s infinite;
}

.status-dot.stopped     { background: #94a3b8; }
.status-dot.failed      { background: var(--c-danger); }
.status-dot.provisioning{ background: var(--c-accent); }
.status-dot.deploying   { background: var(--c-warn); }

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgb(22 163 74 / .4); }
  70%  { box-shadow: 0 0 0 6px rgb(22 163 74 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(22 163 74 / 0); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover { background: var(--c-bg); text-decoration: none; border-color: var(--c-border-md); }
.btn:active { transform: translateY(1px); }

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

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

.btn-danger {
  background: #fef2f2;
  color: var(--c-danger);
  border-color: #fecaca;
}

.btn-danger:hover { background: #fee2e2; border-color: #fca5a5; color: var(--c-danger); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--c-muted);
}

.btn-ghost:hover { background: var(--c-bg); border-color: var(--c-border); color: var(--c-text); }

.btn-sm { padding: 4px 10px; font-size: 12px; }

.btn-block { display: flex; width: 100%; justify-content: center; }

/* Inline action links (tables) */
.act {
  font-size: 12px;
  color: var(--c-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-ui);
  text-decoration: none;
  margin-left: 8px;
}

.act:first-child { margin-left: 0; }
.act:hover { color: var(--c-accent); }
.act.danger:hover { color: var(--c-danger); }

/* ── Forms ────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 18px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: .01em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea,
select {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-md);
  border-radius: var(--r-md);
  padding: 8px 11px;
  transition: border-color .12s, box-shadow .12s;
  line-height: 1.4;
  width: 100%;
}

input[readonly], input[disabled] {
  background: var(--c-bg);
  color: var(--c-muted);
  cursor: not-allowed;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgb(59 130 246 / .12);
}

.field-hint {
  font-size: 11px;
  color: var(--c-muted);
  line-height: 1.4;
}

.field-error { font-size: 11px; color: var(--c-danger); }

.form-section {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.form-section legend {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
  padding: 0 4px;
}

.form-actions { display: flex; gap: 8px; margin-top: 4px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.checkbox-row input[type="checkbox"] { width: auto; cursor: pointer; }

/* ── Log Viewer ───────────────────────────────────────────── */
.log-viewer {
  background: #0d1117;
  color: #c9d1d9;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--r-lg);
  overflow: auto;
  max-height: 600px;
  border: 1px solid #30363d;
}

.log-viewer pre {
  padding: 20px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 100%;
}

.log-viewer .log-line-err { color: #ff7b72; }
.log-viewer .log-line-ok  { color: #7ee787; }
.log-viewer .log-line-warn{ color: #e3b341; }
.log-viewer .log-empty    { color: #484f58; font-style: italic; }

/* ── Tabs (CSS-only) ──────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--c-border); margin-bottom: 20px; }

.tab-btn {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-ui);
  transition: color .12s;
}

.tab-btn:hover { color: var(--c-text); }
.tab-btn.active { color: var(--c-accent); border-bottom-color: var(--c-accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Collapsible Details ──────────────────────────────────── */
details.collapsible {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}

details.collapsible summary {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #f8fafc;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

details.collapsible summary::after {
  content: '▸';
  font-size: 10px;
  color: var(--c-muted);
  transition: transform .15s;
}

details.collapsible[open] summary::after { transform: rotate(90deg); }

details.collapsible .details-body { padding: 16px; }

/* ── Dashboard quick-action strip ────────────────────────── */
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  padding: 14px 20px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  align-items: center;
}

.pagination a, .pagination strong {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  text-decoration: none;
}

.pagination a:hover { background: var(--c-bg); color: var(--c-text); }
.pagination strong  { background: var(--c-accent); color: #fff; }

/* ── Auth (bare) layout ───────────────────────────────────── */
body.auth-page {
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-wrap {
  width: 100%;
  max-width: 380px;
  padding: 24px 16px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.auth-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}

.auth-logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--c-muted);
  letter-spacing: .04em;
}

.auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-md);
}

.auth-card h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.auth-card .subtitle {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 24px;
}

.auth-card .form-grid { gap: 14px; }
.auth-card .btn-block { margin-top: 4px; padding: 10px; font-size: 14px; }

.auth-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 20px 0;
}

/* ── Utility ──────────────────────────────────────────────── */
.muted   { color: var(--c-muted); }
.mono    { font-family: var(--font-mono); font-size: 12px; }
.mt-0    { margin-top: 0; }
.mt-1    { margin-top: 8px; }
.mt-2    { margin-top: 16px; }
.mb-2    { margin-bottom: 16px; }
.mb-3    { margin-bottom: 24px; }
.gap-2   { gap: 8px; }
.flex    { display: flex; }
.flex-col{ flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full  { width: 100%; }
.w-32    { width: 32px; }
.text-sm { font-size: 12px; }
.font-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.m-0 { margin: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-16 { margin-top: 16px !important; }
.truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form-inline  { display: inline; }
.form-nomargin{ margin: 0; }
.cursor-pointer { cursor: pointer; }
.no-underline { text-decoration: none; }

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.pagination { margin-top: 12px; }

/* (#3806) Utility classes extracted from inline styles */
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.max-w-320 { max-width: 320px; }
.max-w-480 { max-width: 480px; }
.max-w-560 { max-width: 560px; }
.gap-24 { gap: 24px; }
.gap-8 { gap: 8px; }
.ml-auto { margin-left: auto; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.grid-dashboard { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.status-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.status-strip-label {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.log-viewer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.edit-row { display: none; background: #fafbfc; }
.pw-row   { display: none; background: #fffbeb; }
.form-actions-inline { margin: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    grid-row: auto;
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar-nav { display: flex; flex-direction: row; padding: 0; }
  .sidebar-section { display: none; }
  .sidebar-link { padding: 12px 14px; flex-direction: column; gap: 2px; font-size: 10px; }
  .sidebar-footer { display: none; }
  .main { padding: 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
