:root {
  color-scheme: dark;
  --bg: #07080a;
  --panel: #111316;
  --panel-strong: #1a1d21;
  --ink: #f2eee5;
  --muted: #c9c4ba;
  --subtle: #898d88;
  --line: rgba(232, 225, 210, 0.17);
  --line-strong: rgba(232, 225, 210, 0.36);
  --green: #869984;
  --green-dark: #d7ddce;
  --amber: #d4b477;
  --blue: #91a0a3;
  --red: #8b1023;
  --red-bright: #c7253a;
  --crimson: #470712;
  --oil: #040506;
  --bone: #ece5d6;
  --steel: #262d31;
  --shadow: 0 24px 58px rgba(0, 0, 0, 0.58);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 115%, rgba(139, 16, 35, 0.5), transparent 38rem),
    radial-gradient(circle at 80% 6%, rgba(236, 229, 214, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 22%, rgba(71, 7, 18, 0.34), transparent 26rem),
    linear-gradient(180deg, rgba(19, 22, 25, 0.9), rgba(7, 8, 10, 0.98) 460px),
    var(--bg);
  background-attachment: fixed;
  font-size: 17px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(120, 14, 32, 0.16) 18% 26%, transparent 26% 100%),
    linear-gradient(68deg, transparent 0 58%, rgba(232, 225, 210, 0.08) 58% 61%, transparent 61% 100%);
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 32px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(360px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 80px;
  padding: 16px max(18px, calc((100vw - 1580px) / 2 + 18px));
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(71, 7, 18, 0.22), transparent 34%, rgba(236, 229, 214, 0.06)),
    rgba(6, 8, 10, 0.84);
  backdrop-filter: blur(14px);
}

.app-header h1 {
  margin: 0;
}

.brand-wordmark {
  color: var(--bone);
  font-family:
    "Copperplate Gothic Light",
    "Copperplate Gothic Bold",
    "Bahnschrift SemiCondensed",
    "Agency FB",
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(1.35rem, 2.45vw, 2.55rem);
  font-stretch: condensed;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, #fff7e7 0%, #d8c7a8 45%, #8c7965 52%, #f1e4cd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.45px rgba(255, 247, 231, 0.42);
  text-shadow:
    0 1px 0 rgba(255, 249, 238, 0.35),
    0 4px 0 rgba(34, 24, 22, 0.55),
    0 0 22px rgba(236, 229, 214, 0.24),
    0 2px 18px rgba(139, 16, 35, 0.46);
}

.brand-subtitle {
  margin: 8px 0 0;
  color: #e9dfcc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.62rem, 0.95vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.56em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 249, 238, 0.32),
    0 0 12px rgba(0, 0, 0, 0.76);
}

.eyebrow {
  margin: 0;
  color: var(--subtle);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.brand-lockup {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1vw, 16px);
  min-width: 0;
  color: var(--bone);
}

.brand-copy {
  min-width: 0;
}

.brand-script {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: clamp(50px, 4.8vw, 72px);
  opacity: 0.78;
  filter:
    drop-shadow(0 2px 7px rgba(0, 0, 0, 0.78))
    drop-shadow(0 0 12px rgba(236, 229, 214, 0.18));
}

.phyrexian-symbol {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: clamp(32px, 3.3vw, 50px);
  height: clamp(46px, 4.6vw, 72px);
  filter:
    drop-shadow(0 2px 7px rgba(0, 0, 0, 0.78))
    drop-shadow(0 0 14px rgba(199, 37, 58, 0.34));
}

.phyrexian-symbol::before,
.phyrexian-symbol::after {
  position: absolute;
  content: "";
}

.phyrexian-symbol::before {
  inset: 22% 6%;
  border: clamp(5px, 0.55vw, 8px) solid #c20717;
  border-radius: 50%;
}

.phyrexian-symbol::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 32%;
  background: #c20717;
  clip-path: polygon(
    50% 0,
    68% 15%,
    62% 36%,
    78% 50%,
    62% 64%,
    68% 85%,
    50% 100%,
    32% 85%,
    38% 64%,
    22% 50%,
    38% 36%,
    32% 15%
  );
  transform: translateX(-50%);
}

.hero-banner {
  position: relative;
  min-height: clamp(290px, 34vw, 500px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.12), rgba(4, 5, 6, 0) 50%, rgba(4, 5, 6, 0.14)),
    linear-gradient(180deg, rgba(4, 5, 6, 0.03), rgba(4, 5, 6, 0.36)),
    url("assets/phyrexian-banner.png") center 49% / cover no-repeat,
    rgba(9, 10, 12, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(236, 229, 214, 0.12),
    inset 0 -28px 58px rgba(4, 5, 6, 0.58);
}

