:root {
  color-scheme: light;
  /* Origin UI mobile foundation; legacy aliases remain below. */
  --color-bg-canvas: #f4f7fb;
  --color-bg-secondary: #edf2f7;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-secondary: #f8fafc;
  --color-surface-hover: #f1f5f9;
  --color-border: #d8e0ea;
  --color-border-strong: #bcc8d6;
  --color-text: #172033;
  --color-text-secondary: #44546a;
  --color-text-muted: #475569;
  --color-text-disabled: #94a3b8;
  --color-primary: #2563eb;
  --color-primary-strong: #1d4ed8;
  --color-success: #15803d;
  --color-warning: #b45309;
  --color-danger: #dc2626;
  --color-info: #0284c7;
  --font-family-ui: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;
  --font-size-3xl: 36px;
  --font-size-heading-1: var(--font-size-3xl);
  --font-size-heading-2: var(--font-size-2xl);
  --font-size-heading-3: var(--font-size-xl);
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;
  --space-compact: 4px;
  --space-small: 8px;
  --space-medium: 16px;
  --space-large: 24px;
  --space-section: 32px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 20px 50px rgba(15, 23, 42, 0.16);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.22);
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --motion-slow: 240ms;
  --page-padding: 16px;
  --section-gap: var(--space-large);
  --card-padding: 16px;
  --control-height: 48px;

  /* Existing names stay stable while components migrate in later phases. */
  --bg: var(--color-bg-canvas);
  --bg-soft: var(--color-bg-secondary);
  --surface: var(--color-surface);
  --surface-2: var(--color-surface-secondary);
  --surface-3: var(--color-surface-elevated);
  --text: var(--color-text);
  --text-secondary: var(--color-text-secondary);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --primary: var(--color-primary);
  --primary-strong: var(--color-primary-strong);
  --lime: var(--color-success);
  --warning: var(--color-warning);
  --danger: var(--color-danger);
  --info: var(--color-info);
  --shadow: var(--shadow-medium);
  --shadow-soft: var(--shadow-subtle);
  --radius: var(--radius-lg);
  --space-xs: var(--space-compact);
  --space-sm: var(--space-small);
  --space-md: 12px;
  --space-lg: 18px;
  --space-xl: var(--space-large);
  --glass-fill: var(--color-surface);
  --glass-fill-strong: var(--color-surface-elevated);
  --glass-fill-nested: var(--color-surface-secondary);
  --glass-edge: var(--color-border);
  --glass-edge-strong: var(--color-border-strong);
  --glass-highlight: transparent;
  --glass-shadow: var(--shadow-medium);
  --glass-shadow-soft: var(--shadow-subtle);
  --mobile-content-max: 1180px;
  --bottom-nav-height: 84px;
  --bottom-nav-gap: 9px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% -10%, rgba(37, 99, 235, 0.2), transparent 32rem),
    radial-gradient(circle at 88% 24%, rgba(20, 184, 166, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-family-ui);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

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

button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.36);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}

h3 {
  font-size: 17px;
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 19, 0.88);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 15px;
  background: linear-gradient(145deg, #2563eb, #0c3d84);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.hero-date {
  color: #60a5fa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-title {
  overflow: hidden;
  color: #edf4ff;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.refresh-button {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 27, 43, 0.78);
  color: #cfe8ff;
  font-size: 24px;
  line-height: 1;
}

.sync-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(22, 101, 52, 0.16);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.sync-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
  content: "";
}

.sync-pill[data-tone="error"] {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(159, 18, 57, 0.15);
  color: #fecdd3;
}

.sync-pill[data-tone="error"]::before {
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 22px;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panel-in 180ms ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  min-height: 158px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(105deg, rgba(8, 22, 42, 0.98), rgba(9, 44, 88, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-hero::before,
.dashboard-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.dashboard-hero::before {
  top: -86px;
  right: 10%;
  width: 230px;
  height: 230px;
  background: rgba(37, 99, 235, 0.25);
  filter: blur(2px);
}

.dashboard-hero::after {
  right: -70px;
  bottom: -120px;
  width: 290px;
  height: 290px;
  border: 42px solid rgba(56, 189, 248, 0.09);
}

.hero-copy {
  display: grid;
  gap: 7px;
}

.hero-copy p {
  color: #bcd2ee;
  font-size: 15px;
  font-weight: 750;
}

.quick-order {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  padding: 12px 18px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
  color: #fff;
}

.quick-order span {
  font-size: 22px;
  line-height: 1;
}

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

.stat-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
  background: linear-gradient(145deg, rgba(20, 32, 49, 0.96), rgba(11, 21, 35, 0.96));
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  position: absolute;
  top: -24px;
  right: -20px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--stat-glow);
  content: "";
  filter: blur(4px);
}

.stat-blue {
  --stat-glow: rgba(59, 130, 246, 0.28);
}

.stat-green {
  --stat-glow: rgba(34, 197, 94, 0.24);
}

.stat-amber {
  --stat-glow: rgba(245, 158, 11, 0.24);
}

.stat-rose {
  --stat-glow: rgba(244, 63, 94, 0.22);
}

.stat-number {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 920;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-label {
  color: #afc1d8;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 28px 2px 14px;
}

.dashboard-section-head > div,
.recent-heading > div {
  display: grid;
  gap: 5px;
}

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

.module-card {
  --module-a: #1d4ed8;
  --module-b: #0d326b;
  position: relative;
  display: grid;
  align-content: space-between;
  justify-items: start;
  min-width: 0;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(145deg, var(--module-a), var(--module-b));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  color: #fff;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.module-card::after {
  position: absolute;
  top: -42px;
  right: -38px;
  width: 126px;
  height: 126px;
  border: 24px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.module-card:active {
  transform: scale(0.985);
  filter: brightness(1.08);
}

.module-orders {
  --module-a: #2563eb;
  --module-b: #0b3677;
}

.module-agenda {
  --module-a: #16a34a;
  --module-b: #0b5c35;
}

.module-pos {
  --module-a: #d97706;
  --module-b: #7c3704;
}

.module-inventory {
  --module-a: #7c3aed;
  --module-b: #42227d;
}

.module-clients {
  --module-a: #0d9488;
  --module-b: #075b5b;
}

.module-settings {
  --module-a: #475569;
  --module-b: #1e293b;
}

.module-devices {
  --module-a: #0f766e;
  --module-b: #134e4a;
}

.module-cash {
  --module-a: #15803d;
  --module-b: #14532d;
}

.module-reports {
  --module-a: #9333ea;
  --module-b: #4c1d95;
}

.compact-section-head {
  margin-top: 25px;
}

.compact-module-grid .module-card {
  min-height: 158px;
}

.module-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 850;
  line-height: 1;
}

.glyph-calendar {
  font-size: 15px;
}

.glyph-people {
  font-size: 15px;
  letter-spacing: -0.2em;
}

.module-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.module-copy strong {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.1;
}

.module-copy > span {
  max-width: 24ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.module-value {
  position: absolute;
  top: 22px;
  right: 18px;
  z-index: 1;
  max-width: calc(100% - 86px);
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(3, 11, 25, 0.24);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(11, 21, 35, 0.78);
  box-shadow: var(--shadow-soft);
}

.recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.text-action {
  min-height: 38px;
  padding: 8px 11px;
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
  font-size: 12px;
}

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

.recent-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: #0e1929;
  color: var(--text);
  text-align: left;
}

.recent-order-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recent-order-copy strong,
.recent-order-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-order-copy strong {
  font-size: 13px;
}

.recent-order-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.recent-status {
  max-width: 116px;
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(59, 130, 246, 0.13);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-status.danger {
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}

.recent-status.ok {
  background: rgba(74, 222, 128, 0.13);
  color: #bbf7d0;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 94px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding: 4px 2px 15px;
}

.section-head > div {
  display: grid;
  gap: 5px;
}

.search,
label input,
label select,
label textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 13px;
  background: #0a1422;
  color: var(--text);
  outline: none;
}

label input:focus,
label select:focus,
label textarea:focus,
.search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

input[readonly] {
  cursor: pointer;
}

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

label {
  display: grid;
  gap: 7px;
  color: #c9d6e7;
  font-size: 13px;
  font-weight: 750;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.sheet {
  display: grid;
  gap: 13px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(16, 27, 43, 0.94);
  box-shadow: var(--shadow-soft);
}

.sheet.nested {
  margin: 0;
  border-color: var(--line);
  background: var(--surface-2);
  box-shadow: none;
}

.settings-group {
  display: grid;
  min-width: 0;
  gap: 11px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: var(--surface-2);
}

.settings-group legend {
  padding: 0 7px;
  color: #dff5ff;
  font-size: 13px;
  font-weight: 850;
}

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

.two.compact {
  grid-template-columns: minmax(0, 1fr);
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.mobile-dialog {
  width: min(720px, calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
}

.mobile-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.dialog-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.mobile-picker-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
}

.mobile-picker-layout .mini-list {
  max-height: 54vh;
  overflow: auto;
}

.mobile-picker-layout button {
  text-align: left;
}

.mobile-picker-layout button.active {
  border: 1px solid var(--primary);
  background: rgba(14, 165, 233, 0.14);
  color: #d9f3ff;
}

.mini-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: #0a1422;
}

.mini-card strong {
  color: #e5edf8;
  font-size: 13px;
}

.mini-card p {
  overflow-wrap: anywhere;
}

.card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(16, 27, 43, 0.94);
  box-shadow: var(--shadow-soft);
}

.card.no-thumb {
  grid-template-columns: minmax(0, 1fr);
}

.thumb {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

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

.card h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-2);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
}

.tag.danger {
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}

.tag.ok {
  background: rgba(74, 222, 128, 0.13);
  color: #bbf7d0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.primary {
  width: 100%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  color: #fff;
}

.primary:active,
.icon-action:active,
.refresh-button:active {
  transform: translateY(1px);
}

.icon-action {
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: #172b45;
  color: #bfdbfe;
}

.icon-action.full {
  width: 100%;
}

.danger {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
}

.ghost {
  background: #172b45;
  color: #dbeafe;
}

.file-box {
  border: 1px dashed #64748b;
  border-radius: 14px;
  padding: 14px;
  background: #0b1625;
  color: #7dd3fc;
  text-align: center;
}

.file-box input {
  display: none;
}

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

.evidence-tile {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  aspect-ratio: 1;
  background: var(--surface-2);
}

.evidence-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-tile button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 28px;
  padding: 3px 8px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
}

.total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  font-size: 18px;
}

.order-finance-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-finance-summary span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.order-finance-summary strong {
  color: var(--text);
  font-size: 17px;
}

.order-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.document-actions-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 15px;
  padding: 12px 14px;
  background: rgba(14, 116, 144, 0.14);
  color: var(--text);
  text-align: left;
}

.document-actions-trigger > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.document-actions-trigger small,
.document-action small,
.document-dialog-copy {
  color: var(--muted);
}

.document-actions-trigger-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.13);
  color: #7dd3fc;
  font-size: 20px;
}

.document-dialog {
  width: min(560px, calc(100% - 20px));
}

.document-dialog-sheet {
  margin: 0;
}

.document-dialog-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

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

.document-action {
  display: grid;
  min-height: 108px;
  justify-items: start;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(191, 219, 254, 0.16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 35, 57, 0.74);
  color: var(--text);
  text-align: left;
}

.document-action > span {
  color: #7dd3fc;
  font-size: 21px;
}

.document-action:disabled,
.document-actions-trigger:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.5;
}

.document-job-status {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  padding: 11px 12px;
  background: rgba(3, 11, 25, 0.36);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.document-job-status[data-state="completed"] {
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}

.document-job-status[data-state="failed"],
.document-job-status[data-state="cancelled"] {
  border-color: rgba(251, 113, 133, 0.38);
  color: #fecdd3;
}

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

.compact-stats .stat-card {
  min-height: 86px;
  padding: 14px;
}

.compact-stats .stat-number {
  font-size: clamp(17px, 4vw, 24px);
}

.compact-stats .stat-label {
  font-size: 10px;
}

.cash-move {
  border-left: 3px solid #4ade80;
}

.cash-expense {
  border-left-color: #fb7185;
}

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

.report-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 105px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px;
  background: linear-gradient(145deg, rgba(20, 32, 49, 0.96), rgba(11, 21, 35, 0.96));
  box-shadow: var(--shadow-soft);
}

.report-card::after {
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 96px;
  height: 96px;
  border: 18px solid var(--report-glow);
  border-radius: 50%;
  content: "";
}

.report-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.report-card strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.report-blue { --report-glow: rgba(59, 130, 246, 0.35); }
.report-green { --report-glow: rgba(74, 222, 128, 0.34); }
.report-rose { --report-glow: rgba(251, 113, 133, 0.34); }
.report-amber { --report-glow: rgba(251, 191, 36, 0.32); }
.report-violet { --report-glow: rgba(167, 139, 250, 0.34); }

.report-risk {
  border-color: rgba(251, 191, 36, 0.26);
}

.mercado-pago-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  margin-bottom: 10px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 16px;
  padding: 11px 13px;
  background: linear-gradient(135deg, rgba(0, 158, 227, 0.22), rgba(37, 99, 235, 0.18));
  color: #f0f9ff;
  text-align: left;
}

.mercado-pago-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.58;
}

.mercado-pago-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: #009ee3;
  box-shadow: 0 9px 22px rgba(0, 158, 227, 0.26);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.mercado-pago-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mercado-pago-copy strong {
  font-size: 14px;
}

.mercado-pago-copy small {
  overflow: hidden;
  color: #a9d9f2;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.mercado-pago-arrow {
  color: #7dd3fc;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.point-payment-card {
  display: grid;
  gap: 12px;
  margin: 0 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
}

.point-payment-card[hidden] {
  display: none;
}

