.eyebrow {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.screen-card--highlight .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.muted-copy,
.support-copy,
.lead-copy,
.error-copy {
  margin: 0;
}

.muted-copy,
.support-copy {
  color: var(--text-secondary);
}

.screen-card--highlight .muted-copy,
.screen-card--highlight .support-copy,
.screen-card--highlight .lead-copy {
  color: rgba(255, 255, 255, 0.86);
}

.lead-copy {
  font-size: 1rem;
  line-height: 1.55;
}

.mode-pill,
.theme-chip,
.action-button,
.bottom-nav__item,
.driver-option,
.action-puck {
  border: none;
}

.theme-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.theme-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--slate-soft);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}

.theme-chip.is-active {
  background: var(--bg-surface-strong);
  color: var(--brand-strong);
  border-color: var(--border-strong);
  box-shadow: inset 0 0 0 1px rgba(20, 168, 204, 0.16);
}

.progress-panel {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.progress-panel__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-panel__status strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.progress-panel__chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--bg-surface-strong));
  color: var(--brand-strong);
  font-size: 1rem;
  font-weight: 800;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--slate-soft);
  overflow: hidden;
}

.progress-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bg-accent-soft);
}

.progress-strip {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.progress-strip--compact {
  grid-auto-columns: minmax(34px, max-content);
}

.progress-step {
  display: grid;
  justify-items: center;
  align-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

.progress-step.is-current {
  background: color-mix(in srgb, var(--brand) 18%, var(--bg-surface));
  color: var(--brand-strong);
  border-color: var(--border-strong);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.progress-step.is-current .progress-step__dot {
  color: var(--brand-strong);
}

.progress-step.is-complete {
  background: var(--success-soft);
  color: var(--success);
}

.progress-step__dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
}

.progress-step__label {
  display: none;
}

.app-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.app-topline__copy {
  min-width: 0;
}

.app-topline__copy .eyebrow {
  margin-bottom: 2px;
}

.app-topline__copy .muted-copy {
  font-size: 1rem;
}

.app-topline__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-action-button {
  position: relative;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.icon-action-button__glyph {
  font-size: 1rem;
}

.icon-action-button__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff8b5b;
  color: #0c1524;
  font-size: 1rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.screen-code-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-strong);
  letter-spacing: 0.03em;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-surface-strong));
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2,
.section-heading h3 {
  font-family: var(--font-display);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list--compact {
  gap: 8px;
}

.detail-list--on-dark dt,
.detail-list--on-dark dd {
  color: rgba(255, 255, 255, 0.9);
}

.detail-list div,
.detail-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-list dt,
.detail-pair dt {
  color: var(--text-secondary);
}

.detail-list dd,
.detail-pair dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.driver-list,
.form-stack,
.list-stack,
.form-shell {
  display: grid;
  gap: 12px;
}

.form-stack--tight,
.form-shell--compact {
  gap: 10px;
}

.driver-option {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  display: grid;
  gap: 4px;
}

.driver-option__name {
  font-weight: 700;
  color: var(--text-primary);
}

.driver-option__meta {
  color: var(--text-secondary);
  font-size: 1rem;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 1rem;
  font-weight: 700;
}

.field-block input,
.field-block textarea,
.field-block select {
  width: 100%;
  min-height: 58px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 14px 16px;
}

.field-block textarea {
  min-height: 120px;
  resize: vertical;
}

.pin-input {
  text-align: center;
  letter-spacing: 0.55em;
  font-size: 1.4rem;
}

.pin-heading {
  display: grid;
  gap: 2px;
}

.compact-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.compact-header-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.pin-demo-tools {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.dev-tools {
  display: flex;
  justify-content: center;
}

.dev-tools .action-button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--slate-soft);
}

.pin-dot.is-filled {
  background: var(--brand);
}

.error-copy {
  color: var(--danger);
  font-size: 1rem;
}

.camera-dropzone {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed var(--border-soft);
  background: var(--bg-surface);
}

.camera-dropzone__title {
  font-weight: 700;
}

.camera-dropzone__copy {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.4;
}

.camera-dropzone__input {
  margin-top: 8px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions--single {
  grid-template-columns: 1fr;
}

.quick-actions--two-fixed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-actions--tight {
  gap: 8px;
}

.action-button {
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}

.action-button--full {
  width: 100%;
}

.action-button--primary {
  background: var(--bg-accent-soft);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 168, 204, 0.18);
}

