@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/cabinet/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/cabinet/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-soft: #fbf7f2;
  --ink: #241e1a;
  --muted: #6b625c;
  --muted-2: #746a63;
  --hairline: #ece4dc;
  --orange: #f26b1d;
  --orange-dark: #b84606;
  --orange-soft: #ffebdd;
  --on-orange: #fff9f4;
  --success: #2e8b57;
  --success-soft: #e7f4ec;
  --danger: #c74a3d;
  --danger-soft: #fceae7;
  --shadow: 0 18px 44px rgba(60, 36, 20, 0.1);
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #141110;
    --surface: #1e1916;
    --surface-soft: #26201c;
    --ink: #f1eae4;
    --muted: #b3a79e;
    --muted-2: #8a7e75;
    --hairline: #332a25;
    --orange: #ff9a57;
    --orange-dark: #ffb98a;
    --orange-soft: #3a2417;
    --on-orange: #1e130c;
    --success: #6fe0a0;
    --success-soft: #17301f;
    --danger: #ff9c92;
    --danger-soft: #3a1b18;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  }
}

html[data-theme="dark"] {
  --bg: #141110;
  --surface: #1e1916;
  --surface-soft: #26201c;
  --ink: #f1eae4;
  --muted: #b3a79e;
  --muted-2: #8a7e75;
  --hairline: #332a25;
  --orange: #ff9a57;
  --orange-dark: #ffb98a;
  --orange-soft: #3a2417;
  --on-orange: #1e130c;
  --success: #6fe0a0;
  --success-soft: #17301f;
  --danger: #ff9c92;
  --danger-soft: #3a1b18;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}

/* Только html прячет горизонтальный overflow. Если повесить overflow-x: hidden
   ещё и на body, body становится отдельным скролл-контейнером, и колесо мыши
   перестаёт прокручивать страницу. */
html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
}

/* -------------------------------------------------------------------- boot */

.boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}

.boot-logo {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  background: linear-gradient(140deg, var(--orange), var(--orange-dark));
  color: var(--on-orange);
  display: grid;
  place-items: center;
}

.boot-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

/* -------------------------------------------------------------------- login */

.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.login-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px;
  color: #fff;
  background: linear-gradient(150deg, #ff8a2a 0%, #f26b1d 52%, #dc5308 100%);
}

.login-hero::before,
.login-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

.login-hero::before {
  width: 460px;
  height: 460px;
  top: -170px;
  right: -150px;
}

.login-hero::after {
  width: 330px;
  height: 330px;
  bottom: -160px;
  left: -120px;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
}

.login-logo {
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.login-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 800;
}

