:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --muted: #647086;
  --line: #dfe5ef;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-soft: #e8f0ff;
  --ok: #0f9f6e;
  --bad: #d33b3b;
  --warning: #a46300;
  --warning-soft: #fff3d7;
  --sidebar-width: 272px;
  --content-max: 1220px;
  --radius: 8px;
  --shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
}

a {
  color: var(--accent);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 8px;
}

h2 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 0;
}

h3 {
  font-size: 15px;
}

p {
  line-height: 1.55;
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #eef2ff;
  border: 1px solid #dce4ff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.main-area {
  min-width: 0;
  padding: 28px 32px 48px;
}

.page-header,
.page-content {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-header p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.page-state,
.panel-note,
.pill {
  background: var(--accent-soft);
  color: #1b57c7;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.page-content {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel,
.stat-card,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.subpanel {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.compact-head {
  margin-bottom: 0;
}

.compact-head h3 {
  margin: 0;
  font-size: 18px;
}

.notice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.notice span {
  color: var(--muted);
  line-height: 1.45;
}

.notice-ok { border-color: rgba(15, 159, 110, 0.34); }
.notice-ok strong { color: var(--ok); }
.notice-bad { border-color: rgba(211, 59, 59, 0.34); }
.notice-bad strong { color: var(--bad); }
.notice-warning { background: var(--warning-soft); border-color: rgba(164, 99, 0, 0.28); }
.notice-warning strong { color: var(--warning); }
