@charset "UTF-8";

/* The native dialog keeps focus trapping, Escape and the existing model change. */
#modelsDialog.models-sheet {
  width:min(650px,calc(100% - 40px));
  max-height:calc(100dvh - 48px);
  padding:24px;
  overflow:hidden;
  border:1px solid var(--raine-border);
  border-radius:16px;
  background:var(--raine-surface);
  color:var(--raine-text);
  scroll-padding:0;
}
#modelsDialog.models-sheet[open] {
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
}
#modelsDialog.models-sheet > .dialog-heading {
  position:relative;
  inset:auto;
  align-items:center;
  margin:0 0 21px;
  padding:0;
  gap:16px;
  border:0;
  background:transparent;
}
#modelsDialog.models-sheet > .dialog-heading h2 {
  margin:0;
  color:var(--raine-text);
  font-size:25px;
  font-weight:550;
  line-height:1.25;
  letter-spacing:-.75px;
}
#modelsDialog.models-sheet > .dialog-heading .icon-button {
  width:40px;
  height:40px;
  min-height:40px;
  margin:0;
  border:1px solid var(--raine-border);
  border-radius:50%;
  background:var(--raine-bg);
  color:var(--raine-muted);
}
#modelsDialog.models-sheet > .dialog-heading .icon-button:hover {color:var(--raine-text);background:var(--raine-hover)}
#modelsDialog.models-sheet > .dialog-heading .icon-button .icon {width:17px;height:17px}
#modelsDialog.models-sheet .dialog-search {
  display:flex;
  align-items:center;
  min-width:0;
  min-height:48px;
  gap:11px;
  margin:0 0 13px;
  padding:12px 14px;
  border:1px solid var(--raine-border);
  border-radius:10px;
  background:var(--raine-bg);
  color:var(--raine-muted);
}
#modelsDialog.models-sheet .dialog-search:focus-within {border-color:var(--raine-accent)}
#modelsDialog.models-sheet .dialog-search > .icon {width:18px;height:18px;flex-shrink:0;color:var(--raine-muted)}
#modelsDialog.models-sheet .dialog-search input {
  width:100%;
  min-width:0;
  min-height:23px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--raine-text);
  font-size:16px;
  line-height:1.5;
}
#modelsDialog.models-sheet .dialog-search input:focus-visible {outline:none}
#modelsDialog.models-sheet #modelChoices {
  min-height:0;
  max-height:min(58dvh,550px);
  gap:0;
  margin:0;
  padding:1px 5px 5px 0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:var(--raine-border) transparent;
  scroll-padding-block:10px;
  -webkit-overflow-scrolling:touch;
}
#modelsDialog.models-sheet .model-choice-group {min-width:0;margin:0;padding:0}
#modelsDialog.models-sheet .model-choice-group + .model-choice-group {margin-top:19px}
#modelsDialog.models-sheet .model-group-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0;
  padding:11px 3px 10px;
  color:var(--raine-muted);
  font-size:11px;
  font-weight:500;
  line-height:1.5;
  letter-spacing:.15px;
}
#modelsDialog.models-sheet .model-group-title > span {color:var(--raine-muted);font-size:10px;font-variant-numeric:tabular-nums;opacity:.7}
#modelsDialog.models-sheet .model-choice {
  display:grid;
  grid-template-columns:minmax(0,1fr) 22px;
  align-items:center;
  justify-content:normal;
  width:100%;
  min-width:0;
  min-height:72px;
  gap:14px;
  margin:0;
  padding:13px 14px;
  border:1px solid transparent;
  border-bottom-color:var(--raine-border);
  border-radius:0;
  background:transparent;
  color:var(--raine-text);
  text-align:left;
  box-shadow:none;
  transform:none;
}
#modelsDialog.models-sheet .model-choice:hover:not(:disabled) {background:var(--raine-hover);color:var(--raine-text)}
#modelsDialog.models-sheet .model-choice[aria-pressed=true] {
  border:1px solid color-mix(in srgb,var(--raine-accent) 30%,var(--raine-border));
  border-radius:10px;
  background:var(--raine-accent-soft);
}
#modelsDialog.models-sheet .model-choice:disabled {opacity:.43;cursor:not-allowed}
#modelsDialog.models-sheet .model-choice > .model-choice-copy {display:block;min-width:0;font-size:14px;line-height:1.5}
#modelsDialog.models-sheet .model-choice-name {display:block;color:var(--raine-text);font-size:14px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
#modelsDialog.models-sheet .model-choice .model-choice-price {
  display:block;
  max-width:none;
  margin-top:3px;
  color:var(--raine-muted);
  font-size:12px;
  line-height:1.5;
  text-align:left;
  overflow-wrap:anywhere;
}
#modelsDialog.models-sheet .model-choice .model-choice-price.free-tag {color:var(--raine-accent)}
#modelsDialog.models-sheet .model-choice > .model-choice-check {
  display:grid;
  place-items:center;
  width:21px;
  height:21px;
  border:1px solid var(--raine-border);
  border-radius:50%;
  background:transparent;
}
#modelsDialog.models-sheet .model-choice > .model-choice-check::before {
  content:"";
  width:8px;
  height:4px;
  margin-top:-2px;
  border-left:1.7px solid var(--raine-lime-ink);
  border-bottom:1.7px solid var(--raine-lime-ink);
  transform:rotate(-45deg);
  opacity:0;
}
#modelsDialog.models-sheet .model-choice[aria-pressed=true] > .model-choice-check {border-color:var(--raine-lime);background:var(--raine-lime)}
#modelsDialog.models-sheet .model-choice[aria-pressed=true] > .model-choice-check::before {opacity:1}
#modelsDialog.models-sheet .model-empty {margin:0;padding:45px 20px 50px;color:var(--raine-muted);font-size:13px;line-height:1.8;text-align:center}

