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

:root {
  --ink: var(--accent-dark);
  --ink2: var(--accent-dark);
  --border: var(--surface-alt);
  --border-lt: var(--surface-alt);
  --muted: var(--accent);
  --accent: var(--accent-dark);
  --accent-dk: var(--accent-dark);
  --surface: var(--surface-alt);
  --white: var(--surface);
  --zebra: var(--surface-alt);
  --ok: var(--accent-dark);
  --ok-bg: var(--surface-alt);
  --warn: var(--warning);
  --warn-bg: var(--surface-alt);
  --err: var(--danger);
  --err-bg: var(--surface-alt);
  --sans: "DM Sans", sans-serif;
  --mono: "DM Sans", sans-serif;
  --r: 3px;
}

body {
  font-family: var(--sans);
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  );
  min-height: 100vh;
  padding: 20px;
  padding-top: 20px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}

/* ─── SHELL ───────────────────────────────────── */
.shell {
  max-width: 1520px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 8px;
  border: 3px solid var(--accent-dark);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
}

/* ─── PAGE INTRO ──────────────────────────────── */
.page-intro {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.page-intro-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.page-intro-text {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.5;
}

/* ─── KPI BAR — dense bordered strip ──────────── */
.kpi-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-shrink: 0;
}

.kpi-card {
  padding: 10px 20px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.kpi-card:last-child {
  border-right: none;
}

.kpi-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.kpi-value {
  font-size: 19px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--ink2);
  display: block;
  font-variant-numeric: tabular-nums;
}

/* ─── TOOLBAR — single-row ERP control bar ────── */
.suppliers-toolbar {
  background: var(--accent-dk);
  padding: 9px 24px;
  border-bottom: 1px solid var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-right {
  margin-left: auto;
}

.toolbar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.toolbar-stat:last-child {
  border-right: none;
}

/* ─── FILTERS (filter-group/filter-input/filter-select live inside
   .suppliers-toolbar now — see .toolbar-left above) ─── */

.filter-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.filter-input,
.filter-select {
  padding: 6px 10px;
  border: 1px solid var(--surface-alt);
  border-radius: var(--r);
  font-size: 12px;
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 91, 36, 0.2);
}

.filter-input-search {
  width: 170px;
}

/* ─── DETAIL CARD ─────────────────────────────── */
.detail-card {
  padding: 8px !important;
  background: var(--white);
  border-bottom: 1px solid var(--border) !important;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 7px;
  font-size: 10.5px;
  border: 1px solid var(--border-lt);
  border-radius: 3px;
  background: var(--surface-alt);
  min-width: 0;
}

.detail-label {
  font-weight: 700;
  color: var(--ink2);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.detail-value {
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  word-break: break-word;
  width: 100%;
}

.status-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}
.status-badge.active {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--accent-light);
}
.status-badge.inactive {
  background: var(--err-bg);
  color: var(--err);
  border-color: var(--surface-alt);
}

/* ─── INSIGHTS CONTENT ────────────────────────── */
.insights-content {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-content: start;
}

.insights-empty-msg {
  font-size: 12.5px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.insight-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px;
  min-width: 0;
}

.insight-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
}

.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 11.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--border-lt);
}
.insight-row:last-child {
  border-bottom: none;
}

.insight-label {
  flex: 1;
}

.insight-value {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink2);
  text-align: right;
  min-width: 60px;
  font-variant-numeric: tabular-nums;
}
.insight-value.good {
  color: var(--ok);
}
.insight-value.bad {
  color: var(--err);
}

.tbl-wrap {
  overflow-x: auto;
  min-width: 0;
}

.tbl-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.tbl-wrap th,
.tbl-wrap td {
  padding: 10px 12px;
  border: 1px solid var(--table-border);
  text-align: left;
  vertical-align: middle;
}

