:root {
  --bg: #f6f8f7;
  --card: #ffffff;
  --ink: #1d2a2b;
  --muted: #5f6f70;
  --line: #dfe6e4;
  --brand: #1f7a6d;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ee;
  --warn: #b7791f;
  --warn-soft: #fbf1df;
  --bad: #b23a48;
  --bad-soft: #f9e4e7;
  --ok: #2f855a;
  --ok-soft: #e2f3e9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 720px; }

/* header */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .container { display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--brand); text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; }
.nav a.active, .nav a:hover { background: var(--brand-soft); color: var(--brand); }

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { margin-bottom: .75rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; font-size: 1rem; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { filter: brightness(.95); }
.btn.secondary { background: var(--card); color: var(--brand); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: .9rem; }
.btn.block { width: 100%; }
button.linklike { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* forms */
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 14px; }
.help { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.errorlist { color: var(--bad); margin: 4px 0 0; padding-left: 18px; font-size: .9rem; }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; background: var(--brand-soft); color: var(--brand); }
.messages li.error { background: var(--bad-soft); color: var(--bad); }
.messages li.info { background: var(--warn-soft); color: var(--warn); }
.messages li.success { background: var(--ok-soft); color: var(--ok); }

/* badges & levels */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.lvl-low { background: var(--ok-soft); color: var(--ok); }
.lvl-mid { background: var(--warn-soft); color: var(--warn); }
.lvl-high { background: var(--bad-soft); color: var(--bad); }
.lvl-none { background: var(--line); color: var(--muted); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.num { text-align: right; white-space: nowrap; }

/* board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.column { background: #eef2f1; border-radius: var(--radius); padding: 10px; min-height: 200px; }
.column h3 { font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: block; text-decoration: none; color: var(--ink); }
.ticket:hover { border-color: var(--brand); }
.ticket .name { font-weight: 600; }
.ticket .action { color: var(--warn); font-size: .85rem; margin-top: 4px; }

/* progress */
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }

/* questionnaire */
.q-chapters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.q-chapters a { font-size: .8rem; padding: 4px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.q-chapters a.done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.q-chapters a.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.q-section { margin-bottom: 20px; }
.q-section h3 { padding: 8px 0; border-bottom: 2px solid var(--brand-soft); margin-bottom: 8px; }
.q-group { font-weight: 600; color: var(--muted); margin: 14px 0 6px; font-size: .9rem; }
.q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.q .text { margin-bottom: 8px; }
.q .num { color: var(--muted); font-size: .85rem; margin-right: 6px; text-align: left; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { flex: 1 1 auto; margin: 0; font-weight: 500; }
.opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.opts span { display: block; text-align: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; min-height: 44px; }
.opts input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.opts input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.opts.vertical { flex-direction: column; }
.opts.grid2 label { flex: 1 1 calc(50% - 3px); }
.opts.vertical span { text-align: left; }
.q.unanswered .text::after { content: " •"; color: var(--warn); }
.savebar { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 16px -16px -16px; border-radius: 0 0 var(--radius) var(--radius); }
.savestatus { font-size: .85rem; color: var(--muted); }
.savestatus.err { color: var(--bad); }

/* legal texts */
.legal { white-space: pre-wrap; font-size: .92rem; background: #fbfcfb; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 260px; overflow: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }

.copybox { display: flex; gap: 8px; align-items: center; }
.copybox input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.timeline li { margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }
footer { color: var(--muted); font-size: .8rem; text-align: center; padding: 24px 0; }

/* verification */
.verify-grid { display: grid; grid-template-columns: minmax(260px, 36%) 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .verify-grid { grid-template-columns: 1fr; } }
.pages { max-height: 80vh; overflow: auto; padding: 8px; }
.pages img { width: 100%; border: 1px solid var(--line); margin-bottom: 8px; }
#results input, #results select { min-height: 34px; padding: 4px 8px; font-size: .9rem; }
#results td:nth-child(1) input { min-width: 170px; }
#results select { min-width: 150px; }
#results td { padding: 4px 6px; }
tr.unmatched-row td:first-child input { border-color: var(--warn); }

/* ai report */
.ai-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ai-item .ai-body { flex: 1; min-width: 0; }
.ai-item.rejected .ai-body { text-decoration: line-through; color: var(--muted); }
.ai-item .js-reject { flex: none; }
.ai-item.rejected .js-reject { border-color: var(--bad); color: var(--bad); }
.md h2 { font-size: 1.05rem; margin-top: 16px; border-bottom: 2px solid var(--brand-soft); padding-bottom: 4px; }
.md ul { padding-left: 20px; }
tr.section-row td { background: var(--bg, #f6f7f9); color: var(--muted, #667); font-size: 12px; letter-spacing: .02em; padding-top: 10px; }

/* lab history: analyte × sampling date, first column and «current» pinned */
table.history { font-size: .9rem; }
table.history th, table.history td { padding: 5px 8px; white-space: nowrap; }
table.history th:first-child, table.history td:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; white-space: normal; min-width: 180px; max-width: 280px; }
table.history th.current, table.history td.current { background: var(--brand-soft, #e3f1ee); border-left: 2px solid var(--brand); }
table.history tr.section-row td { position: static; }
table.history .val { padding: 1px 6px; border-radius: 6px; }
table.history .val.txt { white-space: normal; display: inline-block; max-width: 170px; text-align: left; }
table.history .opt { color: var(--brand); margin-left: 3px; font-size: .8rem; }
table.history th.optimum, table.history td.optimum { color: var(--brand); border-right: 1px dashed var(--line); max-width: 120px; white-space: normal; }
table.history td.optimum a { text-decoration: underline dotted; }
table.history td.optimum .opt-range { font-weight: 600; }
table.history tr.unmatched td:first-child { color: var(--muted); font-style: italic; }

/* dictionary of optimal ranges: bulk form, sex columns toggle, sticky save bar */
table.dict { font-size: .9rem; }
table.dict th, table.dict td { padding: 5px 5px; vertical-align: middle; }
table.dict td.name { min-width: 220px; max-width: 300px; }
table.dict .sex { display: none; }
table.dict.show-sex .sex { display: table-cell; }
table.dict input.bound { width: 62px; min-height: 34px; padding: 4px 6px; text-align: right; }
table.dict input.note { min-width: 170px; min-height: 34px; padding: 4px 8px; }
table.dict input.changed { border-color: var(--warn); background: var(--warn-soft); }
table.dict tr.draft td { background: #fffaf0; }
table.dict tr.target td { box-shadow: inset 0 0 0 2px var(--brand); }
table.dict tr.section-row td { background: var(--bg, #f6f7f9); }
.nowrap { white-space: nowrap; }
.savebar { position: sticky; bottom: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-top: 10px; z-index: 5; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.filters label { display: flex; flex-direction: column; gap: 4px; }
.filters select, .filters input[type=text] { min-height: 36px; padding: 6px 10px; width: auto; }
label.check { flex-direction: row !important; align-items: center; gap: 6px; }
label.check input { width: auto; min-height: 0; margin: 0; }
.howto h3 { margin: 12px 0 4px; font-size: 1rem; }
.howto p, .howto li { margin-bottom: 6px; }
.howto ol { padding-left: 22px; }

/* справочник: качественные показатели и добавленные врачом */
.dict td.qual-cell { text-align: center; font-style: italic; opacity: .75; }
#add-analyte form label { display: inline-block; }

/* переписка врач ↔ пациент */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px 2px; }
.thread .msg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; max-width: 80%; }
.thread .msg.mine { align-self: flex-end; background: var(--accent-soft, #eef5f3); }
.thread .msg.theirs { align-self: flex-start; background: var(--bg, #fff); }
.thread .msg .text { white-space: pre-wrap; margin-top: 2px; }
@media (max-width: 720px) { .thread .msg { max-width: 100%; } }
.summary-note { border-left: 3px solid var(--brand, #1F6B5C); background: var(--accent-soft, #eef5f3);
  padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 10px 0 14px; }

/* строка учёта оплаты: поля рядом, а не во всю ширину */
.payrow label { display: inline-block; }
.payrow input, .payrow select { width: auto; min-height: 40px; padding: 6px 10px; }
.paycell { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.paycell select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .85rem; }

/* ---------------------------------------------------------------------------
   Публичная страница записи: три панели — специалист, календарь, время.
   Ширина колонок фиксирована на десктопе и схлопывается в одну на телефоне.
   --------------------------------------------------------------------------- */
.bk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
      overflow: hidden; display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(320px, 1fr) 190px; }
.bk > * + * { border-left: 1px solid var(--line); }
.bk-side { padding: 0 0 22px; }
.bk-band { height: 96px; background: linear-gradient(120deg, var(--brand) 0%, #2f9b8a 100%); }
.bk-avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--card); border: 3px solid var(--card);
             margin: -34px 0 12px 22px; display: flex; align-items: center; justify-content: center;
             color: var(--brand); background-color: var(--brand-soft); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.bk-side .bk-body { padding: 0 22px; }
.bk-eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.bk-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bk-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand);
           border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; }
.bk-chip svg { width: 14px; height: 14px; flex: none; }
.bk-intro { color: var(--muted); margin: 0; white-space: pre-line; }

.bk-cal { padding: 18px 20px 16px; display: flex; flex-direction: column; }
.bk-calhead { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bk-month { font-weight: 700; font-size: 1.02rem; margin-left: 2px; }
.bk-nav { margin-left: auto; display: flex; gap: 6px; }
.bk-nav a, .bk-nav span { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-size: 1rem; }
.bk-nav a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.bk-nav span { color: var(--line); }
.bk-today { border: 0; background: var(--brand); color: var(--brand-ink); border-radius: 8px; padding: 6px 12px;
            font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none; }
.bk-today.off { background: var(--brand-soft); color: var(--brand); }

.bk-dow, .bk-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-dow { margin-bottom: 6px; }
.bk-dow span { text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase;
               letter-spacing: .05em; color: var(--muted); }
.bk-week + .bk-week { margin-top: 4px; }
.bk-day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 9px;
          font-size: .95rem; color: var(--muted); border: 1px solid transparent; }
.bk-day.out { color: #c3cdcb; }
.bk-day.free { color: var(--ink); font-weight: 700; background: var(--brand-soft); border-color: transparent; text-decoration: none; }
.bk-day.free:hover { border-color: var(--brand); }
.bk-day.today { box-shadow: inset 0 0 0 1px var(--brand); }
.bk-day.on { background: var(--brand); color: var(--brand-ink); }

.bk-tz { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-tz svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.bk-tz label { margin: 0; font-weight: 400; color: var(--muted); font-size: .85rem; }
.bk-tz select { width: auto; max-width: 100%; min-height: 36px; padding: 5px 10px; font-size: .85rem;
                border-radius: 8px; background: var(--brand-soft); border-color: transparent; color: var(--brand); font-weight: 600; }

.bk-times { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.bk-times .bk-daylabel { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
                         letter-spacing: .05em; margin-bottom: 2px; }
.bk-time { display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 9px;
           text-decoration: none; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-time:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.bk-times .empty { color: var(--muted); font-size: .9rem; }

/* выбранный слот на форме заявки */
.bk-slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.bk-slot strong { font-size: 1.15rem; }

@media (max-width: 900px) {
  .bk { grid-template-columns: 1fr; }
  .bk > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .bk-times { max-height: none; }
  .bk-times .bk-timegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
}
@media (min-width: 901px) { .bk-times .bk-timegrid { display: contents; } }

/* --- Экспресс-анкета: виды вопросов кроме шкалы (number, text, choice, multi, rows) --------------------------- */
.q .req { color: var(--warn); font-weight: 700; }
.q-hint { color: var(--muted); font-size: .85rem; margin: -2px 0 8px; }
.q-off { display: none; }
/* В анкете сбора данных пропущенный вопрос — норма, поэтому пометка «ждём ответа» остаётся только у обязательных.
   В шкальных опросниках, где важен каждый ответ, она по-прежнему стоит у всех незаполненных. */
.q-unscored .q.unanswered .text::after { content: none; }
.q-unscored .q.unanswered[data-required] .text::after { content: " •"; color: var(--warn); }
.q-missing { background: var(--warn-soft, #fff6e5); border-radius: 10px; box-shadow: 0 0 0 8px var(--warn-soft, #fff6e5); }
/* Поле «другое» живёт внутри .opts, где сами переключатели спрятаны, — возвращаем ему обычный вид. */
.opts input.q-other, .opts input[type=text] { position: static; opacity: 1; width: 100%; height: auto; margin-top: 2px; }
.q-multi .opts input:checked + span::before { content: "✓ "; }
.q-num { display: flex; align-items: center; gap: 8px; }
.q-num input { max-width: 180px; }
.q-num .unit { color: var(--muted); font-size: .9rem; }
.q-table table { margin: 0; }
.q-table th, .q-table td { padding: 4px 6px 4px 0; border-bottom: 0; }
.q-table th.wide, .q-table td.wide { min-width: 160px; }
.q-table input { min-height: 40px; }
.q-table th.rm, .q-table td.rm { width: 32px; padding-right: 0; }
.q-table .rowdel { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 6px; min-height: 40px; }
.q-table .rowdel:hover { color: var(--warn); }
.q-table .rowadd { margin-top: 6px; }
@media (max-width: 600px) {
  .q-num input { max-width: 120px; }
  /* На телефоне строка таблицы разворачивается в карточку с подписями: горизонтальная прокрутка на обязательном
     поле — верный способ не получить «кто назначил» и «как долго». */
  .q-table table, .q-table tbody, .q-table tr, .q-table td { display: block; width: auto; }
  .q-table thead { display: none; }
  .q-table tr { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 8px 32px 8px 8px; margin-bottom: 8px; }
  .q-table td { padding: 0 0 6px; }
  .q-table td:last-of-type { padding-bottom: 0; }
  .q-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .8rem; margin-bottom: 2px; }
  .q-table td.rm { position: absolute; top: 6px; right: 4px; width: auto; padding: 0; }
  .q-table td.rm::before { content: none; }
}

/* --- Справочник БАД: вставка препарата в рекомендации ------------------------------------------ */
.sup-picker { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.sup-picker summary { font-weight: 600; cursor: pointer; }
.sup-picker .row.wrap { flex-wrap: wrap; gap: 6px; }
.sup-add { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Привязка несопоставленной строки прямо в хронологии карточки ------------------------------ */
/* Врач видит несопоставленную строку здесь — здесь же она и должна её разбирать, не возвращаясь к бланку. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link-raw { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.link-raw select { max-width: 230px; font-size: 12px; padding: 2px 4px; }
@media (max-width: 720px) { .link-raw select { max-width: 100%; } }

/* --- Разбор показателей по группам ------------------------------------------------------------- */
.mv { vertical-align: baseline; margin-right: 4px; }
#move-form { margin-top: 12px; }
.groups-table .row { flex-wrap: nowrap; }
.groups-table td { padding-top: 6px; padding-bottom: 6px; }
.g-name { width: 230px; max-width: 100%; }
@media (max-width: 720px) { .groups-table .row { flex-wrap: wrap; } .g-name { width: 100%; } }