.point-payment-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.point-payment-head > div {
  min-width: 0;
}

.point-payment-head strong {
  display: block;
  margin-bottom: 3px;
}

.point-payment-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.point-payment-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.13);
}

.point-payment-dot[data-status="creating"],
.point-payment-dot[data-status="created"],
.point-payment-dot[data-status="at_terminal"] {
  animation: point-pulse 1.25s ease-in-out infinite;
}

.point-payment-dot[data-status="processed"] {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.13);
}

.point-payment-dot[data-status="failed"],
.point-payment-dot[data-status="canceled"],
.point-payment-dot[data-status="expired"],
.point-payment-dot[data-status="save_error"],
.point-payment-dot[data-status="error"] {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.13);
}

.point-payment-dot[data-status="action_required"] {
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.13);
}

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

.point-payment-actions button:only-child {
  grid-column: 1 / -1;
}

.point-mobile-setup {
  border-color: rgba(0, 158, 227, 0.32);
  background: linear-gradient(135deg, rgba(0, 158, 227, 0.11), rgba(16, 27, 43, 0.94));
}

.point-mobile-setup small {
  color: var(--muted);
  line-height: 1.45;
}

.install-app-card {
  display: grid;
  gap: 13px;
  border-color: rgba(96, 165, 250, 0.38);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.08)),
    var(--surface);
}

.install-app-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-app-head > div {
  display: grid;
  gap: 3px;
}

.install-app-head strong {
  color: #f8fbff;
  font-size: 17px;
}

.install-app-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(186, 230, 253, 0.5);
  border-radius: 15px;
  background: linear-gradient(145deg, #2563eb, #0c3d84);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  color: #fff;
  font-weight: 950;
}

.install-app-card small {
  color: var(--muted);
  line-height: 1.5;
}

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

.pwa-runtime-grid > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 9px;
  background: rgba(7, 18, 32, 0.52);
}

.pwa-runtime-grid small {
  overflow: hidden;
  color: #7f93ad;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pwa-runtime-grid strong {
  overflow: hidden;
  color: #dbeafe;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-help-dialog {
  width: min(520px, calc(100% - 24px));
}

.install-steps {
  display: grid;
  gap: 12px;
  margin: 2px 0;
  padding-left: 24px;
}

.install-steps li {
  padding-left: 4px;
  color: #dbeafe;
  line-height: 1.5;
}

.install-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.09);
}

.install-note strong {
  color: #99f6e4;
}

.install-note span {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

#mPointSetupStatus[data-tone="ok"] {
  color: #86efac;
}

#mPointSetupStatus[data-tone="warning"] {
  color: #fde68a;
}

#mPointSetupStatus[data-tone="error"] {
  color: #fca5a5;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  #mInstallAppCard {
    display: none;
  }
}

body[data-pwa-installed="true"] #mInstallAppCard {
  display: none;
}

@keyframes point-pulse {
  50% {
    transform: scale(0.78);
    opacity: 0.62;
  }
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 12;
  max-width: 520px;
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  background: #111d2e;
  color: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
}

@media (hover: hover) {
  .module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
    filter: brightness(1.06);
  }

  .recent-order:hover,
  .refresh-button:hover {
    border-color: rgba(96, 165, 250, 0.36);
    filter: brightness(1.08);
  }
}

@media (min-width: 720px) {
  .app-header {
    padding-right: 28px;
    padding-left: 28px;
  }

  main {
    padding: 28px;
    padding-bottom: 42px;
  }

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

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

  .module-card {
    min-height: 210px;
    padding: 22px;
  }

  .module-glyph {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 560px) {
  .app-header {
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .screen-title {
    max-width: 145px;
    font-size: 14px;
  }

  .sync-pill {
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  main {
    padding: 14px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .dashboard-hero {
    align-items: stretch;
    min-height: 176px;
    padding: 21px;
  }

  .dashboard-hero h1 {
    max-width: 9ch;
  }

  .quick-order {
    align-self: flex-end;
    min-width: 116px;
    min-height: 48px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
  }

  .stat-card {
    min-height: 88px;
    padding: 14px;
  }

  .dashboard-section-head {
    margin-top: 24px;
  }

  .module-card {
    min-height: 168px;
    border-radius: 19px;
    padding: 16px;
  }

  .module-glyph {
    min-width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 25px;
  }

  .glyph-calendar,
  .glyph-people {
    font-size: 13px;
  }

  .module-value {
    top: 18px;
    right: 13px;
    max-width: calc(100% - 68px);
    padding: 4px 7px;
    font-size: 9px;
  }

  .module-copy {
    margin-top: 15px;
  }

  .module-copy strong {
    font-size: 17px;
  }

  .module-copy > span {
    font-size: 11px;
  }

  .recent-panel {
    padding: 15px;
  }

  .section-head {
    align-items: flex-start;
  }

  .two,
  .two.compact,
  .mobile-picker-layout {
    grid-template-columns: 1fr;
  }

  .card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .thumb {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 380px) {
  .header-actions {
    gap: 5px;
  }

  .refresh-button {
    width: 38px;
    min-height: 38px;
  }

  .sync-pill {
    width: 35px;
    padding: 0;
    justify-content: center;
    color: transparent;
  }

  .sync-pill::before {
    flex: 0 0 auto;
  }

  .dashboard-hero {
    display: grid;
  }

  .dashboard-hero h1 {
    max-width: none;
  }

  .quick-order {
    justify-self: start;
  }

  .module-grid {
    gap: 9px;
  }

  .module-card {
    min-height: 152px;
    padding: 14px;
  }

  .module-copy > span {
    display: none;
  }

  .module-value {
    top: 16px;
    right: 11px;
  }

}

/* Origin mobile compact shell */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.origin-center-shell {
  position: relative;
  min-height: auto;
  border: 0;
  padding: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left));
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.origin-center-card {
  --center-accent: #60a5fa;
  --center-accent-soft: rgba(59, 130, 246, 0.13);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  width: min(calc(100% - 20px), 420px);
  min-height: 54px;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--center-accent) 42%, rgba(148, 163, 184, 0.2));
  border-radius: 15px;
  padding: 7px 9px;
  background:
    linear-gradient(120deg, var(--center-accent-soft), transparent 52%),
    rgba(10, 22, 37, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.24);
  color: var(--text);
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, filter 120ms ease;
}

.origin-center-card[data-tone="success"] {
  --center-accent: #4ade80;
  --center-accent-soft: rgba(34, 197, 94, 0.13);
}

.origin-center-card[data-tone="teal"] {
  --center-accent: #2dd4bf;
  --center-accent-soft: rgba(20, 184, 166, 0.13);
}

.origin-center-card[data-tone="warning"] {
  --center-accent: #fbbf24;
  --center-accent-soft: rgba(245, 158, 11, 0.13);
}

.origin-center-card[data-tone="error"] {
  --center-accent: #fb7185;
  --center-accent-soft: rgba(244, 63, 94, 0.13);
}

.origin-center-card[data-tone="accent"] {
  --center-accent: #c084fc;
  --center-accent-soft: rgba(168, 85, 247, 0.13);
}

.origin-center-card[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--center-accent) 66%, white 4%);
  filter: brightness(1.06);
}

.origin-center-card:active {
  transform: scale(0.988);
}

.origin-center-event-icon,
.origin-notification-header-icon,
.origin-notification-empty-icon,
.origin-notification-item-icon {
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--notification-accent, var(--center-accent)) 42%, transparent);
  background: color-mix(in srgb, var(--notification-accent, var(--center-accent)) 14%, rgba(8, 18, 31, 0.8));
  color: color-mix(in srgb, var(--notification-accent, var(--center-accent)) 78%, white);
}

.origin-center-event-icon {
  width: 34px;
  height: 34px;
  justify-self: center;
  border-radius: 11px;
}

.origin-center-event-icon svg {
  width: 17px;
  height: 17px;
}

.origin-center-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.origin-center-copy strong,
.origin-center-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.origin-center-copy > span {
  color: var(--center-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.origin-center-copy strong {
  color: #f8fbff;
  font-size: 11px;
  line-height: 1.15;
}

.origin-center-count {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--center-accent) 42%, transparent);
  border-radius: 999px;
  background: var(--center-accent-soft);
  color: #e8f3ff;
  font-size: 10px;
  font-weight: 900;
}

.origin-center-count[hidden] {
  display: none;
}

.origin-notification-dialog {
  --center-accent: #2dd4bf;
  position: fixed;
  inset: max(64px, calc(env(safe-area-inset-top) + 60px)) env(safe-area-inset-right) auto env(safe-area-inset-left);
  width: min(calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)), 520px);
  max-height: calc(100dvh - 150px - env(safe-area-inset-bottom));
  margin: 0 auto;
  overflow: hidden;
  border-color: rgba(45, 212, 191, 0.34);
  border-radius: 20px;
  background: rgba(7, 17, 30, 0.98);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.48), 0 0 30px rgba(45, 212, 191, 0.08);
}

.origin-notification-dialog::backdrop {
  background: rgba(0, 5, 12, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.origin-notification-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(45, 212, 191, 0.08), transparent 34%),
    rgba(7, 17, 30, 0.98);
}

.origin-notification-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 34px;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid rgba(214, 228, 247, 0.1);
}

.origin-notification-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.origin-notification-header-icon svg,
.origin-notification-empty-icon svg,
.origin-notification-item-icon svg,
.origin-notification-dismiss svg {
  width: 17px;
  height: 17px;
}

.origin-notification-heading {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.origin-notification-heading > span {
  color: #5eead4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.origin-notification-heading strong {
  color: #f7fbff;
  font-size: 15px;
}

.origin-notification-total {
  min-width: max-content;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(20, 184, 166, 0.12);
  color: #ccfbf1;
  font-size: 9px;
  font-weight: 850;
}

.origin-notification-close,
.origin-notification-dismiss {
  display: grid;
  place-items: center;
  min-height: 0;
  border: 1px solid rgba(214, 228, 247, 0.14);
  padding: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #b9c9dc;
}

.origin-notification-close {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 20px;
}

.origin-notification-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.origin-notification-list::-webkit-scrollbar {
  display: none;
}

.origin-notification-item {
  --notification-accent: #60a5fa;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 7px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--notification-accent) 28%, rgba(214, 228, 247, 0.08));
  border-radius: 15px;
  padding: 7px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--notification-accent) 8%, transparent), transparent 58%), rgba(15, 29, 47, 0.76);
}

.origin-notification-item[data-tone="error"] {
  --notification-accent: #fb7185;
}

.origin-notification-item[data-tone="warning"] {
  --notification-accent: #fbbf24;
}

.origin-notification-item[data-tone="success"] {
  --notification-accent: #4ade80;
}

.origin-notification-item[data-tone="teal"] {
  --notification-accent: #2dd4bf;
}

.origin-notification-item[data-tone="accent"] {
  --notification-accent: #c084fc;
}

.origin-notification-content {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  width: 100%;
  min-height: 50px;
  border: 0;
  padding: 2px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.origin-notification-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.origin-notification-item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.origin-notification-item-meta,
.origin-notification-item-copy strong,
.origin-notification-item-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.origin-notification-item-meta {
  color: color-mix(in srgb, var(--notification-accent) 74%, #d9e8f8);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.origin-notification-item-copy strong {
  color: #f3f8ff;
  font-size: 13px;
  white-space: nowrap;
}

.origin-notification-item-copy p {
  display: -webkit-box;
  margin: 0;
  color: #adbed2;
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.origin-notification-dismiss {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 17px;
}

.origin-notification-empty {
  display: none;
  place-items: center;
  align-content: center;
  min-height: 190px;
  padding: 24px;
  color: #aebfd3;
  text-align: center;
}

.origin-notification-dialog[data-empty="true"] .origin-notification-list {
  display: none;
}

.origin-notification-dialog[data-empty="true"] .origin-notification-empty {
  display: grid;
}

.origin-notification-empty-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 9px;
  border-radius: 14px;
}

.origin-notification-empty strong {
  color: #eef6ff;
  font-size: 14px;
}

.origin-notification-empty > span:last-child {
  margin-top: 3px;
  font-size: 11px;
}

.origin-notification-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(214, 228, 247, 0.1);
  padding: 10px 11px calc(10px + env(safe-area-inset-bottom));
  color: #8295ac;
  font-size: 9px;
}

.origin-notification-clear {
  min-width: max-content;
  min-height: 32px;
  border: 1px solid rgba(214, 228, 247, 0.18);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.065);
  color: #dce8f6;
  font-size: 9px;
}

.origin-notification-clear:disabled {
  opacity: 0.38;
}

main {
  width: min(100%, var(--mobile-content-max));
  padding: var(--space-sm) max(var(--space-sm), env(safe-area-inset-right)) calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--space-lg) + env(safe-area-inset-bottom)) max(var(--space-sm), env(safe-area-inset-left));
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  gap: var(--space-md);
  border-radius: 17px;
  padding: var(--space-lg);
}

.dashboard-hero::before {
  top: -90px;
  right: 15%;
  width: 210px;
  height: 210px;
}

.dashboard-hero::after {
  right: -92px;
  bottom: -132px;
}

.hero-copy {
  z-index: 1;
  min-width: 0;
  gap: var(--space-sm);
}

.dashboard-hero h1 {
  max-width: 18ch;
  font-size: clamp(24px, 6.2vw, 32px);
}

.hero-copy p {
  font-size: 13px;
}

.pixel-not-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.13);
  border-radius: 16px;
  padding: 9px 12px;
  background:
    radial-gradient(circle at 50% 25%, rgba(34, 197, 94, 0.1), transparent 42%),
    #020407;
  box-shadow: inset 0 0 26px rgba(15, 23, 42, 0.72), 0 12px 26px rgba(0, 0, 0, 0.32);
  color: #4ade80;
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, filter 120ms ease;
}

