/* ═══════════════════════════════════════════════════════
   AI-GOR Platform — TanfoglioNET Design System
   Palette: grigio antracite + verde TNET
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
  /* ── Colori TanfoglioNET ── */
  --bg:          #2E2E2E;
  --surface:     #3A3A3A;
  --surface2:    #4F4F4F;
  --border:      #616161;
  --border2:     #757575;
  --accent:      #4DB860;
  --accent-dark: #3A9149;
  --accent-dim:  rgba(77,184,96,.10);
  --accent-dim2: rgba(77,184,96,.18);
  --text:        #FFFFFF;
  --muted:       #CCCCCC;
  --muted2:      #999999;
  --ok:          #4DB860;
  --err:         #f87171;
  --warn:        #fbbf24;
  --info:        #60a5fa;
  --vision:      #c084fc;

  /* ── Layout ── */
  --sidebar-w:   240px;
  --header-h:    56px;
  --radius:      8px;
  --radius-lg:   12px;
}

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

html, body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  font-size: 14px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  min-height: 100vh;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.app-header {
  grid-column: 1 / -1;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  background: var(--surface2);
  border-radius: 7px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-t {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.logo-net {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.header-app-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted2);
  letter-spacing: 0.08em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.user-badge {
  background: var(--surface2);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border2);
}

.header-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.header-logout:hover { border-color: var(--err); color: var(--err); }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.app-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0;
  overflow-y: auto;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
}

.nav-section {
  margin-bottom: 0.25rem;
}

.nav-section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.25rem 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all .15s;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface2);
}

.nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
  font-weight: 500;
}

.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted2);
  line-height: 1.8;
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.app-main {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h));
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.page-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ══════════════════════════════════════
   STAT PILLS
══════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.stat-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  font-family: 'Barlow', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: #0a1a0d;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover { color: var(--text); border-color: var(--border2); }

.btn-danger {
  background: rgba(248,113,113,.1);
  color: var(--err);
  border: 1px solid rgba(248,113,113,.25);
}
.btn-danger:hover { background: rgba(248,113,113,.18); }

.btn-info {
  background: rgba(96,165,250,.1);
  color: var(--info);
  border: 1px solid rgba(96,165,250,.25);
}
.btn-info:hover { background: rgba(96,165,250,.18); }

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
}

.btn-block { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Barlow', sans-serif;
  transition: border-color .15s;
  outline: none;
}

.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--muted2); }

select.form-control option { background: var(--surface2); }

.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.form-section-title {
  font-size: 0.78rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.input-group .form-control { flex: 1; }

/* ══════════════════════════════════════
   TABLES
══════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

thead th {
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-size: 0.68rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:hover { background: var(--surface2); }
tbody tr:last-child { border-bottom: none; }
td { padding: 0.7rem 0.9rem; vertical-align: middle; }

/* ══════════════════════════════════════
   BADGES & STATUS
══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
}

.badge-ok      { background: rgba(77,184,96,.12);  color: var(--ok); }
.badge-err     { background: rgba(248,113,113,.12); color: var(--err); }
.badge-warn    { background: rgba(251,191,36,.12);  color: var(--warn); }
.badge-info    { background: rgba(96,165,250,.12);  color: var(--info); }
.badge-muted   { background: rgba(153,153,153,.12); color: var(--muted); }
.badge-vision  { background: rgba(192,132,252,.12); color: var(--vision); }

.status-raw        { background: rgba(153,153,153,.12); color: var(--muted2); }
.status-washing    { background: rgba(251,191,36,.12);  color: var(--warn); }
.status-washed     { background: rgba(96,165,250,.12);  color: var(--info); }
.status-publishing { background: rgba(251,191,36,.12);  color: var(--warn); }
.status-published  { background: rgba(77,184,96,.12);   color: var(--ok); }
.status-error      { background: rgba(248,113,113,.12); color: var(--err); }

/* ══════════════════════════════════════
   DROP ZONE
══════════════════════════════════════ */
.drop-zone {
  position: relative;
  border: 2px dashed var(--border2);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .2s, background .2s;
  overflow: hidden;
}

.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(77,184,96,.05) 0%, transparent 70%);
  pointer-events: none;
}

.drop-zone:hover,
.drop-zone.over { border-color: var(--accent); background: var(--accent-dim); }

.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.dz-icon  { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; transition: transform .3s; }
.drop-zone:hover .dz-icon { transform: scale(1.08); }
.dz-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.dz-hint  { font-size: 0.78rem; color: var(--muted); }

/* ══════════════════════════════════════
   CHUNK CARDS
══════════════════════════════════════ */
.chunk-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.chunk-list::-webkit-scrollbar { width: 4px; }
.chunk-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.chunk-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s;
}

.chunk-card:hover { border-color: var(--border2); }
.chunk-card.selected { border-color: var(--accent); background: var(--accent-dim); }

.chunk-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0.85rem;
}

.chunk-check {
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  transition: all .15s;
}

