:root {
  color-scheme: light;
  --bg:#f5f1e8;
  --panel:#fffaf0;
  --panel-strong:#ffffff;
  --ink:#211b13;
  --muted:#706657;
  --line:#d9cdb9;
  --accent:#405f3a;
  --accent-2:#714d88;
  --danger:#8d2f24;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin:0;
  min-height:100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(113,77,136,.16), transparent 32rem),
    radial-gradient(circle at 85% 15%, rgba(64,95,58,.14), transparent 28rem),
    var(--bg);
  color:var(--ink);
}
.app-shell { width:min(1160px, calc(100% - 32px)); margin:0 auto; padding:20px 0 36px; }
.hidden { display:none !important; }
.top-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:12px 0 28px;
}
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-weight:900; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--ink); background:var(--panel-strong); font-size:.8rem; }
.top-actions,.status-row,.actions,.row-actions,.hero-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.status-pill { border:1px solid var(--line); padding:7px 10px; background:rgba(255,255,255,.72); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.78rem; }
.hero-card, .card { background:var(--panel); border:1px solid var(--line); border-radius:0; box-shadow:none; }
.hero-card { padding:clamp(24px, 6vw, 72px); }
.landing-shell { display:grid; gap:18px; }
.landing-hero { min-height:56vh; display:grid; align-content:center; }
.login-card { max-width:520px; margin:48px auto 0; padding:24px; }
.eyebrow { margin:0 0 10px; text-transform:uppercase; letter-spacing:.12em; color:var(--accent); font-size:.75rem; font-weight:900; }
h1,h2,h3,p { margin-top:0; }
h1 { max-width:830px; font-size:clamp(2.45rem, 7vw, 6.25rem); line-height:.9; letter-spacing:-.065em; margin-bottom:18px; }
h2 { font-size:1.25rem; }
.hero-copy { max-width:690px; color:var(--muted); font-size:clamp(1.05rem, 2vw, 1.35rem); line-height:1.55; }
.muted { color:var(--muted); }
.principle-grid,.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.card { padding:20px; min-width:0; }
.mini-card { background:rgba(255,250,240,.82); }
.wide { grid-column:1 / -1; }
.welcome-panel { background:var(--panel-strong); }
.stack { display:grid; gap:10px; margin-top:12px; }
.row { border:1px solid var(--line); padding:12px; background:var(--panel-strong); display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.row strong { display:block; }
.row span { color:var(--muted); }
.user-row button { padding:8px 10px; }
.feature-list { display:grid; gap:10px; padding:0; margin:12px 0 0; list-style:none; }
.feature-list li { border:1px solid var(--line); background:var(--panel-strong); padding:12px; }
.feature-list strong,.feature-list span { display:block; }
.feature-list span { color:var(--muted); }
.form-stack { display:grid; gap:10px; }
label { display:grid; gap:5px; font-weight:800; color:var(--muted); }
input,textarea,select,button { width:100%; border:1px solid var(--line); border-radius:0; padding:10px 12px; font:inherit; background:var(--panel-strong); color:var(--ink); }
textarea { min-height:76px; resize:vertical; }
button { width:auto; cursor:pointer; background:var(--ink); color:#fff; font-weight:900; }
button.secondary { background:var(--panel-strong); color:var(--ink); }
button.danger { background:var(--danger); color:#fff; }
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid rgba(113,77,136,.35); outline-offset:2px; }
.text-link { color:var(--ink); font-weight:900; text-underline-offset:4px; }
@media (max-width: 860px) {
  .top-bar { align-items:flex-start; }
  .top-actions { justify-content:flex-end; }
  .principle-grid,.grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .app-shell { width:min(100% - 20px, 1160px); padding:12px 0 24px; }
  .top-bar { display:grid; }
  .top-actions { justify-content:flex-start; }
  .hero-card,.card,.login-card { padding:16px; }
  .landing-hero { min-height:auto; }
  .row { display:grid; }
  button { width:100%; }
  .status-pill { width:100%; }
}