.action-button--secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.action-button--break-reminder {
  background: linear-gradient(160deg, #ffab3d 0%, #ff7900 100%);
  color: #0c1524;
  border-color: #ff7900;
}

.action-button--danger {
  background: linear-gradient(160deg, #eb5d56 0%, #d83f3a 100%);
  color: #ffffff;
}

.action-button--camera {
  min-height: 62px;
  font-size: 1rem;
}

.action-button:disabled {
  opacity: 0.55;
}

.action-button--small {
  min-height: 44px !important;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  font-size: 1rem;
}

.action-button--finalize {
  min-height: 52px !important;
  padding: 12px 20px !important;
  border-radius: 14px !important;
  font-size: 1rem;
}

.screen-card--summary-compact {
  padding: 14px 16px;
}

.photo-preview-card {
  display: grid;
  gap: 10px;
}

.photo-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-preview-toolbar__actions {
  display: flex;
  gap: 8px;
}

.photo-preview-toolbar__button {
  min-height: 40px;
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 14px;
}

.photo-preview-card__viewport {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--bg-surface);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.photo-preview-card__canvas {
  min-width: 0;
  margin: 0 auto;
}

.photo-preview-card__image {
  width: 100%;
  display: block;
  height: auto;
  background: var(--bg-surface);
}

/* Fit the entire TPV receipt without an inner scrolling/cropping viewport. */
.tpv-receipt-preview {
  display: block;
  width: 100%;
  min-width: 0;
  height: clamp(220px, 45vh, 340px);
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--bg-surface);
}

.null-service-pending-preview {
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-tile {
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
}

.metric-label {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.compact-finance,
.compact-finance__list {
  display: grid;
  gap: 10px;
}

.compact-finance__block {
  border-top: 1px solid var(--border-soft);
}

.compact-finance__header,
.compact-finance__row {
  display: grid;
  grid-template-columns: minmax(88px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

.compact-finance__header {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compact-finance__row,
.compact-finance__line {
  border-top: 1px solid var(--border-soft);
}

.compact-finance__row strong,
.compact-finance__header span:not(:first-child) {
  text-align: right;
}

.compact-finance__row--total {
  font-weight: 700;
}

.compact-finance__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.compact-finance__line span {
  color: var(--text-secondary);
}

.compact-finance__line strong {
  text-align: right;
}

.compact-finance__line--inline {
  align-items: flex-start;
  flex-direction: column;
}

.compact-finance__line--inline strong {
  text-align: left;
}

.compact-finance__line--highlight {
  font-weight: 700;
}

.compact-finance__line--highlight strong {
  color: var(--brand);
}

.status-pill,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
}

.status-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill.is-green {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.is-blue {
  background: var(--info-soft);
  color: var(--info);
}

.status-pill.is-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.is-slate,
.tag-chip {
  background: var(--slate-soft);
  color: var(--slate);
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}

.list-row--card {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: var(--bg-surface);
}

.list-row:first-child {
  border-top: none;
  padding-top: 0;
}

.list-row--card:first-child {
  padding-top: 16px;
}

.list-row__body {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
}

.list-row__body p {
  margin: 0;
}

.list-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-banner {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 1rem;
  font-weight: 700;
}

.feedback-banner--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.feedback-banner--tpv-cierre-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.feedback-banner.feedback-banner--close-coverage {
  padding: 22px 16px;
  border: 3px solid #ff6b6b;
  background: #a40000;
  color: #fff;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.list-stack--spaced {
  margin-top: 12px;
}

.bottom-nav__item {
  min-height: 64px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 4px;
  place-items: center;
}

.bottom-nav__item.is-active {
  background: rgba(73, 195, 222, 0.24);
  color: #ffffff;
}

.bottom-nav__icon {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bottom-nav__label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bottom-nav__label {
  font-size: 1rem;
}

.bottom-nav__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff8b5b;
  color: #0c1524;
  font-size: 1rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.app-brand {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.app-version {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.app-identity-line {
  margin-top: 3px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-replenishment-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-surface-strong));
  color: var(--brand-strong);
  font-size: 1rem;
  font-weight: 800;
}

.header-replenishment-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.header-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header-action-row .action-button {
  flex: 1 1 auto;
  min-width: 0;
}

.header-action-row--bottom {
  margin-top: 10px;
  justify-content: flex-end;
}

.field-block--compact {
  gap: 4px;
}

.field-block--compact .field-label {
  font-size: 1rem;
}

.field-block--compact input,
.field-block--compact textarea,
.field-block--compact select,
.form-shell--compact .field-block input,
.form-shell--compact .field-block select,
.form-shell--compact .field-block textarea {
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 1rem;
}

.field-block--compact textarea {
  min-height: 76px;
}

.km-entry-card {
  text-align: center;
}

.km-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  letter-spacing: -0.04em;
}

.km-input,
.amount-input {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem !important;
  font-weight: 800;
}

.compact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-form-grid--three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-data-line,
.compact-inline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 1rem;
}

.compact-data-line span {
  text-align: right;
  color: var(--text-secondary);
}

.section-mini-title {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compact-history {
  display: grid;
}

.compact-history__row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operational-header {
  align-items: center;
}

.operational-header > .header-action-row {
  justify-content: flex-end;
}

.flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(2, 8, 14, 0.88);
  backdrop-filter: blur(8px);
}

.flow-dialog {
  width: min(420px, 100%);
  max-width: 420px;
  min-width: 0;
  max-height: calc(100dvh - 32px);
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--bg-surface-strong);
  box-shadow: var(--shadow-soft);
}

.flow-dialog .compact-header-row > * {
  min-width: 0;
}

.flow-dialog .compact-header-row > :first-child {
  flex: 1 1 auto;
}

.flow-dialog .amount-input,
.flow-dialog .action-button--full {
  min-width: 0;
  max-width: 100%;
}

.flow-dialog > *,
.flow-dialog form,
.flow-dialog .photo-preview-card {
  min-width: 0;
  max-width: 100%;
}

.flow-dialog .feedback-banner {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* NULO actions and previews must remain inside narrow device viewports. */
.flow-dialog--null .header-action-row {
  width: 100%;
  min-width: 0;
}

.flow-dialog--null .header-action-row .action-button {
  flex: 1 1 0;
  width: 0;
  max-width: 100%;
}

.flow-dialog--null {
  max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
  margin-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.null-photo-actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.null-photo-actions__camera {
  min-height: 64px;
  width: 100%;
  font-size: 1.08rem;
  font-weight: 800;
}

.null-photo-actions__secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.null-photo-actions__secondary .action-button {
  min-height: 52px;
  width: 100%;
}

.flow-dialog--null .photo-preview-card__viewport {
  max-width: 100%;
  overflow-x: hidden;
}

.flow-dialog--null .photo-preview-card__image {
  max-width: 100%;
  object-fit: contain;
}

.platform-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.platform-button-grid .action-button:last-child {
  grid-column: 1 / -1;
}

.compact-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.photo-demo-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--border-soft);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.photo-confirm-actions {
  margin-top: 8px;
}

.summary-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background: var(--bg-highlight);
  box-shadow: var(--shadow-soft);
}

.summary-hero--accent {
  background: linear-gradient(160deg, rgba(20, 168, 204, 0.12) 0%, rgba(20, 168, 204, 0.04) 100%);
}

.summary-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.summary-hero__title {
  display: grid;
  gap: 6px;
}

.summary-hero__title h2,
.summary-hero__title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.95rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.summary-hero__title p {
  margin: 0;
  color: var(--text-secondary);
}

.summary-hero__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.35rem;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-surface-strong));
  border: 1px solid var(--border-strong);
}

.summary-grid,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-tile,
.kpi-tile {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-soft);
}

