:root {
  --ink-900: #1f2430;
  --ink-800: #2c3442;
  --ink-700: #3a4454;
  --ink-600: #556070;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --amber-300: #fcd873;
  --amber-400: #f6c64d;
  --amber-500: #e9b330;
  --amber-600: #c99016;
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --info: #2563eb;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-secondary: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --transition-fast: 120ms ease;
  --transition-base: 180ms ease;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --header-h: 0px;
  --footer-h: 0px;
  --app-height: 100vh;
  --screen-side-padding: clamp(14px, 4vw, 18px);
  --screen-top-padding: clamp(20px, 5vw, 28px);
  --screen-pad-left: max(var(--safe-left), var(--screen-side-padding));
  --screen-pad-right: max(var(--safe-right), var(--screen-side-padding));
  --footer-safe-bottom: max(12px, calc(var(--safe-bottom) + 4px));
  --footer-lift: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: var(--app-height);
  min-height: var(--app-height);
  overflow: hidden;
}

body {
  font-family: "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--ink-900);
  overflow: hidden;
}

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

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

#app {
  height: var(--app-height);
  min-height: var(--app-height);
  overflow: hidden;
}

.app-bg {
  position: fixed;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
}

.app-shell {
  position: relative;
  height: var(--app-height);
  min-height: var(--app-height);
  display: flex;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

.phone-frame {
  position: relative;
  width: min(100%, 390px);
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  background: var(--bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-frame__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px var(--screen-pad-right) calc(var(--footer-safe-bottom) + 18px) var(--screen-pad-left);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  background: #ffffff;
  overflow: visible;
}

.phone-frame__footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 0;
}

.phone-frame__footer--no-fade::before {
  display: none;
}

.phone-frame__footer--with-nav {
  bottom: calc(78px + var(--safe-bottom));
  padding-bottom: 12px;
}

.phone-frame__footer .button {
  min-height: 52px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.phone-frame__footer > * {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.phone-frame__footer .stack {
  pointer-events: auto;
  gap: 10px;
}

.topbar {
  --topbar-safe-offset: max(calc(var(--safe-top) + 8px), 20px);
  position: relative;
  min-height: calc(52px + var(--topbar-safe-offset));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  column-gap: 12px;
  padding: var(--topbar-safe-offset) var(--screen-pad-right) 8px var(--screen-pad-left);
  background: #ffffff;
  backdrop-filter: none;
}

.topbar::after {
  content: "";
  position: absolute;
  left: calc(var(--screen-pad-left) + 4px);
  right: calc(var(--screen-pad-right) + 4px);
  bottom: 0;
  height: 1px;
  background: var(--gray-200);
}

.topbar--safe-area {
  --topbar-safe-offset: max(calc(var(--safe-top) + 12px), 26px);
}

.topbar--rent-flow::after {
  display: none;
}

.topbar__title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-800);
}

.topbar__side,
.topbar__spacer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ui-icon--xs {
  width: 16px;
  height: 16px;
}

.ui-icon--sm {
  width: 18px;
  height: 18px;
}

.ui-icon--md {
  width: 20px;
  height: 20px;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink-800);
  border: 1px solid rgba(203, 213, 225, 0.9);
  transition: background var(--transition-base), border-color var(--transition-base),
    transform var(--transition-fast), box-shadow var(--transition-base);
}

.icon-button:hover {
  background: #fffdf8;
  border-color: rgba(233, 179, 48, 0.28);
  box-shadow: var(--shadow-xs);
}

.icon-button:active {
  transform: translateY(1px);
}

.screen {
  flex: 1;
  min-height: 0;
  padding: var(--screen-top-padding) var(--screen-pad-right) calc(120px + var(--footer-safe-bottom)) var(--screen-pad-left);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #ffffff;
}

.screen::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.screen--no-nav {
  padding-bottom: calc(28px + var(--footer-safe-bottom));
}

.screen--with-footer.screen--no-nav {
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 28px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 28px);
}

.screen--with-sticky {
  padding-top: 0;
}

.screen__sticky {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 -4px 18px;
  padding: 14px 12px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
}

.rent-area-screen .screen__sticky,
.rent-tariff-screen .screen__sticky,
.rent-customer-screen .screen__sticky,
.rent-passport-screen .screen__sticky,
.rent-review-screen .screen__sticky {
  margin-bottom: 4px;
  padding-top: 6px;
  padding-bottom: 4px;
}

.rent-area-screen .screen__sticky {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
}

.rent-storage-screen .screen__sticky,
.rent-tariff-screen .screen__sticky,
.rent-customer-screen .screen__sticky,
.rent-passport-screen .screen__sticky,
.rent-review-screen .screen__sticky {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
}

.screen--topless {
  padding-top: max(52px, calc(var(--safe-top) + 44px));
}

.screen__header {
  margin-bottom: 20px;
}

.welcome-screen,
.install-screen,
.docs-screen,
.start-screen {
  display: grid;
  align-content: start;
  gap: 16px;
}

.screen.start-screen.screen--no-nav {
  padding-bottom: calc(16px + var(--safe-bottom));
  scroll-padding-bottom: calc(16px + var(--safe-bottom));
}

.screen.start-screen.screen--topless {
  padding-top: max(10px, calc(var(--safe-top) + 6px));
  overflow-y: auto;
}

.screen.install-screen.screen--with-footer {
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 24px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 24px);
}

.install-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0;
  overflow: hidden;
}

.install-screen__content {
  display: grid;
  align-content: start;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 28px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 28px);
}

.screen.install-screen.screen--with-footer + .phone-frame__footer {
  padding-top: 12px;
  padding-bottom: calc(var(--footer-safe-bottom) + max(var(--footer-lift), 2px));
}


.welcome-screen {
  gap: 20px;
}

.screen.welcome-screen {
  padding-top: max(26px, calc(var(--safe-top) + 18px));
  padding-bottom: calc(92px + var(--footer-safe-bottom));
}


.welcome-stage {
  display: grid;
  gap: 14px;
}

.welcome-brand-card {
  display: grid;
  gap: 14px;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(246, 198, 77, 0.24), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  justify-items: center;
  text-align: center;
}

.welcome-brand-card__logo {
  width: min(148px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-brand-card__logo-image {
  display: block;
  width: 100%;
  max-width: 130px;
  height: auto;
}

.install-panel__eyebrow,
.docs-step__eyebrow,
.start-hero__eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.welcome-brand-card__title,
.install-panel__title,
.docs-step__title,
.start-hero__title {
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.welcome-brand-card__title {
  max-width: 300px;
  font-size: 31px;
  line-height: 33px;
  text-wrap: balance;
  text-align: center;
}

.welcome-brand-card__slogan {
  margin: -2px 0 0;
  max-width: 300px;
  font-size: 17px;
  line-height: 21px;
  font-weight: 600;
  color: var(--ink-800);
  text-wrap: balance;
  text-align: center;
}

.welcome-brand-card__text,
.install-panel__text,
.docs-step__text,
.start-hero__text {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-600);
}

.welcome-brand-card__text {
  max-width: 300px;
  line-height: 21px;
  text-align: center;
  text-wrap: pretty;
}

.welcome-benefits {
  display: grid;
  gap: 10px;
}

.welcome-benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.72);
  box-shadow: var(--shadow-xs);
}

.welcome-benefit__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 179, 48, 0.12);
  color: var(--ink-900);
}

.welcome-benefit__body {
  display: grid;
  gap: 4px;
}

.welcome-benefit__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink-900);
}

.welcome-benefit__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.welcome-stage__actions {
  margin-top: 2px;
}

.install-panel,
.start-hero {
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(246, 198, 77, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: var(--shadow-sm);
}

.install-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.install-screen .screen__footer {
  margin-top: 0;
  padding-top: 16px;
}

.install-panel__icon,
.start-highlight__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(233, 179, 48, 0.14);
  color: var(--ink-900);
}

.install-panel__title,
.docs-step__title,
.start-hero__title {
  font-size: 28px;
  line-height: 34px;
}

.install-guide {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.install-guide.is-hidden {
  display: none;
}

.install-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-700);
}

.install-step__index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 179, 48, 0.14);
  color: var(--amber-600);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.install-note {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-500);
}

.install-notify-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: #fff;
}

.install-notify-card__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink-900);
}

.install-notify-card__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700);
}

