:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #37352f;
  --muted: #787774;
  --line: rgba(55, 53, 47, .09);
  --sidebar: #f7f7f5;
  --hover: rgba(55, 53, 47, .06);
  --accent: #6f6257;
  --accent-dark: #37352f;
  --green: #4d8f6f;
  --red: #c35c4a;
  --yellow: #c69b42;
  --blue: #4c6f9f;
  --shadow: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 18px 12px;
  border-right: 1px solid var(--line); background: var(--sidebar);
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0 8px; }
.brand-mark { width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.brand-title { font-weight: 650; letter-spacing: -.01em; font-size: 15px; }
.notion-brand { height: 32px; align-items: center; }
.brand-subtitle, .muted { color: var(--muted); font-size: 13px; }
.nav { display: grid; gap: 2px; }
.nav a { text-decoration: none; padding: 5px 8px; border-radius: 4px; color: var(--muted); font-weight: 500; }
.nav a.active, .nav a:hover { background: var(--hover); color: var(--text); }
.nav-tree { gap: 7px; max-height: calc(100vh - 142px); overflow: auto; padding-right: 4px; }
.nav-tree::-webkit-scrollbar { width: 8px; }
.nav-tree::-webkit-scrollbar-thumb { background: rgba(55,53,47,.16); border-radius: 10px; }
.nav-section { display: grid; gap: 1px; }
.nav-parent { font-size: 12px; letter-spacing: .015em; font-weight: 600 !important; color: #6b6a67 !important; background: transparent; text-transform: none; display: flex; align-items: center; gap: 4px; }
.nav-parent.active { background: var(--hover); color: var(--text) !important; }
.twisty { width: 14px; color: #9b9a97; font-size: 12px; }
.nav-children { display: grid; gap: 1px; padding-left: 18px; margin-left: 0; border-left: 0; }
.nav-children a { padding: 4px 8px; font-size: 14px; border-radius: 4px; color: var(--text); font-weight: 450; display: flex; align-items: center; gap: 8px; min-height: 28px; }
.nav-children a span { width: 16px; color: #8f8e8a; font-size: 13px; text-align: center; }
.nav-children a:hover { background: var(--hover); color: var(--text); }
.side-card { margin: 20px 6px 0; padding: 10px; border-radius: 6px; background: rgba(255,255,255,.55); border: 1px solid var(--line); font-size: 12px; }
.side-card.danger { box-shadow: none; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 800; }
.main { padding: 34px 44px; max-width: 1280px; width: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 20px; }
h1 { font-size: clamp(30px, 4vw, 54px); margin: 4px 0 0; letter-spacing: -.06em; line-height: .96; }
h2, h3 { margin: 0; letter-spacing: -.035em; }
button { border: 0; background: var(--accent-dark); color: white; border-radius: 999px; padding: 12px 18px; font-weight: 800; cursor: pointer; }
button.ghost { background: rgba(255,255,255,.7); color: var(--text); }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 18px; margin-bottom: 18px; }
.content-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: none; }
.large-card { grid-column: span 2; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.focus-card { background: linear-gradient(135deg, #fffaf4, rgba(255,255,255,.62)); }
.focus-card h2 { font-size: 34px; max-width: 620px; margin: 10px 0 18px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: center; color: #47382c; }
.pill { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; padding: 5px 10px; color: white; font-size: 12px; font-weight: 800; }
.pill.green { background: var(--green); } .pill.red { background: var(--red); } .pill.yellow { background: var(--yellow); } .pill.blue { background: var(--blue); }
.metric-card strong { display: block; font-size: 34px; margin: 10px 0 8px; letter-spacing: -.05em; }
.metric-card p, .side-card p, .project-card p, .timeline p, .person p { color: var(--muted); margin-bottom: 0; }
.risk-meter { height: 10px; background: rgba(195,92,74,.13); border-radius: 99px; overflow: hidden; margin: 16px 0; }
.risk-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--red)); border-radius: inherit; }
.table-list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr 100px 100px 90px; gap: 10px; align-items: center; padding: 11px 12px; background: #fafafa; border-radius: 6px; border-bottom: 1px solid var(--line); }
.row.header { background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline-item { position: relative; padding-left: 28px; }
.dot { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(143,95,60,.12); }
.project-card { padding: 15px; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; display: grid; gap: 7px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-grid a { display: block; padding: 15px; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 650; color: var(--text); }
.quick-grid a:hover { background: var(--hover); }
.status-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note-card { padding: 16px; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; }
.note-card strong { display: block; margin: 8px 0 6px; }
.note-card p { margin: 0; color: var(--muted); }
.lifestyle-grid a { min-height: 74px; display: flex; align-items: end; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.link-list li, .money-line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-list span { color: var(--muted); font-size: 13px; }
.person { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ead9c6; font-weight: 900; }
@media (max-width: 1080px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: relative; height: auto; } .nav-tree { max-height: none; } .hero-grid, .content-grid, .status-board, .note-grid { grid-template-columns: 1fr; } .large-card { grid-column: auto; } }
@media (max-width: 680px) { .main { padding: 20px; } .topbar { align-items: flex-start; flex-direction: column; } .row, .quick-grid { grid-template-columns: 1fr; } .focus-card h2 { font-size: 28px; } }
