/* Admin panel — deliberately denser and more neutral than the student site:
   cool gray surfaces, dark sidebar, compact tables.

   Surface colours come from the --a-* tokens below so the dark theme only
   re-points tokens (light values are the exact same hexes as before). */

:root {
  --a-bg: #eef0f3;            /* page background */
  --a-card: #fff;             /* cards, tables, inputs */
  --a-line: #d7dbe3;          /* card borders */
  --a-line-soft: #edeff3;     /* row separators */
  --a-th-bg: #f3f4f7;         /* table header row */
  --a-muted: #5a6070;         /* secondary labels (th, tile span) */
  --a-input-border: #c8cdd8;
  --a-hover: #f8f9fb;         /* row hover */
  --a-side-bg: #232833;       /* sidebar + login backdrop */
  --a-side-ink: #c9cedb;
  --a-side-link: #bfc5d3;
  --a-side-muted: #8d94a6;
  --a-side-line: rgba(255, 255, 255, 0.12);
  --a-side-hover: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] {
  --a-bg: #161920;
  --a-card: var(--surface);
  --a-line: var(--line);
  --a-line-soft: #2c313c;
  --a-th-bg: #1f232b;
  --a-muted: var(--ink-soft);   /* was #5a6070 → 2.3:1 on the dark card */
  --a-input-border: var(--line-strong);
  --a-hover: #272c37;
}

body {
  background: var(--a-bg);
  color: var(--ink);
  line-height: 1.6;
}

.shell {
  display: flex;
  min-height: 100dvh;
}

/* ---------- sidebar ---------- */

.a-side {
  width: 15rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-3);
  background: var(--a-side-bg);
  color: var(--a-side-ink);
}

.a-brand {
  color: #fffdf8;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  padding-inline: var(--sp-2);
}

.a-brand small {
  display: block;
  color: var(--a-side-muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.a-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.a-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7rem var(--sp-3);
  min-height: 44px;
  border-radius: var(--radius-s);
  color: var(--a-side-link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}

.a-nav a:hover {
  background: var(--a-side-hover);
  color: #fffdf8;
}

.a-nav a[aria-current="page"] {
  /* --pine-solid: in dark mode it darkens (#1f6f5c) so the white label
     keeps ≥4.5:1; in light mode it equals --pine, unchanged */
  background: var(--pine-solid);
  color: #fffdf8;
}

.a-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--a-side-line);
  font-size: 0.85rem;
}

.a-user-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.a-logout { color: var(--a-side-link); }
.a-logout:hover { color: #ffdad4; }

/* ---------- main column ---------- */

.a-main {
  flex: 1;
  min-width: 0;
  padding: var(--sp-5) var(--sp-6);
}

.a-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.a-title {
  font-size: 1.3rem;
  font-weight: 800;
}

/* ---------- toolbar & table ---------- */

.toolbar {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.toolbar input[type="search"] {
  flex: 1 1 14rem;
}

.toolbar input,
.toolbar select {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--a-input-border);
  border-radius: var(--radius-s);
  background: var(--a-card);
}

.table-card {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--radius-m);
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data th {
  text-align: right;
  padding: 0.65rem 0.9rem;
  background: var(--a-th-bg);
  border-bottom: 1px solid var(--a-line);
  font-size: 0.78rem;
  color: var(--a-muted);
  white-space: nowrap;
}

.data td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--a-line-soft);
  vertical-align: middle;
}

.data tbody tr:last-child td { border-bottom: none; }
.data tbody tr:hover { background: var(--a-hover); }