.docs-step {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

.docs-step__head {
  display: grid;
  gap: 10px;
}

.start-hero {
  display: grid;
  gap: 12px;
}

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

.start-highlight {
  min-height: 132px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: var(--shadow-xs);
  display: grid;
  align-content: start;
  gap: 10px;
}

.start-highlight__value {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.start-highlight__label {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.start-links {
  padding-top: 14px;
  padding-bottom: 10px;
}

.start-links__title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink-900);
}

.screen__title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.screen__footer {
  margin-top: 24px;
}

.screen__footer .button {
  min-height: 52px;
}

.stack {
  display: grid;
  gap: 12px;
}

.lead-panel {
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(246, 198, 77, 0.2), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.lead-panel__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
  background: rgba(233, 179, 48, 0.14);
}

.lead-panel__eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.lead-panel__title {
  margin: 0;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  color: var(--ink-900);
}

.lead-panel__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.lead-panel--compact {
  gap: 12px;
  padding: 18px;
}

.lead-panel--compact .lead-panel__title {
  font-size: 20px;
  line-height: 28px;
}

.lead-panel--compact .lead-panel__text {
  max-width: 32ch;
}

.overdue-restrictions-screen {
  gap: 18px;
}

.overdue-restrictions-screen__actions {
  margin-top: 2px;
}

.overdue-restrictions-overview {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(245, 193, 180, 0.88);
  background:
    radial-gradient(circle at top right, rgba(255, 216, 208, 0.88), transparent 36%),
    linear-gradient(180deg, #fff9f7 0%, #ffffff 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 18px;
}

.overdue-restrictions-overview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.overdue-restrictions-overview__box {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-700);
}

.overdue-restrictions-overview__main {
  display: grid;
  gap: 10px;
}

.overdue-restrictions-overview__eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.overdue-restrictions-overview__amount {
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink-900);
}

.overdue-restrictions-overview__caption {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-700);
}

.overdue-restrictions-overview__chip {
  justify-self: flex-start;
}

.overdue-restrictions-overview__meta {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 193, 180, 0.72);
}

.overdue-restrictions-overview__meta-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.overdue-restrictions-overview__meta-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.overdue-restrictions-overview__meta-value {
  max-width: 56%;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-align: right;
  color: var(--ink-900);
}

.overdue-restrictions-overview__note {
  max-width: 34ch;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-700);
}

.overdue-timeline {
  display: grid;
  gap: 12px;
  padding: 4px 2px 0;
}

.overdue-timeline__head {
  display: grid;
  gap: 6px;
}

.overdue-timeline__eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.overdue-timeline__intro {
  max-width: 34ch;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-600);
}

.overdue-timeline__list {
  display: grid;
}

.overdue-timeline__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.overdue-timeline__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.overdue-timeline__day {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--ink-500);
}

.overdue-timeline__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-800);
}

.overdue-timeline__item.is-accent {
  padding-left: 12px;
  border-left: 3px solid rgba(180, 35, 24, 0.16);
}

.overdue-timeline__item.is-accent .overdue-timeline__day {
  color: #b42318;
}

.overdue-timeline__item.is-accent .overdue-timeline__text {
  color: var(--ink-900);
  font-weight: 600;
}

.overdue-payment-success-screen {
  gap: 22px;
}

.overdue-payment-success-screen__actions {
  gap: 12px;
}

.overdue-payment-success-card {
  padding: 24px 22px;
  border-radius: 30px;
  box-shadow: none;
  background:
    radial-gradient(circle at top right, rgba(252, 216, 115, 0.16), transparent 34%),
    linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  display: grid;
  gap: 18px;
}

.overdue-payment-success-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overdue-payment-success-card__top-copy {
  display: grid;
  gap: 6px;
}

.overdue-payment-success-card__box {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink-900);
}

.overdue-payment-success-card__title {
  max-width: 14ch;
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}

.overdue-payment-success-card__text {
  max-width: 30ch;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-600);
}

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

.overdue-payment-success-card__stat {
  min-height: 108px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  align-content: start;
  gap: 8px;
}

.overdue-payment-success-card__stat-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.overdue-payment-success-card__stat-value {
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.overdue-payment-success-card__breakdown {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.overdue-payment-success-card__section-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.overdue-payment-success-card__rows {
  display: grid;
}

.overdue-payment-success-card .summary-row {
  padding: 11px 0;
}

.overdue-payment-success-card .summary-row__label,
.overdue-payment-success-card .summary-row__value {
  font-size: 15px;
  line-height: 22px;
}

.overdue-payment-success-card .summary-row__value.is-strong {
  font-size: 20px;
  line-height: 28px;
}

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

.feature-tile {
  min-height: 104px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.72);
  display: grid;
  align-content: start;
  gap: 10px;
}

.feature-tile__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-600);
  background: rgba(233, 179, 48, 0.12);
}

.feature-tile__title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-900);
}

.feature-tile__text {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.card {
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card--accent {
  background: rgba(252, 216, 115, 0.18);
  border-color: rgba(233, 179, 48, 0.4);
}

.card--danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.04);
}

.card--success {
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(22, 163, 74, 0.04);
}

.card--loading {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-block: 28px;
}

.card__eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}

.card__icon-badge {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-600);
  background: rgba(233, 179, 48, 0.12);
}

.card__title,
.mini-card__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--ink-900);
}

.card__text,
.mini-card__text,
.doc-card__paragraph {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.card__actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.card__caption {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-500);
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hero-card__metric {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 8px;
}

.hero-card__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--ink-900);
  background: rgba(233, 179, 48, 0.12);
}

.hero-card__number {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.hero-card__label {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-600);
}

.button {
  min-height: 48px;
  width: 100%;
  border-radius: 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-base),
    border-color var(--transition-base), color var(--transition-base), opacity var(--transition-base);
}

.button__icon {
  color: currentColor;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.button--primary {
  background: var(--amber-500);
  color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button--primary:hover {
  background: var(--amber-400);
}

.button--secondary {
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--ink-800);
}

.button--card-open {
  display: grid;
  place-items: center;
  text-align: center;
  padding-inline: 20px;
}

.button--card-open span {
  display: block;
  width: 100%;
  line-height: 1.15;
}

.button--danger {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.14);
  color: var(--error);
}

.button--tertiary {
  background: transparent;
  color: var(--ink-700);
}

.button--premium {
  min-height: 54px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(233, 179, 48, 0.26);
}

.button--ghost {
  background: rgba(233, 179, 48, 0.14);
  color: var(--amber-600);
}

.button--anchor {
  text-decoration: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-700);
}

.field__input {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 12px 14px;
  color: var(--ink-900);
  outline: none;
  transition: border-color var(--transition-base), background var(--transition-base),
    box-shadow var(--transition-base);
}

.field__input:focus {
  border-color: rgba(233, 179, 48, 0.9);
  box-shadow: 0 0 0 3px rgba(233, 179, 48, 0.16);
  background: #fff;
}

.field__input.is-error {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.03);
}

.field__hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-500);
}

.field__error {
  min-height: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--error);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700);
  padding-bottom: 4px;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--amber-500);
}

.checkbox--plain {
  gap: 14px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-800);
}

.checkbox--plain input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.onboarding-agreements {
  display: grid;
  gap: 14px;
  padding: 4px 2px 0;
}

.onboarding-actions {
  gap: 10px;
}

.onboarding-skip {
  min-height: 40px;
  color: var(--ink-800);
}

.segmented {
  display: grid;
  gap: 8px;
  padding: 4px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.72);
}

.segmented--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented--storage {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  gap: 16px;
}

.segmented__item {
  min-height: 40px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-600);
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.segmented__item--storage {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  text-align: left;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.segmented__item--storage:active {
  transform: translateY(1px);
}

.segmented__title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.segmented__hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-500);
}

.segmented__item.is-active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}

.segmented__item--storage.is-active {
  background: rgba(252, 216, 115, 0.16);
  border-color: rgba(233, 179, 48, 0.5);
  box-shadow: 0 6px 16px rgba(233, 179, 48, 0.12);
}

.segmented__item--storage.is-active .segmented__hint {
  color: var(--ink-700);
}

.stepper {
  --stepper-gap: 6px;
  --stepper-dot-size: 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--stepper-gap);
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 0;
}

.stepper__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.stepper__item::after {
  content: "";
  position: absolute;
  top: calc((var(--stepper-dot-size) / 2) - 1px);
  left: calc(50% + (var(--stepper-dot-size) / 2));
  width: calc(100% - var(--stepper-dot-size) + var(--stepper-gap));
  height: 2px;
  border-radius: 999px;
  background: var(--gray-200);
  transform-origin: left center;
  pointer-events: none;
}

.stepper__item:last-child::after {
  display: none;
}

.stepper__index {
  width: var(--stepper-dot-size);
  height: var(--stepper-dot-size);
  min-width: var(--stepper-dot-size);
  min-height: var(--stepper-dot-size);
  max-width: var(--stepper-dot-size);
  max-height: var(--stepper-dot-size);
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  color: var(--gray-500);
  background: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  box-shadow: none;
}

.stepper__label {
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  color: var(--gray-500);
}

