@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: rgba(24, 24, 24, 0.74);
  --panel-solid: #171717;
  --ink: #f5f3f0;
  --muted: #aaa6a1;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #af1b5a;
  --accent-2: #d2b55b;
  --cyan: #74c7d3;
  --radius: 14px;
  --accent-dark: #8c1548;
  --warn: #a75d12;
  --danger: #a33d3d;
  --soft: rgba(255, 255, 255, 0.055);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  font-family: "Inter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  min-height: 100%;
  overflow-x: clip;
}

html.is-windows {
  zoom: 86%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 20% 10%, rgba(175, 27, 90, 0.22), transparent 28rem),
    linear-gradient(180deg, #101010 0%, var(--bg) 42%, #0d0b0c 100%);
  background-color: var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 8.3vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.subpage-main {
  padding-top: 118px;
}

.tool-page-main {
  display: grid;
  padding-top: clamp(14px, 3vw, 34px);
}

.tool-page-main .tool-page-hero {
  min-height: auto;
  padding-top: clamp(18px, 3.5vw, 44px);
  padding-bottom: clamp(16px, 3vw, 34px);
}

.tool-page-main .tool-page-hero + .section {
  padding-top: clamp(14px, 2.6vw, 32px);
}

.tips-main .section {
  padding-top: clamp(28px, 4.5vw, 54px);
  padding-bottom: clamp(28px, 4.5vw, 54px);
}

.tips-main .page-hero + .section {
  padding-top: clamp(24px, 4vw, 44px);
}

.tips-main .clean-page-hero {
  min-height: 31svh;
}

.page-hero {
  width: min(1320px, calc(100% - 36px));
  min-height: 58svh;
  position: relative;
  display: grid;
  align-content: end;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) clamp(22px, 5vw, 56px) clamp(36px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(175, 27, 90, 0.26), rgba(116, 199, 211, 0.06)),
    rgba(17, 17, 17, 0.72);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p:not(.kicker) {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
}

.tool-page-hero h1 {
  font-size: clamp(2.6rem, 9vw, 7rem);
}

.clean-page-hero {
  min-height: 35svh;
  padding-top: clamp(36px, 7vw, 90px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.clean-page-hero > * {
  position: relative;
  z-index: 2;
}

.tool-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(22px, 5vw, 70px);
}

.tool-hero-copy {
  min-width: 0;
}

.language-switch {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  right: clamp(92px, 14vw, 170px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 7px;
  color: inherit;
  text-decoration: none;
}

.language-switch span,
.language-switch a:hover {
  border-color: rgba(210, 181, 91, 0.42);
  color: var(--accent-2);
  background: rgba(210, 181, 91, 0.09);
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.joined-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
}

.joined-title span {
  display: inline;
}

.magenta-text {
  color: var(--accent);
}

.tool-hero-logo-link {
  display: inline-flex;
  justify-self: end;
  margin-top: clamp(14px, 3vw, 36px);
}

.tool-hero-logo {
  width: auto;
  height: auto;
  display: block;
}

.tool-hero-copy p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.is-desktop-app .tool-page-main {
  padding-top: 10px;
}

.is-desktop-app .tool-page-main .tool-page-hero {
  width: min(1440px, 90vw);
  min-height: auto;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  padding-top: 12px;
  padding-bottom: 10px;
}

.is-desktop-app .kicker {
  margin-bottom: 7px;
  font-size: 0.56rem;
}

.is-desktop-app .joined-title {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 5.4vw, 4.2rem);
}

.is-desktop-app .tool-hero-copy p:not(.kicker) {
  max-width: none;
  font-size: clamp(0.78rem, 1.08vw, 0.86rem);
  line-height: 1.25;
  white-space: nowrap;
}

.is-desktop-app .tool-hero-logo-link {
  margin-top: 0;
}

.is-desktop-app .tool-hero-logo {
  max-height: 68px;
}

.is-desktop-app .tool-page-main .tool-page-hero + .section {
  width: min(1440px, 90vw);
  padding-top: 10px;
}

.workspace {
  width: 100%;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(14px, 2.6vw, 32px) 0 clamp(28px, 4.5vw, 54px);
}

.copy-tool-panel {
  display: block;
  padding: 0;
}

.plain-legal {
  padding: 22px 0 17px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.plain-legal p {
  margin: 0;
}

.plain-legal a {
  color: var(--accent-2);
  font-weight: 900;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.topbar-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.manual-button {
  min-height: 22px;
  border-color: rgba(255, 204, 51, 0.42);
  border-radius: 999px;
  padding: 2px 8px;
  color: #f4d982;
  background: rgba(255, 204, 51, 0.08);
  font-size: 11px;
  font-weight: 500;
}

.manual-button:hover:not(:disabled) {
  border-color: rgba(255, 204, 51, 0.66);
  background: rgba(255, 204, 51, 0.14);
}

.license-button.is-active {
  border-color: rgba(101, 190, 130, 0.42);
  color: #bfe8ca;
  background: rgba(101, 190, 130, 0.12);
}

.license-button.is-active:hover:not(:disabled) {
  border-color: rgba(101, 190, 130, 0.62);
  background: rgba(101, 190, 130, 0.18);
}

.status-pill {
  min-width: 126px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
}

.status-pill.is-analyzed {
  border-color: rgba(101, 190, 130, 0.42);
  color: #bfe8ca;
  background: rgba(101, 190, 130, 0.12);
}

.controls {
  padding: 16px 26px 14px;
  border-bottom: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field span,
.field > label {
  color: var(--accent-2);
}

.field-hint {
  margin: 0;
  color: #9fcdd6;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
}

.public-preview-note {
  margin: 2px 0 0;
  color: #d884aa;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
}

.is-desktop-app .web-only {
  display: none;
}

.desktop-only {
  display: none;
}

.is-desktop-app .desktop-only {
  display: inline-flex;
}

.path-field {
  margin-bottom: 14px;
}

.path-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.path-field.is-dragging .path-input-row {
  outline: 3px solid rgba(175, 27, 90, 0.2);
  outline-offset: 4px;
}

#selectFolderButton {
  min-width: 174px;
  white-space: nowrap;
  border-color: rgba(116, 199, 211, 0.42);
  color: #bfe9ef;
  background: rgba(116, 199, 211, 0.1);
}

#selectFolderButton:hover:not(:disabled) {
  border-color: rgba(116, 199, 211, 0.62);
  background: rgba(116, 199, 211, 0.16);
}

input,
select {
  width: 100%;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  line-height: 1.2;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(175, 27, 90, 0.18);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.system-toggle {
  grid-column: 1 / span 2;
  grid-row: 2;
  width: max-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
}

.padding-group {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  align-items: end;
}

.padding-digits-field {
  min-width: 0;
}

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

.toggle.disabled {
  opacity: 0.58;
}

.field.disabled {
  opacity: 0.58;
}

.toggle.compact {
  min-height: 36px;
  padding: 7px 10px;
}

.actions {
  display: flex;
  grid-column: 3 / span 2;
  grid-row: 2;
  justify-content: flex-end;
  gap: 10px;
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 800;
}

button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

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

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

.icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  margin-right: 4px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.summary div {
  padding: 16px 26px;
  border-right: 1px solid var(--line);
}

.summary div:last-child {
  border-right: 0;
}

.summary strong {
  display: block;
  font-size: 24px;
}

.summary span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.results {
  padding: 0 0 10px;
}

.table-head,
.result-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.2fr) minmax(0, 1.2fr) 180px;
  gap: 10px;
  align-items: center;
}

.table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sort-button {
  width: fit-content;
  min-width: 0;
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sort-button:hover,
.sort-button.active {
  color: var(--accent-2);
  background: transparent;
}

.sort-arrow {
  width: 13px;
  color: var(--accent-2);
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.results-list {
  max-height: 54vh;
  overflow: auto;
}

.result-row {
  min-height: 44px;
  padding: 6px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.result-row.changed {
  background: rgba(116, 199, 211, 0.055);
}

.result-row.blocked {
  background: rgba(167, 93, 18, 0.12);
}

.type-badge,
.state-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.state-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.type-badge {
  width: 34px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #bfe9ef;
  font-size: 18px;
}

.type-badge svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.type-badge.folder {
  background: transparent;
  color: #ffcc33;
}

.state-badge.ok {
  background: rgba(116, 199, 211, 0.17);
  color: #bfe9ef;
}

.state-badge.renamed {
  background: rgba(101, 190, 130, 0.18);
  color: #bfe8ca;
}

.state-badge.same {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.state-badge.warn {
  background: rgba(167, 93, 18, 0.22);
  color: #ffca8b;
}

.state-badge.notice {
  background: rgba(255, 204, 51, 0.18);
  color: #f4d982;
}

.path-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.18;
}

.old-name {
  color: #b7b0a8;
}

.new-name {
  color: var(--ink);
  font-weight: 800;
}

.empty-state {
  padding: 42px 26px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(460px, calc(100vw - 44px));
  border-radius: 8px;
  padding: 13px 15px;
  color: #fff;
  background: #1c1c1c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.preview-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.preview-dialog::backdrop {
  background: rgba(23, 32, 38, 0.48);
}

.preview-panel {
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  max-height: min(760px, calc(100vh - 28px));
}

.preview-header,
.preview-toolbar,
.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.preview-header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.selection-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-list {
  overflow: auto;
}

.manual-dialog {
  width: min(760px, calc(100vw - 28px));
  background: #172026;
}

.manual-panel {
  grid-template-rows: auto minmax(180px, 1fr);
  background: #172026;
}

.manual-title {
  font-size: 24px;
}

.manual-content {
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 20px;
  color: var(--ink);
  background: #172026;
}

.manual-content section {
  display: grid;
  gap: 8px;
}

.manual-content h3 {
  margin: 0;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-content p,
.manual-content li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.manual-content p,
.manual-content ol,
.manual-content ul {
  margin: 0;
}

.manual-content a {
  color: var(--accent-2);
  font-weight: 700;
}

.manual-content ol,
.manual-content ul {
  padding-left: 20px;
}

.download-content {
  gap: 16px;
}

.download-intro {
  max-width: 620px;
}

.download-license-note {
  max-width: 680px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: grid;
  gap: 7px;
  min-height: 142px;
  border: 1px solid rgba(244, 217, 130, 0.3);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 204, 51, 0.07);
  text-decoration: none;
}

.download-card:hover {
  border-color: rgba(244, 217, 130, 0.58);
  background: rgba(255, 204, 51, 0.12);
}

.download-card.disabled-download {
  cursor: not-allowed;
  opacity: 0.62;
}

.download-card.disabled-download:hover {
  border-color: rgba(244, 217, 130, 0.3);
  background: rgba(255, 204, 51, 0.07);
}

.download-card strong {
  color: #f4d982;
  font-size: 18px;
  font-weight: 700;
}

.download-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.download-card .download-system {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.license-dialog {
  width: min(620px, calc(100vw - 28px));
}

.license-dialog #removeLicenseButton.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.license-dialog #removeLicenseButton.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.license-content {
  gap: 16px;
}

.license-support-line {
  white-space: nowrap;
}

.license-content .field {
  text-transform: none;
}

.license-content .field span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.license-status {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
}

.license-status.active {
  border-color: rgba(101, 190, 130, 0.42);
  color: #bfe8ca;
  background: rgba(101, 190, 130, 0.12);
}

.license-status.invalid {
  border-color: rgba(167, 93, 18, 0.5);
  color: #f4d982;
  background: rgba(167, 93, 18, 0.12);
}

.preview-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.preview-row.blocked {
  background: rgba(167, 93, 18, 0.12);
  cursor: not-allowed;
}

.preview-check {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.preview-paths {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.preview-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

@media (max-width: 1100px) {
  .topbar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .path-input-row {
    grid-template-columns: 1fr;
  }

  #selectFolderButton {
    width: 100%;
    min-width: 0;
  }

  .tool-page-hero {
    grid-template-columns: 1fr;
  }

  .tool-hero-logo-link {
    justify-self: start;
    margin-top: 0;
  }

  .rule-grid,
  .summary {
    grid-template-columns: 1fr;
  }

  .system-toggle {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    white-space: normal;
  }

  .actions {
    grid-column: auto;
    grid-row: auto;
  }

  .summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .table-head {
    display: none;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .preview-header,
  .preview-toolbar,
  .preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .preview-row .state-badge {
    grid-column: 2;
  }

  .download-options {
    grid-template-columns: 1fr;
  }
}