.pixel-not-card:active {
  transform: scale(0.985);
  filter: brightness(1.1);
}

.pixel-not-card[data-tone="warning"] {
  color: #fbbf24;
}

.pixel-not-card[data-tone="info"] {
  color: #60a5fa;
}

.pixel-not-card[data-tone="accent"] {
  color: #c084fc;
}

.pixel-not-card[data-tone="error"] {
  color: #fb7185;
}

.pixel-not-glyph {
  display: grid;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(7, 2px);
  grid-template-rows: repeat(7, 2px);
  gap: 1px;
  width: 20px;
  height: 20px;
  margin: 0;
}

.pixel-dot {
  width: 2px;
  height: 2px;
  border-radius: 1px;
  background: rgba(71, 85, 105, 0.13);
}

.pixel-dot.on {
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
}

.pixel-not-title {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixel-not-message,
.pixel-not-meta {
  overflow: hidden;
  max-width: 100%;
  color: #d4dbe5;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixel-not-meta {
  display: none;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.stat-card {
  justify-items: start;
  align-content: start;
  width: 100%;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 82px;
  gap: 2px 10px;
  border-radius: 15px;
  padding: 10px;
  color: #fff;
  text-align: left;
  transition: transform 120ms ease, filter 120ms ease;
}

.stat-card:active {
  transform: scale(0.98);
  filter: brightness(1.08);
}

.stat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.13);
  color: #60a5fa;
  font-size: 17px;
  line-height: 1;
}

.stat-green .stat-icon {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(22, 163, 74, 0.13);
  color: #4ade80;
}

.stat-amber .stat-icon {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(217, 119, 6, 0.13);
  color: #fbbf24;
}

.stat-rose .stat-icon {
  border-color: rgba(244, 114, 182, 0.28);
  background: rgba(190, 24, 93, 0.13);
  color: #e879f9;
}

.stat-number {
  align-self: end;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1;
}

.stat-label {
  display: block;
  min-width: 0;
  align-self: start;
  font-size: 11px;
  line-height: 1.22;
  white-space: normal;
}

.module-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.module-card {
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  justify-items: stretch;
  column-gap: 11px;
  min-height: 84px;
  border-radius: 16px;
  padding: 11px 42px 11px 11px;
}

.module-card::after {
  top: -38px;
  right: -44px;
  width: 118px;
  height: 118px;
}

.module-glyph {
  grid-column: 1;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 13px;
  padding: 0;
  font-size: 25px;
}

.glyph-calendar,
.glyph-people {
  font-size: 13px;
}

.module-copy {
  grid-column: 2;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.module-copy strong {
  font-size: 15px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.module-copy > span {
  display: block;
  max-width: none;
  font-size: 11px;
  line-height: 1.35;
}

.module-value {
  position: static;
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
  margin-top: 2px;
  padding: 4px 7px;
  font-size: 9px;
}

.module-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-weight: 400;
}

.recent-panel {
  margin-top: var(--space-md);
  border-radius: 17px;
  padding: 13px;
}

.home-action-section {
  margin-top: var(--space-lg);
}

.home-section-heading {
  display: grid;
  gap: var(--space-xs);
  margin: 0 2px var(--space-sm);
}

.home-section-heading h2 {
  font-size: clamp(18px, 4.8vw, 23px);
}

.secondary-tools {
  margin-top: var(--space-md);
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(8, 28, 44, 0.48);
  box-shadow: var(--shadow-soft);
}

.secondary-tools > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 60px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.secondary-tools > summary::-webkit-details-marker {
  display: none;
}

.secondary-tools > summary:focus-visible {
  border-radius: inherit;
  outline: 3px solid rgba(56, 189, 248, 0.36);
  outline-offset: 2px;
}

.secondary-tools > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.secondary-tools > summary strong {
  font-size: 15px;
}

.secondary-tools-chevron {
  color: #bfeeff;
  font-size: 24px;
  transition: transform 140ms ease;
}

.secondary-tools[open] .secondary-tools-chevron {
  transform: rotate(90deg);
}

.secondary-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
  padding: 0 var(--space-sm) var(--space-sm);
}

.secondary-tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 3px 10px;
  min-width: 0;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 38px 9px 10px;
  background: rgba(10, 30, 45, 0.5);
  color: var(--text);
  text-align: left;
}

.secondary-tool-card .module-glyph {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px;
  min-width: 38px;
  height: 38px;
  font-size: 16px;
}

.secondary-tool-card .module-copy {
  grid-column: 2;
}

.secondary-tool-card .module-copy strong {
  font-size: 13px;
}

.secondary-tool-card .module-copy > span {
  font-size: 10px;
}

.secondary-tool-card .module-value {
  display: none;
}

.bottom-nav {
  position: fixed;
  right: env(safe-area-inset-right);
  bottom: 0;
  left: env(safe-area-inset-left);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: auto;
  max-width: 760px;
  min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  margin: 0 auto;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 6px 4px calc(5px + env(safe-area-inset-bottom));
  background: rgba(7, 15, 27, 0.96);
  box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bottom-nav-item {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  border-radius: 14px;
  padding: 3px 2px;
  background: transparent;
  color: #8395ad;
  font-size: 9px;
  font-weight: 750;
}

.bottom-nav-item.active {
  color: #38bdf8;
}

.bottom-nav-icon {
  display: grid;
  place-items: center;
  min-height: 25px;
  font-size: 23px;
  line-height: 1;
}

.bottom-calendar {
  font-size: 10px;
}

.bottom-nav-create {
  position: relative;
  z-index: 1;
  color: #9eb2ca;
}

.bottom-nav-plus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -10px;
  border: 2px solid #7dd3fc;
  border-radius: 50%;
  background: linear-gradient(145deg, #38bdf8, #1d4ed8);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.46);
  color: #fff;
  font-size: 27px;
  line-height: 1;
}

.more-dialog {
  width: min(100%, 760px);
  max-height: min(78dvh, 620px);
  margin: auto auto 0;
  border-radius: 24px 24px 0 0;
}

.more-dialog-sheet {
  display: grid;
  gap: 16px;
  padding: 18px 14px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, #132136, #09121f);
}

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

.more-menu button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 62px;
  border: 1px solid var(--line);
  padding: 9px;
  background: rgba(17, 31, 50, 0.86);
  color: #eff6ff;
  text-align: left;
}

.more-menu button > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  grid-row: 1 / span 2;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.12);
  color: #7dd3fc;
}

.more-menu strong,
.more-menu small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-menu strong {
  font-size: 13px;
}

.more-menu small {
  color: var(--muted);
  font-size: 9px;
}

.toast {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
}

.origin-motion-enter {
  animation: origin-mobile-enter var(--motion-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.origin-motion-confirm {
  animation: origin-mobile-confirm var(--motion-normal) cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes origin-center-breathe {
  50% {
    opacity: 0.58;
    transform: scale(0.96);
  }
}

@keyframes origin-mobile-enter {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes origin-mobile-confirm {
  50% {
    transform: scale(1.025);
    filter: brightness(1.08);
  }
}

@media (min-width: 620px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr);
    min-height: 116px;
  }

  .pixel-not-card {
    justify-self: end;
    max-width: 280px;
    min-height: 58px;
  }

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

@media (max-width: 619px) {
  .dashboard-hero {
    padding: 14px;
  }

  .dashboard-hero .hero-date,
  .dashboard-hero .hero-copy > p {
    display: none;
  }
}

@media (min-width: 900px) {
  main,
  .bottom-nav {
    max-width: var(--mobile-content-max);
  }

  .origin-center-card {
    width: min(calc(100% - 24px), 520px);
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  :root {
    --bottom-nav-height: 60px;
  }

  .origin-center-card {
    min-height: 48px;
  }

  main {
    padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--space-md) + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding-top: 3px;
  }

  .bottom-nav-item {
    min-height: 50px;
  }

  .bottom-nav-plus {
    width: 46px;
    height: 46px;
    margin-top: -8px;
  }
}

@media (max-width: 390px) {
  .origin-center-card {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 7px;
    width: calc(100% - 12px);
    padding: 7px;
  }

  .origin-center-event-icon {
    width: 32px;
    height: 32px;
  }

  .origin-center-copy strong {
    font-size: 10px;
  }

  .origin-center-count {
    width: 26px;
    height: 26px;
  }

  .origin-notification-header {
    grid-template-columns: 34px minmax(0, 1fr) auto 32px;
    gap: 7px;
    padding: 11px 9px;
  }

  .origin-notification-header-icon {
    width: 34px;
    height: 34px;
  }

  .origin-notification-close {
    width: 32px;
    height: 32px;
  }

  .origin-notification-footer {
    align-items: flex-end;
  }

  .origin-notification-footer > span {
    max-width: 19ch;
  }

  .dashboard-hero {
    display: grid;
    min-height: 0;
    padding: 12px;
  }

  .dashboard-hero h1 {
    max-width: 18ch;
    font-size: 23px;
  }

  .pixel-not-card {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
  }

  .stat-card {
    min-height: 82px;
    padding: 9px;
  }

  .stat-label {
    font-size: 10px;
  }

  .module-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 82px;
    column-gap: 8px;
    padding: 10px 38px 10px 9px;
  }

  .module-glyph {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .module-copy strong {
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  .module-settings .module-copy strong {
    font-size: 13px;
  }

  .module-copy > span {
    font-size: 10px;
  }
}

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

.capture-launch-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 20%, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(14, 116, 144, 0.3), rgba(8, 24, 40, 0.78));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #dffcff;
  text-align: left;
  backdrop-filter: blur(18px) saturate(132%);
}

.capture-launch-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 13px;
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  font-size: 22px;
}

.capture-launch-card small,
.capture-launch-card strong {
  display: block;
}

.capture-launch-card small {
  color: #5eead4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capture-launch-card strong {
  margin-top: 3px;
  font-size: 14px;
}

.capture-mobile-head {
  align-items: flex-start;
}

.capture-pairing-sheet {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 30%),
    rgba(10, 27, 44, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 20px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px) saturate(136%);
}

.capture-pairing-sheet[hidden] {
  display: none;
}

.capture-pairing-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.42), rgba(20, 184, 166, 0.22));
  color: #ecfeff;
  font-weight: 900;
}

.capture-pairing-sheet strong,
.capture-pairing-sheet p {
  margin: 0;
}

.capture-pairing-sheet p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.capture-pairing-sheet label,
.capture-pairing-sheet > button {
  grid-column: 1 / -1;
}

.capture-pairing-sheet input {
  min-height: 54px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-align: center;
}

.capture-draft-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
}

.capture-draft-notice[hidden] {
  display: none;
}

.capture-draft-notice strong,
.capture-draft-notice small {
  display: block;
}

.capture-draft-notice small {
  margin-top: 2px;
  color: var(--muted);
}

.capture-draft-notice button {
  min-height: 34px;
  border: 1px solid rgba(251, 113, 133, 0.24);
  border-radius: 10px;
  background: rgba(190, 24, 93, 0.13);
  color: #fecdd3;
}

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

.capture-type-card {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 94px;
  padding: 9px 6px;
  border: 1px solid rgba(140, 168, 202, 0.2);
  border-radius: 16px;
  background: rgba(13, 29, 48, 0.72);
  color: #aebfd2;
  text-align: center;
}

.capture-type-card.active {
  border-color: rgba(45, 212, 191, 0.55);
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.31), rgba(15, 38, 58, 0.82));
  color: #ecfeff;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.12);
}

.capture-type-card > span {
  color: #67e8f9;
  font-size: 24px;
}

.capture-type-card strong {
  font-size: 12px;
}

.capture-type-card small {
  overflow: hidden;
  max-width: 100%;
  color: #8096ae;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-stepper {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.capture-stepper li {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 30px;
  border-radius: 10px;
  background: rgba(25, 43, 65, 0.66);
  color: #71869e;
  font-size: 10px;
  font-weight: 800;
}

.capture-stepper li.active,
.capture-stepper li.complete {
  background: rgba(14, 116, 144, 0.28);
  color: #a5f3fc;
}

.capture-wizard {
  padding: 14px;
  border: 1px solid rgba(140, 170, 206, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(28, 49, 76, 0.38), rgba(7, 18, 31, 0.72)),
    rgba(10, 23, 39, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px) saturate(132%);
}

.capture-step-panel[hidden] {
  display: none;
}

.capture-step-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.capture-step-head > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 13px;
  background: rgba(14, 116, 144, 0.16);
  color: #67e8f9;
  font-weight: 900;
}

.capture-step-head h3,
.capture-step-head p {
  margin: 0;
}

.capture-step-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.capture-wizard label {
  margin-bottom: 10px;
}

.capture-review-summary {
  display: grid;
  gap: 8px;
}

.capture-review-group {
  padding: 11px;
  border: 1px solid rgba(135, 165, 200, 0.16);
  border-radius: 13px;
  background: rgba(5, 15, 27, 0.36);
}

.capture-review-group strong,
.capture-review-group span {
  display: block;
}

.capture-review-group strong {
  color: #dbeafe;
  font-size: 12px;
}

.capture-review-group span {
  margin-top: 4px;
  color: #9db0c6;
  font-size: 11px;
  white-space: pre-wrap;
}

.capture-send-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  background: rgba(14, 116, 144, 0.12);
  color: #bae6fd;
  font-size: 12px;
}

.capture-send-status[data-state="error"] {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(190, 24, 93, 0.12);
  color: #fecdd3;
}

.capture-send-status[data-state="success"] {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(5, 150, 105, 0.12);
  color: #a7f3d0;
}

.capture-wizard-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
  margin-top: 14px;
}

.capture-wizard-actions button:only-child,
.capture-wizard-actions #mCaptureSendBtn {
  grid-column: 2;
}