.stepper__item.is-complete::after {
  background: var(--amber-500);
}

.stepper__item.is-complete .stepper__index {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-900);
  box-shadow: none;
}

.stepper__item.is-complete .stepper__label {
  color: var(--ink-900);
}

.stepper__item.is-active .stepper__index {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.stepper__item.is-current .stepper__index {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-900);
  box-shadow: none;
}

.stepper__item.is-active .stepper__label {
  color: var(--ink-900);
}

.stepper__item.is-current .stepper__label {
  color: var(--ink-900);
}

.stepper--animate-edge .stepper__item.is-complete.is-edge::after {
  animation: stepper-connector-fill 260ms ease-out;
}

@keyframes stepper-connector-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.rent-area-screen {
  display: grid;
  align-content: start;
  gap: 14px;
}

.rent-area-screen .screen__header,
.rent-area-screen .context-card {
  display: none;
}

.rent-area-screen .stepper {
  margin-bottom: 0;
  padding: 8px 10px;
}

.rent-area-screen .stepper__item {
  gap: 4px;
}

.rent-area-screen .stepper__label {
  font-size: 9px;
  line-height: 11px;
}

.rent-area-list {
  gap: 12px;
}

.rent-area-screen,
.rent-storage-screen,
.rent-tariff-screen,
.rent-customer-screen,
.rent-passport-screen,
.rent-review-screen,
.draft-recovery-screen {
  min-height: 100%;
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
}

.rent-storage-screen,
.rent-tariff-screen,
.rent-customer-screen,
.rent-passport-screen,
.rent-review-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rent-area-screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
}

.rent-storage-screen {
  gap: 18px;
}

.rent-customer-screen .screen__header,
.rent-passport-screen .screen__header,
.rent-review-screen .screen__header,
.rent-customer-screen .context-card,
.rent-passport-screen .context-card,
.rent-review-screen .context-card,
.draft-recovery-screen .screen__header,
.rent-storage-screen .screen__header,
.rent-tariff-screen .screen__header,
.rent-tariff-screen .context-card {
  display: none;
}

.rent-area-screen .stepper,
.rent-tariff-screen .stepper,
.rent-customer-screen .stepper,
.rent-passport-screen .stepper,
.rent-review-screen .stepper {
  margin: 0 -4px;
}

.rent-area-screen .stepper__label,
.rent-tariff-screen .stepper__label,
.rent-customer-screen .stepper__label,
.rent-passport-screen .stepper__label,
.rent-review-screen .stepper__label {
  font-size: 9px;
  line-height: 11px;
}

.rent-storage-screen .context-card,
.rent-storage-screen .warehouse-map-card,
.rent-customer-screen .card,
.rent-passport-screen .card,
.rent-review-screen .card,
.draft-recovery-card,
.draft-recovery-summary {
  padding: clamp(16px, 4vw, 20px);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: none;
}

.rent-customer-form {
  gap: 16px;
  margin-top: 8px;
  padding-bottom: 88px;
}

.rent-customer-screen .field__label {
  font-size: 12px;
  line-height: 16px;
}

.rent-customer-screen .card__title,
.rent-passport-screen .card__title,
.rent-review-screen .card__title {
  font-size: 18px;
  line-height: 26px;
}

.rent-customer-screen .card__text,
.rent-passport-screen .card__text,
.rent-review-screen .card__text {
  margin-top: 4px;
}

.rent-passport-actions {
  gap: 10px;
}

.rent-extension-flow {
  gap: 20px;
}

.rent-extension-flow__summary,
.rent-extension-flow__debt,
.rent-extension-review__summary {
  padding: 22px;
  border-radius: 28px;
  box-shadow: none;
}

.rent-extension-flow__summary .summary-row,
.rent-extension-flow__debt .summary-row,
.rent-extension-review__summary .summary-row {
  padding: 12px 0;
}

.rent-extension-flow__summary .summary-row__label,
.rent-extension-flow__debt .summary-row__label,
.rent-extension-review__summary .summary-row__label {
  font-size: 15px;
  line-height: 22px;
}

.rent-extension-flow__summary .summary-row__value,
.rent-extension-flow__debt .summary-row__value,
.rent-extension-review__summary .summary-row__value {
  font-size: 16px;
  line-height: 24px;
}

.rent-extension-flow__summary .summary-row__value.is-strong,
.rent-extension-flow__debt .summary-row__value.is-strong,
.rent-extension-review__summary .summary-row__value.is-strong {
  font-size: 22px;
  line-height: 30px;
}

.rent-extension-flow__debt {
  gap: 14px;
}

.rent-extension-choice {
  display: grid;
  gap: 14px;
  padding: 4px 2px 0;
}

.rent-extension-choice__head {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.rent-extension-choice__title {
  max-width: 14ch;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
  color: var(--ink-900);
}

.rent-extension-choice__text {
  max-width: 31ch;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  text-wrap: pretty;
  color: var(--ink-600);
}

.rent-extension-choice__list {
  gap: 14px;
}

.rent-extension-choice .tariff-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 22px;
  border-radius: 28px;
  box-shadow: none;
}

.rent-extension-choice .tariff-card__content {
  display: grid;
  gap: 10px;
}

.rent-extension-choice .card__title {
  font-size: 24px;
  line-height: 32px;
}

.rent-extension-choice .card__text {
  margin-top: 0;
  max-width: 16ch;
  font-size: 16px;
  line-height: 24px;
}

.rent-extension-choice .tariff-card__price {
  margin-top: 0;
  font-size: 22px;
  line-height: 30px;
  white-space: nowrap;
}

.rent-extension-choice .tariff-card__price span {
  white-space: nowrap;
}

.rent-extension-choice .tariff-card.is-selected {
  background: linear-gradient(180deg, rgba(255, 249, 231, 0.96) 0%, rgba(255, 252, 245, 1) 100%);
  border-color: rgba(233, 179, 48, 0.86);
  box-shadow: 0 0 0 2px rgba(233, 179, 48, 0.12);
}

.rent-extension-review {
  display: grid;
  gap: 24px;
}

.rent-extension-review__summary {
  display: grid;
  gap: 18px;
}

.rent-extension-review__summary-head {
  display: grid;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

.rent-extension-review__summary-eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.rent-extension-review__summary-total {
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}

.rent-extension-review__summary-rows {
  display: grid;
}

.rent-extension-review__section-head {
  display: grid;
  gap: 8px;
  max-width: 34ch;
}

.rent-extension-review__section-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink-900);
}

.rent-extension-review__section-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-600);
}

.review-agreements--extension {
  display: grid;
  gap: 18px;
  padding: 6px 2px 0;
}

.review-agreements__list--extension {
  display: grid;
  gap: 18px;
  border-top: 0;
}

.review-agreements__item.review-agreements__item--extension {
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.review-agreements__item.review-agreements__item--extension input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.review-agreements__copy {
  display: grid;
  gap: 6px;
}

.review-agreements__label {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-800);
}

.review-agreements--extension .link-inline {
  justify-self: flex-start;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-agreements {
  display: grid;
  gap: 14px;
}

.review-agreements__list {
  display: grid;
  gap: 10px;
}

.review-agreements__item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: rgba(248, 250, 252, 0.9);
}

.review-agreements__item input {
  margin-top: 1px;
}

.review-agreements .link-inline {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.68);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row__label {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.summary-row__value {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: right;
  color: var(--ink-800);
}

.summary-row__value--link {
  text-decoration: none;
  color: var(--ink-800);
}

.summary-row__value--link:hover,
.summary-row__value--link:focus-visible {
  color: var(--brand-yellow-700);
}

.summary-row__value.is-strong {
  font-size: 18px;
  line-height: 26px;
  color: var(--ink-900);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.chip--neutral {
  background: #f6f8fb;
  border-color: rgba(203, 213, 225, 0.76);
  color: var(--ink-700);
}

.chip--success {
  background: #ebf8ef;
  border-color: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.chip--warning {
  background: #fff4df;
  border-color: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.chip--error {
  background: #fdecec;
  border-color: rgba(220, 38, 38, 0.12);
  color: var(--error);
}

.chip--info {
  background: #eef5ff;
  border-color: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.rental-card,
.area-card,
.tariff-card {
  text-align: left;
  width: 100%;
}

.activated-screen-shell,
.replacement-screen-shell {
  padding-top: 18px;
}

.activated-screen-shell .screen__header {
  display: none;
}

.activated-screen {
  display: grid;
  align-content: start;
  gap: 18px;
}

.activated-screen__intro {
  padding-inline: 2px;
  display: grid;
  justify-items: center;
}

.activated-screen__subtitle {
  margin: 0 auto;
  max-width: 22ch;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--ink-600);
}

.activated-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: #ffffff;
  box-shadow: none;
}

.activated-card__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.68);
}

.activated-card__row:first-child {
  padding-top: 0;
}

.activated-card__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activated-card__label {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.activated-card__value {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink-900);
}

.activated-screen__actions {
  display: grid;
  gap: 10px;
}

.activated-screen__actions .button {
  min-height: 48px;
  justify-content: center;
}

.replacement-screen-shell .screen__header {
  display: none;
}

.replacement-screen {
  display: grid;
  align-content: start;
  gap: 16px;
}

.replacement-screen__intro {
  padding-inline: 2px;
}

.replacement-screen__subtitle {
  margin: 0;
  max-width: 24ch;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-600);
}

.replacement-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: #ffffff;
  box-shadow: none;
  display: grid;
  gap: 12px;
}

.replacement-card .chip--warning {
  background: rgba(245, 158, 11, 0.1);
}

.replacement-card__top,
.replacement-option__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.replacement-option__section {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--gray-500);
}

.replacement-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink-900);
}

.replacement-card__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-800);
}

.replacement-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.replacement-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700);
}

.replacement-card__bottom {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.replacement-card__price {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink-900);
}

.replacement-card__date {
  font-size: 14px;
  line-height: 20px;
  color: var(--gray-500);
}

.replacement-screen__actions,
.replacement-screen__list {
  display: grid;
  gap: 10px;
}

.replacement-screen__secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.replacement-screen__secondary-actions .button {
  min-height: 48px;
  justify-content: center;
  padding-inline: 14px;
}

.replacement-screen__list[hidden] {
  display: none;
}

.replacement-option {
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background: #ffffff;
  display: grid;
  gap: 8px;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.replacement-option:hover {
  border-color: rgba(233, 179, 48, 0.5);
}

.replacement-option__box {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.replacement-option__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.replacement-option__price {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-900);
}

.rental-card.is-selected,
.area-card.is-selected,
.tariff-card.is-selected {
  border-color: rgba(233, 179, 48, 0.92);
  background: rgba(252, 216, 115, 0.18);
  box-shadow: 0 0 0 2px rgba(233, 179, 48, 0.18);
}

.rent-area-screen .area-card {
  padding: 20px;
  border-radius: 24px;
  box-shadow: none;
  display: grid;
  gap: 12px;
}

.rent-area-screen .area-card__head {
  align-items: flex-start;
}

.rent-area-screen .area-card {
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.rent-area-screen .area-card:active {
  transform: translateY(1px);
}

.rent-area-screen .area-card__selected-chip {
  color: #a16207;
  background: #fff2cf;
  border-color: rgba(233, 179, 48, 0.3);
}

.rent-area-screen .card__title {
  font-size: 20px;
  line-height: 28px;
}

.rent-area-screen .card__text {
  margin-top: 6px;
  max-width: 22ch;
  font-size: 15px;
  line-height: 22px;
}

.rent-area-screen .area-card__meta {
  margin-top: 0;
  gap: 8px 14px;
}

.rent-area-screen .rental-card__meta-item {
  font-size: 13px;
  line-height: 18px;
}

.rent-area-screen .area-card__price {
  margin-top: 0;
  font-size: 20px;
  line-height: 28px;
}

.rental-card__top,
.area-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rental-card__title,
.rental-card__price,
.area-card__price,
.tariff-card__price {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.rental-card__address {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-800);
}

.rental-card__meta,
.rental-card__caption {
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-500);
}

.rental-card__meta-row,
.area-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-500);
}

.rental-card__meta-item,
.tariff-card__price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rental-card__bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.area-card__price,
.tariff-card__price {
  margin-top: 12px;
  color: var(--ink-900);
}

.tariff-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 430px) {
  .dashboard-overview-card,
  .quick-link-card,
  .rental-list-card,
  .rental-summary-card,
  .box-detail__section,
  .support-dashboard__overview,
  .support-faq,
  .warehouse-map-card,
  .warehouse-map-link-card {
    padding: 16px;
  }

  .dashboard-overview-card__stats {
    gap: 8px;
  }

  .dashboard-overview-card__stat {
    min-height: 78px;
  }
}

@media (max-width: 390px) {
  :root {
    --screen-side-padding: 14px;
  }

  .home-dashboard {
    padding-top: max(56px, calc(var(--safe-top) + 42px));
  }

  .dashboard-overview-card__stats {
    grid-template-columns: 1fr;
  }

  .dashboard-overview-card__title {
    font-size: 24px;
    line-height: 28px;
  }

  .dashboard-section__title,
  .boxes-dashboard__masthead-title {
    font-size: 18px;
    line-height: 24px;
  }

  .quick-link-card {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    column-gap: 10px;
  }
}

@media (max-width: 340px) {
  .dashboard-overview-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .dashboard-overview-card__notice {
    font-size: 11px;
    line-height: 15px;
  }

  .quick-link-card__title {
    font-size: 15px;
    line-height: 19px;
  }
}

@media (max-width: 360px) {
  .topbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .stepper {
    --stepper-gap: 4px;
    --stepper-dot-size: 28px;
    padding: 8px 8px;
  }

  .stepper__index {
    font-size: 11px;
  }

  .rent-area-screen .stepper__label,
  .rent-tariff-screen .stepper__label,
  .rent-customer-screen .stepper__label,
  .rent-passport-screen .stepper__label,
  .rent-review-screen .stepper__label {
    font-size: 8px;
    line-height: 10px;
  }

  .rent-tariff-screen .tariff-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .rent-tariff-screen .tariff-card__price {
    justify-content: flex-start;
  }

  .rent-extension-choice .tariff-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rent-extension-choice .tariff-card__price {
    justify-self: flex-start;
  }

  .overdue-payment-success-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .overdue-payment-success-card__stats {
    grid-template-columns: 1fr;
  }

  .overdue-payment-success-card__title {
    max-width: none;
    font-size: 28px;
    line-height: 32px;
  }
}

@media (max-height: 780px) {
  .screen.start-screen {
    gap: 12px;
  }

  .start-hero {
    padding: 16px;
    border-radius: 20px;
    gap: 8px;
  }

  .start-hero__title {
    font-size: 24px;
    line-height: 30px;
  }

  .start-hero__text {
    font-size: 14px;
    line-height: 20px;
  }

  .start-highlights {
    gap: 10px;
  }

  .start-highlight {
    min-height: 118px;
    padding: 14px;
    gap: 8px;
  }

  .start-highlight__value {
    font-size: 24px;
    line-height: 30px;
  }

  .start-highlight__label {
    font-size: 13px;
    line-height: 18px;
  }

  .start-links {
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .screen.start-screen .stack {
    gap: 10px;
  }

  .screen.start-screen .button {
    min-height: 48px;
  }
}

@media (max-height: 760px) {
  .topbar {
    --topbar-safe-offset: max(calc(var(--safe-top) + 6px), 16px);
    min-height: calc(50px + var(--topbar-safe-offset));
    padding-bottom: 8px;
  }

  .screen {
    padding-top: 16px;
    padding-bottom: calc(104px + var(--footer-safe-bottom));
  }

  .rent-area-screen,
  .rent-storage-screen,
  .rent-tariff-screen,
  .rent-customer-screen,
  .rent-passport-screen,
  .rent-review-screen,
  .draft-recovery-screen {
    padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
    scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
  }

  .phone-frame__footer {
    padding-top: 16px;
    padding-bottom: calc(var(--footer-safe-bottom) + 18px);
  }

  .screen__sticky {
    padding-top: 10px;
  }

  .welcome-brand-card {
    padding: 18px 18px 16px;
    gap: 12px;
  }

  .welcome-brand-card__title {
    font-size: 28px;
    line-height: 30px;
  }
}

.tariff-card__content {
  min-width: 0;
}

.rental-selection-toolbar {
  display: flex;
  justify-content: flex-end;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(233, 179, 48, 0.14);
  color: var(--ink-800);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.radio-pill input {
  margin: 0;
  accent-color: var(--amber-500);
}

.radio-pill input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(233, 179, 48, 0.82);
  background: #ffffff;
  display: inline-grid;
  place-items: center;
}

.radio-pill input[type="checkbox"]:checked {
  background: var(--amber-500);
  border-color: var(--amber-500);
  box-shadow: inset 0 0 0 3px #ffffff;
}

@media (max-width: 360px) {
  .activated-card__row,
  .replacement-card__facts,
  .replacement-screen__secondary-actions {
    grid-template-columns: 1fr;
  }
}

.metro-badge {
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--metro-color, var(--gray-500));
}

.warehouse-map-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background:
    radial-gradient(circle at top right, rgba(246, 198, 77, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 12px;
}

.rent-storage-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 18px;
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
}

.rent-area-screen {
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 30px);
}

.rent-tariff-screen {
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 96px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 96px);
}

.screen.rent-tariff-screen.screen--with-footer.screen--no-nav {
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 144px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 144px);
}

.screen.rent-area-screen.screen--with-footer.screen--no-nav {
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 144px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 144px);
}

.screen.rent-area-screen.screen--with-footer + .phone-frame__footer,
.screen.rent-storage-screen.screen--with-footer + .phone-frame__footer,
.screen.rent-tariff-screen.screen--with-footer + .phone-frame__footer,
.screen.rent-customer-screen.screen--with-footer + .phone-frame__footer,
.screen.rent-passport-screen.screen--with-footer + .phone-frame__footer,
.screen.rent-review-screen.screen--with-footer + .phone-frame__footer,
.screen.draft-recovery-screen.screen--with-footer + .phone-frame__footer {
  padding-top: 10px;
}

.rent-storage-screen .screen__header {
  display: none;
}

.rent-storage-screen .context-card,
.rent-storage-screen .warehouse-map-card {
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.storage-type-card .context-card__text {
  line-height: 22px;
}

.warehouse-map-link-card {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.warehouse-map-link-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber-600);
  background: linear-gradient(180deg, rgba(252, 216, 115, 0.24) 0%, rgba(252, 216, 115, 0.08) 100%);
}

.warehouse-map-link-card__body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.warehouse-map-link-card__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.warehouse-map-link-card__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.warehouse-map-link-card__side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.warehouse-map-link-card__arrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
}

.warehouse-map-card__head,
.warehouse-map-card__selected-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.warehouse-map-card__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.warehouse-map-card__text,
.warehouse-map-card__selected-address,
.warehouse-site-card__address {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.warehouse-map-card__chip {
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--ink-900);
  background: rgba(252, 216, 115, 0.28);
}

.warehouse-map {
  position: relative;
  height: 196px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background:
    radial-gradient(circle at 20% 20%, rgba(148, 163, 184, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.warehouse-map-card--solo {
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.warehouse-map--solo {
  height: clamp(360px, 62vh, 620px);
}

.map-section {
  width: 100%;
  position: relative;
}

.map-embed {
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
  border: 1px solid rgba(203, 213, 225, 0.78);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 55vh, 560px);
  border: 0;
}

.map-open-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.warehouse-map-widget {
  display: grid;
  gap: 12px;
}

.map-fullscreen-toggle,
.map-fullscreen-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.map-fullscreen-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.map-fullscreen-close {
  display: none;
}

body.map-fullscreen-active {
  overflow: hidden;
}

.map-section--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #ffffff;
  border-radius: 0;
  padding: calc(var(--safe-top) + 8px) 12px calc(var(--safe-bottom) + 12px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.map-section--fullscreen .map-fullscreen-toggle {
  display: none;
}

.map-section--fullscreen .map-fullscreen-close {
  display: inline-flex;
  position: absolute;
  top: calc(var(--safe-top) + 8px);
  right: 12px;
  z-index: 5;
}

.map-section--fullscreen .warehouse-map {
  height: calc(100dvh - (var(--safe-top) + var(--safe-bottom) + 40px)) !important;
}

.map-section--fullscreen .map-embed {
  height: calc(100dvh - (var(--safe-top) + var(--safe-bottom) + 40px));
}

.map-section--fullscreen .map-embed iframe {
  height: 100% !important;
  max-height: none;
}

.warehouse-map-widget.warehouse-map--solo .map-embed iframe {
  height: clamp(360px, 62vh, 620px);
}

.warehouse-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.warehouse-map__water {
  position: absolute;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(0.4px);
  border-radius: 999px;
}

.warehouse-map__water--north {
  width: 186px;
  height: 24px;
  left: -14px;
  top: 52px;
  transform: rotate(-12deg);
}

.warehouse-map__water--south {
  width: 172px;
  height: 22px;
  right: -18px;
  bottom: 32px;
  transform: rotate(16deg);
}

.warehouse-map__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--gray-500);
}

.warehouse-map__pin {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--metro-color, var(--amber-500));
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.warehouse-map__pin.is-active {
  box-shadow: 0 0 0 5px rgba(252, 216, 115, 0.32), 0 6px 14px rgba(15, 23, 42, 0.18);
}

.warehouse-map__pin-core {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  background: var(--metro-color, var(--amber-500));
  transform: scale(0.38);
}

.warehouse-map-card__selected {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(203, 213, 225, 0.72);
}

.warehouse-map-card__selected-metro,
.warehouse-site-card__metro {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.warehouse-map-card__selected-metro,
.warehouse-site-card__metro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.warehouse-map-card__selected-distance,
.warehouse-site-card__distance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ink-700);
}

.rent-storage-map-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rent-storage-map-screen .warehouse-map-card {
  margin-top: 2px;
}


.warehouse-site-section {
  display: grid;
  gap: 16px;
}

.warehouse-picker {
  display: grid;
  grid-template-areas:
    "map"
    "list";
  gap: 14px;
  min-height: 0;
}

.warehouse-picker__map-column {
  grid-area: map;
  min-height: 0;
}

.warehouse-picker--rent .warehouse-picker__map-column,
.warehouse-picker--location .warehouse-picker__map-column {
  display: block !important;
}

.location-screen {
  padding-bottom: calc(24px + var(--footer-safe-bottom));
  scroll-padding-bottom: calc(24px + var(--footer-safe-bottom));
}

.location-screen.screen--with-footer {
  padding-bottom: calc(var(--screen-footer-offset, 120px) + 32px);
  scroll-padding-bottom: calc(var(--screen-footer-offset, 120px) + 32px);
}

.warehouse-picker__list-column {
  grid-area: list;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.warehouse-picker__list-column .warehouse-site-section__head {
  padding-inline: 2px;
}

.warehouse-picker__list-column .warehouse-site-list {
  max-height: min(48dvh, 460px);
  padding-bottom: 132px;
  scroll-padding-bottom: 132px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.rent-storage-screen .warehouse-picker {
  flex: 0 0 auto;
  min-height: 0;
  align-content: start;
}

.screen.rent-storage-screen {
  overflow-y: auto;
}

.rent-storage-screen .warehouse-picker__map-column {
  display: block !important;
}

.rent-storage-screen .warehouse-picker__list-column {
  min-height: 0;
}

.rent-storage-screen .warehouse-picker__list-column .warehouse-site-list {
  height: min(52dvh, 520px);
  max-height: min(52dvh, 520px);
  min-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.warehouse-picker__map-column .warehouse-map-card {
  padding: 14px;
}

.warehouse-picker__map-column .map-embed iframe {
  height: clamp(220px, 34dvh, 340px);
}

.warehouse-site-section__head {
  display: grid;
  gap: 6px;
  padding-inline: 2px;
}

.warehouse-site-section__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: var(--ink-900);
}

.warehouse-site-section__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.warehouse-site-list {
  display: grid;
  gap: 14px;
  align-content: start;
  max-height: min(48dvh, 460px);
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 132px;
  scroll-padding-bottom: 132px;
  overscroll-behavior: contain;
}

.warehouse-site-list--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.warehouse-site-list--compact .warehouse-site-card {
  width: 100%;
}

@media (max-width: 360px) {
  .warehouse-site-list--compact {
    grid-template-columns: 1fr;
  }
}

.warehouse-site-list::-webkit-scrollbar {
  width: 6px;
}

.warehouse-site-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.warehouse-site-list::-webkit-scrollbar-track {
  background: transparent;
}

.warehouse-site-card {
  text-align: left;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background: #ffffff;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.warehouse-site-card.is-selected {
  border-color: rgba(233, 179, 48, 0.74);
  background: rgba(252, 216, 115, 0.12);
  box-shadow: var(--shadow-xs);
}

.warehouse-site-card__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.warehouse-site-card__action {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--ink-800);
  padding-top: 2px;
}

@media (min-width: 1024px) {
  .warehouse-picker {
    grid-template-areas: "list map";
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .warehouse-picker__list-column .warehouse-site-list {
    max-height: min(62vh, 620px);
    padding-bottom: 16px;
    scroll-padding-bottom: 16px;
  }

  .warehouse-picker__map-column .map-embed iframe {
    height: clamp(360px, 62vh, 620px);
  }
}

.empty-state {
  padding: 32px 20px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.76);
}

.empty-state__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--amber-600);
  background: rgba(233, 179, 48, 0.12);
}

.empty-state__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.empty-state__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.details-block {
  border-top: 1px solid rgba(226, 232, 240, 0.68);
  padding-top: 12px;
}

.details-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.details-block summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink-900);
}

.details-block summary::after {
  content: "›";
  color: var(--gray-500);
  font-size: 24px;
  line-height: 1;
  transition: transform var(--transition-base);
}

.details-block[open] summary::after {
  transform: rotate(90deg);
}

.details-block summary::-webkit-details-marker {
  display: none;
}

.details-block__content {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.link-list {
  display: grid;
}

.link-row,
.notification-card__body {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.68);
  font-size: 15px;
  line-height: 20px;
  color: var(--ink-800);
}

.link-row:last-child,
.notification-card:last-child .notification-card__body {
  border-bottom: 0;
}

.link-row__main,
.link-row__icon,
.link-row__arrow {
  display: inline-flex;
  align-items: center;
}

.link-row__main {
  gap: 10px;
}

.link-row__icon {
  width: 32px;
  height: 32px;
  justify-content: center;
  border-radius: 12px;
  color: var(--ink-800);
  background: rgba(233, 179, 48, 0.12);
}

.link-row__arrow {
  color: var(--gray-500);
}

.link-inline {
  display: inline;
  color: var(--amber-600);
}

.mini-card {
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.inline-status {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--ink-700);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.inline-status--success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.banner {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0;
}

.banner--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.banner--error {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.24);
}

.banner__title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.passport-upload-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.passport-upload-card #passport-preview {
  display: grid;
  gap: 12px;
}

.passport-upload-card #passport-preview:empty {
  display: none;
}

.upload-zone {
  width: 100%;
  min-height: 0;
  padding: 32px 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 20px;
  text-align: center;
  border-radius: 28px;
  border: 1px dashed rgba(233, 179, 48, 0.58);
  background:
    radial-gradient(circle at top center, rgba(252, 216, 115, 0.22), transparent 38%),
    linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
}

.upload-zone.is-hidden {
  display: none;
}

.upload-zone:hover {
  border-color: rgba(233, 179, 48, 0.82);
  box-shadow: 0 10px 28px rgba(233, 179, 48, 0.1);
}

.upload-zone__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(252, 216, 115, 0.3) 0%, rgba(252, 216, 115, 0.12) 100%);
  color: var(--amber-700);
}

.upload-zone__content {
  display: grid;
  gap: 12px;
}

.upload-zone__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink-900);
}

.upload-zone__text {
  max-width: 24ch;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-600);
  text-wrap: pretty;
}

.upload-zone__meta {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(233, 179, 48, 0.22);
}

.passport-file-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  padding-right: 56px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: #ffffff;
}

.passport-file-card__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
  color: var(--ink-700);
}

.passport-file-card__thumb {
  width: 88px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(233, 179, 48, 0.18);
  background: linear-gradient(180deg, rgba(252, 216, 115, 0.24) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.passport-file-card__thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-700);
}

.passport-file-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.passport-file-card__body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.passport-file-card__eyebrow {
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.passport-file-card .mini-card__title {
  font-size: 17px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.passport-file-card .mini-card__text {
  font-size: 14px;
  line-height: 20px;
}

.otp-inline {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.otp-inline[hidden] {
  display: none !important;
}

.otp-verify-screen .screen__title {
  display: none;
}

.otp-verify-screen .context-card {
  margin-bottom: 14px;
}

.context-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 12px;
}

.context-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.context-card__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(233, 179, 48, 0.12);
  color: var(--amber-600);
}

.context-card__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink-900);
}

.context-card__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.otp-inline {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(203, 213, 225, 0.4);
  border-top-color: var(--amber-500);
  animation: spin 0.9s linear infinite;
}

.notifications-screen {
  display: grid;
  gap: 16px;
}

.notifications-screen__intro {
  margin: 0 auto;
  max-width: 30ch;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--ink-600);
}

.notifications-screen__list {
  display: grid;
  gap: 12px;
}

.notification-card {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    max-height 0.22s ease,
    margin 0.22s ease,
    padding 0.22s ease;
  transform-origin: top center;
  max-height: 220px;
  overflow: hidden;
}

.notification-card--removing {
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.notification-card__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: #ffffff;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.notification-card__delete:hover {
  color: var(--ink-800);
  border-color: rgba(233, 179, 48, 0.42);
  background: rgba(252, 216, 115, 0.18);
}

.notification-card.is-unread {
  border-color: rgba(233, 179, 48, 0.38);
  background: rgba(252, 216, 115, 0.1);
}

.notification-card__body {
  width: 100%;
  padding: 0;
  padding-right: 34px;
  border-bottom: 0;
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: default;
}

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

.notification-card__title-row {
  display: grid;
  gap: 8px;
}

.notification-card__badge {
  min-height: 24px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--ink-900);
  background: rgba(252, 216, 115, 0.5);
}

.bottom-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px var(--screen-pad-right) calc(12px + var(--safe-bottom)) var(--screen-pad-left);
  border-top: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  z-index: 3;
}

.bottom-nav__item {
  min-height: 58px;
  border-radius: 18px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  font-size: 11px;
  line-height: 12px;
  color: var(--gray-500);
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.bottom-nav__item:hover {
  transform: translateY(-1px);
}

.bottom-nav__item.is-active {
  color: #000;
  background: rgba(244, 188, 37, 0.14);
}

.bottom-nav__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__label {
  font-size: 11px;
  line-height: 12px;
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
}

.pill.is-active {
  background: rgba(233, 179, 48, 0.16);
  color: var(--amber-600);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  width: min(calc(100vw - 32px), 380px);
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  z-index: 25;
  cursor: pointer;
}

.toast--top {
  bottom: auto;
  top: max(12px, calc(env(safe-area-inset-top) + 8px));
}

.toast--info {
  background: rgba(37, 99, 235, 0.96);
  color: #fff;
}

.toast--success {
  background: rgba(22, 163, 74, 0.96);
  color: #fff;
}

.toast--error {
  background: rgba(220, 38, 38, 0.96);
  color: #fff;
}

.toast--outline.toast--error {
  background: rgba(185, 28, 28, 0.98);
  border: 2px solid #ef4444;
  color: #fff;
}

.global-status-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.global-status-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.global-status-overlay__loader {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.global-status-overlay--loading .global-status-overlay__backdrop {
  background: #ffffff;
  backdrop-filter: none;
}

.global-status-overlay__card {
  position: relative;
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px 20px 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.global-status-overlay__card--loading {
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.global-status-overlay__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--info);
  background: rgba(37, 99, 235, 0.1);
}

.global-status-overlay__icon--error {
  color: var(--error);
  background: rgba(220, 38, 38, 0.1);
}

.global-status-overlay__title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.global-status-overlay__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700);
}

.global-status-overlay__actions {
  width: 100%;
}

.global-status-overlay__spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(37, 99, 235, 0.16);
  border-top-color: var(--info);
  animation: global-status-spin 0.9s linear infinite;
}

.global-status-overlay__spinner--accent {
  border-color: rgba(214, 158, 46, 0.24);
  border-top-color: var(--brand);
}

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

.app-shell--home-dashboard {
  height: 100%;
  min-height: 100%;
  padding: 0;
  background: #ffffff;
}

.phone-frame--home-dashboard {
  width: min(100%, 390px);
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.home-dashboard {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #fff;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(52px, calc(var(--safe-top) + 38px)) var(--screen-pad-right) calc(24px + var(--safe-bottom)) var(--screen-pad-left);
  display: grid;
  align-content: start;
  gap: 12px;
}

.home-dashboard--scrollable {
  overflow-y: auto;
  gap: 16px;
}

.boxes-dashboard {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(60px, calc(var(--safe-top) + 46px)) var(--screen-pad-right) calc(24px + var(--safe-bottom)) var(--screen-pad-left);
  display: grid;
  align-content: start;
  gap: 16px;
}

.support-dashboard {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #fff;
  overflow: hidden;
  padding: max(20px, calc(var(--safe-top) + 8px)) var(--screen-pad-right) calc(18px + var(--safe-bottom)) var(--screen-pad-left);
  display: grid;
  align-content: start;
  gap: 12px;
}

.support-dashboard .home-dashboard__masthead {
  margin-bottom: 4px;
}

.support-dashboard--guest .home-dashboard__bell {
  display: none;
}

.support-dashboard__overview {
  padding: 16px;
  gap: 10px;
}

.support-dashboard__overview .dashboard-overview-card__title {
  font-size: 22px;
  line-height: 28px;
}

.support-dashboard__stats .dashboard-overview-card__stat {
  min-height: 74px;
  padding: 12px;
}

.support-dashboard__stats .dashboard-overview-card__stat-value {
  font-size: 18px;
  line-height: 22px;
}

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

.support-dashboard__links {
  display: grid;
  gap: 10px;
}

.support-tile {
  min-height: 138px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-xs);
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--ink-900);
}

.support-tile--button {
  width: 100%;
  text-align: left;
}

.support-tile__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--amber-600);
  background: rgba(233, 179, 48, 0.12);
}

.support-tile__title {
  font-size: 19px;
  line-height: 22px;
  font-weight: 700;
}

.support-tile__text {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-600);
}

.support-tile__action {
  margin-top: auto;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-800);
}

.support-chat-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: calc(var(--app-height) - 240px);
  height: 100%;
  overflow: hidden;
}

.support-chat-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.support-chat-messages {
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 2px;
  padding-bottom: 4px;
}

.support-chat-empty {
  border: 1px dashed rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
  background: rgba(248, 250, 252, 0.75);
}

.support-chat-message {
  justify-self: end;
  align-self: start;
  width: min(100%, 290px);
  border-radius: 16px;
  border: 1px solid rgba(233, 179, 48, 0.32);
  background: rgba(233, 179, 48, 0.15);
  padding: 10px 12px;
  display: grid;
  gap: 7px;
}

.support-chat-message--admin {
  justify-self: start;
  border-color: rgba(203, 213, 225, 0.95);
  background: #ffffff;
}

.support-chat-message__text {
  font-size: 14px;
  line-height: 19px;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-chat-message__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-600);
}

.support-chat-form {
  display: grid;
  gap: 8px;
}

.support-chat-dock {
  padding-top: 18px;
}

.support-chat-dock::before {
  top: -36px;
  height: 36px;
}

.support-chat-form__input {
  min-height: 44px;
  max-height: 136px;
  resize: none;
  border-radius: 16px;
  overflow-y: hidden;
  line-height: 20px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.draft-recovery-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  min-height: 100%;
  gap: 0;
  padding-bottom: 0;
}

.draft-recovery-screen .screen__header {
  display: none;
}

.draft-recovery-screen__content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.draft-recovery-screen__intro {
  padding-inline: 2px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.draft-recovery-screen__subtitle {
  margin: 0;
  max-width: 28ch;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-600);
  text-align: center;
}

.draft-recovery-card,
.draft-recovery-summary {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: #ffffff;
  box-shadow: none;
}

.draft-recovery-card {
  display: grid;
  gap: 8px;
}

.draft-recovery-card__eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.draft-recovery-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-700);
}

.draft-recovery-summary .summary-row {
  padding: 12px 0;
}

.draft-recovery-screen .screen__footer {
  margin-top: auto;
  padding-top: 16px;
}

.draft-recovery-screen__actions {
  display: grid;
  gap: 10px;
}

.draft-recovery-screen__actions .button {
  min-height: 48px;
  justify-content: center;
}

.support-faq {
  padding: 16px;
  border-radius: 22px;
  display: grid;
  gap: 12px;
}

.support-faq-screen {
  flex: 1;
  min-height: 0;
  padding: max(14px, calc(var(--safe-top) + 4px)) var(--screen-pad-right) calc(120px + var(--safe-bottom)) var(--screen-pad-left);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 12px;
}

.support-faq-screen__overview {
  padding: 16px;
  gap: 8px;
}

.support-faq-screen__overview .dashboard-overview-card__title {
  font-size: 22px;
  line-height: 28px;
}

.support-faq--page {
  padding: 14px;
  gap: 10px;
}

.support-faq__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.support-faq__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink-900);
}

.support-faq__caption {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--gray-500);
}

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

.support-faq__option {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: #fff;
  display: grid;
  align-content: center;
  text-align: left;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-700);
}

.support-faq__option.is-active {
  border-color: rgba(233, 179, 48, 0.42);
  background: rgba(252, 216, 115, 0.14);
  color: var(--ink-900);
}

.support-faq__answer {
  min-height: 114px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  align-content: start;
  gap: 8px;
}

.support-faq__question {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: var(--ink-900);
}

.support-faq__text {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.phone-frame--home-dashboard .bottom-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  border-color: rgba(203, 213, 225, 0.9);
}

.home-dashboard__masthead {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.home-dashboard__masthead-spacer {
  width: 40px;
  height: 40px;
}

.home-dashboard__logo-slot {
  justify-self: center;
  width: min(136px, 100%);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-dashboard__logo-image {
  display: block;
  width: 100%;
  max-width: 118px;
  height: auto;
}

.home-dashboard__bell {
  justify-self: end;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-dashboard__bell:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.home-dashboard__bell:active {
  transform: none;
}

.home-dashboard__bell .ui-icon {
  width: 28px;
  height: 28px;
}

.boxes-dashboard__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.boxes-dashboard__masthead-title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  text-align: left;
}

.boxes-dashboard__list {
  display: grid;
  gap: 14px;
}

.boxes-dashboard__actions {
  display: grid;
  gap: 10px;
}

.dashboard-overview-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background:
    radial-gradient(circle at top right, rgba(246, 198, 77, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.dashboard-overview-card__eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.dashboard-overview-card__title {
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.dashboard-overview-card__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.dashboard-overview-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-overview-card__stat {
  min-height: 84px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  align-content: start;
  gap: 6px;
}

.dashboard-overview-card__stat-value {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: var(--ink-900);
}

.dashboard-overview-card__stat-label {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.dashboard-overview-card__notice {
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  background: rgba(233, 179, 48, 0.12);
  color: var(--ink-800);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.dashboard-overview-card__notice--danger {
  align-items: flex-start;
  white-space: normal;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

.dashboard-overview-card__notice--danger .ui-icon {
  color: #dc2626;
}

.dashboard-overview-card__notice .ui-icon {
  flex-shrink: 0;
}

.dashboard-overview-card__notice span,
.dashboard-overview-card__title,
.dashboard-overview-card__text,
.dashboard-overview-card__stat,
.rental-list-card,
.quick-link-card,
.home-dashboard__actions > * {
  min-width: 0;
}

.dashboard-section {
  display: grid;
  gap: 12px;
}

.dashboard-section__head {
  display: grid;
  gap: 4px;
}

.dashboard-section__title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.dashboard-section__caption {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.rental-summary-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.rental-summary-card--emphasis {
  border-color: rgba(233, 179, 48, 0.38);
}

.rental-summary-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rental-summary-card__caption {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--gray-500);
  text-align: right;
}

.rental-summary-card__title {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.rental-summary-card__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.rental-summary-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rental-summary-card__metric {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.74);
}

.rental-summary-card__metric-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--ink-800);
  background: rgba(233, 179, 48, 0.12);
}

.rental-summary-card__metric-value {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
  color: var(--ink-900);
}

.rental-summary-card__meta {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-700);
}

.rental-summary-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rental-summary-card__pills {
  margin-top: -2px;
}

.rental-summary-card__footer {
  display: grid;
  gap: 10px;
}

.rental-list {
  display: grid;
  gap: 10px;
}

.rental-list-card {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: #fff;
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 10px;
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-base), box-shadow var(--transition-base);
}

.rental-list-card:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 179, 48, 0.4);
  box-shadow: var(--shadow-sm);
}

.rental-list-card.is-history {
  background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
}

.rental-list-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rental-list-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.rental-list-card__title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.rental-list-card__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700);
}

.rental-list-card__meta {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.rental-list-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.boxes-selector {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(164px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 2px;
}

.boxes-selector__item {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 4px;
  text-align: left;
}

.boxes-selector__item.is-active {
  border-color: rgba(233, 179, 48, 0.42);
  background: rgba(252, 216, 115, 0.14);
}

.boxes-selector__name {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ink-900);
}

.boxes-selector__meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-600);
}

.box-detail {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(24px, calc(var(--safe-top) + 10px)) var(--screen-pad-right) calc(28px + var(--safe-bottom)) var(--screen-pad-left);
  display: grid;
  align-content: start;
  gap: 14px;
}

.box-detail--modal-open {
  overflow: hidden;
}

.box-detail__masthead {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}

.box-detail__masthead-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-align: center;
}

.box-detail__hero {
  margin-top: 2px;
}

.box-detail__section {
  border-radius: 22px;
}

.box-detail__section-title {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink-900);
}

.box-detail__section-title--centered {
  text-align: center;
}

.box-detail__subsection-title {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.box-detail__actions {
  display: grid;
  gap: 10px;
}

.box-detail--modal-open {
  overflow: hidden;
}

.payment-history {
  display: grid;
  gap: 10px;
}

.payment-history__item {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 10px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base),
    transform var(--transition-fast), background var(--transition-base);
}

.payment-history__item:hover {
  border-color: rgba(233, 179, 48, 0.34);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.payment-history__item:active {
  transform: translateY(1px);
}

.payment-history__item.is-active {
  border-color: rgba(233, 179, 48, 0.42);
  background: linear-gradient(180deg, #fffef7 0%, #fffaf0 100%);
  box-shadow: 0 18px 32px rgba(233, 179, 48, 0.12);
}

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

.payment-history__head-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payment-history__amount-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.payment-history__head-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.payment-history__period {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-900);
}

.payment-history__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-500);
}

.payment-history__amount-wrap {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.payment-history__amount {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-align: right;
  color: var(--ink-900);
  white-space: nowrap;
}

.payment-history__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-500);
}

.payment-history__arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.payment-history__arrow {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  background: rgba(241, 245, 249, 0.92);
}

.payment-history__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-600);
}

.payment-history__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.payment-popup {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
}

.payment-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.payment-popup__sheet {
  position: relative;
  margin-top: 72px;
  max-height: calc(100% - 48px);
  overflow-y: auto;
  padding: 12px 16px calc(18px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: #ffffff;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 12px;
}

.payment-popup__handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  justify-self: center;
  background: var(--gray-300);
}

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

.payment-popup__lead {
  display: grid;
  gap: 8px;
}

.payment-popup__eyebrow,
.payment-popup__section-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.payment-popup__title {
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}

.payment-popup__caption {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.payment-popup__status {
  width: fit-content;
}

.payment-popup__card {
  border-radius: 22px;
  display: grid;
  gap: 8px;
}

.payment-popup__receipt {
  gap: 12px;
}

.payment-popup__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700);
}

.payment-popup {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
}

.payment-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
}

.payment-popup__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100% - 28px);
  overflow-y: auto;
  padding: 12px 16px calc(24px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 -24px 48px rgba(15, 23, 42, 0.18);
  display: grid;
  align-content: start;
  gap: 12px;
}

.payment-popup__handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.payment-popup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payment-popup__lead {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.payment-popup__eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.payment-popup__title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.payment-popup__caption {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.payment-popup__status {
  justify-self: start;
}

.payment-popup__card {
  border-radius: 22px;
}

.payment-popup__section-title {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: var(--ink-900);
}

.payment-popup__text {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.payment-popup__receipt .button {
  width: 100%;
}

.boxes-card {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.boxes-card__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.boxes-card__code {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--gray-500);
}

.boxes-card__title {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

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

.boxes-card__metric {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(203, 213, 225, 0.72);
}

.boxes-card__metric-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.88);
}

.boxes-card__metric-value {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
  color: var(--ink-900);
}

.boxes-card__meta {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-700);
}

.boxes-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.boxes-card__date {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--gray-500);
}

.boxes-card__actions {
  display: grid;
  gap: 8px;
}

.home-dashboard__intro {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.home-dashboard__eyebrow,
.home-dashboard__section-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.home-dashboard__title {
  margin: 0;
  color: var(--ink-900);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}

.home-dashboard__quick-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: center;
}

.home-dashboard__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-600);
}

.home-dashboard__hero,
.home-dashboard__payment {
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-sm);
}

.home-dashboard__payment--overdue {
  border-color: rgba(220, 38, 38, 0.18);
  background: linear-gradient(180deg, #fff8f8 0%, #fff1f2 100%);
}

.home-dashboard__hero {
  background:
    radial-gradient(circle at top right, rgba(246, 198, 77, 0.18), transparent 38%),
    linear-gradient(180deg, #232834 0%, #161b24 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 14px;
}

.home-dashboard__hero--overdue {
  border-color: rgba(220, 38, 38, 0.32);
  background:
    radial-gradient(circle at top right, rgba(253, 186, 116, 0.2), transparent 40%),
    linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  box-shadow: 0 18px 36px rgba(127, 29, 29, 0.28);
}

.home-dashboard__hero--overdue .home-dashboard__status,
.home-dashboard__hero--overdue .home-dashboard__hero-meta {
  color: rgba(255, 241, 242, 0.92);
}

.home-dashboard__hero--overdue .home-dashboard__metric {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.home-dashboard__hero--overdue .home-dashboard__metric-icon {
  background: rgba(255, 255, 255, 0.14);
}

.home-dashboard__hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.home-dashboard__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
}

.home-dashboard__help {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-dashboard__box-title {
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  width: 100%;
  text-align: center;
}

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

.home-dashboard__metric {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-dashboard__metric-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.home-dashboard__metric-value {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.home-dashboard__hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  font-size: 11px;
  line-height: 15px;
  color: rgba(255, 255, 255, 0.76);
}

.home-dashboard__hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.home-dashboard__payment {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.home-dashboard__payment-head {
  display: grid;
  gap: 10px;
}

.home-dashboard__payment-head > div {
  text-align: center;
}

.home-dashboard__payment--overdue .home-dashboard__payment-head > div {
  text-align: left;
}

.home-dashboard__payment-title {
  margin-top: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink-900);
}

.home-dashboard__payment-subtitle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700);
}

.home-dashboard__payment-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.home-dashboard__payment-badge {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: stretch;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-700);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(203, 213, 225, 0.72);
}

.home-dashboard__payment-badge--overdue {
  color: #b42318;
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.14);
}

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

.home-dashboard__debt-item {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(220, 38, 38, 0.08);
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 6px;
}

.home-dashboard__debt-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-500);
}

.home-dashboard__debt-value {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink-900);
}

.home-dashboard__debt-value--total {
  font-size: 24px;
  line-height: 28px;
  color: var(--error);
}

.home-dashboard__progress {
  display: grid;
  gap: 8px;
}

.home-dashboard__progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-200);
}

.home-dashboard__progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-400) 0%, var(--amber-500) 100%);
}

.home-dashboard__progress-fill--overdue {
  background: linear-gradient(90deg, #f97316 0%, #dc2626 100%);
}

.home-dashboard__progress-caption {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-600);
}

.home-dashboard__actions {
  display: grid;
  gap: 8px;
}

.home-dashboard__quick {
  display: grid;
  margin-top: 18px;
  gap: 12px;
}

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

.quick-link-card {
  text-align: left;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-xs);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  column-gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-base), box-shadow var(--transition-base);
}

.quick-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 179, 48, 0.4);
  box-shadow: var(--shadow-sm);
}

.quick-link-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--ink-900);
  background: rgba(233, 179, 48, 0.12);
}

.quick-link-card__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.quick-link-card__title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-900);
}

.quick-link-card__text {
  max-width: none;
  font-size: 13px;
  line-height: 17px;
  color: var(--ink-600);
}

.quick-link-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.doc-card {
  display: grid;
  gap: 14px;
}

.docs-screen--document {
  gap: 24px;
}

.docs-screen--document .doc-card {
  gap: 22px;
  padding: 24px 20px;
}

.docs-screen--document .doc-card__paragraph {
  font-size: 15px;
  line-height: 24px;
}

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

@media (max-height: 780px) {
  .welcome-brand-card {
    padding: 16px;
    gap: 10px;
  }

  .welcome-brand-card__title {
    font-size: 25px;
    line-height: 29px;
  }

  .welcome-brand-card__slogan {
    font-size: 15px;
    line-height: 19px;
  }

  .welcome-brand-card__text {
    font-size: 14px;
    line-height: 20px;
  }

  .welcome-benefit {
    padding: 12px;
    gap: 10px;
  }

  .install-panel {
    padding: 16px;
    gap: 10px;
  }

  .install-panel__title {
    font-size: 24px;
    line-height: 30px;
  }

  .install-panel__text {
    font-size: 14px;
    line-height: 20px;
  }

  .install-step {
    font-size: 14px;
    line-height: 20px;
    gap: 10px;
  }

  .install-screen .screen__footer {
    padding-top: 8px;
  }
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: 0;
  }

  .phone-frame {
    min-height: 100%;
  }

.phone-frame--home-dashboard {
  min-height: 100%;
}
}

.debug-panel {
  gap: 12px;
  margin-top: 16px;
}

.debug-fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--footer-h, 0px) + 18px);
  z-index: 35;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 32, 62, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(17, 32, 62, 0.12);
  backdrop-filter: blur(12px);
}

.debug-fab--active {
  background: var(--accent);
  border-color: rgba(240, 180, 32, 0.42);
}

.debug-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.debug-panel__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.debug-panel__copy {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
}

.debug-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.debug-panel--global {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--footer-h, 0px) + 68px);
  z-index: 34;
  margin-bottom: 0;
  display: none;
  max-height: min(48vh, 420px);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 32, 62, 0.18);
}

.debug-panel--open {
  display: grid;
}

.debug-panel__log {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.otp-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
}

.otp-exit-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(4px);
}

.otp-exit-modal__sheet {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 12px 16px calc(18px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
}

.otp-exit-modal__handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.otp-exit-modal__title {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.otp-exit-modal__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.otp-exit-modal__actions {
  display: grid;
  gap: 10px;
}

@supports (height: 100dvh) {
  :root {
    --app-height: 100dvh;
  }
}