.login-copy p {
  margin: 0;
  max-width: 380px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.login-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-points span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-stack {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-stack .login-card {
  width: 100%;
}

.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.login-card .lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field input {
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  padding: 0 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.password-toggle:hover {
  background: var(--surface-soft);
}

.form-error {
  display: none;
  margin: 4px 0 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.form-error.visible {
  display: block;
}

.login-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* -------------------------------------------------------------------- shell */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  flex: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

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

.topnav button {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
}

.topnav button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.topnav button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(60, 36, 20, 0.06);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.help-pill svg {
  width: 18px;
  height: 18px;
}

.help-pill.active {
  background: var(--orange);
  color: var(--on-orange);
}

.help-pill .nav-badge {
  top: -4px;
  right: -4px;
}

.avatar {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}

.mobile-avatar {
  display: none;
  margin-left: auto;
}

.content {
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-chat {
  padding-bottom: 0;
}

/* Чат — это страница, а не отдельная карточка внутри страницы.
   Не фиксируем body: иначе при залипшем классе chat-full весь сайт
   перестаёт скроллиться. Высоту держит только оболочка чата. */
body.chat-full {
  overscroll-behavior: none;
}

body.chat-full .shell {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.chat-full .bottom-nav {
  display: none;
}

body.chat-full .content {
  flex: 1;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  display: flex;
}

.chat-page {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-aside {
  display: none;
}

body.chat-full .chat-head {
  padding-top: max(16px, env(safe-area-inset-top));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

body.chat-full .chat-body {
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

body.chat-full .chat-body::-webkit-scrollbar {
  width: 8px;
}

body.chat-full .chat-body::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 999px;
}

body.chat-full .chat-body::-webkit-scrollbar-track {
  background: transparent;
}

body.chat-full .composer {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}

/* На широком экране диалог занимает основную область, а не висит карточкой. */
@media (min-width: 1000px) {
  .chat-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 28px 24px;
  }

  .chat-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: 6px 0 0 28px;
    border-left: 1px solid var(--hairline);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .chat-aside::-webkit-scrollbar {
    display: none;
  }
}

.bottom-nav {
  display: none;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 10px;
  font-weight: 700;
  display: none;
  place-items: center;
}

.nav-badge.visible {
  display: grid;
}

/* ------------------------------------------------------------------- home */

.hello {
  padding: 4px 2px 0;
}

.hello-greeting {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hello h1 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.16;
  letter-spacing: -0.6px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.status-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
  flex: none;
}

.status-note.warn {
  color: var(--orange-dark);
  font-weight: 600;
}

.status-note.warn .dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.status-alert {
  width: 100%;
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--danger-soft);
  color: var(--danger);
  text-align: left;
  cursor: pointer;
}

.status-alert > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-alert strong {
  font-size: 14px;
}

.status-alert small {
  font-size: 13px;
  color: color-mix(in srgb, var(--danger) 78%, var(--ink));
}

.status-alert-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  display: grid;
  place-items: center;
  flex: none;
}

.status-alert-icon svg,
.status-alert > svg {
  width: 19px;
  height: 19px;
}

.balance-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--orange-soft) 0%, color-mix(in srgb, var(--orange-soft) 42%, var(--surface)) 100%);
  border: 1px solid color-mix(in srgb, var(--orange) 16%, transparent);
}

.balance-art {
  position: absolute;
  top: -34px;
  left: -36px;
  width: 190px;
  height: 190px;
  color: var(--orange);
  opacity: 0.12;
  pointer-events: none;
}

.balance-art svg {
  width: 100%;
  height: 100%;
}

.balance-label {
  position: relative;
  font-size: 13px;
  color: var(--muted);
}

.balance-amount {
  position: relative;
  margin-top: 2px;
  font-size: clamp(40px, 5.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.balance-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 18px;
}

.balance-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.balance-meta span {
  font-size: 12px;
  color: var(--muted);
}

.balance-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.pay-note {
  position: relative;
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
  text-align: left;
  cursor: pointer;
}

.pay-note > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-note strong {
  font-size: 13px;
}

.pay-note small {
  font-size: 12px;
  color: color-mix(in srgb, var(--danger) 76%, var(--ink));
}

.pay-note svg {
  width: 18px;
  height: 18px;
}

.balance-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 16px;
}

.balance-amount {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.balance-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 14px;
}

.balance-body .pay-btn {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: auto;
  min-height: 54px;
  margin: 0;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 15px;
}

.pay-note {
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 820px) {
  .balance-body .pay-btn {
    min-height: 48px;
    margin-top: 0;
    padding: 0 22px;
    font-size: 14px;
  }

  .balance-art {
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    opacity: 0.1;
  }
}

.balance-amount.positive {
  color: var(--success);
}

.balance-amount.negative {
  color: var(--danger);
}

.balance-amount.low {
  color: var(--orange-dark);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 17px 8px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.quick:hover {
  border-color: color-mix(in srgb, var(--orange) 45%, var(--hairline));
  transform: translateY(-1px);
}

.quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
}

.quick-icon svg {
  width: 20px;
  height: 20px;
}

.app-download {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--orange) 24%, var(--hairline));
  border-radius: 22px;
  background: var(--surface);
}

.app-download[hidden] {
  display: none;
}

