/* ═══════════════════════════════════════════════════════════════
   APPLE TREE DASHBOARD — Complete Stylesheet
   Theme: Orchard dark sidebar · green accent · warm typography
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── Root tokens ─────────────────────────────────────────────── */
:root {
  /* Orchard palette */
  --forest:       #0f1f0f;
  --forest-mid:   #162416;
  --forest-edge:  #1e341e;
  --orchard:      #2d5a2d;
  --leaf:         #3d8b40;
  --apple:        #4caf50;
  --apple-light:  #81c784;
  --apple-pale:   #e8f5e8;

  --harvest:      #ff8f00;
  --harvest-pale: #fff3e0;
  --red-apple:    #e53935;
  --red-pale:     #ffebee;
  --worm:         #795548;

  /* UI neutrals */
  --surface:      #ffffff;
  --surface-2:    #f7faf7;
  --surface-3:    #eef4ee;
  --border:       #d4e7d4;
  --border-light: #e8f2e8;
  --text-primary: #1a2e1a;
  --text-mid:     #3a5a3a;
  --text-soft:    #6b8f6b;
  --text-faint:   #9eb89e;

  /* Type */
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Fira Code', monospace;

  /* Layout */
  --sidebar-w:    240px;
  --topbar-h:     56px;
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-md:    0 4px 24px rgba(0,0,0,.12);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--surface-2);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--leaf); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Shell ───────────────────────────────────────────────────── */
.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--forest);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #e8f5e8;
  letter-spacing: -.2px;
}
.logo-by {
  font-size: 10px;
  color: #7ab87a;
  letter-spacing: .04em;
}

/* Sidebar groups */
.sidebar-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4a7a4a;
  padding: 16px 16px 6px;
}

