/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* IBM Plex 5.3.0 via fontsource, latin subset, SIL OFL 1.1 (see fonts/LICENSE-ibm-plex-*.txt) */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/ibm-plex-sans-latin-400-normal-64251e64.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/ibm-plex-sans-latin-500-normal-290aaea2.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/ibm-plex-sans-latin-600-normal-99b2fa32.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/ibm-plex-mono-latin-400-normal-d803141a.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/ibm-plex-mono-latin-500-normal-3f7bbac1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/ibm-plex-mono-latin-600-normal-b71798d4.woff2") format("woff2"); }

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: #e6e9ed;
  --border: #d9dde3;
  --border-strong: #c3c9d1;
  --text: #15181d;
  --text-2: #4a525e;
  --text-3: #68717d;
  --chrome: #15181d;
  --chrome-2: #2a2f37;

  --accent: #2b55c9;
  --accent-hover: #1f429f;
  --accent-tint: #e8eefc;
  --accent-line: #c9d6f6;

  --danger-text: #b42a22;
  --danger-ink: #8a1f19;
  --danger-tint: #fbeceb;
  --danger-line: #f0c4c0;
  --warning-ink: #6b4a00;
  --warning-tint: #fdf5e3;
  --warning-line: #f2d9a6;

  --sev-critical: #8e1330;
  --sev-high: #d0362c;
  --sev-medium: #e8821e;
  --sev-low: #f0c94a;
  --sev-unknown: #b9c0ca;
  --sev-critical-on: #ffffff;
  --sev-high-on: #ffffff;
  --sev-medium-on: #15181d;
  --sev-low-on: #15181d;
  --sev-unknown-on: #15181d;

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-s: 3px;
  --radius-m: 6px;
  --control-height: 36px;
  --control-height-s: 32px;
  --shadow-popover: 0 8px 24px rgb(21 24 29 / 12%);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font-sans);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.01em; }
h2 { font-size: 18px; line-height: 26px; }
h3 { font-size: 16px; line-height: 24px; }

code, .mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.muted { color: var(--text-3); }
.note { color: var(--text-3); font-size: 13px; }
.title-muted { color: var(--text-2); }

/* Shell */

