:root {
  color-scheme: light;

  --brand-font-family: "Lobster";
  --content-font-family: "Roboto";
  --font-logo: var(--brand-font-family);
  --font-interface: var(--content-font-family);
  --font-light: 300;
  --font-regular: 300;
  --font-medium: 500;
  --font-semibold: 600;

  --display-large: clamp(30px, 5vw, 36px);
  --page-title: clamp(28px, 4vw, 30px);
  --section-title: 18px;
  --card-title: 20px;
  --body-medium: 16px;
  --body-small: 14px;
  --label-small: 12px;
  --caption: 12px;

  --text-subheading: var(--section-title);
  --text-body: var(--body-medium);
  --text-secondary: var(--body-small);
  --text-caption: var(--caption);
  --line-height: 1.45;

  --background-primary: #F8F9FA;
  --surface-primary: #FFFFFF;
  --surface-secondary: #F3F4F6;

  --text-primary: #111111;
  --text-secondary-color: #4B5563;
  --text-caption-color: #6B7280;

  --icon-primary: #111111;
  --icon-secondary: #6B7280;

  --border-primary: #E5E7EB;
  --border-secondary: #EEEEEE;
  --border-card: #E8EAED;

  --button-primary: #111111;
  --button-primary-text: #FFFFFF;
  --brand-graphite: #303946;
  --danger: #D62828;
  --success: #16A34A;
  --success-text: #15803D;
  --warning: #F59E0B;
  --link-color: #2563EB;
  --saved-accent: #E5486D;
  --nav-active: #111111;

  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-extra-large: 24px;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  --shadow-soft: 0 4px 16px rgba(0, 0, 0, .04);
  --motion-fast: 180ms;

  /* Short names still used by existing components. */
  --panel: var(--surface-primary);
  --paper: var(--surface-primary);
  --line: var(--border-primary);
  --shadow: none;
}

html,
body {
  background: var(--background-primary) !important;
  color: var(--text-primary) !important;
}

body,
.app,
.screen,
.tab-page,
.settings-page,
.support-page,
.main {
  background-color: var(--background-primary) !important;
  background-image: none !important;
}

.app {
  overflow: visible !important;
}

.app-loader {
  background: var(--background-primary) !important;
  background-image: none !important;
}

.app-loader-card {
  color: var(--text-primary) !important;
}

.app-loader-title,
.app-loader-title .brand-red {
  color: var(--text-primary) !important;
}

.app-loader-progress {
  height: 8px !important;
  background: var(--brand-graphite) !important;
  box-shadow: none !important;
}

.app-loader-progress span {
  background: var(--danger) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.app-loader-progress::after {
  display: none !important;
}

#toast,
.toast {
  background: var(--text-primary) !important;
  color: #FFFFFF !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-status:not(:empty),
.error:not(:empty) {
  color: var(--danger) !important;
  background: #FFF8F8 !important;
  border: 1px solid rgba(214, 40, 40, .20) !important;
}

body,
button,
input,
textarea,
select {
  color: var(--text-primary);
  text-shadow: none !important;
}

button,
a,
input,
textarea,
select,
[role="button"] {
  transition:
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) ease !important;
}

button:active,
[role="button"]:active {
  transform: scale(.98);
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 1 !important;
  color: var(--text-secondary-color) !important;
  background: var(--border-primary) !important;
  border-color: var(--border-primary) !important;
}

/* App bars and navigation */
.top-row,
.topbar,
.details-page-head,
.stats-sheet-head,
.modal-head {
  background: var(--surface-primary) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-secondary) !important;
  box-shadow: none !important;
}

.top-row,
.topbar,
.details-page-head {
  background: rgba(255, 255, 255, .78) !important;
  border-bottom-color: rgba(229, 231, 235, .82) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.top-row {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  isolation: isolate;
}

#detailsSheet {
  z-index: 200 !important;
}

#detailsSheet .details-page-head {
  top: 0 !important;
  z-index: 210 !important;
}

#reviewRatingPopover {
  z-index: 260 !important;
}

.nav,
.dashboard-bottom-nav {
  min-height: 68px;
  background: var(--surface-primary) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid var(--border-secondary) !important;
  box-shadow: none !important;
}

.nav button,
.dashboard-bottom-nav .nav-item {
  min-height: 48px;
  color: var(--text-caption-color) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nav button.active,
.dashboard-bottom-nav .nav-item.active {
  color: var(--nav-active) !important;
  background: transparent !important;
  font-weight: var(--font-semibold) !important;
}

.nav svg,
.dashboard-bottom-nav svg {
  color: currentColor;
  fill: currentColor;
  filter: none !important;
}

.dashboard-bottom-nav img {
  opacity: .72;
  filter: grayscale(1) brightness(.28) !important;
}

.dashboard-bottom-nav .nav-item.active img {
  opacity: 1;
  filter: brightness(0) drop-shadow(.45px 0 0 #111111) drop-shadow(-.45px 0 0 #111111) !important;
}

.nav button.active .nav-icon-svg,
.dashboard-bottom-nav .nav-item.active svg {
  stroke: currentColor;
  stroke-width: .55;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.nav button.active .nav-icon-svg,
.nav button.active img,
.dashboard-bottom-nav .nav-item.active svg,
.dashboard-bottom-nav .nav-item.active img {
  transform: scale(1.1);
}

body > .nav,
.dashboard-bottom-nav {
  background: rgba(255, 255, 255, .78) !important;
  border-top-color: rgba(229, 231, 235, .82) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  z-index: 110 !important;
}

body.master-overlay-open > .nav {
  transform: translateY(calc(100% + 18px)) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.integrated-mode #dashboard,
body.integrated-mode #dashboard .tab-page {
  width: 100% !important;
  min-width: 0 !important;
}

body.integrated-mode > .app {
  width: min(100%, 600px) !important;
  max-width: 600px !important;
  padding-right: var(--space-16) !important;
  padding-left: var(--space-16) !important;
}

body.integrated-mode .topbar {
  min-height: 50px !important;
  margin-top: calc(-1 * max(8px, env(safe-area-inset-top))) !important;
  margin-right: calc(-1 * var(--space-16)) !important;
  margin-bottom: 10px !important;
  margin-left: calc(-1 * var(--space-16)) !important;
  padding-top: max(8px, env(safe-area-inset-top)) !important;
  padding-right: var(--space-16) !important;
  padding-bottom: 6px !important;
  padding-left: var(--space-16) !important;
}

body.integrated-mode .topbar .brand h1 {
  font-size: 34px !important;
  line-height: 1 !important;
}

body.integrated-mode .topbar .brand p {
  margin-top: 0 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

/* Search, favorites and the master cabinet use one visual application shell. */
.screen.active > .top-row,
body.integrated-mode #dashboard:not(.hidden) > .topbar {
  view-transition-name: sheberler-header;
}

body > .nav,
body.integrated-mode #dashboard:not(.hidden) > .dashboard-bottom-nav {
  view-transition-name: sheberler-navigation;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(sheberler-header),
::view-transition-group(sheberler-navigation) {
  animation-duration: 180ms;
}

.top-row,
body.integrated-mode .topbar {
  min-height: 58px !important;
  padding-top: max(8px, env(safe-area-inset-top)) !important;
  padding-right: max(16px, calc((100vw - min(100vw, 600px)) / 2 + 16px)) !important;
  padding-bottom: 8px !important;
  padding-left: max(16px, calc((100vw - min(100vw, 600px)) / 2 + 16px)) !important;
}

body.integrated-mode .topbar {
  width: 100vw !important;
  margin-top: calc(-1 * max(8px, env(safe-area-inset-top))) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-bottom: 10px !important;
  margin-left: calc(50% - 50vw) !important;
}

.top-row .app-title,
body.integrated-mode .topbar .app-title {
  margin: 0 !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

body.integrated-mode .dashboard-bottom-nav {
  min-height: 68px !important;
  padding: 6px 0 calc(4px + env(safe-area-inset-bottom)) !important;
}

body.integrated-mode .dashboard-bottom-nav .glass-nav-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 0 !important;
}

body.integrated-mode .dashboard-bottom-nav .nav-item {
  min-height: 48px !important;
  height: auto !important;
  padding: 7px 4px 5px !important;
  gap: 4px !important;
}

.dashboard-bottom-nav .nav-item.nav-icon-tap svg {
  animation: sheberler-nav-tap 360ms cubic-bezier(.2, .85, .32, 1);
}

@keyframes sheberler-nav-tap {
  0% { transform: scale(1); }
  42% { transform: scale(1.28) translateY(-3px); }
  72% { transform: scale(.94) translateY(0); }
  100% { transform: scale(1); }
}

html.shell-navigation-return .app-loader {
  display: none !important;
}

@media (min-width: 900px) {
  body.integrated-mode > .app {
    width: min(600px, calc(100% - 48px)) !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.integrated-mode .topbar {
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
  }
}

/* City selection is a plain, readable list rather than a grid of cards. */
#citySheet .center-title {
  color: var(--text-primary) !important;
}

#cityList {
  display: grid !important;
  gap: 0 !important;
  padding: 0 !important;
}

#citySheet .city-option {
  min-height: 50px !important;
  padding: 0 44px 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-secondary) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  font-weight: var(--font-medium) !important;
  box-shadow: none !important;
}

#citySheet .city-option:last-child {
  border-bottom: 0 !important;
}

#citySheet .city-option:hover,
#citySheet .city-option:active {
  background: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-secondary) !important;
}

#citySheet .city-option.selected,
#citySheet .city-option.selected:hover,
#citySheet .city-option.selected:active {
  background: transparent !important;
  color: var(--text-primary) !important;
}

#citySheet .city-option::after {
  width: 18px !important;
  height: 18px !important;
  right: 6px !important;
  border: 2px solid var(--text-primary) !important;
  border-radius: 5px !important;
  background: var(--surface-primary) !important;
}

#citySheet .city-option.selected::after {
  background: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  color: #FFFFFF !important;
}

.sheet-list-button[data-city] {
  min-height: 50px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-secondary) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  font-weight: var(--font-medium) !important;
  box-shadow: none !important;
}

.sheet-list-button[data-city].selected {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.sheet-list-button[data-city] .sheet-check {
  background: var(--text-primary) !important;
  border-radius: 5px !important;
  color: #FFFFFF !important;
}

.top-control {
  background: var(--surface-secondary) !important;
  border: 1px solid var(--border-primary) !important;
}

.lang-pill {
  color: var(--text-secondary-color) !important;
}

.lang-pill.active {
  color: var(--text-primary) !important;
  background: var(--surface-primary) !important;
  border: 1px solid var(--border-primary) !important;
}

/* Shared surfaces */
.master-card,
.card,
.panel,
.soft-card,
.stats,
.stats-open,
.action-panel,
.account-panel,
.review-composer,
.rating-popover-card,
.master-rating-popover-card,
.stats-detail-card,
.stats-chart-card,
.stats-channel,
.details-hero,
.legal-section,
.login-card,
.signup-card,
.boot-card,
.signup-section,
.settings-card,
.profile-card,
.dossier-profile,
.dossier-section,
.account-card,
.manual-master-panel,
.row,
.detail,
.filter-option,
.quick-service,
.quick-service-chip,
.suggestion,
.review-item,
.account-review-item,
.review-account {
  background: var(--surface-primary) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-card) !important;
  box-shadow: none !important;
}

