:root {
  --bg: #f4efe6;
  --bg-deep: #e7dcc8;
  --ink: #1d1a16;
  --muted: #6b6257;
  --line: rgba(29, 26, 22, 0.12);
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: rgba(255, 249, 240, 0.97);
  --accent: #b14d1c;
  --accent-soft: #f0c8a7;
  --green: #2d6a4f;
  --green-soft: #dceee5;
  --amber: #8a5a16;
  --amber-soft: #f4e5bf;
  --shadow: 0 24px 60px rgba(78, 55, 25, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-sans: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 226, 178, 0.65), transparent 32%),
    radial-gradient(circle at top right, rgba(184, 213, 204, 0.45), transparent 28%),
    linear-gradient(180deg, #faf6ef 0%, var(--bg) 45%, var(--bg-deep) 100%);
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 70%);
  pointer-events: none;
}

.topbar,
.page-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 2rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.topnav {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.topnav a {
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(177, 77, 28, 0.1);
  color: var(--accent);
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), #cb7a31);
  color: #fff9f2;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}

.brand-eyebrow,
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand-title,
.hero-title,
.panel-title {
  margin: 0;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.brand-title {
  font-size: 1.45rem;
}

.page-shell {
  width: calc(100% - 3rem);
  max-width: none;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero-grid,
.detail-header,
.detail-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-grid {
  grid-template-columns: minmax(420px, 1.25fr) minmax(420px, 0.9fr);
  align-items: end;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  max-width: 14ch;
}

.hero-lead,
.panel-copy,
.empty-copy {
  color: var(--muted);
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-grid-inner {
  display: contents;
}

.metric-card,
.panel,
.attachment-card {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 2rem;
  font-weight: 800;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  margin-bottom: 1.4rem;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
  text-align: right;
}

.panel-actions .panel-copy {
  margin: 0;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.source-card {
  min-height: 12rem;
  padding: 0.95rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 44px rgba(78, 55, 25, 0.09);
}

.source-card strong {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.94rem;
}

.source-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.source-card-live {
  background: rgba(246, 255, 250, 0.72);
}

.source-card-warning {
  background: rgba(255, 248, 226, 0.84);
  border-color: rgba(138, 90, 22, 0.18);
}

.source-card-blocked {
  background: rgba(255, 249, 240, 0.72);
  opacity: 0.78;
}

.source-card-error {
  background: rgba(255, 240, 240, 0.82);
  border-color: rgba(143, 47, 47, 0.18);
}

.source-reason {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.alert-stack,
.message-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.alert-card,
.message-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 26, 22, 0.09);
  box-shadow: 0 16px 44px rgba(78, 55, 25, 0.08);
}

.alert-card strong,
.alert-card p,
.message-card {
  margin: 0;
}

.alert-error {
  border-color: rgba(143, 47, 47, 0.25);
  background: rgba(255, 240, 240, 0.86);
}

.alert-warning {
  border-color: rgba(138, 90, 22, 0.25);
  background: rgba(255, 248, 226, 0.86);
}

.export-button {
  white-space: nowrap;
}

.table-shell {
  overflow-x: auto;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(240px, 1.25fr) repeat(6, minmax(120px, 0.8fr)) auto auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(29, 26, 22, 0.08);
}

.filter-bar label,
.manual-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select,
.manual-form input,
.manual-form select,
.manual-form textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(29, 26, 22, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.tender-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1480px;
}

.tender-table th,
.tender-table td {
  padding: 0.95rem 0.8rem;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.tender-table thead th {
  border-top: none;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-link,
.detail-link {
  color: var(--ink);
  text-decoration-color: rgba(177, 77, 28, 0.45);
  text-underline-offset: 0.2em;
}

.table-link {
  font-weight: 700;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.table-link:hover,
.table-link:focus-visible,
.detail-link:hover,
.detail-link:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.table-subline {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.triage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.triage-actions form {
  margin: 0;
}

.triage-button {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.72rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(78, 55, 25, 0);
  transform: translateY(0);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease,
    opacity 150ms ease;
}

.triage-button:hover {
  box-shadow: 0 10px 24px rgba(78, 55, 25, 0.16);
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-1px);
}

.triage-button:active {
  box-shadow: 0 4px 12px rgba(78, 55, 25, 0.14);
  transform: translateY(1px) scale(0.98);
}

.triage-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.brand-mark:focus-visible,
.table-link:focus-visible,
.detail-link:focus-visible {
  outline: 3px solid rgba(177, 77, 28, 0.32);
  outline-offset: 3px;
}

.triage-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.button-busy {
  display: none;
}

.htmx-request .button-label {
  display: none;
}

.htmx-request .button-busy {
  display: inline;
}

.triage-confirm {
  background: linear-gradient(145deg, var(--accent), #cb7a31);
  color: #fff8f1;
}

.triage-review {
  background: var(--amber-soft);
  color: #734c12;
}

.triage-duplicate {
  background: #e6eef8;
  color: #24415f;
}

.triage-reject {
  background: rgba(83, 74, 66, 0.12);
  color: #5a5148;
}

.source-badge,
.status-pill,
.user-pill,
.quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.source-badge {
  background: rgba(29, 26, 22, 0.07);
}

.source-badge-nen {
  background: var(--green-soft);
  color: #214c39;
}

.source-badge-pvu {
  background: var(--accent-soft);
  color: #743417;
}

.source-badge-e-zakazky {
  background: #dbeafe;
  color: #1e3a8a;
}

.source-badge-vvz {
  background: #e0e7ff;
  color: #3730a3;
}

.source-badge-podo,
.status-manual {
  background: #f4e5bf;
  color: #734c12;
}

.source-badge-podo {
  background: #cdebdc;
  color: #1f513b;
}

.source-badge-etendry {
  background: #f4d7c1;
  color: #743417;
}

.status-new {
  background: rgba(29, 26, 22, 0.08);
}

.status-good {
  background: var(--green-soft);
  color: #214c39;
}

.status-review {
  background: var(--amber-soft);
  color: #734c12;
}

.status-low {
  background: rgba(143, 47, 47, 0.12);
  color: #8f2f2f;
}

.status-muted {
  background: rgba(83, 74, 66, 0.12);
  color: #5a5148;
}

.relevance-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(29, 26, 22, 0.08);
  color: var(--muted);
  font-weight: 800;
}

.relevance-positive,
.relevance-recommended {
  background: var(--green-soft);
  color: #214c39;
}

.relevance-high {
  background: #174d37;
  color: #f4fff9;
}

.relevance-review {
  background: var(--amber-soft);
  color: #734c12;
}

.relevance-negative,
.relevance-low {
  background: rgba(143, 47, 47, 0.12);
  color: #8f2f2f;
}

.crm-placeholder {
  display: inline-flex;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(83, 74, 66, 0.1);
  color: #5a5148;
  font-size: 0.78rem;
  font-weight: 700;
}

.user-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.logout-form {
  margin: 0;
}

.logout-button {
  min-height: 38px;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(29, 26, 22, 0.09);
  border-radius: 999px;
  background: rgba(29, 26, 22, 0.06);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.logout-button:hover,
.logout-button:focus-visible {
  background: rgba(143, 47, 47, 0.12);
  color: #8f2f2f;
  box-shadow: 0 10px 24px rgba(78, 55, 25, 0.12);
  transform: translateY(-1px);
}

.quality-pill {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quality-ok {
  background: var(--green-soft);
  color: #214c39;
}

.quality-warning,
.quality-unknown {
  background: var(--amber-soft);
  color: #734c12;
}

.quality-error {
  background: rgba(143, 47, 47, 0.13);
  color: #8f2f2f;
}

.quality-alert {
  margin: 0 0 0.35rem;
  color: #8f2f2f;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.source-quality-table {
  min-width: 1120px;
}

.detail-header {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 1.25rem;
}

.detail-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(145deg, var(--accent), #cb7a31);
  color: #fff8f1;
}

.secondary-button {
  background: rgba(29, 26, 22, 0.06);
  color: var(--ink);
}

.primary-button,
.secondary-button {
  transform: translateY(0);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.primary-button:hover,
.secondary-button:hover {
  box-shadow: 0 12px 28px rgba(78, 55, 25, 0.16);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.99);
}

.secondary-button:hover {
  background: rgba(29, 26, 22, 0.1);
}

.tender-table tbody tr {
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.tender-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.44);
}

.tender-row-high {
  background: rgba(45, 106, 79, 0.055);
  box-shadow: inset 4px 0 0 rgba(45, 106, 79, 0.6);
}

.tender-row-recommended {
  background: rgba(45, 106, 79, 0.035);
  box-shadow: inset 4px 0 0 rgba(45, 106, 79, 0.32);
}

.tender-row-review {
  background: rgba(244, 229, 191, 0.28);
  box-shadow: inset 4px 0 0 rgba(138, 90, 22, 0.3);
}

.tender-row-low {
  background: rgba(143, 47, 47, 0.025);
}

.workflow-help {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.workflow-help article,
.next-step-panel {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(29, 26, 22, 0.08);
}

.workflow-help article {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-lg);
}

.workflow-help strong,
.workflow-help p {
  margin: 0;
}

.workflow-help p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pagination-bar span {
  color: var(--muted);
  font-weight: 800;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.detail-list div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-list dd {
  margin: 0;
  line-height: 1.6;
}

.detail-triage {
  margin-top: 1.25rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.detail-triage-actions {
  margin-top: 0.75rem;
}

.compact-list {
  gap: 0.6rem;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.match-column h4 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.match-card {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.12);
}

.match-card span,
.match-card small {
  color: var(--muted);
}

.match-card-negative {
  background: rgba(143, 47, 47, 0.08);
  border-color: rgba(143, 47, 47, 0.12);
}

.attachment-stack {
  display: grid;
  gap: 0.9rem;
}

.pipeline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(29, 26, 22, 0.08);
}

.pipeline-status strong {
  display: block;
  font-size: 1.2rem;
}

.pipeline-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.pipeline-action form {
  margin: 0;
}

.attachment-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
}

.attachment-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.attachment-meta,
.attachment-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state,
.empty-copy {
  padding: 1rem 0;
}

.history-stack {
  display: grid;
  gap: 0.75rem;
}

.history-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(29, 26, 22, 0.08);
}

.history-card p,
.history-card strong {
  margin: 0;
}

.form-panel {
  max-width: 760px;
}

.manual-form {
  display: grid;
  gap: 1rem;
}

.manual-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compact-button {
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}

.keyword-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 1.2rem;
  align-items: start;
}

.keyword-forms {
  display: grid;
  gap: 0;
}

.keyword-set-stack {
  display: grid;
  gap: 0.9rem;
}

.keyword-set-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(29, 26, 22, 0.08);
}

.keyword-set-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.keyword-set-head h4,
.keyword-set-head p {
  margin: 0;
}

.keyword-set-head p {
  margin-top: 0.28rem;
  color: var(--muted);
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.48rem 0.4rem 0.68rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.keyword-include {
  background: var(--green-soft);
  color: #214c39;
}

.keyword-exclude {
  background: rgba(143, 47, 47, 0.13);
  color: #8f2f2f;
}

.keyword-tag button {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.field-errors {
  color: #8f2f2f;
  font-weight: 600;
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
}

.login-panel {
  width: min(520px, 100%);
  background: var(--panel-strong);
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(29, 26, 22, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

ul.errorlist {
  margin: 0;
  padding-left: 1rem;
  color: #8f2f2f;
}

@media (max-width: 960px) {
  .hero-grid,
  .detail-header,
  .detail-grid,
  .match-grid,
  .attachment-card,
  .source-strip,
  .keyword-layout,
  .workflow-help {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar,
  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header,
  .panel-actions,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
    text-align: left;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }
}