.more-menu-capture {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .origin-capture-tab {
    max-width: 820px;
    margin-inline: auto;
  }

  .capture-type-card {
    min-height: 110px;
  }
}

@media (max-width: 380px) {
  .capture-type-card small {
    display: none;
  }

  .capture-type-card {
    min-height: 78px;
  }
}

/* Tablet landscape: compacta el eje vertical sin alterar la vista portrait. */
@media (orientation: landscape) and (min-width: 960px) and (max-height: 900px) and (min-aspect-ratio: 4 / 3) {
  :root {
    --bottom-nav-height: 66px;
  }

  html {
    scroll-padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--space-md) + env(safe-area-inset-bottom));
  }

  .origin-center-shell {
    padding-top: max(3px, env(safe-area-inset-top));
  }

  .origin-center-card {
    width: min(calc(100% - 24px), 540px);
    min-height: 50px;
    padding-block: 5px;
  }

  .origin-notification-dialog {
    inset-block-start: max(58px, calc(env(safe-area-inset-top) + 54px));
    max-height: calc(100dvh - 126px - env(safe-area-inset-bottom));
  }

  main {
    width: min(100%, 1240px);
    max-width: 1240px;
    padding: 6px max(12px, env(safe-area-inset-right)) calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--space-lg) + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .dashboard-hero {
    min-height: 126px;
    gap: 18px;
    padding: 10px 18px;
  }

  .dashboard-hero h1 {
    max-width: none;
    font-size: clamp(25px, 3vw, 31px);
  }

  .pixel-not-card {
    width: min(34%, 230px);
    max-width: 230px;
    min-height: 106px;
    border-radius: 24px;
    padding: 6px 10px;
  }

  .stats-grid {
    gap: 7px;
    margin-top: 7px;
  }

  .stat-card {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    min-height: 82px;
    column-gap: 9px;
    row-gap: 2px;
    padding: 8px 10px;
  }

  .stat-icon {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .stat-number {
    align-self: end;
    font-size: 23px;
  }

  .stat-label {
    align-self: start;
    font-size: 10.5px;
  }

  .capture-launch-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 56px;
    gap: 10px;
    margin: 7px 0;
    padding: 7px 12px;
    border-radius: 15px;
  }

  .capture-launch-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 20px;
  }

  .capture-launch-card strong {
    margin-top: 1px;
    font-size: 13px;
  }

  .module-grid {
    gap: 7px;
    margin-top: 7px;
  }

  .module-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 96px;
    column-gap: 10px;
    padding: 10px 12px;
  }

  .module-glyph {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 23px;
  }

  .module-copy {
    gap: 3px;
    margin: 11px 22px 0 0;
  }

  .module-copy > span {
    max-width: none;
  }

  .module-chevron {
    bottom: 9px;
  }

  .recent-panel {
    margin-top: 7px;
    padding: 11px;
  }

  .bottom-nav {
    max-width: 920px;
    min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  }

  .bottom-nav-item {
    min-height: 54px;
  }

  .bottom-nav-plus {
    width: 48px;
    height: 48px;
    margin-top: -9px;
  }
}

button,
[role="button"],
a,
input,
select,
textarea {
  touch-action: manipulation;
}

@keyframes origin-prime-mobile-view {
  from { opacity: 0.45; transform: translateY(7px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 720px) {
}

@media (prefers-reduced-transparency: reduce) {
}

/* --------------------------------------------------------------------------
   Origin SW Mobile 1.28.6.4 · Tablet Workspace 8.7"
   El teléfono conserva la navegación inferior. Desde 700 px, la aplicación
   usa un rail persistente, objetivos táctiles amplios y paneles de trabajo.
   -------------------------------------------------------------------------- */
.tablet-rail {
  display: none;
}

.section-badge,
.info-version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(222, 247, 255, 0.3);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(39, 119, 178, 0.28);
  color: #e9faff;
  font-size: 12px;
  white-space: nowrap;
}

.tablet-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.tablet-filter-bar > .search {
  width: 100%;
}

.saved-order-heading,
.saved-order-amounts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-order-amounts {
  justify-content: flex-start;
  margin-top: 10px;
}

.saved-order-amounts span {
  display: grid;
  gap: 2px;
  min-width: 112px;
  color: var(--muted);
  font-size: 11px;
}

.saved-order-amounts strong {
  color: #fff;
  font-size: 16px;
}

.accounting-metrics-grid,
.runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.accounting-metric,
.runtime-grid article {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 105px;
  overflow: hidden;
  border: 1px solid rgba(229, 248, 255, 0.25);
  border-radius: 21px;
  padding: 17px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--metric-accent, #54b8ff) 30%, transparent), transparent 58%),
    linear-gradient(145deg, rgba(255,255,255,.18), transparent 47%),
    rgba(8, 40, 65, 0.57);
  box-shadow: inset 0 1px rgba(255,255,255,.3), 0 15px 34px rgba(0, 10, 28, .2);
}

.metric-green { --metric-accent: #3ee39d; }
.metric-amber { --metric-accent: #ffbd4a; }
.metric-rose { --metric-accent: #ff6f9d; }
.metric-violet { --metric-accent: #9877ff; }
.metric-teal { --metric-accent: #39dfd0; }

.accounting-metric span,
.runtime-grid article > span {
  color: #a9c7dd;
  font-size: 11px;
  font-weight: 800;
}

.accounting-metric strong,
.runtime-grid article > strong {
  align-self: end;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(18px, 3vw, 26px);
}

.tablet-two-pane,
.print-center-layout {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.accounting-status-list,
.runtime-status-list,
.capability-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.accounting-status-list > div,
.runtime-status-list > div,
.capability-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(224, 247, 255, 0.16);
  border-radius: 15px;
  padding: 9px 12px;
  background: rgba(3, 27, 48, 0.42);
}

.accounting-status-list > div span:first-child {
  flex: 1;
}

.accounting-status-list > div small {
  color: var(--muted);
}

.runtime-status-list > div > span:last-child {
  display: grid;
  gap: 2px;
}

.runtime-status-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.runtime-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffbb45;
  box-shadow: 0 0 0 5px rgba(255, 187, 69, 0.12);
}

.runtime-dot.ready {
  background: #45e3a1;
  box-shadow: 0 0 0 5px rgba(69, 227, 161, 0.12);
}

.runtime-state {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 187, 69, 0.15);
  color: #ffd98e;
  font-size: 10px;
  font-weight: 850;
}

.runtime-state.ready {
  background: rgba(69, 227, 161, 0.14);
  color: #a6ffda;
}

.capability-list > div > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(56, 213, 163, 0.18);
  color: #79f2c4;
}

.print-order-summary {
  display: grid;
  gap: 4px;
  min-height: 70px;
  margin: 12px 0;
  border: 1px solid rgba(228, 248, 255, 0.2);
  border-radius: 17px;
  padding: 14px;
  background: rgba(3, 27, 48, 0.46);
}

.print-order-summary span,
.legal-copy p {
  color: #a9bfd3;
}

.section-select {
  min-width: 150px;
}

.tablet-preferences-card {
  display: grid;
  gap: 14px;
}

.tablet-data-tools {
  display: grid;
  gap: 12px;
}

.tablet-background-control {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(225, 248, 255, 0.18);
  border-radius: 18px;
  padding: 12px;
  background: rgba(3, 27, 48, 0.4);
}

.tablet-background-control > div:nth-child(2) {
  display: grid;
  gap: 5px;
}

.tablet-background-preview {
  display: grid;
  place-items: center;
  width: 116px;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(232, 249, 255, 0.28);
  border-radius: 15px;
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 216, 255, .55), transparent 50%),
    linear-gradient(145deg, #0b4164, #171c54);
  background-position: center;
  background-size: cover;
  color: #bcecff;
  font-size: 27px;
}

.tablet-background-preview.has-image span {
  display: none;
}

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

.tablet-toggle > span {
  display: grid;
  gap: 3px;
}

.tablet-toggle input {
  width: 24px;
  min-height: 24px;
}

.module-saved { --module-a: #196fa9; --module-b: #16466f; }
.module-accounting { --module-a: #5c47b7; --module-b: #28205c; }
.module-print { --module-a: #177f93; --module-b: #0b495d; }
.module-reports { --module-a: #7b437f; --module-b: #3d244f; }
.module-devices { --module-a: #326a9d; --module-b: #183b61; }
.module-cash { --module-a: #89702c; --module-b: #4c3b14; }
.module-info { --module-a: #46667f; --module-b: #223849; }

@media (min-width: 700px) {
  :root {
    --tablet-rail-width: 92px;
  }

  .tablet-rail {
    position: fixed;
    z-index: 20;
    inset: 10px auto 10px 10px;
    display: flex;
    flex-direction: column;
    width: calc(var(--tablet-rail-width) - 18px);
    overflow: hidden;
    border: 1px solid rgba(232, 250, 255, 0.32);
    border-radius: 28px;
    padding: 9px;
    background:
      linear-gradient(150deg, rgba(255,255,255,.22), transparent 31%, rgba(255,255,255,.04) 68%),
      rgba(5, 31, 53, .68);
    box-shadow: inset 0 1px rgba(255,255,255,.38), 0 26px 62px rgba(0, 8, 25, .34);
    backdrop-filter: blur(28px) saturate(175%);
    -webkit-backdrop-filter: blur(28px) saturate(175%);
  }

  .tablet-rail-brand {
    display: grid;
    place-items: center;
    min-height: 52px;
    margin-bottom: 7px;
  }

  .tablet-rail-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(239, 252, 255, .45);
    border-radius: 15px;
    background: linear-gradient(145deg, #61ddff, #397efa 56%, #564dcc);
    box-shadow: inset 0 1px rgba(255,255,255,.5), 0 10px 22px rgba(36,95,220,.36);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
  }

  .tablet-rail-brand-copy,
  .tablet-new-order strong,
  .tablet-rail-nav strong,
  .tablet-rail-group,
  .tablet-rail-status strong {
    display: none;
  }

  .tablet-new-order,
  .tablet-rail-nav button {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 4px;
    background: transparent;
    color: #bbd3e6;
  }

  .tablet-new-order {
    margin-bottom: 7px;
    border-color: rgba(226, 249, 255, .42);
    background: linear-gradient(145deg, rgba(255,255,255,.35), transparent 42%), linear-gradient(135deg, #52d9ff, #3977f0);
    color: #fff;
    box-shadow: 0 12px 26px rgba(39,105,229,.32);
  }

  .tablet-new-order span,
  .tablet-rail-nav button > span {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
  }

  .tablet-rail-nav {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 2px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .tablet-rail-nav button.active {
    border-color: rgba(229, 249, 255, .29);
    background: linear-gradient(145deg, rgba(255,255,255,.28), transparent 52%), rgba(45, 131, 195, .34);
    box-shadow: inset 0 1px rgba(255,255,255,.32), 0 9px 20px rgba(0,10,27,.18);
    color: #fff;
  }

  .tablet-rail-status {
    display: flex;
    justify-content: center;
    padding: 9px 0 3px;
  }

  .tablet-rail-status > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #45e3a1;
    box-shadow: 0 0 0 5px rgba(69,227,161,.13);
  }

  .bottom-nav {
    display: grid !important;
  }

  .origin-center-card {
    width: min(100%, 560px);
  }

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

  .module-card {
    min-height: 88px;
  }

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

  .two,
  .two.compact,
  .mobile-picker-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two.compact {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .tablet-filter-bar {
    grid-template-columns: minmax(260px, 1fr) 180px 150px;
    align-items: end;
  }

  .accounting-metrics-grid,
  .runtime-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tablet-two-pane,
  .print-center-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  #mSettingsForm > button,
  #mSettingsForm > label:has(textarea) {
    grid-column: 1 / -1;
  }

  .more-dialog:not([open]) {
    display: none;
  }

  .more-dialog[open] {
    display: block;
  }

  button,
  [role="button"] {
    min-height: 48px;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .tablet-rail-nav .tablet-rail-group {
    display: none;
  }

  .tablet-new-order,
  .tablet-rail-nav button {
    grid-template-rows: 30px auto;
    gap: 2px;
    min-height: 58px;
  }

  .tablet-new-order strong,
  .tablet-rail-nav strong {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 8px;
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (min-width: 1100px) {
  :root {
    --tablet-rail-width: 224px;
  }

  .tablet-rail {
    width: calc(var(--tablet-rail-width) - 20px);
    padding: 12px;
  }

  .tablet-rail-brand {
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 10px;
    padding: 4px 5px 11px;
  }

  .tablet-rail-brand-copy {
    display: grid;
    gap: 2px;
  }

  .tablet-rail-brand-copy small {
    color: #9db5c8;
    font-size: 10px;
  }

  .tablet-new-order,
  .tablet-rail-nav button {
    grid-template-columns: 36px minmax(0, 1fr);
    justify-items: start;
    gap: 8px;
    min-height: 48px;
    padding: 5px 9px;
  }

  .tablet-new-order strong,
  .tablet-rail-nav strong,
  .tablet-rail-status strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tablet-rail-group {
    display: block;
    margin: 9px 8px 3px;
    color: #71d8f9;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .tablet-rail-status {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-inline: 11px;
    color: #bcecd9;
  }

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

  #ordersTab.active {
    display: grid;
    grid-template-columns: minmax(300px, .7fr) minmax(530px, 1.6fr);
    grid-template-rows: auto auto 1fr;
    gap: 12px 14px;
    align-items: start;
  }

  #ordersTab > .section-head {
    grid-column: 1 / -1;
  }

  #ordersTab > .search {
    grid-column: 1;
    grid-row: 2;
  }

  #mobileOrdersList {
    grid-column: 1;
    grid-row: 3;
    max-height: calc(100dvh - 178px);
    overflow-y: auto;
    padding-right: 4px;
  }

  #mobileOrderForm {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin-top: 0;
  }

  #inventoryTab.active,
  #clientsTab.active {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(460px, 1.15fr);
    gap: 12px 14px;
    align-items: start;
  }

  #inventoryTab > .section-head,
  #clientsTab > .section-head {
    grid-column: 1 / -1;
  }

  #inventoryTab > form,
  #clientsTab > form {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  #inventoryTab > .search,
  #inventoryTab > .list,
  #clientsTab > .list {
    grid-column: 2;
  }

  .print-center-layout {
    grid-template-columns: minmax(560px, 1.35fr) minmax(320px, .65fr);
  }
}

@media (min-width: 1100px) and (max-height: 850px) {
  .tablet-rail-brand {
    display: none;
  }

  .tablet-new-order {
    min-height: 43px;
    margin-bottom: 3px;
  }

  .tablet-rail-nav {
    gap: 0;
  }

  .tablet-rail-nav .tablet-rail-group {
    display: none;
  }

  .tablet-rail-nav button {
    grid-template-columns: 31px minmax(0, 1fr);
    min-height: 44px;
    border-radius: 13px;
    padding-block: 2px;
  }

  .tablet-rail-nav button > span {
    height: 28px;
    font-size: 16px;
  }

  .tablet-rail-status {
    padding-top: 5px;
    padding-bottom: 0;
  }
}

body[data-tablet-density="compact"] .card,
body[data-tablet-density="compact"] .sheet,
body[data-tablet-density="compact"] .module-card {
  padding-top: 12px;
  padding-bottom: 12px;
}

body[data-tablet-density="compact"] .module-card {
  min-height: 96px;
}

body.tablet-reduce-motion *,
body.tablet-reduce-motion *::before,
body.tablet-reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
}

/* --------------------------------------------------------------------------
   Origin SW Mobile 1.28.6.4 · Dashboard-first performance layer
   -------------------------------------------------------------------------- */
.tablet-header-shortcuts {
  display: none;
}

@media (min-width: 700px) {

  .tablet-header-shortcuts {
    display: flex;
    grid-column: 1;
    gap: 7px;
  }

  .tablet-header-action {
    display: inline-grid;
    grid-template-columns: 28px;
    place-items: center;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid rgba(230, 249, 255, 0.3);
    border-radius: 16px;
    padding: 6px 9px;
    background:
      linear-gradient(145deg, rgba(255,255,255,.24), transparent 48%),
      rgba(19, 67, 99, .56);
    box-shadow: inset 0 1px rgba(255,255,255,.31), 0 10px 23px rgba(0,10,28,.18);
    color: #eaf9ff;
  }

  .tablet-header-action > span {
    font-size: 20px;
    line-height: 1;
  }

  .tablet-header-action > strong {
    display: none;
  }

  .tablet-header-new {
    background:
      linear-gradient(145deg, rgba(255,255,255,.38), transparent 42%),
      linear-gradient(135deg, #53d9ff, #3978f0);
  }
}

@media (min-width: 1000px) {
  .tablet-header-action {
    grid-template-columns: 24px auto;
    gap: 6px;
  }

  .tablet-header-action > strong {
    display: block;
    font-size: 11px;
    white-space: nowrap;
  }

  .primary-module-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }

  .primary-module-grid .module-card {
    min-height: 88px;
    padding: 11px 42px 11px 11px;
  }

  .primary-module-grid .module-copy {
    gap: 4px;
    margin: 0;
  }

  .primary-module-grid .module-chevron {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .secondary-tools-grid {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
  }

  #posTab.active {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
    gap: 10px 14px;
    align-items: start;
  }

  #posTab > .section-head {
    grid-column: 1 / -1;
  }

  #posTab > .sheet {
    grid-column: 1;
    grid-row: 2 / span 5;
    margin: 0;
  }

  #mCartList,
  #posTab > .total-bar,
  #posTab > .mercado-pago-action,
  #posTab > .point-payment-card,
  #mCompleteSaleBtn {
    grid-column: 2;
  }

  #mCartList {
    grid-row: 2;
    margin-top: 0;
  }
}

@media (pointer: coarse) {
}

/* Navegación y safe areas consistentes en orientación vertical. */
@media (orientation: portrait) {
  html {
    scroll-padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--space-lg) + env(safe-area-inset-bottom));
  }
}

@media (max-width: 699px) {
  .mobile-dialog[open]:not(.origin-notification-dialog) {
    width: 100%;
    max-height: calc(94dvh - env(safe-area-inset-top));
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .sheet {
    padding: 14px;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .section-head > button,
  .section-head > .section-badge,
  .section-head > .section-select {
    max-width: 100%;
  }

  .order-actions-grid,
  .point-payment-actions,
  .document-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cotizaciones V1 */
.mobile-quotes-tab { display: none; gap: 14px; }
.mobile-quotes-tab.active { display: grid; }
.mobile-quote-list { display: grid; gap: 10px; }
.mobile-quote-list article { padding: 0; overflow: hidden; }
.mobile-quote-list article > button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; width: 100%; padding: 15px; border: 0; background: transparent; color: inherit; text-align: left; }
.mobile-quote-list article > button > span { display: grid; gap: 4px; min-width: 0; }
.mobile-quote-list small, .mobile-quote-list em { color: var(--muted, #a9bed0); font-size: 12px; font-style: normal; }
.mobile-quote-list strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-quote-list b { font-size: 16px; text-align: right; }
.mobile-quote-list i { justify-self: end; padding: 4px 8px; border: 1px solid rgba(226,245,255,.22); border-radius: 999px; color: #dff5ff; font-size: 10px; font-style: normal; }
.mobile-quote-editor { display: grid; gap: 12px; }
.mobile-quote-block { display: grid; gap: 10px; }
.mobile-quote-block h3, .mobile-quote-summary h3 { margin: 0 0 4px; }
.mobile-quote-client { display: grid; gap: 3px; margin: 0; padding: 11px; border: 1px dashed rgba(226,245,255,.22); border-radius: 12px; color: #bed3df; }
.mobile-quote-client strong { color: #f4fbff; }
.mobile-quote-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.mobile-quote-inline-actions, .mobile-quote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-quote-inline-actions > button, .mobile-quote-actions > button { flex: 1 1 145px; min-height: 46px; }
.inline-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; min-height: 44px; }
.inline-check input { width: 22px; height: 22px; }
.mobile-quote-items { display: grid; gap: 10px; }
.mobile-quote-items article { display: grid; gap: 10px; }
.mobile-quote-items header { display: flex; justify-content: space-between; gap: 12px; }
.mobile-quote-items header > div { display: grid; gap: 3px; min-width: 0; }
.mobile-quote-items header small, .mobile-quote-items header span { color: #a9bed0; font-size: 11px; }
.mobile-quote-items header b { white-space: nowrap; }
.mobile-quote-items dl, .mobile-quote-summary dl { display: grid; gap: 7px; margin: 0; }
.mobile-quote-items dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mobile-quote-items dl > div, .mobile-quote-summary dl > div { display: flex; justify-content: space-between; gap: 8px; padding-top: 7px; border-top: 1px solid rgba(226,245,255,.14); }
.mobile-quote-items dt, .mobile-quote-summary dt { color: #a9bed0; }
.mobile-quote-items dd, .mobile-quote-summary dd { margin: 0; font-weight: 800; }
.mobile-quote-items footer { display: flex; gap: 8px; }
.mobile-quote-summary { display: grid; gap: 9px; }
.mobile-quote-summary .internal { color: #ffd38b; }
.mobile-quote-summary .total { padding: 12px; border: 1px solid rgba(226,245,255,.35); border-radius: 12px; font-size: 16px; }
.mobile-quote-summary > p { margin: 0; padding: 10px; border-radius: 10px; background: rgba(90,170,210,.1); font-weight: 800; }
.mobile-quote-settings { display: grid; gap: 9px; margin: 5px 0; padding: 12px; border: 1px solid rgba(226,245,255,.2); border-radius: 14px; }
.mobile-quote-settings legend { padding: 0 7px; color: #dff5ff; font-weight: 800; }
.module-quotes { --module-a: #314756; --module-b: #132838; --card-accent: #d9edf7; }

@media (max-width: 720px) {
  .mobile-quote-numbers, .mobile-quote-items dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-quote-list article > button { grid-template-columns: 1fr; }
  .mobile-quote-list article > button > span:last-child { grid-template-columns: 1fr auto; align-items: center; }
}

/* --------------------------------------------------------------------------
   M02 · Origin UI mobile application shell
   Legacy module surfaces remain protected by body until later phases.
   -------------------------------------------------------------------------- */
@media screen {
  :root {
    --origin-shell-canvas: #f4f7fb;
    --origin-shell-surface: #ffffff;
    --origin-shell-surface-soft: #f8fafc;
    --origin-shell-hover: #eef4ff;
    --origin-shell-border: #d8e0ea;
    --origin-shell-border-strong: #bcc8d6;
    --origin-shell-text: #172033;
    --origin-shell-muted: #64748b;
    --origin-shell-accent: #2563eb;
  }

  body {
    background-color: var(--origin-shell-canvas);
    background-image: none;
    background-attachment: scroll !important;
  }

  body::before {
    display: none;
    content: none;
  }

  body[data-tablet-background="custom"] {
    background-color: var(--origin-shell-canvas);
    background-image:
      linear-gradient(rgba(244, 247, 251, 0.82), rgba(244, 247, 251, 0.9)),
      var(--tablet-local-background);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
  }

  body .app-header,
  body .origin-center-shell {
    position: sticky;
    top: 0;
    z-index: 18;
    min-height: 68px;
    padding: max(8px, env(safe-area-inset-top)) max(var(--page-padding), env(safe-area-inset-right)) 8px max(var(--page-padding), env(safe-area-inset-left));
    border: 0;
    border-bottom: 1px solid var(--origin-shell-border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body .origin-center-card {
    min-height: var(--control-height);
    border-color: var(--origin-shell-border);
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface-soft);
    box-shadow: none;
    color: var(--origin-shell-text);
    filter: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body .origin-center-card[aria-expanded="true"] {
    border-color: #93c5fd;
    background: var(--origin-shell-hover);
    filter: none;
  }

  body .origin-center-copy strong {
    color: var(--origin-shell-text);
  }

  body .origin-center-copy > span {
    color: var(--origin-shell-accent);
  }

  body .origin-center-event-icon,
  body .origin-center-count {
    border-color: #bfdbfe;
    background: #eff6ff;
    box-shadow: none;
    color: var(--origin-shell-accent);
  }

  body main {
    width: min(100%, var(--mobile-content-max));
    max-width: var(--mobile-content-max);
    margin-inline: auto;
    padding: var(--page-padding) max(var(--page-padding), env(safe-area-inset-right)) calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--space-large) + env(safe-area-inset-bottom)) max(var(--page-padding), env(safe-area-inset-left));
  }

  body .tab-panel.active:not(#homeTab):not(#ordersTab):not(#savedTab):not(#clientsTab):not(#devicesTab):not(#agendaTab):not(#inventoryTab):not(#posTab):not(#cashTab):not(#quotesTab):not(#captureTab):not(#accountingTab):not(#reportsTab):not(#printTab):not(#settingsTab):not(#infoTab) {
    border-radius: var(--radius-lg);
    background: #0b1d2d;
    box-shadow: inset 0 0 0 1px rgba(216, 224, 234, 0.18);
  }

  body .bottom-nav {
    border: 1px solid var(--origin-shell-border);
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body .bottom-nav-item {
    min-height: 58px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--origin-shell-muted);
  }

  body .bottom-nav-item.active {
    background: var(--origin-shell-hover);
    color: var(--origin-shell-accent);
  }

  body .bottom-nav-create {
    color: var(--origin-shell-muted);
  }

  body .bottom-nav-plus {
    border: 0;
    background: var(--origin-shell-accent);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
    color: #ffffff;
  }

  body .tablet-header-action {
    border-color: var(--origin-shell-border);
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface);
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  body .tablet-header-new {
    border-color: var(--origin-shell-accent);
    background: var(--origin-shell-accent);
    color: #ffffff;
  }
}

/* --------------------------------------------------------------------------
   M05 P07 · Origin UI mobile Capture
   Pairing, wizard, draft, submission and routing behavior stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body #captureTab.tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #captureTab .capture-mobile-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body #captureTab .capture-mobile-head p,
  :root body #captureTab .capture-pairing-sheet p,
  :root body #captureTab .capture-step-head p,
  :root body #captureTab .capture-type-card small,
  :root body #captureTab .capture-review-group span {
    color: var(--origin-shell-muted);
  }

  :root body #captureTab :is(.capture-pairing-sheet, .capture-wizard) {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body #captureTab .capture-pairing-sheet {
    border-top: 3px solid #2563eb;
  }

  :root body #captureTab .capture-pairing-icon {
    background: #eff6ff;
    background-image: none;
    color: #1d4ed8;
  }

  :root body #captureTab .capture-draft-notice {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--origin-shell-text);
  }

  :root body #captureTab .capture-draft-notice button {
    min-height: 44px;
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
  }

  :root body #captureTab .capture-type-card {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #captureTab .capture-type-card.active {
    border-color: #93c5fd;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: #1d4ed8;
  }

  :root body #captureTab .capture-type-card > span {
    color: #2563eb;
  }

  :root body #captureTab .capture-type-card :is(strong, small) {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  :root body #captureTab .capture-stepper li {
    border: 1px solid var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    color: var(--origin-shell-muted);
  }

  :root body #captureTab .capture-stepper li.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body #captureTab .capture-stepper li.complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
  }

  :root body #captureTab .capture-step-head > span {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body #captureTab .capture-step-head h3,
  :root body #captureTab .capture-review-group strong {
    color: var(--origin-shell-text);
  }

  :root body #captureTab .capture-review-group {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    background-image: none;
    box-shadow: none;
  }

  :root body #captureTab .capture-send-status {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body #captureTab .capture-send-status[data-state="error"] {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
  }

  :root body #captureTab .capture-send-status[data-state="success"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
  }

  :root body #captureTab :is(.capture-pairing-sheet, .capture-wizard) :is(input, select, textarea) {
    border-color: var(--origin-shell-border-strong);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #captureTab :is(.capture-pairing-sheet, .capture-wizard) button {
    min-height: 49px;
  }
}

@media screen and (min-width: 900px) {
  :root body #captureTab #mCaptureWorkspace {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 14px;
    align-items: start;
  }

  :root body #captureTab #mCaptureWorkspace > :is(.capture-draft-notice, .capture-stepper) {
    grid-column: 1 / -1;
  }

  :root body #captureTab .capture-type-grid {
    grid-template-columns: 1fr;
    margin: 0;
  }

  :root body #captureTab .capture-type-card {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 72px;
    text-align: left;
  }

  :root body #captureTab .capture-type-card small {
    grid-column: 2;
  }
}

/* --------------------------------------------------------------------------
   M05 P09 · Origin UI mobile printing
   Touch-first screen controls; PDF, ticket and queue behavior stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body #printTab.tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
    animation: none;
  }

  :root body #printTab .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body #printTab .section-head p,
  :root body #mOrderDocumentDialog .document-dialog-copy {
    color: var(--origin-shell-muted);
  }

  :root body #printTab .print-center-layout {
    min-width: 0;
    gap: var(--space-small);
  }

  :root body #printTab .sheet,
  :root body #mOrderDocumentDialog .document-dialog-sheet {
    min-width: 0;
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body #printTab .print-center-controls {
    display: grid;
    gap: var(--space-small);
    align-content: start;
  }

  :root body #printTab .print-center-controls > label,
  :root body #mOrderDocumentDialog > .document-dialog-sheet > label {
    min-width: 0;
    color: var(--origin-shell-text);
    font-weight: var(--font-weight-semibold);
  }

  :root body #printTab :is(select, button),
  :root body #mOrderDocumentDialog :is(select, button) {
    min-height: 48px;
  }

  :root body #printTab select,
  :root body #mOrderDocumentDialog select {
    min-width: 0;
    border-color: var(--origin-shell-border-strong);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body #printTab .print-order-summary {
    min-width: 0;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: var(--space-small) var(--space-medium);
    background: #eff6ff;
    background-image: none;
    color: #1e40af;
    overflow-wrap: anywhere;
  }

  :root body #printTab .print-order-summary > :is(strong, span) {
    display: block;
  }

  :root body #printTab .print-order-summary > span {
    margin-top: 3px;
    color: #475569;
    font-size: var(--font-size-sm);
  }

  :root body #printTab .document-action-grid,
  :root body #mOrderDocumentDialog .document-action-grid {
    gap: var(--space-small);
  }

  :root body #printTab .document-action,
  :root body #mOrderDocumentDialog .document-action,
  :root body #ordersTab .document-actions-trigger {
    min-width: 0;
    border-color: var(--origin-shell-border);
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body #printTab .document-action > span,
  :root body #mOrderDocumentDialog .document-action > span,
  :root body #ordersTab .document-actions-trigger-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body #printTab .document-action small,
  :root body #mOrderDocumentDialog .document-action small,
  :root body #ordersTab .document-actions-trigger small {
    color: var(--origin-shell-muted);
  }

  :root body :is(#mPrintCenterA4Btn, #mPrintOrderA4Btn):not(:disabled) {
    border-color: var(--origin-shell-accent);
    background: var(--origin-shell-accent);
    color: #ffffff;
  }

  :root body :is(#mPrintCenterA4Btn, #mPrintOrderA4Btn):not(:disabled) > span {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  :root body :is(#mPrintCenterA4Btn, #mPrintOrderA4Btn):not(:disabled) small {
    color: #ffffff;
  }

  :root body #printTab .runtime-status-list > div {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    color: var(--origin-shell-text);
  }

  :root body #printTab .runtime-status-list small {
    color: var(--origin-shell-muted);
  }

  :root body :is(#mPrintCenterStatus, #mOrderDocumentStatus).document-job-status {
    min-height: 48px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: #1d4ed8;
    overflow-wrap: anywhere;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body :is(#mPrintCenterStatus, #mOrderDocumentStatus).document-job-status[data-state="completed"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
  }

  :root body :is(#mPrintCenterStatus, #mOrderDocumentStatus).document-job-status:is([data-state="failed"], [data-state="cancelled"]) {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
  }

  :root body #mCancelPrintJobBtn {
    width: 100%;
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
  }

  :root body #mOrderDocumentDialog .dialog-top {
    border-color: var(--origin-shell-border);
  }
}

@media screen and (max-width: 340px) {
  :root body #printTab .document-action-grid,
  :root body #mOrderDocumentDialog .document-action-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 700px) {
  :root body #printTab .print-center-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }

  :root body #printTab .document-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   M05 P11 · Origin UI mobile auxiliary surfaces
   -------------------------------------------------------------------------- */
@media screen {
  :root body .mobile-dialog {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-modal);
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body .mobile-dialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body .origin-notification-dialog {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-modal);
  }

  :root body .origin-notification-dialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body .origin-notification-sheet {
    background: var(--origin-shell-surface);
    background-image: none;
    color: var(--origin-shell-text);
  }

  :root body :is(.origin-notification-header, .origin-notification-footer) {
    border-color: var(--origin-shell-border);
  }

  :root body :is(.origin-notification-heading strong, .origin-notification-item-copy strong, .origin-notification-empty strong) {
    color: var(--origin-shell-text);
  }

  :root body :is(.origin-notification-item-copy p, .origin-notification-empty, .origin-notification-footer) {
    color: var(--origin-shell-muted);
  }

  :root body :is(.origin-notification-heading > span, .origin-notification-item-meta) {
    color: var(--origin-shell-accent);
  }

  :root body :is(.origin-notification-header-icon, .origin-notification-empty-icon, .origin-notification-item-icon, .origin-notification-total, .origin-center-event-icon, .origin-center-count) {
    border-color: #bfdbfe;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: #1d4ed8;
  }

  :root body .origin-notification-item {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    background-image: none;
  }

  :root body :is(.origin-notification-close, .origin-notification-dismiss, .origin-notification-clear) {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    color: #475569;
  }

  :root body .more-dialog-sheet {
    background: var(--origin-shell-surface);
    background-image: none;
    color: var(--origin-shell-text);
  }

  :root body .more-menu button {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body .more-menu button > span {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body .more-menu small {
    color: var(--origin-shell-muted);
  }

  :root body .mobile-picker-layout button.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body :is(.mobile-dialog .mini-card, .mobile-dialog .card) {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body :is(.mobile-dialog .mini-card strong, .mobile-dialog .card strong) {
    color: var(--origin-shell-text);
  }

  :root body .toast {
    border-color: #86efac;
    background: #f0fdf4;
    background-image: none;
    box-shadow: var(--shadow-modal);
    color: #166534;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* --------------------------------------------------------------------------
   M05 P08 · Origin UI mobile accounting and reports
   Metrics, periods, exports, routing and offline behavior stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body :is(#accountingTab, #reportsTab).tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body :is(#accountingTab, #reportsTab) .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body :is(#accountingTab, #reportsTab) :is(.section-head p, .section-select, .accounting-metric span, .report-card span) {
    color: var(--origin-shell-muted);
  }

  :root body :is(#accountingTab, #reportsTab) :is(.accounting-metrics-grid, .report-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-small);
  }

  :root body :is(#accountingTab .accounting-metric, #reportsTab .report-card) {
    min-width: 0;
    min-height: 104px;
    overflow: hidden;
    border: 1px solid var(--origin-shell-border);
    border-top: 3px solid #60a5fa;
    border-radius: var(--radius-lg);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body :is(#accountingTab .accounting-metric, #reportsTab .report-card)::before,
  :root body :is(#accountingTab .accounting-metric, #reportsTab .report-card)::after {
    display: none;
    content: none;
  }

  :root body :is(#accountingTab .accounting-metric, #reportsTab .report-card) strong {
    align-self: end;
    overflow-wrap: anywhere;
    color: var(--origin-shell-text);
    font-size: clamp(20px, 6vw, 28px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
  }

  :root body :is(#accountingTab .metric-green, #accountingTab .metric-teal, #reportsTab .report-green) {
    border-top-color: #22c55e;
  }

  :root body :is(#accountingTab .metric-amber, #reportsTab .report-amber) {
    border-top-color: #f59e0b;
    background: #fffbeb;
  }

  :root body :is(#accountingTab .metric-rose, #reportsTab .report-rose) {
    border-top-color: #ef4444;
    background: #fff7f7;
  }

  :root body :is(#accountingTab, #reportsTab) .sheet {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--origin-shell-text);
  }

  :root body #accountingTab .accounting-status-list > div {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    color: var(--origin-shell-text);
  }

  :root body #accountingTab .accounting-status-list > div small {
    color: var(--origin-shell-muted);
  }

  :root body #accountingTab #mAccountingPending .card {
    max-width: 100%;
    min-width: 0;
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    box-shadow: none;
  }

  :root body #accountingTab > .sheet,
  :root body #accountingTab :is(.dialog-top, #mAccountingPending) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  :root body #accountingTab .dialog-top {
    flex-wrap: wrap;
  }

  :root body #accountingTab .dialog-top > div {
    min-width: 0;
  }

  :root body #accountingTab #mAccountingPending .tag.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
  }

  :root body #reportsTab .report-risk {
    border-color: #fde68a;
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
  }

  :root body #reportsTab .report-risk span {
    color: #92400e;
    overflow-wrap: anywhere;
  }

  :root body :is(#accountingTab, #reportsTab) .empty-state {
    border: 1px dashed var(--origin-shell-border-strong);
    background: var(--origin-shell-surface-soft);
    color: var(--origin-shell-muted);
  }

  :root body :is(#mAccountingExportBtn, #mExportReportCsvBtn) {
    min-height: 48px;
  }
}

@media screen and (max-width: 340px) {
  :root body :is(#accountingTab, #reportsTab) :is(.accounting-metrics-grid, .report-grid) {
    grid-template-columns: 1fr;
  }

  :root body #accountingTab .dialog-top {
    align-items: stretch;
    flex-direction: column;
  }

  :root body #accountingTab #mAccountingExportBtn {
    width: 100%;
  }
}

@media screen and (min-width: 700px) {
  :root body #accountingTab .accounting-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root body #reportsTab .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1000px) {
  :root body #accountingTab .accounting-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   M05 P02 · Origin UI mobile clients and equipment
   Touch-first records styling without changing dynamic markup or behavior.
   -------------------------------------------------------------------------- */
@media screen {
  :root body :is(#clientsTab, #devicesTab).tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  :root body :is(#clientsTab, #devicesTab) .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body :is(#clientsTab, #devicesTab) :is(.section-head p, .card p) {
    color: var(--origin-shell-muted);
  }

  :root body :is(#clientsTab, #devicesTab) .card p {
    overflow-wrap: anywhere;
  }

  :root body :is(#clientsTab, #devicesTab) .list > .card:not(:has(.actions)) {
    border-style: dashed;
    background: var(--origin-shell-surface-soft);
    box-shadow: none;
  }

  :root body :is(#clientsTab, #devicesTab) .actions > button {
    flex: 1 1 120px;
  }
}

/* --------------------------------------------------------------------------
   M05 P01 · Origin UI mobile orders and saved orders
   Shared M04 controls remain canonical; only order composition is specialized.
   -------------------------------------------------------------------------- */
@media screen {
  :root body :is(#ordersTab, #savedTab).tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  :root body :is(#ordersTab, #savedTab) .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body :is(#ordersTab, #savedTab) .section-head p,
  :root body #ordersTab .card p {
    color: var(--origin-shell-muted);
  }

  :root body #ordersTab .sheet.nested {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
  }

  :root body #ordersTab .file-box {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body #ordersTab .evidence-tile {
    border: 1px solid var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
  }

  :root body #ordersTab .evidence-tile button {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
  }

  :root body #ordersTab .total-bar {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--origin-shell-text);
  }

  :root body #ordersTab .order-finance-summary span {
    color: var(--origin-shell-muted);
  }

  :root body #ordersTab .order-finance-summary strong {
    color: #15803d;
  }

  :root body #ordersTab .document-actions-trigger {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
  }

  :root body #savedTab .tablet-filter-bar {
    margin-top: 0;
  }

  :root body #savedTab :is(.saved-order-heading h3, .saved-order-amounts strong) {
    color: var(--origin-shell-text);
  }

  :root body #savedTab .saved-order-amounts span {
    color: var(--origin-shell-muted);
  }

  :root body .mobile-picker-layout button.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
  }
}