.app-header { background: var(--chrome); color: #ffffff; }

.app-header__inner {
  max-width: 1360px;
  min-height: 52px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.app-header__start, .app-header__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.app-header__end { gap: 12px; font-size: 13px; color: var(--border-strong); }

.brand { display: flex; align-items: center; gap: 10px; color: #ffffff; font-size: 16px; font-weight: 600; }
.brand:hover { color: #ffffff; text-decoration: none; }

.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 6px 10px; border-radius: var(--radius-m); color: var(--border-strong); }
.main-nav a:hover { color: #ffffff; text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--chrome-2); color: #ffffff; }

.app-header .btn { border-color: var(--text-2); background: transparent; color: #ffffff; }
.app-header__end .user { color: inherit; }
.app-header__end .user:hover { color: #ffffff; }

.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page--narrow { max-width: 1040px; }
.page--form { max-width: 560px; }
.page--slim { max-width: 720px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-head__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.page-title--mono { font-family: var(--font-mono); font-size: 28px; line-height: 36px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-3); }
.breadcrumb [aria-current="page"] { color: var(--text); }

.flash {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-m);
  background: var(--accent-tint);
  color: var(--accent-hover);
  font-size: 13px;
}

.flash-area { max-width: 1360px; margin: 20px auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 8px; }
.flash--alert { border-color: var(--danger-line); background: var(--danger-tint); color: var(--danger-ink); }
.flash--warning { border-color: var(--warning-line); background: var(--warning-tint); color: var(--warning-ink); font-weight: 500; }

/* Panels */

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); }
.panel--padded { padding: 20px 24px; }
.panel--dashed { border-style: dashed; border-color: var(--border-strong); }
.panel--danger { border-color: var(--danger-line); }

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.panel__head--stack { flex-direction: column; align-items: flex-start; gap: 4px; }

.panel__foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }

.section-split { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.section-split__intro { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.section-split__body { flex: 2 1 420px; }

.danger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: #fdf6f5;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}

.title-danger { color: var(--danger-ink); }

.empty { padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }

.count {
  padding: 0 7px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--text-2);
  font: 500 13px var(--font-mono);
}

/* Tables */

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

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

.table th {
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tr.muted { color: var(--text-3); }
.table td { height: 44px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .num { text-align: right; white-space: nowrap; }
.table .nowrap, .table .versions, .table .fixed { white-space: nowrap; }
.table .truncate { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table--muted { color: var(--text-3); }
.table--muted a { color: var(--text-2); }

/* Severity */

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-s);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge--critical { background: var(--sev-critical); color: var(--sev-critical-on); }
.badge--high { background: var(--sev-high); color: var(--sev-high-on); }
.badge--medium { background: var(--sev-medium); color: var(--sev-medium-on); }
.badge--low { background: var(--sev-low); color: var(--sev-low-on); }
.badge--unknown { background: var(--sev-unknown); color: var(--sev-unknown-on); }
.badge--outline { background: transparent; color: var(--text-2); border: 1px solid currentColor; padding: 1px 5px; }
.badge--outline.badge--critical { border-color: var(--sev-critical); }
.badge--outline.badge--high { border-color: var(--sev-high); }
.badge--outline.badge--medium { border-color: var(--sev-medium); }
.badge--outline.badge--low { border-color: var(--sev-low); }
.badge--outline.badge--unknown { border-color: var(--sev-unknown); }
.badge--admin { background: var(--chrome); color: #ffffff; }

.counts { display: inline-flex; border-radius: var(--radius-s); overflow: hidden; font: 12px var(--font-mono); white-space: nowrap; }
.counts > span { display: inline-flex; gap: 5px; padding: 2px 7px; }
.counts .critical { background: var(--sev-critical); color: var(--sev-critical-on); }
.counts .high { background: var(--sev-high); color: var(--sev-high-on); }
.counts .medium { background: var(--sev-medium); color: var(--sev-medium-on); }
.counts .low { background: var(--sev-low); color: var(--sev-low-on); }
.counts .unknown { background: var(--sev-unknown); color: var(--sev-unknown-on); }

.swatch { width: 10px; height: 10px; flex: none; border: 2px solid; border-radius: 2px; }
.swatch--critical { border-color: var(--sev-critical); }
.swatch--high { border-color: var(--sev-high); }
.swatch--medium { border-color: var(--sev-medium); }
.swatch--low { border-color: var(--sev-low); }
.swatch--unknown { border-color: var(--sev-unknown); }
.legend .swatch--critical, [aria-current="true"] > .swatch--critical { background: var(--sev-critical); }
.legend .swatch--high, [aria-current="true"] > .swatch--high { background: var(--sev-high); }
.legend .swatch--medium, [aria-current="true"] > .swatch--medium { background: var(--sev-medium); }
.legend .swatch--low, [aria-current="true"] > .swatch--low { background: var(--sev-low); }
.legend .swatch--unknown, [aria-current="true"] > .swatch--unknown { background: var(--sev-unknown); }

/* Chips, markers, identifiers */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  color: var(--text-2);
  font: 12px var(--font-mono);
  white-space: nowrap;
}

.chip--dashed { border-style: dashed; color: var(--text-3); }
.chip--fill { border-color: transparent; background: var(--surface-2); }
.chip--plain { font-family: var(--font-sans); }

.marker { margin-left: 8px; padding: 0 5px; border: 1px solid var(--accent); border-radius: var(--radius-s); color: var(--accent); font: 600 10px var(--font-mono); }

.diff { display: inline-flex; gap: 6px; font-size: 12px; white-space: nowrap; }
.diff > span { padding: 1px 7px; border-radius: var(--radius-s); font-weight: 500; }
.diff b { font-family: var(--font-mono); }
.diff__new { background: var(--accent-tint); color: var(--accent-hover); }
.diff__gone { background: var(--surface-2); color: var(--text-2); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-s); font-size: 12px; font-weight: 500; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.status--off { border-style: dashed; color: var(--text-3); }
.status--off::before { background: var(--sev-unknown); }

.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.with-icon { display: inline-flex; align-items: center; gap: 6px; }

/* Controls */

.btn {
  height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  font: 500 14px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover { text-decoration: none; border-color: var(--text-3); color: var(--text); }
.btn:disabled { border-color: var(--line); background: var(--surface-2); color: var(--text-3); cursor: default; }
.btn--primary { border-color: var(--accent); background: var(--accent); color: #ffffff; }
.btn--primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: #ffffff; }
.btn--danger { color: var(--danger-text); }
.btn--danger:hover { color: var(--danger-ink); }
.btn--small { height: var(--control-height-s); padding: 0 12px; font-size: 13px; }
.btn--icon { width: 28px; height: 28px; padding: 0; color: var(--text-2); }

input[type="text"], input[type="search"], input[type="date"], select {
  height: var(--control-height);
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  font: 14px var(--font-sans);
}

input.mono, select.mono { font-family: var(--font-mono); }
input.small { height: var(--control-height-s); font-size: 13px; }
input[aria-invalid="true"] { border-color: var(--danger-text); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form input { width: 220px; }
form.button_to { display: inline; }

.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 10px; color: var(--text-3); }
.search input { width: 240px; padding-left: 34px; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; }
.field__label { font-size: 13px; font-weight: 600; }
.field__hint { font-size: 12px; color: var(--text-3); }

/* Tabs and filters */

.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border); }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  padding: 12px 8px 10px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
}

.tab:hover { color: var(--text); text-decoration: none; }
.tab[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); font-weight: 600; }
.tab .count { font-size: 12px; font-weight: 500; }

.tab-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.tab-bar .tabs { padding: 0; border-bottom: 0; }
.tab-bar > .filter-group { gap: 16px; padding-bottom: 8px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.filter-group { max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.toggle {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text-3);
  font: 500 12px var(--font-mono);
  white-space: nowrap;
}

.toggle:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.toggle[aria-current="true"] { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.toggle--accent[aria-current="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-hover); }

.segmented { max-width: 100%; overflow-x: auto; display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.segmented a { flex: none; white-space: nowrap; height: 30px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--text-2); font: 12px var(--font-mono); }
.segmented a + a { border-left: 1px solid var(--border-strong); }
.segmented a:hover { color: var(--text); text-decoration: none; }
.segmented a[aria-current="true"] { background: var(--accent-tint); color: var(--accent-hover); font-weight: 600; }

/* Header card */

.header-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 18px 24px; }
.header-card__field { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-left: 32px; border-left: 1px solid var(--line); }
.header-card__field--main { flex: 1 1 320px; gap: 2px; padding-left: 0; border-left: 0; }
.header-card__label { color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.header-card__value { min-height: var(--control-height); }

@media (max-width: 720px) {
  .header-card__field { flex-basis: 100%; padding-left: 0; border-left: 0; }
}

.dropdown { position: relative; }
.dropdown__toggle { width: 100%; justify-content: flex-start; padding: 0 10px; list-style: none; }
.dropdown__toggle::-webkit-details-marker { display: none; }
.dropdown__value { flex: 1; overflow: hidden; text-align: left; text-overflow: ellipsis; }
.dropdown__menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(420px, 90vw);
  max-height: 360px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-popover);
}
.dropdown__menu li + li { border-top: 1px solid var(--surface-2); }
.dropdown__menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--text); }
.dropdown__menu a:hover { background: var(--surface-2); text-decoration: none; }
.dropdown__menu a[aria-current="true"] { background: var(--accent-tint); }
.dropdown__menu .note { margin-left: auto; padding-left: 16px; font-size: 12px; white-space: nowrap; }

.tabs--page { padding: 0; }
.header-card h1 { line-height: 40px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--text); }
.tile:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.overview-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.overview-row > .trend { flex: 2 1 560px; min-width: 0; }
.overview-row > .top-vulnerabilities { flex: 1 1 340px; min-width: 0; }
.chart--compact { height: 190px; }
.top-vulnerabilities .list > li { justify-content: flex-start; flex-wrap: nowrap; min-height: 48px; padding: 6px 20px; }
.top-vulnerabilities__finding { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top-vulnerabilities__finding .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.tile__total { font: 600 28px/1.1 var(--font-mono); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.origin .chip + .chip { margin-left: 4px; }

/* Detail blocks */

.meta-grid {
  flex: 999 1 640px;
  margin: 0;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px 24px;
  font-size: 13px;
}

.meta-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-grid dt { color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.meta-grid dd { margin: 0; overflow-wrap: anywhere; }

.summary-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }

.diff-summary { flex: 1 1 280px; padding: 16px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.diff-summary__values { display: flex; gap: 28px; }
.diff-summary__values a:hover { text-decoration: none; }
.diff-summary__values a:hover b { text-decoration: underline; }
.diff-summary__values > * { display: flex; flex-direction: column; font-size: 12px; color: var(--text-2); }
.diff-summary__values b { font: 600 28px/1.1 var(--font-mono); color: var(--text-2); }
.diff-summary__values .is-new b { color: var(--accent); }

.list { margin: 0; padding: 0; list-style: none; }
.list > li { min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }

.token-secret {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  font: 500 14px var(--font-mono);
  overflow-wrap: anywhere;
  user-select: all;
}

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart { position: relative; height: 240px; padding: 16px 20px 8px; }

/* Sign in */

.sign-in { min-height: 100vh; padding: 48px 24px; display: flex; align-items: center; justify-content: center; background: var(--chrome); }
.sign-in__box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.sign-in__brand { display: flex; align-items: center; justify-content: center; gap: 12px; color: #ffffff; }
.sign-in__card { padding: 28px; border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.sign-in__card form.button_to { display: block; }
.sign-in__card .btn { width: 100%; height: 44px; font-size: 15px; }

/* Styleguide (/design, local environments) */

.styleguide-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; font-size: 12px; }
.swatch-tile { height: 48px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: var(--radius-m); }