.cell-title { font-weight: 600; max-width: 22rem; }
.cell-nowrap { white-space: nowrap; }
.cell-nowrap small { display: block; color: var(--ink-faint); font-size: 0.76rem; }
.cell-path { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.row-actions {
  /* flex so the stacked link + delete-form sit on ONE line instead of
     vertically (each action is its own <a>/<form> element) */
  display: flex;
  align-items: center;
  justify-content: flex-end; /* actions hug the far edge in RTL */
  gap: var(--sp-1);
  white-space: nowrap;
}

.row-actions form { display: inline-flex; margin: 0; }

.row-actions .btn--sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* horizontal-scroll affordance: a surface-coloured fade on the edge that
   still hides content. JS (app.js) toggles .is-scrollable / .at-far /
   .at-origin, so touch users — who have no hover — get the hint too.
   The site is RTL: wide content hides beyond the LEFT edge. */
.table-card {
  position: relative;
}
.table-card::before,
.table-card::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 2.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
/* left edge (inline-end in RTL): opaque at its left boundary */
.table-card::before {
  inset-inline-end: 0;
  background: linear-gradient(to right, var(--a-card), transparent);
}
/* right edge (inline-start in RTL): appears after scrolling towards it */
.table-card::after {
  inset-inline-start: 0;
  background: linear-gradient(to left, var(--a-card), transparent);
}
.table-card.is-scrollable::before,
.table-card.is-scrollable::after { opacity: 1; }
.table-card.is-scrollable.at-far::before { opacity: 0; }
.table-card.is-scrollable.at-origin::after { opacity: 0; }

.accent-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-inline-end: var(--sp-2);
  vertical-align: baseline;
}
[data-accent="pine"] .accent-dot, .accent-dot[data-accent="pine"]   { background: #16695a; }
.accent-dot[data-accent="ocean"]  { background: #2b5fa8; }
.accent-dot[data-accent="plum"]   { background: #7a4ba8; }
.accent-dot[data-accent="amber"]  { background: #b07d10; }
.accent-dot[data-accent="coral"]  { background: #cd5545; }
.accent-dot[data-accent="moss"]   { background: #5c8a3a; }

/* ---------- multi-class picker (homework / exams forms) ---------- */

.class-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.class-picker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  min-height: 44px;
  border: 1px solid var(--a-line);
  border-radius: var(--radius-s);
  background: var(--a-card);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.class-picker__item:hover { border-color: var(--pine); }

.class-picker__item input[type="checkbox"],
.class-picker__item input[type="radio"] {
  width: 1.5rem;  /* 24px — WCAG 2.2 target-size minimum */
  height: 1.5rem; /* 24px */
  margin: 0;
  accent-color: var(--pine-solid);
  flex: none;
}

[data-theme="dark"] .class-picker__item { background: transparent; }

@media (max-width: 30rem) {
  .class-picker__item {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

/* shared-group hint inside admin tables */
.group-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ---------- dashboard tiles & feeds ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.tile {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
}

.tile b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.tile--pine b { color: var(--pine); }
.tile--exam b { color: var(--exam); }
.tile--muted b { color: var(--ink-soft); }

.tile span { color: var(--a-muted); font-size: 0.86rem; display: block; }
.tile small { color: var(--ink-faint); font-size: 0.76rem; }

.dash-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--sp-4);
}

.feed-card {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--radius-m);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}

.feed-card h2 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--a-line-soft);
}

.feed-card h2 svg { color: var(--pine); }
.feed-card h2 a {
  margin-inline-start: auto;
  font-size: 0.82rem;
  font-weight: 600;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed li {
  padding-block: var(--sp-2);
}

.feed li + li { border-top: 1px dashed var(--a-line-soft); }

.feed b { display: block; font-size: 0.92rem; }

.feed span {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* action row shared by forms and inline delete/edit pairs */
.modal-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.form-alert {
  background: var(--danger-tint);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-s);
  margin-bottom: var(--sp-4);
  font-size: 0.88rem;
}

/* ---------- login ---------- */

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(22, 105, 90, 0.25), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(88, 71, 189, 0.16), transparent 45%),
    var(--a-side-bg);
  padding: var(--sp-4);
}

.login-card {
  width: min(23rem, 100%);
  background: var(--a-card);
  border-radius: var(--radius-m);
  padding: var(--sp-6) var(--sp-5);
}

.login-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pine);
  margin-bottom: var(--sp-5);
}

.login-brand small {
  display: block;
  color: var(--ink-faint);
  font-weight: 500;
  font-size: 0.78rem;
}

.login-card h1 {
  font-size: 1.05rem;
  margin-bottom: var(--sp-4);
}

.login-submit { width: 100%; justify-content: center; }

/* login form mobile improvements */
@media (max-width: 30rem) {
  .login-card {
    padding: var(--sp-4) var(--sp-3);
  }
  .login-card .field {
    margin-bottom: var(--sp-3);
  }
  .login-card .field input {
    font-size: 1rem; /* prevents zoom on iOS */
  }
}