.chunk-card.selected .chunk-check { background: var(--accent); border-color: var(--accent); color: #0a1a0d; }

.chunk-num     { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--muted2); white-space: nowrap; }
.chunk-preview { flex: 1; font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chunk-card.selected .chunk-preview { color: var(--text); }
.chunk-meta    { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--muted2); white-space: nowrap; }
.expand-btn    { background: none; border: none; cursor: pointer; color: var(--muted2); font-size: 0.68rem; font-family: 'IBM Plex Mono', monospace; flex-shrink: 0; transition: color .1s; }
.expand-btn:hover { color: var(--text); }

.chunk-body { display: none; padding: 0 0.85rem 0.65rem; border-top: 1px solid var(--border); padding-top: 0.65rem; }
.chunk-card.open .chunk-body { display: block; }
.chunk-text { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: #b0c8b5; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow-y: auto; }
.chunk-text::-webkit-scrollbar { width: 3px; }
.chunk-text::-webkit-scrollbar-thumb { background: var(--border2); }
.chunk-text-edit { width: 100%; min-height: 120px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; padding: 0.5rem; resize: vertical; line-height: 1.6; }
.chunk-text-edit:focus { border-color: var(--accent); outline: none; }

/* ══════════════════════════════════════
   CHAT
══════════════════════════════════════ */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h) - 4rem);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.msg { display: flex; gap: 10px; max-width: 85%; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-assistant { align-self: flex-start; }

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.msg-user .msg-avatar     { background: var(--accent); color: #0a1a0d; }
.msg-assistant .msg-avatar { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }

.msg-bubble {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
}

.msg-user .msg-bubble { background: var(--accent); color: #0a1a0d; border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg); }
.msg-assistant .msg-bubble { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg); color: var(--text); }

.msg-time { font-size: 0.65rem; color: var(--muted2); margin-top: 3px; text-align: right; }

.chat-input-wrap {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  padding: 0.65rem 0.9rem;
  resize: none;
  outline: none;
  min-height: 44px;
  max-height: 120px;
  transition: border-color .15s;
}

.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--muted2); }

/* typing indicator */
.typing-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing .8s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,80%,100%{transform:scale(0.8);opacity:.4} 40%{transform:scale(1.1);opacity:1} }

/* ══════════════════════════════════════
   SPINNER / PROGRESS
══════════════════════════════════════ */
.spin {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(77,184,96,.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar { background: var(--surface2); border-radius: 4px; height: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 4px; transition: width .3s; }
.progress-indeterminate { width: 30%; animation: indeterminate 1.3s ease-in-out infinite; }
@keyframes indeterminate { 0%{transform:translateX(-100%)} 100%{transform:translateX(400%)} }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
#toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  transform: translateY(60px); opacity: 0;
  transition: all .25s;
  max-width: 300px;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.ok   { border-left: 3px solid var(--ok); }
#toast.err  { border-left: 3px solid var(--err); }
#toast.warn { border-left: 3px solid var(--warn); }

/* ══════════════════════════════════════
   MISC
══════════════════════════════════════ */
.mono { font-family: 'IBM Plex Mono', monospace; }
.text-muted  { color: var(--muted); }
.text-muted2 { color: var(--muted2); }
.text-accent { color: var(--accent); }
.text-ok     { color: var(--ok); }
.text-err    { color: var(--err); }
.text-warn   { color: var(--warn); }

.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

.empty-state { text-align: center; padding: 3rem 2rem; color: var(--muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: .5; display: block; }
.empty-state p { font-size: 0.85rem; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.alert-ok   { background: rgba(77,184,96,.1);   border: 1px solid rgba(77,184,96,.3);  color: #86efac; }
.alert-err  { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; }
.alert-warn { background: rgba(251,191,36,.1);  border: 1px solid rgba(251,191,36,.3);  color: #fde68a; }
.alert-info { background: rgba(96,165,250,.1);  border: 1px solid rgba(96,165,250,.3);  color: #bfdbfe; }

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.flex-center  { display: flex; align-items: center; gap: 0.5rem; }

.steps-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.step-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); transition: color .2s; }
.step-item.active { color: var(--text); font-weight: 500; }
.step-item.done   { color: var(--ok); }
.step-num { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 600; border: 1px solid var(--border2); font-family: 'IBM Plex Mono', monospace; flex-shrink: 0; transition: all .2s; }
.step-item.active .step-num { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.step-item.done   .step-num { border-color: var(--ok); background: rgba(77,184,96,.1); color: var(--ok); }
.step-sep { width: 32px; height: 1px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

/* Settings test button result */
.test-result { font-size: 0.78rem; margin-top: 4px; }
.test-ok  { color: var(--ok); }
.test-err { color: var(--err); }

/* Password reveal */
.pwd-wrap { position: relative; }
.pwd-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted2); font-size: 0.9rem; }

/* Workspace grid */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 0.5rem; }
.ws-radio { display: none; }
.ws-card { border: 1px solid var(--border2); border-radius: var(--radius); padding: 0.7rem 0.9rem; cursor: pointer; background: var(--surface2); transition: all .15s; font-size: 0.82rem; }
.ws-radio:checked + .ws-card { border-color: var(--accent); background: var(--accent-dim); }
.ws-name { font-weight: 500; }
.ws-slug { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--muted2); }

/* Login page */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 2rem; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-t   { font-size: 2rem; }
.login-logo .logo-net { font-size: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
