:root {
  --paper: #f3ede4;
  --ink: #17211d;
  --muted: #6d756f;
  --panel: #fffdf8;
  --line: #d8d0c5;
  --forest: #214d3b;
  --signal: #d9633b;
  --shadow: 0 18px 50px rgba(43, 38, 31, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(217, 99, 59, .12), transparent 24rem),
    var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

button, a { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; border-right: 1px solid var(--line); background: rgba(255, 253, 248, .78); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin: 0 8px 42px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px 14px 14px 4px; color: white; background: var(--forest); font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }
nav { display: grid; gap: 6px; }
.nav-link { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; color: #4e5752; text-decoration: none; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: #e5ddcf; }
.source-note { position: absolute; left: 28px; bottom: 28px; color: var(--muted); font-size: 13px; }
.source-note span { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #c59547; }
main { min-width: 0; padding: 36px clamp(22px, 5vw, 72px) 80px; }
.topbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.page-description { max-width: 760px; margin: 12px 0 0; font-size: 16px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow { margin: 0 0 8px; color: var(--signal); font: 700 12px/1.2 "Segoe UI", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: .98; }
h2 { margin: 0 0 10px; font-size: 26px; }
p { color: var(--muted); line-height: 1.55; }
.period-button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); }
.period-button-muted { background: rgba(255, 253, 248, .65); }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 28px 30px; border: 1px solid #d5c5b5; border-radius: 24px; background: linear-gradient(120deg, #fffaf0, #f5e4d4); box-shadow: var(--shadow); }
.notice p:last-child { margin-bottom: 0; }
.status-badge { white-space: nowrap; padding: 9px 12px; border: 1px solid #bd6e50; border-radius: 999px; color: #8f3b20; font-weight: 700; font-size: 13px; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.panel { min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 8px 26px rgba(43, 38, 31, .05); }
.panel-wide { grid-column: 1 / -1; min-height: 310px; }
.skeleton-chart { height: 120px; display: flex; align-items: end; gap: 12px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.skeleton-chart i { flex: 1; height: 35%; background: #d6ded6; border-radius: 8px 8px 0 0; }
.skeleton-chart i:nth-child(2) { height: 62%; }.skeleton-chart i:nth-child(3) { height: 48%; }.skeleton-chart i:nth-child(4) { height: 83%; }.skeleton-chart i:nth-child(5) { height: 70%; background: #d99a80; }

@media (max-width: 820px) {
  .app-frame { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 18px; overflow-x: auto; }
  .brand { margin: 0 0 16px; }
  nav { display: flex; width: max-content; }
  .nav-link { white-space: nowrap; }
  .source-note { display: none; }
  main { padding: 26px 18px 60px; }
  .topbar, .notice, .filter-bar { align-items: flex-start; flex-direction: column; }
  .workspace-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: auto; }
}
