.competitive-review {
  --review-bg: var(--portal-bg-121219, #121219);
  --review-surface: var(--portal-bg-191820, #191820);
  --review-line: var(--portal-line-393541, #393541);
  --review-text: var(--portal-fg-f4f2fa, #f4f2fa);
  --review-muted: var(--portal-fg-bcb7c9, #bcb7c9);
  --review-accent: var(--portal-fg-c7b3f0, #c7b3f0);
  --review-column: var(--portal-bg-292333, #292333);
  margin: 0;
  background: var(--review-bg);
  color: var(--review-text);
  font: 1rem/1.6 system-ui, sans-serif;
}

.competitive-review *, .competitive-review *::before, .competitive-review *::after { box-sizing: border-box; }
.competitive-review main { padding-block: clamp(28px, 5vw, 56px) 64px; }
.competitive-review main a { color: var(--review-accent); text-underline-offset: .2em; }
.competitive-review main :focus-visible { outline: 2px solid var(--review-accent); outline-offset: 3px; }
.competitive-review .skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-200%); padding: 8px 16px; color: var(--review-text); background: var(--review-surface); }
.competitive-review .skip-link:focus { transform: none; }
.competitive-review h1, .competitive-review h2, .competitive-review h3, .competitive-review h4 { line-height: 1.24; margin: 0; }
.competitive-review h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -.045em; }
.competitive-review h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.025em; }
.competitive-review h3 { font-size: 1.2rem; letter-spacing: -.012em; }
.competitive-review h4 { font-size: 1rem; }
.competitive-review main p, .competitive-review main li { max-width: 85ch; }
.competitive-review .review-date { margin: 0 0 8px; color: var(--review-accent); font-size: .8125rem; font-weight: 650; }
.competitive-review .review-intro p:not(.review-date) { color: var(--review-muted); }
.competitive-review main > section { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--review-line); }
.competitive-review main section { scroll-margin-top: 16px; }
.competitive-review .level3, .competitive-review #screenshot-gallery > section { margin-top: 32px; }
.review-nav, .gallery-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.review-nav a, .gallery-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.feature-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-block: 20px 8px; }
.feature-filter[hidden], .matrix-group[hidden], .feature-table tr[hidden], .matrix-legend[hidden] { display: none; }
.feature-filter label { font-weight: 600; }
.feature-filter select {
  min-height: 44px;
  min-width: 140px;
  padding: 6px 12px;
  border: 1px solid var(--review-line);
  border-radius: 6px;
  background: var(--review-surface);
  color: var(--review-text);
  font: inherit;
}
.feature-filter p, .scroll-tip { color: var(--review-muted); font-size: .875rem; margin: 0; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 8px; padding: 0; list-style: none; }
.matrix-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; }
.matrix-legend .heatmap-icon { width: 23px; height: 23px; padding: 3px; border-radius: 4px; background: var(--heatmap-surface); color: var(--heatmap-ink); }
.matrix-hint, .matrix-method { margin: 0; color: var(--review-muted); font-size: .875rem; }
.matrix-method summary { width: fit-content; min-height: 44px; padding-block: 10px; cursor: pointer; }
.matrix-method p { margin: 0 0 12px; }
.scroll-tip { display: none; }
.comparison-scroll, .review-table { margin-top: 12px; overflow: auto; border: 1px solid var(--review-line); border-radius: 8px; }
.comparison-scroll { container-type: inline-size; }
.competitive-review table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; line-height: 1.45; text-align: left; }
.competitive-review table th, .competitive-review table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--review-line); overflow-wrap: break-word; }
.competitive-review table thead th { background: var(--review-surface); text-align: left; }
.competitive-review table tbody tr:last-child > * { border-bottom: 0; }
.competitive-review .feature-table { min-width: 1060px; table-layout: fixed; }
.feature-table th:first-child { position: sticky; left: 0; width: 15%; z-index: 1; background: var(--review-surface); border-right: 1px solid var(--review-line); }
.feature-table th:nth-child(2) { width: 23%; }
.feature-table .snoraire, .feature-table thead th:nth-child(2) { background: var(--review-column); }
.competitive-review .feature-table.is-heatmap { min-width: 520px; }
.is-heatmap th:first-child { width: clamp(120px, 29cqi, 305px); }
.is-heatmap th:nth-child(2) { width: auto; }
.is-heatmap thead th:not(:first-child) { text-align: center; }
.is-heatmap thead th:not(:first-child, :last-child) { border-inline-end: 1px solid var(--review-line); }
.is-heatmap thead th:nth-child(2) { color: var(--review-accent); }
.competitive-review .is-heatmap tr[data-status] > th { padding: 0; vertical-align: middle; }
.competitive-review .is-heatmap tr[data-status] > td { position: relative; vertical-align: middle; text-align: center; padding: 5px; border-inline-end: 1px solid var(--review-line); }
.competitive-review .is-heatmap tr[data-status] > td:last-child { border-inline-end: 0; }
.competitive-review .is-heatmap td[data-coverage] { background: var(--heatmap-surface); color: var(--heatmap-ink); }
.heatmap-icon { display: inline-block; width: 19px; height: 19px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proof-trigger { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.competitive-review main a.proof-trigger { color: inherit; }
.proof-trigger:hover, .proof-trigger[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.competitive-review main .proof-trigger:focus-visible { outline-offset: -3px; }
.proof-icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
#feature-proof { position: fixed; bottom: auto; right: auto; margin: 0; width: min(345px, calc(100vw - 20px)); max-height: min(72dvh, 580px); padding: 12px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--review-line); border-radius: 8px; background: var(--review-surface); color: var(--review-text); box-shadow: 0 8px 28px #0004; }
#feature-proof .proof-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#feature-proof .proof-close { width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--review-line); border-radius: 6px; background: transparent; color: var(--review-text); font: 1.4rem/1 system-ui, sans-serif; cursor: pointer; }
#feature-proof .proof-capability { margin: 0 0 8px; color: var(--review-muted); font-size: .875rem; }
#feature-proof .proof-images { display: grid; gap: 12px; }
#feature-proof .proof-images:has(figure + figure) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#feature-proof figure { margin: 0; min-width: 0; }
#feature-proof .caption .app { display: none; }
#feature-proof h4 { margin: 0 0 6px; font-size: .875rem; }
#feature-proof .shot { display: block; }
#feature-proof img { display: block; width: 100%; height: clamp(130px, 34dvh, 260px); object-fit: contain; background: var(--review-bg); }
#feature-proof figcaption { margin-top: 6px; color: var(--review-muted); font-size: .8125rem; }
#feature-proof .source, #feature-proof .proof-download { display: block; width: fit-content; padding-block: 5px; }
[data-coverage="available"], [data-key="available"] { --heatmap-surface: #203a32; --heatmap-ink: #afebc5; }
[data-coverage="limited"], [data-key="limited"] { --heatmap-surface: #403321; --heatmap-ink: #f3d18f; }
[data-coverage="gap"], [data-key="gap"] { --heatmap-surface: #442a35; --heatmap-ink: #ffb9c7; }
[data-coverage="research"], [data-key="research"] { --heatmap-surface: #382b50; --heatmap-ink: #d7c3ff; }
[data-coverage="unknown"], [data-key="unknown"] { --heatmap-surface: var(--review-surface); --heatmap-ink: var(--review-muted); }
:root[data-theme="light"] :is([data-coverage="available"], [data-key="available"]) { --heatmap-surface: #e1f1e7; --heatmap-ink: #205c40; }
:root[data-theme="light"] :is([data-coverage="limited"], [data-key="limited"]) { --heatmap-surface: #faedcf; --heatmap-ink: #77520d; }
:root[data-theme="light"] :is([data-coverage="gap"], [data-key="gap"]) { --heatmap-surface: #f7e2e7; --heatmap-ink: #952c4e; }
:root[data-theme="light"] :is([data-coverage="research"], [data-key="research"]) { --heatmap-surface: #eee4fa; --heatmap-ink: #65418e; }
.matrix-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.feature-toggle { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 7px 12px; border: 0; cursor: pointer; background: transparent; color: inherit; font: inherit; text-align: left; }
.feature-toggle::after { content: ""; width: 7px; height: 7px; flex: 0 0 7px; margin-inline: 3px; border: solid var(--review-accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.feature-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
.feature-toggle:hover, .feature-toggle[aria-expanded="true"] { background: var(--review-column); }
.competitive-review main .feature-toggle:focus-visible { outline-offset: -3px; }
.competitive-review .feature-table .feature-detail > td { padding: 0; background: var(--review-bg); }
.feature-notes { position: sticky; left: 0; max-width: 100cqi; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px 16px; margin: 0; padding: 16px; }
.feature-notes dt { color: var(--review-accent); font-weight: 650; }
.feature-notes dd { margin: 4px 0 0; }
.feature-table .feature-status { display: block; margin-bottom: 3px; color: var(--review-accent); font-size: .78rem; }
.feature-table .gap { color: var(--portal-fg-ffb3c1, #ffb3c1); }
.feature-table .partial { color: var(--portal-fg-e8d4ab, #e8d4ab); }
.feature-table .beta { color: var(--portal-fg-b8e7cc, #b8e7cc); }
:root[data-theme="light"] .feature-table .gap { color: #8c2646; }
:root[data-theme="light"] .feature-table .partial { color: #73510d; }
:root[data-theme="light"] .feature-table .beta { color: #216347; }
.competitive-review .matrix-group > p { color: var(--review-muted); font-size: .8125rem; }
.review-table table { min-width: 520px; }

#screenshot-gallery .reading { margin: 8px 0 16px; color: var(--review-muted); }
#screenshot-gallery .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
#screenshot-gallery figure { margin: 0; border: 1px solid var(--review-line); border-radius: 8px; }
#screenshot-gallery .caption, #screenshot-gallery figcaption { padding: 12px; }
#screenshot-gallery .app { margin: 0; color: var(--review-accent); font-size: .8125rem; font-weight: 650; }
#screenshot-gallery .shot { display: block; height: 350px; padding: 10px; background: var(--review-surface); }
#screenshot-gallery .shot:focus-visible { outline-offset: -3px; }
#screenshot-gallery .shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
#screenshot-gallery figcaption { color: var(--review-muted); font-size: .8125rem; }
#screenshot-gallery .source { display: block; margin-top: 6px; }
#source-notes { padding-top: 16px; border-top: 1px solid var(--review-line); color: var(--review-muted); }

@media (max-width: 570px) { .scroll-tip { display: block; } }
@media (max-width: 800px) {
  #screenshot-gallery .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .review-nav, .gallery-nav { gap: 0 16px; }
  .competitive-review main > section { margin-top: 32px; padding-top: 24px; }
  .competitive-review .feature-table.is-heatmap { min-width: 468px; }
  .competitive-review .is-heatmap thead th { padding: 8px 3px; font-size: .75rem; overflow-wrap: normal; }
  .competitive-review .is-heatmap thead th:first-child { padding-inline: 8px; }
  .feature-toggle { padding-inline: 8px; font-size: .8125rem; }
  #screenshot-gallery .grid { gap: 8px; }
  #screenshot-gallery .caption { min-height: 76px; }
  #screenshot-gallery .caption, #screenshot-gallery figcaption { padding: 8px; }
  #screenshot-gallery .shot { height: 245px; padding: 6px; }
}