.master-card,
.card,
.panel,
.action-panel,
.account-panel,
.review-composer,
.details-hero,
.legal-section,
.profile-card,
.signup-section,
.dossier-profile,
.dossier-section,
.account-card,
.manual-master-panel {
  border-radius: var(--radius-large) !important;
}

.master-card {
  padding: var(--space-16) !important;
}

.list,
.master-list,
.sheet-list {
  gap: var(--space-16) !important;
}

.master-card:hover,
.row:hover,
.suggestion:hover,
.action-panel:hover {
  transform: none !important;
  background: var(--surface-secondary) !important;
  border-color: #DADDE1 !important;
  box-shadow: none !important;
}

.master-card,
.master-card:hover {
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24) !important;
}

#masterGalleryCard,
#detailsContent .details-photo-gallery {
  background: var(--surface-primary) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-large) !important;
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24) !important;
}

#detailsSheet .details-hero {
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24) !important;
}

/* Text hierarchy */
.master-name,
.account-title,
.action-panel-title,
.center-title,
.center-title h1,
.center-title h2,
.support-title,
.support-title h2,
.row h3,
.dossier-name {
  color: var(--text-primary) !important;
}

.master-city,
.account-subtitle,
.action-panel-subtitle,
.center-title p,
.hint,
.row p,
.dossier-meta,
.review-date,
.reviews-count,
.legal-section p,
.legal-section li {
  color: var(--text-secondary-color) !important;
}

.detail span,
.stats-bar-label,
.status,
small {
  color: var(--text-caption-color) !important;
}

.city-compact,
.city-compact span,
.filters-toggle,
.filters-toggle span,
.filters-icon,
.screen-head,
.screen-head h1,
.sheet-title,
.sheet-title h2,
.modal-head,
.modal-head h2,
.stats-sheet-head,
.stats-sheet-head h2 {
  color: var(--text-primary) !important;
}

.city-compact.header-city,
.city-compact.header-city:hover,
.city-compact.header-city:active {
  min-height: 38px !important;
  padding: 6px 10px 6px 12px !important;
  border: 1px solid rgba(48, 57, 70, .20) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: var(--brand-graphite) !important;
  box-shadow: none !important;
}

.city-compact.header-city svg {
  color: currentColor !important;
  fill: currentColor !important;
}

.cabinet-settings-button,
.cabinet-settings-button:hover,
.cabinet-settings-button:active {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  padding: 0 !important;
  border: 1px solid rgba(48, 57, 70, .20) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .72) !important;
  color: var(--brand-graphite) !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: none !important;
}

.cabinet-settings-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
}

@keyframes cabinetSettingsGearTap {
  0% { transform: scale(1) rotate(0); }
  32% { transform: scale(.82) rotate(-18deg); }
  72% { transform: scale(1.12) rotate(35deg); }
  100% { transform: scale(1) rotate(0); }
}

.cabinet-settings-button.settings-gear-tap svg {
  animation: cabinetSettingsGearTap 440ms cubic-bezier(.2, .86, .35, 1.24);
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-settings-button.settings-gear-tap svg {
    animation: none;
  }

  body.integrated-mode #dashboard .stats-open.stats-icon-tap .stats-open-icon svg {
    animation: none;
  }
}

/* Integrated master cabinet: match the client master cards. */
body.integrated-mode #dashboard .tab-page {
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.integrated-mode #tabCabinet {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
}

body.integrated-mode #tabCabinet .profile-card {
  grid-row: auto !important;
}

body.integrated-mode #dashboard .master-profile-heading {
  display: grid;
  justify-items: center;
  gap: 2px;
}

body.integrated-mode #dashboard .master-profile-username {
  margin: 0 !important;
  color: var(--text-secondary-color) !important;
  font-size: var(--text-secondary) !important;
  line-height: 1.3 !important;
}

body.integrated-mode #dashboard #masterMeta {
  margin-top: 2px !important;
}

body.integrated-mode #dashboard .master-profile-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border-secondary);
  border-radius: 15px;
  background: var(--surface-secondary);
}

body.integrated-mode #dashboard .master-profile-metric {
  position: relative;
  min-width: 0;
  min-height: 62px;
  margin: 0;
  padding: 8px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

body.integrated-mode #dashboard .master-profile-metric + .master-profile-metric {
  border-left: 1px solid var(--border-secondary);
}

body.integrated-mode #dashboard button.master-profile-metric {
  cursor: pointer;
}

body.integrated-mode #dashboard button.master-profile-metric:active {
  background: rgba(17, 17, 17, .05);
}

body.integrated-mode #dashboard .master-profile-metric b {
  color: var(--text-primary);
  font-size: var(--text-subheading);
  line-height: 1.2;
  font-weight: var(--font-semibold);
}

body.integrated-mode #dashboard .master-profile-metric > span {
  max-width: 100%;
  color: var(--text-secondary-color);
  font-size: var(--text-caption);
  line-height: 1.25;
  font-weight: var(--font-regular);
  overflow-wrap: anywhere;
}

body.integrated-mode #dashboard .master-profile-metric .reviews-alert-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--success) !important;
  color: #FFFFFF !important;
  border-color: var(--success) !important;
}

body.integrated-mode #dashboard .master-about-card {
  display: grid;
  gap: 7px;
  text-align: left;
}

body.integrated-mode #dashboard .master-about-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-body);
  line-height: 1.3;
  font-weight: var(--font-semibold);
}

body.integrated-mode #dashboard .master-about-card .profile-about {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-secondary-color) !important;
}

body.integrated-mode #dashboard .tab-page > * {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.integrated-mode #dashboard .tab-page > .card,
body.integrated-mode #dashboard .tab-page > .soft-card,
body.integrated-mode #dashboard .tab-page > .stats,
body.integrated-mode #dashboard .tab-page > .action-panel {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: var(--space-16) !important;
  overflow: hidden !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-large) !important;
  background: var(--surface-primary) !important;
  background-image: none !important;
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24) !important;
}

body.integrated-mode #dashboard .tab-page > .stats {
  padding: 0 !important;
}

body.integrated-mode #dashboard .tab-page > .stats > .stats-open {
  width: 100% !important;
  margin: 0 !important;
  grid-template-columns: 36px minmax(0, 1fr) 18px !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.integrated-mode #dashboard .stats-open-icon {
  width: 36px !important;
  height: 36px !important;
  border-color: rgba(22, 163, 74, .22) !important;
  border-radius: 12px !important;
  background: rgba(22, 163, 74, .09) !important;
  color: var(--success) !important;
}

body.integrated-mode #dashboard .stats-open-icon svg {
  width: 20px !important;
  height: 20px !important;
}

body.integrated-mode #dashboard .stats-open-text {
  gap: 1px !important;
}

body.integrated-mode #dashboard .stats-open-text b {
  font-size: var(--text-body) !important;
  line-height: 1.25 !important;
}

body.integrated-mode #dashboard .stats-open-text span {
  font-size: var(--text-caption) !important;
  line-height: 1.3 !important;
}

@keyframes masterStatsIconTap {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(.82) rotate(-8deg); }
  68% { transform: scale(1.16) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

body.integrated-mode #dashboard .stats-open.stats-icon-tap .stats-open-icon svg {
  animation: masterStatsIconTap 420ms cubic-bezier(.2, .86, .35, 1.24);
}

body.integrated-mode #dashboard .tab-page > .action-panel:hover,
body.integrated-mode #dashboard .tab-page > .stats:hover {
  transform: none !important;
  border-color: var(--border-card) !important;
  background: var(--surface-primary) !important;
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24) !important;
}

body.integrated-mode #dashboard .center-title {
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 4px 2px !important;
  text-align: left !important;
}

body.integrated-mode #dashboard .center-title h2,
body.integrated-mode #dashboard .center-title p {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

body.integrated-mode #dashboard .action-panel {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

body.integrated-mode #dashboard .action-panel-body,
body.integrated-mode #dashboard .soft-card-row > div,
body.integrated-mode #dashboard .stats-open-text {
  min-width: 0 !important;
}

body.integrated-mode #dashboard .action-panel-title,
body.integrated-mode #dashboard .action-panel-subtitle,
body.integrated-mode #dashboard .soft-card p,
body.integrated-mode #dashboard .stats-open-text span {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

body.integrated-mode #dashboard .action-panel-action {
  width: auto !important;
  max-width: 108px !important;
  min-height: 36px !important;
  padding: 7px 10px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  font-size: var(--text-secondary) !important;
}

body.integrated-mode #dashboard .profile-settings-card {
  grid-template-columns: 64px minmax(0, 1fr) 76px !important;
}

body.integrated-mode #dashboard .profile-settings-actions {
  width: 76px !important;
}

body.integrated-mode #dashboard .profile-settings-actions .action-panel-action {
  width: 100% !important;
  padding: 6px 8px !important;
}

/* Master statistics: calm, readable analytics in the shared card language. */
#statsSheet .stats-sheet-panel {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#statsSheet .stats-sheet-head {
  position: relative !important;
  top: auto !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  background: var(--surface-primary) !important;
  border-bottom: 1px solid var(--border-secondary) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#statsSheet .stats-detail {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 12px 0 calc(18px + env(safe-area-inset-bottom)) !important;
  scrollbar-width: none !important;
}

#statsSheet .stats-detail::-webkit-scrollbar {
  display: none !important;
}

#statsSheet .stats-back,
#statsSheet .stats-back:hover,
#statsSheet .stats-back:active {
  box-sizing: border-box !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--text-primary) !important;
  color: #FFFFFF !important;
}

#statsSheet .stats-detail-card,
#statsSheet .stats-chart-card {
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-large) !important;
  background: var(--surface-primary) !important;
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24) !important;
}

#statsSheet .stats-channel {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#statsSheet .stats-bars {
  scrollbar-width: none;
}

#statsSheet .stats-bars::-webkit-scrollbar {
  display: none;
}

@media (min-width: 720px) {
  #statsSheet .stats-sheet-panel {
    border: 1px solid var(--border-secondary) !important;
    border-radius: 22px !important;
    box-shadow: var(--shadow-soft) !important;
  }
}