@media screen and (min-width: 700px) {
  body .tablet-rail {
    border-color: var(--origin-shell-border);
    border-radius: var(--radius-lg);
    background: var(--origin-shell-surface);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body .tablet-rail-mark {
    border-color: var(--origin-shell-accent);
    border-radius: var(--radius-md);
    background: var(--origin-shell-accent);
    box-shadow: none;
  }

  body .tablet-new-order,
  body .tablet-rail-nav button {
    border-radius: var(--radius-md);
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-muted);
  }

  body .tablet-new-order {
    border-color: var(--origin-shell-accent);
    background: var(--origin-shell-accent);
    color: #ffffff;
  }

  body .tablet-rail-nav button.active {
    border-color: #bfdbfe;
    background: var(--origin-shell-hover);
    box-shadow: none;
    color: var(--origin-shell-accent);
  }

  body .tablet-rail-status > span {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
  }
}

/* --------------------------------------------------------------------------
   M04 · Origin UI shared mobile components
   Touch controls and containers are normalized without changing tab layouts.
   -------------------------------------------------------------------------- */
@media screen {
  :root body :is(.sheet, .card, .mini-card) {
    border-color: var(--origin-shell-border);
    border-radius: var(--radius-lg);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body .sheet.nested,
  :root body .mini-card {
    background: var(--origin-shell-surface-soft);
    box-shadow: none;
  }

  :root body :is(.card h3, .mini-card strong) {
    color: var(--origin-shell-text);
  }

  :root body .thumb {
    border: 1px solid var(--origin-shell-border);
    background: #f1f5f9;
    color: var(--origin-shell-muted);
  }

  :root body :is(.primary, .ghost, .icon-action, .text-action, .document-actions-trigger, .document-action, .danger, .success) {
    min-height: 48px;
    padding: 11px 15px;
    border: 1px solid var(--origin-shell-border);
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
    font-weight: var(--font-weight-semibold);
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body .primary {
    border-color: var(--origin-shell-accent);
    background: var(--origin-shell-accent);
    color: #ffffff;
  }

  :root body :is(.ghost, .icon-action, .text-action, .document-actions-trigger, .document-action) {
    background: var(--origin-shell-surface-soft);
    color: #334155;
  }

  :root body button.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
  }

  :root body button.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
  }

  :root body :is(.primary, .ghost, .icon-action, .text-action, .document-actions-trigger, .document-action, .danger, .success):active:not(:disabled) {
    filter: none;
    transform: scale(0.985);
  }

  :root body :is(button, [role="button"], a, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--origin-shell-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  }

  :root body :is(button, input, select, textarea):disabled,
  :root body [aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.56;
  }

  :root body :is(.search, label input:not([type="checkbox"]):not([type="radio"]), label select, label textarea) {
    min-height: 48px;
    border: 1px solid var(--origin-shell-border-strong);
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body :is(input, textarea)::placeholder {
    color: #94a3b8;
    opacity: 1;
  }

  :root body :is(.search, label input:not([type="checkbox"]):not([type="radio"]), label select, label textarea):focus {
    border-color: var(--origin-shell-accent);
    background: var(--origin-shell-surface);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  }

  :root body label {
    color: var(--origin-shell-text);
  }

  :root body :is(input, select, textarea):disabled {
    border-color: var(--origin-shell-border);
    background: #f1f5f9;
    color: #64748b;
  }

  :root body input:is([type="checkbox"], [type="radio"]) {
    accent-color: var(--origin-shell-accent);
  }

  :root body :is(.tag, .section-badge, .info-version-pill, .recent-status, .sync-pill, .document-job-status) {
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-round);
    background: #f1f5f9;
    background-image: none;
    box-shadow: none;
    color: #475569;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body :is(.section-badge, .info-version-pill, .sync-pill) {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body :is(.tag.ok, .recent-status.ok) {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
  }

  :root body :is(.tag.danger, .recent-status.danger, .sync-pill[data-tone="error"]) {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
  }

  :root body .runtime-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
  }

  :root body .runtime-dot.ready {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
  }

  :root body .mobile-dialog {
    border: 1px solid var(--origin-shell-border);
    border-radius: var(--radius-xl);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-modal);
    color: var(--origin-shell-text);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  :root body .mobile-dialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body :is(.origin-notification-sheet, .more-dialog-sheet) {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body .mobile-dialog .dialog-top {
    padding-bottom: var(--space-small);
    border-bottom: 1px solid var(--origin-shell-border);
  }

  :root body .mobile-dialog .actions {
    padding-top: var(--space-small);
    border-top: 1px solid var(--origin-shell-border);
  }

  :root body .empty-state {
    border-color: var(--origin-shell-border-strong);
    background: var(--origin-shell-surface-soft);
    background-image: none;
    color: var(--origin-shell-muted);
  }

  :root body .toast {
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    background: #f0fdf4;
    background-image: none;
    box-shadow: var(--shadow-medium);
    color: #166534;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* --------------------------------------------------------------------------
   M03 · Origin UI mobile home
   Light dashboard surfaces; existing actions and data remain unchanged.
   -------------------------------------------------------------------------- */
@media screen {
  body #homeTab.tab-panel.active {
    --home-surface: #ffffff;
    --home-surface-soft: #f8fafc;
    --home-border: #d8e0ea;
    --home-text: #172033;
    --home-muted: #64748b;
    --home-accent: #2563eb;
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--home-text);
  }

  body #homeTab .dashboard-hero {
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    background: var(--home-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--home-text);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body #homeTab .dashboard-hero::before,
  body #homeTab .dashboard-hero::after,
  body #homeTab .stat-card::after,
  body #homeTab .module-card::before,
  body #homeTab .module-card::after {
    display: none;
    content: none;
  }

  body #homeTab .dashboard-hero h1 {
    color: var(--home-text);
    text-shadow: none;
  }

  body #homeTab :is(.hero-date, .section-kicker, .capture-launch-card small) {
    color: var(--home-accent);
  }

  body #homeTab .hero-copy p {
    color: var(--home-muted);
  }

  body #homeTab .pixel-not-card {
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #0f172a;
    background-image: none;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body #homeTab .stat-card {
    border: 1px solid var(--home-border);
    border-radius: var(--radius-md);
    background: var(--home-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--home-text);
  }

  body #homeTab .stat-card:active,
  body #homeTab :is(.module-card, .secondary-tool-card, .recent-order, .capture-launch-card):active {
    border-color: #93c5fd;
    background: #eff6ff;
    filter: none;
    transform: scale(0.99);
  }

  body #homeTab .stat-icon,
  body #homeTab :is(.module-glyph, .capture-launch-icon) {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: var(--home-accent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body #homeTab .stat-number,
  body #homeTab :is(.module-copy strong, .capture-launch-card strong, .secondary-tools strong, .recent-order-copy strong) {
    color: var(--home-text);
  }

  body #homeTab .stat-label,
  body #homeTab :is(.module-copy > span, .recent-order-copy span) {
    color: var(--home-muted);
  }

  body #homeTab .capture-launch-card {
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: var(--home-text);
  }

  body #homeTab .module-card,
  body #homeTab .secondary-tool-card {
    border: 1px solid var(--home-border);
    border-radius: var(--radius-md);
    background: var(--home-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--home-text);
  }

  body #homeTab .module-value {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: #1d4ed8;
  }

  body #homeTab .module-chevron,
  body #homeTab .secondary-tools-chevron {
    color: #94a3b8;
  }

  body #homeTab .secondary-tools,
  body #homeTab .recent-panel {
    border: 1px solid var(--home-border);
    border-radius: var(--radius-lg);
    background: var(--home-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--home-text);
  }

  body #homeTab .secondary-tool-card,
  body #homeTab .recent-order {
    background: var(--home-surface-soft);
    box-shadow: none;
  }

  body #homeTab .text-action {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    box-shadow: none;
    color: #1d4ed8;
  }

  body #homeTab .recent-status {
    background: #dbeafe;
    color: #1d4ed8;
  }

  body #homeTab .recent-status.danger {
    background: #ffe4e6;
    color: #be123c;
  }

  body #homeTab .recent-status.ok {
    background: #dcfce7;
    color: #15803d;
  }

  body #homeTab button:focus-visible,
  body #homeTab summary:focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 2px;
  }
}

