:root {
  --orange: #0f7a73;
  --orange-dark: #0c5f5a;
  --green: #123d3a;
  --green-soft: #1a5c57;
  --cream: #f6efe4;
  --sand: #e6d5be;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d9c9b0;
  --white: #ffffff;
  --danger: #b91c1c;
  --ok: #15803d;
  --warn: #b45309;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  --radius: 18px;
  --nav: 72px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

html[data-palette="ocean"] { --orange: #2474e8; --orange-dark: #195ec0; --green: #17385f; --green-soft: #225d86; --sand: #e7f4ff; }
html[data-palette="berry"] { --orange: #a33ee1; --orange-dark: #7d25bd; --green: #3b185e; --green-soft: #612b82; --sand: #f4e9ff; }
html[data-palette="sunrise"] { --orange: #ef4faa; --orange-dark: #ce347f; --green: #532348; --green-soft: #7b355f; --sand: #fff0f4; }

html[data-appearance="dark"] {
  color-scheme: dark;
  --cream: #171329; --sand: #2b2445; --ink: #f6f3ff; --muted: #bbb3d1;
  --line: #3c3456; --white: #211b35; --shadow: 0 16px 42px rgba(4, 2, 13, .3);
}

html[data-appearance="dark"] body { background: #171329; }
html[data-appearance="dark"] body::before { background: radial-gradient(circle at 84% 5%, rgba(43, 158, 232, .18), transparent 30%), radial-gradient(circle at 52% 92%, rgba(239, 79, 170, .14), transparent 28%); }
html[data-appearance="dark"] :is(.topbar, .card, .search, .field input, .field select, .field textarea, .month-day, .business-chip, .topbar-action, .nav, .bubble.nexa, .profile-category summary) { background-color: var(--white); color: var(--ink); }
html[data-appearance="dark"] .badge.warn { background: #563516; color: #ffd29a; }
html[data-appearance="dark"] .profile-link { background: #29233d; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--orange-dark); }

.app-shell { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; background: linear-gradient(180deg, #efe4d2 0%, var(--cream) 180px); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--orange); color: white; display: grid; place-items: center;
  font-weight: 800; letter-spacing: -0.04em;
}
.page { padding: 0 16px calc(var(--nav) + 88px); }

h1 { font-size: 1.55rem; margin: 0 0 8px; letter-spacing: -0.03em; }
h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 22px 0 10px; }
p { color: var(--muted); line-height: 1.45; }

.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px;
}
.card.tap { width: 100%; text-align: left; border: 0; display: block; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.muted { color: var(--muted); font-size: 0.92rem; }
.big { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.03em; color: var(--green); }
.outstanding-amount { color: var(--danger); font-weight: 750; }
.payment-balance { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.payment-summary .row + .row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.calculation-preview .muted:first-child { margin-bottom: 10px; }
.calculation-preview .row + .row { margin-top: 8px; }
.calculation-preview small { display: block; margin-top: 10px; }

.badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 3px 10px; font-size: 0.75rem; font-weight: 650;
  background: var(--sand); color: var(--green);
}
.badge.warn { background: #ffedd5; color: var(--warn); }
.badge.danger { background: #fee2e2; color: var(--danger); }
.badge.ok { background: #dcfce7; color: var(--ok); }
.badge.info { background: #e0f2fe; color: #075985; }

.btn {
  border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 700;
  background: var(--orange); color: white; min-height: 48px;
}
.btn.secondary { background: var(--green); }
.btn.ghost { background: var(--sand); color: var(--ink); }
.btn.block { width: 100%; }
.btn.small { padding: 10px 12px; min-height: 44px; font-size: 0.92rem; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 16px; }
.actions.three { grid-template-columns: 1fr 1fr 1fr; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.current-quotes-card { width: 100%; margin: 12px 0 18px; text-align: left; }
.current-quotes-card .quote-summary { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.enquiry-row { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); text-align: left; cursor: pointer; }
.enquiry-row span, .enquiry-row small { display: block; }
.enquiry-row small { margin-top: 4px; color: var(--muted); }
.enquiry-detail h2 { margin-bottom: 4px; }
.public-confirmation { min-height: 100dvh; padding-top: 24px; }
.confirmation-card { margin-top: 24px; }
.confirmation-details { display: grid; gap: 12px; margin: 22px 0; }
.confirmation-details > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.confirmation-details span { color: var(--muted); }
.confirmation-success { padding: 14px; border-radius: 14px; background: #eaf8f1; color: #18794e; font-weight: 750; }
.booking-share-card { margin-bottom: 16px; overflow: hidden; }
.booking-share-card > .row { align-items: flex-start; }
.booking-share-card .btn { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 18px; text-align: center; line-height: 1.25; }
.booking-picker { display: grid; gap: 14px; }
.booking-calendar, .booking-time-panel { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.booking-calendar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.booking-calendar-heading span { color: var(--muted); font-size: .78rem; }
.booking-weekdays, .booking-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.booking-weekdays { margin-bottom: 6px; color: var(--muted); font-size: .7rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.booking-day { min-width: 0; min-height: 62px; padding: 7px 2px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.booking-day span { font-weight: 800; }
.booking-day small { font-size: .58rem; color: var(--muted); line-height: 1.1; }
.booking-day:not(:disabled):hover { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--white)); }
.booking-day.today { box-shadow: inset 0 0 0 1px var(--orange); }
.booking-day.selected { border-color: transparent; background: linear-gradient(145deg, #ef4faa, #8455ee 58%, #2b9ee8); color: white; box-shadow: 0 8px 18px rgba(132, 85, 238, .25); }
.booking-day.selected small { color: white; }
.booking-day:disabled { cursor: not-allowed; opacity: .42; }
.booking-time-panel > strong { display: block; margin-bottom: 10px; }
.booking-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.booking-time { position: relative; cursor: pointer; }
.booking-time input { position: absolute; opacity: 0; pointer-events: none; }
.booking-time span { min-height: 44px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--ink); font-weight: 750; text-align: center; }
.booking-time input:checked + span { border-color: transparent; background: linear-gradient(135deg, #2b9ee8, #8455ee); color: white; box-shadow: 0 7px 16px rgba(43, 158, 232, .22); }
.booking-time input:focus-visible + span, .booking-day:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 35%, transparent); outline-offset: 2px; }
.booking-empty { display: grid; gap: 5px; color: var(--muted); }
.booking-empty strong { color: var(--ink); }
.month-calendar { margin-top: 28px; padding-bottom: 12px; }
.month-heading { align-items: flex-end; margin-bottom: 14px; }
.month-heading h2 { margin: 0 0 2px; }
.month-controls { display: flex; gap: 6px; }
.month-controls .btn { min-width: 44px; font-size: 1.4rem; padding: 5px 12px; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.month-weekdays { margin-bottom: 6px; color: var(--muted); font-size: .72rem; text-align: center; }
.month-day { min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); display: grid; place-items: center; gap: 1px; padding: 5px 2px; }
.month-day small { min-width: 18px; padding: 2px 5px; border-radius: 999px; background: #eee8ff; color: #6035cf; font-weight: 800; }
.month-day.today { border-color: #9b80ed; }
.month-day.selected { background: linear-gradient(135deg, #d43bb4, #7047eb); color: white; border-color: transparent; }
.month-day.selected small { background: white; }
.month-day.empty-day { border: 0; background: transparent; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 650; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 12px;
  background: white; min-height: 48px;
}
.field textarea { min-height: 88px; resize: vertical; }
.date-entry { display: flex; position: relative; gap: 6px; width: 100%; }
.date-entry input[data-date-display] { min-width: 0; flex: 1; }
.date-entry .date-picker-button { flex: 0 0 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 1.25rem; }
.date-entry .date-picker-button:focus-visible, .date-entry input[data-date-display]:focus-visible { outline: 3px solid #7047eb; outline-offset: 2px; }
.date-entry input[type="date"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; right: 0; bottom: 0; }
.time-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.time-entry-grid .field { min-width: 0; }
.time-entry-grid input[data-time-entry] { width: 100%; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.field-help { margin: -5px 0 14px; color: var(--muted); font-size: .8rem; }
.day-agenda { margin: 14px 0 18px; padding: 18px; border: 1px solid rgba(229,225,243,.86); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); scroll-margin-top: 150px; }
.day-agenda h2 { margin-top: 0; }
.day-agenda:focus { outline: none; }
.day-agenda:focus-visible:not(.programmatic-focus) { outline: 3px solid #7047eb; outline-offset: 3px; border-radius: 20px; }
.day-agenda.programmatic-focus { outline: none; }
html[data-appearance="dark"] .day-agenda { background: var(--white); border-color: var(--line); }
.app-shell:has(#quote-form, #job-form) .fab { display: none; }
.customer-linked, .customer-required { display: grid; gap: 8px; }
.customer-linked strong { font-size: 1.05rem; }
.customer-required .btn { margin-top: 4px; }

.search {
  width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; min-height: 48px;
  background: white; box-shadow: var(--shadow);
}

.nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(480px, 100%); background: white;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 20;
}
.nav a {
  text-decoration: none; color: var(--muted); text-align: center;
  font-size: 0.7rem; font-weight: 650; padding: 8px 2px; border-radius: 12px;
}
.nav a.active { color: var(--orange-dark); background: #e7f6f4; }
.nav span { display: block; font-size: 1.15rem; }

.fab {
  position: fixed; right: max(16px, calc(50% - 240px + 16px));
  bottom: calc(var(--nav) + 12px); z-index: 21;
  border: 0; border-radius: 999px; padding: 14px 18px; min-height: 52px;
  background: var(--green); color: white; font-weight: 750; box-shadow: var(--shadow);
}

.sheet {
  position: fixed; inset: 0; background: rgba(28,25,23,.45); z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-card {
  width: min(480px, 100%); background: var(--cream); border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 88dvh; overflow: auto;
}

.chat { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.bubble { padding: 12px 14px; border-radius: 16px; max-width: 92%; white-space: pre-wrap; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--orange); color: white; }
.bubble.nexa { align-self: flex-start; background: white; box-shadow: var(--shadow); }

.hero {
  background: var(--green); color: white; border-radius: 24px; padding: 28px 20px; margin: 24px 16px;
}
.hero p { color: #c8ebe7; }
.welcome-actions { padding: 0 16px 40px; display: flex; flex-direction: column; gap: 10px; }
.app-shell.welcome-shell {
  --theme-primary: #7047eb; --theme-primary-dark: #5429ca; --theme-secondary: #ef4faa; --theme-tertiary: #2b9ee8;
  --theme-bg: #f8f7ff; --theme-tint: #f0ecff; --theme-tint-alt: #eaf5ff; --theme-accent-text: #5530c5;
  --cream: var(--theme-bg); --sand: var(--theme-tint); --line: #e4e0f2; --white: #ffffff; --ink: #211d3b; --muted: #706b8b;
  min-height: 100dvh; padding-top: 0; overflow: hidden; color: var(--ink); color-scheme: light; background: var(--theme-bg);
}
.welcome-page { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 54px; }
.welcome-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.welcome-brand .logo { width: 44px; height: 44px; }
.welcome-brand div { display: flex; flex-direction: column; gap: 2px; }
.welcome-brand strong { font-size: 1.05rem; letter-spacing: -.025em; }
.welcome-brand span { color: var(--theme-accent-text, var(--orange-dark)); font-size: .66rem; font-weight: 850; letter-spacing: .12em; }
.brand-slogan { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .55em; }
.brand-slogan .slogan-connect { color: #ef4faa; }
.brand-slogan .slogan-manage { color: #168fcf; }
.brand-slogan .slogan-grow { color: #7047eb; }
.welcome-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: clamp(24px, 5vw, 66px); align-items: center; border-radius: 34px; padding: clamp(26px, 5vw, 62px); background: linear-gradient(145deg, color-mix(in srgb, var(--theme-tint) 82%, var(--white)), color-mix(in srgb, var(--theme-tint-alt) 74%, var(--white))); border: 1px solid color-mix(in srgb, var(--theme-primary) 18%, var(--line)); box-shadow: var(--shadow); }
.welcome-kicker { margin: 0 0 10px; color: var(--theme-accent-text); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.welcome-story h1 { max-width: 720px; margin: 0; color: var(--ink); font-size: clamp(2.35rem, 6vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.welcome-lead { max-width: 670px; margin: 22px 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.welcome-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-primary-actions .btn { min-width: 190px; }
.welcome-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.welcome-status span { padding: 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 750; }
.welcome-nexa { position: relative; min-width: 0; margin: 0; border-radius: 30px; overflow: hidden; background: #080b1d; box-shadow: 0 22px 52px color-mix(in srgb, var(--theme-primary) 25%, transparent); }
.welcome-nexa img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.welcome-nexa figcaption { display: flex; flex-direction: column; gap: 5px; margin: 0 14px 14px; padding: 13px 15px; border-radius: 17px; background: rgba(27, 18, 55, .94); color: white; }
.welcome-nexa figcaption span { color: #e8defa; font-size: .82rem; line-height: 1.35; }
.welcome-preview { position: relative; margin-top: 22px; padding: clamp(26px, 4vw, 46px); border-radius: 30px; overflow: hidden; background: radial-gradient(circle at 12% 18%, rgba(239, 79, 170, .16), transparent 25%), radial-gradient(circle at 88% 22%, rgba(43, 158, 232, .15), transparent 24%), radial-gradient(circle at 52% 100%, rgba(112, 71, 235, .2), transparent 36%), repeating-linear-gradient(118deg, transparent 0 62px, rgba(43, 158, 232, .035) 63px 64px), #07091d; border: 1px solid rgba(132, 91, 244, .38); box-shadow: 0 18px 46px rgba(20, 10, 64, .22); }
.welcome-preview::after { content: ""; position: absolute; inset: auto -12% -90px; height: 180px; pointer-events: none; opacity: .52; background: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 17px, rgba(43, 158, 232, .16) 18px 19px, transparent 20px 33px, rgba(239, 79, 170, .13) 34px 35px); transform: rotate(-2deg); }
.welcome-preview-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.welcome-preview .welcome-kicker { color: #ff55c6; }
.welcome-preview-heading h2 { margin: 0; color: #ffffff; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.03em; text-transform: none; }
.welcome-preview-heading > p { max-width: 420px; margin: 0; color: #bbc2d8; }
.welcome-tool-flow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(46px, 6vw, 70px); max-width: 940px; margin: 42px auto 34px; padding: 18px 30px 28px; }
.welcome-tool-flow article { --piece-accent: #ff35c5; --piece-fill: rgba(76, 20, 82, .82); position: relative; min-width: 0; min-height: 230px; padding: 38px 42px 44px; border-radius: 24px; background: var(--piece-fill); border: 2px solid var(--piece-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--piece-accent) 25%, transparent), inset 0 0 32px rgba(255,255,255,.025); }
.welcome-tool-flow article:nth-child(2) { --piece-accent: #25e9ff; --piece-fill: rgba(10, 67, 82, .84); }
.welcome-tool-flow article:nth-child(3) { --piece-accent: #bb74ff; --piece-fill: rgba(49, 37, 82, .86); }
.welcome-tool-flow article:nth-child(4) { --piece-accent: #ff3ac7; --piece-fill: rgba(69, 22, 75, .84); }
.welcome-tool-flow article::before, .welcome-tool-flow article::after { content: ""; position: absolute; z-index: -1; width: 40px; height: 40px; border-radius: 50%; background: var(--piece-fill); border: 2px solid var(--piece-accent); box-shadow: 0 0 14px color-mix(in srgb, var(--piece-accent) 20%, transparent); }
.welcome-tool-flow article::before { top: -21px; left: calc(50% - 20px); border-bottom-color: transparent; }
.welcome-tool-flow article::after { top: calc(50% - 20px); right: -21px; border-left-color: transparent; }
.puzzle-socket { position: absolute; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: #07091d; border: 2px solid var(--piece-accent); box-shadow: 0 0 12px color-mix(in srgb, var(--piece-accent) 16%, transparent); }
.puzzle-socket-left { top: calc(50% - 19px); left: -20px; border-right-color: transparent; }
.puzzle-socket-bottom { bottom: -20px; left: calc(50% - 19px); border-top-color: transparent; }
.welcome-tool-flow article small { float: right; color: var(--piece-accent); font-weight: 850; }
.welcome-tool-flow article strong { display: block; margin-top: 18px; color: #ffffff; font-size: 1.08rem; }
.welcome-tool-flow article p { margin: 8px 0 0; color: #c9cee0; font-size: .88rem; }
.welcome-tool-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--piece-accent) 16%, transparent); color: var(--piece-accent); }
.welcome-tool-icon .ui-icon { width: 22px; height: 22px; }
.welcome-nexa-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(90deg, rgba(239,79,170,.18), rgba(43,158,232,.16)); border: 1px solid rgba(132,91,244,.35); }
.welcome-nexa-note p { margin: 0; color: #c9cee0; font-size: .86rem; }
.welcome-nexa-note strong { color: #ffffff; }
.welcome-access { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(190px, 230px)); gap: 10px; align-items: center; margin-top: 22px; padding: 18px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.welcome-access > div { display: flex; flex-direction: column; gap: 3px; }
.welcome-access span { color: var(--muted); font-size: .8rem; }
.welcome-access .btn { min-width: 220px; }
.welcome-access .btn small { display: block; font-size: .68rem; font-weight: 600; }
.welcome-access .btn:disabled { opacity: .72; cursor: not-allowed; }
.welcome-access-puzzle { --piece-accent: #25e9ff; --piece-fill: rgba(10, 48, 75, .97); position: relative; isolation: isolate; max-width: 930px; margin: 52px auto 0; overflow: visible; border: 2px solid var(--piece-accent); border-radius: 24px; background: var(--piece-fill); box-shadow: 0 0 20px color-mix(in srgb, var(--piece-accent) 22%, transparent); }
.welcome-access-puzzle::before, .welcome-access-puzzle::after { content: ""; position: absolute; z-index: -1; width: 40px; height: 40px; border-radius: 50%; background: var(--piece-fill); border: 2px solid var(--piece-accent); }
.welcome-access-puzzle::before { top: -21px; left: calc(50% - 20px); border-bottom-color: transparent; }
.welcome-access-puzzle::after { top: calc(50% - 20px); right: -21px; border-left-color: transparent; }
.welcome-access-puzzle .puzzle-socket { background: #f8f7ff; }
.welcome-access-puzzle > :not(.puzzle-socket) { position: relative; z-index: 2; }
.welcome-access-puzzle > div strong { color: white; }
.welcome-access-puzzle > div span { color: #c6d9e6; }
.welcome-access-puzzle .btn.ghost { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.22); }
.welcome-disclosure { max-width: 900px; margin: 18px auto 0; text-align: center; font-size: .78rem; }
.welcome-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 64px; max-width: 930px; margin: 56px auto 42px; padding: 22px 34px 28px; }
.welcome-puzzle-action { --piece-accent: #ff35c5; --piece-fill: rgba(76, 20, 82, .96); position: relative; isolation: isolate; min-width: 0; min-height: 190px; padding: 34px 40px 38px; overflow: visible; border: 2px solid var(--piece-accent); border-radius: 24px; background: var(--piece-fill); color: white; text-align: left; box-shadow: 0 0 18px color-mix(in srgb, var(--piece-accent) 24%, transparent), inset 0 0 30px rgba(255,255,255,.025); }
.welcome-puzzle-action:nth-child(2) { --piece-accent: #25e9ff; --piece-fill: rgba(10, 67, 82, .97); }
.welcome-puzzle-action:nth-child(3) { --piece-accent: #bb74ff; --piece-fill: rgba(49, 37, 82, .97); }
.welcome-puzzle-action:nth-child(4) { --piece-accent: #ff3ac7; --piece-fill: rgba(69, 22, 75, .9); }
.welcome-puzzle-action::before, .welcome-puzzle-action::after { content: ""; position: absolute; z-index: -1; width: 40px; height: 40px; border-radius: 50%; background: var(--piece-fill); border: 2px solid var(--piece-accent); box-shadow: 0 0 14px color-mix(in srgb, var(--piece-accent) 20%, transparent); }
.welcome-puzzle-action::before { top: -21px; left: calc(50% - 20px); border-bottom-color: transparent; }
.welcome-puzzle-action::after { top: calc(50% - 20px); right: -21px; border-left-color: transparent; }
.welcome-puzzle-action .puzzle-socket { background: #f8f7ff; }
.welcome-puzzle-action > :not(.puzzle-socket) { position: relative; z-index: 2; }
.welcome-puzzle-action small { float: right; color: var(--piece-accent); font-weight: 900; }
.welcome-puzzle-action strong { display: block; margin: 15px 0 7px; color: white; font-size: 1.16rem; }
.welcome-puzzle-action > span:last-child { display: block; color: #d4d7e6; font-size: .86rem; line-height: 1.45; }
.welcome-puzzle-action:hover:not(:disabled), .welcome-puzzle-action:focus-visible { transform: translateY(-2px); box-shadow: 0 0 28px color-mix(in srgb, var(--piece-accent) 34%, transparent); }
.welcome-puzzle-action:focus-visible { outline: 3px solid white; outline-offset: 5px; }
.welcome-puzzle-action:disabled { cursor: not-allowed; opacity: .72; }
.welcome-how-sheet[hidden] { display: none; }
.welcome-how-sheet { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(5, 5, 20, .7); backdrop-filter: blur(8px); }
.welcome-how-sheet > section { position: relative; width: min(520px, 100%); max-height: 90dvh; overflow: auto; padding: 28px; border-radius: 26px; background: #f8f7ff; color: #211d3b; border: 1px solid #d9d1f4; box-shadow: 0 24px 70px rgba(12, 6, 37, .35); }
.welcome-how-sheet h2 { margin: 0 38px 18px 0; color: #211d3b; font-size: 1.65rem; text-transform: none; }
.welcome-how-sheet ol { display: grid; gap: 12px; margin: 0 0 20px; padding-left: 22px; }
.welcome-how-sheet li { padding-left: 5px; color: #7047eb; }
.welcome-how-sheet li strong, .welcome-how-sheet li span { display: block; }
.welcome-how-sheet li strong { color: #211d3b; }
.welcome-how-sheet li span { margin-top: 3px; color: #706b8b; line-height: 1.4; }
.welcome-how-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 13px; background: #eeeaff; color: #5429ca; font-size: 1.45rem; }
@media (max-width: 760px) {
  .welcome-page { padding: 16px 14px 36px; }
  .welcome-brand { margin-bottom: 14px; }
  .welcome-hero { display: flex; flex-direction: column-reverse; gap: 22px; border-radius: 26px; padding: 16px; }
  .welcome-nexa { width: 100%; max-height: 360px; border-radius: 22px; }
  .welcome-nexa img { aspect-ratio: 16 / 11; object-position: 50% 27%; }
  .welcome-story { padding: 4px 4px 8px; }
  .welcome-story h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .welcome-lead { margin: 16px 0 18px; }
  .welcome-primary-actions { display: grid; grid-template-columns: 1fr; }
  .welcome-primary-actions .btn { width: 100%; }
  .welcome-preview { border-radius: 24px; padding: 24px 16px 30px; }
  .welcome-preview-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .welcome-tool-flow { grid-template-columns: 1fr; gap: 54px; margin: 34px auto 28px; padding: 18px 24px 28px; }
  .welcome-tool-flow article { min-height: 210px; padding: 34px 34px 40px; }
  .welcome-nexa-note { align-items: flex-start; }
  .welcome-access { grid-template-columns: 1fr; }
  .welcome-access .btn { width: 100%; min-width: 0; }
  .welcome-action-grid { grid-template-columns: 1fr; gap: 54px; margin: 46px auto 34px; padding: 18px 30px 26px; }
  .welcome-puzzle-action { min-height: 160px; padding: 30px 34px 34px; }
}

/* Public welcome: Nexa-led brand entry. Kept separate from the business workspace. */
.app-shell.welcome-shell {
  --welcome-navy: #07091d;
  --welcome-panel: rgba(17, 17, 43, .76);
  min-height: 100dvh;
  overflow-x: hidden;
  color: #fff;
  color-scheme: dark;
  background-color: #020412;
  background-image: url("assets/brand/pronexasuite-neon-background.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}
.welcome-shell::before { display: none; }
.welcome-page { position: relative; z-index: 1; width: min(1280px, 100%); max-width: none; min-height: 100dvh; margin: 0 auto; padding: 14px clamp(20px, 4vw, 58px) 18px; display: flex; flex-direction: column; }
.welcome-brand { position: relative; z-index: 4; width: min(100%, 900px); margin: 0 auto; display: block; }
.welcome-brand img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 0 24px rgba(37, 233, 255, .12)) drop-shadow(0 0 28px rgba(239, 79, 170, .1)); }
.welcome-stage { position: relative; flex: 1; display: grid; grid-template-columns: minmax(420px, 45fr) minmax(540px, 55fr); align-items: center; gap: clamp(22px, 3vw, 44px); min-height: 500px; padding: 8px 0; }
.welcome-stage::before, .welcome-stage::after, .welcome-glow { display: none; }
.welcome-hero-left, .welcome-hero-right { position: relative; z-index: 2; min-width: 0; }
.welcome-hero-left { display: flex; align-items: center; justify-content: center; }
.welcome-hero-right { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.welcome-intro { position: relative; z-index: 2; }
.welcome-kicker { margin-bottom: 18px; color: #25e9ff; font-size: .7rem; letter-spacing: .22em; text-shadow: 0 0 16px rgba(37, 233, 255, .55); }
.welcome-intro h1 { margin: 0; color: #fff; font-size: clamp(2.55rem, 4.4vw, 4.85rem); line-height: .98; letter-spacing: -.052em; text-wrap: balance; }
.welcome-intro h1 .welcome-headline-line { display: block; }
.welcome-intro h1 .headline-white { color: #fff; }
.welcome-intro h1 .headline-pink { color: #ff62bd; text-shadow: 0 0 28px rgba(239, 79, 170, .3); }
.welcome-intro h1 .headline-cyan { color: #25e9ff; text-shadow: 0 0 28px rgba(37, 233, 255, .3); }
.welcome-lead { max-width: 430px; margin: 25px 0 22px; color: #c9cbe0; font-size: clamp(.98rem, 1.35vw, 1.12rem); line-height: 1.65; }
.welcome-promise { margin: 0; }
.welcome-promise .brand-slogan { gap: .72em; font-size: .88rem; font-weight: 900; letter-spacing: .13em; }
.welcome-promise .slogan-connect { color: #ff62bd; text-shadow: 0 0 18px rgba(239, 79, 170, .45); }
.welcome-promise .slogan-manage { color: #25e9ff; text-shadow: 0 0 18px rgba(37, 233, 255, .45); }
.welcome-promise .slogan-grow { color: #bb74ff; text-shadow: 0 0 18px rgba(187, 116, 255, .45); }
.welcome-nexa { position: relative; z-index: 2; width: 112%; min-width: 0; height: auto; aspect-ratio: 1; margin: -3% -6%; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.welcome-nexa::after { content: ""; position: absolute; z-index: -1; left: 12%; right: 8%; bottom: 3%; height: 11%; border-radius: 50%; background: rgba(37, 233, 255, .15); filter: blur(18px); }
.welcome-nexa-halo { position: absolute; z-index: -1; inset: 5% -4% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(126, 74, 237, .34), rgba(239, 79, 170, .11) 43%, transparent 72%); filter: blur(3px); }
.welcome-nexa img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)) drop-shadow(0 0 18px rgba(37,233,255,.12)); animation: welcome-float 6s ease-in-out infinite; }
.welcome-destinations { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.welcome-destination { --destination-accent: #25e9ff; position: relative; width: 100%; min-height: 104px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; align-items: center; gap: 13px; padding: 15px 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--destination-accent) 74%, white 8%); border-radius: 16px 5px 16px 5px; background: linear-gradient(115deg, color-mix(in srgb, var(--destination-accent) 13%, #101126), rgba(8, 10, 30, .91)); color: #fff; text-align: left; box-shadow: 0 0 22px color-mix(in srgb, var(--destination-accent) 16%, transparent), inset 0 0 24px rgba(255,255,255,.02); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.welcome-destination::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--destination-accent); box-shadow: 0 0 18px var(--destination-accent); }
.welcome-destination::after { content: ""; position: absolute; width: 44px; height: 1px; right: -8px; top: 14px; background: var(--destination-accent); transform: rotate(45deg); opacity: .7; }
.destination-setup { --destination-accent: #ef4faa; }
.destination-demo { --destination-accent: #bb74ff; }
.destination-hub { --destination-accent: #25e9ff; }
.welcome-destination .welcome-tool-icon { width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--destination-accent) 14%, transparent); color: var(--destination-accent); border: 1px solid color-mix(in srgb, var(--destination-accent) 55%, transparent); }
.welcome-destination strong, .welcome-destination small { display: block; }
.welcome-destination strong { margin-bottom: 3px; color: #fff; font-size: 1.03rem; }
.welcome-destination small { color: #afb3cd; font-size: .76rem; line-height: 1.35; }
.destination-arrow { color: var(--destination-accent); font-size: 1.4rem; text-shadow: 0 0 12px var(--destination-accent); }
.welcome-destination:hover:not(:disabled), .welcome-destination:focus-visible { transform: translateX(-5px); background: linear-gradient(115deg, color-mix(in srgb, var(--destination-accent) 21%, #101126), rgba(20, 20, 48, .95)); box-shadow: 0 0 31px color-mix(in srgb, var(--destination-accent) 28%, transparent); }
.welcome-destination:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.welcome-destination:disabled { cursor: not-allowed; opacity: .58; }
.welcome-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 18px; padding-top: 14px; border-top: 1px solid rgba(169, 143, 236, .22); color: #888da9; font-size: .7rem; }
@keyframes welcome-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .welcome-brand { width: min(100%, 760px); }
  .welcome-brand img { height: auto; }
  .welcome-stage { grid-template-columns: minmax(270px, .78fr) minmax(390px, 1.22fr); min-height: 0; padding-top: 24px; }
  .welcome-intro { text-align: left; }
  .welcome-intro h1 { max-width: 760px; margin-inline: auto; font-size: clamp(2.6rem, 7vw, 4.3rem); }
  .welcome-nexa { width: 118%; margin-inline: -9%; }
  .welcome-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .welcome-page { padding: 15px 17px 16px; }
  .welcome-brand img { height: 92px; }
  .welcome-stage { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; padding: 22px 0 18px; }
  .welcome-hero-right { display: contents; }
  .welcome-intro { grid-row: 1; }
  .welcome-hero-left { grid-row: 2; }
  .welcome-destinations { grid-row: 3; }
  .welcome-intro { text-align: center; }
  .welcome-kicker { margin-bottom: 10px; font-size: .6rem; }
  .welcome-intro h1 { font-size: clamp(2.15rem, 11vw, 3rem); line-height: 1.02; }
  .welcome-lead { margin: 14px auto 10px; font-size: .86rem; line-height: 1.5; }
  .welcome-promise .brand-slogan { font-size: .67rem; }
  .welcome-nexa { width: min(82%, 360px); height: auto; aspect-ratio: 1; margin: -8px auto -20px; }
  .welcome-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .welcome-destination { min-height: 92px; grid-template-columns: 35px minmax(0, 1fr); gap: 9px; padding: 11px 10px; border-radius: 13px 4px 13px 4px; }
  .welcome-destination .welcome-tool-icon { width: 35px; height: 35px; border-radius: 10px; }
  .welcome-destination .welcome-tool-icon .ui-icon { width: 18px; height: 18px; }
  .welcome-destination strong { font-size: .83rem; line-height: 1.15; }
  .welcome-destination small { margin-top: 3px; font-size: .61rem; }
  .destination-arrow { display: none; }
  .welcome-destination:hover:not(:disabled), .welcome-destination:focus-visible { transform: translateX(-2px); }
  .welcome-footer { flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: .62rem; }
}

/* ProNexaSuite account level: deliberately distinct from the formal business workspace. */
.app-shell.account-shell { min-height: 100dvh; padding-top: 0; color: #f7f5ff; background-color: #020412; background-image: linear-gradient(rgba(2,4,18,.12), rgba(2,4,18,.34)), url("assets/brand/pronexasuite-neon-background.png"); background-position: center top; background-size: cover; background-attachment: fixed; }
.account-page { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 18px 0 52px; }
.account-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; }
.account-header img { display: block; width: min(540px, 58vw); max-height: 108px; object-fit: contain; object-position: left center; filter: drop-shadow(0 0 22px rgba(244,35,179,.28)); }
.account-signout { border: 1px solid #ff39bd; border-radius: 999px; padding: 10px 18px; color: #fff; background: rgba(7,8,28,.6); box-shadow: 0 0 18px rgba(255,57,189,.2); cursor: pointer; }
.account-kicker { margin: 0 0 8px; color: #20e8ff; font-size: .72rem; font-weight: 800; letter-spacing: .19em; }
.account-signin { min-height: calc(100dvh - 170px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(34px, 7vw, 92px); }
.account-signin h1, .account-feature h1, .owner-welcome h1 { margin: 0 0 14px; color: #fff; font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .96; letter-spacing: -.05em; }
.account-signin > div > p:not(.account-kicker), .account-feature > p:not(.account-kicker), .owner-welcome p { max-width: 660px; color: #d8d9ea; font-size: 1.05rem; line-height: 1.65; }
.account-boundary { color: #9fa5c9 !important; font-size: .9rem !important; }
.account-panel, .owner-business-card { border: 1px solid rgba(32,232,255,.62); border-radius: 18px; background: rgba(7,9,31,.76); box-shadow: inset 0 0 28px rgba(13,48,102,.24), 0 0 24px rgba(32,232,255,.1); backdrop-filter: blur(12px); }
.account-panel { padding: 24px; }
.account-signin .account-panel { display: grid; gap: 15px; }
.account-signin .account-panel .field { margin: 0; }
.account-panel input { border-color: rgba(112,223,255,.4); background: rgba(2,4,18,.72); color: #fff; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; padding: 7px; border: 1px solid rgba(115,92,255,.32); border-radius: 999px; background: rgba(4,6,24,.64); width: fit-content; }
.account-nav :is(a, button) { border: 0; padding: 9px 15px; border-radius: 999px; color: #cfd3ed; background: transparent; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.account-nav :is(a.active, button.active) { color: #fff; background: linear-gradient(110deg, rgba(255,45,177,.35), rgba(26,214,255,.28)); box-shadow: 0 0 18px rgba(255,45,177,.18); }
.owner-welcome { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 28px; margin-bottom: 22px; }
.owner-welcome img { width: 190px; height: 220px; object-fit: contain; filter: drop-shadow(0 0 28px rgba(238,45,202,.35)); }
.owner-welcome h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.owner-section { margin-top: 18px; }
.owner-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.owner-section-heading h2, .account-panel h2 { margin: 0; color: #fff; }
.owner-section-heading > span { color: #aeb5d5; }
.owner-business-grid, .owner-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.owner-business-card { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 18px; padding: 22px; min-height: 190px; }
.owner-business-card:nth-child(even) { border-color: rgba(255,57,189,.65); box-shadow: inset 0 0 28px rgba(86,15,79,.22), 0 0 24px rgba(255,57,189,.1); }
.owner-business-card h3 { margin: 8px 0 5px; color: #fff; font-size: 1.35rem; }
.owner-business-card p { margin: 0; color: #afb6d2; text-transform: capitalize; }
.account-status, .foundation-label { display: inline-flex; color: #20e8ff; font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.owner-open-business { width: 100%; flex: none; border: 1px solid #20e8ff; border-radius: 12px; padding: 12px 14px; color: #fff; background: rgba(20,156,190,.15); font-weight: 800; cursor: pointer; }
.owner-overview-grid { margin-top: 16px; }
.owner-overview-grid .account-panel:last-child { border-color: rgba(255,57,189,.58); }
.owner-control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 14px; margin-top: 18px; }
.owner-control-grid .account-panel { padding: 19px; }
.owner-control-grid h2 { font-size: 1.05rem; }
.owner-control-grid p:not(.account-kicker) { color: #b8bed8; font-size: .82rem; line-height: 1.48; }
.owner-demo-signin .account-panel { grid-template-columns: 110px 1fr; align-items: center; }
.owner-demo-signin .account-panel .btn { grid-column: 1 / -1; }
.owner-demo-nexa { width: 105px; height: 125px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(239,55,206,.36)); }
.owner-return-action { border-color: rgba(239,79,170,.5); color: #a51266; }
.owner-welcome-compact { grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); min-height: 126px; gap: 24px; margin: 4px 0 18px; padding: 14px 18px; border: 1px solid rgba(111,89,255,.25); border-radius: 20px; background: rgba(4,6,25,.55); backdrop-filter: blur(10px); }
.owner-welcome-compact .owner-welcome-copy h1 { margin: 0 0 7px; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.05; }
.owner-welcome-compact .owner-welcome-copy h1 span { color: #ff43bd; text-shadow: 0 0 18px rgba(255,67,189,.28); }
.owner-welcome-compact .owner-welcome-copy > p:last-child { margin: 0; font-size: .96rem; }
.owner-nexa-assistant { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.owner-nexa-assistant > img { width: 76px; height: 94px; object-fit: contain; flex: none; filter: drop-shadow(0 0 18px rgba(238,45,202,.32)); }
.owner-nexa-bubble { position: relative; max-width: 300px; padding: 13px 15px; border: 1px solid rgba(32,232,255,.5); border-radius: 14px; background: rgba(5,9,32,.82); }
.owner-nexa-bubble::before { content: ""; position: absolute; left: -8px; top: 35px; width: 14px; height: 14px; border-left: 1px solid rgba(32,232,255,.5); border-bottom: 1px solid rgba(32,232,255,.5); background: #070d2b; transform: rotate(45deg); }
.owner-nexa-bubble strong { color: #23e5ff; }
.owner-nexa-bubble p { margin: 3px 0 0; color: #e3e5f5; font-size: .8rem; line-height: 1.42; }
.owner-tools { margin-top: 22px; }
.owner-tool-card { display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; text-align: left; color: #fff; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.owner-tool-card:hover { transform: translateY(-3px); border-color: #ff43bd; }
.owner-tool-card strong { font-size: .96rem; line-height: 1.4; }
.coming-soon-label { margin-top: auto; color: #c9a9ff; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.owner-coming-soon-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(1,3,16,.82); backdrop-filter: blur(12px); }
.owner-coming-soon { width: min(560px,100%); padding: 30px; border: 1px solid #ff43bd; border-radius: 22px; color: #fff; background: rgba(5,7,29,.96); box-shadow: 0 0 45px rgba(255,67,189,.23), inset 0 0 36px rgba(33,208,255,.08); }
.owner-coming-soon h2 { margin: 6px 0 12px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.owner-coming-soon > p:not(.account-kicker) { color: #d9dced; line-height: 1.6; }
.owner-coming-soon-nexa { float: right; width: 105px; height: 120px; margin: -14px -4px 8px 14px; }
.owner-coming-soon-nexa img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 20px rgba(39,225,255,.25)); }
.account-feature { max-width: 980px; padding: 34px 0; }
.account-feature .owner-business-grid, .account-feature .account-panel { margin-top: 24px; }
@media (max-width: 980px) {
  .owner-business-grid, .owner-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .account-page { width: min(100% - 26px, 680px); }
  .account-header { min-height: 88px; }
  .account-header img { width: min(390px, 72vw); max-height: 82px; }
  .account-signin { grid-template-columns: 1fr; align-content: start; gap: 24px; padding-top: 34px; }
  .account-nav { width: 100%; border-radius: 18px; }
  .account-nav :is(a, button) { flex: 1 1 40%; text-align: center; }
  .owner-welcome { grid-template-columns: 110px 1fr; gap: 15px; }
  .owner-welcome img { width: 120px; height: 150px; }
  .owner-business-grid, .owner-overview-grid { grid-template-columns: 1fr; }
  .owner-control-grid { grid-template-columns: 1fr; }
  .owner-business-card { align-items: flex-start; flex-direction: column; }
  .owner-welcome-compact { display: block; padding: 16px; }
  .owner-nexa-assistant { justify-content: flex-start; margin-top: 14px; }
}
@media (max-width: 380px) {
  .welcome-nexa { width: 82%; height: auto; margin-inline: auto; }
  .welcome-destination { min-height: 70px; grid-template-columns: 30px minmax(0, 1fr); padding: 9px 8px; }
  .welcome-destination .welcome-tool-icon { width: 30px; height: 30px; }
  .destination-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .welcome-nexa img { animation: none; } }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav) + 76px); background: var(--green); color: white;
  padding: 12px 16px; border-radius: 12px; z-index: 50; width: min(420px, calc(100% - 32px));
}

.empty { text-align: center; padding: 28px 12px; }
.empty .emoji { font-size: 2rem; }

.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.dashboard-heading h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 4px; }
.eyebrow { margin: 0 0 6px; color: #7047eb; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dashboard-widget { min-width: 0; max-width: 100%; margin: 0; overflow: hidden; }
.dashboard-widget .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-widget .btn { min-width: 0; overflow-wrap: anywhere; }
.dashboard-widget.wide { grid-column: 1 / -1; }
.dashboard-kpi { min-height: 132px; border: 1px solid rgba(112,71,235,.14); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; color: var(--ink); }
.dashboard-kpi:disabled { cursor: default; opacity: 1; }
.dashboard-kpi span, .dashboard-kpi small { display: block; color: var(--muted); }
.dashboard-kpi strong { display: block; margin: 12px 0 4px; color: #5530c5; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.04em; }
.dashboard-kpi small { font-size: .78rem; }
.dashboard-kpi em, .data-provenance { display: block; margin-top: 10px; color: #8b84a5; font-size: .66rem; font-style: normal; letter-spacing: .04em; }
.widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.widget-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.widget-row-action { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.widget-row-action:hover { color: #5933bd; }
.widget-row-action > wa-icon { flex: 0 0 auto; align-self: center; color: #8b84a5; }
.widget-row > span:first-child { min-width: 0; }
.widget-row strong, .widget-row small { display: block; }
.widget-row small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.admin-shell {
  --orange: #7047eb; --orange-dark: #5429ca; --green: #24205c; --green-soft: #38327a;
  background: radial-gradient(circle at 88% 4%, rgba(43, 158, 232, .22), transparent 30%), radial-gradient(circle at 48% 90%, rgba(239, 79, 170, .14), transparent 30%), linear-gradient(180deg, #f4f2ff 0%, #faf8ff 100%); padding-top: 0;
}
html[data-appearance="dark"] .admin-shell { --green: #f1edff; --green-soft: #c7b9f4; background: radial-gradient(circle at 88% 4%, rgba(43, 158, 232, .18), transparent 32%), radial-gradient(circle at 48% 90%, rgba(239, 79, 170, .16), transparent 32%), #171329; }
.admin-topbar { top: 0; color: var(--ink); }
.admin-topbar .brand-tag { color: var(--muted); }
.page.admin-page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 42px 32px 80px; }
.admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid .wide { grid-column: 1 / -1; }
.admin-grid .dashboard-kpi strong { color: var(--green); }
.admin-grid .dashboard-kpi { border-color: var(--line); }
.admin-grid .dashboard-kpi:nth-child(3n + 1) { box-shadow: inset 0 3px #ef4faa, var(--shadow); }
.admin-grid .dashboard-kpi:nth-child(3n + 2) { box-shadow: inset 0 3px #7047eb, var(--shadow); }
.admin-grid .dashboard-kpi:nth-child(3n) { box-shadow: inset 0 3px #2b9ee8, var(--shadow); }
.admin-shell .eyebrow { width: fit-content; color: transparent; background: linear-gradient(90deg, #ef4faa, #7047eb, #2b9ee8); background-clip: text; -webkit-background-clip: text; }
.admin-grid [data-widget-key="admin.plans"] { border-left: 5px solid #ef4faa; box-shadow: 0 16px 42px rgba(239, 79, 170, .10); }
.admin-grid [data-widget-key="admin.modules"] { border-left: 5px solid #7047eb; box-shadow: 0 16px 42px rgba(112, 71, 235, .11); }
.admin-grid [data-widget-key="admin.health"] { border-left: 5px solid #2b9ee8; box-shadow: 0 16px 42px rgba(43, 158, 232, .11); }
.admin-grid [data-widget-key="admin.activity"] { border-left: 5px solid #ef4faa; box-shadow: 0 16px 42px rgba(239, 79, 170, .10); }
.admin-grid [data-widget-key="admin.management"] { border-left: 5px solid #7047eb; box-shadow: 0 16px 42px rgba(112, 71, 235, .11); }
.admin-grid [data-widget-key="admin.plans"] .widget-heading strong { color: #c92e82; }
.admin-grid [data-widget-key="admin.modules"] .widget-heading strong,
.admin-grid [data-widget-key="admin.management"] .widget-heading strong { color: #5b35c5; }
.admin-grid [data-widget-key="admin.health"] .widget-heading strong { color: #1477b6; }
.admin-grid [data-widget-key="admin.activity"] .widget-heading strong { color: #c92e82; }
html[data-appearance="dark"] .admin-grid .widget-heading strong { color: #f4efff; }
.support-policy { margin-top: 12px; border-left: 4px solid var(--orange); }
.admin-theme-actions { display: flex; align-items: center; gap: 10px; }

/* ProNexaSuite Admin Command Centre */
.admin-command-shell { min-height: 100dvh; display: grid; grid-template-columns: 270px minmax(0, 1fr); color: #f4f1ff; background: #0c0918 radial-gradient(circle at 85% 0%, rgba(35, 172, 255, .12), transparent 28%); }
.admin-sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; z-index: 20; padding: 24px 18px 36px; border-right: 1px solid rgba(155, 120, 255, .17); background: linear-gradient(180deg, rgba(24, 17, 48, .98), rgba(12, 9, 25, .99)); box-shadow: 16px 0 45px rgba(0,0,0,.2); scrollbar-width: thin; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,77,174,.3)); }
.admin-brand strong, .admin-brand span { display: block; }
.admin-brand strong { font-size: .79rem; letter-spacing: .13em; }
.admin-brand span { margin-top: 3px; color: #a99ec5; font-size: .72rem; }
.admin-sidebar nav { padding-top: 16px; }
.admin-sidebar section { margin-bottom: 7px; }
.admin-sidebar a { color: #aaa0c2; text-decoration: none; }
.admin-nav-main { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 11px; font-size: .84rem; font-weight: 750; }
.admin-nav-main wa-icon { width: 18px; color: #7e6ca9; }
.admin-nav-main:hover, .admin-nav-main.active { color: white; background: linear-gradient(90deg, rgba(241,67,168,.16), rgba(112,71,235,.1)); }
.admin-nav-main.active { box-shadow: inset 2px 0 #ff4dae; }
.admin-nav-main.active wa-icon { color: #ff61b6; filter: drop-shadow(0 0 7px #ff4dae); }
.admin-nav-children { display: grid; gap: 2px; margin: 3px 0 6px 40px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); }
.admin-nav-children a { padding: 5px 7px; border-radius: 7px; font-size: .7rem; }
.admin-nav-children a:hover, .admin-nav-children a.active { color: #f8d6ec; background: rgba(255,255,255,.04); }
.admin-command-main { min-width: 0; }
.admin-command-header { position: sticky; top: 0; z-index: 15; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 30px; border-bottom: 1px solid rgba(155, 120, 255, .14); background: rgba(12, 9, 24, .84); backdrop-filter: blur(18px); }
.admin-command-header p, .admin-command-header span { margin: 0; }
.admin-command-header > div:nth-child(2) p { color: white; font-size: .86rem; font-weight: 800; }
.admin-command-header > div:nth-child(2) span { color: #9186ad; font-size: .72rem; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.admin-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ce5b0; box-shadow: 0 0 10px #3ce5b0; }
.admin-profile { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: #eee9fb; text-align: left; }
.admin-profile > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,77,174,.5); border-radius: 50%; background: linear-gradient(135deg, #762c91, #263c8a); color: white; font-weight: 850; }
.admin-profile strong, .admin-profile small { display: block; }
.admin-profile strong { font-size: .72rem; }.admin-profile small { margin-top: 2px; color: #8f84aa; font-size: .62rem; }
.admin-mobile-menu { display: none; border: 0; background: transparent; color: white; font-size: 1.2rem; }
.admin-command-content { width: 100%; max-width: 1520px; margin: 0 auto; padding: 34px 34px 60px; }
.command-intro, .section-heading, .business-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.command-intro h1, .section-heading h1, .business-detail-head h1 { margin: 2px 0 5px; color: white; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.command-intro p, .section-heading p { margin: 0; color: #9186ad; }
.admin-command-shell .eyebrow { color: #ff5eb6; font-size: .65rem; }
.admin-command-shell .btn.ghost { border-color: rgba(173,142,255,.3); background: rgba(255,255,255,.035); color: #ddd4f5; }
.admin-command-shell .btn.secondary { background: linear-gradient(135deg, #6d3de0, #245fb9); color: white; }
.admin-command-shell .btn.danger { background: rgba(255,76,120,.12); color: #ff8aaa; border: 1px solid rgba(255,76,120,.35); }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.admin-kpi-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-kpi { position: relative; min-height: 140px; display: flex; flex-direction: column; justify-content: center; padding: 19px; overflow: hidden; border: 1px solid rgba(142,112,223,.18); border-radius: 16px; background: linear-gradient(145deg, rgba(34,26,61,.83), rgba(18,14,35,.9)); color: white; text-decoration: none; box-shadow: 0 18px 36px rgba(0,0,0,.13); }
.admin-kpi::after { content: ""; position: absolute; inset: auto -20px -45px auto; width: 90px; height: 90px; border-radius: 50%; opacity: .13; filter: blur(12px); }
.admin-kpi:hover { transform: translateY(-2px); border-color: rgba(184,145,255,.38); }
.admin-kpi > span { display: flex; align-items: center; gap: 8px; color: #9f94ba; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-kpi wa-icon { font-size: .9rem; }.admin-kpi strong { margin: 13px 0 6px; font-size: clamp(1.65rem, 2.7vw, 2.25rem); letter-spacing: -.05em; }.admin-kpi small { color: #8c81a7; font-size: .68rem; }
.admin-kpi.pink { box-shadow: inset 0 2px #ff4dae, 0 18px 36px rgba(0,0,0,.13); }.admin-kpi.pink::after { background: #ff4dae; }.admin-kpi.pink strong { color: #ff7ec6; }
.admin-kpi.blue { box-shadow: inset 0 2px #25baff, 0 18px 36px rgba(0,0,0,.13); }.admin-kpi.blue::after { background: #25baff; }.admin-kpi.blue strong { color: #6dd1ff; }
.admin-kpi.purple { box-shadow: inset 0 2px #8b5cff, 0 18px 36px rgba(0,0,0,.13); }.admin-kpi.purple::after { background: #8b5cff; }.admin-kpi.purple strong { color: #b99aff; }
.admin-kpi.danger { box-shadow: inset 0 2px #ff526f, 0 18px 36px rgba(0,0,0,.13); }.admin-kpi.danger::after { background: #ff526f; }.admin-kpi.danger strong { color: #ff8295; }
.admin-kpi.dim strong { color: #d3c9e9; }
.admin-dashboard-columns, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }.admin-dashboard-columns.lower { align-items: start; }
.admin-panel { min-width: 0; padding: 21px; border: 1px solid rgba(142,112,223,.17); border-radius: 17px; background: linear-gradient(145deg, rgba(31,24,56,.83), rgba(16,13,31,.93)); box-shadow: 0 20px 46px rgba(0,0,0,.14); }
.admin-panel + .admin-panel:not(.plan-card) { margin-top: 14px; }.detail-grid .admin-panel + .admin-panel, .admin-dashboard-columns .admin-panel + .admin-panel { margin-top: 0; }
.admin-panel-title { min-height: 34px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.admin-panel-title span, .admin-panel-title strong { color: #f5f1ff; font-weight: 820; }.admin-panel-title small { display: block; margin-top: 3px; color: #8d82a8; font-size: .69rem; font-weight: 500; }.admin-panel-title a { color: #c89aff; font-size: .7rem; text-decoration: none; }
.admin-sparkline { width: 100%; height: 155px; overflow: visible; }.chart-legend { display: flex; justify-content: space-between; color: #8e83a9; font-size: .68rem; }.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }.chart-legend i.pink { background: #ff4dae; box-shadow: 0 0 7px #ff4dae; }.chart-legend b { color: #d8d0ea; }
.plan-bars { display: grid; gap: 18px; padding-top: 10px; }.plan-bars > div { display: grid; grid-template-columns: 110px 1fr 80px; align-items: center; gap: 12px; }.plan-bars span { color: #d7cfeb; font-size: .75rem; font-weight: 750; }.plan-bars span small { display: block; margin-top: 3px; color: #807594; font-size: .62rem; }.plan-bars > div > div { height: 7px; overflow: hidden; border-radius: 8px; background: #272038; }.plan-bars i { display: block; height: 100%; border-radius: inherit; }.plan-bars i.awesomely { background: #ff4dae; }.plan-bars i.legendary { background: #8b5cff; }.plan-bars i.epic { background: #25baff; }.plan-bars strong { color: #eee8fb; font-size: .75rem; text-align: right; }
.attention-row, .activity-row { min-height: 59px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.065); color: inherit; text-decoration: none; }.activity-row { grid-template-columns: auto 1fr; }.attention-row strong, .attention-row small, .activity-row strong, .activity-row small { display: block; }.attention-row strong, .activity-row strong { color: #e8e2f5; font-size: .75rem; }.attention-row small, .activity-row small { margin-top: 4px; color: #84799b; font-size: .66rem; }.attention-row > wa-icon { color: #655b79; }
.attention-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(139,92,255,.12); color: #bd9fff; }.attention-icon.danger { background: rgba(255,82,111,.12); color: #ff8295; }.attention-icon.warn { background: rgba(255,180,65,.12); color: #ffc26c; }.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: #8b5cff; box-shadow: 0 0 8px #8b5cff; }
.admin-command-shell .badge { border: 1px solid transparent; background: rgba(117,95,160,.14); color: #bdb1d5; }.admin-command-shell .badge.ok { border-color: rgba(49,215,164,.2); background: rgba(49,215,164,.1); color: #68e9bf; }.admin-command-shell .badge.warn { border-color: rgba(255,180,65,.2); background: rgba(255,180,65,.1); color: #ffc66e; }.admin-command-shell .badge.danger { border-color: rgba(255,82,111,.2); background: rgba(255,82,111,.1); color: #ff8295; }.admin-command-shell .badge.info { border-color: rgba(37,186,255,.2); background: rgba(37,186,255,.1); color: #74d4ff; }.admin-command-shell .badge.muted { color: #8f84a6; }
.business-toolbar { display: flex; gap: 10px; margin-bottom: 15px; }.admin-search { min-width: 260px; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid rgba(148,115,222,.2); border-radius: 11px; background: rgba(4,3,10,.3); color: #7f7395; }.admin-search input { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; color: white; }.business-toolbar select { min-height: 42px; padding: 0 12px; border: 1px solid rgba(148,115,222,.2); border-radius: 11px; background: #191329; color: #d8d0e9; }
.admin-table-wrap { max-width: 100%; overflow-x: auto; }.admin-data-table { width: 100%; border-collapse: collapse; font-size: .72rem; }.admin-data-table th { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); color: #7f7494; font-size: .62rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }.admin-data-table td { padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.055); color: #c9c1da; vertical-align: middle; white-space: nowrap; }.admin-data-table tr:hover td { background: rgba(139,92,255,.035); }.admin-data-table a { color: #f0ebf9; text-decoration: none; }.admin-data-table td strong, .admin-data-table td small { display: block; }.admin-data-table td small { margin-top: 4px; color: #776c8d; }.icon-link { display: grid !important; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(139,92,255,.1); color: #b69af6 !important; }
.plan-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .64rem; font-weight: 850; }.plan-pill.awesomely { background: rgba(255,77,174,.11); color: #ff82c8; }.plan-pill.legendary { background: rgba(139,92,255,.13); color: #b99aff; }.plan-pill.epic { background: rgba(37,186,255,.11); color: #70d3ff; }.count-chip { padding: 8px 11px; border: 1px solid rgba(139,92,255,.2); border-radius: 999px; color: #b8aaca; font-size: .7rem; }.admin-empty { padding: 32px; color: #8f84a6; text-align: center; }
.admin-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; color: #b59ae9; font-size: .72rem; text-decoration: none; }.business-detail-head { align-items: center; }.business-monogram { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; border: 1px solid rgba(255,77,174,.4); border-radius: 17px; background: linear-gradient(145deg, rgba(255,77,174,.25), rgba(37,186,255,.18)); color: white; font-weight: 900; box-shadow: 0 0 25px rgba(255,77,174,.12); }.business-detail-head > div:nth-child(2) { flex: 1; }.business-actions { display: flex; gap: 8px; }.detail-grid { margin-bottom: 14px; }.detail-list { margin: 0; }.detail-list div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }.detail-list dt { color: #81768f; }.detail-list dd { margin: 0; color: #ded7ed; text-align: right; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.usage-card { padding: 13px; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; background: rgba(4,3,10,.2); }.usage-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 7px; }.usage-card strong { color: #dcd5eb; font-size: .72rem; }.usage-card > span { display: block; margin: 13px 0 7px; color: white; font-size: 1.05rem; font-weight: 850; }.usage-track, .mini-usage { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #2b243a; }.usage-track { height: 5px; }.usage-track i, .mini-usage i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cff, #25baff); }.usage-card > small { display: block; margin-top: 7px; color: #796e8f; font-size: .61rem; }.mini-usage { width: 65px; height: 5px; overflow: visible; }.mini-usage small { display: block; margin-top: 6px; color: #887d9d; }
.plan-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }.plan-card { display: flex; flex-direction: column; min-height: 430px; }.plan-card.awesomely { box-shadow: inset 0 2px #ff4dae; }.plan-card.legendary { box-shadow: inset 0 2px #8b5cff; }.plan-card.epic { box-shadow: inset 0 2px #25baff; }.plan-card h2 { margin: 3px 0 5px; color: white; }.plan-card p { color: #9186a4; }.plan-price { margin: 18px 0; }.plan-price strong { color: white; font-size: 1.8rem; }.plan-price span { color: #817691; }.plan-card ul { flex: 1; display: grid; align-content: start; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; color: #c2b9d5; font-size: .74rem; }.plan-card li { display: flex; gap: 8px; }.plan-card li wa-icon { color: #61deb6; }.summary-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }.summary-strip a { padding: 15px; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; color: inherit; text-decoration: none; }.summary-strip strong, .summary-strip span { display: block; }.summary-strip strong { color: white; font-size: 1.25rem; }.summary-strip span { margin-top: 5px; color: #857a99; font-size: .67rem; }
.feature-check { color: #55dfb2; }.feature-empty { color: #4f465e; }.support-policy { border-left: 3px solid #8b5cff; }.support-policy p { color: #9489aa; font-size: .76rem; line-height: 1.6; }.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }.role-grid h2 { margin: 14px 0 6px; color: white; font-size: .95rem; }.role-grid p, .role-grid small { display: block; color: #8f84a4; line-height: 1.5; }.role-grid .badge { margin-top: 15px; }.role-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(139,92,255,.13); color: #bb9eff; }.admin-footer { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); color: #625970; font-size: .63rem; }

@media (max-width: 1120px) { .admin-command-shell { grid-template-columns: 220px minmax(0,1fr); }.admin-kpi-grid, .admin-kpi-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }.usage-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.role-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.admin-nav-children { display: none; } }
@media (max-width: 760px) { .admin-command-shell { display: block; }.admin-sidebar { position: fixed; left: -290px; width: 270px; transition: left .22s ease; }.admin-sidebar.open { left: 0; }.admin-mobile-menu { display: block; }.admin-command-header { padding: 10px 14px; }.admin-command-header > div:nth-child(2) span, .admin-profile div, .admin-live-dot { display: none; }.admin-command-content { padding: 24px 15px 44px; }.command-intro, .section-heading, .business-detail-head { flex-wrap: wrap; }.admin-dashboard-columns, .detail-grid, .plan-card-grid { grid-template-columns: 1fr; }.usage-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.business-actions { width: 100%; }.business-toolbar { flex-direction: column; }.admin-search { min-width: 0; }.summary-strip { grid-template-columns: repeat(2, 1fr); }.plan-bars > div { grid-template-columns: 85px 1fr 65px; }.admin-footer { flex-direction: column; gap: 5px; } }
@media (max-width: 430px) { .admin-kpi-grid, .admin-kpi-grid.compact, .usage-grid, .role-grid { grid-template-columns: 1fr; }.admin-profile { padding: 0; }.admin-command-header .badge { display: none; } }
.theme-setup { margin: 22px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.theme-setup legend { padding: 0 7px; color: var(--ink); font-weight: 800; }
.theme-setup > p { margin: 0 0 14px; font-size: .86rem; }
.service-setup, .setup-paths { margin: 22px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service-setup legend, .setup-paths legend { padding: 0 7px; color: var(--ink); font-weight: 800; }
.service-setup-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(120px, .8fr) minmax(110px, .7fr) auto; gap: 12px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.service-setup-row:last-child { border-bottom: 0; }
.service-setup-row .field { margin: 0; }
.setup-choice, .setup-paths label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-weight: 650; }
.setup-choice input, .setup-paths input { width: auto; margin-top: 3px; }
.setup-note, .financial-source-summary, .nexa-setup-guidance { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.nexa-setup-guidance h2 { margin: 4px 0 8px; }
.setup-service-manager { margin-top: 18px; }
.setup-service-manager .row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.setup-service-manager small { display: block; color: var(--muted); }
.theme-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.theme-swatch { min-width: 0; cursor: pointer; text-align: center; }
.theme-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-preview { display: block; height: 48px; border: 3px solid transparent; border-radius: 14px; background: linear-gradient(120deg, var(--swatch-one), var(--swatch-two), var(--swatch-three)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.theme-swatch strong { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.theme-swatch input:checked + .swatch-preview { border-color: var(--ink); box-shadow: inset 0 0 0 2px white, 0 0 0 2px var(--orange); }
.theme-swatch input:checked ~ strong { color: var(--ink); }
.appearance-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.appearance-options label { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; cursor: pointer; }
.appearance-options input { accent-color: var(--orange); }
.access-denied { display: grid; place-items: center; min-height: 100dvh; margin-left: 0; }
.access-denied .card { max-width: 520px; padding: 32px; text-align: center; }
.access-denied wa-icon { color: #7047eb; font-size: 2rem; }
.dashboard-controls { display: flex; align-items: center; gap: 10px; }
.dashboard-controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.dashboard-controls select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: 7px 9px; }
.prototype-notice { display: flex; align-items: center; gap: 9px; margin: -10px 0 18px; padding: 10px 12px; border-radius: 12px; background: #f0ecff; color: #5933bd; font-size: .78rem; font-weight: 700; }
.prototype-notice.compact { display: inline-flex; margin: -12px 0 16px; padding: 7px 10px; font-size: .7rem; font-weight: 650; }
.customer-dashboard-heading { margin-bottom: 20px; }
.customer-dashboard-grid .dashboard-kpi { min-height: 118px; padding: 16px; justify-content: flex-start; }
.customer-dashboard-grid .dashboard-kpi strong { margin: 7px 0 2px; font-size: clamp(1.45rem, 4vw, 2rem); }
.customer-dashboard-grid .dashboard-kpi span { min-height: 2.35em; font-size: .82rem; font-weight: 700; line-height: 1.18; }
.customer-dashboard-grid .dashboard-kpi small { font-size: .72rem; }
.customer-dashboard-grid .dashboard-kpi em { display: none; }
.document-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.document-hub-card { display: grid !important; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center !important; gap: 12px; min-height: 126px !important; }
.document-hub-card > div:nth-child(2) { min-width: 0; }
.document-hub-card p { margin: 4px 0; color: var(--muted); font-size: .8rem; }
.document-hub-card span { color: #5933bd; font-size: .78rem; font-weight: 750; }
.document-hub-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #f0ecff; color: #7047eb; font-size: 1.2rem; }
.document-hub-actions { margin-top: 12px; }
.dashboard-state { min-height: 100px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.dashboard-state p { margin: 0; }
.dashboard-state wa-icon { font-size: 1.35rem; color: #7047eb; }
.dashboard-state.is-error wa-icon { color: var(--danger); }
.loading-bar { width: min(240px, 78%); height: 10px; border-radius: 999px; background: #e8e3f4; animation: dashboard-pulse 1.2s ease-in-out infinite alternate; }
.loading-bar.short { width: min(150px, 50%); }
@keyframes dashboard-pulse { to { opacity: .45; } }
.dashboard-table-wrap { width: 100%; overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; text-align: left; }
.dashboard-table th { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-table th, .dashboard-table td { padding: 11px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.chart-container { display: grid; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 120px minmax(90px, 1fr) 32px; align-items: center; gap: 12px; font-size: .82rem; }
.chart-row > div { height: 9px; border-radius: 999px; background: #ebe7f4; overflow: hidden; }
.chart-row i { display: block; height: 100%; border-radius: inherit; background: #7047eb; }
.chart-container > small { color: var(--muted); }

.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.money-grid > .card { min-width: 0; min-height: 138px; margin-bottom: 0; padding: 16px; overflow: hidden; }
.money-grid .row { height: 100%; align-items: center; }
.money-grid .row > div { min-width: 0; }
.money-grid .muted { min-height: 2.8em; line-height: 1.35; }
.money-grid .big { margin-top: 8px; font-size: clamp(1.4rem, 3.4vw, 1.9rem); overflow-wrap: anywhere; }
.cal-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.cal-day {
  min-width: 58px; border: 0; background: white; border-radius: 14px; padding: 10px 8px;
  box-shadow: var(--shadow);
}
.cal-day.on { background: var(--orange); color: white; }
.cal-day small { display: block; font-size: 0.7rem; opacity: 0.8; }

.list-item { display: flex; gap: 12px; align-items: flex-start; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 6px; flex: none; }

.doc {
  background: white; border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.doc h1 { font-size: 1.2rem; }
.invoice-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.invoice-company { display: flex; align-items: center; gap: 12px; min-width: 0; }
.invoice-company p { margin: 4px 0 0; }
.document-meta { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.document-meta span { color: var(--muted); font-size: .78rem; }
.invoice-logo, .invoice-logo-fallback { width: 58px; height: 58px; border-radius: 12px; flex: none; }
.invoice-logo { display: block; object-fit: contain; }
.invoice-logo-fallback { display: grid; place-items: center; color: white; font-size: 1.45rem; font-weight: 850; background: linear-gradient(145deg, #f04fa8, #7047eb 55%, #2ca7e8); }
.invoice-banking { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; line-height: 1.55; }
.invoice-banking strong { color: var(--ink); }
.logo-preview { display: block; width: 112px; height: 112px; object-fit: contain; border-radius: 18px; background: white; border: 1px solid var(--line); padding: 8px; margin: 0 auto 16px; }
.import-card { padding: 18px; }
.import-summary { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 12px; }
.import-preview { display: grid; gap: 8px; margin-bottom: 14px; }
.import-preview > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.form-error { color: #b4235a; font-weight: 700; }
.quote-service-list { display: grid; gap: 10px; }
.quote-service-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 86px) minmax(0, 112px); align-items: end; gap: 10px; min-width: 0; margin: 0; padding: 12px; cursor: pointer; background: #ffffff; color: #1c1930; }
.quote-service-row > span { min-width: 0; }
.quote-service-row > input[type="checkbox"] { appearance: none; width: 28px; height: 28px; min-height: 28px; padding: 0; align-self: center; border: 2px solid #a99bd7; border-radius: 9px; background: white; display: grid; place-items: center; cursor: pointer; }
.quote-service-row > input[type="checkbox"]::after { content: "✓"; color: white; font-size: 18px; font-weight: 900; transform: scale(0); transition: transform .12s ease; }
.quote-service-row > input[type="checkbox"]:checked { border-color: #7047eb; background: linear-gradient(135deg, #d43bb4, #7047eb); }
.quote-service-row > input[type="checkbox"]:checked::after { transform: scale(1); }
.quote-service-row:has(> input[type="checkbox"]:checked) { border-color: #7047eb; background: #f2efff; color: #1c1930; box-shadow: 0 0 0 2px rgba(112,71,235,.14); }
.quote-service-row .quote-service-name, .quote-service-row small { color: #1c1930; }
.quote-service-row input[type="number"] { width: 100%; background: #ffffff; color: #1c1930; -webkit-text-fill-color: #1c1930; }
.quote-service-row:hover { border-color: #8455ee; }
.quote-service-row:focus-within { outline: 3px solid #7047eb; outline-offset: 2px; }
.quote-service-row:has(> input[type="checkbox"]:not(:checked)) { color: #514b63; }
.quote-service-row:has(> input[type="checkbox"]:not(:checked)) input[type="number"] { opacity: .45; }
.quote-service-row small { display: block; margin-bottom: 4px; }
.quote-service-row input[type="number"] { min-width: 0; padding: 9px; }
.quote-service-name { align-self: center; font-weight: 750; }
html[data-appearance="dark"] .quote-service-row { background: #29243b; color: #f6f3ff; }
html[data-appearance="dark"] .quote-service-row .quote-service-name,
html[data-appearance="dark"] .quote-service-row small { color: #f6f3ff; }
html[data-appearance="dark"] .quote-service-row:has(> input[type="checkbox"]:checked) { background: #f2efff; color: #1c1930; }
html[data-appearance="dark"] .quote-service-row:has(> input[type="checkbox"]:checked) .quote-service-name,
html[data-appearance="dark"] .quote-service-row:has(> input[type="checkbox"]:checked) small { color: #1c1930; }
html[data-appearance="dark"] .quote-service-row input[type="number"] { background: #29243b; color: #f6f3ff; -webkit-text-fill-color: #f6f3ff; caret-color: #f6f3ff; }
html[data-appearance="dark"] .quote-service-row input[type="number"]:disabled { opacity: 1; background: #332d46; color: #bdb5d1; -webkit-text-fill-color: #bdb5d1; }
@media (max-width: 760px) {
  .quote-service-row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); }
  .quote-service-row .quote-service-name { grid-column: 2 / 4; }
  .quote-service-row > span:nth-of-type(2) { grid-column: 2; }
  .quote-service-row > span:nth-of-type(3) { grid-column: 3; }
}
@media (max-width: 420px) { .time-entry-grid { grid-template-columns: 1fr; gap: 0; } }
.powered { text-align: center; font-size: 0.8rem; margin-top: 18px; color: var(--muted); }

@media print {
  @page { size: auto; margin: 14mm; }
  body { background: white !important; }
  body::before { display: none !important; }
  body * { visibility: hidden !important; }
  .doc, .doc * { visibility: visible !important; }
  .doc { position: absolute; inset: 0 auto auto 0; width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; color: #111; }
  .invoice-logo, .invoice-logo-fallback { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .badge { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .doc .row, .quote-recipient, .invoice-banking { break-inside: avoid; page-break-inside: avoid; }
}

.progress { height: 6px; background: var(--sand); border-radius: 99px; margin: 8px 16px 0; }
.progress > span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.onboard-shell { max-width: 920px; }
.onboard-page { max-width: 780px; }
.onboard-page h1 { margin-bottom: 6px; }
.onboard-intro { margin-bottom: 24px; }
.onboard-grid { display: grid; gap: 12px; }
.onboard-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onboard-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-section-title { margin: 24px 0 12px; font-size: 1rem; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 500; }
.onboard-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.onboard-actions .btn:last-child { min-width: 190px; }
.whatsapp-setup-card { display: flex; gap: 14px; align-items: flex-start; }
.whatsapp-setup-card .whatsapp-icon { width: 32px; height: 32px; color: #1fa855; flex: none; }
.whatsapp-setup-card p { margin-bottom: 0; }
@media (max-width: 640px) {
  .service-setup-row { grid-template-columns: 1fr; }
  .service-setup-row .remove-setup-service { justify-self: start; }
}
.import-stack { display: grid; gap: 12px; }
@media (max-width: 640px) {
  .onboard-grid.two-col, .onboard-grid.three-col { grid-template-columns: 1fr; }
  .onboard-actions { flex-direction: column-reverse; }
  .onboard-actions .btn { width: 100%; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

@media (min-width: 800px) {
  body { background: #d4c4aa; }
  .app-shell { box-shadow: 0 0 0 12px rgba(255,255,255,.35); min-height: 100dvh; }
}

/* Palette application: keep the brand artwork unchanged while the product chrome follows the saved choice. */
html[data-palette="prism"] {
  --theme-primary: #7047eb; --theme-primary-dark: #5429ca; --theme-secondary: #ef4faa; --theme-tertiary: #2b9ee8;
  --theme-bg: #f8f7ff; --theme-tint: #f0ecff; --theme-tint-alt: #eaf5ff; --theme-accent-text: #5530c5;
  --cream: var(--theme-bg); --sand: var(--theme-tint); --line: #e4e0f2; --orange: var(--theme-primary); --orange-dark: var(--theme-primary-dark); --green: #302665; --green-soft: #51468f;
}
html[data-palette="ocean"] {
  --theme-primary: #126fd6; --theme-primary-dark: #0d4fa6; --theme-secondary: #00a6a6; --theme-tertiary: #44c4ee;
  --theme-bg: #f2fbff; --theme-tint: #e0f4fb; --theme-tint-alt: #e5f1ff; --theme-accent-text: #075b9d;
  --cream: var(--theme-bg); --sand: var(--theme-tint); --line: #cfe4ee; --orange: var(--theme-primary); --orange-dark: var(--theme-primary-dark); --green: #123f59; --green-soft: #226987;
}
html[data-palette="berry"] {
  --theme-primary: #c52987; --theme-primary-dark: #941a63; --theme-secondary: #7f38b5; --theme-tertiary: #ef6aaa;
  --theme-bg: #fff5fb; --theme-tint: #fce4f3; --theme-tint-alt: #f4e8fb; --theme-accent-text: #8a205f;
  --cream: var(--theme-bg); --sand: var(--theme-tint); --line: #ead2e2; --orange: var(--theme-primary); --orange-dark: var(--theme-primary-dark); --green: #5a2148; --green-soft: #853b6d;
}
html[data-palette="sunrise"] {
  --theme-primary: #c24155; --theme-primary-dark: #9f2942; --theme-secondary: #ff7048; --theme-tertiary: #ffc94a;
  --theme-bg: #fffaf3; --theme-tint: #ffe9e2; --theme-tint-alt: #fff4c9; --theme-accent-text: #9f2942;
  --cream: var(--theme-bg); --sand: var(--theme-tint); --line: #f0d8d4; --orange: var(--theme-primary); --orange-dark: var(--theme-primary-dark); --green: #65303d; --green-soft: #97495b;
}
html[data-palette][data-appearance="dark"] { --ink: #f8f6ff; --muted: #c4bdd0; }
html[data-palette="prism"][data-appearance="dark"] { --theme-bg: #171329; --theme-tint: #2b2445; --theme-tint-alt: #252b4a; --white: #211b35; --line: #3c3456; }
html[data-palette="ocean"][data-appearance="dark"] { --theme-bg: #091a27; --theme-tint: #12334a; --theme-tint-alt: #102b42; --white: #102536; --line: #28475a; }
html[data-palette="berry"][data-appearance="dark"] { --theme-bg: #21101d; --theme-tint: #43203a; --theme-tint-alt: #382144; --white: #30172a; --line: #59334d; }
html[data-palette="sunrise"][data-appearance="dark"] { --theme-bg: #211219; --theme-tint: #482332; --theme-tint-alt: #493a1d; --white: #321b25; --line: #5c3442; }

html[data-palette], html[data-palette] body { background: var(--theme-bg); }
html[data-palette] body::before {
  background: radial-gradient(circle at 84% 5%, color-mix(in srgb, var(--theme-tertiary) 18%, transparent), transparent 30%), radial-gradient(circle at 52% 92%, color-mix(in srgb, var(--theme-secondary) 13%, transparent), transparent 28%);
}
html[data-palette] .announcement { background: linear-gradient(105deg, var(--theme-secondary), var(--theme-primary) 54%, var(--theme-tertiary)); }
html[data-palette] .btn { background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark)); box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-primary) 22%, transparent); }
html[data-palette] .btn.secondary { background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary)); }
html[data-palette] .btn.ghost { background: var(--theme-tint); color: var(--theme-accent-text); box-shadow: none; }
html[data-palette] :is(.eyebrow, .big, .dashboard-kpi strong, .document-hub-card span, .dashboard-state wa-icon, .summary-card .row > wa-icon, .print-help wa-icon) { color: var(--theme-accent-text); }
html[data-palette] .nav a.active { color: var(--theme-accent-text); background: linear-gradient(90deg, var(--theme-tint), var(--theme-tint-alt)); box-shadow: inset 3px 0 var(--theme-primary); }
html[data-palette] :is(.badge, .prototype-notice, .document-hub-icon, .profile-category-icon, .connection-icon, .staff-number, .payment-reference) { background: var(--theme-tint); color: var(--theme-accent-text); }
html[data-palette] :is(.profile-category[open] > summary, .customer-balance-status, .quote-recipient, .reminder-focus) { background: color-mix(in srgb, var(--theme-tint) 64%, var(--white)); border-color: color-mix(in srgb, var(--theme-primary) 35%, var(--line)); }
html[data-palette] :is(.topbar-action:hover, .quote-service-row:has(> input[type="checkbox"]:checked)) { border-color: var(--theme-primary); background: var(--theme-tint); color: var(--theme-accent-text); }
html[data-palette] :is(.topbar-action:focus-visible, .quote-service-row:focus-within, .date-entry .date-picker-button:focus-visible, .date-entry input[data-date-display]:focus-visible, .day-agenda:focus-visible:not(.programmatic-focus)) { outline-color: var(--theme-primary); }
html[data-palette] :is(.cal-day.on, .month-day.selected, .booking-day.selected, .quote-service-row > input[type="checkbox"]:checked) { border-color: transparent; background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark)); }
html[data-palette] :is(.month-day.today:not(.selected), .booking-day.today:not(.selected), .cal-day.today:not(.on)) { border-color: var(--theme-primary); }
html[data-palette] .month-day small { background: var(--theme-tint); color: var(--theme-accent-text); }
html[data-palette] .month-day.selected small { background: var(--white); color: var(--theme-accent-text); }
html[data-palette] :is(.staff-days input:checked + span, .automation-toggle, .staff-access-row input) { accent-color: var(--theme-primary); }
html[data-palette] .staff-days input:checked + span { border-color: var(--theme-primary); background: var(--theme-tint); color: var(--theme-accent-text); }
html[data-palette] .chart-row i { background: var(--theme-primary); }
html[data-palette] .fab { background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary) 60%, var(--theme-tertiary)); box-shadow: 0 14px 34px color-mix(in srgb, var(--theme-primary) 30%, transparent); }
html[data-palette] :is(.search, .field input, .field select, .field textarea) { outline-color: var(--theme-primary); }
html[data-palette] .alert-count { background: var(--theme-secondary); }
@media (max-width: 799px) {
  html[data-palette] .nav a.active { box-shadow: inset 0 -3px var(--theme-primary); }
}

/* ProNexaSuite prism theme */
:root {
  --orange: #7047eb;
  --orange-dark: #5429ca;
  --green: #24205c;
  --green-soft: #38327a;
  --cream: #f8f7ff;
  --sand: #eeeaff;
  --ink: #211d3b;
  --muted: #706b8b;
  --line: #e4e0f2;
  --danger: #d82c78;
  --ok: #168a72;
  --warn: #c56a16;
  --shadow: 0 16px 42px rgba(73, 54, 133, .09);
  --radius: 20px;
  --nav: 76px;
  --wa-color-brand-50: #f8f5ff;
  --wa-color-brand-500: #7047eb;
  --wa-color-brand-600: #6136dc;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

html, body { background: #f8f7ff; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 84% 5%, rgba(65, 191, 255, .16), transparent 28%), radial-gradient(circle at 52% 92%, rgba(244, 82, 167, .09), transparent 28%);
}
.app-shell { max-width: none; min-height: 100dvh; background: transparent; padding-top: 52px; }
.announcement {
  position: fixed; inset: 0 0 auto; height: 52px; z-index: 35; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: white; padding: 0 24px; background: linear-gradient(105deg, #ee4caa 0%, #8252ec 52%, #258ddd 100%); font-size: .88rem;
}
.announcement > wa-icon { font-size: 1rem; }
.banner-link { border: 0; background: rgba(255,255,255,.16); color: white; border-radius: 999px; padding: 7px 12px; font-weight: 750; }
.banner-link wa-icon { margin-left: 4px; }
.topbar { height: 86px; padding: 0 28px 0 24px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); position: sticky; top: 52px; z-index: 30; backdrop-filter: blur(18px); }
.brand { width: 224px; gap: 12px; }
.logo { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #f04fa8, #7047eb 55%, #2ca7e8); box-shadow: 0 8px 18px rgba(112,71,235,.22); }
.platform-logo { display: block; object-fit: cover; object-position: 50% 34%; background: transparent; }
.onboard-brand { margin-bottom: 24px; }
.powered-brand { display: inline-flex; align-items: center; gap: 5px; }
.powered-brand img { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; object-position: 50% 34%; }
.brand-name { font-weight: 850; font-size: 1.04rem; letter-spacing: -.03em; }
.brand-tag { color: var(--muted); font-size: .68rem; font-weight: 650; }
.business-chip { margin-left: auto; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: white; padding: 7px 10px 7px 7px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.business-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #f052aa, #7851e8); }
.business-avatar-logo { display: block; object-fit: contain; padding: 2px; border: 1px solid var(--line); background: white; }
.business-chip-button { color: var(--ink); font: inherit; cursor: pointer; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.profile-identity { display: flex; align-items: center; gap: 16px; padding: 18px; }
.profile-identity > div:last-child { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.profile-identity strong { font-size: 1.08rem; }
.profile-identity small, .profile-summary small, .profile-booking-row small { display: block; color: var(--muted); margin-top: 3px; }
.profile-logo { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 18px; object-fit: contain; background: white; border: 1px solid var(--line); padding: 5px; }
.profile-logo-fallback { display: grid; place-items: center; color: white; border: 0; background: linear-gradient(135deg, #f052aa, #7851e8); font-size: 1.8rem; font-weight: 800; }
.logo-upload { position: relative; color: var(--orange-dark); font-size: .84rem; font-weight: 750; cursor: pointer; margin-top: 5px; }
.logo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.profile-section { padding: 18px; }
.profile-section .field:last-child { margin-bottom: 0; }
.profile-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-booking-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.profile-link { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #f8f5ef; color: var(--muted); padding: 11px; font-size: .78rem; }
.profile-save { margin-top: 18px; }
.profile-summary { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; }
.profile-summary-action { color: var(--orange-dark); font-size: .84rem; font-weight: 750; white-space: nowrap; }
.profile-category { margin: 10px 0; }
.profile-category summary { list-style: none; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; min-height: 78px; padding: 13px 16px; border: 1px solid rgba(112,71,235,.12); border-radius: 18px; background: white; box-shadow: var(--shadow); cursor: pointer; }
.profile-category summary::-webkit-details-marker { display: none; }
.profile-category summary::marker { content: ""; font-size: 0; }
.profile-category summary > span:nth-child(2) { min-width: 0; }
.profile-category summary strong { display: block; font-size: 1rem; color: var(--ink); }
.profile-category summary small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.profile-category-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #f1edff; color: #7047eb; font-size: 1.2rem; }
.ui-icon { display: block; width: 1.35em; height: 1.35em; flex: none; overflow: visible; }
.profile-category-icon .ui-icon, .document-hub-icon .ui-icon, .connection-icon .ui-icon { width: 24px; height: 24px; }
.profile-chevron { width: 20px; height: 20px; }
.profile-chevron { color: #776f91; transition: transform .18s ease; }
.profile-category[open] > summary { border-radius: 18px 18px 8px 8px; border-color: #9276eb; background: #f8f6ff; }
.profile-category[open] .profile-chevron { transform: rotate(180deg); }
.profile-category-panel { margin: 4px 0 12px; border-radius: 8px 8px 18px 18px; box-shadow: var(--shadow); }
.profile-panel-intro { margin-top: 0; font-size: .86rem; }
.staff-list { display: grid; gap: 10px; margin-bottom: 12px; }
.staff-member { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fbfaf7; }
.staff-card-heading { display: grid; grid-template-columns: 28px 1fr 36px; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.staff-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ebe5ff; color: #6035cf; font-size: .72rem; font-weight: 800; }
.staff-remove { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #fee2e2; color: var(--danger); }
.staff-subsection { margin: 4px 0 14px; padding: 12px; border-radius: 12px; background: white; border: 1px solid #e8dfd0; }
.staff-subsection > strong { display: block; margin-bottom: 10px; font-size: .88rem; }
.staff-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.staff-days label { cursor: pointer; }
.staff-days input { position: absolute; opacity: 0; pointer-events: none; }
.staff-days span { height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #faf8f4; color: var(--muted); font-size: .76rem; font-weight: 750; }
.staff-days input:checked + span { border-color: #7047eb; background: #ebe5ff; color: #6035cf; }
.staff-access-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.staff-access-row > label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.staff-access-row input { width: 20px; height: 20px; accent-color: #7047eb; }
.staff-access-row small { display: block; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.staff-invite { width: 100%; }
.staff-invite:disabled { opacity: .5; cursor: not-allowed; }
.epic-label { display: inline-flex; vertical-align: middle; margin-left: 5px; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #733de0, #e541ae); color: white; font-size: .62rem; font-style: normal; text-transform: uppercase; letter-spacing: .05em; }
.epic-module-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 13px; border-radius: 14px; background: linear-gradient(135deg, #f3efff, #fff0fa); }
.epic-module-note .profile-category-icon { flex: 0 0 42px; width: 42px; height: 42px; }
.epic-module-note p { margin: 3px 0 0; font-size: .8rem; }
.profile-category + .profile-save { margin-top: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.topbar-action { position: relative; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: white; color: #302665; width: 44px; height: 44px; border-radius: 14px; font-size: 1rem; cursor: pointer; }
.topbar-action .header-icon { display: block; width: 21px; height: 21px; flex: none; }
.topbar-action:hover { border-color: #7047eb; background: #f2efff; color: #5031aa; }
.topbar-action:focus-visible { outline: 3px solid #7047eb; outline-offset: 2px; }
.topbar-action:active { background: #e5dcff; transform: translateY(1px); }
html[data-appearance="dark"] .topbar-action { color: #f6f3ff; }
html[data-appearance="dark"] .topbar-action:hover { background: #392b62; color: #ffffff; }
.alert-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: #ef4ba4; color: white; font-size: .64rem; }
.page { max-width: 1180px; margin-left: 248px; padding: 42px 42px 130px; }
.page > h1 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin-bottom: 12px; }
.nav { position: fixed; left: 0; transform: none; top: 138px; bottom: 0; width: 248px; display: flex; flex-direction: column; grid-template-columns: none; padding: 28px 18px 20px; border: 0; border-right: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(18px); }
.nav-label { padding: 0 12px 10px; color: #9a95af; font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 13px; text-align: left; color: var(--muted); font-size: .9rem; padding: 12px 14px; margin: 2px 0; border-radius: 13px; }
.nav a wa-icon { width: 20px; font-size: 1rem; }
.nav a.active { color: #5c32cf; background: linear-gradient(90deg, #f3ecff, #eaf5ff); box-shadow: inset 3px 0 #7b4ee9; }
.nav-spacer { flex: 1; }
.card { border: 1px solid rgba(229,225,243,.86); box-shadow: var(--shadow); }
.card.tap { block-size: auto !important; height: auto !important; min-height: 86px; padding: 14px 16px; overflow: hidden; white-space: normal; color: var(--ink); text-align: left; }
.card.tap strong { color: var(--ink); }
.card.tap .list-item { block-size: auto !important; height: auto !important; min-height: 58px; align-items: flex-start; }
.card.tap .list-item > div { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 3px; }
.card.tap .list-item strong { display: block; color: var(--ink); line-height: 1.25; }
.card.tap .list-item .muted { display: block; line-height: 1.35; }
.card.tap .list-item .badge { margin-top: 2px; }
.cal-day { color: var(--ink); line-height: 1.2; }
.cal-day small { color: inherit; }
/* Booking date tiles: explicit foreground/background pairs in every state. */
.cal-day, .month-day, .booking-day { background: #ffffff; color: #1c1930; }
.cal-day small, .booking-day small { color: #514b63; }
.cal-day.on, .month-day.selected, .booking-day.selected { background: linear-gradient(135deg, #7047eb, #5630bd); color: #ffffff; }
.cal-day.on small, .booking-day.selected small { color: #ffffff; }
.month-day.selected small { background: #ffffff; color: #5031aa; }
.cal-day:focus-visible, .month-day:focus-visible, .booking-day:focus-visible { outline: 3px solid #132f75; outline-offset: 2px; }
.month-day.today:not(.selected), .booking-day.today:not(.selected), .cal-day.today:not(.on) { border: 2px solid #7047eb; }
.booking-day:disabled { background: #eeeaf3; color: #5d566b; opacity: 1; }
.booking-day:disabled small { color: #5d566b; }
html[data-appearance="dark"] :is(.cal-day, .month-day, .booking-day):not(.on):not(.selected):not(:disabled) { background: #2b2445; color: #f6f3ff; }
html[data-appearance="dark"] .booking-day:not(.selected):not(:disabled) small { color: #c7bedb; }
html[data-appearance="dark"] .booking-day:disabled { background: #302b3c; color: #c1bacb; }
html[data-appearance="dark"] .booking-day:disabled small { color: #c1bacb; }
.btn { background: linear-gradient(135deg, #7d4eea, #5d38db); box-shadow: 0 8px 18px rgba(94,56,219,.18); }
.btn.ghost { background: #f0ecff; color: #5135ad; box-shadow: none; }
.btn.secondary { background: linear-gradient(135deg, #ec4da5, #ad45d7); }
.big { color: #5530c5; }
.fab { right: 30px; bottom: 26px; display: flex; align-items: center; gap: 9px; background: linear-gradient(135deg, #ef4ba5, #794ce5 60%, #299de5); box-shadow: 0 14px 34px rgba(103,65,210,.3); }
.search, .field input, .field select, .field textarea { border-color: var(--line); outline-color: #8252ec; }
.field input, .field select, .field textarea { color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; }
.badge { background: #eee9ff; color: #5933bd; }
.badge.info { background: #e5f4ff; color: #146a9e; }
.whatsapp-connection { display: flex; gap: 16px; align-items: flex-start; border-color: #ddd5ff; }
.whatsapp-connection.is-ready { border-color: #b9ecd8; }
.connection-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 15px; background: #dcfaed; color: #087d59; font-size: 1.45rem; }
.connection-copy { min-width: 0; flex: 1; }
.connection-copy p { margin: 8px 0 12px; }
.connection-copy .btn wa-icon { margin-right: 6px; }
.automation-settings { padding: 4px 16px; }
.automation-rule { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.automation-rule span { display: flex; flex-direction: column; gap: 4px; }
.automation-rule small { color: var(--muted); line-height: 1.35; }
.automation-toggle { width: 44px; height: 24px; accent-color: #7047eb; flex: 0 0 auto; cursor: pointer; }
.consent-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.consent-note wa-icon { color: #168a72; margin-top: 2px; }
.reminder-group { margin-top: 16px; }
.reminder-card .row { align-items: flex-start; }
.reminder-card p { margin: 10px 0 14px; }
.reminder-focus { border: 1px solid #cbbcff; background: linear-gradient(135deg, #fff, #f5f1ff); }
.alert-card { min-height: 0; }
.alert-card p { margin: 8px 0 0; }
.alert-card .row > wa-icon { color: #8b84a5; }
.alert-card.is-read { opacity: .72; }
.customer-actions .btn { min-width: 0; padding-inline: 10px; }
.customer-list-actions { margin: 10px 0 20px; }
.edit-customer wa-icon { margin-right: 7px; }
.balance-total { margin-top: 16px; }
.customer-balance-status { display: grid; gap: 9px; margin: 10px 0 14px; padding: 12px; border-radius: 14px; background: #f8f6ff; }
.customer-balance-status .row { align-items: center; }
.customer-balance-status .row > span { display: flex; align-items: center; gap: 7px; }
.customer-balance-status small { color: var(--muted); line-height: 1.4; }
.quote-recipient { display: flex; flex-direction: column; gap: 3px; margin: 22px 0; padding: 14px 16px; border-radius: 14px; background: #f8f6ff; color: var(--muted); }
.quote-recipient small { color: #8b84a5; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quote-recipient strong { color: var(--ink); font-size: 1.03rem; }
.summary-card { width: 100%; }
.summary-card .row > wa-icon { color: #7047eb; }
.incoming-total { display: flex; flex-direction: column; gap: 5px; padding: 20px; background: linear-gradient(135deg, #f8f3ff, #eef7ff); border-color: #d8ceff; }
.incoming-total small { color: var(--muted); }
.payment-breakdown { width: 100%; }
.payment-row { align-items: flex-start; }
.payment-reference { display: inline-flex; margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: #eee9ff; color: #5a35bc; font-size: .74rem; font-weight: 750; }
.payment-amount { color: #168a72 !important; white-space: nowrap; }
.outstanding-total { display: flex; flex-direction: column; gap: 5px; padding: 20px; background: linear-gradient(135deg, #fff4fa, #f5f0ff); border-color: #f2c7dc; }
.outstanding-total small { color: var(--muted); }
.outstanding-breakdown { width: 100%; }
.outstanding-details { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0; color: var(--muted); font-size: .82rem; }
.outstanding-balance { padding-top: 12px; border-top: 1px solid var(--line); }
.outstanding-balance > strong { color: var(--danger) !important; }
.costs-total { display: flex; flex-direction: column; gap: 5px; padding: 20px; background: linear-gradient(135deg, #f4f2ff, #fff5fb); border-color: #ddd2ff; }
.costs-total small { color: var(--muted); }
.cost-breakdown { width: 100%; }
.cost-amount { color: #5a35bc !important; white-space: nowrap; }
.cost-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.print-help { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.print-help wa-icon { flex: 0 0 auto; margin-top: 3px; color: #7047eb; }
#print-document wa-icon { margin-right: 7px; }

@media (min-width: 680px) {
  body { background: #f8f7ff; }
  .app-shell { box-shadow: none; }
  .money-grid { grid-template-columns: repeat(4, 1fr); }
  .quick { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 680px) and (max-width: 1023px) {
  .page { margin-left: 216px; padding-inline: 28px; }
  .nav { width: 216px; padding-inline: 12px; }
  .money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page.admin-page { margin: 0 auto; padding-inline: 28px; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid .wide { grid-column: 1 / -1; }
}

@media (max-width: 679px) {
  .announcement { height: 46px; padding: 0 14px; justify-content: flex-start; font-size: .75rem; }
  .announcement span strong { display: none; }
  .banner-link { margin-left: auto; font-size: .72rem; white-space: nowrap; }
  .app-shell { padding-top: 46px; }
  .topbar { top: 46px; height: 72px; padding: 0 16px; gap: 10px; }
  .brand { width: 38px; flex: 0 0 38px; gap: 0; }
  .brand .logo { width: 36px; height: 36px; border-radius: 12px; }
  .brand > div:last-child { display: none; }
  .brand-tag { display: none; }
  .business-chip { display: flex; min-width: 0; max-width: calc(100% - 136px); margin: 0 auto 0 0; padding: 6px 11px 6px 6px; border: 0; background: #f5f2ff; color: var(--ink); }
  .business-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .business-avatar { width: 32px; height: 32px; flex: 0 0 32px; }
  .topbar-actions { flex: 0 0 auto; gap: 6px; margin-left: 0; }
  .topbar-action { width: 40px; height: 40px; flex: 0 0 40px; }
  .page { margin-left: 0; padding: 24px 16px calc(var(--nav) + 92px); }
  .nav { top: auto; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; height: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 48px; column-gap: 8px; overflow-x: hidden; padding: 7px 6px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; }
  .nav-label, .nav-spacer { display: none; }
  .nav a { min-width: 0; flex-direction: column; gap: 2px; justify-content: center; text-align: center; font-size: .72rem; letter-spacing: 0; white-space: nowrap; padding: 3px 0; margin: 0; }
  .nav a span { font-size: inherit; }
  .nav a.active { box-shadow: inset 0 -3px #7b4ee9; }
  .fab { right: 16px; bottom: calc(var(--nav) + 14px); }
  .app-shell { --nav: 120px; }
  .app-shell:has(#demo-block-form) .fab, .app-shell:has(#all-jobs-filter) .fab { display: none; }
  .dashboard-heading { gap: 12px; flex-direction: column; }
  .dashboard-controls { width: 100%; justify-content: space-between; }
  .dashboard-controls label { min-width: 0; }
  .dashboard-controls select { max-width: 150px; }
  .customer-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .customer-dashboard-grid .wide { grid-column: 1 / -1; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid .wide { grid-column: 1 / -1; }
  .customer-dashboard-grid .dashboard-kpi { min-height: 118px; padding: 14px 12px; }
  .dashboard-widget .quick { grid-template-columns: 1fr; }
  .document-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .document-hub-card { grid-template-columns: 1fr auto; min-height: 142px !important; padding: 14px !important; }
  .document-hub-card .document-hub-icon { grid-column: 1 / -1; }
  .chart-row { grid-template-columns: 88px minmax(70px, 1fr) 28px; gap: 8px; }
  .admin-topbar .brand { width: auto; }
  .admin-topbar .brand > div:last-child { display: block; }
  .page.admin-page { padding: 24px 16px 40px; }
  .theme-swatches { grid-template-columns: repeat(2, 1fr); }
}
/* Customer documents always use paper colours, including inside a dark workspace. */
.doc {
  --ink: #211d3b;
  --muted: #57516b;
  --white: #ffffff;
  --line: #ded9e8;
  --theme-tint: #f0ecff;
  --theme-accent-text: #5530c5;
  color: var(--ink);
}
.doc .quote-recipient small { color: #625b78; }
/* Shared catalogue forms reuse the existing cards, fields and responsive grid. */
.inventory-nav { flex-wrap: wrap; }
.inventory-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.inventory-check input { width: auto; min-height: 0; flex: none; margin-top: 4px; }
.inventory-purchase-line { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 14px 0; min-width: 0; }
.inventory-movement { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.inventory-movement small { display: block; }
[data-inventory-message]:not(:empty) { padding: 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; }

/* Secondary return action only in the designated public demo headers. */
.topbar:has(.public-demo-return),.account-header:has(.public-demo-return){flex-wrap:wrap}
.public-demo-return{display:block;flex:0 0 100%;order:3;min-height:44px;padding:10px 0;font-size:.82rem;font-weight:600;line-height:24px;text-decoration:none;color:inherit;opacity:.9}
.public-demo-return:hover{text-decoration:underline;opacity:1}
.public-demo-return:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}
.topbar:has(.public-demo-return){height:auto;min-height:86px;padding-top:8px;row-gap:0}.topbar:has(.public-demo-return) .public-demo-return{padding-block:10px}.topbar:has(.public-demo-return) .topbar-actions{margin-left:auto}