@media (max-width: 390px) {
  body.integrated-mode #dashboard .action-panel {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  body.integrated-mode #dashboard .action-panel-action {
    max-width: 88px !important;
    padding: 6px 8px !important;
  }

  body.integrated-mode #dashboard .profile-settings-card {
    grid-template-columns: 58px minmax(0, 1fr) 68px !important;
  }

  body.integrated-mode #dashboard .profile-settings-actions {
    width: 68px !important;
  }
}

#cabinetSettingsSheet {
  z-index: 200 !important;
}

#cabinetSettingsSheet .sheet-body {
  width: min(100%, 480px) !important;
  background: var(--background-primary) !important;
}

@media (max-width: 899px) {
  #cabinetSettingsSheet .sheet-body {
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top))) !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }
}

#cabinetSettingsSheet .sheet-head h2 {
  color: var(--text-primary) !important;
}

.profile-identity-form {
  display: grid;
  gap: 16px;
}

.profile-identity-form .field > span {
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.profile-username-field {
  gap: 8px !important;
}

.profile-username-control {
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  padding: 5px 8px 5px 6px;
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  background: var(--surface-secondary);
  box-shadow: inset 0 1px 3px rgba(17, 17, 17, .06);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.profile-username-control:focus-within {
  border-color: #9CA3AF;
  background: var(--surface-primary);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .06);
}

.profile-username-at {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(17, 17, 17, .08);
}

.profile-username-control input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 16px;
}

.profile-username-hint,
.profile-username-preview {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
}

.profile-username-hint {
  color: var(--text-secondary-color);
}

.profile-username-preview {
  color: var(--link-color);
}

#settingsSheet .settings-sheet-panel {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

#settingsSheet {
  z-index: 240 !important;
}

body.master-settings-sheet-open .dashboard-bottom-nav {
  transform: translateY(calc(100% + 24px)) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#settingsSheet .settings-sheet-content {
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#settingsSheet .settings-sheet-footer:empty {
  display: none;
}

#settingsSheet .settings-sheet-footer {
  padding: 12px 0 2px;
  border-top: 1px solid var(--border-secondary);
  background: var(--surface-primary);
}

#settingsSheet .settings-sheet-save-source {
  display: none !important;
}

#settingsSheet .settings-sheet-footer .settings-sheet-save,
#settingsSheet .profile-identity-save {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 14px !important;
  background: var(--button-primary) !important;
  color: var(--button-primary-text) !important;
  border-color: var(--button-primary) !important;
  box-shadow: none !important;
}

.master-profile-cover {
  width: calc(100% + 32px);
  height: auto;
  aspect-ratio: 3 / 1;
  margin: -16px -16px -68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #EEF1F4, #DDE2E7);
  color: var(--text-secondary-color);
  font-size: 12px;
  font-weight: 400;
}

.master-profile-cover img,
.details-profile-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

body.integrated-mode #tabCabinet .profile-card > .avatar {
  position: relative;
  z-index: 2;
  border: 4px solid var(--surface-primary) !important;
  outline: 1px solid #C8CDD4 !important;
}

.profile-cover-settings-card input[type="file"] {
  display: none !important;
}

.profile-cover-settings-preview {
  overflow: hidden;
  padding: 0 !important;
  color: var(--text-caption-color) !important;
  font-size: 10px !important;
}

.profile-cover-settings-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain !important;
  background: var(--surface-secondary);
}

#detailsSheet .details-hero.has-cover {
  padding-top: 0 !important;
  overflow: hidden !important;
}

#detailsSheet .details-profile-cover {
  width: calc(100% + 32px);
  height: auto;
  aspect-ratio: 3 / 1;
  margin: 0 -16px -64px;
  overflow: hidden;
  background: var(--surface-secondary);
}

#detailsSheet .details-hero.has-cover > .avatar {
  position: relative;
  z-index: 2;
  border: 4px solid var(--surface-primary) !important;
}

.cabinet-settings-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-large);
  background: var(--surface-primary);
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24);
}

.cabinet-setting-row {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border-secondary);
  border-radius: 0;
  background: var(--surface-primary);
  color: var(--text-primary);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-12);
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

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

.cabinet-setting-row:hover,
.cabinet-setting-row:active {
  background: var(--surface-secondary);
  color: var(--text-primary);
}

.cabinet-setting-row[hidden] {
  display: none !important;
}

.cabinet-setting-danger,
.cabinet-setting-danger .cabinet-setting-body b,
.cabinet-setting-danger .cabinet-setting-arrow {
  color: var(--danger) !important;
}

.cabinet-setting-danger .cabinet-setting-icon {
  border-color: rgba(214, 40, 40, .18);
  background: rgba(214, 40, 40, .06);
  color: var(--danger);
}

.cabinet-account-heading[hidden] {
  display: none !important;
}

.account-panel.guest-account-panel {
  width: min(100%, 460px);
  margin: clamp(52px, 11vh, 112px) auto 0;
  padding: 0 16px;
  gap: 20px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.guest-account-copy {
  max-width: 430px;
  margin: 0 auto;
  color: var(--text-primary) !important;
  font-size: 18px;
  line-height: 1.55;
  font-weight: var(--font-regular);
  text-align: center;
  text-wrap: balance;
}

.guest-account-panel .account-mode-switch {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.guest-account-panel .account-choice {
  min-height: 48px;
  border: 1px solid #C8CDD4 !important;
  border-radius: 14px;
  background: var(--surface-primary) !important;
  color: var(--text-primary) !important;
  font-size: 16px;
  font-weight: var(--font-medium);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.guest-account-panel .account-choice:active {
  transform: scale(.97);
}

.guest-account-panel .account-choice.active {
  border-color: var(--button-primary) !important;
  background: var(--button-primary) !important;
  color: var(--button-primary-text) !important;
}

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

.guest-account-panel .account-auth-options {
  width: min(360px, 100%);
  margin: 0 auto;
  gap: 10px;
}

.guest-account-panel .account-auth-options-visible {
  animation: cabinetAuthOptionsReveal 240ms ease-out both;
}

.guest-account-panel .account-google-slot,
.guest-account-panel .account-auth-button {
  width: 100%;
  min-height: 48px;
}

.guest-account-panel .account-google-slot {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-primary);
}

.guest-account-panel .account-google-slot > div,
.guest-account-panel .account-google-slot iframe {
  width: 100% !important;
  max-width: none !important;
}

.guest-account-panel .account-apple-provider,
.guest-account-panel .account-apple-provider:hover,
.guest-account-panel .account-apple-provider:active {
  min-height: 48px;
  border: 1px solid #C8CDD4 !important;
  border-radius: 14px !important;
  background: var(--surface-primary) !important;
  color: var(--text-primary) !important;
}

.guest-account-panel .account-apple-provider span,
.guest-account-panel .account-apple-provider svg {
  color: var(--text-primary) !important;
  fill: currentColor !important;
}

@media (max-width: 899px) {
  .account-panel.guest-account-panel {
    margin-top: clamp(44px, 9vh, 84px);
    padding-inline: 4px;
  }

  .guest-account-copy {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-account-panel .account-auth-options-visible {
    animation: none;
  }
}

.account-panel.standard-user-account {
  width: min(100%, 560px);
  min-height: calc(100vh - 182px);
  min-height: calc(100dvh - 182px);
  margin: 0 auto;
  padding: 26px 18px 24px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 24px;
}

.account-panel.account-profile-form-panel {
  width: min(100%, 520px);
  margin: 24px auto 0;
  padding: 0 4px 32px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.account-profile-form {
  display: grid;
  gap: 22px;
}

.account-profile-form-head {
  display: grid;
  gap: 6px;
  text-align: center;
}

.account-profile-form-head h2,
.account-profile-form-head p {
  margin: 0;
}

.account-profile-form-head h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: var(--font-semibold);
}

.account-profile-form-head p {
  color: var(--text-secondary-color);
  font-size: 16px;
  line-height: 1.5;
}

.account-profile-avatar-picker {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.account-profile-avatar-preview {
  width: 116px;
  min-width: 116px;
  max-width: 116px;
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--surface-primary);
  border-radius: 50%;
  outline: 1px solid #C8CDD4;
  outline-offset: 1px;
  background: var(--surface-secondary);
  color: var(--text-secondary-color);
  box-shadow: 0 0 0 4px rgba(48, 57, 70, .06);
  display: grid;
  place-items: center;
}

.account-profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile-avatar-action,
.account-profile-cancel {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: var(--font-medium);
}

.account-profile-name-field {
  display: grid;
  gap: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: var(--font-medium);
}

.account-profile-name-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: var(--font-regular);
  box-shadow: inset 0 2px 5px rgba(17, 17, 17, .06);
}

.account-profile-name-field input:focus {
  border-color: #9CA3AF;
  outline: 0;
}

.account-profile-form-actions {
  display: grid;
  gap: 10px;
}

.account-profile-save {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--button-primary);
  border-radius: 14px;
  background: var(--button-primary);
  color: var(--button-primary-text);
  font-size: 16px;
  font-weight: var(--font-medium);
}

.account-profile-save:disabled {
  opacity: .6;
}

#accountAvatarCropSheet {
  z-index: 240 !important;
}

.account-avatar-crop-body {
  width: min(100%, 460px) !important;
}

.account-avatar-crop-stage {
  width: min(300px, calc(100vw - 64px));
  aspect-ratio: 1;
  margin: 8px auto 18px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  background: var(--surface-secondary);
  touch-action: none;
  cursor: grab;
}

.account-avatar-crop-stage:active {
  cursor: grabbing;
}

.account-avatar-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.account-avatar-crop-zoom {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: var(--font-medium);
}

.account-avatar-crop-zoom input {
  width: 100%;
  accent-color: var(--brand-graphite);
}

.signup-work-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.signup-work-days label {
  min-width: 0;
  cursor: pointer;
}

.signup-work-days input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-work-days span {
  min-height: 40px;
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--surface-primary);
  color: var(--text-secondary-color);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: var(--font-medium);
}

.signup-work-days input:checked + span {
  border-color: var(--button-primary);
  background: var(--button-primary);
  color: var(--button-primary-text);
}

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

@media (max-width: 420px) {
  .signup-work-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.standard-user-account .standard-user-profile {
  gap: 12px;
}

.standard-user-account .account-avatar {
  width: 112px;
  height: 112px;
  flex-basis: 112px;
  border: 2px solid var(--surface-primary) !important;
  outline: 1px solid #C8CDD4 !important;
  outline-offset: 1px !important;
  background: var(--surface-secondary) !important;
  box-shadow: 0 0 0 4px rgba(48, 57, 70, .06) !important;
  color: var(--text-primary) !important;
}

.standard-user-account .account-title {
  color: var(--text-primary) !important;
  font-size: 20px;
  font-weight: var(--font-semibold);
}

.account-reviews-card {
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-large);
  background: var(--surface-primary);
  color: var(--text-primary);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24);
}

