:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #201f1d;
  --muted: #68645d;
  --line: #ded8cf;
  --accent: #295f6f;
  --accent-strong: #183f4b;
  --accent-soft: #dfecef;
  --danger: #a33b32;
  --success: #386b4f;
  --shadow: 0 18px 50px rgba(46, 41, 34, 0.09);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #242522;
  color: #fbf8f2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.button {
  border: 0;
  border-radius: var(--radius);
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  min-height: 42px;
}

.button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button-secondary:hover {
  background: #cbe0e5;
}

.button-full {
  width: 100%;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
}

.icon-button.danger {
  border-color: rgba(163, 59, 50, 0.28);
  color: var(--danger);
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

.error-state {
  color: var(--danger);
  border-color: rgba(163, 59, 50, 0.35);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 360px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ebe5dc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-pill[data-mode="success"] {
  background: #dcebe2;
  color: var(--success);
}

.status-pill[data-mode="error"] {
  background: #f3ded9;
  color: var(--danger);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .side-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-note {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .brand {
    align-items: flex-start;
  }
}

