:root { --bg: #f3f5f2; --surface: #fff; --ink: #14213d; --ink-2: #3c4658; --muted: #667085; --line: #dde2dc; --accent: #0f6e5a; --soft: #e4f1ec; --danger: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 "Public Sans", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; letter-spacing: -0.015em; margin: 0; line-height: 1.2; }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: #10241f; color: #cfe0d9; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; font: 650 18px/1.2 "Bricolage Grotesque", sans-serif; padding: 6px 10px 20px; display: block; text-decoration: none; }
.side .brand small { display: block; color: #8fb3a6; font: 400 13px "Public Sans", sans-serif; margin-top: 4px; }
.side nav a { display: flex; align-items: center; justify-content: space-between; color: #cfe0d9; text-decoration: none; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; }
.side nav a:hover { background: #18352d; color: #fff; }
.side nav a.on { background: #1f4a3e; color: #fff; font-weight: 600; }
.side nav .grp { color: #7fa497; font-size: 12.5px; padding: 16px 12px 6px; }
.side .pill { background: #4cc3a0; color: #062019; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.main { padding: 28px 36px 60px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.top h1 { font-size: 28px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 "Public Sans", sans-serif; padding: 11px 16px; border-radius: 10px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--danger); border-color: #f1c4bf; }
.btn.sm { padding: 7px 11px; font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.card h2 { font-size: 18px; margin-bottom: 16px; }
.alert { background: var(--soft); border: 1px solid #b9d6cb; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert.err { background: #fdecea; border-color: #f4c7c1; color: var(--danger); }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: #fafbf9; }
tr:last-child td { border-bottom: 0; }
td .acts { display: flex; gap: 6px; justify-content: flex-end; }
.yes { color: var(--accent); font-weight: 600; } .no { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.f { margin-bottom: 4px; }
.f.full { grid-column: 1 / -1; }
.f label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.f input[type=text], .f input[type=email], .f input[type=password], .f input[type=url], .f input[type=number], .f input[type=datetime-local], .f select, .f textarea { width: 100%; font: inherit; color: var(--ink); background: #fbfcfb; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.f textarea { min-height: 120px; resize: vertical; }
.f textarea.md { min-height: 320px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.f .help { color: var(--muted); font-size: 13px; margin-top: 4px; }
.f .err { color: var(--danger); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.thumb { width: 120px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--ink); }
.stat b { display: block; font: 700 30px/1 "Bricolage Grotesque", sans-serif; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14px; }
.search { display: flex; gap: 8px; margin-bottom: 16px; }
.search input { flex: 1; max-width: 340px; font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.unread td { font-weight: 600; }
.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); }
.pager .on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mobile-top { display: none; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(420px, 100%); padding: 32px; }
.steps li { margin-bottom: 8px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; height: 100vh; }
  .side.open { transform: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #10241f; color: #fff; position: sticky; top: 0; z-index: 40; }
  .mobile-top button { background: none; border: 1px solid #3b5c52; color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; }
  .main { padding: 20px 16px 48px; }
  .grid2, .stats { grid-template-columns: 1fr 1fr; }
  table { display: block; overflow-x: auto; }
}
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
