#app-preview .prefs-screen {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2.8em 2.8em 0 0;
  background: #fcf6eb;
  color: #2b1219;
  font-family: WilderOutfit, sans-serif;
}
#app-preview .prefs-header { flex: none; padding: 18px 12px 9px; }
#app-preview .prefs-header > b { display: block; font-size: 15px; font-weight: 650; text-align: center; }
#app-preview .prefs-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 9px;
  padding: 3px;
  border-radius: 11px;
  background: #eee3d0;
}
#app-preview .prefs-tabs button {
  min-height: 38px;
  padding: 0 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #644f46;
  font: 560 13px/1 WilderOutfit, sans-serif;
  cursor: pointer;
}
#app-preview .prefs-tabs [aria-selected="true"] { background: #fffaf3; color: #35212a; box-shadow: 0 1px 3px #46302729; }
#app-preview .prefs-body { min-height: 0; flex: 1; overflow-y: auto; padding: 4px 13px 15px; font-size: 14px; }
#app-preview .prefs-body h4 { margin: 0; font-size: 23px; line-height: 1.1; font-weight: 650; letter-spacing: -.035em; }
#app-preview .prefs-body .prefs-hint,
#app-preview .prefs-body legend { margin: 4px 0 11px; color: #63534c; font: 440 13px/1.35 WilderOutfit, sans-serif; }
#app-preview .prefs-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#app-preview .prefs-kinds > div {
  position: relative;
  min-height: 50px;
  padding: 8px 7px;
  border-radius: 10px;
  border: 1px solid #d9cdb9;
  background: #fffbf3;
}
#app-preview .prefs-kinds > [data-choice="like"] { background: #e6efe2; border-color: #9ab69e; }
#app-preview .prefs-kinds > [data-choice="skip"] { background: #f4e4e6; border-color: #d7adb3; }
#app-preview .prefs-kinds b { display: block; font-size: 13px; font-weight: 625; line-height: 1.15; }
#app-preview .prefs-kinds small { display: block; margin-top: 4px; padding-right: 10px; font-size: 11.5px; line-height: 1.15; color: #64564e; }
#app-preview .prefs-kinds [data-choice="like"] small { color: #305740; }
#app-preview .prefs-kinds [data-choice="skip"] small { color: #78414d; }
#app-preview .prefs-kinds > div:has(button)::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 11px;
  height: 5px;
  width: 5px;
  border: solid #6c5a51;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
#app-preview .prefs-kinds button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
#app-preview .prefs-screen :is(button, input):focus-visible { outline: 2px solid #2b7051; outline-offset: 1px; }
#app-preview .prefs-body fieldset { border: 0; padding: 0; margin: 5px 0 0; min-width: 0; }
#app-preview .prefs-body legend { padding: 0; }
#app-preview .prefs-option { display: flex; align-items: center; min-height: 46px; gap: 9px; margin-bottom: 6px; padding: 9px; border: 1px solid #d9cdb9; border-radius: 10px; background: #fffbf3; font-weight: 530; cursor: pointer; }
#app-preview .prefs-option:has(input:checked) { background: #e6efe2; border-color: #9ab69e; }
#app-preview .prefs-option input {
  appearance: none; display: grid; place-content: center; flex: none; width: 19px; height: 19px;
  padding: 0; margin: 0; border: 1.5px solid #948777; border-radius: 5px; background: #fffbf3; cursor: pointer;
}
#app-preview .prefs-option input[type="radio"] { border-radius: 50%; }
#app-preview .prefs-option input:checked { background: #38644c; border-color: #38644c; }
#app-preview .prefs-option input:checked::after { content: ""; color: #fffaf3; }
#app-preview .prefs-option input[type="radio"]:checked::after { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#app-preview .prefs-option input[type="checkbox"]:checked::after { width: 4px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
#app-preview .prefs-money label, #app-preview .prefs-budget-kind { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 560; }
#app-preview .prefs-money :is(button,input) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #baa997;
  border-radius: 9px;
  background-color: #fffbf3;
  color: #34202a;
  padding: 6px 9px;
  font: 530 16px/1.25 WilderOutfit, sans-serif;
}
#app-preview .prefs-budget-kind button { position: relative; padding-right: 32px; text-align: left; cursor: pointer; }
#app-preview .prefs-budget-kind button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 20px;
  width: 7px;
  height: 7px;
  border: solid #6c5a51;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
#app-preview .prefs-money input { font-size: 23px; font-weight: 620; }
#app-preview .prefs-money input::placeholder { font-size: 15px; color: #665a53; }
#app-preview .prefs-money input[aria-invalid="true"] { border-color: #98224a; }
#app-preview .prefs-money .prefs-feedback { margin: 5px 0 0; color: #305740; font-size: 12px; }
#app-preview .prefs-money:has([aria-invalid="true"]) .prefs-feedback { color: #842143; }

/* The answer sheet belongs to the sample phone, including when a card is at the scroll edge. */
#app-preview .prefs-picker {
  position: absolute; z-index: 1; inset: 0; display: flex; align-items: flex-end;
  background: rgb(43 18 25 / 22%);
}
#app-preview .prefs-sheet {
  display: flex; flex-direction: column; width: 100%; max-height: calc(100% - 24px);
  overflow: hidden; padding: 8px 13px 10px; border-top: 1px solid #cbbaa3; border-radius: 18px 18px 0 0;
  background: #fbf5ea; box-shadow: 0 -7px 16px -10px rgb(43 18 25 / 38%);
}
#app-preview .prefs-sheet header { display: flex; justify-content: space-between; align-items: center; flex: none; min-height: 44px; gap: 6px; }
#app-preview .prefs-sheet h4 { margin: 0; font-size: 20px; font-weight: 625; line-height: 1.1; letter-spacing: -.035em; }
#app-preview .prefs-dismiss {
  flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #67534a; font: 440 24px/1 WilderOutfit, sans-serif; cursor: pointer;
}
#app-preview .prefs-answers { position: relative; display: grid; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3px; margin: 0 -3px; }
#app-preview .prefs-answers button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 8px 12px; border: 1px solid #dacdb9; border-radius: 11px;
  background: #fffaf2; color: #35212a; font: 530 14px/1.2 WilderOutfit, sans-serif; text-align: left; cursor: pointer;
}
#app-preview .prefs-answers button[aria-checked="true"] { border-color: #927d84; color: #fffaf3; background: #38252d; font-weight: 600; }
#app-preview .prefs-answers button[aria-checked="true"]::after { content: ""; width: 5px; height: 10px; margin-right: 3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (hover: hover) {
  #app-preview .prefs-answers button:hover:not([aria-checked="true"]), #app-preview .prefs-dismiss:hover { background: #efe3d0; }
}
@media (forced-colors: active) {
  #app-preview .prefs-option input { appearance: auto; }
  #app-preview .prefs-option input::after { display: none; }
}
