:root {
  touch-action: manipulation;
  color-scheme: light;
  color: #172033;
  background: white;
  font-family: system-ui, -apple-system, sans-serif;
  --accent: hsl(27 86% 51%);
  --accent-ink: hsl(27 85% 31%);
  --accent-soft: hsl(27 86% 51% / .1);
  --border: #e2e6ed;
  --muted: #586479;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main {
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: max(1.15rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .35rem 1rem; border-bottom: 1px solid var(--border); }
.brand { display: block; width: 7rem; height: auto; }
h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); margin-block: 1.6rem .55rem; line-height: 1.07; letter-spacing: -.035em; }
p { margin-block: .6rem; line-height: 1.45; }
.muted { color: var(--muted); font-size: .875rem; }
progress { width: 100%; height: .375rem; accent-color: var(--accent); display: block; }
.step-header {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  margin-top: .45rem;
  padding-inline: 2.75rem;
}
#progress-label { margin: 0; text-align: center; font-variant-numeric: tabular-nums; }
#instruction { color: var(--muted); }
.question {
  margin-block: 1.5rem .65rem;
  font-size: clamp(1.375rem, 5.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
main.color-result {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.color-result #test { display: flex; flex: 1; flex-direction: column; }
.color-result #instruction { display: none; }
.color-result #question {
  display: grid;
  flex: 1;
  place-items: center;
  margin: 0;
  padding-block: 1.25rem;
  font-size: clamp(1.65rem, 6.8vw, 2.25rem);
  text-align: center;
  text-wrap: balance;
}
#test { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
button {
  min-height: 2.8rem;
  border-radius: .7rem;
  border: 1px solid transparent;
  padding: .55rem .8rem;
  font: inherit;
  font-weight: 650;
  background: var(--accent);
  color: #172033;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.macbook-code-form { display: grid; gap: .75rem; max-width: 18rem; margin-top: 1rem; }
.macbook-code-form label { font-size: .875rem; color: hsl(220 9% 46%); }
.macbook-code-control { position: relative; }
.macbook-code-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.macbook-code-slots span {
  position: relative;
  display: grid;
  place-items: center;
  height: 2.75rem;
  border: 1px solid hsl(220 13% 94%);
  border-left: 0;
  color: hsl(222 47% 11%);
  background: white;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.macbook-code-slots span:first-child { border-left-width: 1px; border-radius: .625rem 0 0 .625rem; }
.macbook-code-slots span:last-child { border-radius: 0 .625rem .625rem 0; }
.macbook-code-slots span[data-active] { z-index: 1; outline: 2px solid var(--accent); }
.macbook-code-slots span[data-active]:empty::after { content: ''; width: 1px; height: 1rem; background: currentColor; }
.macbook-code-control input { position: absolute; inset: 0; z-index: 2; width: 100%; margin: 0; opacity: 0; font-size: 1rem; }
.macbook-code-form button { min-height: 2.5rem; border-radius: .625rem; color: white; font-size: .875rem; font-weight: 500; }
.macbook-code-form button:hover:not(:disabled) { background: hsl(27 86% 51% / .9); }
.macbook-code-form button:disabled { opacity: .5; }
.outline, .answer, .review-item { background: white; color: #172033; border-color: var(--border); }
.diagnostic-summary { margin-top: .7rem; }
.diagnostic-summary summary { padding: .55rem 0; color: var(--accent-ink); cursor: pointer; font-size: .875rem; font-weight: 650; }
.diagnostic-summary .diagnostic-details { margin-block: .25rem .8rem; }
.diagnostic-details { padding: .75rem; border: 1px solid var(--border); border-radius: .7rem; }
.diagnostic-details div { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .25rem; }
.diagnostic-details dd { margin: 0; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.step-menu {
  position: absolute;
  inset-inline-end: 0;
  z-index: 2;
}
.step-menu summary {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .65rem;
  font-size: 1.5rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}
.step-menu summary::-webkit-details-marker { display: none; }
.step-menu summary:focus-visible { outline: 2px solid var(--accent); }
.step-menu-items {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 100%;
  min-width: 10rem;
  padding: .25rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: white;
  box-shadow: 0 .4rem 1rem rgb(23 32 51 / .1);
}
.step-menu-items button {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  color: #172033;
  font-size: .875rem;
}
.step-menu-items button:hover, .step-menu-items button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.checklist-actions { position: fixed; z-index: 1; inset: auto 0 0; border-top: 1px solid var(--border); background: white; touch-action: none; }
.checklist-actions-inner {
  width: min(100%, 30rem);
  margin-inline: auto;
  padding: .7rem max(1.25rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
.answers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr);
  gap: clamp(.25rem, 1.5vw, .55rem);
}
.answer {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .2rem;
  min-height: 3rem;
  padding: .3rem .12rem;
  border-radius: 1rem;
  line-height: 1.05;
}
.answer-icon { font-size: 1.2rem; line-height: 1; }
.answer-caption { font-size: clamp(.6875rem, 2.9vw, .8125rem); text-align: center; white-space: nowrap; }
.answer[data-answer="sim"] { grid-column: 1; color: #187354; }
.answer[data-answer="nao"] { grid-column: 3; color: #942323; }
.answer[data-result="nao_testado"] { color: var(--muted); }
.answer-menu { position: relative; grid-column: 2; }
.answer-menu summary {
  height: 100%;
  border: 1px solid var(--border);
  list-style: none;
  cursor: pointer;
}
.answer-menu summary::-webkit-details-marker { display: none; }
.answer-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.answer-menu .answer-caption { font-size: .5625rem; font-weight: 650; }
.answer-menu .step-menu-items {
  inset-inline: 50% auto;
  inset-block: auto calc(100% + .4rem);
  width: max-content;
  min-width: 12rem;
  transform: translateX(-50%);
}
.answer-menu .step-menu-items button {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
}
.answer-menu-icon {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  font-size: 1.2rem;
  line-height: 1;
}
[data-answer="nao_testado"] .answer-menu-icon,
[data-answer="nao_aplicavel"] .answer-menu-icon {
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
  font-size: .75rem;
}
.answer-menu-label { grid-column: 2; white-space: nowrap; }
#instruction.settings-path {
  padding: 1rem;
  text-align: center;
  color: #172033;
  background: var(--accent-soft);
  border-radius: .85rem;
  font-size: clamp(1.2rem, 5.5vw, 1.65rem);
  font-weight: 700;
}
.battery-health { display: grid; justify-items: center; gap: .5rem; margin-top: .7rem; font-weight: 650; }
.battery-health-value { display: flex; align-items: baseline; gap: .35rem; font-size: 1.65rem; }
.battery-health-value input {
  width: 5rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  padding: .4rem;
  text-align: center;
  font: inherit;
  color: inherit;
  background: white;
}
.answers .answer[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
#tool { display: grid; gap: .65rem; margin-top: 1.1rem; }
#tool .outline { background: var(--accent-soft); color: var(--accent-ink); border-color: hsl(27 86% 51% / .38); }
#tool .tool-status { color: var(--muted); font-size: .875rem; margin-block: 0; }
#tool p:empty, #tool-feedback p:empty { display: none; }
#tool .wifi-meter-status { display: block; min-height: 3lh; }
.wifi-meter { display: grid; gap: .65rem; padding: 1rem; border: 1px solid var(--border); border-radius: .85rem; }
.wifi-meter-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.wifi-meter-metrics dt { color: var(--muted); font-size: .8125rem; }
.wifi-meter-metrics dd { margin: .25rem 0 0; font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.wifi-meter meter { width: 100%; height: 1rem; accent-color: var(--accent); }
.wifi-meter meter::-webkit-meter-optimum-value { background: var(--accent); }
.wifi-meter meter::-moz-meter-bar { background: var(--accent); }
.wifi-meter-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
#tool-feedback .tool-status { color: var(--muted); font-size: .875rem; }
.test-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.test-controls:empty { display: none; }
.test-controls .outline[aria-pressed="true"] { background: var(--accent); color: #172033; }
.hardware-checks { display: grid; gap: .45rem; }
.hardware-checks label { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .45rem .65rem; border: 1px solid var(--border); border-radius: .65rem; }
.hardware-checks input { flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.rear-camera-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.rear-camera-suggestions li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid var(--border); border-radius: .65rem; color: var(--muted); font-size: .875rem; }
.rear-camera-suggestions strong { color: var(--accent-ink); }
.camera-picker summary {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: white;
  color: #172033;
  font: inherit;
}
.camera-picker summary { cursor: pointer; }
.camera-picker summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.camera-picker .hardware-checks { margin-top: .5rem; }
.camera-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  max-height: 42vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: #f6f7f9;
}
.camera-frame::before {
  content: '';
  position: absolute;
  inset: .75rem;
  border: 1px dashed #a9b3c3;
  border-radius: .65rem;
  pointer-events: none;
}
.camera-frame button { z-index: 1; }
.video-overlay {
  position: absolute;
  z-index: 2;
  inset: .5rem .5rem auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  pointer-events: none;
}
.video-overlay button { pointer-events: auto; }
#tool .video-overlay .tool-status {
  border-radius: .5rem;
  padding: .35rem .55rem;
  background: rgb(19 24 32 / .9);
  color: white;
}
#tool .video-overlay button, #tool .video-stop {
  min-height: 2.45rem;
  padding: .3rem .55rem;
  background: white;
  font-size: .85rem;
}
.video-stop { position: absolute; inset-block-end: .5rem; }
#tool .camera-frame video { position: absolute; inset: 0; height: 100%; max-height: none; border-radius: 0; }
.rotation-guide {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .7rem;
  min-height: 15rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: #f6f7f9;
  text-align: center;
}
.rotation-guide strong { font-size: clamp(1.3rem, 5.4vw, 1.7rem); }
.rotation-guide p { margin: 0; max-width: 18rem; color: var(--muted); }
.rotation-illustration {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 4.5rem;
  color: var(--accent-ink);
  font-size: 2.5rem;
}
.rotation-illustration::before {
  content: '';
  width: 1.8rem;
  height: 3.15rem;
  transform: rotate(-18deg);
  border: .15rem solid currentColor;
  border-radius: .42rem;
  background: radial-gradient(circle at 50% 10%, currentColor 0 .12rem, transparent .13rem);
}
.vibration-paths { display: grid; gap: .65rem; margin: 0; }
.vibration-paths div { padding: .75rem; border: 1px solid var(--border); border-radius: .7rem; background: #f6f7f9; }
.vibration-paths dt { font-weight: 600; }
.vibration-paths dd { margin: .25rem 0 0; color: var(--muted); font-size: .875rem; }
.vibration-hold { touch-action: none; user-select: none; }
.vibration-hold:active { background: var(--accent); color: #172033; }
#tool video, #tool audio { width: 100%; }
#tool video { max-height: 42vh; object-fit: contain; border-radius: .8rem; background: #131820; }
.sound-panel {
  display: grid;
  gap: .4rem;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: #f6f7f9;
  color: #172033;
  font-size: .875rem;
}
.sound-meter {
  width: 100%;
  height: 3.25rem;
  border-radius: .5rem;
  background: linear-gradient(transparent calc(50% - 1px), #f1c4a6 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), var(--accent-soft);
  color: var(--accent);
}
.audio-actions [aria-label="Regravar áudio"] { font-size: 1.2rem; }
.screen-test {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.screen-test::backdrop { background: #fff; }
.keyboard-screen {
  width: min(calc(100% - 2rem), 58rem);
  height: fit-content;
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: clamp(1rem, 3vw, 1.75rem);
  color: inherit;
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 4rem #17203328;
  overflow: auto;
}
.keyboard-screen::backdrop { background: #17203388; }
.keyboard-heading, .keyboard-header-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.keyboard-heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.keyboard-heading button { min-height: 2rem; min-width: 2rem; padding: .2rem; font-size: 1.2rem; line-height: 1; }
.keyboard-header-actions { gap: .4rem; }
.keyboard-actions { position: relative; inset: auto; }
.keyboard-actions summary { width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: .6rem; }
.keyboard-actions .step-menu-items { width: min(15rem, calc(100vw - 6rem)); }
.keyboard-actions .step-menu-items button { font-size: .875rem; line-height: 1.25; padding: .5rem; border-color: transparent; box-shadow: none; }
.keyboard-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.keyboard-content > div { grid-area: 1 / 1; min-width: 0; }
.keyboard-content > [data-inactive] { display: none; }
.keyboard-chooser { display: grid; align-content: center; gap: 1rem; padding-block: 1rem; }
.keyboard-chooser h3 { margin: 0; font-size: 1.05rem; }
.keyboard-chooser h3:focus { outline: none; }
.keyboard-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.keyboard-choice { display: grid; align-content: start; justify-items: start; gap: .5rem; padding: .8rem; text-align: left; }
.keyboard-choice:hover { border-color: var(--accent); }
.keyboard-choice strong { font-size: .9rem; }
.keyboard-choice .muted { font-size: .75rem; }
.keyboard-choice-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  border-radius: .4rem;
  background: #f6f7f9 var(--photo) var(--crop-x) var(--crop-y) / var(--photo-width) auto no-repeat;
}
.keyboard-choice-photo:not([data-layout="generic"])::after,
.keyboard-choice-photo[data-layout="jis"]::before {
  position: absolute;
  top: var(--mark-y);
  left: var(--mark-x);
  width: var(--mark-width);
  height: var(--mark-height);
  transform: translate(-50%, -50%);
  border: 2px solid #ffab52;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #17203370;
  content: '';
}
.keyboard-choice-photo[data-layout="us"] {
  --photo: url('./keyboard-us.jpg?v=2');
  --photo-width: 193.5%; --crop-x: 33.3%; --crop-y: 60.3%;
  --mark-x: 77%; --mark-y: 49%; --mark-width: 36.5%; --mark-height: 49%;
}
.keyboard-choice-photo[data-layout="us"]::after { border-radius: .4rem; }
.keyboard-choice-photo[data-layout="iso"] {
  --photo: url('./keyboard-iso.jpg');
  --photo-width: 347.8%; --crop-x: 86.5%; --crop-y: 47.4%;
  --mark-x: 88%; --mark-y: 50%; --mark-width: 18%; --mark-height: 85%;
}
.keyboard-choice-photo[data-layout="br"] {
  --photo: url('./keyboard-br.jpg');
  --photo-width: 250%; --crop-x: 97.5%; --crop-y: 51.5%;
  --mark-x: 45%; --mark-y: 51%; --mark-width: 17%; --mark-height: 40%;
}
.keyboard-choice-photo[data-layout="latam"] {
  --photo: url('./keyboard-latam.jpg');
  --photo-width: 423.7%; --crop-x: 56.1%; --crop-y: 50.3%;
  --mark-x: 36.5%; --mark-y: 71%; --mark-width: 18%; --mark-height: 42%;
}
.keyboard-choice-photo[data-layout="jis"] {
  --photo: url('./keyboard-jis.jpg');
  --photo-width: 232.6%; --crop-x: 40.4%; --crop-y: 60.7%;
  --mark-x: 16%; --mark-y: 72%; --mark-width: 14%; --mark-height: 22%;
}
.keyboard-choice-photo[data-layout="jis"]::before { --mark-x: 81%; }
.keyboard-choice-photo[data-layout="generic"] {
  --photo: none;
  --photo-width: 100%; --crop-x: center; --crop-y: center;
  color: var(--muted);
  font-size: 1.75rem;
}
@media (max-width: 33rem) { .keyboard-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.keyboard-layout { display: grid; gap: clamp(.16rem, .65vw, .45rem); margin-block: 1rem .8rem; }
.keyboard-layout:focus { outline: none; }
.keyboard-row { display: flex; gap: inherit; }
.keyboard-key {
  flex: 1 1 0;
  display: grid;
  min-width: 0;
  min-height: clamp(1.45rem, 5.3vw, 3.15rem);
  place-items: center;
  border: 1px solid var(--border);
  border-radius: clamp(.2rem, .7vw, .5rem);
  background: #f6f7f9;
  color: #172033;
  font: 650 clamp(.48rem, 1.45vw, .86rem)/1 system-ui, sans-serif;
  white-space: nowrap;
  user-select: none;
}
.keyboard-key[data-width="wide"] { flex-grow: 1.55; }
.keyboard-key[data-width="wider"] { flex-grow: 1.95; }
.keyboard-key[data-width="space"] { flex-grow: 5.5; }
.keyboard-key[data-function-key] { align-content: center; gap: .14rem; }
.keyboard-key[data-function-key] small { font-size: .82em; }
.keyboard-tall-return { display: grid; grid-template-columns: minmax(0, 1fr) 7.5%; gap: inherit; }
.keyboard-tall-return .keyboard-row { grid-column: 1; }
.keyboard-tall-return > .keyboard-key { grid-area: 1 / 2 / 3 / 3; clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%, 22% 50%, 0 50%); }
.keyboard-arrow-stack { display: grid; grid-template-rows: 1fr 1fr; flex: 1 1 0; gap: inherit; min-width: 0; }
.keyboard-arrow-stack .keyboard-key { min-height: 0; }
.keyboard-key[data-tested] { background: #e6f5ee; border-color: #9cd1ba; color: #15533e; }
.keyboard-key[data-pressed] { background: var(--accent); border-color: var(--accent); color: #172033; }
.keyboard-key[data-failed] { background: #fce8e8; border-color: #e3a3a3; color: #952626; }
.keyboard-stats { display: grid; gap: .2rem; margin: .25rem .5rem 0; padding: .5rem 0 .25rem; border-top: 1px solid var(--border); font-size: .75rem; font-variant-numeric: tabular-nums; }
.keyboard-manual-panel {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: stretch;
  gap: .5rem;
  padding: .75rem;
  overflow: auto;
  background: white;
}
.keyboard-manual-panel h3 { margin: 0 0 .35rem; }
.keyboard-manual-panel h3::after { display: block; width: 3rem; height: 1px; margin-top: .3rem; background: var(--accent); content: ''; }
.keyboard-manual-panel select { min-height: 2.25rem; border: 1px solid var(--border); border-radius: .5rem; padding: .3rem; color: inherit; background: white; font: inherit; }
.keyboard-manual-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.keyboard-manual-outcomes button:first-child { color: #15533e; }
.keyboard-manual-outcomes button:last-child { color: #952626; }
.keyboard-manual-panel button { min-height: 2.25rem; }
.keyboard-manual-panel button:disabled { opacity: .5; }
.touch-grid {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
}
.touch-cell { border: 1px solid white; background: #eef1f4; }
.touch-grid .visited { background: var(--accent); }
.touch-status, .touch-exit {
  position: absolute;
  inset-block-start: max(.3rem, env(safe-area-inset-top));
  padding: .4rem .6rem;
  border: 0;
  border-radius: 1rem;
  background: white;
  color: #172033;
  font-size: .75rem;
  font-weight: 650;
}
.touch-status { inset-inline-start: max(.3rem, env(safe-area-inset-left)); pointer-events: none; }
.touch-exit { inset-inline-end: max(.3rem, env(safe-area-inset-right)); min-height: 2rem; }
.color-sample {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #fff;
  touch-action: none;
}
.color-sample:focus-visible { outline: none; }
.color-hint {
  position: absolute;
  inset-inline: 1rem;
  inset-block-end: max(1.25rem, env(safe-area-inset-bottom));
  width: fit-content;
  margin-inline: auto;
  padding: .45rem .75rem;
  border-radius: 1rem;
  background: #172033;
  color: white;
  font-size: .85rem;
  animation: hide-color-hint .2s ease-out 2s both;
}
@keyframes hide-color-hint {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .color-hint { animation-duration: 0s; }
}
.color-sample[data-color="preto"] { background: #000; }
.color-sample[data-color="vermelho"] { background: #f00; }
.color-sample[data-color="verde"] { background: #0f0; }
.color-sample[data-color="azul"] { background: #00f; }
.color-sample[data-color="cinza"] { background: #888; }
#review-list { list-style: none; padding: 0; display: grid; gap: .4rem; }
.review-item { width: 100%; display: flex; justify-content: space-between; align-items: baseline; text-align: left; gap: .7rem; }
.review-item .muted { text-align: right; }
#resume-test { width: 100%; }
.message { margin-top: 1rem; }
.startup-help { animation: show-startup-help 0s 12s both; }
@keyframes show-startup-help {
  from { visibility: hidden; }
  to { visibility: visible; }
}
.error { padding: .65rem .8rem; color: #942323; background: #fff0ee; border-radius: .65rem; }
#done { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.check { margin-inline: auto; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; color: #187354; background: #e9f8f0; border-radius: 50%; font-size: 2.25rem; }