.hero-banner::before,
.hero-banner::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 229, 214, 0.34), transparent);
  content: "";
}

.hero-banner::before {
  top: 0;
}

.hero-banner::after {
  bottom: 0;
  opacity: 0.58;
}

.header-actions,
.toolbar,
.catalog-meta,
.segmented,
.view-toggle {
  display: flex;
  align-items: center;
}

.header-actions {
  display: grid;
  grid-column: 3;
  grid-template-columns: minmax(164px, max-content) max-content max-content;
  justify-self: end;
  gap: 10px;
  width: max-content;
  max-width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(236, 229, 214, 0.06), rgba(4, 5, 6, 0.26)),
    rgba(14, 17, 19, 0.9);
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(241, 236, 228, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.24);
}

.status-pill[data-tone="ok"] {
  border-color: rgba(199, 37, 58, 0.58);
  background:
    linear-gradient(180deg, rgba(199, 37, 58, 0.16), rgba(71, 7, 18, 0.34)),
    rgba(18, 8, 12, 0.86);
  color: #f2d4d8;
}

.status-pill[data-tone="busy"] {
  border-color: rgba(53, 99, 139, 0.35);
  color: var(--blue);
}

.status-pill[data-tone="error"] {
  border-color: rgba(182, 79, 69, 0.38);
  color: var(--red);
}

.ghost-button,
.primary-button,
.segmented button {
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(236, 229, 214, 0.055), transparent),
    rgba(14, 17, 19, 0.9);
  color: var(--ink);
  font-weight: 800;
}

.ghost-button,
.primary-button {
  padding: 0 14px;
}

.header-actions .ghost-button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(241, 236, 228, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.ghost-button:hover,
.primary-button:hover {
  border-color: var(--line-strong);
  background-color: rgba(255, 255, 255, 0.06);
}

.primary-button {
  position: relative;
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(139, 16, 35, 0.66), transparent 54%, rgba(236, 229, 214, 0.09)),
    rgba(19, 22, 25, 0.96);
  color: var(--bone);
  box-shadow:
    inset 0 1px 0 rgba(241, 236, 228, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.36);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: min(1580px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 0;
}

.sidebar,
.content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  max-height: calc(100vh - 112px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 229, 214, 0.1), transparent 26%),
    linear-gradient(225deg, rgba(71, 7, 18, 0.34), transparent 42%),
    rgba(14, 17, 19, 0.92),
    var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field.grow {
  flex: 1 1 260px;
}

.field.compact {
  flex: 0 1 170px;
}

label,
.stat-label {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(236, 229, 214, 0.025)),
    rgba(5, 6, 7, 0.9);
  color: var(--ink);
  outline: none;
  padding: 0 11px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(241, 236, 228, 0.03);
}

input:focus,
select:focus,
button:focus-visible {
  border-color: var(--line-strong);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(241, 236, 228, 0.08);
}

.segmented {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(236, 229, 214, 0.045), transparent),
    rgba(5, 6, 7, 0.9);
}

.segmented button {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.is-active {
  background:
    linear-gradient(90deg, rgba(139, 16, 35, 0.5), transparent 70%),
    rgba(236, 229, 214, 0.11);
  color: var(--bone);
}

.catalog-meta {
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.product-list {
  display: grid;
  align-content: start;
  gap: 8px;
  grid-auto-rows: min-content;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) rgba(4, 5, 9, 0.72);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.product-list::-webkit-scrollbar {
  width: 10px;
}

.product-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(4, 5, 9, 0.72);
}

.product-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 5, 9, 0.72);
  border-radius: 999px;
  background: var(--line-strong);
}

.product-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(112deg, rgba(236, 229, 214, 0.055), transparent 30%),
    linear-gradient(290deg, rgba(71, 7, 18, 0.16), transparent 48%),
    rgba(16, 18, 20, 0.88);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(241, 236, 228, 0.03);
}

.product-item:hover,
.product-item.is-active {
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(139, 16, 35, 0.5), transparent 58%),
    linear-gradient(180deg, rgba(236, 229, 214, 0.06), transparent),
    rgba(18, 21, 23, 0.98);
}

.product-name {
  overflow-wrap: anywhere;
  font-weight: 850;
  line-height: 1.22;
}

.product-meta {
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.3;
}

.content {
  display: grid;
  gap: 14px;
}

.selected-panel,
.stats-grid,
.toolbar,
.notice,
.cards-mount {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 229, 214, 0.09), transparent 26%),
    linear-gradient(240deg, rgba(71, 7, 18, 0.24), transparent 46%),
    rgba(14, 17, 19, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.selected-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
}