.account-reviews-card:active {
  transform: scale(.99);
}

.account-reviews-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 166, 35, .28);
  border-radius: 14px;
  background: rgba(245, 166, 35, .09);
  color: #D18A12;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.account-reviews-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-reviews-copy b {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: var(--font-medium);
}

.account-reviews-copy small {
  color: var(--text-secondary-color);
  font-size: 14px;
  font-weight: var(--font-regular);
}

.account-reviews-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: var(--font-medium);
}

.account-reviews-arrow {
  color: var(--text-secondary-color);
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 899px) {
  .account-panel.standard-user-account {
    min-height: calc(100vh - 168px);
    min-height: calc(100dvh - 168px);
    padding: 22px 4px 24px;
  }
}

.cabinet-setting-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-medium);
  background: var(--surface-secondary);
  color: var(--brand-graphite);
  display: grid;
  place-items: center;
}

.cabinet-setting-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cabinet-setting-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cabinet-setting-body b {
  color: var(--text-primary);
  font-size: var(--body-medium);
  font-weight: var(--font-medium);
  line-height: var(--line-height);
}

.cabinet-setting-body small {
  color: var(--text-secondary-color) !important;
  font-size: var(--body-small);
  font-weight: var(--font-regular);
  line-height: var(--line-height);
}

.cabinet-setting-arrow {
  color: var(--text-secondary-color);
  font-size: 28px;
  font-weight: var(--font-light);
  line-height: 1;
}

.cabinet-language-row .top-control {
  flex: 0 0 auto;
}

.empty {
  color: var(--text-secondary-color) !important;
}

.error {
  color: var(--danger) !important;
}

a:not(.details-action):not(.action-panel-action):not(.main-site-link) {
  color: var(--link-color);
}

/* Search and fields */
.search-box,
.input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  background: var(--surface-primary) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-primary) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.search-box {
  height: 52px !important;
  border-radius: var(--radius-large) !important;
}

.screen[data-screen="home"] .home-hero-banner {
  margin-bottom: 0 !important;
  aspect-ratio: 1200 / 633;
  isolation: isolate;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  background: #FFFFFF;
}

.screen[data-screen="home"] .home-hero-banner.is-dragging {
  cursor: grabbing;
}

.home-banner-track {
  width: 100%;
  height: 100%;
  display: flex;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
}

.home-banner-slide {
  width: 100%;
  height: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  background: #FFFFFF;
}

.home-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.home-banner-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7px;
  min-height: 20px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 4px 12px -8px rgba(17, 24, 39, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.home-banner-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #9CA3AF;
  opacity: .72;
  transition: width .24s ease, background-color .24s ease, opacity .24s ease;
}

.home-banner-dot.active {
  width: 17px;
  background: #D62828;
  opacity: 1;
}

.home-banner-dot:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .home-banner-track,
  .home-banner-dot {
    transition: none !important;
  }
}

.screen[data-screen="home"] .home-search-sticky {
  margin-top: 0 !important;
}

.screen[data-screen="home"] .home-search-sticky > .search-box {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 900px) {
  .screen[data-screen="home"] .home-search-sticky > .search-box {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

.search-box input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.screen[data-screen="home"] .search-box input {
  background: var(--surface-primary) !important;
  box-shadow:
    inset 0 1px 5px rgba(17, 17, 17, .15),
    inset 0 -1px 2px rgba(17, 17, 17, .04) !important;
}

.search-icon,
.search-icon svg,
.clear-search,
.close-sheet,
.sheet-close,
.stats-back {
  color: var(--icon-primary) !important;
  fill: currentColor;
  stroke: currentColor;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.screen[data-screen="home"] .clear-search,
.screen[data-screen="home"] .clear-search:hover,
.screen[data-screen="home"] .clear-search:active {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.screen[data-screen="home"] .clear-search::before,
.screen[data-screen="home"] .clear-search::after {
  width: 13px !important;
  height: 2px !important;
  background: #FFFFFF !important;
}

.search-box:focus-within,
.input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--text-caption-color) !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.screen[data-screen="home"] .search-box:focus-within {
  border-color: var(--border-primary) !important;
  outline: 0 !important;
  box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-caption-color) !important;
  opacity: 1 !important;
}

/* Buttons */
.button,
.review-submit,
.details-action,
.action-panel-action,
.delete-confirm-submit,
.filters-count,
.account-auth-button,
.choice-button.primary,
.apple-login-button,
.btn.primary,
.btn:not(.ghost):not(.secondary):not(.danger) {
  min-height: 48px;
  background: var(--button-primary) !important;
  background-image: none !important;
  color: var(--button-primary-text) !important;
  border: 1px solid var(--button-primary) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.button:hover,
.review-submit:hover,
.details-action:hover,
.action-panel-action:hover,
.btn.primary:hover {
  background: #2B2B2B !important;
  border-color: #2B2B2B !important;
}

.account-auth-button span,
.account-auth-button svg,
.choice-button.primary span,
.apple-login-button span {
  color: var(--button-primary-text) !important;
  fill: currentColor !important;
}

.button.secondary,
.delete-confirm-cancel,
.btn.secondary,
.btn.ghost,
.choice-button:not(.primary),
.main-site-link {
  min-height: 44px;
  background: var(--surface-primary) !important;
  color: var(--text-primary) !important;
  border: 1px solid #DADDE1 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.auth-back,
.login-consent-link {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.danger,
.account-delete,
.btn.danger,
.review-mini-btn.danger,
.delete-confirm-submit {
  color: var(--danger) !important;
}

.danger:not(.action-panel),
.account-delete,
.btn.danger,
.review-mini-btn.danger {
  background: var(--surface-primary) !important;
  border-color: rgba(214, 40, 40, .24) !important;
}

.action-panel.danger {
  background: #FFF8F8 !important;
  border-color: rgba(214, 40, 40, .20) !important;
}

.action-panel.danger .action-panel-action,
.delete-confirm-submit {
  background: var(--danger) !important;
  color: #FFFFFF !important;
  border-color: var(--danger) !important;
}

/* Filters, chips and selected states */
.filters-panel,
.suggestions,
.filters-body,
.quick-services,
.signup-category-list,
.settings-sheet-content {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.filter-option,
.quick-service,
.quick-service-chip,
.sheet-chip,
.badge,
.pill,
.rating-chip,
.master-rating-chip {
  background: var(--surface-primary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: none !important;
}

.filter-option.active,
.quick-service.active,
.quick-service-chip.active,
.sheet-chip.active,
.city-option.selected,
.account-choice.active {
  background: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
  border-color: #C8CDD4 !important;
  box-shadow: none !important;
}

.filter-switch {
  background: var(--border-primary) !important;
  border-color: var(--border-primary) !important;
}

.filter-option.active .filter-switch {
  background: var(--button-primary) !important;
  border-color: var(--button-primary) !important;
}

.filter-switch::after {
  background: var(--surface-primary) !important;
  box-shadow: none !important;
}

.filters-panel {
  background: var(--surface-primary) !important;
  border-color: var(--border-primary) !important;
}

.filters-toggle,
.filters-toggle span,
.filters-toggle svg {
  color: var(--text-primary) !important;
}

.filter-option b {
  color: var(--text-primary) !important;
}

.filter-option small {
  color: var(--text-secondary-color) !important;
  font-weight: var(--font-regular) !important;
}

.filters-panel .filters-count {
  display: none !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--success) !important;
  color: #FFFFFF !important;
  font-size: var(--label-small) !important;
  font-weight: var(--font-semibold) !important;
  line-height: 1 !important;
  place-items: center !important;
}

.filters-panel.has-active .filters-count {
  display: inline-grid !important;
}

#suggestions {
  background: var(--surface-primary) !important;
  border: 1px solid var(--border-primary) !important;
}

#suggestions .suggestion {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-secondary) !important;
  border-radius: 0 !important;
}

#suggestions .suggestion:last-child {
  border-bottom: 0 !important;
}

#suggestions .suggestion b {
  color: var(--text-primary) !important;
}

#suggestions .suggestion small {
  color: var(--text-secondary-color) !important;
  font-weight: var(--font-regular) !important;
}

#suggestions .suggestion:hover,
#suggestions .suggestion:focus,
#suggestions .suggestion:active {
  background: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
}

/* Master cards */
.avatar,
.account-avatar,
.profile-settings-avatar,
.avatar-preview {
  background: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: none !important;
}

.master-card .avatar {
  border: 2px solid var(--surface-primary) !important;
  outline: 1px solid #C8CDD4 !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 4px rgba(48, 57, 70, .06) !important;
}

body.integrated-mode #tabCabinet .profile-card > .avatar {
  border: 2px solid var(--surface-primary) !important;
  outline: 1px solid #C8CDD4 !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 4px rgba(48, 57, 70, .06) !important;
}

#detailsSheet .details-title h2 {
  color: var(--text-primary) !important;
}

#detailsSheet .details-hero .avatar {
  border: 2px solid var(--surface-primary) !important;
  outline: 1px solid #C8CDD4 !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 4px rgba(48, 57, 70, .06) !important;
}

#reviewsSheet .sheet-head h2,
#reviewsSheet .review-name,
#reviewsSheet .review-composer h3,
#reviewsSheet .review-account-title {
  color: var(--text-primary) !important;
}

#reviewsSheet #reviewsMasterName,
#reviewsSheet .review-date,
#reviewsSheet .review-account-subtitle {
  color: var(--text-secondary-color) !important;
}

#reviewsSheet .review-list {
  gap: var(--space-8) !important;
}

#reviewsSheet .review-item {
  padding: var(--space-12) !important;
  border-radius: 14px !important;
  background: var(--surface-primary) !important;
  border: 1px solid var(--border-card) !important;
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24) !important;
}

#reviewsSheet .review-top {
  margin-bottom: var(--space-4) !important;
}

#reviewsSheet .review-text {
  margin: var(--space-4) 0 0 !important;
  color: var(--text-primary) !important;
  font-weight: var(--font-regular) !important;
}

#reviewsSheet .review-footer {
  align-items: center !important;
  margin-top: var(--space-8) !important;
}

#reviewsSheet .review-footer-right {
  min-width: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
}

#reviewsSheet .review-actions {
  gap: var(--space-4) !important;
}

#reviewsSheet .review-like,
#reviewsSheet .review-mini-btn {
  background: var(--surface-secondary) !important;
  color: var(--brand-graphite) !important;
  border-color: var(--border-primary) !important;
}

#reviewsSheet .review-like.liked {
  background: #F0FDF4 !important;
  color: var(--success-text) !important;
  border-color: rgba(22, 163, 74, .26) !important;
}

#reviewsSheet .review-mini-btn.danger {
  background: #FFF8F8 !important;
  color: var(--danger) !important;
  border-color: rgba(214, 40, 40, .24) !important;
}

