:root {
  --bg: #f4f1ea;
  --bg-card: #fffdf8;
  --ink: #1c1a16;
  --muted: #5c574e;
  --line: #ddd6c8;
  --accent: #1f4d3a;
  --accent-hover: #163828;
  --accent-soft: #e4efe9;
  --danger: #8b2e2e;
  --danger-soft: #f6e4e4;
  --warn: #8a5a12;
  --warn-soft: #f7edd8;
  --ok: #1f4d3a;
  --ok-soft: #e4efe9;
  --radius: 12px;
  --shadow: none;
  --font: "Segoe UI", "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-main { flex: 1; padding: 28px 0 48px; }
.muted { color: var(--muted); }

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.logo-text {
  font-size: 18px;
  line-height: 1;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.site-nav a { color: var(--ink); }
.site-nav a.is-active { font-weight: 700; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  padding: 28px 0 8px;
}
.hero h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; max-width: 42rem; }

.about-card { padding: 0; overflow: hidden; }
.about-card__layout {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 3fr;
  gap: 0;
  align-items: stretch;
}
.about-card__photo {
  margin: 0;
  background: #e8e4dc;
}
.about-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center center;
}
.about-card__photo figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}
.about-card__content {
  padding: 24px;
}
.about-card__content h2 { margin-top: 0; }
.rich-content {
  font-size: 15px;
  line-height: 1.55;
}
.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 0.75em; }
.rich-content ul,
.rich-content ol { margin: 0 0 0.75em; padding-left: 1.25em; }
.rich-content a { font-weight: 600; }
.rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 8px;
}
.news-body.rich-content img { margin: 16px 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card h2, .card h3 { margin-top: 0; }

.balance-card {
  padding: 28px 24px;
}
.balance-card .label { color: var(--muted); margin: 0 0 6px; }
.balance-card .amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.balance-card.is-debt .amount { color: var(--danger); }
.balance-card.is-advance .amount,
.balance-card.is-overpay .amount { color: var(--ok); }
.balance-card.is-zero .amount { color: var(--ink); }

.cabinet-profile {
  display: flex;
  align-items: center;
  gap: 20px 24px;
  padding: 24px 28px;
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cabinet-profile__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cabinet-profile__body { min-width: 0; }
.cabinet-profile__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cabinet-profile__name {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cabinet-profile__phone {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.cabinet-profile__phone a {
  color: var(--ink);
  text-decoration: none;
}
.cabinet-profile__phone a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.balance-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 4px;
}
.balance-split__item .label { margin-bottom: 4px; }
.balance-split__amount {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.balance-split__amount.is-debt { color: var(--danger); }
.balance-split__amount.is-advance { color: var(--ok); }

.charge-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}
.charge-amount__due {
  font-weight: 600;
  color: var(--danger);
}
.charge-pay-breakdown {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.charge-pay-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.charge-pay-breakdown__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}
.charge-pay-breakdown__row dd {
  margin: 0;
  text-align: right;
}
.charge-pay-breakdown__row dd.is-advance {
  color: var(--ok);
}
.charge-pay-breakdown__row--total dt {
  font-weight: 600;
  color: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.btn, button.btn, input[type="submit"].btn, input[type="submit"] {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn:hover, input[type="submit"]:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn-block { width: 100%; }
.btn-secondary, a.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #6e2323; }
.btn[disabled], input[type="submit"][disabled] { opacity: 0.55; cursor: not-allowed; }
.inline-form { display: inline; }
button.linkish {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
button.linkish:hover { color: var(--accent-hover); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-req {
  color: var(--danger);
  font-weight: 700;
  text-decoration: none;
  margin-left: 2px;
}
.field-opt {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
.form-row {
  display: grid;
  gap: 12px 16px;
  margin-bottom: 0;
}
.form-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-row > .field { margin-bottom: 14px; }
.input, select, textarea, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"], input[type="file"] {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 90px; }
.field-check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field-check label { margin: 0; font-weight: 500; }
.field-error { color: var(--danger); font-size: 14px; margin: 6px 0 0; }
.field.is-invalid > label:first-child { color: var(--danger); }
.input.is-invalid,
select.is-invalid,
textarea.is-invalid,
input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
}
.input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus,
input.is-invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent);
}
.field-check.is-invalid .checkbox.is-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 1px;
}
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.data th, table.data td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { color: var(--muted); font-weight: 600; font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
  background: var(--line);
}
.badge-wait {
  background: #f3f0e8;
  color: var(--muted);
  border-color: var(--line);
}
.badge-pending {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #e8c887;
  box-shadow: inset 0 0 0 1px rgba(138, 90, 18, 0.08);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #c5d9ce; }
.badge-bad { background: var(--danger-soft); color: var(--danger); border-color: #e3c4c4; }
.badge-mute { background: var(--line); color: var(--muted); border-color: #d4cdc0; }

table.data tr.is-pending {
  background: #fffaf0;
}
table.data tr.is-pending td {
  border-bottom-color: #efe4cf;
}
table.data td.col-status {
  white-space: nowrap;
}
table.data td.col-actions {
  white-space: nowrap;
  text-align: right;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.flash-error, .flash-danger { background: var(--danger-soft); border-color: #e3c4c4; }
.flash-success { background: var(--ok-soft); border-color: #c5d9ce; }
.flash-info, .flash-message { background: #fff; }

.empty { color: var(--muted); padding: 12px 0; }

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.qr-box img {
  width: min(100%, 320px);
  height: auto;
  min-width: 260px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
}
.requisites-card { padding: 20px 22px; }
.requisites-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px 28px;
  align-items: center;
}
.requisites-layout.is-solo { grid-template-columns: 1fr; }
.requisites-table {
  margin: 0;
  display: grid;
  gap: 0;
}
.requisites-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.requisites-row:last-child { border-bottom: 0; padding-bottom: 0; }
.requisites-row:first-child { padding-top: 0; }
.requisites-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.requisites-row dd {
  margin: 0;
  font-size: 15px;
  word-break: break-word;
}
.requisites-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
.requisites-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.requisites-qr img {
  display: block;
  width: 176px;
  height: 176px;
  background: #fff;
}
.requisites-qr p {
  margin: 0;
  font-size: 12px;
  text-align: center;
}

.stat { font-size: 28px; font-weight: 700; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters .input, .filters select { width: auto; min-width: 160px; }
.audit-filters .field-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.audit-filters .field-inline .label {
  margin: 0;
  white-space: nowrap;
}
.filters__dates {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sms-log-text {
  white-space: normal;
  word-break: break-word;
}
.sms-log-error {
  margin: 6px 0 0;
  font-size: 13px;
}
table.data.sms-log-table {
  min-width: 960px;
}
table.data.sms-log-table th,
table.data.sms-log-table td {
  vertical-align: top;
}
table.data.sms-log-table .col-when,
table.data.sms-log-table .col-status,
table.data.sms-log-table .col-phone,
table.data.sms-log-table .col-period {
  white-space: nowrap;
  width: 1%;
}
table.data.sms-log-table .col-owner {
  min-width: 10rem;
}
table.data.sms-log-table .sms-log-text {
  min-width: 14rem;
  max-width: 24rem;
  white-space: normal;
  word-break: break-word;
}
.page-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.page-head h1 { margin: 0; font-size: 26px; }
.page-head h2 { margin: 0; }
.page-head__title,
.page-head > h1,
.page-head > h2 {
  flex: 1 1 auto;
  min-width: 0;
}
.page-head__title .muted {
  margin: 4px 0 0;
}
.page-head__actions {
  flex: 0 0 auto;
  display: flex;
  flex-flow: row nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}
.page-head__actions > .btn,
.page-head__actions > a.btn,
.page-head__actions > button.btn,
.page-head__actions > input[type="submit"].btn,
.page-head > a.btn {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  white-space: nowrap;
}
.card > .page-head {
  margin-bottom: 12px;
}
.home-section { margin: 28px 0 8px; }
.home-section .grid { align-items: stretch; }
.card-news {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}
.card-news__excerpt { flex: 1 1 auto; margin-bottom: 0; }
.card-news__actions {
  margin-top: auto;
  padding-top: 16px;
  margin-bottom: 0;
}
.news-item__title {
  color: inherit;
  text-decoration: none;
}
.news-item__title:hover {
  color: var(--accent);
}
.news-excerpt {
  line-height: 1.65;
  margin-bottom: 0;
}
.card-news-list .stack-actions {
  margin-top: 16px;
  margin-bottom: 0;
}
.article-back {
  margin: 0 0 12px;
  font-size: 15px;
}
.article-back a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.article-back a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.article-card { margin-bottom: 0; }
.news-body {
  line-height: 1.65;
  font-size: 17px;
}
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}
.article-nav > .btn,
.article-nav > a.btn {
  flex: 0 0 auto;
  width: auto;
}
.facts {
  display: grid;
  gap: 12px 24px;
  margin: 16px 0 0;
}
.facts > div { margin: 0; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.facts dd { margin: 2px 0 0; }
.facts__link {
  display: inline-block;
  margin-left: 8px;
  font-size: 14px;
}
.doc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 20px;
}
.doc-filters a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.doc-filters a:hover { color: var(--text); }
.doc-filters a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent, #1a5f4a);
  font-weight: 600;
}
.doc-item__meta { margin: 0 0 12px; font-size: 13px; }
.doc-list__meta { font-size: 13px; }
.doc-item__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 12px;
}
.doc-item__head h2 { margin: 0; }
.doc-item__actions { margin: 0 0 12px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.doc-list li:last-child { border-bottom: 0; }
.doc-list__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.doc-list__date { font-size: 13px; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 20px 0 8px;
}
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: stretch;
}
.stack-actions > .btn,
.stack-actions > button.btn,
.stack-actions > input[type="submit"].btn,
.stack-actions > a.btn {
  flex: 1 1 8rem;
  text-align: center;
}
.page-head .page-head__actions {
  margin-top: 0;
}
.page-head .page-head__actions > .btn,
.page-head .page-head__actions > a.btn,
.page-head .page-head__actions > button.btn,
.page-head .page-head__actions > input[type="submit"].btn,
.page-head > a.btn {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.reading-history {
  margin-top: 24px;
}

.manage-body .site-header {
  background: #1c1a16;
  border-bottom-color: rgba(244, 241, 234, 0.12);
}
.manage-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}
.manage-header__account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.manage-header__account a {
  color: #f4f1ea;
  white-space: nowrap;
}
.manage-header__nav {
  padding: 10px 0 12px;
}
.manage-header__nav-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.manage-body .logo,
.manage-body .site-nav a {
  color: #f4f1ea;
}
.manage-body .logo-mark {
  background: #c5a35a;
  color: #1c1a16;
}
.manage-body .nav-toggle {
  border-color: rgba(244, 241, 234, 0.35);
  color: #f4f1ea;
  flex-shrink: 0;
  margin-top: 2px;
}
.manage-body .site-nav {
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.manage-body .site-nav a {
  white-space: nowrap;
}
.manage-body .site-nav a.is-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cards-mobile { display: none; }

@media (max-width: 760px) {
  .requisites-layout {
    grid-template-columns: 1fr;
  }
  .requisites-qr {
    justify-self: center;
    width: min(100%, 220px);
  }
  .requisites-row {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .manage-header__top { align-items: flex-start; }
  .manage-header__nav-inner { flex-wrap: wrap; }
  .manage-body .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 4px;
  }
  .manage-body .site-nav.is-open { display: flex; }
  .hero h1 { font-size: 26px; }
  .about-card__layout { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .about-card__photo img {
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: center 40%;
  }
  .balance-card .amount { font-size: 32px; }
  .cabinet-profile {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .cabinet-profile__avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
  .cabinet-profile__name { font-size: 26px; }
  .cabinet-profile__phone { font-size: 18px; }
  .btn, input[type="submit"] { width: 100%; }
  body:not(.manage-body) .page-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  body:not(.manage-body) .page-head__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  body:not(.manage-body) .page-head .page-head__actions > .btn,
  body:not(.manage-body) .page-head .page-head__actions > a.btn,
  body:not(.manage-body) .page-head > a.btn {
    width: auto;
  }
  .manage-body .page-head__actions > .btn,
  .manage-body .page-head__actions > a.btn,
  .manage-body .page-head__actions > button.btn,
  .manage-body .page-head__actions > input[type="submit"].btn {
    width: auto;
  }
  table.data.responsive thead { display: none; }
  table.data.responsive tr { display: block; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--bg-card); }
  table.data.responsive td { display: flex; justify-content: space-between; gap: 12px; border-bottom: 0; }
  table.data.responsive td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}

/* Админка: заголовок слева, кнопки справа в одной строке. */
.manage-body .page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
}
.manage-body .page-head__title,
.manage-body .page-head > h1,
.manage-body .page-head > h2 {
  min-width: 0;
}
.manage-body .page-head__actions {
  width: auto;
  margin-left: 0;
  flex-flow: row nowrap;
  justify-content: flex-end;
}
.manage-body .page-head__actions > .btn,
.manage-body .page-head__actions > a.btn {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
