:root {
  color-scheme: light;
  --accent: #a33d58;
  --accent-hover: #842b43;
  --accent-soft: #f6edf0;
  --accent-text: #78334b;
  --text: #25262b;
  --muted: #64636c;
  --line: #e7e5e9;
  --surface: #fdfdfe;
  --background: #eeedf3;
  --panel: #303238;
  --footer: #f9f8fb;
  --welcome-footer: #eeedf2;
  --field: #ffffff;
  --hover: #f5f2f6;
  --unavailable: #d9d8df;
  --font: system-ui, sans-serif;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('assets/fonts/AtkinsonHyperlegibleNext-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: OpenDyslexic;
  src: url('assets/fonts/OpenDyslexic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: OpenDyslexic;
  src: url('assets/fonts/OpenDyslexic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* User preferences take priority over the theme's inline colours. */
:root[data-contrast='high'] {
  --accent: #252525 !important;
  --accent-hover: #000000 !important;
  --accent-soft: #eeeeee !important;
  --accent-text: #000000 !important;
  --text: #000000 !important;
  --muted: #3b3b3b !important;
  --line: #626262 !important;
  --surface: #ffffff !important;
  --background: #eeeeee !important;
  --footer: #ffffff !important;
  --welcome-footer: #eeeeee !important;
  --field: #ffffff !important;
  --hover: #eeeeee !important;
  --unavailable: #dddddd !important;
  --progress-track: #ffffff !important;
}

[data-font='atkinson-hyperlegible-next'] body {
  font-family: 'Atkinson Hyperlegible Next', var(--font);
}

[data-font='opendyslexic'] body {
  font-family: OpenDyslexic, var(--font);
}

[data-spacing='spacious'] body * {
  line-height: 1.6;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding: 1.5rem;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--background);
  color: var(--text);
  font: 0.9375rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: default;
  opacity: 0.45;
}

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

h1:focus {
  outline: none;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

.installer {
  width: min(61.25rem, 100%);
  min-height: 41.125rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--field);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow:
    0 1.125rem 3.75rem #382d4521,
    0 0.125rem 0.5rem #3026370d;
  overflow: hidden;
}

.titlebar {
  min-height: 2.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline-start: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.titlebar-brand {
  display: flex;
  gap: 0.5625rem;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.titlebar-brand img {
  width: 1.0625rem;
  height: 1.25rem;
  object-fit: contain;
}

.window-close {
  min-height: 2.5rem;
  width: 3rem;
  margin: 0.375rem;
  flex: none;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--muted);
  font-size: 1.3125rem;
  line-height: 1;
}

.window-close:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-text);
}

#screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

h1 {
  font-size: 1.875rem;
  line-height: 1.23;
  font-weight: 500;
  letter-spacing: -0.04375rem;
  margin: 0;
  white-space: pre-line;
}

.window-footer {
  min-height: 4.875rem;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: var(--footer);
}

[data-screen='welcome'] .window-footer {
  background: var(--welcome-footer);
}

.footer-actions {
  display: flex;
  gap: 0.625rem;
  margin-inline-start: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.accessibility-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.accessibility-button:hover {
  background: var(--hover);
}

.accessibility-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  flex: none;
}

[data-action='next']::after {
  content: '›';
  margin-inline-start: 1.125rem;
}

.button {
  border: 1px solid var(--line);
  border-bottom-color: var(--muted);
  border-radius: 0.375rem;
  background: var(--field);
  color: var(--text);
  padding: 0.5625rem 1.375rem;
  min-width: 6.75rem;
  min-height: 2.5rem;
  line-height: 1.35;
  font-size: 0.875rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.button:hover:not(:disabled) {
  background: var(--hover);
}

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

.button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.language-select {
  max-width: min(18rem, 100%);
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  cursor: pointer;
}

.language-select:hover:not(:disabled) {
  background: var(--hover);
}

.text-button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: none;
  font-size: 0.8125rem;
  text-align: start;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

.startup-error {
  margin: 0;
  padding: 0.75rem 2rem;
  color: var(--accent-text);
  background: var(--accent-soft);
}

.split-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
}

.brand-panel img {
  width: 15.75rem;
  height: 15.75rem;
  max-width: 85%;
  object-fit: contain;
}

.welcome-main,
.progress-main,
.complete-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 3.3125rem 3rem 2.875rem;
}

.welcome-main h1 {
  font-size: 2.375rem;
  line-height: 1.16;
  letter-spacing: -0.075rem;
  margin-bottom: 1.5rem;
}

.welcome-copy {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.welcome-copy p {
  margin: 0 0 0.625rem;
}

.device-info {
  margin-top: auto;
  font-size: 0.8125rem;
  padding-top: 1.125rem;
}

.device-info p {
  margin: 0 0 0.25rem;
}

.version {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.1875rem;
}

.version button {
  margin-inline-start: 0.75rem;
  font-size: inherit;
  color: inherit;
}

.window-body {
  padding: 1.5rem 3rem;
}

.page-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.step {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.intro {
  margin: 0.625rem 0 1.625rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.choice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2.125rem;
  align-items: start;
}

.option-list {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin: 0;
  padding: 0.25rem;
  background: var(--field);
  min-width: 0;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  min-height: 3.625rem;
  padding: 0.9375rem 1rem;
  border-radius: 0.3125rem;
  cursor: pointer;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.option + .option {
  margin-top: 0.125rem;
}

.option:hover {
  background: var(--hover);
}

.option:has(input:checked) {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.option input {
  accent-color: var(--accent);
  height: 1.125rem;
  width: 1.125rem;
  margin: 0;
  flex: none;
}

.desktop-preview {
  margin: 0;
  min-width: 0;
}

.desktop-image {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0;
  background: var(--background);
  cursor: zoom-in;
  aspect-ratio: 16/9;
  box-shadow: 0 0.3125rem 1rem #2a19330c;
}

.desktop-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-preview h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 1rem 0 0.375rem;
}

.desktop-preview figcaption p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.625rem;
  line-height: 1.6;
}

.no-desktop {
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.no-desktop > span {
  font: 2.25rem monospace;
  color: var(--accent);
}

.no-desktop p {
  font-size: 0.8125rem;
}

.drive-label {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 1.5rem 0 0.75rem;
}

.drive-label svg {
  height: 1.125rem;
  width: 1.3125rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  flex: none;
}

.disk-map {
  display: flex;
  position: relative;
  gap: 0.1875rem;
  height: 3.875rem;
  border-radius: 0.375rem;
}

.disk-region {
  flex-basis: 0;
  min-width: min(1.5rem, 7.5vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.125rem;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 0.25rem;
  background: var(--background);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.region-name,
.region-size {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-size {
  font-size: 0.6875rem;
}

.disk-region.free {
  background: var(--field);
  border-color: var(--muted);
}

.disk-region[aria-pressed='true'] {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  color: var(--accent-text);
}

.disk-region.unavailable {
  gap: 0;
  background-color: var(--unavailable);
  background-image: repeating-linear-gradient(
    135deg,
    var(--muted) 0 1px,
    transparent 1px 0.5rem
  );
  color: var(--text);
  cursor: default;
}

.unavailable :is(.region-name, .region-size) {
  width: 100%;
  padding-inline: 0.125rem;
  background: var(--unavailable);
}

.tooltip {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: calc(100% + 0.625rem);
  width: 15.5rem;
  max-width: 100%;
  white-space: normal;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--field);
  color: var(--text);
  box-shadow: 0 0.25rem 1.125rem #3026371a;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: start;
  visibility: hidden;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  width: 100%;
  height: 0.6875rem;
}

.unavailable.show-tooltip:not(.dismissed) .tooltip {
  visibility: visible;
}

.storage-chooser {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  margin-top: 1.5rem;
}

#destinations .option {
  min-height: 4.375rem;
  padding: 0.875rem 0.8125rem;
}

.storage-settings {
  padding-top: 0.1875rem;
  min-width: 0;
}

.storage-settings h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 0.4375rem;
  letter-spacing: -0.0125rem;
}

.storage-settings > label {
  display: block;
  font-size: 0.8125rem;
  margin: 1.25rem 0 0.5rem;
}

.size-control {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

input[type='number'],
input[type='text'] {
  border: 1px solid var(--line);
  border-bottom-color: var(--muted);
  border-radius: 0.375rem;
  background: var(--field);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  min-height: 2.5rem;
  min-width: 0;
}

#size {
  width: 6.75rem;
  text-align: end;
}

#size::-webkit-inner-spin-button {
  margin-inline-start: 0.5rem;
}

.field-help {
  font-size: 0.6875rem;
  margin: 0.4375rem 0 0;
  color: var(--muted);
}

.field-error {
  color: var(--accent-text);
  font-size: 0.75rem;
  margin: 0.4375rem 0 0;
}

[aria-invalid='true'] {
  border-color: var(--accent);
}

.storage-effect {
  margin: 1.3125rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.storage-name {
  margin-top: 1.25rem;
}

.storage-name label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.storage-name input {
  width: 18.75rem;
  max-width: 100%;
}

#destinations strong {
  display: block;
  font-weight: 500;
}

#destinations small {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.1875rem;
}

[data-screen='review'] [data-action='next']::after,
[data-screen='complete'] [data-action='next']::after {
  content: none;
}

.review-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.review-table th,
.review-table td {
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.review-table th {
  font-weight: 400;
  width: 37%;
  padding-inline-end: 0.75rem;
  color: var(--muted);
}

.review-table td {
  font-weight: 500;
}

.review-table tr:first-child > * {
  padding-top: 0;
}

.power-note {
  background: var(--hover);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9375rem;
  margin-top: 1.25rem;
  border-radius: 0.4375rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.power-note svg {
  width: 1.3125rem;
  height: 1.4375rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
  flex: none;
}

.progress-main {
  padding: 3.25rem 3rem 1.5rem;
}

.progress-main h1 {
  font-size: 2.0625rem;
  line-height: 1.18;
  letter-spacing: -0.05625rem;
}

.progress-main .intro {
  margin-bottom: 0;
}

.progress-stage {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.progress-stage strong {
  font-weight: 500;
}

#progress-value {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

progress {
  appearance: none;
  border: 0;
  width: 100%;
  height: 0.4375rem;
  margin: 0.9375rem 0 0.75rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--progress-track, var(--line));
  color: var(--accent);
}

progress::-webkit-progress-bar {
  background: var(--progress-track, var(--line));
}

progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 0.375rem;
}

progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 0.375rem;
}

:root[data-contrast='high'] progress {
  outline: 1px solid var(--accent);
}

.progress-meta {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

.logs {
  margin-top: 1.4375rem;
  font-size: 0.8125rem;
}

.logs summary {
  color: var(--accent);
  cursor: pointer;
  width: fit-content;
}

.logs pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--hover);
  border-radius: 0.375rem;
  padding: 0.625rem 0.875rem;
  font:
    0.6875rem/1.7 ui-monospace,
    Menlo,
    monospace;
  color: var(--muted);
  max-height: 5rem;
  overflow: auto;
  margin: 0.625rem 0;
}

.waiting-note {
  margin-top: auto;
  padding-top: 0.9375rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.waiting-note p {
  margin: 0 0 0.5rem;
}

.complete-main {
  padding: 1.3125rem 3rem 1.5rem;
}

.complete-main .intro {
  margin: 0.625rem 0 1.375rem;
  white-space: pre-line;
}

.finish-steps {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.0625rem;
  list-style: none;
  counter-reset: step;
}

.finish-steps li {
  padding-inline-start: 2.5rem;
  position: relative;
  counter-increment: step;
}

.finish-steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--accent-text);
  font-size: 0.8125rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.finish-steps strong {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.1875rem;
}

.finish-steps p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.photo-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 1.4375rem 0 1.5rem;
}

