:root {
  --brand: #0b5d3b; --brand-dark: #08472d; --brand-soft: #e6f3ec;
  --accent: #e8a317;
  --bg: #f4f6f5; --card: #ffffff; --text: #1d2a24; --muted: #5d6b64; --line: #dbe3df;
  --red: #b3261e; --red-soft: #fdecea; --amber: #8a5a00; --amber-soft: #fff4d6; --blue: #1a5fb4; --blue-soft: #e8f0fb; --green-soft: #e3f4e8;
  --radius: 12px; --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
a { color: var(--brand); }
.hi { color: var(--muted); font-size: .82em; font-weight: 400; }
.hint { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--brand); color: #fff; padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; font-weight: 700; font-size: 1.05rem; }
.brand .logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.brand small { display: block; font-weight: 400; opacity: .8; font-size: .75rem; }
.nav a { display: flex; align-items: center; gap: 10px; color: #e9f5ee; text-decoration: none; padding: 12px 14px; border-radius: 10px; font-size: 1rem; margin-bottom: 3px; min-height: 48px; }
.nav a:hover { background: rgba(255,255,255,.12); }
.nav a.active { background: #fff; color: var(--brand); font-weight: 700; }
.nav .ic { width: 22px; text-align: center; }
.main { flex: 1; min-width: 0; }
.topbar { display: none; background: var(--brand); color: #fff; padding: 10px 14px; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.topbar button { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 8px; font-size: 1.4rem; width: 46px; height: 46px; }
.content { padding: 22px; max-width: 1280px; margin: 0 auto; }
.userbox { margin-top: 18px; padding: 12px; border-top: 1px solid rgba(255,255,255,.25); font-size: .88rem; }
.userbox button { margin-top: 8px; width: 100%; }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: -280px; top: 0; z-index: 40; width: 270px; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .topbar { display: flex; }
  .content { padding: 14px; }
}

/* ---------- common blocks ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-left: 6px solid var(--brand); }
.stat .lbl { color: var(--muted); font-size: .88rem; }
.stat .val { font-size: 1.55rem; font-weight: 700; margin-top: 2px; word-break: break-word; }
.stat .sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.stat.warn { border-left-color: var(--accent); } .stat.bad { border-left-color: var(--red); } .stat.blue { border-left-color: var(--blue); } .stat.grey { border-left-color: #8a9690; }
.stat.bad .val, .neg { color: var(--red); }
.section-title { margin: 22px 0 10px; font-size: 1.05rem; color: var(--brand-dark); }

/* ---------- forms & buttons ---------- */
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
input, select, textarea { width: 100%; font: inherit; padding: 12px; min-height: 48px; border: 1.5px solid #b9c6bf; border-radius: 10px; background: #fff; color: var(--text); }
textarea { min-height: 84px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #f2c14e; outline-offset: 1px; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.row3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .row, .row3 { grid-template-columns: 1fr; } }
.req::after { content: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; padding: 12px 20px; min-height: 48px; border-radius: 10px; border: 2px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.btn.sec { background: #fff; color: var(--brand); }
.btn.sec:hover { background: var(--brand-soft); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger.sec { background: #fff; color: var(--red); }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn.big { min-height: 56px; font-size: 1.1rem; padding: 14px 28px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.addrow { display: flex; gap: 8px; } .addrow select { flex: 1; }

/* ---------- tables (turn into cards on phones) ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #f0f4f2; padding: 10px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.void td { color: #8a8f8c; text-decoration: line-through; }
tr.void td.keep { text-decoration: none; }
tfoot td { font-weight: 700; background: #f0f4f2; }
@media (max-width: 1180px) {
  table.rt thead { display: none; }
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; width: 100%; }
  table.rt tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 6px 10px; background: #fff; box-shadow: var(--shadow); }
  table.rt td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.rt td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; flex-shrink: 0; max-width: 45%; }
  table.rt td.actions { justify-content: flex-start; flex-wrap: wrap; }
  table.rt td.actions::before { display: none; }
  table.rt tfoot { display: block; } table.rt tfoot tr { background: #f0f4f2; }
}

/* ---------- badges & notices ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eceff1; color: #37474f; white-space: nowrap; }
.badge.green { background: var(--green-soft); color: #1b6b3a; } .badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); } .badge.blue { background: var(--blue-soft); color: var(--blue); }
.notice { padding: 12px 14px; border-radius: 10px; margin: 10px 0; border-left: 5px solid; font-size: .95rem; }
.notice.error { background: var(--red-soft); border-color: var(--red); color: #7a1912; }
.notice.warn { background: var(--amber-soft); border-color: var(--accent); color: #5b3b00; }
.notice.info { background: var(--blue-soft); border-color: var(--blue); color: #12427d; }
.notice.ok { background: var(--green-soft); border-color: #2e8b57; color: #14502b; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; }
.kv div:nth-of-type(odd) { color: var(--muted); } .kv div:nth-of-type(even) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv .total { border-top: 2px solid var(--line); padding-top: 6px; color: var(--text) !important; font-weight: 700 !important; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { padding: 10px 18px; min-height: 46px; border-radius: 10px; border: 2px solid var(--brand); background: #fff; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--brand); color: #fff; }

/* ---------- toast & modal ---------- */
#toasts { position: fixed; top: 14px; right: 14px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(92vw, 420px); }
.toast { padding: 14px 16px; border-radius: 10px; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-weight: 600; background: #1d6f42; animation: slide .2s; }
.toast.error { background: var(--red); } .toast.warn { background: #b26b00; }
@keyframes slide { from { transform: translateY(-12px); opacity: 0; } }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 12px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 720px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.modal.sm { max-width: 480px; } .modal.lg { max-width: 960px; }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal header h2 { margin: 0; }
.modal .body { padding: 20px; } .modal footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; width: 44px; height: 44px; border-radius: 8px; }
.picker { position: relative; }
.picker .results { position: absolute; z-index: 10; left: 0; right: 0; background: #fff; border: 1.5px solid #b9c6bf; border-radius: 10px; max-height: 260px; overflow: auto; box-shadow: var(--shadow); }
.picker .results div { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.picker .results div:hover { background: var(--brand-soft); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.login-card { background: #fff; border-radius: 16px; padding: 28px; width: 100%; max-width: 440px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.login-card .logo { width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }

/* ---------- statement (printable) ---------- */
.statement { background: #fff; padding: 26px; border-radius: 12px; box-shadow: var(--shadow); }
.statement .sh { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 4px solid var(--brand); padding-bottom: 12px; margin-bottom: 14px; }
.statement .sh .biz { font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.statement table { font-size: .88rem; }
.statement .sum { max-width: 460px; margin-left: auto; margin-top: 16px; }
.statement .sum .kv { font-size: 1rem; }
.statement .tag { font-size: .72rem; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html { font-size: 13px; }
  body { background: #fff; }
  .sidebar, .topbar, .page-head, .noprint, #toasts, .tabs { display: none !important; }
  .content { padding: 0; max-width: none; } .card { box-shadow: none; padding: 0; margin: 0; }
  .statement { box-shadow: none; padding: 0; }
  /* keep real tables when printing, even on a narrow page */
  table.rt { display: table; } table.rt thead { display: table-header-group; } table.rt tbody { display: table-row-group; } table.rt tfoot { display: table-footer-group; }
  table.rt tr { display: table-row; border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }
  table.rt td { display: table-cell; border-bottom: 1px solid #ccc; padding: 5px 6px; text-align: left; width: auto; }
  table.rt td.num { text-align: right; } table.rt td::before { display: none !important; }
  table.rt tfoot tr { background: #f0f0f0; }
  .tablewrap { overflow: visible; }
  th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- institute reports: banners, presentation mode ---------- */
.banner { padding: 12px 16px; border-radius: 10px; margin: 0 0 14px; border-left: 6px solid; }
.banner.ok { background: var(--green-soft); border-color: #2e8b57; color: #14502b; }
.banner.warn { background: var(--amber-soft); border-color: var(--accent); color: #5b3b00; }
tr.grp td { background: #e3f0e8; font-size: .95rem; }
tr.sub td { background: #f0f4f2; }
.okc { color: #1b6b3a; }
.statement.is-draft { position: relative; background-image: repeating-linear-gradient(-35deg, transparent 0 220px, rgba(150,150,150,.06) 220px 222px); }
.statement.is-draft::before { content: "DRAFT"; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 7rem; font-weight: 800; color: rgba(120,120,120,.12); pointer-events: none; }
body.present .sidebar, body.present .topbar { display: none !important; }
body.present .content { max-width: 1400px; padding-top: 10px; }
body.present .page-head, body.present .noprint { display: none !important; }
body.present .present-banner { display: block !important; }
body.present { font-size: 18px; }
.exit-present { position: fixed; bottom: 14px; right: 14px; z-index: 50; box-shadow: var(--shadow); }
@media print { .exit-present { display: none !important; } .statement.is-draft::before { font-size: 9rem; } }

/* ---------- partner portal, tasks ---------- */
.bar { height: 14px; background: #e3e9e6; border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.bar > div { height: 100%; background: var(--brand); border-radius: 999px; }
.bar.sm { height: 10px; margin: 0; flex: 1; }
.mrow { display: grid; grid-template-columns: 90px 1fr minmax(160px, auto); gap: 10px; align-items: center; padding: 5px 0; font-size: .92rem; }
@media (max-width: 640px) { .mrow { grid-template-columns: 1fr; gap: 2px; } }
.task { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task.done .task-main b { text-decoration: line-through; color: var(--muted); }
.task-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* payment / travel details, roles & access */
.extra { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px 2px; margin: 4px 0 12px; background: #fafbfc; }
.extra-h { font-weight: 600; font-size: .85rem; color: #475569; margin-bottom: 8px; }
.navbadge { background: #dc2626; color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; margin-left: 8px; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.lvcard { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .85rem; display: flex; flex-direction: column; gap: 2px; }
.lvcard span { color: #64748b; font-size: .78rem; }
table.access select { min-width: 120px; }
.lv0 { background: #f1f5f9; } .lv1 { background: #eef6ff; } .lv2 { background: #fff8e6; } .lv3 { background: #eaf7ee; } .lv4 { background: #d9f2e0; }
tr.supr { display: none; }

/* dashboard */
.periodbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; margin: 4px 0 14px; }
.seg { display: inline-flex; background: #e8eeea; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; color: #36524a; cursor: pointer; }
.seg button.on { background: #fff; color: #0d5c3f; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.morefilters summary, .more summary, .gmem summary { cursor: pointer; font-weight: 600; color: #0d5c3f; padding: 8px 0; }
.morefilters { flex: 1 1 100%; }
.hero .stat .val { font-size: 1.7rem; }
.gridg { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gcard { background: #fff; border: 1px solid var(--line); border-top: 5px solid #0d5c3f; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.gcard.g-assoc { border-top-color: #2563eb; } .gcard.g-other { border-top-color: #d97706; } .gcard.g-couns { border-top-color: #7c3aed; }
.ghead { display: flex; gap: 10px; align-items: center; } .gic { font-size: 1.6rem; }
.gname { font-weight: 700; font-size: 1.05rem; } .ghint { font-size: .78rem; color: #64748b; }
.gbig { font-size: .95rem; color: #475569; } .gbig span { font-size: 2.1rem; font-weight: 800; color: #0f172a; margin-right: 4px; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.gnums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.gnums label { display: block; font-size: .72rem; color: #64748b; } .gnums b { font-size: 1rem; }
.gmem table.mini { width: 100%; font-size: .85rem; border-collapse: collapse; } .gmem table.mini th { text-align: left; color: #64748b; font-weight: 500; } .gmem table.mini td, .gmem table.mini th { padding: 4px 2px; border-bottom: 1px solid #eef2f0; }
.glink { margin-top: auto; font-weight: 600; font-size: .9rem; }
.todo { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: #1f2937; background: #f1f5f3; border-left: 5px solid #94a3b8; }
.todo.error { background: var(--red-soft); border-left-color: var(--red); } .todo.warn { background: var(--amber-soft); border-left-color: var(--accent); } .todo.info { background: #eaf2ff; border-left-color: #2563eb; }
.todo span:last-child { font-weight: 600; white-space: nowrap; }
details.more { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 14px; }

/* team & partners overview */
.tstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ttile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .ttile label { display: block; font-size: .72rem; color: #64748b; } .ttile b { font-size: 1.15rem; }
.ttile.ok b { color: #0d7a4f; } .ttile.warn b { color: #b45309; } .ttile.bad b { color: #b91c1c; }
.pgroup { border-top: 5px solid #0d5c3f; padding-top: 12px; } .pgroup.g-assoc { border-top-color: #2563eb; } .pgroup.g-other { border-top-color: #d97706; } .pgroup.g-couns { border-top-color: #7c3aed; }
.pghead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; } .pgtot { font-size: .85rem; color: #475569; }
.ptable td, .ptable th { white-space: nowrap; } tr.click { cursor: pointer; } tr.click:hover { background: #f3f8f5; }
.sbar { display: flex; width: 110px; height: 10px; border-radius: 99px; overflow: hidden; background: #e5e7eb; } .sbar i { display: block; height: 100%; }
.s-done { background: #16a34a; } .s-prog { background: #f59e0b; } .s-cx { background: #dc2626; }
.grid.g5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat.hero .val { font-size: 1.9rem; } label.inl { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; } table.mini.wide { width: 100%; border-collapse: collapse; font-size: .88rem; } table.mini.wide th { text-align: left; color: #64748b; font-weight: 500; } table.mini.wide td, table.mini.wide th { padding: 5px 4px; border-bottom: 1px solid #eef2f0; }
.stat.good { border-left-color: #16a34a; }
.ptable { font-size: .82rem; } .ptable td, .ptable th { padding: 8px 6px; } .ptable .sbar { width: 80px; } .ptable th { white-space: normal; line-height: 1.15; }

label.radio { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; cursor: pointer; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 6px 0 14px; }
.tabs button { border: 0; background: transparent; padding: 10px 16px; font: inherit; font-weight: 600; color: #475569; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: #0d5c3f; border-bottom-color: #0d5c3f; }

.rcopt { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: #eef6f1; border: 1px dashed #7fb69a; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.rcopt input[type=text], .rcopt input:not([type]) { flex: 1 1 260px; }

h3.fs { margin: 14px 0 8px; font-size: .85rem; letter-spacing: .6px; text-transform: uppercase; color: #0d5c3f; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.audit { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: .85rem; } .audit .arow { padding: 4px 0; border-bottom: 1px solid #eef2f0; }

tr.cursel { background: #eaf4ee !important; }
.ecard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.ehead { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; } .ebadges { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.egrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 14px; } .egrid label { display: block; font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }
