:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --color-brand-primary: #7c5cff;
  --color-brand-deep: #4b3cc8;
  --color-brand-deepest: #2b2390;
  --color-brand-on-primary: #fff;
  --color-secondary-on-primary: #e1e1e1;
  --color-brand-tint: #7c5cff1f;
  --color-brand-tint-strong: #7c5cff33;
  --color-background: #f4f4f0;
  --color-surface: #fff;
  --color-surface-muted: #eeeeea;
  --color-text-primary: #0e0e10;
  --color-text-secondary: #0e0e1099;
  --color-text-tertiary: #0e0e1066;
  --color-text-inverse: #fff;
  --color-text-disabled: #0e0e1066;
  --color-accent-green: #1fb87a;
  --color-accent-amber: #f2a93b;
  --color-accent-blue: #2b8fe5;
  --color-accent-red: #e5484d;
  --color-on-accent: #fff;
  --color-status-success: #1fb87a;
  --color-status-warning: #f2a93b;
  --color-status-info: #2b8fe5;
  --color-status-error: #e5484d;
  --color-border: #0e0e1014;
  --color-border-strong: #0e0e1029;
  --color-tabbar-bg: #f4f4f0d9;
  --color-tabbar-border: #0e0e1014;
  --color-overlay-scrim: #00000073;
  --color-overlay-on-brand: #ffffff2e;
  --color-hover: #0e0e100a;
  --gradient-brand: linear-gradient(135deg,
    #7c5cff 0%,
    #4b3cc8 50%,
    #2b2390 100%);
  --gradient-brand-soft: linear-gradient(160deg, #7c5cff 0%, #4b3cc8 100%);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-xxl: 20px;
  --radius-xxxl: 24px;
  --radius-pill: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;
  --space-huge: 40px;
  --space-screen-x: 20px;
}

.light-scope {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --color-brand-primary: #7c5cff;
  --color-brand-deep: #4b3cc8;
  --color-brand-deepest: #2b2390;
  --color-brand-on-primary: #fff;
  --color-secondary-on-primary: #e1e1e1;
  --color-brand-tint: #7c5cff1f;
  --color-brand-tint-strong: #7c5cff33;
  --color-background: #f4f4f0;
  --color-surface: #fff;
  --color-surface-muted: #eeeeea;
  --color-text-primary: #0e0e10;
  --color-text-secondary: #0e0e1099;
  --color-text-tertiary: #0e0e1066;
  --color-text-inverse: #fff;
  --color-text-disabled: #0e0e1066;
  --color-accent-green: #1fb87a;
  --color-accent-amber: #f2a93b;
  --color-accent-blue: #2b8fe5;
  --color-accent-red: #e5484d;
  --color-on-accent: #fff;
  --color-status-success: #1fb87a;
  --color-status-warning: #f2a93b;
  --color-status-info: #2b8fe5;
  --color-status-error: #e5484d;
  --color-border: #0e0e1014;
  --color-border-strong: #0e0e1029;
  --color-tabbar-bg: #f4f4f0d9;
  --color-tabbar-border: #0e0e1014;
  --color-overlay-scrim: #00000073;
  --color-overlay-on-brand: #ffffff2e;
  --color-hover: #0e0e100a;
}

html[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --color-brand-tint: #7c5cff26;
  --color-background: #0e0e10;
  --color-surface: #1a1a1e;
  --color-surface-muted: #232328;
  --color-text-primary: #f4f4f0;
  --color-text-secondary: #f4f4f099;
  --color-text-tertiary: #f4f4f066;
  --color-text-inverse: #0e0e10;
  --color-text-disabled: #f4f4f04d;
  --color-border: #f4f4f01a;
  --color-border-strong: #f4f4f029;
  --color-tabbar-bg: #0e0e10d9;
  --color-tabbar-border: #f4f4f01a;
  --color-hover: #f4f4f00f;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  scrollbar-color: var(--color-border-strong) transparent;
  scrollbar-width: thin;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  font-family: Manrope, -apple-system, system-ui, sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-border-strong);
  border-radius: var(--radius-sm);
  background-clip: padding-box;
  border: 2px solid #0000;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-text-tertiary);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: none;
}

html, body {
  overscroll-behavior-y: none;
}

html, body, #root {
  background-color: var(--color-background);
  min-height: 100dvh;
}

