:root {
  --green: #1f6f4a; --green-d: #155237; --bg: #f5f7f6; --card: #fff; --line: #dfe5e2;
  --text: #1d2521; --muted: #66736d; --red: #b3261e; --amber: #8a5a00;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; }
#topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px;
  background: var(--green); color: #fff; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; font-size: 17px; }
.brand span { font-weight: 400; opacity: .8; font-size: 13px; margin-left: 4px; }
#nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
#nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; }
#nav a.active, #nav a:hover { background: rgba(255,255,255,.18); }
.me { font-size: 13px; }
main { max-width: 1000px; margin: 0 auto; padding: 16px; }
h1 { font-size: 20px; margin: 4px 0 14px; }
h2 { font-size: 16px; margin: 18px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 3px; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; background: #fff; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 7px; padding: 9px 14px; background: var(--green); color: #fff; }
button:hover { background: var(--green-d); }
button.secondary { background: #e7eeea; color: var(--text); }
button.danger { background: #fbe9e7; color: var(--red); }
button.link { background: none; color: inherit; text-decoration: underline; padding: 0; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.row > * { flex: 1 1 160px; }
.row > button { flex: 0 0 auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #e7eeea; margin: 1px 2px 1px 0; }
.tag.off { background: #fbe9e7; color: var(--red); }
.msg { padding: 9px 12px; border-radius: 7px; margin: 8px 0; font-size: 14px; }
.msg.err { background: #fbe9e7; color: var(--red); }
.msg.ok { background: #e3f3ea; color: var(--green-d); }
.login { max-width: 360px; margin: 10vh auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-decoration: none; color: inherit; }
.tile b { display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  th.hide-sm, td.hide-sm { display: none; }
  main { padding: 10px; }
}