#reviewsSheet .review-rating {
  min-height: 32px !important;
  margin-left: auto !important;
  background: #FFFBEB !important;
  color: var(--text-primary) !important;
  border-color: rgba(245, 158, 11, .32) !important;
}

#reviewsSheet .review-rating .rating-star {
  color: var(--warning) !important;
}

#reviewsSheet .review-composer,
#reviewsSheet .review-account {
  background: var(--surface-primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-primary) !important;
}

#reviewsSheet .review-composer textarea {
  background: var(--surface-primary) !important;
  color: var(--text-primary) !important;
}

#reviewsSheet #closeReviews,
#reviewsSheet #closeReviews:hover,
#reviewsSheet #closeReviews:active {
  position: relative !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111111 !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

#reviewsSheet #closeReviews::before,
#reviewsSheet #closeReviews::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 99px;
  background: #FFFFFF;
}

#reviewsSheet #closeReviews::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#reviewsSheet #closeReviews::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#reviewRatingPopover .rating-popover-close,
#reviewRatingPopover .rating-popover-close:hover,
#reviewRatingPopover .rating-popover-close:active {
  position: relative !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111111 !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

#reviewRatingPopover .rating-popover-close::before,
#reviewRatingPopover .rating-popover-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 99px;
  background: #FFFFFF;
}

#reviewRatingPopover .rating-popover-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#reviewRatingPopover .rating-popover-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.master-rating-row,
.reviews-count,
.rating-line {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-color: var(--border-secondary) !important;
  box-shadow: none !important;
}

.rating-star,
.trust-star,
.master-rating-chip b {
  color: var(--warning) !important;
}

.verified-badge,
.support-wordmark .brand-red,
.brand-red,
.wordmark .red,
.app-title-accent {
  color: var(--danger) !important;
}

/* Six-part review rating */
.feedback-picker {
  display: grid;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  background: var(--surface-primary);
}

.feedback-picker > p,
.rating-breakdown-empty {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.feedback-picker-group {
  display: grid;
  gap: 8px;
}

.feedback-picker-group > b {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

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

.feedback-option {
  min-width: 0;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  background: var(--surface-primary);
  color: var(--text-primary);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.feedback-option-icon,
.feedback-rating-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.feedback-option-icon {
  width: 34px;
  height: 34px;
  font-size: 25px;
  line-height: 1;
  opacity: .42;
  filter: grayscale(1);
  transform: scale(.9);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}

.feedback-option-icon svg,
.feedback-rating-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-option.selected {
  transform: translateY(-1px);
}

.feedback-option.selected .feedback-option-icon {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.feedback-option.positive.selected {
  color: #15803D !important;
}

.feedback-option.positive.selected {
  border-color: rgba(22, 163, 74, .34);
  background: #F0FDF4;
}

.feedback-option.negative.selected {
  color: #C24141 !important;
}

.feedback-option.negative.selected {
  border-color: rgba(194, 65, 65, .3);
  background: #FFF7F7;
}

.feedback-option.feedback-tap {
  animation: feedback-option-tap .34s cubic-bezier(.2, .8, .2, 1);
}

@keyframes feedback-option-tap {
  0% { transform: scale(1); }
  42% { transform: scale(.91); }
  72% { transform: scale(1.055); }
  100% { transform: scale(1); }
}

.feedback-rating-chip {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 30px auto;
  align-items: center;
  justify-content: initial !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
}

.feedback-rating-icon {
  width: 30px;
  height: 30px;
  font-size: 23px;
  line-height: 1;
}

.feedback-rating-chip > span:first-child {
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.3;
}

.feedback-rating-chip b {
  color: var(--text-primary) !important;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.pill.success {
  color: #15803D !important;
  border-color: rgba(22, 163, 74, .28) !important;
  background: #F0FDF4 !important;
}

.pill.danger {
  color: #C24141 !important;
  border-color: rgba(194, 65, 65, .26) !important;
  background: #FFF7F7 !important;
}

@media (max-width: 360px) {
  .feedback-option-grid {
    gap: 6px;
  }

  .feedback-option {
    min-height: 52px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

.favorite-button,
.favorite-button:hover,
.favorite-button:active {
  color: var(--icon-secondary) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.favorite-button.active,
.favorite-button.active:hover,
.favorite-button.active:active {
  color: var(--saved-accent) !important;
}

/* Sheets and dialogs */
.sheet,
.sheet-backdrop,
.master-rating-popover,
.rating-popover,
.modal {
  background: rgba(17, 17, 17, .28) !important;
  backdrop-filter: none !important;
}

.sheet-body,
.sheet-panel,
.delete-confirm-panel,
.modal-card,
.rating-popover-card,
.master-rating-popover-card,
.stats-sheet-panel {
  background: var(--surface-primary) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-secondary) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-soft) !important;
}

.sheet-body,
.sheet-panel {
  border-radius: var(--radius-extra-large) var(--radius-extra-large) 0 0 !important;
}

.sheet-handle {
  background: #D1D5DB !important;
}

.details-row {
  border-bottom-color: var(--border-secondary) !important;
}

/* Admin */
.sidebar {
  background: var(--surface-primary) !important;
  background-image: none !important;
  border-right: 1px solid var(--border-secondary) !important;
  box-shadow: none !important;
}

.sidebar .nav {
  min-height: 0;
  border: 0 !important;
}

.sidebar .nav button {
  color: var(--text-secondary-color) !important;
  border-radius: var(--radius-medium) !important;
}

.sidebar .nav button.active {
  color: var(--text-primary) !important;
  background: var(--surface-secondary) !important;
}

.brand::before,
.panel::before,
.dossier-profile::before,
.dossier-section::before {
  display: none !important;
}

table,
th,
td {
  border-color: var(--border-secondary) !important;
}

th {
  color: var(--text-secondary-color) !important;
  background: var(--surface-secondary) !important;
}

/* Logo remains independent from interface typography. */
.app-title,
.support-wordmark,
.brand-logo,
.login-wordmark,
.brand h1,
.wordmark {
  color: var(--brand-graphite) !important;
  font-family: var(--font-logo) !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  filter: none !important;
}

.app-title-accent,
.support-wordmark .brand-red,
.brand-logo .brand-red,
.login-wordmark .brand-red,
.brand h1 .brand-red,
.wordmark .red {
  color: var(--danger) !important;
}

.app-title {
  font-size: 48px !important;
  line-height: 1 !important;
}

body.integrated-mode #onlineSwitch.on {
  background: var(--success) !important;
  border-color: var(--success) !important;
}

body.integrated-mode #tabCabinet > .location-card {
  padding: 11px 12px !important;
}

body.integrated-mode #tabCabinet > .location-card .soft-card-row {
  gap: 10px !important;
}

body.integrated-mode #tabCabinet > .location-card .soft-card-row b {
  font-size: var(--text-secondary) !important;
  line-height: 1.25 !important;
}

body.integrated-mode #tabCabinet > .location-card #geoStatus {
  margin-top: 2px !important;
  font-size: var(--text-caption) !important;
  line-height: 1.3 !important;
}

body.integrated-mode #tabCabinet > .location-card .location-update-button {
  min-height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 11px !important;
  font-size: var(--text-secondary) !important;
  line-height: 1.2 !important;
}

body.integrated-mode #tabCabinet > .location-card .location-help {
  margin: 7px 0 0 !important;
  padding-top: 7px !important;
  border-top: 1px solid var(--border-secondary) !important;
  color: var(--text-caption-color) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

/* Compact statistics sheet with a single, calm data palette. */
#statsSheet {
  z-index: 220 !important;
}

#statsSheet .stats-sheet-head {
  min-height: 42px !important;
  grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  gap: 8px !important;
  padding: 0 0 7px !important;
}

#statsSheet .stats-sheet-title {
  gap: 0 !important;
}

#statsSheet .stats-sheet-title h2 {
  font-size: 20px !important;
  line-height: 1.15 !important;
}

#statsSheet .stats-sheet-title span {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

#statsSheet .stats-back,
#statsSheet .stats-back:hover,
#statsSheet .stats-back:active {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
}

#statsSheet .stats-back svg {
  width: 19px !important;
  height: 19px !important;
}

#statsSheet .stats-detail {
  gap: 9px !important;
  padding-top: 9px !important;
  padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  scroll-padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
}

#statsSheet .stats-intro {
  gap: 1px !important;
  padding: 2px 2px 1px !important;
}

#statsSheet .stats-intro b {
  font-size: var(--text-body) !important;
  line-height: 1.25 !important;
}

#statsSheet .stats-intro span {
  font-size: var(--text-caption) !important;
  line-height: 1.35 !important;
}

#statsSheet .stats-detail-card {
  min-height: 76px !important;
  align-content: center !important;
  gap: 2px !important;
  padding: 10px !important;
}

#statsSheet .stats-detail-card::before {
  display: none !important;
  content: none !important;
}

#statsSheet .stats-detail-card b {
  font-size: clamp(24px, 6vw, 30px) !important;
  line-height: 1 !important;
}

#statsSheet .stats-chart-card {
  gap: 11px !important;
  padding: 12px !important;
}

#statsSheet .stats-bars:not(.reviews-daily) .stats-bar-fill,
#statsSheet .stats-bars:not(.reviews-daily) .stats-bar:hover .stats-bar-fill,
#statsSheet .stats-channel-fill {
  background: var(--success) !important;
}

#statsSheet .stats-bars.reviews-daily .stats-bar-fill,
#statsSheet .stats-bars.reviews-daily .stats-bar:hover .stats-bar-fill {
  background: var(--warning) !important;
}

#statsSheet .stats-channel {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

#statsSheet .stats-detail > :last-child {
  margin-bottom: 2px !important;
}

/* Compact master settings menu with quiet secondary actions. */
body.integrated-mode #dashboard .settings-page,
body.integrated-mode #dashboard .support-page {
  gap: 8px !important;
}

body.integrated-mode #dashboard .settings-page .center-title,
body.integrated-mode #dashboard .support-page .center-title {
  padding: 2px 3px 1px !important;
}

body.integrated-mode #dashboard .settings-page > .action-panel,
body.integrated-mode #dashboard .support-page > .action-panel {
  min-height: 58px !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  gap: 9px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
}

body.integrated-mode #dashboard .settings-page .action-panel-icon,
body.integrated-mode #dashboard .support-page .action-panel-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

body.integrated-mode #dashboard .settings-page .action-panel-icon svg,
body.integrated-mode #dashboard .support-page .action-panel-icon svg {
  width: 19px !important;
  height: 19px !important;
}

body.integrated-mode #dashboard .settings-page img.action-panel-icon,
body.integrated-mode #dashboard .support-page img.action-panel-icon {
  padding: 8px !important;
}