@media screen and (min-width: 700px) {
  body #homeTab .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1100px) {
  body #homeTab .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  body #homeTab .pixel-not-card {
    width: 280px;
    max-width: 280px;
  }
}

/* --------------------------------------------------------------------------
   M05 P03 · Origin UI mobile agenda
   Existing date, delivery, note, routing and Sync contracts stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body #agendaTab.tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #agendaTab .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body #agendaTab .section-head p,
  :root body #agendaTab .card p {
    color: var(--origin-shell-muted);
  }

  :root body #agendaTab > .sheet {
    width: min(860px, 100%);
    padding: 18px;
  }

  :root body #agendaTab #mAgendaOrders {
    margin-top: 0;
  }

  :root body #agendaTab #mAgendaOrders .card {
    background: var(--origin-shell-surface);
    box-shadow: none;
  }

  :root body #agendaTab #mAgendaOrders .card p {
    overflow-wrap: anywhere;
  }

  :root body #agendaTab #mAgendaOrders .card:not(:has(.actions)) {
    border-style: dashed;
    background: var(--origin-shell-surface-soft);
  }

  :root body #agendaTab .actions > button {
    flex: 1 1 140px;
  }

  :root body #agendaTab #mAgendaNote {
    min-height: 120px;
  }
}

@media screen and (min-width: 700px) {
  :root body #agendaTab #mAgendaDate {
    max-width: 280px;
  }
}

/* --------------------------------------------------------------------------
   M05 P04 · Origin UI mobile inventory
   Existing product rendering, form, search, actions and Sync stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body #inventoryTab.tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #inventoryTab .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body #inventoryTab :is(.section-head p, .card p) {
    color: var(--origin-shell-muted);
  }

  :root body #inventoryTab .card :is(h3, p) {
    overflow-wrap: anywhere;
  }

  :root body #inventoryTab .tag {
    font-variant-numeric: tabular-nums;
  }

  :root body #inventoryTab .list > .card:not(:has(.actions)) {
    border-style: dashed;
    background: var(--origin-shell-surface-soft);
    box-shadow: none;
  }

  :root body #inventoryTab .actions > button {
    flex: 1 1 120px;
  }
}

@media screen and (min-width: 700px) {
  :root body #inventoryTab > .search {
    width: min(440px, 100%);
  }
}

/* --------------------------------------------------------------------------
   M05 P05 · Origin UI mobile POS and cash
   Existing cart, Point, CompleteSale, cash, routing and Sync stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body :is(#posTab, #cashTab).tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body :is(#posTab, #cashTab) .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body :is(#posTab, #cashTab) .section-head p,
  :root body :is(#posTab, #cashTab) .card p,
  :root body #posTab .point-payment-head p {
    color: var(--origin-shell-muted);
  }

  :root body #posTab #mNextSale {
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-round);
    padding: 7px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
  }

  :root body #posTab #mCartList .card {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    box-shadow: none;
  }

  :root body :is(#posTab, #cashTab) .card :is(h3, p) {
    overflow-wrap: anywhere;
  }

  :root body #posTab #mCartList .card:not(:has(.actions)),
  :root body #cashTab #mCashList .card:not(:is(.cash-move)) {
    border-style: dashed;
    background: var(--origin-shell-surface-soft);
  }

  :root body #posTab #mCartList .actions > button {
    flex: 1 1 100%;
  }

  :root body #posTab .total-bar {
    min-height: 82px;
    border-color: #bfdbfe;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #posTab #mSaleTotal {
    color: var(--origin-shell-text);
    font-size: clamp(30px, 8vw, 42px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
  }

  :root body #posTab .mercado-pago-action {
    border-color: #bae6fd;
    background: #f0f9ff;
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #posTab .mercado-pago-mark {
    box-shadow: none;
  }

  :root body #posTab :is(.mercado-pago-copy small, .mercado-pago-arrow) {
    color: #0369a1;
  }

  :root body #posTab .point-payment-card {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #posTab #mCompleteSaleBtn {
    min-height: 56px;
    font-size: 16px;
  }

  :root body #cashTab .stat-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px;
    border: 1px solid var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--origin-shell-text);
  }

  :root body #cashTab .stat-card::before,
  :root body #cashTab .stat-card::after {
    display: none;
    content: none;
  }

  :root body #cashTab .stat-number {
    grid-column: 1;
    color: var(--origin-shell-text);
    font-variant-numeric: tabular-nums;
  }

  :root body #cashTab .stat-label {
    grid-column: 1;
    color: var(--origin-shell-muted);
  }

  :root body #cashTab .cash-move {
    background: var(--origin-shell-surface);
    box-shadow: none;
  }

  :root body #cashTab .cash-income {
    border-left-color: #22c55e;
  }

  :root body #cashTab .cash-expense {
    border-left-color: #ef4444;
  }

  :root body #cashTab .tag {
    font-variant-numeric: tabular-nums;
  }
}

@media screen and (min-width: 1000px) {
  :root body #cashTab.tab-panel.active {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
    gap: 14px;
    align-items: start;
  }

  :root body #cashTab > :is(.section-head, .stats-grid) {
    grid-column: 1 / -1;
  }

  :root body #cashTab > .sheet {
    grid-column: 1;
    grid-row: 3 / span 2;
    margin: 0;
  }

  :root body #cashTab > #mExportCashCsvBtn,
  :root body #cashTab > #mCashList {
    grid-column: 2;
  }

  :root body #cashTab > #mCashList {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   M05 P06 · Origin UI mobile quotes
   Dynamic quote markup, delegated events, Sync and document behavior stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body #quotesTab.tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #quotesTab .section-head {
    border-color: var(--origin-shell-border);
    color: var(--origin-shell-text);
  }

  :root body #quotesTab .section-head p,
  :root body #quotesTab .mobile-quote-list :is(small, em),
  :root body #quotesTab .mobile-quote-client,
  :root body #quotesTab .mobile-quote-items header :is(small, span),
  :root body #quotesTab :is(.mobile-quote-items, .mobile-quote-summary) dt {
    color: var(--origin-shell-muted);
  }

  :root body #quotesTab :is(.tablet-filter-bar, .mobile-quote-list article, .mobile-quote-block, .mobile-quote-items article, .mobile-quote-summary) {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-subtle);
    color: var(--origin-shell-text);
  }

  :root body #quotesTab .mobile-quote-list article > button {
    min-height: 72px;
  }

  :root body #quotesTab .mobile-quote-list :is(strong, em) {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  :root body #quotesTab .mobile-quote-list b,
  :root body #quotesTab .mobile-quote-items header b,
  :root body #quotesTab :is(.mobile-quote-items, .mobile-quote-summary) dd {
    color: var(--origin-shell-text);
    font-variant-numeric: tabular-nums;
  }

  :root body #quotesTab .mobile-quote-list i {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }

  :root body #quotesTab .empty-state {
    border-color: var(--origin-shell-border-strong);
    background: var(--origin-shell-surface-soft);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-muted);
  }

  :root body #quotesTab .mobile-quote-client {
    border-color: var(--origin-shell-border-strong);
    background: var(--origin-shell-surface-soft);
  }

  :root body #quotesTab .mobile-quote-client strong {
    color: var(--origin-shell-text);
  }

  :root body #quotesTab .mobile-quote-items article header {
    align-items: start;
  }

  :root body #quotesTab .mobile-quote-items article header strong,
  :root body #quotesTab .mobile-quote-items article header span {
    overflow-wrap: anywhere;
  }

  :root body #quotesTab .mobile-quote-items article header b {
    color: #1d4ed8;
    font-size: 18px;
  }

  :root body #quotesTab .mobile-quote-items dl > div {
    padding: 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--origin-shell-surface-soft);
  }

  :root body #quotesTab .mobile-quote-items article > p {
    margin: 0;
    overflow-wrap: anywhere;
  }

  :root body #quotesTab .mobile-quote-items footer > button,
  :root body #quotesTab .mobile-quote-inline-actions > button,
  :root body #quotesTab .mobile-quote-actions > button,
  :root body #quotesTab .mobile-quote-block > button {
    min-height: 48px;
  }

  :root body #quotesTab .mobile-quote-block.internal-field {
    border-left: 3px solid #d97706;
  }

  :root body #quotesTab .mobile-quote-block > div:last-child > p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--origin-shell-border);
    overflow-wrap: anywhere;
  }

  :root body #quotesTab .mobile-quote-summary dl > div {
    border-color: var(--origin-shell-border);
  }

  :root body #quotesTab .mobile-quote-summary .internal {
    color: #92400e;
  }

  :root body #quotesTab .mobile-quote-summary .total {
    min-height: 68px;
    align-items: center;
    border-color: #bfdbfe;
    background: #eff6ff;
  }

  :root body #quotesTab .mobile-quote-summary .total dd {
    color: #1d4ed8;
    font-size: clamp(22px, 6vw, 30px);
    letter-spacing: -0.03em;
  }

  :root body #quotesTab .mobile-quote-summary > p {
    border: 1px solid var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    color: var(--origin-shell-text);
  }

  :root body #quotesTab .mobile-quote-actions {
    padding-top: 12px;
    border-top: 1px solid var(--origin-shell-border);
  }

  :root body #quotesTab [data-mquote-action="convert"]:not(:disabled) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
  }
}

@media screen and (min-width: 900px) {
  :root body #quotesTab .mobile-quote-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  :root body #quotesTab .mobile-quote-editor > :is(.mobile-quote-items, .mobile-quote-summary, .mobile-quote-actions) {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   M05 P10 · Origin UI mobile settings and information
   PWA install, tablet preferences, data tools and static copy stay intact.
   -------------------------------------------------------------------------- */