.tbl-wrap th {
  background: var(--accent-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tbl-wrap tbody tr:nth-child(odd) {
  background: var(--surface-alt);
}

.tbl-wrap tbody tr:hover {
  background: rgba(255, 255, 255, 0.12);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 4px;
  border: 1px solid var(--table-border);
}

.comparison-table th {
  background: var(--accent-dk);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 8px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--table-border);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 9.5px;
}

.comparison-table td {
  padding: 6px 8px;
  border: 1px solid var(--table-border);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.comparison-table .best {
  background: var(--ok-bg);
  font-weight: 700;
  color: var(--ok);
}

.comparison-table .worst {
  background: var(--err-bg);
  color: var(--err);
}

.current-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--surface);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 1px 6px;
  border-radius: var(--r);
  margin-left: 4px;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  padding: 7px 14px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: filter 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active {
  filter: brightness(0.95);
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent-dark);
}

.btn-clear {
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  transition: background 0.15s;
  color: var(--surface);
  font-family: var(--sans);
}
.btn-clear:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Buttons that sit on white panel headers need a light variant */
.panel-hd-r .btn {
  background: var(--surface-alt);
  color: var(--accent-dark);
  border-color: var(--border);
}
.panel-hd-r .btn:hover {
  filter: brightness(0.97);
}
.panel-hd-r .btn-clear {
  background: var(--surface-alt);
  color: var(--err);
  border-color: var(--surface-alt);
}

/* ─── SECTION STACK ───────────────────────────── */
.three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

/* ─── PANEL ───────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.panel:last-child {
  border-bottom: none;
}

.panel-hd {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  background: var(--accent-dk);
  min-width: 0;
  flex-wrap: wrap;
}

.panel-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.panel-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--surface);
  flex: 1;
  min-width: 0;
  letter-spacing: 0.2px;
}

.panel-subtitle {
  padding: 7px 18px;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-sub-hd {
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink2);
}

.panel-pill {
  background: rgba(255, 255, 255, 0.16);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r);
  font-family: var(--mono);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.panel-sub-hd .panel-pill {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent-dark);
}

.panel-hd-r {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ─── TABLES — dense ERP spreadsheet look ─────── */
.tbl-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) var(--surface);
}
.tbl-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.tbl-wrap::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

thead th {
  background: var(--accent-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--accent-dark);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-lt);
  cursor: pointer;
  transition: background 0.1s;
}
tbody tr:nth-child(even) {
  background: var(--zebra);
}
tbody tr:hover {
  background: var(--surface-alt);
}