.summary-tile strong,
.kpi-tile strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.summary-tile span,
.kpi-tile span {
  color: var(--text-secondary);
  font-size: 1rem;
}

.checkout-cash-pending {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 18%, var(--bg-surface)) 0%, var(--bg-surface) 100%);
}

.checkout-cash-pending > span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.checkout-cash-pending > strong {
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 12vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.checkout-cash-pending > p {
  margin: 0;
  color: var(--text-secondary);
}

.checkout-brief-summary > .eyebrow {
  margin-bottom: 10px;
}

.checkout-result .checkout-cash-pending {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  justify-items: stretch;
  gap: 4px 8px;
  padding: 10px 14px;
  text-align: left;
}

.checkout-result .checkout-cash-pending > span {
  font-size: 1rem;
}

.checkout-result .checkout-cash-pending > strong {
  font-size: 1.5rem;
  text-align: right;
  white-space: nowrap;
}

.checkout-result .checkout-cash-pending > p {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

.checkout-result .screen-card--summary-compact {
  padding: 10px 14px;
}

.checkout-result .detail-list {
  gap: 0;
}

.checkout-result .detail-pair {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
}

.checkout-result .detail-pair dt {
  min-width: 0;
}

.checkout-result .detail-pair dd {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.action-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.action-puck {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-align: center;
}

.action-puck__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 11%, var(--bg-surface-strong));
  color: var(--brand-strong);
  font-size: 1rem;
}

.action-puck__label {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.section-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface-strong);
  box-shadow: var(--shadow-soft);
}

