:root { --bg:#f4f1ea; --card:#fff; --ink:#1c2420; --muted:#5f6b64; --accent:#1f3a2d; --accent2:#b7791f; --danger:#9b2c2c; --border:#d8d2c4; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif; background:var(--bg); color:var(--ink); line-height:1.5; }
.wrap { max-width:960px; margin:0 auto; padding:0 16px; }
.top { background:var(--accent); color:#fff; }
.top-inner { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; flex-wrap:wrap; }
.brand { display:flex; gap:10px; align-items:center; }
.brand small { display:block; opacity:.85; font-size:.8rem; }
.mark { width:36px; height:36px; border-radius:8px; background:var(--accent2); color:#fff; display:grid; place-items:center; font-weight:700; font-size:1.2rem; }
.top-right { display:flex; gap:8px; align-items:center; }
.whoami { font-size:.9rem; }
.card { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:16px; margin:16px 0; }
.stack { display:grid; gap:12px; margin:12px 0; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:16px 0; }
.tab { border:1px solid var(--border); background:#fff; border-radius:999px; padding:8px 14px; cursor:pointer; }
.tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn { background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 16px; cursor:pointer; font-size:1rem; }
.btn-small { padding:6px 10px; font-size:.9rem; }
.btn-ghost { background:transparent; color:var(--accent); border:1px solid var(--accent); }
.btn-danger { background:var(--danger); }
label { display:block; margin:10px 0; font-weight:600; }
label.check { font-weight:400; }
input, select, textarea { width:100%; padding:10px; border:1px solid var(--border); border-radius:8px; font:inherit; margin-top:4px; background:#fff; }
input[type="checkbox"] { width:auto; }
.muted { color:var(--muted); }
.small { font-size:.85rem; }
.error { color:var(--danger); }
.banner { background:#fff3cd; border:1px solid #e6c87a; border-radius:10px; padding:12px; margin:16px 0; }
.banner-warn { background:#fff3cd; }
.chat { background:#fff; border:1px solid var(--border); border-radius:12px; padding:12px; min-height:200px; max-height:420px; overflow:auto; margin:12px 0; }
.msg { padding:8px 0; border-bottom:1px solid #eee; }
.msg:last-child { border-bottom:0; }
.msg time { color:var(--muted); font-size:.8rem; }
.grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.break { word-break:break-all; }
footer { padding:24px 16px; }
h1, h2, h3 { line-height:1.25; }
.pill { display:inline-block; padding:2px 8px; border-radius:999px; background:#e8efe9; font-size:.8rem; }
.pill.done { background:#d9ead3; }
.pill.new { background:#fde8c8; }
@media (max-width:600px) { .top-inner { padding:10px 12px; } }
