.q-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  --q-modal-backdrop: rgba(242, 242, 242, 0.8);
  background: var(--q-modal-backdrop);
  padding: 10px;
  animation: q-modal-backdrop 300ms cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}
.q-modal {
  box-sizing: border-box;
  width: 540px;
  max-width: 100%;
  max-height: min(800px, 80vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ss-surface-light);
  color: #171717;
  outline: 0;
  font-family: QuoterGeist, Arial, sans-serif;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 32px 72px -12px rgba(0, 0, 0, 0.06),
    0 8px 32px -12px rgba(0, 0, 0, 0.08),
    0 8px 24px -12px rgba(0, 0, 0, 0.12);
  animation: q-modal-enter 300ms cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}
.q-modal__body {
  position: relative;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 14px;
  line-height: 20px;
  color: #4d4d4d;
}
.q-modal__body:after {
  content: '';
  display: block;
  height: 1px;
  pointer-events: none;
}
.q-modal__mobile-fade {
  display: none;
}
.q-modal__header {
  margin: 0 0 20px;
  color: #171717;
}
.q-modal__header:has(+ .q-modal__content:empty) {
  margin-bottom: 0;
}
.q-modal__title {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
.q-modal__subtitle {
  margin: 8px 0 4px;
  color: #4d4d4d;
  font-size: 14px;
  line-height: 20px;
}
.q-modal__content p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}
.q-modal__footer {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #fafafa;
  box-shadow: 0 -1px rgba(0, 0, 0, 0.08);
}
.q-modal__footer:has(> button:only-child) {
  justify-content: flex-end;
}
.q-modal[data-sticky='true'] .q-modal__body {
  padding-top: 0;
}
.q-modal[data-sticky='true'] .q-modal__title {
  line-height: 24px;
}
.q-modal[data-sticky='true'] .q-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-left: -20px;
  margin-right: -20px;
  padding: 20px;
  background: #fafafa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.q-modal[data-inset='true'] .q-modal__content {
  margin: 0 -20px;
  padding: 20px;
  background: #fafafa;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}