.section-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-card__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.cta-dock {
  position: sticky;
  bottom: 14px;
  z-index: 8;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg-surface-strong) 90%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.cta-dock__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.cta-dock__meta {
  font-size: 1rem;
  text-align: center;
  color: var(--text-secondary);
}

.break-list {
  display: grid;
  gap: 10px;
}

.break-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.break-item__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-surface-strong));
  color: var(--brand-strong);
}

.break-item__body {
  display: grid;
  gap: 4px;
}

.break-item__body strong {
  font-size: 1rem;
}

.break-item__body span,
.break-item__time {
  color: var(--text-secondary);
  font-size: 1rem;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.finance-summary-card strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.finance-summary-card span {
  color: var(--text-secondary);
  font-size: 1rem;
}

.platform-list {
  display: grid;
  gap: 10px;
}

.platform-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.platform-badge {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 900;
  background: #0f1720;
  color: #ffffff;
}

.platform-badge--bolt {
  background: #26b983;
}

.platform-badge--uber {
  background: #111827;
}

.platform-badge--cabify,
.platform-badge--free {
  background: #e94c53;
}

.platform-row strong {
  font-size: 1rem;
}

.platform-row span {
  color: var(--text-secondary);
  font-size: 1rem;
}

.check-reminder-line {
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.35;
}

.incident-inline-form {
  margin-top: 9px;
}

.header-action-row .action-button:not(.action-button--small) {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 1rem;
}

@media (max-width: 420px) {
  .progress-panel__summary,
  .progress-panel__status,
  .metric-grid,
  .quick-actions {
    grid-template-columns: 1fr;
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid,
  .kpi-grid,
  .action-cluster,
  .finance-summary-grid,
  .cta-dock__row {
    grid-template-columns: 1fr;
  }

  .quick-actions--two-fixed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-finance__header,
  .compact-finance__row {
    grid-template-columns: minmax(74px, 1fr) repeat(3, minmax(58px, 0.9fr));
    gap: 8px;
    font-size: 1rem;
  }

  .detail-list div,
  .detail-pair,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-list dd,
  .detail-pair dd {
    text-align: left;
  }

  .list-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-finance__line {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-finance__line strong {
    text-align: left;
  }

  .photo-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .app-topline {
    align-items: center;
  }

  .app-topline__actions {
    gap: 5px;
  }

  .header-replenishment-button {
    padding-inline: 7px;
  }

  .compact-header-row {
    gap: 7px;
  }

  .compact-header-row h2 {
    font-size: 1rem;
  }

  .summary-hero {
    padding: 16px;
  }

  .summary-hero__title h2,
  .summary-hero__title h3 {
    font-size: 1.75rem;
  }

  .operational-header {
    align-items: flex-start;
  }

  .operational-header > .header-action-row {
    flex: 1;
  }

  .operational-header .action-button {
    font-size: 1rem;
    padding-inline: 10px !important;
  }
}

@media (max-width: 350px) {
  .compact-form-grid,
  .compact-form-grid--three {
    grid-template-columns: 1fr;
  }

  .compact-data-line {
    align-items: flex-start;
  }
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .progress-panel__chip {
    background: var(--info-soft);
  }

  .progress-step.is-current {
    background: var(--info-soft);
  }
}

.working-indicator {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: rgba(3, 10, 18, 0.62);
  color: #ffffff;
  backdrop-filter: blur(2px);
}

.working-indicator[hidden] {
  display: none;
}

.working-indicator__spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: working-spin 700ms linear infinite;
}

@keyframes working-spin {
  to { transform: rotate(360deg); }
}
/* Mobile readability: compact content, large text and distinct touch targets. */
.driver-app-shell, .driver-app-shell--flow {
  width: min(100%, 680px);
  padding: calc(8px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 12px 12px;
}
.main-content, .screen-stack { min-width: 0; gap: 8px; }
.screen-card, .screen-card--compact, .hero-card, .hero-card--compact {
  min-width: 0;
  padding: 8px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.screen-card + .screen-card { border-top: 1px solid var(--border-strong); }
.app-topline { flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.app-topline__copy { flex: 1 1 100%; }
.app-brand { font-size: 1.2rem; line-height: 1.2; }
.app-identity-line { max-width: none; white-space: normal; overflow: visible; line-height: 1.25; }
.app-topline__actions { width: 100%; flex-wrap: wrap; }
.icon-action-button { min-width: 56px; min-height: 56px; border-radius: 12px; }
.header-replenishment-button { flex: 1; min-height: 56px; font-size: 1rem; border-radius: 12px; }
.action-button, .action-button--small, .action-button--finalize {
  min-height: 64px !important;
  padding: 12px 16px !important;
  font-size: 1.1rem;
  line-height: 1.2;
  border-radius: 12px;
  white-space: normal;
}
.header-action-row { gap: 8px; }
.field-block input, .field-block select, .field-block textarea,
.field-block--compact input, .field-block--compact select, .field-block--compact textarea {
  min-height: 60px; font-size: 1.1rem; line-height: 1.3;
}
.field-label, .field-block--compact .field-label { font-size: 1rem; }
.eyebrow { font-size: 1rem; letter-spacing: 0.02em; }
.support-copy, .muted-copy, .feedback-banner { line-height: 1.35; }
.feedback-banner { padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }
.compact-data-line { align-items: flex-start; flex-wrap: wrap; padding: 8px 0; line-height: 1.3; }
.compact-data-line span { text-align: left; }
.compact-history__row { white-space: normal; overflow: visible; line-height: 1.3; }
.metric-card { padding: 8px 0; border: 0; box-shadow: none; background: transparent; }
.flow-step-label { margin: 0; padding: 4px 0; color: var(--text-secondary); font-size: 1rem; }
.shift-home .operational-header { display: grid; gap: 12px; }
.shift-home .operational-header .eyebrow { display: none; }
.shift-home .operational-header h2 { font-size: 1.4rem; }
.shift-home .operational-header .header-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shift-home .operational-header .header-action-row > :first-child { grid-column: 1 / -1; }
.shift-home .action-button { min-height: 72px !important; }
.shift-home .header-action-row--bottom { margin-top: 12px; }
.shift-history { border-top: 1px solid var(--border-soft); }
.shift-history summary { padding: 14px 0; min-height: 56px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.bottom-nav {
  position: sticky; bottom: 0; left: auto; right: auto; transform: none;
  width: 100%; margin-top: 12px; padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  border-radius: 0; gap: 6px; background: var(--bg-app);
}
.bottom-nav__item { min-width: 0; min-height: 68px; padding: 8px 3px; border-radius: 12px; }
.bottom-nav__label { font-size: 1rem; overflow-wrap: anywhere; }
.bottom-nav__label-row { flex-wrap: wrap; justify-content: center; }
@media (max-width: 380px) {
  .bottom-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-form-grid, .compact-form-grid--three { grid-template-columns: 1fr; }
  .compact-header-row { flex-wrap: wrap; }
}

/* Keep the shift completion control within the first mobile viewport. */
.driver-app-shell:has(.shift-home) .app-topline { gap: 4px; margin-bottom: 4px; }
.driver-app-shell:has(.shift-home) .app-topline__actions { gap: 6px; }
.driver-app-shell:has(.shift-home) .icon-action-button,
.driver-app-shell:has(.shift-home) .header-replenishment-button { min-height: 48px; }
.shift-home .screen-card { padding: 0; }
.shift-home .compact-data-line { padding: 3px 0; }
.shift-home .operational-header { gap: 4px; }
.shift-home .operational-header h2 { margin: 0; }
.shift-home .operational-header .header-action-row { gap: 6px; }
.shift-home .action-button { min-height: 54px !important; padding: 8px 12px !important; }
.shift-home .header-action-row--bottom { margin-top: 4px; }
.driver-app-shell:has(.shift-home) .bottom-nav { margin-top: 4px; padding-top: 4px; }
.driver-app-shell:has(.shift-home) .bottom-nav__item { min-height: 52px; }
.bottom-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bottom-nav:has([data-route="metrics"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