tbody tr.sel {
  background: var(--surface-alt) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

td {
  padding: 7px 12px;
  height: 36px;
  color: var(--ink);
  vertical-align: middle;
  font-size: 12px;
  border-right: 1px solid var(--border-lt);
}
td:last-child {
  border-right: none;
}

td.mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
td small {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
}

.empty-row {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  border-right: none;
}

/* Column sizing */
.col-status {
  width: 28px;
}
.col-name {
  width: 30%;
  font-weight: 700;
}
.col-contact {
  min-width: 130px;
}
.col-location {
  width: 20%;
}
.col-product {
  width: 45%;
  font-weight: 600;
}
.col-products {
  width: 15%;
  text-align: center;
}
.col-orders {
  width: 15%;
  text-align: center;
}
.col-price {
  width: 15%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.col-check {
  width: 40px;
  text-align: center;
}
.col-actions {
  min-width: 120px;
  text-align: center;
}
.col-price-range {
  min-width: 100px;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.supplier-name {
  font-weight: 700;
  color: var(--ink);
}
.supplier-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-item {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
}
.contact-item.email {
  color: var(--accent);
  font-weight: 600;
}
.contact-item.email:hover {
  text-decoration: underline;
}

.range-indicator {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono);
}
.price-delta {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
}
.price-delta.lowest {
  color: var(--ok);
  background: var(--ok-bg);
  padding: 2px 6px;
  border-radius: var(--r);
}
.price-delta.highest {
  color: var(--err);
  background: var(--err-bg);
  padding: 2px 6px;
  border-radius: var(--r);
}

.supplier-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.price-filter span {
  font-size: 11px;
  color: var(--muted);
}

/* ─── EMPTY / PLACEHOLDER STATES ──────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}
.empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.comparison-placeholder {
  padding: 50px 20px;
  text-align: center;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.placeholder-icon {
  font-size: 44px;
  margin-bottom: 14px;
  opacity: 0.4;
}
.comparison-placeholder p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* ─── CHARTS (reserved for future use) ────────── */
.chart-wrap {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  flex-shrink: 0;
}
.chart-ttl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.chart-box {
  position: relative;
  width: 100%;
  height: 260px;
}

/* ─── PRICE TAG ───────────────────────────────── */
.price-tag {
  display: inline-block;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 3px 9px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  border: 1px solid var(--accent-light);
}

/* ─── ROW ACTIONS ─────────────────────────────── */
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.btn-row {
  padding: 4px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
  white-space: nowrap;
}
.btn-row:hover {
  filter: brightness(0.97);
  background: var(--surface-alt);
}
.btn-row.btn-danger:hover {
  background: var(--err-bg);
  border-color: var(--surface-alt);
  color: var(--err);
}

/* ─── MODALS (reserved; no modal markup ships yet) ─ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 14, 0.55);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 5px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin: auto;
  border: 1px solid var(--border);
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--surface);
  background: var(--accent-dk);
  flex-shrink: 0;
}

.modal-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
  background: var(--surface);
}

.modal-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: var(--surface-alt);
}

.mfield {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.mfield label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink2);
}
.mfield-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 12.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}
.modal-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 91, 36, 0.15);
}
textarea.modal-input {
  resize: vertical;
  min-height: 80px;
  font-family: var(--sans);
}

.mbtn {
  padding: 8px 16px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: filter 0.15s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.mbtn:hover {
  filter: brightness(1.08);
}
.mb-ok {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent-dark);
}
.mb-cancel {
  background: var(--surface-alt);
  color: var(--accent-dark);
  border: 1px solid var(--border);
}
.mb-danger {
  background: var(--err-bg);
  color: var(--err);
  border-color: var(--surface-alt);
}

/* ─── TOASTS ──────────────────────────────────── */
.toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--accent-dk);
  color: var(--surface);
  border-radius: 4px;
  padding: 11px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  min-width: 300px;
  animation: slideInRight 0.2s ease;
  border: 1px solid var(--accent-dark);
}
@keyframes slideInRight {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.toast.success {
  border-left: 3px solid var(--accent);
}
.toast.error {
  border-left: 3px solid var(--danger);
}
.toast.warning {
  border-left: 3px solid var(--warning);
}

/* ─── FOOTER ──────────────────────────────────── */
.global-footer {
  background: var(--accent-dark);
  padding: 14px 24px;
  border-top: 1px solid var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 16px;
}
.gf-copy {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}
.gf-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gf-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.gf-link:hover {
  color: rgba(255, 255, 255, 0.9);
}
.gf-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}
.gf-version {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 10px;
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .suppliers-toolbar {
    padding: 9px 16px;
  }
  .kpi-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  td {
    padding: 6px 10px;
    font-size: 11px;
  }
  thead th {
    padding: 7px 10px;
    font-size: 9px;
  }
  .chart-box {
    height: 220px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  .shell {
    min-height: calc(100vh - 20px);
  }
  .suppliers-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filter-group {
    width: 100%;
  }
  .filter-input,
  .filter-select {
    width: 100%;
  }
  .three-col {
    grid-template-columns: 1fr;
  }
  .panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .panel:last-child {
    border-bottom: none;
  }
  .mfield-row {
    grid-template-columns: 1fr;
  }
  .modal {
    max-width: 95vw;
  }
  .toast {
    min-width: auto;
    width: calc(100vw - 40px);
  }
  .chart-box {
    height: 200px;
  }
}