@media screen {
  :root body :is(#settingsTab, #infoTab).tab-panel.active {
    color-scheme: light;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body :is(#settingsTab, #infoTab) .section-head {
    margin-bottom: 12px;
    padding: 2px 0 14px;
    border-color: var(--origin-shell-border);
  }

  :root body :is(#settingsTab, #infoTab) .section-head :is(h2, p) {
    color: var(--origin-shell-text);
  }

  :root body :is(#settingsTab, #infoTab) .section-head p {
    color: var(--origin-shell-muted);
  }

  :root body :is(#settingsTab, #infoTab) :is(.sheet, .runtime-grid article, .settings-group, .mobile-quote-settings, .point-mobile-setup, .install-app-card, .tablet-preferences-card, .tablet-data-tools, .tablet-background-control, .pwa-runtime-grid > span, .runtime-status-list > div, .capability-list > div) {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body #settingsTab #mSettingsForm {
    gap: 12px;
    margin-top: 0;
    padding: 14px;
  }

  :root body #settingsTab :is(.settings-group, .mobile-quote-settings) {
    gap: 10px;
    margin: 0;
    padding: 13px;
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface-soft);
  }

  :root body #settingsTab :is(.settings-group, .mobile-quote-settings) legend {
    color: #334155;
  }

  :root body :is(#settingsTab, #infoTab) :is(label, h3, strong) {
    color: var(--origin-shell-text);
  }

  :root body :is(#settingsTab, #infoTab) :is(p, small, .settings-hint, .legal-copy p, .point-payment-head p, .point-mobile-setup small, .install-app-card small) {
    color: var(--origin-shell-muted);
  }

  :root body #settingsTab :is(.point-mobile-setup, .install-app-card, .tablet-preferences-card, .tablet-data-tools) {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  :root body #settingsTab :is(.mercado-pago-mark, .install-app-icon) {
    border-color: #bfdbfe;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-accent);
  }

  :root body #settingsTab .pwa-runtime-grid > span {
    padding: 9px;
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface-soft);
  }

  :root body #settingsTab .pwa-runtime-grid small {
    color: var(--origin-shell-muted);
  }

  :root body #settingsTab .pwa-runtime-grid strong {
    color: var(--origin-shell-text);
  }

  :root body #settingsTab .tablet-background-control {
    background: var(--origin-shell-surface-soft);
  }

  :root body #settingsTab .tablet-background-preview {
    border-color: var(--origin-shell-border-strong);
    background: #e2e8f0;
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-accent);
  }

  :root body #settingsTab .tablet-toggle {
    min-height: 48px;
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface-soft);
    background-image: none;
    box-shadow: none;
    color: var(--origin-shell-text);
  }

  :root body #settingsTab :is(button, input:not([type="file"]), select, textarea) {
    min-height: 49px;
  }

  :root body #settingsTab input[type="checkbox"] {
    min-width: 24px;
    min-height: 24px;
  }

  :root body #settingsTab #mPointSetupStatus[data-tone="ok"] {
    color: #15803d;
  }

  :root body #settingsTab #mPointSetupStatus[data-tone="warning"] {
    color: #b45309;
  }

  :root body #settingsTab #mPointSetupStatus[data-tone="error"] {
    color: #dc2626;
  }

  :root body #infoTab .info-version-pill {
    min-height: 40px;
    border-color: #bfdbfe;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
    color: #1d4ed8;
  }

  :root body #infoTab .runtime-grid {
    gap: 10px;
  }

  :root body #infoTab .runtime-grid article {
    min-height: 96px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--origin-shell-surface);
  }

  :root body #infoTab .runtime-grid article > span {
    color: var(--origin-shell-muted);
  }

  :root body #infoTab .runtime-grid article > strong {
    color: var(--origin-shell-text);
  }

  :root body #infoTab :is(.runtime-status-list > div, .capability-list > div) {
    min-height: 48px;
    border-radius: var(--radius-md);
    background: var(--origin-shell-surface-soft);
  }

  :root body #infoTab .capability-list > div > span {
    background: #dcfce7;
    background-image: none;
    box-shadow: none;
    color: #15803d;
  }

  :root body #infoTab .runtime-dot {
    background: #d97706;
    box-shadow: 0 0 0 4px #fef3c7;
  }

  :root body #infoTab .runtime-dot.ready {
    background: #16a34a;
    box-shadow: 0 0 0 4px #dcfce7;
  }

  :root body #infoTab .runtime-state {
    background: #fffbeb;
    background-image: none;
    box-shadow: none;
    color: #b45309;
  }

  :root body #infoTab .runtime-state.ready {
    background: #f0fdf4;
    color: #15803d;
  }

  :root body #mInstallHelpDialog {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body #mInstallHelpDialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root body #mInstallHelpDialog .sheet {
    border-color: var(--origin-shell-border);
    background: var(--origin-shell-surface);
    background-image: none;
    box-shadow: var(--shadow-modal);
    color: var(--origin-shell-text);
  }

  :root body #mInstallHelpDialog :is(h3, .install-steps li, .install-note strong) {
    color: var(--origin-shell-text);
  }

  :root body #mInstallHelpDialog :is(p, .install-note span) {
    color: var(--origin-shell-muted);
  }

  :root body #mInstallHelpDialog .install-note {
    border-color: #bfdbfe;
    background: #eff6ff;
    background-image: none;
    box-shadow: none;
  }
}

@media screen and (max-width: 430px) {
  :root body #settingsTab .pwa-runtime-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :root body #settingsTab .tablet-background-control {
    grid-template-columns: minmax(0, 1fr);
  }

  :root body #settingsTab .tablet-background-preview {
    min-height: 112px;
  }
}

@media screen and (min-width: 700px) {
  :root body #settingsTab #mSettingsForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  :root body #settingsTab #mSettingsForm > .mobile-quote-settings,
  :root body #settingsTab #mSettingsForm > button[type="submit"] {
    grid-column: 1 / -1;
  }

  :root body #infoTab .tablet-two-pane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen {
  :root body #settingsTab #mInstallAppCard[hidden],
  :root body[data-pwa-installed="true"] #settingsTab #mInstallAppCard {
    display: none;
  }
}

/* UX06-A: complete the existing Origin UI mobile presentation contracts. */
@media screen {
  :root {
    --origin-shell-muted: #475569;
    --origin-shell-border-strong: #64748b;
  }

  body .app-header {
    flex-wrap: wrap;
    row-gap: var(--space-compact);
  }

  body .mobile-sync-status {
    flex: 1 0 100%;
    color: var(--origin-shell-muted);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    text-align: center;
  }

  body .origin-center-copy strong {
    overflow: visible;
    font-size: var(--font-size-sm);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  :root body :is(.origin-center-copy > span, .origin-center-count, .bottom-nav-item, .bottom-calendar,
    .origin-notification-heading > span, .origin-notification-total, .origin-notification-item-meta,
    .origin-notification-footer, .origin-notification-clear, .more-menu small) {
    font-size: var(--font-size-xs);
  }

  :root body :is(.tab-panel small, .tab-panel .stat-label, .module-copy > span,
    .module-value, .recent-order-copy span, .recent-status, .tab-panel .tag, .section-badge,
    .info-version-pill, .pixel-not-message, .pixel-not-meta,
    .origin-notification-item-copy p, .origin-notification-empty > span:last-child) {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
  }

  body #homeTab {
    --home-muted: var(--origin-shell-muted);
  }

  :root body :is(.section-kicker, .hero-date) {
    color: var(--origin-shell-accent);
  }

  :root body .pixel-not-title {
    font-size: var(--font-size-xs);
  }

  body #homeTab :is(.stat-label, .module-copy > span, .module-value, .recent-order-copy span, .recent-status) {
    font-size: var(--font-size-sm);
  }

  :root body :is(.search, label input:not([type="checkbox"]):not([type="radio"]), label select, label textarea) {
    font-size: var(--font-size-base);
  }

  :root body :is(input, textarea)::placeholder {
    color: var(--origin-shell-muted);
  }

  :root body :is(.inline-check, .tablet-toggle) {
    min-height: 48px;
    cursor: pointer;
  }

  :root body .origin-notification-header {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: var(--space-small);
  }

  :root body .origin-notification-total {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  :root body .origin-notification-close {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  :root body .origin-notification-item {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  :root body :is(.origin-notification-close, .origin-notification-dismiss) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  :root body .origin-notification-clear {
    min-height: 44px;
    min-width: 44px;
    white-space: normal;
  }

  :root body .origin-notification-footer {
    flex-wrap: wrap;
    align-items: center;
  }

  :root body :is(.origin-notification-item-copy strong, .origin-notification-item-copy p, .origin-notification-item-meta) {
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
  }

  :root body .origin-notification-dialog {
    top: max(12px, env(safe-area-inset-top));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  :root body .empty-state {
    padding: var(--space-medium);
    overflow-wrap: anywhere;
  }

  :root body .card > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  :root body .saved-order-heading {
    flex-wrap: wrap;
  }

  :root body .saved-order-heading .tag {
    flex-shrink: 0;
    white-space: nowrap;
  }

  :root body #captureTab #mCaptureWorkspace[hidden] {
    display: none;
  }
}

body.tablet-reduce-motion :is(button, summary):active {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body :is(button, summary):active {
    transform: none !important;
  }
}

/* The hosted shell has no workshop session until a secure transport is available. */
body[data-pwa-runtime="HOSTED_WEB"] > :is(.app-header, main, .bottom-nav) {
  display: none !important;
}

.hosted-connection {
  max-width: 640px;
  margin: auto;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.hosted-connection :is(h1, p, small) {
  overflow-wrap: anywhere;
}

.hosted-connection h1 {
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.2;
}

.hosted-connection :is(p, small) {
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.hosted-connection small {
  display: block;
  font-size: var(--font-size-sm);
}

.hosted-connection .sheet {
  margin-bottom: var(--space-medium);
}

.hosted-connection button {
  min-height: 48px;
  width: 100%;
}

:root body[data-pwa-runtime="HOSTED_WEB"] .install-app-card[hidden] {
  display: none;
}

.hosted-connection .install-app-head strong {
  color: var(--color-text);
}

.hosted-connection .install-app-icon {
  color: var(--color-primary-strong);
  background: var(--color-surface-secondary);
  border-color: var(--color-border);
  box-shadow: none;
}

.hosted-connection .pwa-runtime-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.hosted-connection .pwa-runtime-grid > span {
  background: var(--color-surface-secondary);
  border-color: var(--color-border);
}

.hosted-connection .pwa-runtime-grid :is(small, strong) {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.hosted-connection button:disabled {
  color: var(--color-text-secondary);
  background: var(--color-surface-hover);
  border-color: var(--color-border);
  opacity: 1;
}
