:root{
  --bg:#f7f7f5;--bg2:#ffffff;--panel:#ffffff;--line:#d9d9d2;--text:#111111;--muted:#5f6470;--critical:#c73535;--shadow:0 16px 40px rgba(0,0,0,.08)
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:linear-gradient(180deg,var(--bg),var(--bg2));color:var(--text);font-family:Inter,Arial,sans-serif}
a{text-decoration:none;color:inherit}
body{min-height:100vh}
.shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:22px 16px}
.brand{display:flex;align-items:center;gap:12px;padding:8px 10px 20px}
.brandmark{width:42px;height:42px;border-radius:14px;background:#111;color:#fff;display:grid;place-items:center;font-weight:800}
.brand h1{font-size:17px;margin:0}.brand p{margin:3px 0 0;color:var(--muted);font-size:12px}
.menu{display:flex;flex-direction:column;gap:6px}
.menu a{padding:11px 12px;border-radius:14px;color:#222;font-size:14px;font-weight:700}
.menu a.active,.menu a:hover{background:#f2f2ef}
.main{padding:24px}.wrap{max-width:1320px;margin:0 auto;position:relative}
.btn{border:1px solid var(--line);background:#111;color:#fff;padding:11px 14px;border-radius:14px;font-weight:800}
.btn.secondary{background:#fff;color:#111}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.title h2{margin:0;font-size:34px}.title p{margin:4px 0 0;color:var(--muted)}
.hero,.panel,.story-card,.duck-scene,.mod,.linktile,.metric{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px}
.hero,.panel,.story-card,.duck-scene{padding:24px}
.metrics,.cardgrid,.quicklinks{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.metric{padding:15px;border-radius:18px}.metric strong{font-size:28px;display:block}.metric span{font-size:12px;color:var(--muted)}
.cardgrid{margin-top:14px}
.mod{padding:18px;min-height:170px;border-radius:20px;position:relative}
.mod h4{margin:12px 0 4px}.mod p,.linktile p,.story-card p{color:var(--muted);font-size:12px;line-height:1.6}
.icon{width:46px;height:46px;border-radius:15px;border:1px solid var(--line);background:#f6f6f2;display:grid;place-items:center}
.icon svg{width:24px;height:24px;stroke:#111;fill:none;stroke-width:1.9}
.state{font-size:11px;padding:5px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted);float:right}
.health{position:absolute;left:18px;right:18px;bottom:18px}
.healthline{height:7px;background:#ecece6;border-radius:999px;overflow:hidden}.healthline span{display:block;height:100%;background:#111}
.story{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.placeholder{position:absolute;top:22px;right:22px;width:110px;height:110px;border:2px dashed #cfcfc8;border-radius:24px;background:#fafaf8;display:flex;align-items:center;justify-content:center;font-size:11px;color:#777;text-align:center}
.linktile{padding:16px;border-radius:18px}
.footer{padding:24px 0 6px;color:#7b8090;font-size:12px}
@media(max-width:1080px){.shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.story{grid-template-columns:1fr}}