body.integrated-mode #dashboard .settings-page .action-panel-body,
body.integrated-mode #dashboard .support-page .action-panel-body {
  gap: 1px !important;
}

body.integrated-mode #dashboard .settings-page .action-panel-title,
body.integrated-mode #dashboard .support-page .action-panel-title {
  font-size: var(--text-secondary) !important;
  line-height: 1.25 !important;
  font-weight: var(--font-medium) !important;
}

body.integrated-mode #dashboard .settings-page .action-panel-subtitle,
body.integrated-mode #dashboard .support-page .action-panel-subtitle {
  font-size: var(--text-caption) !important;
  line-height: 1.3 !important;
  font-weight: var(--font-light) !important;
}

body.integrated-mode #dashboard .settings-page .action-panel-action,
body.integrated-mode #dashboard .settings-page .action-panel-action:hover,
body.integrated-mode #dashboard .support-page .action-panel-action,
body.integrated-mode #dashboard .support-page .action-panel-action:hover {
  min-height: 32px !important;
  max-width: 104px !important;
  padding: 5px 9px !important;
  border: 1px solid var(--border-primary) !important;
  border-radius: 10px !important;
  background: var(--surface-secondary) !important;
  color: var(--text-secondary-color) !important;
  font-size: var(--text-caption) !important;
  line-height: 1.2 !important;
  font-weight: var(--font-regular) !important;
}

body.integrated-mode #dashboard .settings-page .profile-settings-card {
  grid-template-columns: 48px minmax(0, 1fr) 66px !important;
}

body.integrated-mode #dashboard .settings-page .profile-settings-avatar {
  width: 48px !important;
  height: 48px !important;
}

body.integrated-mode #dashboard .settings-page .profile-settings-actions {
  width: 66px !important;
  gap: 4px !important;
}

body.integrated-mode #dashboard .settings-page .profile-settings-actions .action-panel-action {
  min-height: 29px !important;
  padding: 4px 7px !important;
}

body.integrated-mode #dashboard .settings-page .top-control {
  padding: 2px !important;
  border-color: var(--border-primary) !important;
  background: var(--surface-secondary) !important;
}

body.integrated-mode #dashboard .settings-page .lang-pill {
  color: var(--text-secondary-color) !important;
  font-weight: var(--font-regular) !important;
}

body.integrated-mode #dashboard .settings-page .lang-pill.active {
  background: var(--surface-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .08) !important;
}

body.integrated-mode #dashboard .support-page .action-panel.danger .action-panel-action,
body.integrated-mode #dashboard .support-page .action-panel.danger .action-panel-action:hover {
  background: #FFFFFF !important;
  color: var(--danger) !important;
  border-color: rgba(214, 40, 40, .24) !important;
}

body.integrated-mode #dashboard .support-page {
  margin-top: 12px !important;
  padding-top: 4px !important;
}

@media (max-width: 899px) {
  body.integrated-mode #dashboard .support-page {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }
}

body.integrated-mode #dashboard .support-page .profile-link-card .action-panel-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.login-wordmark,
.wordmark,
.brand h1 {
  font-size: 48px !important;
  line-height: 1.05 !important;
}

.app-loader-title .brand-logo {
  font-size: clamp(64px, 18vw, 88px) !important;
  line-height: 1 !important;
}