.app-download-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 15px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
}

.app-download-icon svg {
  width: 21px;
  height: 21px;
}

.app-download-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-download-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.app-download-copy span {
  color: var(--muted);
  font-size: 12px;
}

.app-download-copy .app-download-hint {
  color: var(--muted-2);
  font-size: 11px;
}

.app-download-btn {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .app-download {
    flex-wrap: wrap;
  }

  .app-download-copy {
    flex-basis: calc(100% - 58px);
  }

  .app-download-btn {
    width: 100%;
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 0 2px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 700;
}

.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ops-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
}

.ops-skeleton {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.op-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
}

.op-row + .op-row {
  border-top: 1px solid var(--hairline);
}

.op-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
}

.op-icon svg {
  width: 18px;
  height: 18px;
}

.op-icon.income {
  background: var(--success-soft);
  color: var(--success);
}

.op-icon.expense {
  background: var(--danger-soft);
  color: var(--danger);
}

.op-main {
  flex: 1;
  min-width: 0;
}

.op-main strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-main span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.op-amount.income {
  color: var(--success);
}

.op-amount.expense {
  color: var(--danger);
}

/* ----------------------------------------------------------------- history */

.page-head {
  padding: 4px 2px 2px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 32px);
  letter-spacing: -1px;
  font-weight: 800;
}

.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.history-summary {
  padding: 20px 22px;
}

.summary-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
}

.summary-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-row span {
  font-size: 12px;
  color: var(--muted);
}

.summary-row strong {
  font-size: 22px;
  letter-spacing: -0.5px;
}

.income {
  color: var(--success);
}

.expense {
  color: var(--danger);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px;
}