/* Project buttons */
.sidebar-project {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 14px;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.sidebar-project:hover { background: rgba(255,255,255,.05); }
.sidebar-project.is-active { background: rgba(76,175,80,.15); }

.proj-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-running { background: var(--harvest); box-shadow: 0 0 5px var(--harvest); animation: pulse 1.5s infinite; }
.dot-done    { background: var(--apple); }
.dot-active  { background: var(--apple-light); }
.dot-idle    { background: #3a5a3a; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.proj-name {
  font-size: 13.5px;
  color: #c8e6c8;
  font-weight: 400;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-project.is-active .proj-name { color: #e8f5e8; font-weight: 500; }
.proj-badge {
  background: var(--harvest);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 6px;
}

/* Plant a tree */
.sidebar-plant {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #5a9a5a;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color .15s;
}
.sidebar-plant:hover { color: var(--apple); }

.sidebar-spacer { flex: 1; }

/* Nav links */
.sidebar-nav-link {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: #7ab87a;
  text-decoration: none;
  transition: color .15s, background .15s;
  border-radius: 0;
}
.sidebar-nav-link:hover { color: #c8e6c8; background: rgba(255,255,255,.05); }
.sidebar-nav-link.active { color: #e8f5e8; }

/* Footer */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-email { font-size: 11px; color: #5a8a5a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-signout {
  font-size: 12px;
  color: #5a8a5a;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  text-decoration: none;
  transition: color .15s;
}
.footer-signout:hover { color: var(--apple-light); }

/* ── Main area ───────────────────────────────────────────────── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  gap: 12px;
}
.topbar-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar-project-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.topbar-meta {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--apple);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.topbar-pick-btn:hover { background: var(--leaf); text-decoration: none; }

/* Main content */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px;
}

/* ── Page layouts ────────────────────────────────────────────── */
.page { max-width: 860px; }
.page--narrow { max-width: 620px; }
.page-sub { color: var(--text-soft); font-size: 14px; margin: 4px 0 24px; }

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ── Stat cards ──────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-card--green { border-color: #b2dfb2; background: #f1fbf1; }
.stat-card--amber { border-color: #ffe0b2; background: #fff8f0; }
.stat-label  { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px; }
.stat-number { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.stat-sub    { font-size: 11px; color: var(--text-faint); }

/* ── Section bar ─────────────────────────────────────────────── */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Job list ────────────────────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 2px; }
.job-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.job-row:hover { border-color: var(--apple); box-shadow: 0 0 0 3px rgba(76,175,80,.08); }
.job-body { flex: 1; min-width: 0; }
.job-goal { font-size: 13.5px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-detail { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.job-detail a { color: var(--leaf); }
.error-detail { color: var(--red-apple); }
.job-age { font-size: 11px; color: var(--text-faint); white-space: nowrap; }

/* ── Status pills ────────────────────────────────────────────── */
.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill-harvest { background: #e8f5e8; color: #2d6a2d; border: 1px solid #b2dfb2; }
.pill-growing { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
.pill-ready   { background: #fff8e1; color: #8b6914; border: 1px solid #ffe082; }
.pill-bad     { background: var(--red-pale); color: var(--red-apple); border: 1px solid #ffcdd2; }
.pill-idle    { background: var(--surface-3); color: var(--text-soft); border: 1px solid var(--border); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--apple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover:not(:disabled) { background: var(--leaf); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: none;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--apple); color: var(--leaf); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: none;
  color: var(--red-apple);
  border: 1px solid #ffcdd2;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
}
.btn-danger:hover { background: var(--red-pale); }

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

/* ── New Job page ────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.page-project-badge {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-soft);
  padding: 2px 10px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-card--success {
  border-color: #b2dfb2;
  background: linear-gradient(135deg, #f1fbf1 0%, #fff 100%);
  text-align: center;
}
.step-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.step-hint { font-size: 13.5px; color: var(--text-mid); margin-bottom: 16px; line-height: 1.6; }

.idea-box {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
  background: var(--surface-2);
  margin-bottom: 6px;
}
.idea-box:focus { outline: none; border-color: var(--apple); box-shadow: 0 0 0 3px rgba(76,175,80,.12); }
.idea-box--edit { background: #fff; }

.step-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.amp-block { margin-bottom: 18px; }
.amp-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px; }
.amp-original { font-size: 13px; color: var(--text-soft); font-style: italic; }
.amp-spec { font-size: 14px; color: var(--text-primary); line-height: 1.7; white-space: pre-wrap; }

.amp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.amp-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface-3);
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.amp-chip--warn { background: #fff3e0; color: #8b4500; border-color: #ffe0b2; }
.amp-chip--tip  { background: #e8f5e8; color: #2d6a2d; border-color: #b2dfb2; }

.launch-graphic { font-size: 52px; margin-bottom: 12px; }
.launch-meta { margin: 18px 0; text-align: left; }
.meta-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.meta-k { color: var(--text-soft); min-width: 80px; flex-shrink: 0; }
.meta-v { color: var(--text-primary); }

.btn-spinner { animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.inline-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--red-pale);
  color: var(--red-apple);
  border: 1px solid #ffcdd2;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ── Orchard health ──────────────────────────────────────────── */
.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.health-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.hc-label { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.hc-sub   { font-size: 11px; color: var(--text-faint); margin-bottom: 10px; }
.hc-status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.hc-ok      { color: var(--apple); }
.hc-warn    { color: var(--harvest); }
.hc-bad     { color: var(--red-apple); }
.hc-unknown { color: var(--text-faint); }

/* ── Greenhouse ──────────────────────────────────────────────── */
.tab-bar { display: flex; gap: 2px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 8px 16px;
  font-size: 13.5px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text-primary); }
.tab--active { color: var(--leaf); border-bottom-color: var(--apple); }

.settings-block { margin-bottom: 28px; }
.settings-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.settings-hint { font-size: 12.5px; color: var(--text-soft); margin-bottom: 12px; line-height: 1.6; }
.settings-link { font-size: 12px; color: var(--leaf); margin-top: 10px; display: inline-block; }

.key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.key-label { min-width: 160px; color: var(--text-mid); font-weight: 500; }
.key-value { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.key-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.badge-ok      { background: #e8f5e8; color: #2d6a2d; }
.badge-missing { background: var(--red-pale); color: var(--red-apple); }

.health-mini-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.hm-label   { min-width: 130px; color: var(--text-soft); }
.hm-status  { }
.hm-ok      { color: var(--apple); }
.hm-warn    { color: var(--harvest); }
.hm-bad     { color: var(--red-apple); }
.hm-unknown { color: var(--text-faint); }

/* Project cards */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.project-card-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.project-type-tag {
  display: inline-block;
  background: var(--surface-3);
  color: var(--text-soft);
  border-radius: 20px;
  font-size: 10px;
  padding: 2px 8px;
  margin-left: 6px;
}
.project-client-tag {
  display: inline-block;
  background: #e8f5e8;
  color: #2d6a2d;
  border-radius: 20px;
  font-size: 10px;
  padding: 2px 8px;
  margin-left: 4px;
}
.project-card-actions { display: flex; gap: 6px; }
.project-fields-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.pf { display: flex; flex-direction: column; gap: 2px; }
.pf-k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 600; }
.pf-v { font-size: 12.5px; color: var(--text-mid); }

.plant-tree-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: border-color .15s, color .15s;
}
.plant-tree-btn:hover { border-color: var(--apple); color: var(--leaf); }

/* Model cards */
.model-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.model-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.model-card:hover { border-color: var(--apple); }
.model-card--selected { border-color: var(--apple); background: var(--apple-pale); box-shadow: 0 0 0 2px rgba(76,175,80,.15); }
.model-card-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.model-card-desc { font-size: 11.5px; color: var(--text-soft); line-height: 1.5; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 0;
}
.toggle-label input { accent-color: var(--apple); width: 15px; height: 15px; }

.save-confirm { font-size: 13px; color: var(--apple); margin-left: 12px; }

/* ── New project form ────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-field { margin-bottom: 18px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-optional { font-weight: 400; color: var(--text-faint); }
.form-input, .form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--apple);
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
  background: #fff;
}
.form-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Auth screen ─────────────────────────────────────────────── */
.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 12px;
  background: var(--forest);
}
.auth-logo { }
.auth-title { font-family: var(--font-display); font-size: 24px; color: #e8f5e8; font-weight: 600; }
.auth-sub { font-size: 14px; color: #7ab87a; }

/* ── Loading & empty states ──────────────────────────────────── */
.loading-state { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14px; padding: 24px 0; }
.spinner { animation: spin .8s linear infinite; display: inline-block; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 12px;
}
.empty-icon { font-size: 52px; }
.empty-state h2 { font-family: var(--font-display); font-size: 22px; }
.empty-state p { color: var(--text-soft); font-size: 14px; }

.empty-jobs {
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-jobs p { color: var(--text-soft); margin-bottom: 12px; }

.not-found {
  padding: 60px;
  text-align: center;
  font-size: 16px;
  color: var(--text-soft);
}

/* ── Utility ─────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-size: .95em; }

/* ── Responsive (tablet / mobile) ───────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 200px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .health-grid { grid-template-columns: 1fr; }
  .model-cards { grid-template-columns: 1fr; }
  .project-fields-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
  }
  .sidebar-logo { display: none; }
  .sidebar-group-label { display: none; }
  .sidebar-project { width: auto; padding: 12px; }
  .sidebar-footer { display: none; }
  .sidebar-spacer { display: none; }
  .sidebar-nav-link { padding: 12px; white-space: nowrap; }
  .sidebar-plant { width: auto; padding: 12px; }
  .main-area { height: calc(100vh - 60px); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .step-actions { flex-direction: column; }
  .toast-tray { bottom: 12px; right: 12px; left: 12px; max-width: none; }
}

/* ── Toast notifications ──────────────────────────────────────── */

.toast-tray {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.toast {
  background: var(--forest-mid);
  border: 1px solid var(--forest-edge);
  border-left: 4px solid var(--apple);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.toast--success { border-left-color: var(--apple); }
.toast--error   { border-left-color: var(--red); }
.toast--failgate {
  border-left-color: var(--red);
  background: rgba(229, 57, 53, 0.1);
  border-color: rgba(229, 57, 53, 0.3);
}
.toast--info    { border-left-color: var(--harvest); }

.toast-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--apple-pale);
  margin-bottom: 2px;
}

.toast-msg {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--mist);
  opacity: 0.8;
}

.toast-age {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--mist);
  opacity: 0.5;
  margin-top: 4px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