.app-loader-card {
  width: min(100%, 420px) !important;
  display: block !important;
  position: relative !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-loader-card .app-loader-progress {
  position: absolute !important;
  top: calc(100% + var(--space-20)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.app-loader-title {
  display: grid !important;
  justify-items: center !important;
  gap: var(--space-12) !important;
  margin: 0 !important;
  text-align: center !important;
}

.app-loader-title .brand-logo .brand-red {
  color: var(--danger) !important;
}

.app-loader-title .loader-tagline {
  display: block !important;
  color: var(--text-secondary-color) !important;
  font-family: var(--font-interface) !important;
  font-size: var(--body-medium) !important;
  font-weight: var(--font-regular) !important;
  line-height: var(--line-height) !important;
}

@media (max-width: 899px) {
  .app-loader {
    inset: 0 auto auto 0 !important;
    width: 100vw !important;
    height: 100svh !important;
    min-height: 100svh !important;
    padding: 0 !important;
    display: block !important;
  }

  .app-loader-card {
    position: absolute !important;
    top: 44% !important;
    left: 50% !important;
    width: min(calc(100vw - 40px), 420px) !important;
    transform: translate(-50%, -50%) !important;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 899px) {
    .app-loader {
      height: 100dvh !important;
      min-height: 100dvh !important;
    }
  }
}

/* Calm interaction animations */
@keyframes bottomNavIconTap {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: scale(.82) rotate(-5deg); opacity: .68; }
  72% { transform: scale(1.14) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes bookmarkAdd {
  0% { transform: scale(.72) translateY(3px) rotate(-7deg); opacity: .42; }
  48% { transform: scale(1.3) translateY(-2px) rotate(4deg); opacity: 1; }
  76% { transform: scale(.94) translateY(0) rotate(-2deg); opacity: .9; }
  100% { transform: scale(1) translateY(0) rotate(0); opacity: 1; }
}

@keyframes bookmarkRemove {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(.7) translateY(3px) rotate(6deg); opacity: .35; }
  72% { transform: scale(1.08) translateY(0) rotate(-2deg); opacity: .72; }
  100% { transform: scale(1) translateY(0) rotate(0); opacity: 1; }
}

.favorite-button.bookmark-adding .bookmark-icon {
  animation-duration: 420ms !important;
  animation-timing-function: cubic-bezier(.2, .82, .28, 1.18) !important;
  will-change: transform, opacity;
}

.favorite-button.bookmark-removing .bookmark-icon {
  animation-duration: 340ms !important;
  animation-timing-function: ease-out !important;
  will-change: transform, opacity;
}

.nav button.nav-icon-tap .nav-icon-svg,
.nav button.nav-icon-tap img {
  animation-duration: 360ms !important;
  animation-timing-function: cubic-bezier(.2, .82, .28, 1.14) !important;
  will-change: transform, opacity;
}

/* One fixed, non-stretching close-button style across client and master sheets. */
.close-sheet,
.rating-popover-close,
.sheet-close,
.master-rating-popover-close,
.close-sheet:hover,
.rating-popover-close:hover,
.sheet-close:hover,
.master-rating-popover-close:hover,
.close-sheet:active,
.rating-popover-close:active,
.sheet-close:active,
.master-rating-popover-close:active {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #111111 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.close-sheet::before,
.close-sheet::after,
.rating-popover-close::before,
.rating-popover-close::after,
.sheet-close::before,
.sheet-close::after,
.master-rating-popover-close::before,
.master-rating-popover-close::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 13px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: #FFFFFF !important;
}

.close-sheet::before,
.rating-popover-close::before,
.sheet-close::before,
.master-rating-popover-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.close-sheet::after,
.rating-popover-close::after,
.sheet-close::after,
.master-rating-popover-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

@media (min-width: 900px) {
  .app {
    width: min(600px, calc(100% - 48px)) !important;
    max-width: 600px !important;
  }

  body > .nav {
    padding-right: max(0px, calc((100vw - 600px) / 2)) !important;
    padding-left: max(0px, calc((100vw - 600px) / 2)) !important;
  }

  .master-card:hover {
    transform: none !important;
  }
}

.boot-card,
.login-card {
  width: min(100%, 480px) !important;
  min-height: auto !important;
  margin: clamp(32px, 12vh, 112px) auto !important;
  padding: var(--space-32) var(--space-24) !important;
}

@media (max-width: 480px) {
  .app,
  .main {
    padding-left: var(--space-16) !important;
    padding-right: var(--space-16) !important;
  }

  .master-card,
  .account-panel,
  .action-panel,
  .panel,
  .profile-card,
  .signup-section {
    padding: var(--space-16) !important;
  }
}

/* Client job requests */
.screen[data-screen="requests"] {
  padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
}

.job-request-page,
#jobRequestPanel {
  display: grid;
  gap: 14px;
}

.job-request-heading {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  text-align: center;
}

.job-request-create-trigger {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px 10px 17px;
  border: 0;
  border-radius: 16px;
  background: #16A34A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 7px 16px -10px rgba(22, 163, 74, .72);
  transition: transform .16s ease, background-color .16s ease;
}

.job-request-create-trigger:active {
  transform: scale(.985);
  background: #15803D;
}

.job-request-create-trigger b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  color: #16A34A;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

body.job-request-composer-open {
  overflow: hidden;
}

.job-request-composer {
  position: fixed;
  inset: 0;
  z-index: 180;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #F8F9FA;
}

.job-request-composer-page {
  width: min(100%, 600px);
  min-height: 100%;
  margin: 0 auto;
  padding: 0 14px calc(28px + env(safe-area-inset-bottom));
  background: #F8F9FA;
}

.job-request-composer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 72px;
  margin: 0 -14px 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid rgba(229, 231, 235, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-request-composer-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.job-request-composer-head p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.job-request-composer .job-request-form {
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.job-request-composer .job-request-submit {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 10px 24px -14px rgba(17, 17, 17, .72);
}

.job-request-form,
.job-request-auth,
.job-request-card {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-large);
  background: var(--surface-primary);
  box-shadow: 0 3px 5px -4px rgba(17, 17, 17, .24);
}

.job-request-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.job-request-form h2,
.my-job-requests > h2,
.job-request-auth h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.job-request-form label {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #E1E4E8;
  border-radius: 15px;
  background: #F7F8F9;
  box-shadow:
    0 3px 7px -6px rgba(17, 17, 17, .34),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.job-request-form label:focus-within {
  border-color: #B9BEC6;
  background: #FFFFFF;
  box-shadow:
    0 5px 12px -8px rgba(17, 17, 17, .4),
    0 0 0 2px rgba(17, 17, 17, .05);
}

.job-request-form label > span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.job-request-form input,
.job-request-form select,
.job-request-form textarea,
.master-job-response-form input,
.master-job-response-form textarea {
  width: 100%;
  border: 1px solid #C9CED6;
  border-radius: 13px;
  background: var(--surface-primary);
  color: var(--text-primary);
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  box-shadow:
    inset 0 2px 4px rgba(17, 17, 17, .08),
    0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.job-request-form textarea,
.master-job-response-form textarea {
  min-height: 112px;
  resize: vertical;
}

.job-request-form input:focus,
.job-request-form select:focus,
.job-request-form textarea:focus,
.master-job-response-form input:focus,
.master-job-response-form textarea:focus {
  border-color: #6B7280;
  background: #FFFFFF;
  box-shadow:
    inset 0 1px 2px rgba(17, 17, 17, .05),
    0 0 0 3px rgba(17, 17, 17, .07);
}

.job-request-form label > small {
  color: var(--text-caption-color);
  font-size: 12px;
  text-align: right;
}

.job-request-privacy,
.job-request-notice,
.job-request-auth p,
.job-request-empty-response {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.job-request-notice {
  padding: 10px 11px;
  border-radius: 11px;
  background: #F0FDF4;
  color: #15803D;
}

.job-request-notice.error {
  background: #FFF7F7;
  color: #B42318;
}

.job-request-submit,
.job-request-auth button,
.job-response-actions button.primary,
.master-job-response-form button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: #111111;
  color: #FFFFFF;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

.job-request-submit {
  background: #16A34A;
}

.job-request-submit:not(:disabled):active {
  background: #15803D;
}

.job-request-submit:disabled,
.master-job-response-form button:disabled {
  opacity: .55;
}

.job-request-auth {
  display: grid;
  gap: 10px;
  padding: 20px 16px;
  text-align: center;
}

.my-job-requests {
  display: grid;
  gap: 11px;
  margin-top: 4px;
}

.job-request-card {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.job-request-card.inactive {
  background: #F5F6F7;
  border-color: #D9DDE2;
  cursor: default;
}

.job-request-card-head,
.job-response-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.job-request-card-head > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.job-request-card-head b {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.job-request-card-head small,
.job-response-master-copy small {
  color: var(--text-secondary);
  font-size: 12px;
}

.job-request-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #F0FDF4;
  color: #15803D;
  font-size: 12px;
  font-weight: 500;
}

.job-request-status.assigned {
  background: #E5E7EB;
  color: #4B5563;
}

.job-request-description {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.job-request-response-title {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.job-request-response-title {
  padding-top: 9px;
  border-top: 1px solid var(--border-secondary);
  color: var(--text-primary);
  font-weight: 500;
}

.job-response-list {
  display: grid;
  gap: 8px;
}

.job-response-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--border-secondary);
  border-radius: 14px;
  background: var(--surface-primary);
}

.job-response-card.selected {
  border-color: rgba(22, 163, 74, .28);
  background: #F0FDF4;
}

.job-response-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #D1D5DB;
  border-radius: 50%;
  background: #F3F4F6;
  color: var(--text-primary);
  font-weight: 600;
}

.job-response-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-response-master-copy {
  min-width: 0;
  margin-right: auto;
  display: grid;
  gap: 2px;
}

.job-response-master-copy b,
.job-response-master strong {
  color: var(--text-primary);
  font-size: 14px;
}

.job-response-card > p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.job-response-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.job-response-actions button,
.job-request-delete {
  min-height: 39px;
  border: 1px solid var(--border-primary);
  border-radius: 11px;
  background: var(--surface-primary);
  color: var(--text-primary);
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}

.job-response-selected {
  color: #15803D;
  font-size: 13px;
  font-weight: 500;
}

.job-request-delete {
  justify-self: start;
  min-height: 34px;
  color: #B42318;
  border-color: rgba(180, 35, 24, .2);
  background: transparent;
}

/* Master job request feed */
.master-job-card {
  display: grid;
  gap: 10px;
}

.master-job-open {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.master-job-open-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #F0FDF4;
  color: #15803D;
  font-size: 22px;
}

.master-job-open-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.master-job-open-copy b {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
}

.master-job-open-copy span {
  color: var(--text-secondary);
  font-size: 13px;
}

.master-job-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111111;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}

.master-job-count.selected {
  background: #16A34A;
}

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

#masterJobsSheet {
  z-index: 235 !important;
}

#masterJobsSheet .sheet-panel {
  max-height: min(92dvh, 820px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

#masterJobsSheet .master-jobs-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.master-job-item {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--surface-primary);
}

.master-job-item.selected {
  border-color: rgba(22, 163, 74, .3);
  background: #F0FDF4;
}

.master-job-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.master-job-item-head span {
  display: grid;
  gap: 2px;
}

.master-job-item-head b {
  color: var(--text-primary);
  font-size: 16px;
}

.master-job-item-head small {
  color: var(--text-secondary);
  font-size: 13px;
}

.master-job-item > p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.master-job-response-form {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-secondary);
}

.master-job-contact {
  padding: 11px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.master-job-contact a {
  color: var(--link);
  font-weight: 500;
}

.master-job-item {
  gap: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px -8px rgba(17, 24, 39, .48);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.master-job-item.expanded {
  border-color: #D5D9DE;
  box-shadow: 0 8px 18px -13px rgba(17, 24, 39, .55);
}

.master-job-item-head {
  width: 100%;
  min-height: 62px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.master-job-item-head:active {
  background: #F9FAFB;
}

.master-job-head-actions {
  flex: 0 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 7px !important;
}

.master-job-item .job-request-status.responded {
  background: #DCFCE7;
  color: #15803D;
}

.master-job-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--text-secondary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}

.master-job-item.expanded .master-job-chevron {
  transform: rotate(180deg);
}

.master-job-item-body {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows .24s ease, opacity .18s ease;
}

.master-job-item.collapsed .master-job-item-body {
  grid-template-rows: 0fr;
  opacity: 0;
}

.master-job-item-body-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 9px;
  padding: 0 12px 12px;
}

.master-job-item-body-inner > p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.master-job-item.collapsed {
  border-color: #DDE1E6;
  box-shadow: 0 3px 7px -6px rgba(17, 24, 39, .35);
}

@media (max-width: 420px) {
  .master-job-item-head {
    align-items: center;
  }

  .master-job-head-actions {
    gap: 5px !important;
  }

  .master-job-item .job-request-status {
    padding: 4px 7px;
    font-size: 11px;
  }
}

/* Clear, compact hierarchy for client and master job-request cards. */
.job-request-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 10px -8px rgba(17, 24, 39, .5);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.job-request-card.inactive {
  background: #FFFFFF;
  border-color: #DDE1E6;
}

.job-request-card-head {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.job-request-card-head:active {
  background: #F9FAFB;
}

.job-request-title-mark {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 4px #DCFCE7;
}

.job-request-card.inactive .job-request-title-mark {
  background: #6B7280;
  box-shadow: 0 0 0 4px #E5E7EB;
}

.job-request-title-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.job-request-title-copy b {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-request-title-copy small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-request-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-request-card .job-request-status {
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.2;
}

.job-request-chevron {
  width: 19px;
  height: 19px;
  color: var(--text-secondary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}

.job-request-card.expanded .job-request-chevron {
  transform: rotate(180deg);
}

.job-request-card .job-request-description {
  margin: 0;
  padding: 0 12px 9px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
}

.job-request-card.collapsed .job-request-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-request-facts,
.master-job-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  padding: 8px 12px;
  border-top: 1px solid #F0F1F3;
  background: #FAFAFA;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

.job-request-facts span,
.master-job-facts span {
  position: relative;
}

.job-request-facts span + span::before,
.master-job-facts span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #9CA3AF;
}

.job-request-facts .address,
.master-job-facts .location {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-request-facts .expiry,
.master-job-facts .expiry {
  color: #92400E;
}

.job-request-facts .responses {
  color: var(--text-primary);
}

.job-request-card-details {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows .24s ease, opacity .18s ease;
}

.job-request-card.collapsed .job-request-card-details {
  grid-template-rows: 0fr;
  opacity: 0;
}

.job-request-card-details-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
}

.job-request-card .job-request-response-title {
  padding: 0;
  border: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.job-request-card .job-request-empty-response {
  padding: 10px;
  border-radius: 10px;
  background: #F8F9FA;
  font-size: 13px;
  text-align: center;
}

.job-request-card .job-response-list {
  gap: 7px;
}

.job-request-card .job-response-card {
  gap: 7px;
  padding: 10px;
  border-radius: 12px;
  border-left: 3px solid #D1D5DB;
  box-shadow: none;
}

.job-request-card .job-response-card.selected {
  border-left-color: #16A34A;
}

.job-request-card .job-response-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 13px;
}

.job-request-card .job-response-master-copy b {
  font-size: 13px;
}

.job-request-card .job-response-master-copy small {
  font-size: 11px;
}

.job-request-card .job-response-master > strong {
  padding: 4px 7px;
  border-radius: 8px;
  background: #F3F4F6;
  color: var(--text-primary);
  font-size: 12px;
  white-space: nowrap;
}

.job-request-card .job-response-card > p {
  font-size: 13px;
  line-height: 1.42;
}

.job-request-card .job-response-actions {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  gap: 6px;
}

.job-request-card .job-response-actions button {
  min-height: 38px;
  padding: 7px 8px;
  font-size: 12px;
}

.job-request-card .job-request-delete {
  min-height: 32px;
  margin-top: 2px;
  padding: 5px 8px;
  border-color: transparent;
  color: #B42318;
  font-size: 12px;
}

.master-job-item-head {
  min-height: 56px;
  padding: 9px 11px;
}

.master-job-item-head b {
  font-size: 15px;
  line-height: 1.3;
}

.master-job-item-head small {
  font-size: 11px;
  font-weight: 400;
}

.master-job-description {
  margin: 0 11px 8px;
  padding: 9px 10px;
  border: 1px solid #E7E9ED;
  border-radius: 11px;
  background: #F7F8F9;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.42;
  white-space: pre-wrap;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .04);
}

.master-job-item.collapsed .master-job-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.master-job-facts {
  padding: 7px 11px;
}

.master-job-item-body-inner {
  gap: 8px;
  padding: 9px 11px 11px;
  border-top: 1px solid #ECEEF1;
}

.master-job-response-form {
  gap: 9px;
  padding: 10px;
  border: 1px solid #E1E4E8;
  border-radius: 14px;
  background: #F7F8F9;
  box-shadow:
    0 3px 7px -6px rgba(17, 17, 17, .34),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.master-job-response-form label {
  display: grid;
  gap: 5px;
}

.master-job-response-form label > span {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

#masterJobsSheet .master-job-response-form textarea {
  min-height: 86px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #FFFFFF;
  font-size: 14px;
}

#masterJobsSheet .master-job-response-form input {
  padding: 9px 10px;
  border-radius: 11px;
  background: #FFFFFF;
  font-size: 14px;
}

#masterJobsSheet .master-job-response-form button {
  min-height: 41px;
  border-radius: 11px;
  font-size: 14px;
}

@media (max-width: 390px) {
  .job-request-card-head {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .job-request-card .job-request-status {
    display: none;
  }

  .job-request-card .job-response-actions {
    grid-template-columns: 1fr;
  }
}

/* Master cabinet: compact, readable incoming client requests. */
#masterJobsSheet .sheet-panel {
  width: min(100%, 600px);
  max-height: min(92dvh, 820px);
  padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
}

#masterJobsSheet .sheet-title {
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.master-jobs-sheet-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.master-jobs-sheet-title > span:last-child {
  min-width: 0;
}

.master-jobs-sheet-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #F0FDF4;
  color: #15803D;
}

.master-jobs-sheet-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

#masterJobsSheet .sheet-title h2 {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterJobsSheet .sheet-title .hint {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterJobsSheet .master-jobs-list {
  gap: 9px;
  padding: 1px 2px calc(12px + env(safe-area-inset-bottom));
}

#masterJobsSheet .master-job-item {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #E1E4E8;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 5px 13px -11px rgba(17, 24, 39, .72);
}

#masterJobsSheet .master-job-item.expanded {
  border-color: #CDD2D8;
  box-shadow: 0 9px 22px -16px rgba(17, 24, 39, .7);
}