@media(max-width:900px) {
  #modelsDialog.models-sheet {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    max-width:none;
    height:min(82dvh,740px);
    max-height:calc(100dvh - 12px);
    margin:0;
    padding:28px max(18px,env(safe-area-inset-right)) max(15px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
    border:1px solid var(--raine-border);
    border-bottom:0;
    border-radius:22px 22px 0 0;
    box-shadow:0 -20px 70px #00000035;
  }
  #modelsDialog.models-sheet::before {
    content:"";
    position:absolute;
    top:10px;
    left:calc(50% - 18px);
    width:36px;
    height:4px;
    border-radius:10px;
    background:var(--raine-muted);
    opacity:.45;
    pointer-events:none;
  }
  #modelsDialog.models-sheet > .dialog-heading {gap:15px;margin:0 0 17px}
  #modelsDialog.models-sheet > .dialog-heading h2 {font-size:23px;letter-spacing:-.65px}
  #modelsDialog.models-sheet > .dialog-heading .icon-button {width:42px;height:42px;min-height:42px}
  #modelsDialog.models-sheet .dialog-search {min-height:48px;margin-bottom:10px;padding:11px 13px}
  #modelsDialog.models-sheet #modelChoices {max-height:none;padding:0 2px 6px 0}
  #modelsDialog.models-sheet .model-choice {min-height:74px;padding:14px 10px;gap:13px}
  #modelsDialog.models-sheet .model-group-title {padding:11px 2px 9px;font-size:11px}
  #modelsDialog.models-sheet::backdrop {background:#030405a8;backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(max-width:360px) {
  #modelsDialog.models-sheet {padding-inline:14px}
  #modelsDialog.models-sheet > .dialog-heading h2 {font-size:22px}
  #modelsDialog.models-sheet .model-choice {gap:11px;padding-inline:8px}
  #modelsDialog.models-sheet .model-choice-name {font-size:13px}
  #modelsDialog.models-sheet .model-choice .model-choice-price {font-size:11px}
}
@media(prefers-reduced-motion:reduce) {#modelsDialog.models-sheet .model-choice {transition:none}}