.telemetry {
  margin-top: auto;
  padding-top: 0.9375rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.telemetry-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.telemetry-heading p {
  margin: 0;
}

.telemetry .text-button {
  font-size: 0.75rem;
  flex: none;
  max-width: 100%;
}

.telemetry-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.metrics-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.metrics-options label {
  position: relative;
  cursor: pointer;
}

.metrics-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.metrics-options .button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  min-height: 2.375rem;
  padding: 0.375rem 0.875rem;
  color: var(--muted);
  gap: 0.375rem;
}

.metrics-options label:hover .button {
  background: var(--hover);
}

.metrics-options input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

.metrics-options svg {
  display: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex: none;
}

.metrics-options input:checked + span svg {
  display: block;
}

.metrics-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.metrics-options input:disabled + span {
  opacity: 0.55;
  cursor: default;
}

.telemetry-controls .field-help {
  margin: 0;
  font-size: 0.75rem;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0;
  width: min(35rem, calc(100vw - 2.5rem));
  max-height: 85vh;
  box-shadow: 0 1.25rem 5rem #34222a29;
  color: var(--text);
  background: var(--surface);
}

dialog:has(img) {
  width: min(65.625rem, calc(100vw - 2.5rem));
}

#dialog-content img {
  width: 100%;
  height: auto;
  display: block;
}