[data-theme='dark'] .q-modal-overlay {
  --q-modal-backdrop: rgba(0, 0, 0, 0.8);
}
[data-theme='dark'] .q-modal {
  background: #0a0a0a;
  color: #ededed;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 32px 72px -12px rgba(0, 0, 0, 0.06),
    0 8px 32px -12px rgba(0, 0, 0, 0.08),
    0 8px 24px -12px rgba(0, 0, 0, 0.12);
}
[data-theme='dark'] .q-modal__body {
  background: #000;
  color: #a1a1a1;
}
[data-theme='dark'] .q-modal__header {
  color: #ededed;
}
[data-theme='dark'] .q-modal__subtitle {
  color: #a1a1a1;
}
[data-theme='dark'] .q-modal__footer {
  background: #000;
  box-shadow: 0 -1px rgba(255, 255, 255, 0.14);
}
[data-theme='dark'] .q-modal[data-sticky='true'] .q-modal__header {
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
[data-theme='dark'] .q-modal[data-inset='true'] .q-modal__content {
  background: #111;
  border-color: #333;
}
.q-modal {
  --q-modal-scroll-shadow: rgba(0, 0, 0, 0.075);
  --q-modal-header-surface: #fafafa;
  --q-modal-footer-surface: #fafafa;
}
[data-theme='dark'] .q-modal {
  --q-modal-scroll-shadow: rgba(255, 255, 255, 0.1);
  --q-modal-header-surface: #0a0a0a;
  --q-modal-footer-surface: #000;
}
.q-modal[data-sticky='true'] .q-modal__header,
.q-modal__footer {
  isolation: isolate;
}
.q-modal[data-sticky='true'] .q-modal__header::before,
.q-modal__footer::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--q-modal-scroll-shadow);
  filter: blur(3px);
  z-index: -1;
  pointer-events: none;
}
.q-modal[data-sticky='true'] .q-modal__header::before {
  top: 100%;
  translate: 0 -75%;
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.q-modal[data-sticky='true'][data-scrolled='true'] .q-modal__header::before {
  opacity: 1;
}
.q-modal__footer::before {
  bottom: 100%;
  translate: 0 275%;
  transition: translate 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.q-modal[data-more-below='true'] .q-modal__footer::before {
  translate: 0 75%;
}
.q-modal[data-sticky='true'] .q-modal__header::after,
.q-modal__footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.q-modal[data-sticky='true'] .q-modal__header::after {
  background: var(--q-modal-header-surface);
}
.q-modal__footer::after {
  background: var(--q-modal-footer-surface);
}
.q-modal-overlay[data-state='closing'] {
  animation: q-modal-backdrop-out 300ms cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}
.q-modal-overlay[data-state='closing'] .q-modal {
  animation: q-modal-exit 300ms cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}
@keyframes q-modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes q-modal-exit {
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes q-modal-backdrop {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: var(--q-modal-backdrop);
  }
}
@keyframes q-modal-backdrop-out {
  to {
    background: rgba(0, 0, 0, 0);
  }
}
@media (max-width: 600px) {
  html:has(.q-modal-overlay) {
    scrollbar-gutter: auto;
  }
  .q-modal-overlay {
    align-items: flex-end;
    padding: 0;
    --q-modal-backdrop: rgba(250, 250, 250, 0.5);
    background: var(--q-modal-backdrop);
    animation: q-modal-mobile-backdrop 300ms cubic-bezier(0.32, 0.72, 0, 1) both;
  }
  [data-theme='dark'] .q-modal-overlay {
    --q-modal-backdrop: rgba(0, 0, 0, 0.5);
    background: var(--q-modal-backdrop);
  }
  .q-modal {
    width: 100% !important;
    max-width: 100%;
    max-height: 90dvh;
    border-radius: 12px 12px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    overflow-y: auto;
    animation: q-modal-sheet-enter 400ms cubic-bezier(0.32, 0.72, 0, 1) both;
  }
  [data-theme='dark'] .q-modal {
    border-top-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }
  .q-modal__body {
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .q-modal__mobile-fade {
    display: block;
    position: sticky;
    top: 0;
    z-index: 10;
    flex: none;
    height: 0;
    pointer-events: none;
  }
  .q-modal__mobile-fade::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 24px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(var(--ss-surface-light) 25%, rgba(255, 255, 255, 0) 100%);
  }
  [data-theme='dark'] .q-modal__mobile-fade::before {
    background: linear-gradient(#0a0a0a 25%, rgba(255, 255, 255, 0) 100%);
  }
  .q-modal[data-sticky='true'] .q-modal__body {
    padding-top: 20px;
  }
  .q-modal[data-sticky='true'] .q-modal__header {
    padding: 16px 24px;
  }
  .q-modal[data-sticky='true'] .q-modal__title {
    font-size: 16px;
  }
  .q-modal__footer {
    position: sticky;
    bottom: 0;
  }
  .q-modal-overlay[data-state='closing'] {
    animation: q-modal-mobile-backdrop-out 300ms cubic-bezier(0.32, 0.72, 0, 1) both;
  }
  .q-modal-overlay[data-state='closing'] .q-modal {
    animation: q-modal-sheet-exit 400ms cubic-bezier(0.32, 0.72, 0, 1) both;
  }
}
@keyframes q-modal-sheet-enter {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes q-modal-sheet-exit {
  from {
    transform: translateY(var(--q-swipe-offset, 0px));
  }
  to {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .q-modal-overlay,
  .q-modal {
    animation: none !important;
  }
}

@keyframes q-modal-mobile-backdrop {
  from {
    background: transparent;
  }
  to {
    background: var(--q-modal-backdrop);
  }
}
@keyframes q-modal-mobile-backdrop-out {
  to {
    background: transparent;
  }
}
