/* ==========================================================================
   Резерв+ PWA — Pixel-Perfect Web Clone Stylesheet
   Based on Android colors.xml and iOS SwiftUI layout specs
   Font: e-Ukraine (Light / Regular / Medium / Bold)
   ========================================================================== */

/* --------------------------------------------------------------------------
   @font-face — e-Ukraine family
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'e-Ukraine';
  src: url('./fonts/e_ukraine_light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'e-Ukraine';
  src: url('./fonts/e_ukraine_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'e-Ukraine';
  src: url('./fonts/e_ukraine_medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'e-Ukraine';
  src: url('./fonts/e_ukraine_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties — Palette from Android colors.xml
   -------------------------------------------------------------------------- */
:root {
  --color-olive: #23221E;
  --color-background: #E1DFCC;
  --color-card-background: #FFFFFF;
  --color-accent-green: #4C6B3A;
  --color-warning-orange: #FF8F00;
  --color-error-red: #FF5722;
  --color-text-secondary: #6B6B60;
  --color-separator: #D5D3C1;
  --color-badge-blue: #1A73E8;
  --color-document-surface: #D5D3BE;
  --color-document-border: rgba(0, 0, 0, 0.3);
  --color-ticker-brown: #705020;
  --color-ticker-updating: #FAEA64;
  --color-info-outline: #959485;
  --color-tab-surface: #F9F9ED;
  --color-tab-selection: #E5E5D8;
  --color-photo-surface: rgba(255, 255, 255, 0.82);
  --color-ink: #000000;

  /* Typography scale (from ReserveTypography.swift) */
  --font-family: 'e-Ukraine', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-large-title: 34px;
  --font-title: 28px;
  --font-title2: 22px;
  --font-title3: 20px;
  --font-headline: 17px;
  --font-body: 17px;
  --font-callout: 16px;
  --font-subheadline: 15px;
  --font-footnote: 13px;
  --font-caption: 12px;
  --font-caption2: 11px;

  /* Radii */
  --radius-card: 16px;
  --radius-document: 8px;
  --radius-button: 9999px;
  --radius-modal: 24px;
  --radius-sheet: 24px;

  /* Safe area insets (overridden by env() where supported) */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Launch splash — shown instantly on load, like a native app's launch screen,
   then fades into whatever initApp() routes to (auth/lock/document).
   -------------------------------------------------------------------------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-olive);
  transition: opacity 0.35s ease-out;
}

#splash svg {
  width: 64px;
  height: 75px;
  flex-shrink: 0;
}

#splash p {
  margin-top: 22px;
  color: var(--color-background);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

#splash.splash--hidden {
  opacity: 0;
  pointer-events: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   App Shell — full viewport, flex column, centered
   -------------------------------------------------------------------------- */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--color-background);
  position: relative;
}

/* Status bar padding at top */
.app-shell::before {
  content: '';
  display: block;
  flex-shrink: 0;
  height: var(--safe-area-top);
}

.app-shell--grouped {
  background-color: #F2F2F7;
}

/* --------------------------------------------------------------------------
   Screen — each screen fills available space
   -------------------------------------------------------------------------- */
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.screen-content {
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   Navigation Header
   -------------------------------------------------------------------------- */
.nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  flex-shrink: 0;
  min-height: 56px;
}

.nav-header__title {
  font-size: 16px;
  font-weight: 400;
  flex: 1;
  text-align: center;
}

.nav-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-tab-surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.nav-back-button svg,
.nav-back-button .chevron-icon {
  width: 10px;
  height: 18px;
  color: var(--color-olive);
}

/* Spacer to balance back button for centered title */
.nav-header__spacer {
  width: 46px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Auth Flow — shared
   -------------------------------------------------------------------------- */
.auth-spacer {
  flex: 1 1 0;
  min-height: 0;
}

.prominent-button {
  width: 100%;
  height: 50px;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--color-olive);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.prominent-button:active:not(:disabled) {
  opacity: 0.8;
}

.prominent-button:disabled {
  background-color: rgba(35, 34, 30, 0.08);
  color: rgba(60, 60, 67, 0.3);
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Auth Flow — Welcome Screen
   -------------------------------------------------------------------------- */
.welcome-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 24px calc(24px + var(--safe-area-bottom));
  background-color: var(--color-background);
  color: #000;
  overflow-y: auto;
}

.welcome-screen__icon {
  display: flex;
  align-items: center;
  height: 52px;
}

.welcome-screen__title {
  font-size: var(--font-large-title);
  font-weight: 700;
  line-height: 43px;
}

.welcome-screen__subtitle {
  font-size: var(--font-title3);
  line-height: 22px;
}

.welcome-screen__steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(60, 60, 67, 0.6);
}

.welcome-screen__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--font-body);
  line-height: 20.6px;
}

.welcome-screen__step-text {
  max-width: 300px;
}

.welcome-screen__step-icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1.8px;
  margin-right: 1.4px;
  border-radius: 50%;
  background-color: rgba(60, 60, 67, 0.6);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.welcome-screen__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  color: #000;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Auth Flow — Bank Picker (stock inset-grouped List)
   -------------------------------------------------------------------------- */
.bank-picker {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 57px 16px 24px;
  background-color: #F2F2F7;
  color: #000;
}

.bank-picker__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 34px;
  padding: 0 0 19px;
}

.bank-picker__section-title {
  font-size: 15px;
  color: rgba(60, 60, 67, 0.6);
  padding: 6px 16px 10px;
}

.bank-picker__list {
  background-color: var(--color-card-background);
  border-radius: 26px;
  overflow: hidden;
}

.bank-picker__list--second {
  margin-top: 35px;
}

.bank-picker__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  width: 100%;
  min-height: 52px;
  text-align: left;
  font-size: var(--font-body);
}

.bank-picker__item + .bank-picker__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 47px;
  right: 15px;
  height: 0.5px;
  background-color: rgba(60, 60, 67, 0.2);
}

.bank-picker__item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-olive);
}

.bank-picker__item-name {
  font-size: var(--font-body);
  color: #000;
}

/* --------------------------------------------------------------------------
   Auth Flow — Redirect Screen
   -------------------------------------------------------------------------- */
.redirect-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 24px calc(24px + var(--safe-area-bottom));
  background-color: var(--color-background);
  text-align: center;
  color: #000;
}

.ios-spinner {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.ios-spinner i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.6px;
  height: 8px;
  margin-left: -1.3px;
  border-radius: 2px;
  background-color: rgba(60, 60, 67, 0.75);
  transform-origin: 50% 15px;
  opacity: 0.15;
  animation: ios-spinner-fade 1s linear infinite;
}

@keyframes ios-spinner-fade {
  0% { opacity: 1; }
  100% { opacity: 0.15; }
}

.redirect-screen__title {
  font-size: var(--font-headline);
  line-height: 22px;
  white-space: pre-line;
}

.redirect-screen__subtitle {
  font-size: var(--font-subheadline);
  line-height: 20px;
  color: rgba(60, 60, 67, 0.6);
}

.redirect-screen__cancel {
  font-size: var(--font-body);
  color: var(--color-olive);
  padding: 8px 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   PIN Screen & Lock Screen
   -------------------------------------------------------------------------- */
.pin-screen,
.lock-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
  background-color: var(--color-background);
  text-align: center;
}

.pin-screen {
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
  gap: 24px;
  padding-bottom: calc(24px + var(--safe-area-bottom));
  color: #000;
}

.pin-screen .pin-dots {
  margin: 0;
}

.pin-screen .numeric-keypad {
  margin-top: 0;
  padding-bottom: 0;
}

.pin-screen__title,
.lock-screen__title {
  font-size: var(--font-title2);
  font-weight: 700;
  margin-bottom: 8px;
}

.pin-screen__title {
  margin-bottom: 0;
  line-height: 28px;
}

/* Lock screen uses larger size: 28px scaled */
.lock-screen__title {
  font-size: 28px;
}

.pin-screen__subtitle {
  font-size: var(--font-subheadline);
  line-height: 18px;
  color: rgba(60, 60, 67, 0.6);
}

.pin-screen__error,
.lock-screen__error {
  font-size: var(--font-footnote);
  color: var(--color-error-red);
  margin-top: 8px;
  min-height: 18px;
}

.pin-screen__error {
  margin-top: 0;
  min-height: 0;
  color: #FF3B30;
}

/* PIN Dots */
.pin-dots {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.pin-dots--reference {
  gap: 24px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--color-olive);
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.pin-dot--filled {
  background-color: var(--color-olive);
}

.pin-dot--error {
  border-color: var(--color-error-red);
}

.pin-dot--error.pin-dot--filled {
  background-color: var(--color-error-red);
}

/* Lock screen reference style dots: smaller, no border, white empty */
.pin-dots--reference .pin-dot {
  width: 12px;
  height: 12px;
  border: none;
  background-color: var(--color-card-background);
}

.pin-dots--reference .pin-dot--filled {
  background-color: var(--color-ink);
}

.pin-dots--reference .pin-dot--error {
  background-color: var(--color-card-background);
}

.pin-dots--reference .pin-dot--error.pin-dot--filled {
  background-color: var(--color-error-red);
}

/* Numeric Keypad */
.numeric-keypad {
  --k: 70px;
  display: flex;
  flex-direction: column;
  gap: calc(var(--k) * 16 / 70);
  margin-top: auto;
  padding-bottom: 24px;
}

.numeric-keypad__row {
  display: flex;
  justify-content: center;
  gap: calc(var(--k) * 24 / 70);
}

.numeric-keypad__key {
  width: var(--k);
  height: var(--k);
  border-radius: 50%;
  font-size: calc(var(--k) * 32 / 70);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-card-background);
  color: var(--color-ink);
  user-select: none;
  transition: background-color 0.12s;
}

.numeric-keypad__key:active {
  background-color: var(--color-separator);
}

.numeric-keypad__key--empty {
  background-color: transparent;
  cursor: default;
}

.numeric-keypad__key--delete,
.numeric-keypad__key--biometric {
  background-color: transparent;
}

.numeric-keypad__key--delete:active,
.numeric-keypad__key--biometric:active {
  background-color: transparent;
  opacity: 0.6;
}

.numeric-keypad__key--delete img,
.numeric-keypad__key--biometric img {
  width: calc(var(--k) * 40 / 70);
  height: calc(var(--k) * 30 / 70);
}

/* Lock screen: absolute layout from LockScreenView (fractions of the safe-area box) */
.lock-screen {
  --s: 1;
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  padding: 0;
  margin-bottom: var(--safe-area-bottom);
  color: var(--color-ink);
}

.lock-screen > * {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.lock-screen__title {
  top: 19.3%;
  font-size: calc(28px * var(--s));
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.lock-screen .pin-dots {
  top: 31%;
}

.lock-screen__error {
  top: calc(31% + 30px);
  font-size: 13px;
  min-height: 0;
  white-space: nowrap;
}

.lock-screen .numeric-keypad {
  --k: calc(70px * var(--s));
  top: 64.2%;
  padding-bottom: 0;
}

.lock-screen__forgot {
  top: calc(100% - 40px * var(--s));
  font-size: calc(16px * var(--s));
  color: var(--color-ink);
  min-height: 44px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Biometric Screen
   -------------------------------------------------------------------------- */
.biometric-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  min-height: 100%;
  background-color: var(--color-background);
  text-align: center;
}

.biometric-screen__icon {
  font-size: 56px;
  color: var(--color-olive);
  margin-top: auto;
  margin-bottom: 24px;
}

.biometric-screen__title {
  font-size: var(--font-title2);
  font-weight: 700;
  margin-bottom: 8px;
}

.biometric-screen__subtitle {
  font-size: var(--font-subheadline);
  color: var(--color-text-secondary);
  margin-bottom: auto;
}

.biometric-screen__error {
  font-size: var(--font-footnote);
  color: var(--color-error-red);
  min-height: 18px;
  margin-bottom: 8px;
}

.biometric-screen__enable {
  width: 100%;
  padding: 16px;
  font-size: var(--font-body);
  font-weight: 500;
  color: var(--color-card-background);
  background-color: var(--color-olive);
  border-radius: var(--radius-button);
  margin-bottom: 12px;
}

.biometric-screen__skip {
  font-size: var(--font-body);
  color: var(--color-olive);
  padding: 8px 16px;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Checkbox / Consent Toggle
   -------------------------------------------------------------------------- */
.checkbox-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-toggle__box {
  width: 17px;
  height: 17px;
  margin-top: 0;
  flex-shrink: 0;
  border: 1.5px solid rgba(60, 60, 67, 0.6);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.checkbox-toggle__box--checked {
  background-color: var(--color-olive);
  border-color: var(--color-olive);
}

.checkbox-toggle__box svg {
  width: 15px;
  height: 15px;
}

.checkbox-toggle__label {
  font-size: var(--font-footnote);
  line-height: 15.5px;
}

/* --------------------------------------------------------------------------
   Tab Bar — pill-shaped capsule
   -------------------------------------------------------------------------- */
.tab-bar {
  display: flex;
  align-items: center;
  height: 62px;
  padding: 4px;
  margin: 0 20px;
  background-color: var(--color-tab-surface);
  border-radius: 9999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 8px 18px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.tab-bar-wrapper {
  flex-shrink: 0;
  padding-top: 12px;
  padding-bottom: max(12px, calc(var(--safe-area-bottom) - 12px));
  background-color: var(--color-background);
}

.tab-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  height: 54px;
  border-radius: 9999px;
  position: relative;
  z-index: 1;
  padding: 0 2px;
}

/* First tab (Резерв ID) gets ~22% more width */
.tab-bar__item:first-of-type {
  flex: 1.22 1 0;
}

.tab-bar__item-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-ink);
}

.tab-bar__item--active .tab-bar__item-label {
  font-weight: 600;
}

.tab-bar__item-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
}

/* Selection bubble behind active tab */
.tab-bar__bubble {
  position: absolute;
  top: 4px;
  left: 0;
  height: 54px;
  border-radius: 9999px;
  background-color: rgba(229, 229, 216, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.46s cubic-bezier(0.42, 0, 0.3, 1.25),
              width 0.46s cubic-bezier(0.42, 0, 0.3, 1.25);
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Document Screen
   -------------------------------------------------------------------------- */
.document-screen {
  container-type: size;
  /* contain:layout (implied by container-type) forces its own stacking context;
     without an explicit z-index it sits at level 0 and the tab bar (z-index:100,
     a sibling outside this containment) paints over any fixed overlay nested
     inside here (bottom sheet, full-info sheet) regardless of their internal z-index. */
  z-index: 101;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.document-screen__header {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 23px 24px 0;
}

/* Notification bell button */
.notification-bell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  height: 32px;
  background-color: var(--color-card-background);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.notification-bell__text {
  font-size: 14px;
  font-weight: 500;
}

.notification-bell__icon {
  font-size: 15px;
}

.notification-bell__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background-color: var(--color-error-red);
  color: var(--color-card-background);
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   Document Card — front/back with 3D flip
   -------------------------------------------------------------------------- */
.document-card-container {
  perspective: 1000px;
  width: calc(100% - 48px);
  max-width: 430px;
  aspect-ratio: 1 / 1.49;
  max-height: max(420px, calc(100cqh - 130px));
  margin-top: calc((100% - 48px) * 0.205);
  position: relative;
  container-type: size;
  flex-shrink: 0;
}

.document-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.48s ease-in-out;
}

.document-card--flipped {
  transform: rotateY(180deg);
}

/* Belt-and-suspenders on top of .fab-button's backface-visibility: some real-device
   WebKit builds don't reliably 3D-cull absolutely-positioned children with their own
   compositing layer (box-shadow), so the "+" button could still paint on the QR side.
   The visibility switch is delayed by half the 0.48s flip so it lands around the
   90-degree point (when the face would naturally go edge-on) instead of popping
   instantly at the start of the rotation, in either direction. */
.fab-button,
.ticker {
  transition: visibility 0s linear 0.24s;
}

.document-card--flipped .fab-button,
.document-card--flipped .ticker {
  visibility: hidden;
  transition: visibility 0s linear 0.24s;
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-front {
  background-color: var(--color-document-surface);
  border-radius: var(--radius-document);
  color: var(--color-ink);
}

.card-front::after,
.card-back::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--color-document-border);
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: visibility 0s linear 0.24s;
}

/* Same real-device leak as .fab-button/.ticker: this pseudo-element's own
   box-shadow gives it a compositing layer that doesn't reliably respect
   backface-visibility, so the front card's 1px border could still show
   through on the QR side. */
.document-card--flipped .card-front::after {
  visibility: hidden;
}

.card-back::after { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }

.card-back {
  background-color: var(--color-card-background);
  border-radius: 16px;
  transform: rotateY(180deg);
  color: var(--color-ink);
}

/* Card Front Layout */
.card-front__top {
  flex: 0 0 66.5%;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 0;
}

.card-front__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-front__doc-title {
  font-size: 22px;
  font-weight: 500;
}

.card-front__trident {
  width: 30px;
  height: 36px;
  flex-shrink: 0;
}

.card-front__body {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.card-front__photo {
  width: 45.5cqw;
  height: 41cqh;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-photo-surface);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-front__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-front__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
  color: rgba(107, 107, 96, 0.25);
}

.card-front__photo-placeholder svg {
  width: 60%;
  max-height: 70%;
}

.card-front__side-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
  font-size: 15px;
  min-width: 0;
}

.card-front__label {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.card-front__value {
  font-size: 15px;
}

.card-front__label--deferral {
  margin-top: 8px;
}

.card-front__value--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Front — bottom section (name + account type) */
.card-front__bottom {
  padding: 30px 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-front__account-type {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.card-front__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 25px;
  white-space: pre-line;
  padding-right: 46px;
  word-break: break-word;
}

/* Card Back Layout */
.card-back__expiry {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  padding: 26px 20px 0;
  /* iOS keeps this on one line (lineLimit(1) + minimumScaleFactor(0.75)) and
     shrinks the font instead of wrapping; fitExpiryText() in app.js does the
     shrinking. Without nowrap, narrow screens wrap to 2 lines and push the
     disclaimer box past the card's fixed height, clipping it (overflow:hidden). */
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.card-back__qr {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card-back__qr img,
.card-back__qr canvas {
  width: min(calc(100cqw - 48px), 60.5cqh);
  height: min(calc(100cqw - 48px), 60.5cqh);
  padding: 4px;
  background-color: var(--color-card-background);
  image-rendering: pixelated;
}

.card-back__warning {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  margin: 0 24px 26px;
  background-color: var(--color-document-surface);
  border-radius: var(--radius-document);
  border: 1px solid var(--color-document-border);
}

.card-back__warning-icon {
  width: 24px;
  height: 26px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  font-size: 26px;
}

.card-back__warning-text {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 20px;
}

/* --------------------------------------------------------------------------
   Document Ticker — scrolling marquee
   -------------------------------------------------------------------------- */
.ticker {
  width: 100%;
  height: 24px;
  overflow: hidden;
  background-color: var(--color-ticker-brown);
  flex-shrink: 0;
  position: relative;
}

.ticker--updating {
  background-color: var(--color-ticker-updating);
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  align-items: center;
  /* Its own animated transform creates an independent 3D rendering context,
     so it doesn't inherit the card face's backface-visibility:hidden — without
     this it stays visible (and mirrored) when the card is flipped to the back. */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ticker__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-card-background);
  white-space: pre;
  padding-right: 0;
  flex-shrink: 0;
}

.ticker--updating .ticker__text {
  color: var(--color-olive);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* --------------------------------------------------------------------------
   FAB (Floating Action Button) — orange circle
   -------------------------------------------------------------------------- */
.fab-button {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-warning-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  /* position:absolute + box-shadow gets its own compositing layer, which doesn't
     inherit .card-front's backface-visibility:hidden — without this it stays
     visible (mirrored, on the left) when the card is flipped to show the QR side. */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fab-button__icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.fab-button__icon::before,
.fab-button__icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fab-button__icon::before {
  width: 20px;
  height: 4px;
}

.fab-button__icon::after {
  width: 4px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Bottom Sheet
   -------------------------------------------------------------------------- */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bottom-sheet-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  width: 100%;
  max-width: 440px;
  background-color: var(--color-card-background);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding-bottom: max(12px, var(--safe-area-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet-overlay--visible .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet__drag-handle {
  width: 36px;
  height: 5px;
  border-radius: 2.5px;
  background-color: var(--color-separator);
  margin: 6px auto 12px;
}

.bottom-sheet__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 58px;
  width: 100%;
  font-size: 16px;
  text-align: left;
}

.bottom-sheet__action:active {
  background-color: rgba(0, 0, 0, 0.04);
}

.bottom-sheet__action-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bottom-sheet__divider {
  height: 0.5px;
  background-color: var(--color-separator);
  margin: 0 24px;
}

.bottom-sheet--actions {
  position: relative;
  min-height: 238px;
  padding-top: 22px;
}

.bottom-sheet--actions .bottom-sheet__drag-handle {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background-color: rgba(60, 60, 67, 0.3);
}

/* --------------------------------------------------------------------------
   Modal Overlay — refresh confirmation
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  width: 100%;
  max-width: 374px;
  background-color: var(--color-card-background);
  border-radius: var(--radius-modal);
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.modal-card__icon {
  font-size: 46px;
  font-weight: 300;
  color: var(--color-info-outline);
  margin-bottom: 24px;
}

.modal-card__message {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-olive);
  margin-bottom: 24px;
  line-height: 1.45;
}

.modal-card__confirm {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 500;
  background-color: var(--color-warning-orange);
  color: var(--color-olive);
  border-radius: var(--radius-button);
  text-align: center;
  margin-bottom: 16px;
}

.modal-card__cancel {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-olive);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Alert Dialog
   -------------------------------------------------------------------------- */
.alert-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.alert-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.alert-dialog {
  width: 100%;
  max-width: 300px;
  background-color: var(--color-card-background);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
}

.alert-dialog__body {
  padding: 20px 16px;
}

.alert-dialog__title {
  font-size: var(--font-headline);
  font-weight: 600;
  margin-bottom: 4px;
}

.alert-dialog__message {
  font-size: var(--font-footnote);
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.alert-dialog__actions {
  display: flex;
  border-top: 0.5px solid var(--color-separator);
}

.alert-dialog__action {
  flex: 1;
  padding: 12px;
  font-size: var(--font-headline);
  text-align: center;
  color: var(--color-badge-blue);
}

.alert-dialog__action + .alert-dialog__action {
  border-left: 0.5px solid var(--color-separator);
}

.alert-dialog__actions--stacked {
  flex-direction: column;
}

.alert-dialog__actions--stacked .alert-dialog__action + .alert-dialog__action {
  border-left: none;
  border-top: 0.5px solid var(--color-separator);
}

.alert-dialog__action--destructive {
  color: var(--color-error-red);
}

.alert-dialog__action--bold {
  font-weight: 600;
}

.alert-dialog__action--cancel {
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Services Screen
   -------------------------------------------------------------------------- */
.services-screen {
  padding: 0 24px 24px;
}

.services-screen__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 39px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.services-screen__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  min-height: 65px;
  cursor: pointer;
}

.services-screen__row-title {
  font-size: 18px;
  font-weight: 500;
  flex: 1;
}

.services-screen__row-chevron {
  width: 10px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 12px;
}

.services-screen__separator {
  height: 0.5px;
  background-color: var(--color-separator);
}

/* --------------------------------------------------------------------------
   Reference Row (Menu rows with icons)
   -------------------------------------------------------------------------- */
.reference-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  min-height: 60px;
  cursor: pointer;
}

.reference-row--no-icon {
  min-height: 65px;
}

.reference-row__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-olive);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mask-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-color: #000;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.reference-row--fit .reference-row__title {
  white-space: nowrap;
  text-overflow: clip;
}

.reference-row__title {
  font-size: 18px;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-row__chevron {
  width: 12px;
  height: 22px;
  flex-shrink: 0;
}

.reference-row--no-icon .reference-row__chevron {
  width: 10px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Menu Screen
   -------------------------------------------------------------------------- */
.menu-screen {
  padding: 14px 24px 24px;
}

.menu-screen__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 39px;
}

.menu-screen__version {
  font-size: 14px;
  line-height: 17px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  margin-bottom: 20px;
}

.menu-group {
  background-color: var(--color-card-background);
  border-radius: var(--radius-card);
  padding: 0 20px;
  overflow: hidden;
}

.menu-group + .menu-group {
  margin-top: 8px;
}

.menu-group__separator {
  height: 0.5px;
  background-color: var(--color-separator);
}

.menu-screen__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}

/* Logout button — olive capsule */
.logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 48px;
  background-color: var(--color-olive);
  color: var(--color-card-background);
  border-radius: var(--radius-button);
  font-size: 18px;
  font-weight: 500;
}

.menu-screen__privacy-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-align: center;
  color: var(--color-ink);
  line-height: 17px;
}

/* --------------------------------------------------------------------------
   Vacancies Screen
   -------------------------------------------------------------------------- */
.vacancies-screen {
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
}

/* Search bar */
.vacancies-search {
  padding: 8px 16px 0;
}

.vacancies-search__input {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--font-subheadline);
  font-family: var(--font-family);
  background-color: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 10px;
  color: var(--color-olive);
  outline: none;
}

.vacancies-search__input::placeholder {
  color: var(--color-text-secondary);
}

/* Segmented Control */
.segmented-control {
  display: flex;
  margin: 8px 16px 0;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 2px;
  overflow: hidden;
}

.segmented-control__item {
  flex: 1;
  padding: 8px 4px;
  font-size: var(--font-footnote);
  font-weight: 500;
  text-align: center;
  border-radius: 7px;
  color: var(--color-olive);
  transition: background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.segmented-control__item--active {
  background-color: var(--color-card-background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Filter/Sort buttons row */
.vacancies-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

.filter-button,
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: var(--font-subheadline);
  border: 1px solid var(--color-separator);
  border-radius: 8px;
  background-color: var(--color-card-background);
  color: var(--color-olive);
}

.filter-button__icon,
.sort-button__icon {
  font-size: 14px;
  line-height: 1;
}

.vacancies-toolbar__reset {
  margin-left: auto;
  font-size: var(--font-caption);
  color: var(--color-olive);
}

/* Vacancy Card */
.vacancy-card {
  background-color: var(--color-card-background);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.vacancy-card + .vacancy-card {
  margin-top: 12px;
}

.vacancy-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.vacancy-card__title {
  font-size: var(--font-headline);
  font-weight: 500;
  flex: 1;
}

.vacancy-card__star {
  font-size: 18px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  padding: 2px;
}

.vacancy-card__star--active {
  color: #FFD60A;
}

.vacancy-card__unit {
  font-size: var(--font-subheadline);
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.vacancy-card__meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}

.vacancy-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vacancy-card__meta-icon {
  font-size: 11px;
  line-height: 1;
}

.vacancy-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Vacancy Detail */
.vacancy-detail {
  padding: 16px;
}

.vacancy-detail__title {
  font-size: var(--font-title);
  font-weight: 700;
  margin-bottom: 8px;
}

.vacancy-detail__unit {
  font-size: var(--font-headline);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.vacancy-detail__meta {
  display: flex;
  gap: 16px;
  font-size: var(--font-subheadline);
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.vacancy-detail__section-title {
  font-size: var(--font-headline);
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 8px;
}

.vacancy-detail__section-body {
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.vacancy-detail__applied-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: rgba(76, 107, 58, 0.1);
  border-radius: 10px;
  font-size: var(--font-subheadline);
  color: var(--color-accent-green);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Notifications Screen
   -------------------------------------------------------------------------- */
.notifications-screen {
  padding: 12px 24px 24px;
  max-width: 478px;
  margin: 0 auto;
}

.notifications-screen__title {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 36px;
}

.notification-card {
  background-color: var(--color-card-background);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 16px;
}

.notification-card__title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
}

.notification-card__body {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.notification-card__divider {
  height: 1px;
  background-color: var(--color-separator);
  margin-bottom: 16px;
}

.notification-card__date {
  font-size: 16px;
  color: var(--color-info-outline);
}

/* --------------------------------------------------------------------------
   FAQ — Expandable Accordion
   -------------------------------------------------------------------------- */
.faq-screen {
  padding: 16px;
}

.faq-item {
  border-bottom: 0.5px solid var(--color-separator);
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  width: 100%;
  text-align: left;
  font-size: var(--font-subheadline);
  font-weight: 700;
  cursor: pointer;
}

.faq-item__chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-text-secondary);
  transition: transform 0.25s ease;
}

.faq-item--expanded .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  font-size: var(--font-subheadline);
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-bottom: 12px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item--expanded .faq-item__answer {
  max-height: 500px;
}

/* --------------------------------------------------------------------------
   Settings Screen
   -------------------------------------------------------------------------- */
.settings-screen {
  padding: 16px;
}

.settings-group {
  background-color: var(--color-card-background);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 44px;
}

.settings-row + .settings-row {
  border-top: 0.5px solid var(--color-separator);
}

.settings-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-body);
}

.settings-row__icon {
  width: 20px;
  height: 20px;
  color: var(--color-olive);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch__track {
  position: absolute;
  inset: 0;
  background-color: var(--color-separator);
  border-radius: 15.5px;
  transition: background-color 0.25s;
  cursor: pointer;
}

.toggle-switch input:checked + .toggle-switch__track {
  background-color: var(--color-accent-green);
}

.toggle-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background-color: var(--color-card-background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}

.toggle-switch input:checked ~ .toggle-switch__thumb {
  transform: translateX(20px);
}

/* Reset button */
.settings-reset-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: var(--font-body);
  color: var(--color-error-red);
  background-color: var(--color-card-background);
  border-radius: 10px;
}

.settings-reset-button__icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Sessions Screen
   -------------------------------------------------------------------------- */
.sessions-screen {
  padding: 16px;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--color-card-background);
  border-radius: 10px;
  margin-bottom: 8px;
}

.session-row__icon {
  font-size: var(--font-title2);
  color: var(--color-olive);
  flex-shrink: 0;
}

.session-row__info {
  flex: 1;
  min-width: 0;
}

.session-row__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-headline);
  font-weight: 500;
}

.session-row__current-badge {
  font-size: var(--font-caption2);
  font-weight: 700;
  padding: 2px 6px;
  background-color: rgba(76, 107, 58, 0.2);
  color: var(--color-accent-green);
  border-radius: 9999px;
}

.session-row__details {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.session-row__end-button {
  font-size: var(--font-caption);
  color: var(--color-error-red);
  padding: 6px 12px;
  border: 1px solid var(--color-error-red);
  border-radius: 6px;
  flex-shrink: 0;
}

.sessions-end-all {
  width: 100%;
  padding: 12px;
  font-size: var(--font-body);
  color: var(--color-error-red);
  text-align: center;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Support Chat
   -------------------------------------------------------------------------- */
.support-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.support-screen__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px;
  border-radius: 16px;
  font-size: var(--font-body);
  line-height: 1.4;
  word-break: break-word;
}

/* Bot bubble — left, olive tinted */
.chat-bubble--bot {
  align-self: flex-start;
  background-color: rgba(35, 34, 30, 0.1);
  color: var(--color-olive);
}

/* User bubble — right, olive solid, white text */
.chat-bubble--user {
  align-self: flex-end;
  background-color: var(--color-olive);
  color: var(--color-card-background);
}

.support-screen__input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-bottom: max(12px, var(--safe-area-bottom));
  border-top: 0.5px solid var(--color-separator);
  background-color: var(--color-card-background);
}

.support-screen__input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-separator);
  border-radius: 8px;
  font-size: var(--font-body);
  background-color: var(--color-card-background);
  outline: none;
}

.support-screen__input:focus {
  border-color: var(--color-olive);
}

.support-screen__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-olive);
  flex-shrink: 0;
  font-size: 24px;
}

.support-screen__send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Full Info (sheet + service page) — port of FullInfoView
   -------------------------------------------------------------------------- */
.info-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  transition: background-color 0.28s ease;
}

.info-sheet-overlay--visible {
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: all;
}

.info-sheet {
  position: absolute;
  top: max(var(--safe-area-top), 10px);
  bottom: 0;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  border-radius: 34px 34px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  color: var(--color-ink);
}

.info-sheet-overlay--visible .info-sheet {
  transform: translateY(0);
}

.info-sheet__grabber-zone {
  flex-shrink: 0;
  padding: 8px 0 14px;
  display: flex;
  justify-content: center;
}

.info-sheet__grabber {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-ink);
}

.info-sheet__scroll,
.info-page__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
  color: var(--color-ink);
}

.info-sheet__scroll::-webkit-scrollbar,
.info-page__scroll::-webkit-scrollbar {
  width: 0;
}

.info-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 24px;
}

.info-sheet__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.info-sheet__trident {
  width: 30px;
  height: 36px;
  flex-shrink: 0;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.info-card {
  background-color: var(--color-card-background);
  border-radius: 16px;
  overflow: hidden;
}

.info-pad {
  padding: 16px;
}

.info-sep {
  height: 1px;
  background-color: var(--color-separator);
}

.info-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-field__label,
.info-field__value,
.info-inline,
.info-personal__type {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.info-field__value {
  overflow-wrap: anywhere;
}

.info-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-inline__label {
  flex: 1;
}

.info-inline__value {
  text-align: right;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}

.info-ok svg {
  flex-shrink: 0;
}

.info-personal__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 0;
}

.info-personal__name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  white-space: pre-line;
}

.info-personal__row {
  display: flex;
  gap: 14px;
  padding: 12px 10px 4px;
}

.info-personal__photo {
  width: min(145px, calc((100cqw - 68px) * 0.46));
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--color-photo-surface);
}

.info-personal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-personal__fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Service Sub-Pages
   -------------------------------------------------------------------------- */

/* VLK — Brigade Picker */
.brigade-picker {
  padding: 16px;
}

.brigade-picker__section-title {
  font-size: var(--font-footnote);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  padding: 16px 0 8px;
}

.brigade-picker__list {
  background-color: var(--color-card-background);
  border-radius: 10px;
  overflow: hidden;
}

.brigade-picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 44px;
  width: 100%;
  text-align: left;
}

.brigade-picker__item + .brigade-picker__item {
  border-top: 0.5px solid var(--color-separator);
}

.brigade-picker__item-check {
  color: var(--color-olive);
}

/* Postponement Flow */
.postponement-screen {
  padding: 16px;
}

.postponement-reasons {
  background-color: var(--color-card-background);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.postponement-reasons__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 44px;
  width: 100%;
  text-align: left;
}

.postponement-reasons__item + .postponement-reasons__item {
  border-top: 0.5px solid var(--color-separator);
}

/* Waiting / Done states */
.waiting-screen,
.done-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 24px;
  text-align: center;
}

.waiting-screen__title,
.done-screen__title {
  font-size: var(--font-title2);
  font-weight: 700;
  margin-top: 16px;
}

.waiting-screen__subtitle,
.done-screen__subtitle {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  margin-top: 8px;
  line-height: 1.45;
}

.done-screen__icon {
  font-size: 48px;
  color: var(--color-olive);
}

.done-screen__footer {
  font-size: var(--font-footnote);
  margin-top: auto;
  padding-top: 24px;
}

.done-screen__footer u {
  text-decoration: underline;
}

/* Fines */
.fines-screen {
  padding: 16px;
}

.fines-list {
  background-color: var(--color-card-background);
  border-radius: 10px;
  overflow: hidden;
}

.fine-row {
  display: block;
  padding: 12px 16px;
  text-align: left;
}

.fine-row + .fine-row {
  border-top: 0.5px solid var(--color-separator);
}

.fine-row__title {
  font-size: var(--font-headline);
  font-weight: 500;
  margin-bottom: 6px;
}

.fine-row__amount {
  font-size: var(--font-subheadline);
  margin-bottom: 4px;
}

.fine-row__partial {
  font-size: var(--font-caption);
  color: var(--color-warning-orange);
  margin-bottom: 4px;
}

.fine-row__due {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}

.fine-detail {
  padding: 16px;
}

.fine-detail__section {
  background-color: var(--color-card-background);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.fine-detail__section-title {
  font-size: var(--font-footnote);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  padding: 16px 16px 8px;
}

.fine-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  font-size: var(--font-body);
}

.fine-detail__row:last-child {
  padding-bottom: 12px;
}

.fine-detail__label {
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.fine-detail__value {
  text-align: right;
  word-break: break-word;
}

/* Queue Form */
.queue-screen {
  padding: 16px;
}

.queue-form {
  background-color: var(--color-card-background);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.queue-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 44px;
}

.queue-form__row + .queue-form__row {
  border-top: 0.5px solid var(--color-separator);
}

.queue-form__label {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
}

.queue-form__value {
  font-size: var(--font-body);
  text-align: right;
}

/* Problem Report */
.problem-screen {
  padding: 16px;
}

.problem-screen__textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--color-separator);
  border-radius: 8px;
  background-color: var(--color-card-background);
  font-size: var(--font-body);
  resize: vertical;
  outline: none;
}

.problem-screen__textarea:focus {
  border-color: var(--color-olive);
}

/* --------------------------------------------------------------------------
   Common Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: var(--font-body);
  font-weight: 500;
  color: var(--color-card-background);
  background-color: var(--color-olive);
  border-radius: var(--radius-button);
  text-align: center;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-bordered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: var(--font-body);
  color: var(--color-olive);
  border: 1px solid var(--color-olive);
  border-radius: 8px;
  background-color: transparent;
}

.btn-bordered--full {
  width: 100%;
}

.btn-destructive {
  color: var(--color-error-red);
}

.btn-link {
  font-size: var(--font-body);
  color: var(--color-olive);
  padding: 8px 0;
  background: none;
}

/* --------------------------------------------------------------------------
   Search Bar
   -------------------------------------------------------------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 16px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.search-bar__icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  border: none;
  background: none;
  font-size: var(--font-body);
  outline: none;
}

.search-bar__input::placeholder {
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Form Elements (generic)
   -------------------------------------------------------------------------- */
.form-section {
  background-color: var(--color-card-background);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.form-section__title {
  font-size: var(--font-footnote);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  padding: 16px 16px 8px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 44px;
}

.form-row + .form-row {
  border-top: 0.5px solid var(--color-separator);
}

.form-row__label {
  font-size: var(--font-body);
}

.form-row__value {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
}

.form-row__chevron {
  width: 8px;
  height: 14px;
  color: var(--color-text-secondary);
  margin-left: 8px;
}

/* Picker */
.picker-list {
  background-color: var(--color-card-background);
  border-radius: 10px;
  overflow: hidden;
}

.picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
}

.picker-item + .picker-item {
  border-top: 0.5px solid var(--color-separator);
}

.picker-item__check {
  color: var(--color-olive);
  font-size: 16px;
}

/* TextEditor / TextArea */
.text-editor {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: none;
  background-color: var(--color-card-background);
  font-size: var(--font-body);
  resize: vertical;
  outline: none;
  border-radius: 0;
}

/* DatePicker (simplified) */
.date-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.date-picker__label {
  font-size: var(--font-body);
}

.date-picker__value {
  font-size: var(--font-body);
  color: var(--color-olive);
}

/* --------------------------------------------------------------------------
   Demo Banner
   -------------------------------------------------------------------------- */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin: 8px 16px;
  background-color: rgba(35, 34, 30, 0.09);
  border-radius: 10px;
  font-size: var(--font-caption);
  font-weight: 700;
  color: var(--color-olive);
}

.demo-banner__icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Empty State / Content Unavailable
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-secondary);
  flex: 1;
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state__title {
  font-size: var(--font-headline);
  font-weight: 500;
  margin-bottom: 4px;
}

.empty-state__description {
  font-size: var(--font-subheadline);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Dividers
   -------------------------------------------------------------------------- */
.divider {
  height: 0.5px;
  background-color: var(--color-separator);
}

.divider--thick {
  height: 1px;
}

/* --------------------------------------------------------------------------
   Labeled Content (key/value horizontal)
   -------------------------------------------------------------------------- */
.labeled-content {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: var(--font-body);
}

.labeled-content__label {
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.labeled-content__value {
  text-align: right;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Fines Intro Sheet
   -------------------------------------------------------------------------- */
.fines-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  text-align: center;
  min-height: 50vh;
}

.fines-intro__icon {
  font-size: 48px;
  color: var(--color-olive);
  margin-top: auto;
  margin-bottom: 16px;
}

.fines-intro__title {
  font-size: var(--font-title);
  font-weight: 700;
  margin-bottom: 12px;
}

.fines-intro__body {
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: auto;
}

/* --------------------------------------------------------------------------
   Document Photo (shared between card face and full-info)
   -------------------------------------------------------------------------- */
.document-photo {
  overflow: hidden;
  position: relative;
}

.document-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.document-photo--placeholder {
  background-color: var(--color-photo-surface);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
}

.document-photo--placeholder svg {
  width: 60%;
  max-height: 70%;
  color: rgba(107, 107, 96, 0.25);
}

/* --------------------------------------------------------------------------
   QR Code display
   -------------------------------------------------------------------------- */
.qr-code-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex: 1;
}

.qr-code-area img,
.qr-code-area canvas,
.qr-code-area svg {
  max-width: 100%;
  aspect-ratio: 1;
  image-rendering: pixelated;
}

/* --------------------------------------------------------------------------
   Apply Flow
   -------------------------------------------------------------------------- */
.apply-flow {
  padding: 16px;
}

.apply-flow__section {
  background-color: var(--color-card-background);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.apply-flow__section-title {
  font-size: var(--font-footnote);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.apply-flow__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
}

.apply-flow__consent-text {
  font-size: var(--font-footnote);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Sticky Footer (e.g., bottom CTA button)
   -------------------------------------------------------------------------- */
.sticky-footer {
  padding: 16px;
  padding-bottom: max(16px, var(--safe-area-bottom));
  background: linear-gradient(transparent, var(--color-background) 16px);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Animations & Transitions
   -------------------------------------------------------------------------- */

/* Sheet slide-up */
@keyframes slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Modal fade-in */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .document-card {
    transition: none;
  }
  .ticker__track {
    animation: none;
  }
  .tab-bar__bubble {
    transition: none;
  }
  .bottom-sheet {
    transition: none;
  }
  .faq-item__answer {
    transition: none;
  }
  .faq-item__chevron {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Scrollbar Styling (thin, unobtrusive)
   -------------------------------------------------------------------------- */
.screen::-webkit-scrollbar,
.document-screen::-webkit-scrollbar,
.vacancy-list::-webkit-scrollbar,
.support-screen__messages::-webkit-scrollbar {
  width: 0;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-secondary { color: var(--color-text-secondary); }
.text-error { color: var(--color-error-red); }
.text-accent { color: var(--color-accent-green); }
.text-olive { color: var(--color-olive); }
.fw-light { font-weight: 300; }
.fw-regular { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-bold { font-weight: 700; }
.fs-large-title { font-size: var(--font-large-title); }
.fs-title { font-size: var(--font-title); }
.fs-title2 { font-size: var(--font-title2); }
.fs-title3 { font-size: var(--font-title3); }
.fs-headline { font-size: var(--font-headline); }
.fs-body { font-size: var(--font-body); }
.fs-callout { font-size: var(--font-callout); }
.fs-subheadline { font-size: var(--font-subheadline); }
.fs-footnote { font-size: var(--font-footnote); }
.fs-caption { font-size: var(--font-caption); }
.fs-caption2 { font-size: var(--font-caption2); }

.w-full { width: 100%; }
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none; }
.visible { display: block; }

/* No horizontal page scroll */
.app-shell,
.screen,
.document-screen,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Fines intro bottom sheet specific
   -------------------------------------------------------------------------- */
.bottom-sheet--intro {
  min-height: 50vh;
}

/* --------------------------------------------------------------------------
   Booking card (existing queue record)
   -------------------------------------------------------------------------- */
.booking-card {
  background-color: var(--color-card-background);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.booking-card__title {
  font-size: var(--font-footnote);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.booking-card__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: var(--font-body);
}

.booking-card__label {
  color: var(--color-text-secondary);
}

.booking-card__cancel {
  width: 100%;
  padding: 12px;
  font-size: var(--font-body);
  color: var(--color-error-red);
  text-align: center;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Service Detail (generic)
   -------------------------------------------------------------------------- */
.service-detail {
  padding: 16px;
}

.service-detail__icon {
  font-size: 48px;
  color: var(--color-olive);
  margin-bottom: 16px;
}

.service-detail__title {
  font-size: var(--font-title);
  font-weight: 700;
  margin-bottom: 12px;
}

.service-detail__description {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Spinner (loading indicator)
   -------------------------------------------------------------------------- */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--color-separator);
  border-top-color: var(--color-olive);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--large {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* --------------------------------------------------------------------------
   Scan document row (taller min-height)
   -------------------------------------------------------------------------- */
.menu-group .reference-row--scan {
  min-height: 64px;
}

/* --------------------------------------------------------------------------
   Section Title (uppercase label above grouped content)
   -------------------------------------------------------------------------- */
.section-title {
  font-size: var(--font-footnote);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  padding: 16px 0 8px;
}

/* --------------------------------------------------------------------------
   Progress bar (simple horizontal)
   -------------------------------------------------------------------------- */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--color-separator);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background-color: var(--color-olive);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

/* Plain presented sheet (stock NavigationStack sheet with "Готово") */
.info-sheet--plain {
  background-color: var(--color-background);
}

.sheet-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 56px;
  flex-shrink: 0;
}

.sheet-nav__title {
  font-size: 16px;
  font-weight: 400;
}

.sheet-nav__done {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--color-ink);
}

.sheet-text {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 17px;
  line-height: 22px;
}

/* ==========================================================================
   iOS stock UI: NavigationStack bar + grouped List/Form
   ========================================================================== */
.ios-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: calc(-1 * var(--safe-area-top));
  padding-top: var(--safe-area-top);
  background-color: #F2F2F7;
  color: #000;
  position: relative;
  overflow: hidden;
}

.ios-page--plain { background-color: #FFFFFF; }
.ios-page--beige { background-color: var(--color-background); }

.ios-nav {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.ios-nav--scrolled {
  background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0.5px 0 rgba(60, 60, 67, 0.22);
}

.ios-nav__back {
  position: absolute;
  left: 16px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(60, 60, 67, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ios-nav__back svg { margin-right: 2px; }

.ios-nav__title {
  font-size: 16px;
  font-weight: 400;
  max-width: calc(100% - 140px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 24px;
  margin-top: -44px;
  padding-top: calc(44px + 20px);
}

.ios-scroll::-webkit-scrollbar { width: 0; }
.ios-scroll--flush { padding: 44px 0 0; }
.ios-scroll--fill { display: flex; flex-direction: column; }
.ios-scroll--top20 { padding-top: calc(44px + 20px); }

.ios-header {
  font-size: 17px;
  line-height: 22px;
  color: rgba(60, 60, 67, 0.6);
  padding: 0 16px 8.5px;
}

.ios-card {
  background-color: #FFFFFF;
  border-radius: 26px;
  overflow: hidden;
}

.ios-gap { height: 35.5px; }
.ios-gap--section { height: 24px; }

.ios-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 51.6px;
  padding: 15px 16px;
  font-size: 17px;
  line-height: 20.5px;
  text-align: left;
  color: #000;
}

.ios-row + .ios-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 0.5px;
  background-color: rgba(60, 60, 67, 0.2);
}

.ios-row--disabled,
.ios-row--disabled * { color: rgba(60, 60, 67, 0.3); }
.ios-row--disabled { pointer-events: none; }
.ios-row--destructive { color: #FF3B30; }
.ios-row--center { justify-content: center; padding: 15px 16px; }
.ios-row--action { color: var(--color-olive); }
.ios-row--note { min-height: 0; padding: 12px 16px 10px; }

.ios-row__label { font-weight: 500; flex-shrink: 0; }
.ios-row__label--plain { font-weight: 400; }
.ios-row__text { flex: 1; min-width: 0; text-wrap: balance; }
.ios-row__value { text-align: right; color: rgba(60, 60, 67, 0.6); min-width: 0; overflow-wrap: anywhere; }
.ios-row__value--ink { color: #000; }
.ios-row__small { font-size: 13px; line-height: 15.7px; flex: 1; }
.ios-row__footnote { font-size: 13px; line-height: 17px; color: rgba(60, 60, 67, 0.6); }
.ios-row__footnote--dark { color: rgba(60, 60, 67, 0.6); }

.ios-row--toggle { align-items: center; padding-right: 14px; }
.ios-row--picker, .ios-row--date { min-height: 58px; }
.ios-row__picker { display: inline-flex; align-items: center; gap: 6px; }

.ios-native-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}

.ios-pills { display: inline-flex; gap: 10px; }

.ios-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background-color: rgba(118, 118, 128, 0.12);
  font-size: 17px;
  overflow: hidden;
}

.ios-switch {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 28px;
  border-radius: 14px;
  background-color: rgba(120, 120, 128, 0.2);
  transition: background-color 0.2s;
}

.ios-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 24px;
  border-radius: 12px;
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.ios-switch--on { background-color: var(--color-olive); }
.ios-switch--on .ios-switch__knob { transform: translateX(22px); }

.ios-prominent {
  height: 34.5px;
  padding: 0 19px;
  border-radius: 9999px;
  background-color: var(--color-olive);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 400;
}

.ios-prominent--full {
  width: 100%;
  height: 50px;
  font-size: 17px;
}

.ios-fine { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.ios-fine__title { font-size: 17px; line-height: 21px; }
.ios-fine__line { font-size: 15px; line-height: 19px; }
.ios-fine__partial { font-size: 12px; line-height: 15px; color: var(--color-warning-orange); }
.ios-fine__due { font-size: 12px; line-height: 15px; color: rgba(60, 60, 67, 0.6); }

.ios-center-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 24px calc(24px + var(--safe-area-bottom) * 0);
  text-align: center;
}

.ios-center-stack__title { font-size: 22px; font-weight: 700; line-height: 28px; }
.ios-center-stack__title--big { font-size: 28px; line-height: 34px; }
.ios-center-stack__text { color: rgba(60, 60, 67, 0.6); font-size: 17px; line-height: 21px; }
.ios-center-stack__foot { font-size: 13px; line-height: 16px; }
.ios-center-stack--sheet { padding: 28px; }

.ios-spinner--small { width: 20px; height: 20px; transform: scale(0.67); transform-origin: center; }

.info-sheet--medium {
  top: auto;
  height: 50%;
  border-radius: 38px 38px 0 0;
  background-color: #F4F4F6;
}

.info-sheet__grabber--light { background-color: rgba(60, 60, 67, 0.3); }

.service-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
}

.service-detail__icon { width: 48px; height: 48px; color: var(--color-olive); display: flex; }
.service-detail__icon svg { width: 48px; height: 48px; }
.service-detail__title { font-size: 28px; font-weight: 700; line-height: 34px; }
.service-detail__description { color: rgba(60, 60, 67, 0.6); font-size: 17px; line-height: 22px; }

/* ==========================================================================
   Vacancies (VacanciesView.swift)
   ========================================================================== */
.vac-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: #000;
}

.vac-page__title {
  flex-shrink: 0;
  margin-top: 54px;
  padding: 0 17px;
  font-size: 28px;
  font-weight: 400;
  line-height: 34px;
  height: 52px;
  display: flex;
  align-items: center;
}

.vac-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.7px 16px 0;
  height: 43.3px;
  padding: 0 14px;
  border-radius: 22px;
  background-color: rgba(60, 60, 67, 0.08);
}

.vac-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  color: #000;
}

.vac-search__input::placeholder { color: rgba(60, 60, 67, 0.6); }

.ios-seg {
  position: relative;
  flex-shrink: 0;
  display: flex;
  margin: 18px 16px 0;
  height: 32px;
  padding: 2px;
  border-radius: 16px;
  background-color: rgba(120, 120, 128, 0.12);
}

.ios-seg__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc((100% - 4px) / 3);
  height: 28px;
  border-radius: 14px;
  background-color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.ios-seg__item {
  position: relative;
  flex: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #000;
}

.ios-seg__item--on { font-weight: 600; }

.vac-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  margin-top: 0;
}

.ios-bordered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 12px;
  border-radius: 9999px;
  background-color: rgba(35, 34, 30, 0.2);
  color: var(--color-olive);
  font-size: 15px;
}

.ios-bordered span { color: #000; }
.ios-bordered--wide { width: 100%; height: 50px; justify-content: center; font-size: 17px; background-color: rgba(35, 34, 30, 0.1); }

.vac-bar__spacer { flex: 1; }
.vac-bar__reset { font-size: 12px; color: var(--color-olive); }

.vac-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vac-scroll::-webkit-scrollbar { width: 0; }

.vac-card {
  display: block;
  width: 100%;
  flex-shrink: 0;
  padding: 16px;
  text-align: left;
  background-color: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  color: #000;
}

.vac-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vac-card__title { font-size: 17px; font-weight: 500; line-height: 20.6px; }
.vac-card__star { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; margin-top: -1px; }
.vac-card__unit { margin-top: 8px; font-size: 15px; line-height: 18.2px; color: rgba(60, 60, 67, 0.6); }
.vac-card__meta { margin-top: 8px; display: flex; gap: 16px; color: var(--color-text-secondary); font-size: 12px; line-height: 14.5px; flex-wrap: wrap; }
.vac-card__label { display: inline-flex; align-items: center; gap: 6px; }

.vac-empty {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.vac-empty__title { font-size: 22px; font-weight: 700; line-height: 28px; margin-top: 8px; }
.vac-empty__text { font-size: 15px; color: rgba(60, 60, 67, 0.6); }

/* Vacancy detail */
.vd { display: flex; flex-direction: column; gap: 20px; padding: 16px; }
.vd-block { display: flex; flex-direction: column; gap: 8px; }
.vd-title { font-size: 28px; font-weight: 700; line-height: 34px; }
.vd-unit { font-size: 17px; line-height: 22px; color: rgba(60, 60, 67, 0.6); }
.vd-meta { display: flex; gap: 16px; font-size: 15px; color: var(--color-text-secondary); flex-wrap: wrap; }
.vd-label { display: inline-flex; align-items: center; gap: 6px; }
.vd-h { font-size: 17px; font-weight: 500; line-height: 22px; }
.vd-text { color: rgba(60, 60, 67, 0.6); font-size: 17px; line-height: 22px; }
.vd-brigade { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.vd-divider { height: 0.5px; background-color: rgba(60, 60, 67, 0.29); }
.vd-applied {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border-radius: 10px;
  background-color: rgba(76, 107, 58, 0.1);
  color: var(--color-accent-green); font-size: 15px;
}
.vd-apply { width: 100%; }

/* Inset floating sheet (iOS 26 style) */
.info-sheet--inset {
  top: auto;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: auto;
  max-width: 414px;
  margin: 0 auto;
  height: 55%;
  border-radius: 44px;
  background-color: #F2F2F7;
}

.info-sheet--inset-large { top: max(var(--safe-area-top), 10px); height: calc(100% - max(var(--safe-area-top), 10px) - 8px); }

.sheet-nav__lead {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #000;
}

.ios-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 24px;
}

.ios-textarea {
  width: 100%;
  min-height: 100px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 17px;
  line-height: 22px;
  color: #000;
}

.ios-row--editor { align-items: stretch; }
.ios-fine__line--secondary { color: rgba(60, 60, 67, 0.6); }
.ios-prominent:disabled { background-color: rgba(35, 34, 30, 0.12); color: rgba(60, 60, 67, 0.3); }

/* Inset sheet geometry (matches iOS 26 medium detent) */
.info-sheet--inset { height: 51.6%; background-color: rgba(244, 244, 246, 0.94); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.info-sheet--inset .info-sheet__grabber-zone { height: 20px; padding: 9px 0 0; flex-shrink: 0; }
.info-sheet--inset .info-sheet__grabber { width: 36px; height: 5px; border-radius: 2.5px; }
.info-sheet--inset .sheet-nav { height: 38px; margin-top: 0; }
.info-sheet--inset .sheet-nav__done {
  right: 8px;
  height: 41.5px;
  padding: 0 24px;
  border-radius: 21px;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(60, 60, 67, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 17px;
  font-weight: 500;
}
.info-sheet--inset .sheet-nav__lead {
  left: 8px;
  height: 41.5px;
  padding: 0 22px;
  border-radius: 21px;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(60, 60, 67, 0.12);
  font-size: 17px;
}
.info-sheet--inset .sheet-nav__title { font-size: 17px; font-weight: 500; }
.ios-sheet-body { padding: 20px 16px 24px; }
.ios-sheet-body .ios-row { min-height: 49.8px; padding-top: 13px; padding-bottom: 13px; }
.ios-sheet-body .ios-card { background-color: rgba(255, 255, 255, 0.55); border-radius: 28px; }

/* Menu sub-pages */
.ios-row--session { min-height: 60px; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
.ios-session__icon { width: 26px; display: flex; justify-content: center; flex-shrink: 0; }
.ios-session { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ios-session__name { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 20.6px; }
.ios-session__badge {
  font-size: 11px; font-weight: 700; line-height: 13px;
  padding: 2px 6px; border-radius: 9999px;
  background-color: rgba(76, 107, 58, 0.2); color: var(--color-accent-green);
}
.ios-session__sub { font-size: 12px; line-height: 14.5px; color: rgba(60, 60, 67, 0.6); }
.ios-row__fill { flex: 1; }
.ios-bordered--small { height: 29px; font-size: 12px; padding: 0 12px; }
.ios-bordered--danger { color: #FF3B30; background-color: rgba(255, 59, 48, 0.12); }
.ios-bordered--danger { color: #FF3B30; }
.ios-labelrow { display: inline-flex; align-items: center; gap: 12px; }
.ios-labelrow svg { flex-shrink: 0; }

.ios-row--faq { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.ios-faq { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.ios-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; line-height: 18.2px; padding: 4px 0; }
.ios-faq__a { font-size: 15px; line-height: 18.2px; color: rgba(60, 60, 67, 0.6); padding-bottom: 6px; }

.ios-scroll--chat { padding: 0; margin-top: -44px; padding-top: 44px; display: flex; flex-direction: column; }
.chat-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.chat-row { display: flex; justify-content: flex-start; }
.chat-row--me { justify-content: flex-end; }
.chat-bubble {
  max-width: 85%;
  padding: 12px;
  border-radius: 16px;
  background-color: var(--color-olive);
  color: #FFFFFF;
  font-size: 17px;
  line-height: 20.6px;
}
.chat-bubble--bot { background-color: rgba(35, 34, 30, 0.1); color: #000; }
.chat-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: #FFFFFF;
  border-top: 0.5px solid rgba(60, 60, 67, 0.29);
}
.chat-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 0.5px solid rgba(60, 60, 67, 0.18);
  border-radius: 8px;
  outline: 0;
  background-color: #FFFFFF;
  font-size: 17px;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.12);
}
.chat-send { color: var(--color-olive); display: flex; }
.chat-send:disabled { color: rgba(60, 60, 67, 0.3); }

.pin-screen--done { color: #000; }

/* Notifications sheet */
.info-sheet--beige { background-color: var(--color-background); }
.info-sheet__grabber-zone--float { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 8px 0 14px; }
.notif-scroll { padding: 12px 24px 24px; max-width: 478px; margin: 0 auto; width: 100%; container-type: normal; }
.notif-back {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-left: -8px; margin-bottom: 12px;
  border-radius: 50%;
  background-color: var(--color-tab-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 6px 12px rgba(0, 0, 0, 0.1);
}
.notif-title { font-size: 30px; font-weight: 500; line-height: 37px; margin-bottom: 36px; }
.notif-list { display: flex; flex-direction: column; gap: 16px; }
.notif-card { background-color: #FFFFFF; border-radius: 16px; padding: 16px; font-size: 16px; line-height: 19.4px; }
.notif-card__title { margin-bottom: 16px; }
.notif-card__body { margin-bottom: 16px; }
.notif-card__sep { height: 1px; background-color: var(--color-separator); }
.notif-card__date { margin-top: 16px; color: var(--color-info-outline); }

.modal-card__icon { font-size: 0; display: flex; justify-content: center; margin: 8px 0 24px; color: var(--color-info-outline); }
.modal-card__message { color: var(--color-olive); line-height: 21.8px; }
.modal-card__confirm { padding: 16px; line-height: 21.8px; }
.modal-card__cancel { padding: 8px; line-height: 21.8px; color: var(--color-olive); }

/* QR scanner sheet */
.info-sheet--white { background-color: #FFFFFF; }
.scanner-body { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.demo-banner {
  display: flex; align-items: center; gap: 6px;
  padding: 12px; border-radius: 10px;
  background-color: rgba(35, 34, 30, 0.09);
  color: var(--color-olive); font-size: 12px; font-weight: 700;
}
.scanner-box {
  position: relative; overflow: hidden;
  min-height: 220px; max-height: 380px;
  border-radius: 18px; background-color: var(--color-background);
  display: flex; align-items: center; justify-content: center;
}
.scanner-box video { width: 100%; height: 100%; max-height: 380px; object-fit: cover; }
.scanner-msg { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px; text-align: center; font-size: 17px; }
.scanner-input {
  height: 34px; padding: 0 10px; border-radius: 8px; outline: 0;
  border: 0.5px solid rgba(60, 60, 67, 0.18); background: #FFFFFF; font-size: 17px;
}
.scanner-link { font-size: 17px; color: var(--color-olive); padding: 4px; }
.scanner-link:disabled { color: rgba(60, 60, 67, 0.3); }
.scanner-center { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.scanner-pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; max-height: 40vh; overflow-y: auto; user-select: text; }
.scanner-note { font-size: 13px; color: rgba(60, 60, 67, 0.6); }

/* Menu sub-page refinements (from iOS captures) */
.ios-row--faq { min-height: 64px; padding-top: 22px; padding-bottom: 22px; align-items: center; }
.ios-faq__q { padding: 0; }
.ios-faq__a { padding-top: 4px; padding-bottom: 0; }
.ios-row--session { min-height: 76.9px; padding-top: 18px; padding-bottom: 18px; }
.ios-bordered--danger { background-color: rgba(120, 120, 128, 0.2); color: #000; }
.ios-session__name { font-size: 17px; }
.chat-bubble { max-width: 100%; }
.vac-empty__text { font-size: 17px; line-height: 21px; max-width: 280px; text-wrap: balance; }
.ios-switch--on .ios-switch__knob { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.25); }

.ios-bordered--small { height: 28px; font-size: 15px; padding: 0 12px; }
.ios-row--session { gap: 8px; }
.ios-session__icon { width: 24px; }
.ios-session__sub { white-space: nowrap; }

/* iOS 26 system alert */
.alert-overlay { background-color: rgba(0, 0, 0, 0.25); }
.alert-dialog {
  max-width: 320px;
  text-align: left;
  border-radius: 44px;
  background-color: rgba(245, 245, 248, 0.94);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.alert-dialog__body { padding: 22px 29px 14px; }
.alert-dialog__title { font-size: 17px; font-weight: 700; line-height: 20.6px; margin-bottom: 5px; color: #000; }
.alert-dialog__message { font-size: 15px; line-height: 20px; color: rgba(60, 60, 67, 0.6); }
.alert-dialog__actions { gap: 8px; padding: 0 16px 16px; border-top: 0; }
.alert-dialog__action {
  height: 48px;
  padding: 0 8px;
  border-radius: 24px;
  background-color: rgba(120, 120, 128, 0.2);
  color: #000;
  font-size: 17px;
  font-weight: 400;
}
.alert-dialog__action + .alert-dialog__action { border-left: 0; }
.alert-dialog__action--bold { font-weight: 400; }
.alert-dialog__action--destructive { color: #FF3B30; }
.alert-dialog__actions--stacked .alert-dialog__action + .alert-dialog__action { border-top: 0; }

/* App-like behaviour for the installed PWA */
html { touch-action: manipulation; }
body { overscroll-behavior: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
input, textarea, pre, .scanner-pre { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

.fab-button { box-shadow: none; }
:root { color-scheme: light; }

/* Offline stub */
.offline-stub {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--safe-area-top) + clamp(40px, 19vh, 163px)) 24px calc(var(--safe-area-bottom) + 21px);
  background-color: var(--color-background);
  color: #000;
  text-align: center;
}

.offline-stub__ring {
  width: 163px;
  height: 163px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 6px solid #959485;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offline-stub__title {
  margin-top: 43px;
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
  max-width: 340px;
}

.offline-stub__text {
  margin-top: 16px;
  font-size: 16.3px;
  line-height: 19.2px;
  max-width: 370px;
}

.offline-stub__btn {
  margin-top: auto;
  width: 100%;
  max-width: 382px;
  height: 65px;
  border-radius: 9999px;
  background-color: var(--color-warning-orange);
  color: var(--color-olive);
  font-size: 16px;
  font-weight: 500;
}

.offline-stub__btn:active { opacity: 0.85; }
.offline-stub__btn:disabled { opacity: 0.6; }
