:root {
  color-scheme: light;

  /* Mediterranean palette */
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --ink: #16272e;
  --muted: #6b7a85;
  --border: #e8e4dc;
  --accent: #0f766e;
  --accent-hover: #0d615a;
  --accent-ink: #ffffff;
  --coral: #e06b55;
  --coral-hover: #c85a46;

  /* Status colors */
  --green-bg: #e4f5eb;
  --green: #137a4c;
  --yellow-bg: #fff4cc;
  --yellow: #946c00;
  --red-bg: #fde8e5;
  --red: #b42318;
  --gray-bg: #eceff3;
  --gray: #52606d;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(22, 39, 46, 0.04);
  --shadow: 0 4px 16px rgba(22, 39, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 39, 46, 0.14);

  /* Motion */
  --transition-fast: 120ms ease;
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
a,
input,
select {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
}

a {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow var(--transition);
}

.topbar.is-scrolled {
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  padding: 6px;
}

.kicker {
  margin: 0 0 1px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Filter pill button */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--accent);
}

.filter-pill:active {
  transform: scale(0.97);
}

.filter-pill .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  max-width: 1500px;
  margin: 0 auto;
}

.content {
  min-width: 0;
}

/* Summary strip */
.summary-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.summary-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.summary-main {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

.summary-main em {
  color: var(--accent);
  font-style: normal;
}

.summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.summary-toggle .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.summary-strip.is-open .summary-toggle .icon {
  transform: rotate(180deg);
}

.summary-detail {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition), opacity var(--transition);
}

.summary-strip.is-open .summary-detail {
  max-height: 420px;
  overflow: auto;
  opacity: 1;
}

.summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.summary-actions .link-button {
  font-size: 0.86rem;
}

.hidden-subjects {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.hidden-subjects-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hidden-subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 118px;
  overflow: auto;
  padding-right: 2px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.mini-chip:hover {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--accent);
}

/* Status chips / pills */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip,
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.chip.muted {
  background: var(--surface-2);
  color: var(--muted);
}

.status {
  border: 0;
}

.status.likely {
  background: var(--green-bg);
  color: var(--green);
}

.status.possible,
.status.borderline {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.status.unlikely {
  background: var(--red-bg);
  color: var(--red);
}

.status.needs {
  background: var(--gray-bg);
  color: var(--gray);
}

/* Toolbar */
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search .icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.search input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.sort-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.sort-pill .icon {
  color: var(--muted);
}

.sort-pill select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0 18px 0 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.sort-pill::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}

/* Buttons */
a.button,
.button,
.link-button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.button:hover,
.link-button:hover {
  border-color: var(--accent);
}

.button:active {
  transform: scale(0.98);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button.coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.button.coral:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
}

.button.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 8px;
}

.link-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 0.9rem;
}

/* Cards */
.results {
  display: grid;
  gap: 16px;
}

.card,
.detail {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition-fast);
}