/* ---------- dark theme ---------- */

/* Every admin surface reads from the --a-* / --surface tokens, which the
   dark block in tokens.css / the top of this file re-points — so no
   per-component dark overrides are needed any more (the previous
   hardcoded #161920/#1f232b/#2c313c/#272c37 rules are gone). */

[data-theme="dark"] .class-picker__item { background: transparent; }

/* ---------- responsive ---------- */

@media (max-width: 48rem) {
  .shell { display: block; }

  .a-side {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-1) var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .a-brand { font-size: 1.05rem; padding: 0; }
  .a-brand small { display: none; }

  /* the nav wraps onto its own full-width row and scrolls horizontally,
     so the brand + theme/logout stay intact on the row above */
  .a-nav {
    flex: 1 1 100%;
    order: 3;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    position: relative;
  }

  .a-nav::-webkit-scrollbar { display: none; }
  .a-nav a { 
    white-space: nowrap; 
    padding: 0.6rem var(--sp-2); 
    min-height: 44px;
  }

  /* scroll hint on the edge that still hides nav items (same JS classes
     as .table-card; sidebar colour instead of card colour) */
  .a-nav::before,
  .a-nav::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .a-nav::before {
    inset-inline-end: 0;
    background: linear-gradient(to right, var(--a-side-bg), transparent);
  }
  .a-nav::after {
    inset-inline-start: 0;
    background: linear-gradient(to left, var(--a-side-bg), transparent);
  }
  .a-nav.is-scrollable::before,
  .a-nav.is-scrollable::after { opacity: 1; }
  .a-nav.is-scrollable.at-far::before { opacity: 0; }
  .a-nav.is-scrollable.at-origin::after { opacity: 0; }

  .a-user {
    margin: 0;
    margin-inline-start: auto;
    border: none;
    padding: 0;
  }
  .a-user-actions { gap: var(--sp-1); }
  .a-logout { padding: 0.5rem 0.75rem; min-height: 44px; }
  #who { display: none; }

  /* comfortable tap targets for table row actions on touch screens
     (~44px effective area) without enlarging desktop buttons */
  .row-actions .btn--sm {
    min-height: 44px;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .a-main { padding: var(--sp-4); }
  
  /* form cards tighter on mobile */
  .form-card {
    padding: var(--sp-3);
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}

/* ---------- ≤36rem: tables become stacked per-row cards ---------- */
/* Option B (user-approved): below 36rem every row renders as a card so
   NOTHING — including the عملیات column — needs horizontal scrolling.
   Between 36rem and 48rem the table scrolls inside its card with the
   always-visible edge fades defined above. */

@media (max-width: 36rem) {
  .table-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  .table-card::before,
  .table-card::after { display: none; }

  /* keep the header cells in the accessibility tree, just invisible */
  .data thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .data, .data tbody { display: block; }

  .data tr {
    display: block;
    background: var(--a-card);
    border: 1px solid var(--a-line);
    border-radius: var(--radius-m);
    margin-block: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
  }
  .data tbody tr:hover { background: var(--a-card); }

  .data td {
    display: flex;
    align-items: baseline;
    gap: var(--sp-3);
    padding: var(--sp-1) 0;
    border: none;
  }
  /* every cell names itself — thead is invisible, so labels travel with
     the cells (templates put data-label on each <td>) */
  .data td::before {
    content: attr(data-label);
    flex: none;
    color: var(--a-muted);
    font-size: 0.78rem;
    font-weight: 600;
  }
  .data td.cell-nowrap { white-space: normal; }
  .data td .group-hint { display: inline; }
}

/* very narrow phones (320–360px): tighter bar, still nothing clipped */
@media (max-width: 30rem) {
  .a-side { padding: var(--sp-1) var(--sp-2); }
  .a-brand { font-size: 0.95rem; }
  .a-nav { gap: 0; }
  .a-nav a { font-size: 0.85rem; padding: 0.6rem 0.5rem; min-height: 44px; }
  .a-logout { font-size: 0.78rem; padding: 0.5rem 0.6rem; min-height: 44px; }
  .a-main { padding: var(--sp-3) var(--sp-2); }
  
  .form-card { padding: var(--sp-2); }
  .tiles, .dash-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   Releases + Device Analytics (owner-only pages)
   ============================================================ */

.a-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.a-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.a-section-title svg { color: var(--pine); }

.a-subtitle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.a-subtitle svg { color: var(--a-muted); }

.a-panel {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.a-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: var(--sp-4);
}

.a-dl {
  margin: 0;
  display: grid;
  gap: 0.1rem;
}

.a-dl__row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--sp-3);
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--a-line-soft);
}