#masterJobsSheet .master-job-item.selected {
  border-color: rgba(22, 163, 74, .32);
  background: #FFFFFF;
}

#masterJobsSheet .master-job-item-head {
  min-height: 58px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.master-job-leading-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid !important;
  place-items: center;
  background: #F3F4F6;
  color: #374151;
}

.master-job-leading-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.master-job-title-copy {
  min-width: 0;
  display: grid !important;
  gap: 2px !important;
}

#masterJobsSheet .master-job-title-copy b {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterJobsSheet .master-job-title-copy small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterJobsSheet .master-job-head-actions {
  min-width: 0;
  gap: 5px !important;
}

#masterJobsSheet .job-request-status {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

#masterJobsSheet .job-request-status.new {
  background: #F3F4F6;
  color: #4B5563;
}

#masterJobsSheet .job-request-status.responded,
#masterJobsSheet .job-request-status.selected {
  background: #DCFCE7;
  color: #15803D;
}

#masterJobsSheet .master-job-chevron {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

#masterJobsSheet .master-job-description {
  margin: 0;
  padding: 0 11px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.42;
  box-shadow: none;
}

#masterJobsSheet .master-job-item.collapsed .master-job-description {
  margin-bottom: 9px;
  padding-bottom: 0;
  -webkit-line-clamp: 2;
}

#masterJobsSheet .master-job-facts {
  min-width: 0;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid #F0F1F3;
  background: #FAFAFA;
}

#masterJobsSheet .master-job-facts span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

#masterJobsSheet .master-job-facts span + span::before {
  display: none;
}

#masterJobsSheet .master-job-facts svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#masterJobsSheet .master-job-facts .location {
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterJobsSheet .master-job-facts .expiry {
  color: #92400E;
  white-space: nowrap;
}

#masterJobsSheet .master-job-item-body-inner {
  gap: 8px;
  padding: 10px 11px 11px;
  border-top: 1px solid #E9EBEE;
  background: #FFFFFF;
}

#masterJobsSheet .master-job-response-form {
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.master-job-response-title {
  display: grid;
  gap: 1px;
}

.master-job-response-title b {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.master-job-response-title span {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

#masterJobsSheet .master-job-response-form label {
  gap: 5px;
}

#masterJobsSheet .master-job-response-form label > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

#masterJobsSheet .master-job-response-form textarea,
#masterJobsSheet .master-job-response-form input {
  border: 1px solid #D5D9DE;
  background: #F8F9FA;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .05);
}

#masterJobsSheet .master-job-response-form textarea {
  min-height: 82px;
  resize: vertical;
}

.master-job-response-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

#masterJobsSheet .master-job-response-actions button {
  min-width: 126px;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 11px;
  white-space: nowrap;
}

#masterJobsSheet .master-job-contact {
  padding: 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid #BBF7D0;
  border-radius: 13px;
  background: #F0FDF4;
}

.master-job-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
}

.master-job-contact-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.master-job-contact-copy b {
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}

.master-job-contact-copy small,
.master-job-contact-copy span,
.master-job-contact-copy em {
  color: #4B5563;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.master-job-contact-copy a {
  width: fit-content;
  margin-top: 3px;
  color: #111111;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 420px) {
  #masterJobsSheet .sheet-panel {
    width: 100%;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    border-radius: 20px 20px 0 0 !important;
  }

  #masterJobsSheet .master-job-item-head {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px 9px;
  }

  .master-job-leading-icon {
    width: 34px;
    height: 34px;
  }

  #masterJobsSheet .job-request-status {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #masterJobsSheet .master-job-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .master-job-response-actions {
    grid-template-columns: 1fr;
  }

  #masterJobsSheet .master-job-response-actions button {
    width: 100%;
  }
}

/* Compact received-reviews sheet in the master cabinet. */
#reviewsSheet {
  z-index: 235 !important;
}

#reviewsSheet .master-reviews-panel {
  width: min(100%, 520px) !important;
  max-height: min(86dvh, 760px) !important;
  padding: 6px 12px 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  overflow: hidden !important;
  border-radius: 22px 22px 0 0 !important;
}

#reviewsSheet .sheet-handle {
  width: 36px !important;
  height: 4px !important;
  margin: 0 auto 6px !important;
}

#reviewsSheet .master-reviews-title {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto 36px !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 4px 0 10px !important;
  border-bottom: 1px solid var(--border-secondary) !important;
}

.master-reviews-title-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.master-reviews-title-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #FFFBEB;
  color: #F59E0B;
  font-size: 19px;
  line-height: 1;
}

.master-reviews-title-copy > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

#reviewsSheetTitle {
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.master-reviews-title-copy small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reviewsSheet #reviewsSheetCount {
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

#reviewsSheet #closeReviewsSheet {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

#reviewsSheet #reviews {
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  padding: 10px 0 calc(16px + env(safe-area-inset-bottom)) !important;
}

#reviewsSheet #reviews .master-review-item {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 15px !important;
  background: var(--surface-primary) !important;
  box-shadow: 0 3px 7px -5px rgba(17, 24, 39, .3) !important;
}

#reviewsSheet #reviews .master-review-head {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
}

#reviewsSheet #reviews .master-review-author-avatar {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 50% !important;
  background: #F3F4F6 !important;
  color: #111111 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

#reviewsSheet #reviews .master-review-author {
  min-width: 0;
  display: grid !important;
  gap: 1px !important;
}

#reviewsSheet #reviews .master-review-author b {
  overflow: hidden;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reviewsSheet #reviews .master-review-author time {
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

#reviewsSheet #reviews .master-review-rating {
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  border-radius: 999px !important;
  background: #FFFBEB !important;
  color: #B45309 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

#reviewsSheet #reviews .master-review-text {
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  white-space: pre-wrap !important;
}

#reviewsSheet #reviews .master-review-traits {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}

#reviewsSheet #reviews .master-review-traits span {
  min-height: 25px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.15;
}

#reviewsSheet #reviews .master-review-traits span.positive {
  border-color: #BBF7D0;
  background: #F0FDF4;
  color: #166534;
}

#reviewsSheet #reviews .master-review-traits span.negative {
  border-color: #FECACA;
  background: #FEF2F2;
  color: #991B1B;
}

#reviewsSheet #reviews .master-review-traits i {
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}

#reviewsSheet #reviews .master-review-footer {
  min-height: 20px;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

#reviewsSheet #reviews .master-review-like {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

#reviewsSheet #reviews .master-reviews-state {
  padding: 28px 14px !important;
  border: 1px dashed var(--border-card) !important;
  border-radius: 15px !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

#reviewsSheet #reviews .master-reviews-state.error {
  border-color: #FECACA !important;
  background: #FEF2F2 !important;
  color: #991B1B !important;
}

/* Master wallet and paid contact presentation. */
.master-wallet-card {
  display: grid !important;
  gap: 7px !important;
}

.master-wallet-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.master-wallet-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #111111;
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 500;
}

.master-wallet-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.master-wallet-copy small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

.master-wallet-copy b {
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.master-wallet-topup {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #DDE1E6;
  border-radius: 10px;
  background: #F5F6F7;
  color: #8A929E;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: not-allowed;
  opacity: 1;
}

.master-wallet-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

.master-wallet-hint.is-empty {
  color: #B42318;
  font-weight: 500;
}

.stats-paid-card {
  border-color: #E8CF8A !important;
  background: #FFFCF2 !important;
}

.stats-paid-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.stats-paid-summary > div {
  min-width: 0;
  min-height: 68px;
  padding: 9px;
  display: grid;
  align-content: space-between;
  gap: 5px;
  border: 1px solid #F0E2B5;
  border-radius: 11px;
  background: #FFFFFF;
}

.stats-paid-summary small {
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.25;
}

.stats-paid-summary b {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.stats-paid-list {
  display: grid;
  gap: 6px;
}

.stats-paid-row {
  min-height: 48px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  background: #FFFFFF;
}

.stats-paid-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #F5F6F7;
  font-size: 17px;
}

.stats-paid-icon.brand {
  overflow: hidden;
}

.stats-paid-icon.brand img,
.stats-paid-icon.brand svg {
  width: 22px;
  height: 22px;
  display: block;
}

.stats-paid-icon.brand.telegram {
  background: #EAF6FC;
}

.stats-paid-icon.brand.telegram img {
  border-radius: 50%;
}

.stats-paid-icon.brand.whatsapp {
  background: #25D366;
}

.stats-paid-icon.brand.whatsapp svg {
  fill: #FFFFFF;
}

.stats-paid-icon.brand.request {
  background: #F0FDF4;
}

.stats-paid-icon.brand.request svg {
  fill: #15803D;
}

.stats-paid-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.stats-paid-row b {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.stats-paid-row small {
  color: var(--text-secondary);
  font-size: 10px;
}

.stats-paid-row strong {
  color: #7A5600;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.stats-paid-total {
  margin: 0;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: right;
}

@media (max-width: 430px) {
  .stats-paid-summary {
    grid-template-columns: 1fr 1fr;
  }

  .stats-paid-summary > div:last-child {
    grid-column: 1 / -1;
    min-height: 55px;
  }
}

@media (max-width: 520px) {
  #reviewsSheet .master-reviews-panel {
    max-height: 82dvh !important;
    padding-inline: 10px !important;
  }

  .master-reviews-title-copy small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* Mobile keyboard: use the visible viewport instead of layout vh so inputs and
   primary actions remain reachable above the software keyboard. */
:root {
  --sheberler-visible-height: 100dvh;
  --sheberler-visible-top: 0px;
}

body.keyboard-open .nav,
body.keyboard-open .dashboard-bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.keyboard-open .sheet,
body.keyboard-open .sheet-backdrop {
  top: var(--sheberler-visible-top) !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  height: var(--sheberler-visible-height) !important;
  min-height: 0 !important;
}

body.keyboard-open .sheet-body,
body.keyboard-open .sheet-panel {
  max-height: calc(var(--sheberler-visible-height) - 4px) !important;
  overscroll-behavior: contain;
  scroll-padding-top: 24px;
  scroll-padding-bottom: 96px;
}

body.keyboard-open main,
body.keyboard-open .screen {
  scroll-padding-bottom: 112px;
}

@supports not (height: 100dvh) {
  :root { --sheberler-visible-height: 100vh; }
}
