:root {
  --bg: #f7f8fb;
  --panel: #fff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d9dee8;
  --brand: #115e67;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.top { background: #102a33; color: white; padding: 18px 28px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.top div { display: grid; gap: 4px; }
.top span { color: #b8cbd0; font-size: 13px; }
nav { display: flex; gap: 12px; flex-wrap: wrap; }
nav a { color: white; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 28px auto; display: grid; gap: 18px; }
.card, .toolbar { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.narrow { max-width: 460px; margin: 48px auto; }
.grid { display: grid; gap: 14px; }
.two, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; background: white; }
textarea { min-height: 130px; }
button, .button { border: 0; border-radius: 8px; background: var(--brand); color: white; padding: 10px 14px; display: inline-flex; justify-content: center; cursor: pointer; }
.muted-button { background: #edf7f8; color: var(--brand); }
.danger { background: var(--danger); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { background: #edf7f8; color: var(--brand); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.filters { grid-template-columns: 1fr 240px auto; align-items: end; }
.comment, .mini-card { border-top: 1px solid var(--line); padding-top: 12px; }
.mini-card { display: grid; gap: 10px; }
.inline { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.inline input { width: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 760px) {
  .top, .toolbar { align-items: flex-start; flex-direction: column; }
  .two, .posts, .filters { grid-template-columns: 1fr; }
}