body {
  --screen-width: min(100%, 560px);
  color: var(--color-text-primary);
  margin: 0 auto;
  overflow-x: hidden;
  width: 100% !important;
}

body .ant-select:hover .ant-select-selector, body .ant-input:hover {
  border-color: var(--color-border-strong) !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.app-router-not-found {
  margin-top: 10%;
}

.auth-overlay {
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  justify-content: center;
  align-items: center;
  padding: 16px;
  transition: visibility .2s, opacity .2s;
  display: flex;
  position: fixed;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .auth-overlay {
    transition: none;
  }
}

.auth-overlay__backdrop {
  background-color: var(--color-background);
  position: absolute;
  inset: 0;
}

.auth-overlay__sheet {
  z-index: 1;
  background-color: var(--color-surface);
  border-radius: var(--radius-xxl);
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  padding: 32px 24px;
  position: relative;
  overflow-y: auto;
}

.auth-overlay__close {
  width: 36px;
  height: 36px;
  color: var(--color-text-tertiary);
  border-radius: var(--radius-pill);
  justify-content: center;
  align-items: center;
  font-size: 24px;
  line-height: 1;
  transition: background-color .2s;
  display: flex;
  position: absolute;
  top: 12px;
  right: 12px;
}

.auth-overlay__close:hover {
  background-color: var(--color-hover);
}

.auth-overlay--visible {
  visibility: visible;
  opacity: 1;
}

.auth-form-container {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100dvh;
  display: flex;
}

.auth-form {
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
}

.auth-form__title {
  color: var(--color-text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.auth-form__subtitle {
  color: var(--color-text-secondary);
  margin-top: -8px;
  font-size: 15px;
}

.auth-form__fields {
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  display: flex;
}

.auth-form__error {
  color: var(--color-status-error);
  font-size: 13px;
}

.auth-form__error--center {
  text-align: center;
}

.auth-form__otp {
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  display: flex;
}

.auth-form__switch {
  color: var(--color-brand-primary);
  align-self: center;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}

.main-loader {
  display: inline-block;
}

.main-loader__spinner {
  font-size: 32px;
  animation: 1s linear infinite spin;
  color: var(--color-brand-deepest) !important;
}

.main-loader--full-width {
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
}

.main-loader--fullscreen {
  z-index: 1000;
  background-color: var(--color-overlay-scrim);
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100dvh;
  display: flex;
  position: fixed;
  inset: 0;
}

.main-loader--blur {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-template {
  gap: var(--space-xl);
  width: min(100%, 420px);
  min-height: 60dvh;
  padding: var(--space-huge) var(--space-screen-x);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  display: flex;
}

.error-template__badge {
  width: 96px;
  height: 96px;
  color: var(--color-brand-primary);
  background-color: var(--color-brand-tint);
  border-radius: var(--radius-pill);
  justify-content: center;
  align-items: center;
  display: flex;
}

.error-template__badge--oops {
  color: var(--color-accent-red);
  background-color: color-mix(in srgb, var(--color-accent-red) 12%, transparent);
}

.error-template__icon {
  width: 44px;
  height: 44px;
}

.error-template__text {
  gap: var(--space-sm);
  flex-direction: column;
  display: flex;
}

.error-template__title {
  color: var(--color-text-primary);
  letter-spacing: -.3px;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.error-template__description {
  max-width: 320px;
  color: var(--color-text-secondary);
  margin-inline: auto;
  font-size: 14px;
  line-height: 21px;
}

.error-template__home {
  min-height: 52px;
  margin-top: var(--space-xs);
  color: var(--color-brand-on-primary);
  background-color: var(--color-brand-primary);
  border-radius: var(--radius-md);
  justify-content: center;
  align-items: center;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s;
  display: inline-flex;
}

.error-template__home:hover {
  background-color: color-mix(in srgb, var(--color-brand-primary) 90%, black);
}

.autocomplete {
  --selected-item-color: var(--color-surface-muted);
  position: relative;
}

.autocomplete__arrow {
  cursor: pointer;
  margin-right: 8px;
  padding: 8px;
  line-height: 0;
  transition: transform .2s;
  display: block;
}

.autocomplete__arrow--rotated {
  transform: rotate(-180deg);
}

.autocomplete__arrow svg path {
  fill: currentColor;
}

.autocomplete__list {
  z-index: 10;
  scroll-behavior: smooth;
  width: 100%;
  max-height: 220px;
  padding: 0 4px;
  list-style-type: none;
  transition: padding-block .2s;
  overflow: hidden auto;
}

.autocomplete__popup {
  z-index: 10;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  opacity: 0;
  grid-template-rows: 0fr;
  width: 100%;
  transition: all .2s;
  display: grid;
  position: absolute;
  top: 53px;
  overflow: hidden;
  box-shadow: 5px 5px 50px #1118270f;
}

.autocomplete__popup--shown {
  opacity: 1;
  grid-template-rows: 1fr;
}

.autocomplete__popup--shown > .autocomplete__list {
  padding: 12px 4px;
  transition: none;
}

.autocomplete__popup--to-top {
  top: 0;
  transform: translateY(-100%);
}

.autocomplete__list-loading {
  text-align: center;
  padding: 6px 0;
}

.autocomplete__item {
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  will-change: background-color;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  transition: background-color .2s;
}

.autocomplete__item:hover {
  background-color: var(--color-hover);
}

.autocomplete__item--selected, .autocomplete__item--selected:hover {
  background-color: var(--selected-item-color);
}

.autocomplete__item + .autocomplete__item {
  margin-top: 8px;
}

.input__field:-webkit-any(:-webkit-autofill, :-webkit-autofill) + .input__label, .input__field:not(:placeholder-shown, [type="file"]) + .input__label, .input__field:focus + .input__label, .input__label--focused.input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input__field:is(:autofill, :autofill) + .input__label, .input__field:not(:placeholder-shown, [type="file"]) + .input__label, .input__field:focus + .input__label, .input__label--focused.input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input {
  --field-height: 53px;
  --label-unfocused-height: 21px;
  --hover-border-color: var(--color-border-strong);
}

.input__wrapper {
  color: var(--color-text-primary);
  margin: 0;
  font-size: 14px;
  display: block;
  position: relative;
}

.input__wrapper--with-file {
  height: var(--field-height);
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24.5px 16px 5.5px;
}

.input__wrapper--with-file.input__wrapper--without-label {
  padding: 15px 16px;
}

.input__label {
  text-overflow: ellipsis;
  max-width: calc(100% - 32px);
  color: var(--color-text-secondary);
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(calc((var(--field-height) - var(--label-unfocused-height)) / 2));
  will-change: transform, font-size, line-height;
  font-size: 14px;
  line-height: 21px;
  transition: transform .1s, font-size .1s, line-height .1s;
  position: absolute;
  top: 0;
  left: 16px;
  overflow: hidden;
}

.input__file-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  overflow: hidden;
}

.input__require {
  color: var(--color-status-error);
  margin-left: 2px;
}

.input input.input__field {
  height: var(--field-height);
}

.input textarea.input__field {
  max-width: 100%;
  min-height: var(--field-height);
  resize: vertical;
  line-height: 130%;
}

.input__field {
  width: 100%;
  color: var(--color-text-primary);
  background-color: inherit;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  outline: 0;
  margin: 0;
  padding: 24.5px 16px 5.5px;
  font-size: 14px;
  line-height: 21px;
  transition: border .1s linear;
}

.input__field--file {
  display: none;
}

.input__field:hover {
  border-color: var(--hover-border-color);
}

.input__field:focus {
  border-color: var(--color-text-primary);
}

.input__field::placeholder {
  color: var(--color-text-tertiary);
}

.input__field--without-label {
  padding: 15px 16px;
}

.input__field--error, .input__field--error:focus, .input__field--error:hover {
  border-color: var(--color-status-error);
}

.input__field:disabled:hover, .input__field:disabled:focus {
  border-color: var(--color-border) !important;
}

.input__field--frozen {
  caret-color: #0000;
}

.input__end-container {
  align-items: center;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.input__error {
  color: var(--color-status-error);
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 130%;
  display: flex;
}

.input__error > svg {
  min-width: 18px;
}

.password-input__toggle {
  height: 100%;
  color: var(--color-text-tertiary);
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  transition: color .1s linear;
  display: flex;
}

.password-input__toggle:hover {
  color: var(--color-text-secondary);
}

.password-input__toggle > svg {
  display: block;
}

.button {
  --hover-bg: var(--color-hover);
  box-sizing: border-box;
  color: currentColor;
  cursor: pointer;
  background-color: inherit;
  border-radius: var(--radius-md);
  border: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  transition: all .2s;
  display: inline-flex;
}

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

.button--small {
  min-height: 32px;
  padding: 8px 16px;
  font-size: 12px;
}

.button--big {
  min-height: 56px;
  padding: 8px 24px;
  font-size: 16px;
}

.button--wizard {
  border-radius: var(--radius-md);
  min-height: 50px;
  padding: 0 22px;
  font-size: 16px;
}

.button--full-width {
  width: 100%;
}

.button--reversed {
  flex-direction: row-reverse;
}

.button--square {
  aspect-ratio: 1;
  padding: 8px;
}

.button--outlined {
  border: 1px solid var(--color-border);
  padding-block: 13px;
}

.button--outlined.button--small, .button--outlined.button--big {
  padding-block: 7px;
}

.button--outlined.button--wizard {
  padding: 0 22px;
}

.button--outlined-surface {
  --hover-bg: var(--color-brand-tint);
  color: var(--color-text-tertiary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0 22px;
}

.button--outlined-surface:hover {
  border-color: var(--color-brand-primary);
}

.button--filled-red {
  --hover-bg: color-mix(in srgb, var(--color-accent-red) 85%, black);
  color: var(--color-on-accent);
  background-color: var(--color-accent-red);
  border: none;
}

.button--outlined-red {
  --hover-bg: color-mix(in srgb, var(--color-accent-red) 15%, transition);
  color: var(--color-accent-red);
  background-color: var(--color-surface);
  border: 1px solid var(--color-accent-red);
}

.button--filled-green {
  --hover-bg: color-mix(in srgb, var(--color-accent-green) 85%, black);
  color: var(--color-on-accent);
  background-color: var(--color-accent-green);
  border: none;
}

.button--filled-black {
  --hover-bg: var(--color-text-tertiary);
  color: var(--color-on-accent);
  background-color: var(--color-text-tertiary);
  border: 1px solid var(--color-text-tertiary);
}

.button:disabled {
  color: var(--color-text-disabled);
  pointer-events: none;
  background-color: var(--color-background);
  border-color: var(--color-background) !important;
}

.button--filled-blue {
  --hover-bg: color-mix(in srgb, var(--color-accent-blue) 85%, black);
  color: var(--color-on-accent);
  background-color: var(--color-accent-blue);
  border: none;
}

.button--filled-purple {
  color: var(--color-brand-on-primary);
  background-color: var(--color-brand-primary);
  border: none;
}

.button--filled-purple:disabled {
  color: var(--color-brand-on-primary);
  pointer-events: none;
  background-color: var(--color-brand-primary);
  opacity: .5;
  border: none;
}

.button--filled-purple:hover {
  background-color: color-mix(in srgb, var(--color-brand-primary) 90%, black);
}

.button .ant-spin {
  color: currentColor !important;
}

.button .ant-spin svg {
  animation: 1s linear infinite button-spin;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.grid {
  --grid-col-size-calc: calc((100% - var(--grid-gap) * var(--grid-max-col-count)) /
      var(--grid-max-col-count));
  --grid-col-min-size-calc: min(100%,
    max(var(--grid-min-col-size), var(--grid-col-size-calc)));
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-col-min-size-calc), 1fr));
  gap: var(--grid-gap);
  display: grid;
}

.keypad {
  gap: var(--space-sm);
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  display: grid;
}

.keypad__key {
  height: 64px;
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: var(--radius-lg);
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  font-weight: 500;
  transition: background-color .15s;
  display: flex;
}

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

.keypad__key:active:not(:disabled) {
  background-color: var(--color-brand-tint);
}

.keypad__key:disabled {
  cursor: default;
  opacity: .4;
}

.keypad__key--empty {
  pointer-events: none;
  cursor: default;
}

.keypad__icon {
  width: 24px;
  height: 24px;
}

.modal {
  color: var(--color-text-primary);
  margin-block: 16px;
}

.modal .ant-modal-header {
  background-color: #0000;
}

.modal .ant-modal-title {
  color: var(--color-text-primary);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.modal .ant-modal-footer {
  margin-top: 0;
}

.modal .ant-modal-container {
  background-color: var(--color-surface);
}

.modal .ant-modal-close-icon {
  color: var(--color-text-tertiary);
}

.modal__form {
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  display: flex;
}

.modal__actions {
  flex-wrap: wrap-reverse;
  gap: 16px;
  margin-top: 16px;
  display: flex;
}

.modal__actions > button {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 420px) {
  .modal .ant-modal-container {
    padding-inline: 16px;
  }
}

.multiselect {
  position: relative;
}

.multiselect__field {
  text-overflow: ellipsis;
  caret-color: #0000;
}

.multiselect__arrow {
  cursor: pointer;
  margin-right: 8px;
  padding: 8px;
  line-height: 0;
  transition: transform .2s;
  display: block;
}

.multiselect__arrow--rotated {
  transform: rotate(-180deg);
}

.multiselect__popup {
  z-index: 10;
  pointer-events: none;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  opacity: 0;
  grid-template-rows: 0fr;
  width: 100%;
  transition: all .2s;
  display: grid;
  position: absolute;
  top: 53px;
  overflow: hidden;
  box-shadow: 5px 5px 50px #1a202c0f;
}

.multiselect__popup--shown {
  pointer-events: all;
  opacity: 1;
  grid-template-rows: 1fr;
}

.multiselect__popup--shown > .select__list {
  padding: 12px 4px;
  transition: none;
}

.multiselect__popup--to-top {
  top: 0;
  transform: translateY(-100%);
}

.multiselect__controls {
  padding-inline: 14px;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 4px;
  display: flex;
  box-shadow: 0 1px 3px 1px #0000000d;
}

.multiselect__search {
  box-sizing: border-box;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  outline: none;
  flex: 1;
  width: 100%;
  margin-bottom: 0;
  padding: 4px 8px;
  font-size: 14px;
  display: block;
}

.multiselect__filter {
  background-color: #0000;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transition: all .2s;
  display: flex;
  transform: rotate(90deg);
}

.multiselect__filter:hover {
  background-color: var(--color-hover);
}

.multiselect__filter--selected {
  border: 1px solid var(--color-accent-blue);
}

.multiselect__list {
  z-index: 10;
  scroll-behavior: smooth;
  width: 100%;
  max-height: 220px;
  margin-top: 4px;
  padding: 0 4px;
  list-style-type: none;
  transition: padding-block .2s;
  overflow: hidden auto;
}

.multiselect__item {
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  will-change: background-color;
  border-radius: 4px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  display: flex;
}

.multiselect__item:hover {
  background-color: var(--color-hover);
}

.multiselect__item--selected {
  background-color: var(--color-surface-muted);
}

.multiselect__item--with-group {
  padding-left: 18px;
}

.multiselect__item + .multiselect__item {
  margin-top: 8px;
}

.multiselect__group-item {
  color: var(--color-text-secondary);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 19.6px;
}

.otp-input {
  width: fit-content;
  margin-inline: auto;
  position: relative;
}

.otp-input__field {
  z-index: 1;
  color: #0000;
  cursor: pointer;
  caret-color: #0000;
  opacity: 0;
  background: none;
  border: 0;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 16px;
  position: absolute;
  inset: 0;
}

.otp-input__cells {
  gap: var(--space-md);
  justify-content: center;
  display: flex;
}

.otp-input__cell {
  width: clamp(52px, 17vw, 60px);
  height: 72px;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  justify-content: center;
  align-items: center;
  font-family: JetBrains Mono, monospace;
  font-size: 28px;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
}

.otp-input__cell--filled {
  border-color: var(--color-brand-primary);
}

.otp-input__cell--error {
  border-color: var(--color-status-error);
}

.otp-input__field:focus-visible ~ .otp-input__cells .otp-input__cell--active, .otp-input__field:focus ~ .otp-input__cells .otp-input__cell--active {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-tint);
}

.otp-input__field:focus ~ .otp-input__cells .otp-input__cell--error, .otp-input__field:focus-visible ~ .otp-input__cells .otp-input__cell--error {
  border-color: var(--color-status-error);
  box-shadow: none;
}

.otp-input--disabled {
  pointer-events: none;
  opacity: .6;
}

.otp-resend-timer__counting {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.otp-resend-timer__button {
  color: var(--color-brand-primary);
  font-size: 13px;
  font-weight: 600;
}

.otp-resend-timer__button:disabled {
  color: var(--color-text-disabled);
}

.select {
  --selected-item-color: var(--color-surface-muted);
  position: relative;
}

.select__field {
  cursor: pointer;
  caret-color: #0000;
}

.select__arrow {
  cursor: pointer;
  margin-right: 8px;
  padding: 8px;
  line-height: 0;
  transition: transform .2s;
  display: block;
}

.select__arrow--rotated {
  transform: rotate(-180deg);
}

.select__arrow svg path {
  fill: currentColor;
}

.select__list {
  z-index: 10;
  scroll-behavior: smooth;
  width: 100%;
  max-height: 220px;
  padding: 0 4px;
  list-style-type: none;
  transition: padding-block .2s;
  overflow: hidden auto;
}

.select__popup {
  z-index: 10;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  opacity: 0;
  grid-template-rows: 0fr;
  width: 100%;
  transition: all .2s;
  display: grid;
  position: absolute;
  top: 53px;
  overflow: hidden;
  box-shadow: 5px 5px 50px #1118270f;
}

.select__popup--shown {
  opacity: 1;
  grid-template-rows: 1fr;
}

.select__popup--shown > .select__list {
  padding: 12px 4px;
  transition: none;
}

.select__popup--to-top {
  top: 0;
  transform: translateY(-100%);
}

.select__item {
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  will-change: background-color;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
}

.select__item:hover {
  background-color: var(--color-hover);
}

.select__item--selected, .select__item--selected:hover {
  background-color: var(--selected-item-color);
}

.select__item + .select__item {
  margin-top: 8px;
}

.install-prompt {
  background: var(--gradient-brand-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.install-prompt__text {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.install-prompt__title {
  color: var(--color-brand-on-primary);
  font-size: 16px;
  font-weight: 700;
}

.install-prompt__subtitle {
  color: var(--color-secondary-on-primary);
  font-size: 13px;
  line-height: 16px;
}

.install-prompt__actions {
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  display: flex;
}

.install-prompt__dismiss {
  color: var(--color-secondary-on-primary);
  white-space: nowrap;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
}

.layout {
  flex-direction: column;
  min-height: 100dvh;
  display: flex;
}

.layout__content {
  flex: 1;
}

.bottom-tab-bar {
  z-index: 100;
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-tabbar-border);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
}

.bottom-tab-bar__tabs {
  width: var(--screen-width);
  margin: 0 auto;
  display: flex;
}

.bottom-tab-bar__tab {
  color: var(--color-text-tertiary);
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  transition: color .15s;
  display: flex;
  position: relative;
}

.bottom-tab-bar__tab--active {
  color: var(--color-brand-primary);
}

.bottom-tab-bar__icon {
  width: 24px;
  height: 24px;
}

.bottom-tab-bar__label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.bottom-tab-bar__badge {
  min-width: 16px;
  height: 16px;
  color: var(--color-on-accent);
  text-align: center;
  background-color: var(--color-accent-red);
  border-radius: var(--radius-pill);
  margin-left: 6px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  position: absolute;
  top: 2px;
  left: 50%;
}

.header {
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  position: sticky;
  top: 0;
}

.header__content {
  width: var(--screen-width);
  min-height: 40px;
  padding: 0 var(--space-screen-x);
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  display: flex;
}

.header__title {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 700;
}

.header__logo {
  width: 80px;
}

.header__actions {
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.header__bell {
  width: 40px;
  height: 40px;
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  justify-content: center;
  align-items: center;
  transition: background-color .15s;
  display: flex;
}

.header__bell:hover {
  background-color: var(--color-hover);
}

.header__bell svg {
  width: 20px;
  height: 20px;
}

.header__lang {
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

.header__lang-btn {
  color: var(--color-text-secondary);
  letter-spacing: .4px;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}

.header__lang-btn--active {
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  box-shadow: 0 1px 3px #00000014;
}

.header__close {
  width: 40px;
  height: 40px;
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  justify-content: center;
  align-items: center;
  transition: background-color .15s;
  display: flex;
}

.header__close:hover {
  background-color: var(--color-hover);
}

.header__close svg {
  width: 22px;
  height: 22px;
}