.card {
  border-left-width: 5px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.card.likely { border-left-color: var(--green); }
.card.possible { border-left-color: var(--yellow); }
.card.borderline { border-left-color: var(--yellow); }
.card.unlikely { border-left-color: var(--red); }
.card.needs { border-left-color: var(--gray); }

.card:hover {
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.degree-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 14px;
}

.meta a {
  text-decoration: none;
  font-weight: 600;
}

.meta a:hover {
  text-decoration: underline;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 14px;
}

.subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.subject-tag > span {
  overflow-wrap: anywhere;
}

.subject-tag button {
  min-height: 24px;
  padding: 2px 7px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.subject-tag button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric strong {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

@media (max-width: 699px) {
  .metric.is-secondary {
    display: none;
  }
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions .button {
  min-height: 40px;
  padding: 8px 14px;
}

.actions .button.details {
  flex: 1;
  justify-content: center;
}

.menu-wrap {
  position: relative;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
}

.menu-button:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.menu-wrap.is-open .menu-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-dropdown button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.menu-dropdown button:hover {
  background: var(--surface-2);
}

/* Filter drawer */
.filters {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(92vw, 400px);
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 8px 16px 90px;
  transform: translateX(-105%);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 40;
}

.filters.open {
  transform: translateX(0);
}

.drawer-handle {
  display: flex;
  justify-content: center;
  padding: 8px 0 10px;
}

.drawer-handle span {
  width: 36px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--border);
}

.filters-head,
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filters-head {
  margin-bottom: 8px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 16px;
  margin-top: 14px;
}

.panel-title-row {
  margin-bottom: 12px;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel h3 {
  margin-bottom: 0;
}

.drawer-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 16px -16px -8px;
  padding: 14px 16px;
  background: linear-gradient(to top, var(--surface) 80%, transparent);
  border-top: 1px solid var(--border);
}

.drawer-footer .button {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-pill);
}

/* Stats inside drawer */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  background: var(--surface-2);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Checkbox lists */
.check-list {
  display: grid;
  gap: 8px;
}

.check-list.long {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.location-group {
  display: grid;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.location-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.location-list {
  display: grid;
  gap: 6px;
  padding-left: 16px;
}

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: 0.92rem;
  cursor: pointer;
}

.location-row {
  min-height: 44px;
}

.university-row {
  min-height: 46px;
}

.check-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.check-copy strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.check-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.check-row input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.check-row input[type="checkbox"]:indeterminate {
  border-color: var(--accent);
  background: var(--accent);
}

.check-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-row input[type="checkbox"]:indeterminate::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 9px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: #fff;
}

.check-row .count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.list-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.list-search .icon {
  position: absolute;
  left: 10px;
  color: var(--muted);
  pointer-events: none;
}

.list-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.9rem;
}

/* Detail view */
.detail {
  margin-bottom: 16px;
  border-color: rgba(15, 118, 110, 0.35);
  border-left-width: 5px;
  border-left-color: var(--accent);
}

.detail-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.detail-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.detail-section h3 {
  margin-bottom: 8px;
}

.detail-section h4 {
  margin: 12px 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.detail-section p {
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.job-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.job-list li + li {
  margin-top: 4px;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-list a {
  overflow-wrap: anywhere;
}

/* Empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-icon {
  width: 64px;
  height: 64px;
  color: var(--muted);
  opacity: 0.6;
}

.empty h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.empty p {
  color: var(--muted);
  margin: 0;
  max-width: 320px;
}

.empty .button {
  margin-top: 4px;
  min-height: 44px;
  padding: 10px 20px;
}

/* Skeleton */
.skeleton-wrap {
  display: grid;
  gap: 16px;
}

.skeleton-card {
  height: 170px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.skeleton-card span {
  display: block;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--surface-2) 25%, #f0ebe4 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

.skeleton-card span:nth-child(1) { height: 18px; width: 65%; }
.skeleton-card span:nth-child(2) { height: 14px; width: 40%; }
.skeleton-card span:nth-child(3) { height: 60px; width: 100%; border-radius: var(--radius-md); }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 39, 46, 0.35);
  backdrop-filter: blur(2px);
  z-index: 30;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.backdrop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop */
@media (min-width: 700px) {
  .topbar {
    padding: 14px 24px;
  }

  h1 {
    font-size: 1.45rem;
  }

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

  .card {
    padding: 20px;
  }
}

@media (min-width: 1050px) {
  .layout {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    padding: 24px;
    gap: 24px;
  }

  .filters {
    position: sticky;
    top: 78px;
    width: auto;
    max-height: calc(100vh - 96px);
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
  }

  .drawer-handle,
  .drawer-footer,
  .filters-head .button {
    display: none;
  }

  .filters-head {
    margin-bottom: 0;
  }

  .topbar .filter-pill {
    display: none;
  }

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

  .toolbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filters,
  .backdrop,
  .card,
  .button,
  .summary-detail,
  .menu-dropdown,
  .filter-pill,
  .topbar {
    transition: none;
  }

  .skeleton-card span {
    animation: none;
  }
}
