/* ============================================================
   Дизайн-система панели рассылок.
   Метафора — диспетчерская: тёплый тёмный пульт слева, рабочий
   мягкий стол справа, один акцент для действия «отправить»
   и строгие семантические цвета статусов доставки.
   ============================================================ */

:root {
  --ink:        #241b22;   /* пульт / заголовки */
  --ink-soft:   #33252d;
  --paper:      #fbf6f5;   /* рабочий стол */
  --surface:    #ffffff;   /* карточки */
  --line:       #eadcda;   /* волосяные линии */
  --text:       #20222b;
  --muted:      #7b6f73;

  --accent:     rgba(205, 116, 115, 1);
  --accent-ink: #a95251;
  --accent-bg:  #faeeee;

  --sent:  #1f9d5c;  --sent-bg:  #e6f4ec;
  --open:  #2563eb;  --open-bg:  #e6eefb;
  --wait:  #b97f12;  --wait-bg:  #f8efdc;
  --fail:  #d6453f;  --fail-bg:  #fbe8e7;

  --r:    10px;
  --shadow: 0 1px 2px rgba(45,28,34,.05), 0 12px 30px -20px rgba(75,36,42,.32);
  --font-ui:   'Inter', system-ui, sans-serif;
  --font-disp: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    linear-gradient(180deg, #fffafa 0, var(--paper) 260px),
    var(--paper);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Каркас ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, #2b2028 0%, var(--ink) 100%);
  color: #cdd0db;
  display: flex; flex-direction: column;
  padding: 22px 14px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 24px; min-width: 0; }
.brand__logo { display: block; width: 202px; max-width: 100%; height: auto; }
.brand__mark { color: var(--accent); display: inline-flex; width: 22px; height: 22px; filter: drop-shadow(0 0 10px rgba(205,116,115,.45)); }
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 8px;
  color: #aeb2c0; text-decoration: none; font-weight: 500;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s;
}
.nav__item .icon { opacity: .85; }
.nav__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__item.is-active { background: rgba(205,116,115,.16); color: #fff; border-left-color: var(--accent); }
.nav__item.is-active .icon { opacity: 1; }
.sidebar__foot { margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: #565a6b; padding: 0 11px; }

.content { padding: 26px 34px 60px; max-width: 1180px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.topbar__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h1 { font-family: var(--font-disp); font-weight: 700; font-size: 25px; margin: 0; letter-spacing: 0; min-width: 0; overflow-wrap: anywhere; }
.mobile-nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow);
}
.mobile-nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .24s ease, opacity .24s ease;
}
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(36,27,34,.56);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.sidebar-overlay.is-open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------- Флеш ---------- */
.flash {
  padding: 11px 14px; border-radius: var(--r); margin-bottom: 16px;
  font-weight: 500; border: 1px solid transparent;
}
.flash--ok    { background: var(--sent-bg); color: #14633a; border-color: #bfe3cd; }
.flash--error { background: var(--fail-bg); color: #9c2420; border-color: #f1c4c2; }
.flash--info  { background: var(--accent-bg); color: var(--accent-ink); border-color: #d8cefb; }

/* ---------- Карточки ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.card:hover { box-shadow: 0 2px 4px rgba(45,28,34,.05), 0 18px 38px -26px rgba(75,36,42,.42); }
.card__head {
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.card__head h2 { font-family: var(--font-disp); font-size: 16px; margin: 0; font-weight: 600; }
.card__body { padding: 18px; }
.grid { display: grid; gap: 16px; }

/* ---------- Метрики ---------- */
.stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.stat::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), #efc0bf); opacity: .72; }
.stat__label { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.stat__value { font-family: var(--font-disp); font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -.5px; }
.stat__value small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat--accent .stat__value { color: var(--accent); }

/* ---------- Таблицы ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fff8f7; }
.check-cell { width: 42px; text-align: center; }
.mono { font-family: var(--font-mono); font-size: 13px; }

/* ---------- Бейджи статусов ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--sent   { color: var(--sent); background: var(--sent-bg); }
.badge--opened { color: var(--open); background: var(--open-bg); }
.badge--draft, .badge--pending, .badge--paused { color: var(--wait); background: var(--wait-bg); }
.badge--sending { color: var(--accent); background: var(--accent-bg); }
.badge--failed, .badge--bounced { color: var(--fail); background: var(--fail-bg); }
.badge--active { color: var(--sent); background: var(--sent-bg); }
.badge--unsubscribed { color: var(--muted); background: #eee; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; font: inherit; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #fff8f7; border-color: #dfc5c2; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--danger { color: var(--fail); border-color: #f1c4c2; }
.btn--danger:hover { background: var(--fail-bg); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 6px 10px; }
.btn--ghost:hover { background: #f8e9e8; color: var(--accent-ink); }
.btn--sm { padding: 6px 11px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Формы ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 5px; }
.input, .textarea, .select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: var(--surface); color: var(--text);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg);
}
.textarea { resize: vertical; min-height: 120px; }
.textarea--code { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; min-height: 320px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack-form { min-height: 100%; display: flex; flex-direction: column; }
.stack-form .btn[type="submit"] { align-self: flex-start; margin-top: auto; }
.contacts-import-grid { align-items: stretch; }
.contacts-import-grid > .card { display: flex; flex-direction: column; }
.contacts-import-grid > .card > .card__body { flex: 1; }
.contacts-import-grid .textarea { min-height: 120px; }

/* ---------- Прочее ---------- */
.muted { color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar > div:first-child { min-width: 220px; }
.table-actions { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: flex-end; }
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty__icon { display: inline-flex; color: var(--accent); opacity: .65; }
.empty__icon .icon { width: 38px; height: 38px; stroke-width: 1.8; }
.empty h3 { font-family: var(--font-disp); color: var(--text); margin: 12px 0 4px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-family: var(--font-mono); font-size: 12px; background: var(--accent-bg); color: var(--accent-ink); padding: 2px 7px; border-radius: 5px; }

/* ---------- Дашборд ---------- */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid--bottom { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr); align-items: start; }
.bar-chart { height: 220px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; padding-top: 10px; }
.bar-chart__day { min-width: 0; }
.bar-chart__bars { height: 172px; display: flex; align-items: end; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line); }
.bar-chart__bar { width: 11px; border-radius: 999px 999px 2px 2px; }
.bar-chart__bar--sent { background: var(--accent); }
.bar-chart__bar--open { background: var(--open); }
.bar-chart__bar--fail { background: var(--fail); }
.bar-chart__label { margin-top: 8px; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--sent { background: var(--accent); }
.dot--open { background: var(--open); }
.dot--fail { background: var(--fail); }
.donut {
  --value: 0;
  width: 178px; aspect-ratio: 1; border-radius: 50%; margin: 4px auto 18px;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), #f0dddd 0);
}
.donut > div {
  width: 122px; aspect-ratio: 1; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; align-content: center; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.donut strong { font-family: var(--font-disp); font-size: 30px; color: var(--accent); line-height: 1; }
.donut span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.metric-list { display: grid; gap: 8px; }
.metric-list div { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.metric-list span { color: var(--muted); }
.metric-list b { font-family: var(--font-mono); }
.leader-list { padding: 8px; display: grid; gap: 6px; }
.leader { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.leader:hover { background: #fff8f7; }
.leader strong { display: block; }
.leader span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.leader b { color: var(--accent); font-family: var(--font-disp); font-size: 22px; }

/* ---------- Импорт и отчёты ---------- */
.file-import {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.file-import__field { min-width: 0; margin-bottom: 0; }
.file-import .btn { align-self: start; margin-top: 27px; min-height: 43px; white-space: nowrap; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-picker__item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff8f7; font-weight: 600; cursor: pointer;
}
.tag-picker__item input { accent-color: var(--accent); }
.tag-picker__item:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-ink); }
.report-head { gap: 12px; }
.report-filters { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff8f7; flex-wrap: wrap; }
.segmented__item { padding: 6px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.segmented__item:hover { color: var(--accent-ink); }
.segmented__item.is-active { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(45,28,34,.08); }
.report-search { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; justify-content: flex-end; }
.report-search .input { max-width: 320px; }
.attachment-row { display: flex; align-items: center; gap: 8px; }
.attachment-row + .attachment-row { margin-top: 7px; }
.attachment-row .icon { width: 16px; height: 16px; color: var(--accent); }
.attachment-progress {
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f7;
}
.attachment-progress__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.attachment-progress__bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0dddd;
}
.attachment-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #efb0ae);
  transition: width .25s ease;
}
.attachment-progress__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.attachment-progress__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.attachment-progress__item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-icon { display: inline-flex; color: var(--accent); margin-bottom: 6px; }
.result-icon .icon { width: 42px; height: 42px; stroke-width: 1.8; }
.inline-status { display: inline-flex; align-items: center; gap: 6px; }
.inline-status--ok { color: var(--sent); }
.inline-status--error { color: var(--fail); }
.status-icon { width: 15px; height: 15px; }

/* Прогресс отправки */
.progress { height: 10px; background: #f0dddd; border-radius: 999px; overflow: hidden; margin: 14px 0; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--accent), #efb0ae); transition: width .4s; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* Превью письма */
.preview { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 20px; max-height: 480px; overflow: auto; }
.preview img { max-width: 100%; height: auto; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 80;
    width: min(304px, 86vw);
    height: 100dvh;
    padding: 18px 14px;
    gap: 10px;
    transform: translateX(-104%);
    transition: transform .28s ease;
    overflow-y: auto;
    box-shadow: 28px 0 70px -48px rgba(36,27,34,.78);
  }
  .sidebar.is-open { transform: translateX(0); }
  .brand { padding: 2px 4px 20px; justify-content: flex-start; }
  .brand__logo { width: min(220px, 72vw); }
  .nav {
    flex-direction: column; gap: 3px; overflow: visible; padding-bottom: 0;
    scrollbar-width: auto;
  }
  .nav__item {
    flex: 0 0 auto;
    border-left: 2px solid transparent;
    border-bottom: 0;
    padding: 10px 11px;
    min-height: 42px;
  }
  .nav__item.is-active { border-left-color: var(--accent); border-bottom-color: transparent; }
  .sidebar__foot { display: block; }
  .content { padding: 18px 14px 42px; max-width: none; }
  .topbar { align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .topbar__title { flex: 1 1 auto; }
  .topbar h1 { font-size: 22px; line-height: 1.15; }
  .mobile-nav-toggle { display: inline-flex; }
  .userbox { width: 100%; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat__value { font-size: 26px; }
  .row-2 { grid-template-columns: 1fr !important; }
  .dashboard-grid, .dashboard-grid--bottom { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .toolbar > div:first-child { min-width: 0; width: 100%; }
  .toolbar .btn-row { width: 100%; }
  .toolbar .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .card__head { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .table {
    display: block; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .table th, .table td { padding: 10px 12px; }
  .bar-chart { gap: 6px; height: 190px; }
  .bar-chart__bars { height: 142px; }
  .segmented { width: 100%; }
  .segmented__item { flex: 1 1 auto; text-align: center; }
  .report-search { justify-content: stretch; flex-wrap: wrap; }
  .report-search .btn { justify-content: center; flex: 1 1 auto; }
  .report-search .input { max-width: none; flex: 1 1 100%; }
  .file-import { grid-template-columns: 1fr; align-items: stretch; }
  .file-import .btn { margin-top: 0; }
  .file-import .btn { width: 100%; justify-content: center; }
  .authwrap { padding: 16px; align-items: stretch; }
  .authcard { margin: auto 0; padding: 24px 20px; }
}

@media (max-width: 560px) {
  body { font-size: 13px; }
  .sidebar { padding-inline: 12px; }
  .nav__item { gap: 10px; padding: 10px 11px; }
  .nav__item span { display: inline; }
  .content { padding: 14px 12px 34px; }
  .topbar h1 { font-size: 20px; }
  .userbox__role { display: none; }
  .stats { grid-template-columns: 1fr; }
  .card__body { padding: 14px; }
  .empty { padding: 38px 14px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn--ghost { width: auto; }
  .toolbar .btn--ghost { width: 100%; }
  .textarea--code { min-height: 240px; }
  .preview { max-height: 360px; padding: 14px; }
  .donut { width: 150px; }
  .donut > div { width: 104px; }
  .donut strong { font-size: 26px; }
  .leader { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Пользователь в шапке ---------- */
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.userbox__name { font-weight: 600; }
.userbox__role { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 999px; }
.userbox__role--admin   { color: var(--accent-ink); background: var(--accent-bg); }
.userbox__role--manager { color: var(--muted); background: #eceadf; }
.userbox__out { color: var(--muted); text-decoration: none; font-weight: 600; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.userbox__out:hover { color: var(--fail); border-color: #f1c4c2; background: var(--fail-bg); }

/* ---------- Экран входа / первичной настройки ---------- */
.authbody { background: var(--ink); }
.authwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.authcard { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 28px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.authcard__brand { font-family: var(--font-disp); font-weight: 700; font-size: 18px; display: flex;
  align-items: center; gap: 8px; }
.authcard__logo { display: block; width: 248px; max-width: 100%; height: auto; }
.authcard__title { font-family: var(--font-disp); font-size: 22px; margin: 14px 0 6px; }
.authcard__hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; line-height: 1.5; }
.field__label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.field__note { color: var(--muted); font-weight: 400; }
.btn--block { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Таблица пользователей в настройках ---------- */
.userrow-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.userrow-form .field { margin-bottom: 0; }
.userrow-form .field--grow { flex: 1 1 160px; }