.selected-panel::after {
  position: absolute;
  right: 44%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--red);
  content: "";
  transform: rotate(45deg);
  box-shadow:
    -110px 0 0 -3px rgba(236, 229, 214, 0.22),
    110px 0 0 -3px rgba(236, 229, 214, 0.22);
}

.selected-copy {
  min-width: 0;
}

.selected-copy h2 {
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.9vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.accuracy-details {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.accuracy-details[data-tone="ok"] {
  color: var(--green-dark);
}

.accuracy-details[data-tone="busy"] {
  color: var(--blue);
}

.accuracy-details[data-tone="warning"] {
  color: #d7b46a;
}

.accuracy-details[data-tone="error"] {
  color: var(--red);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.stat {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(236, 229, 214, 0.035), transparent);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  overflow-wrap: anywhere;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.toolbar {
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
}

.toolbar .segmented {
  width: auto;
  min-width: 160px;
  flex: 0 0 auto;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-top: 18px;
  color: var(--ink);
  text-transform: none;
}

.toggle input {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--green);
}

.notice {
  padding: 12px 14px;
  color: var(--blue);
  font-weight: 760;
}

.notice[data-tone="error"] {
  color: var(--red);
}

.notice[data-tone="warning"] {
  color: #d7b46a;
}

.cards-mount {
  min-height: 360px;
  overflow: hidden;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.card-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

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

.card-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(236, 229, 214, 0.06), transparent),
    rgba(24, 27, 30, 0.98);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-table tbody tr {
  background: rgba(13, 16, 18, 0.56);
}

.card-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(139, 16, 35, 0.18), transparent 58%),
    rgba(21, 24, 27, 0.72);
}

.card-table th:last-child,
.card-table td:last-child {
  position: sticky;
  right: 0;
  min-width: 92px;
  background: rgba(14, 17, 19, 0.98);
  box-shadow: -8px 0 14px rgba(0, 0, 0, 0.24);
}

.card-table th:last-child {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(236, 229, 214, 0.06), transparent),
    rgba(24, 27, 30, 0.98);
}

.rank-cell {
  width: 48px;
  color: var(--muted);
  font-weight: 800;
}

.card-cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 260px;
}

.thumb {
  width: 44px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--panel-strong);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.38);
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.card-name {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
  text-decoration-color: rgba(207, 211, 218, 0.34);
  text-underline-offset: 3px;
}

.card-line {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.82rem;
}

.price-badge {
  display: inline-grid;
  gap: 2px;
  min-width: 74px;
  color: var(--ink);
  font-weight: 850;
}

.price-badge small,
.value-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.value-cell {
  color: #efe4b4;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(239, 228, 180, 0.18);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
  padding: 12px;
}

.card-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 229, 214, 0.08), transparent 36%),
    linear-gradient(230deg, rgba(71, 7, 18, 0.2), transparent 48%),
    rgba(14, 17, 19, 0.94);
  box-shadow: inset 0 1px 0 rgba(241, 236, 228, 0.03);
}

.card-tile img,
.image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 488 / 680;
  object-fit: cover;
  background: var(--panel-strong);
}

.image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 2rem;
  font-weight: 900;
}

.tile-copy {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.tile-copy h3,
.tile-copy p {
  margin: 0;
}

.tile-copy h3 {
  overflow-wrap: anywhere;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.tile-copy p {
  color: var(--muted);
  font-size: 0.82rem;
}

.tile-copy strong {
  color: #efe4b4;
}

.tile-copy strong span {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    grid-column: auto;
    justify-self: center;
  }

  .header-actions {
    grid-column: auto;
    justify-self: center;
    transform: none;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .product-list {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: 100%;
  }

  .app-header {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 14px 10px;
  }

  .brand-lockup {
    justify-self: start;
  }

  .phyrexian-symbol {
    width: 28px;
    height: 42px;
  }

  .brand-script {
    height: 44px;
    opacity: 0.7;
  }

  .brand-wordmark {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
  }

  .brand-subtitle {
    font-size: 0.56rem;
    letter-spacing: 0.34em;
  }

  .hero-banner {
    min-height: 220px;
    background-position: center 50%;
  }

  .workspace {
    width: min(100% - 20px, 1580px);
    margin-top: 0;
    padding-top: 0;
  }

  .selected-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .selected-panel .primary-button {
    width: 100%;
  }

  .header-actions {
    grid-template-columns: 1fr;
    justify-self: stretch;
    transform: none;
  }

  .header-actions > *,
  .selected-panel .primary-button {
    flex: 1 1 auto;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .toolbar .segmented,
  .field.compact,
  .toggle {
    width: 100%;
  }
}
