:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --accent: #0d9488;
  --accent-light: #f0fdfa;
  --status-bg: #f5f5f4;
  --border: #e7e5e4;
  --urgent: #dc2626;
  --urgent-light: #fef2f2;

  --nav-width: 84px;
  --radius-lg:  14px;
  --radius-md:  10px;
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 36px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                sans-serif;
}

:root {
  --tl-internal: #0ea5e9;   /* sky-500    – internal team messages   */
  --tl-external: #22c55e;   /* green-500  – external / customer mail */
  --tl-action:   #f97316;   /* orange-500 – state/severity changes   */
  --tl-system:   #d6d3d1;   /* stone-300  – automated system noise   */
}

:root {
  --color-sev-ok:       #228B22;
  --color-sev-log:      #CCCCCC;
  --color-sev-info:     #007BFF;
  --color-sev-warning:  #E5D726;
  --color-sev-error:    #DAA520;
  --color-sev-critical: #B22222;
  --color-sev-disaster: #8B0000;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-sev-ok:       #52D726;
    --color-sev-info:     #82CAFF;
    --color-sev-warning:  #F9D800;
    --color-sev-error:    #FFC107;
    --color-sev-critical: #FE803D;
    --color-sev-disaster: #FF5C5C;
  }
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
}

/* Layout */

.app-shell {
  display: flex;
  width: 100%;
}

@media (max-width: 768px) {
  :root {
    --nav-width: 68px;
  }
}

@media (max-width: 580px) {
  body {
    flex-direction: column;
  }
}