.a-dl__row:last-child { border-bottom: 0; }

.a-dl dt {
  color: var(--a-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.a-dl dd {
  margin: 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.a-head .a-range,
.a-head form.a-range {
  align-items: center;
}

.a-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--a-muted);
}

.a-range select,
.release-item-row select,
.release-item-row input {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  min-height: 44px;
  border: 1px solid var(--a-input-border);
  border-radius: var(--radius-s);
  background: var(--a-card);
  color: var(--ink);
}

.a-list-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.a-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.a-pager__current {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  border-radius: var(--radius-s);
  background: var(--pine-solid);
  color: #fffdf8;
  font-weight: 700;
  font-size: 0.85rem;
}

.a-pager__meta {
  color: var(--a-muted);
  font-size: 0.8rem;
  margin-inline-start: 0.4rem;
}

/* ---------- charts ---------- */

.a-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.a-chart {
  margin: 0;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
}

.a-chart figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.a-chart figcaption span {
  color: var(--a-muted);
  font-size: 0.78rem;
}

.a-chart figcaption .a-chart__total {
  margin-inline-start: auto;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.a-chart svg {
  display: block;
  width: 100%;
  height: 10.5rem;
}

.a-chart__axis-line { stroke: var(--a-line); stroke-width: 1; }

.a-chart__line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.a-chart__dot { fill: var(--a-card); stroke-width: 1.5; }

.a-chart--pine .a-chart__line,
.a-chart--pine .a-chart__dot { stroke: var(--pine); }
.a-chart--pine .a-chart__dot { fill: var(--pine); }
.a-chart--pine .a-chart__stop-a { stop-color: var(--pine); }
.a-chart--pine .a-chart__stop-b { stop-color: var(--pine); stop-opacity: 0; }

.a-chart--exam .a-chart__line,
.a-chart--exam .a-chart__dot { stroke: var(--exam); }
.a-chart--exam .a-chart__dot { fill: var(--exam); }
.a-chart--exam .a-chart__stop-a { stop-color: var(--exam); }
.a-chart--exam .a-chart__stop-b { stop-color: var(--exam); stop-opacity: 0; }

.a-chart--danger .a-chart__line,
.a-chart--danger .a-chart__dot { stroke: var(--danger); }
.a-chart--danger .a-chart__dot { fill: var(--danger); }
.a-chart--danger .a-chart__stop-a { stop-color: var(--danger); }
.a-chart--danger .a-chart__stop-b { stop-color: var(--danger); stop-opacity: 0; }

.a-chart__area { opacity: 0.22; }

.a-chart__axis {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--a-muted);
  font-size: 0.72rem;
}

.a-chart__empty {
  color: var(--a-muted);
  font-size: 0.85rem;
  padding: var(--sp-4) 0;
  text-align: center;
}

.a-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.a-bars li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.a-bars__label {
  flex: 0 0 7.5rem;
  color: var(--a-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-bars__track {
  flex: 1;
  height: 0.5rem;
  background: var(--a-line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.a-bars__track span {
  display: block;
  height: 100%;
  background: var(--pine);
  border-radius: inherit;
}

.a-bars__value {
  flex: 0 0 2.6rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
}

.a-error-message {
  display: block;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

/* ---------- release item repeater ---------- */

.release-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.release-item-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1.1fr) minmax(0, 1.5fr) 44px;
  gap: 0.5rem;
  align-items: center;
}

.release-item-row input { width: 100%; }

.release-item-remove { justify-self: end; }

@media (max-width: 48rem) {
  .release-item-row { grid-template-columns: 1fr; }
  .release-item-remove { justify-self: start; }
  .a-dl__row { grid-template-columns: 1fr; gap: 0.1rem; }
  .a-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 36rem) {
  .a-bars__label { flex-basis: 5.5rem; }
  .a-chart svg { height: 8.5rem; }
}