.telemetry-data {
  margin: 0;
  white-space: pre-wrap;
  text-align: start;
  font: 0.8125rem/1.6 ui-monospace, Menlo, monospace;
}

dialog::backdrop {
  background: #28203245;
}

.dialog-body {
  padding: 1.75rem min(2rem, 5vw);
}

.dialog-body h2 {
  font-size: 1.4375rem;
  margin: 0 0 0.875rem;
  font-weight: 500;
}

#dialog-content {
  white-space: pre-line;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.credits h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

.credits dl {
  margin: 0;
}

.credits dt {
  font-weight: 600;
  color: var(--text);
}

.credits dd {
  margin: 0 0 1rem;
}

.credits dd:last-child {
  margin-bottom: 0;
}

.credits dl + h3 {
  margin-top: 1.5rem;
}

.credits a,
.about a {
  color: var(--accent-text);
  text-underline-offset: 0.15em;
}

.about p {
  margin: 0;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.device-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
}

.device-details dt {
  font-weight: 600;
  color: var(--text);
}

.device-details dd {
  margin: 0;
}

.device-technical {
  margin-top: 1.25rem;
}

.device-technical summary {
  min-height: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

.device-technical[open] summary {
  margin-bottom: 0.75rem;
}

dialog form {
  padding: 1rem 1.625rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  background: var(--footer);
}

.accessibility-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.accessibility-settings label {
  overflow-wrap: anywhere;
}

.accessibility-settings label:not(:first-child) {
  margin-top: 0.75rem;
}

.accessibility-settings select {
  min-width: 0;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 0.375rem;
  color: var(--text);
  background: var(--field);
}

dialog h2:focus {
  outline: none;
}

@media (max-width: 50em) {
  .window-body {
    padding: 1.5rem;
  }

  .choice-layout {
    gap: 1.5rem;
  }

  body {
    padding: 0.75rem;
  }

  .welcome-main,
  .progress-main,
  .complete-main {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 35em) {
  .disk-region .region-name,
  .disk-region .region-size {
    display: none;
  }

  .page-heading {
    align-items: start;
  }

  h1 {
    font-size: 1.75rem;
  }

  body {
    padding: 0;
    display: block;
  }

  .installer {
    border-radius: 0;
    border: 0;
    min-height: 100vh;
  }

  .split-body,
  .choice-layout,
  .storage-chooser {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-panel {
    padding: 1.125rem;
  }

  .brand-panel img {
    width: 8.125rem;
    height: 6.875rem;
  }

  .window-footer {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .button {
    min-width: 5rem;
    padding-inline: 1rem;
  }

  .footer-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .welcome-main h1 {
    font-size: 2rem;
  }
}

@media (forced-colors: active) {
  progress {
    --progress-track: Canvas;
    --accent: CanvasText;
    outline: 1px solid CanvasText;
    forced-color-adjust: none;
  }

  .option:has(input:checked),
  .disk-region[aria-pressed='true'],
  .metrics-options input:checked + span {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }

  .disk-region,
  .option-list,
  .installer,
  .button,
  .language-select {
    border: 1px solid CanvasText;
  }

  .disk-region.unavailable {
    --unavailable: Canvas;
    --muted: CanvasText;
    --accent: Highlight;
    color: CanvasText;
    forced-color-adjust: none;
  }

  .disk-region.unavailable .tooltip {
    forced-color-adjust: auto;
  }

  .brand-panel {
    background: var(--panel);
    forced-color-adjust: none;
  }
}