.pill {
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pill.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.month-title {
  margin: 8px 2px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.history-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ----------------------------------------------------------------- tariffs */

.tabs {
  display: flex;
  gap: 24px;
  padding: 0 4px;
  border-bottom: 1px solid var(--hairline);
}

.tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 11px 0 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tabs button.active {
  color: var(--ink);
}

.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.tariffs-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tariff-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
}

.tariff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tariff-head strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.tariff-current {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}

.tariff-price {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.tariff-price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.tariff-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tariff-speed {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.service-card .body {
  flex: 1;
  min-width: 0;
}

.service-card .body strong {
  display: block;
  font-size: 15px;
}

.service-card .body span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.service-card .price {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.badge-ok svg {
  width: 14px;
  height: 14px;
}

/* -------------------------------------------------------------------- chat */

.chat-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.chat-head-copy {
  flex: 1;
  min-width: 0;
}

.chat-back {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.chat-back:hover {
  background: var(--surface-soft);
}

.chat-back svg {
  width: 22px;
  height: 22px;
}

.chat-head-actions {
  display: flex;
  gap: 4px;
  flex: none;
}

.chat-jump {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.chat-jump:hover {
  color: var(--orange-dark);
  border-color: var(--orange);
}

.chat-jump svg {
  width: 16px;
  height: 16px;
}

.chat-head .avatar {
  width: 44px;
  height: 44px;
  background: var(--orange-soft);
  border: 0;
  font-size: 13px;
}

.chat-head strong {
  display: block;
  font-size: 15px;
}

.chat-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-sep {
  align-self: center;
  margin: 10px 0 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.msg {
  max-width: min(76%, 620px);
  padding: 10px 13px;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.msg.in {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px 18px 18px 6px;
}

.msg.out {
  align-self: flex-end;
  background: var(--orange);
  color: var(--on-orange);
  border-radius: 18px 18px 6px 18px;
}

.msg .author {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 3px;
}

.msg .time {
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.85;
  text-align: right;
}

.msg img,
.msg video {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
  margin-bottom: 4px;
  cursor: pointer;
}

.msg audio {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-bottom: 4px;
}

.msg a.file-link {
  color: inherit;
  text-decoration: underline;
}

.system-note {
  align-self: center;
  max-width: 80%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}

.composer textarea {
  flex: 1;
  min-height: 46px;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  scrollbar-width: none;
}

.composer textarea::-webkit-scrollbar {
  display: none;
}

.composer textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.icon-btn {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--orange-dark);
  border-color: var(--orange);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.send-btn {
  width: 46px;
  height: 46px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.send-btn svg {
  width: 20px;
  height: 20px;
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px;
}

.chat-loading i {
  display: block;
  height: 54px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  opacity: 0.7;
  animation: chat-pulse 1.2s ease-in-out infinite;
}

.chat-loading .sk-in {
  width: min(62%, 420px);
}

.chat-loading .sk-out {
  width: min(48%, 340px);
  align-self: flex-end;
  background: var(--orange-soft);
}

.chat-loading .sk-short {
  width: min(38%, 280px);
}

@keyframes chat-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-loading i {
    animation: none;
  }
}

.chat-empty {
  margin: auto;
  max-width: 300px;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.chat-empty strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 5px;
}

/* ------------------------------------------------------- chat info aside */

.aside-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
}

.aside-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.aside-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.3;
}

.aside-card span {
  color: var(--muted);
  font-size: 13px;
}

.aside-block {
  padding: 2px 2px 0;
}

.aside-topics {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-topic {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.aside-topic:hover {
  background: var(--surface);
  color: var(--orange-dark);
}

.aside-note {
  margin: 0;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 1000px) {
  .composer {
    margin: 0 20px 20px;
    padding: 8px;
    border: 1px solid var(--hairline);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }

  .composer textarea {
    min-height: 44px;
    padding: 11px 12px;
    border: 0;
    background: transparent;
  }

  .composer textarea:focus {
    box-shadow: none;
  }

  .composer .icon-btn {
    border: 0;
    background: transparent;
  }
}

/* --------------------------------------------------------------- settings */

.install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--orange) 28%, var(--hairline));
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.install-banner:hover {
  border-color: var(--orange);
}

.install-banner-icon,
.install-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
  flex: none;
}

.install-banner-icon svg,
.install-card-icon svg {
  width: 20px;
  height: 20px;
}

.install-banner-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-banner-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.install-banner-copy small {
  font-size: 12px;
  color: var(--muted);
}

.install-banner > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}

.install-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.install-card-copy {
  flex: 1;
  min-width: 0;
}

.install-card .setting-title {
  margin-bottom: 3px;
}

.install-card .setting-hint {
  margin: 0;
}

.install-card .btn {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
}

.install-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.install-steps li + li {
  margin-top: 8px;
}

.install-modal .modal-actions {
  margin-top: 22px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-card .avatar {
  width: 56px;
  height: 56px;
  border: 0;
  background: var(--orange-soft);
  font-size: 17px;
}

.profile-copy h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.profile-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.setting-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.setting-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.contact-row + .contact-row {
  border-top: 1px solid var(--hairline);
}

.contact-row .ico {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
  flex: none;
}

.contact-row .ico svg {
  width: 18px;
  height: 18px;
}

.contact-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.contact-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 6px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.theme-option svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.theme-option.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.theme-option.active svg {
  color: var(--orange-dark);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-actions .btn {
  flex: 1;
}

.btn-quiet-danger {
  background: transparent;
  color: var(--danger);
}

.btn-quiet-danger:hover {
  background: var(--danger-soft);
}

.footnote {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  filter: brightness(0.96);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.btn-soft {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 34%, transparent);
}

.btn-danger:hover {
  background: var(--danger-soft);
}

.btn.btn-quiet-danger {
  background: transparent;
  color: var(--danger);
}

.btn.btn-quiet-danger:hover {
  background: var(--danger-soft);
}

/* ------------------------------------------------------------------- modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 16, 10, 0.5);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 4px;
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.modal .lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.preset {
  padding: 11px 4px;
  border-radius: 13px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.preset.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions .btn {
  flex: 1;
}

.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.pay-bar strong {
  font-size: 15px;
}

.pay-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.pay-open {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pay-open:hover {
  background: var(--orange-soft);
}

.pay-hint {
  margin: 0;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.pay-overlay iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

/* -------------------------------------------------------------------- misc */

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

.skeleton {
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--surface-soft), var(--hairline), var(--surface-soft));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.error-box {
  margin: 32px auto;
  max-width: 480px;
  text-align: center;
  padding: 28px;
}

.error-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.error-box p {
  margin: 0 0 18px;
  color: var(--muted);
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 480px);
}

.toast {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toast-in 0.18s ease-out;
}

.toast.error {
  background: var(--danger);
  color: #fff;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.86);
  display: grid;
  place-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.image-viewer img,
.image-viewer video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

/* ------------------------------------------------------------------- mobile */

@media (max-width: 820px) {
  .login {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 240px;
    padding: 26px 22px 42px;
  }

  .login-copy h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .login-copy p {
    font-size: 14px;
  }

  .login-points {
    display: none;
  }

  .login-panel {
    padding: 0 16px 32px;
    margin-top: -30px;
    position: relative;
  }

  .login-card {
    padding: 26px;
    border-radius: 26px;
  }

  .topnav,
  .top-actions {
    display: none;
  }

  .topbar-inner {
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .mobile-avatar {
    display: grid;
  }

  .content {
    padding: 14px 16px calc(96px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .content-chat {
    padding-bottom: 10px;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--hairline);
  }

  .bottom-nav button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
  }

  .bottom-nav button svg {
    width: 22px;
    height: 22px;
  }

  .bottom-nav button.active {
    color: var(--orange-dark);
  }

  .bottom-nav .nav-badge {
    top: 3px;
    right: 50%;
    margin-right: -18px;
  }

  .hello h1 {
    font-size: 22px;
  }

  .balance-card {
    padding: 20px;
    border-radius: 26px;
  }

  .balance-amount {
    font-size: 42px;
  }

  .balance-meta {
    gap: 10px 24px;
  }

  .quick {
    padding: 14px 6px;
    border-radius: 19px;
    font-size: 12px;
  }

  .quick-icon {
    width: 38px;
    height: 38px;
  }

  .op-row {
    padding: 13px 15px;
    gap: 11px;
  }

  .op-icon {
    width: 38px;
    height: 38px;
  }

  .op-main strong {
    font-size: 13.5px;
  }

  .op-main span {
    font-size: 12px;
  }

  .op-amount {
    font-size: 13px;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .summary-row strong {
    font-size: 19px;
  }

  .history-summary {
    padding: 18px;
  }

  .tariff-grid {
    grid-template-columns: 1fr;
  }

  body.chat-full .topbar {
    display: none;
  }

  .chat-card {
    border-radius: 0;
  }

  body.chat-full .chat-card {
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  body.chat-full .chat-head {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  body.chat-full .chat-body {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    scrollbar-width: none;
  }

  body.chat-full .chat-body::-webkit-scrollbar {
    display: none;
  }

  body.chat-full .composer {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  input,
  textarea {
    font-size: 16px;
  }

  .chat-body {
    padding: 14px;
  }

  .composer {
    padding: 10px 12px;
    gap: 7px;
  }

  .composer textarea {
    font-size: 16px;
    padding: 11px 13px;
    min-height: 48px;
  }

  .icon-btn,
  .send-btn {
    width: 44px;
    height: 44px;
  }

  .msg {
    max-width: 84%;
  }

  .profile-card .avatar {
    width: 50px;
    height: 50px;
  }

  .settings-actions {
    flex-direction: column;
  }

  .install-card {
    flex-wrap: wrap;
  }

  .install-card-copy {
    min-width: 150px;
  }

  .install-card .btn {
    width: 100%;
    order: 3;
  }

  .theme-option {
    padding: 12px 4px;
    font-size: 11px;
  }

  .modal {
    padding: 22px;
  }

  .presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
