:root {
  --ink-950: #06181f;
  --ink-900: #09232c;
  --ink-800: #12343f;
  --ink-700: #24505c;
  --ink-600: #416b75;
  --ink-500: #64858d;
  --ink-300: #aec1c5;
  --ink-200: #d4e0e2;
  --ink-100: #eaf0f1;
  --ink-50: #f5f8f8;
  --white: #ffffff;
  --flow-500: #f5a800;
  --flow-400: #ffc62b;
  --flow-300: #ffdc72;
  --flow-100: #fff3c4;
  --blue-500: #338cff;
  --blue-100: #e2efff;
  --amber-500: #f3a712;
  --amber-100: #fff2d2;
  --red-500: #e84d66;
  --red-100: #ffe6eb;
  --violet-500: #8a68e8;
  --violet-100: #eee9ff;
  --shadow-sm: 0 1px 2px rgba(6, 24, 31, .05), 0 4px 12px rgba(6, 24, 31, .04);
  --shadow-md: 0 12px 36px rgba(6, 24, 31, .09);
  --shadow-lg: 0 30px 80px rgba(6, 24, 31, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink-900); background: var(--ink-50); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: var(--ink-950); background: var(--flow-400); border-radius: 8px; font-weight: 800; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(51, 140, 255, .42); outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 28px 18px 22px; color: var(--ink-100); background: radial-gradient(circle at 0 0, rgba(245, 168, 0, .18), transparent 34%), linear-gradient(155deg, #071c24, #092730 72%, #071b22); box-shadow: 10px 0 40px rgba(4, 20, 26, .09); }
.sidebar::after { position: absolute; right: 0; bottom: 10%; width: 1px; height: 40%; background: linear-gradient(transparent, rgba(255, 198, 43, .4), transparent); content: ""; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; overflow: visible; filter: drop-shadow(0 7px 14px rgba(245, 168, 0, .14)); }
.brand-mark-shell { fill: var(--flow-400); }
.brand-mark-bolt { fill: var(--ink-950); }
.brand-word { display: inline-flex; align-items: baseline; font-size: 20px; font-weight: 900; letter-spacing: -.85px; line-height: 1; }
.brand-word-tradie { color: currentColor; }
.brand-word-bolt { color: var(--flow-400); }
.sidebar-brand { padding: 0 9px 34px; }
.primary-nav { display: grid; gap: 7px; }
.nav-link { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 10px 13px; color: var(--ink-300); border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; transition: .18s ease; }
.nav-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-link:first-child svg { fill: currentColor; stroke: none; }
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, .055); }
.nav-link.is-active { color: var(--white); background: rgba(245, 168, 0, .12); border-color: rgba(255, 198, 43, .18); }
.nav-link.is-active svg { color: var(--flow-400); }
.sidebar-note { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: auto 5px 0; padding: 13px; color: var(--ink-300); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); border-radius: 13px; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { color: var(--ink-100); font-size: 12px; }
.sidebar-note small { margin-top: 1px; font-size: 11px; }
.sidebar-actions { display: grid; margin-left: auto; justify-items: end; }
.sidebar-actions form { margin: 0; }
.sidebar-reset, .sidebar-logout { padding: 3px 0 3px 8px; color: var(--ink-300); background: none; border: 0; cursor: pointer; font-size: 10px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.sidebar-reset, .sidebar-logout { white-space: nowrap; }
.sidebar-reset { color: var(--flow-300); }
.sidebar-reset:hover, .sidebar-logout:hover { color: var(--white); }
.pulse-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; background: var(--flow-400); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 198, 43, .12); }
.app-canvas { display: flex; min-height: 100vh; margin-left: 248px; flex-direction: column; }
.main-content { width: min(1440px, 100%); margin: 0 auto; padding: 42px clamp(24px, 4vw, 66px) 70px; }
.mobile-header, .nav-scrim { display: none; }
.app-footer { display: flex; justify-content: space-between; margin-top: auto; padding: 20px clamp(24px, 4vw, 66px); color: var(--ink-500); border-top: 1px solid var(--ink-200); font-size: 12px; }

.eyebrow { margin: 0 0 7px; color: var(--ink-600); font-size: 11px; font-weight: 850; letter-spacing: 1.35px; line-height: 1.2; text-transform: uppercase; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1, .detail-hero h1, .enquiry-story h1, .success-card h1, .error-page h1 { margin: 0; color: var(--ink-950); font-size: clamp(32px, 4vw, 50px); font-weight: 830; letter-spacing: -1.8px; line-height: 1.06; }
.page-heading > div > p:last-child { max-width: 680px; margin: 10px 0 0; color: var(--ink-600); font-size: 16px; }
.compact-heading { align-items: start; margin-bottom: 24px; }
.compact-heading h1 { font-size: clamp(30px, 3vw, 42px); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--ink-600); font-size: 13px; font-weight: 750; text-decoration: none; }
.back-link:hover { color: var(--ink-950); }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.975); box-shadow: none; }
.button-primary { color: var(--ink-950); background: var(--flow-400); box-shadow: 0 9px 22px rgba(245, 168, 0, .18); }
.button-primary:hover { background: var(--flow-300); box-shadow: 0 15px 34px rgba(245, 168, 0, .3); }
.button-secondary { color: var(--ink-900); background: var(--white); border-color: var(--ink-200); box-shadow: var(--shadow-sm); }
.button-secondary:hover { border-color: var(--ink-300); }
.button-ghost { color: var(--ink-700); background: transparent; }
.button-large { min-height: 50px; padding: 13px 20px; }
.button-block { width: 100%; }
.button[disabled] { cursor: wait; opacity: .68; transform: none; }
.notice { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; padding: 13px 15px; color: #075846; background: var(--flow-100); border: 1px solid #9aead7; border-radius: 12px; font-weight: 700; }
.notice svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.notice-close { margin-left: auto; padding: 0 4px; color: inherit; background: none; border: 0; cursor: pointer; font-size: 21px; line-height: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(115px, 1fr)); gap: 13px; margin-bottom: 18px; }
.stat-card { display: flex; min-width: 0; min-height: 104px; align-items: center; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.stat-card > div:last-child { min-width: 0; }
.stat-card span { display: block; overflow: hidden; color: var(--ink-600); font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.stat-card strong { display: block; margin-top: 1px; color: var(--ink-950); font-size: 27px; font-weight: 840; letter-spacing: -1px; line-height: 1.1; }
.stat-card small { display: block; margin-top: 5px; color: var(--ink-500); font-size: 9px; font-weight: 650; line-height: 1.3; }
.stat-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: var(--ink-700); background: var(--ink-100); border-radius: 11px; }
.stat-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.stat-new .stat-icon { color: #176aa9; background: var(--blue-100); }
.stat-quote .stat-icon { color: #966100; background: var(--amber-100); }
.stat-alert .stat-icon { color: #9b6700; background: var(--amber-100); }
.stat-alert.has-alert { border-color: #f6d084; box-shadow: 0 9px 25px rgba(243, 167, 18, .1); }
.stat-alert.has-alert strong { color: #b26d00; }
.stat-today .stat-icon { color: #9b6700; background: #fff7e5; }
.stat-booked .stat-icon { color: #087c63; background: var(--flow-100); }
.stat-won .stat-icon { color: #176854; background: #dcefe9; }
.stat-value { border-color: #cbe7df; background: linear-gradient(145deg, var(--white), #f3fbf8); }
.stat-value .stat-icon { color: #087c63; background: var(--flow-100); }
.stat-value strong { font-size: clamp(20px, 2vw, 27px); }
.dashboard-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 18px; margin-bottom: 18px; }
.focus-panel, .pipeline-panel, .lead-section, .detail-card, .form-card { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.focus-panel, .pipeline-panel { padding: 23px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; color: var(--ink-950); font-size: 19px; font-weight: 820; letter-spacing: -.4px; line-height: 1.2; }
.mini-count { padding: 5px 9px; color: #9b5e00; background: var(--amber-100); border-radius: 20px; font-size: 10px; font-weight: 800; }
.focus-lead { position: relative; display: flex; min-height: 179px; align-items: center; overflow: hidden; padding: 25px; color: var(--white); background: linear-gradient(135deg, var(--ink-950), #0d3540); border-radius: 18px; text-decoration: none; isolation: isolate; }
.focus-lead::after { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 90% 20%, rgba(255, 198, 43, .2), transparent 35%); content: ""; }
.focus-content { position: relative; z-index: 2; }
.focus-topline { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.focus-lead h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -1px; line-height: 1.05; }
.focus-lead p { margin: 9px 0 18px; color: var(--ink-200); }
.focus-lead p strong { color: var(--white); }
.focus-cta { color: var(--flow-300); font-size: 12px; font-weight: 800; }
.focus-cta span { display: inline-block; margin-left: 5px; transition: transform .16s ease; }
.focus-lead:hover .focus-cta span { transform: translateX(4px); }
.focus-orbit { position: absolute; z-index: 0; top: 50%; right: -18px; width: 160px; height: 160px; transform: translateY(-50%); }
.focus-orbit span { position: absolute; inset: 0; border: 1px solid rgba(117, 235, 207, .14); border-radius: 50%; }
.focus-orbit span:nth-child(2) { inset: 24px; border-color: rgba(117, 235, 207, .23); }
.focus-orbit span:nth-child(3) { inset: 53px; background: rgba(255, 198, 43, .14); border-color: var(--flow-400); box-shadow: 0 0 40px rgba(255, 198, 43, .25); }
.urgency { padding: 4px 8px; border-radius: 20px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.urgency-overdue { color: #ffd6dd; background: rgba(232, 77, 102, .18); border: 1px solid rgba(255, 146, 164, .25); }
.urgency-today { color: #ffe4a6; background: rgba(243, 167, 18, .18); border: 1px solid rgba(255, 207, 112, .25); }
.calm-state { min-height: 179px; display: grid; place-items: center; align-content: center; padding: 20px; text-align: center; background: var(--ink-50); border: 1px dashed var(--ink-200); border-radius: 18px; }
.calm-state svg { width: 45px; height: 45px; margin-bottom: 8px; fill: none; stroke: var(--flow-500); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.calm-state h3 { margin: 0; }
.calm-state p { margin: 5px 0 0; color: var(--ink-600); }
.pipeline-list { display: grid; gap: 12px; padding-top: 3px; }
.pipeline-row { display: grid; grid-template-columns: 9px 88px minmax(70px, 1fr) 24px; align-items: center; gap: 9px; color: var(--ink-700); text-decoration: none; }
.pipeline-row:hover .pipeline-name { color: var(--ink-950); }
.pipeline-dot { width: 8px; height: 8px; border-radius: 50%; }
.pipeline-name { font-size: 12px; font-weight: 720; }
.pipeline-row strong { color: var(--ink-900); font-size: 12px; text-align: right; }
.pipeline-track { height: 6px; overflow: hidden; background: var(--ink-100); border-radius: 10px; }
.pipeline-fill { display: block; height: 100%; min-width: 2px; border-radius: inherit; transition: width .4s ease; }
.pipeline-width-0 { width: 0; } .pipeline-width-10 { width: 10%; } .pipeline-width-20 { width: 20%; } .pipeline-width-30 { width: 30%; } .pipeline-width-40 { width: 40%; } .pipeline-width-50 { width: 50%; } .pipeline-width-60 { width: 60%; } .pipeline-width-70 { width: 70%; } .pipeline-width-80 { width: 80%; } .pipeline-width-90 { width: 90%; } .pipeline-width-100 { width: 100%; }
.status-bg-new, .status-bg-new-enquiry { background: var(--blue-500); } .status-bg-contacted { background: var(--violet-500); } .status-bg-quote-sent { background: var(--amber-500); } .status-bg-follow-up, .status-bg-follow-up-required { background: #ef7f45; } .status-bg-booked { background: var(--flow-500); } .status-bg-won, .status-bg-completed { background: #23846e; } .status-bg-lost { background: var(--ink-500); }

.quote-command-centre { margin-bottom: 18px; padding: 26px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); scroll-margin-top: 92px; }
.quote-command-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: end; gap: 28px; margin-bottom: 22px; }
.quote-command-heading h2 { margin: 0; color: var(--ink-950); font-size: clamp(24px, 3vw, 34px); font-weight: 880; letter-spacing: -1.2px; line-height: 1.05; }
.quote-command-heading > div:first-child > p:last-child { max-width: 700px; margin: 9px 0 0; color: var(--ink-600); line-height: 1.55; }
.quote-command-message { padding: 15px 17px; color: var(--ink-100); background: linear-gradient(135deg, var(--ink-950), #0c333d); border-radius: 14px; }
.quote-command-message strong, .quote-command-message span { display: block; }
.quote-command-message strong { color: var(--flow-300); font-size: 12px; line-height: 1.4; }
.quote-command-message span { margin-top: 5px; color: var(--ink-300); font-size: 10px; line-height: 1.5; }
.quote-table-wrap { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: 15px; }
.quote-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.quote-table th { padding: 11px 12px; color: var(--ink-500); background: var(--ink-50); border-bottom: 1px solid var(--ink-200); font-size: 9px; font-weight: 850; letter-spacing: .65px; text-align: left; text-transform: uppercase; }
.quote-table td { max-width: 190px; padding: 13px 12px; color: var(--ink-700); border-bottom: 1px solid var(--ink-100); font-size: 10px; line-height: 1.4; vertical-align: top; }
.quote-table tbody tr:last-child td { border-bottom: 0; }
.quote-table tr.is-overdue { background: #fffafb; }
.quote-table tr.is-overdue td:first-child { box-shadow: inset 3px 0 var(--red-500); }
.quote-table tr.is-due-today { background: #fffcf5; }
.quote-table tr.is-due-today td:first-child { box-shadow: inset 3px 0 var(--amber-500); }
.quote-table td > strong, .quote-table td > span { display: block; }
.quote-customer { display: block; text-decoration: none; }
.quote-customer strong, .quote-customer span { display: block; }
.quote-customer strong { color: var(--ink-950); font-size: 12px; }
.quote-customer span { margin-top: 2px; color: var(--ink-500); font-size: 9px; }
.quote-call-link { display: inline-block; margin-top: 7px; color: #087963; font-size: 9px; font-weight: 800; text-decoration: none; }
.quote-money { color: var(--ink-950); font-size: 13px; white-space: nowrap; }
.quote-date { color: var(--ink-800); white-space: nowrap; }
.quote-date.is-overdue { color: var(--red-500); }
.quote-date.is-today { color: #a86b00; }
.status-follow-up-due { color: #946000; background: var(--amber-100); border-color: #f7daa0; }
.status-overdue { color: #a42b40; background: var(--red-100); border-color: #f3c1ca; }
.quote-note { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink-600); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.quote-actions { display: flex; min-width: 245px; flex-wrap: wrap; gap: 5px; }
.quote-actions form { margin: 0; }
.quote-action { display: inline-flex; min-height: 29px; align-items: center; justify-content: center; padding: 6px 8px; color: var(--ink-700); background: var(--white); border: 1px solid var(--ink-200); border-radius: 8px; cursor: pointer; font: inherit; font-size: 9px; font-weight: 780; line-height: 1.15; text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.quote-action:hover { color: var(--ink-950); background: var(--ink-50); border-color: var(--ink-300); transform: translateY(-1px); }
.quote-action:active { transform: scale(.97); }
.quote-action-primary { color: #075846; background: var(--flow-100); border-color: #a8eddd; }
.quote-action-muted { color: var(--ink-500); }
.quote-copy-sms { color: #135f9b; background: var(--blue-100); border-color: #c7e1ff; }
.quote-copy-sms.is-copied { color: #075846; background: var(--flow-100); border-color: #a8eddd; }
.sms-copy-fallback { width: 100%; margin-top: 3px; text-align: left; }
.sms-copy-fallback[hidden] { display: none; }
.sms-copy-fallback span { display: block; margin-bottom: 5px; color: var(--ink-600); font-size: 8px; font-weight: 850; letter-spacing: .5px; text-transform: uppercase; }
.sms-copy-fallback textarea { width: 100%; min-height: 76px; padding: 8px; color: var(--ink-800); background: var(--blue-100); border: 1px solid #c7e1ff; border-radius: 8px; font: inherit; font-size: 9px; line-height: 1.45; resize: vertical; }
.quote-command-empty { padding: 34px 20px; text-align: center; background: var(--ink-50); border: 1px dashed var(--ink-200); border-radius: 15px; }
.quote-command-empty strong { color: var(--ink-950); font-size: 17px; }
.quote-command-empty p { margin: 7px auto 17px; color: var(--ink-600); }

.lead-section { padding: 24px; }
.lead-section-heading { margin-bottom: 16px; }
.lead-filter-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: thin; }
.lead-filter-tabs a { flex: 0 0 auto; padding: 8px 11px; color: var(--ink-600); background: var(--white); border: 1px solid var(--ink-200); border-radius: 9px; font-size: 10px; font-weight: 780; text-decoration: none; }
.lead-filter-tabs a:hover, .lead-filter-tabs a.is-active { color: var(--ink-950); background: var(--flow-100); border-color: #a8eddd; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 185px auto auto; gap: 9px; margin-bottom: 20px; padding: 12px; background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 15px; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; fill: none; stroke: var(--ink-500); stroke-linecap: round; stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.filter-bar input, .filter-bar select { width: 100%; height: 42px; color: var(--ink-900); background: var(--white); border: 1px solid var(--ink-200); border-radius: 10px; }
.filter-bar input { padding: 8px 12px 8px 39px; }
.filter-bar select { padding: 8px 32px 8px 11px; }
.button-filter { color: var(--white); background: var(--ink-900); }
.clear-filter { display: grid; place-items: center; padding: 0 5px; color: var(--ink-600); font-size: 12px; font-weight: 750; }
.lead-table-wrap { overflow-x: auto; }
.lead-table { width: 100%; border-collapse: collapse; }
.lead-table th { padding: 10px 12px; color: var(--ink-500); border-bottom: 1px solid var(--ink-200); font-size: 10px; font-weight: 850; letter-spacing: .7px; text-align: left; text-transform: uppercase; }
.lead-table td { padding: 15px 12px; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.lead-table tbody tr:last-child td { border-bottom: 0; }
.lead-row { position: relative; transition: background .16s ease; }
.lead-row:hover { background: #f9fbfb; }
.lead-row.is-overdue td:first-child { box-shadow: inset 3px 0 var(--red-500); }
.lead-identity { display: flex; min-width: 215px; align-items: center; gap: 11px; text-decoration: none; }
.avatar { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: var(--ink-800); background: linear-gradient(145deg, var(--flow-100), #ddecf0); border: 1px solid #cbe4e3; border-radius: 12px; font-size: 11px; font-weight: 850; }
.lead-identity strong, .lead-identity small, .follow-date strong, .follow-date small, .source-label { display: block; }
.lead-identity strong { color: var(--ink-950); font-size: 13px; }
.lead-identity small, .source-label, .follow-date small { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.lead-location { max-width: 270px; overflow: hidden; color: #087963 !important; text-overflow: ellipsis; white-space: nowrap; }
.lead-map-link { display: inline-flex; margin: 6px 0 0 50px; padding: 4px 7px; color: #087963; background: var(--flow-100); border: 1px solid #b4e9dc; border-radius: 7px; font-size: 9px; font-weight: 800; text-decoration: none; }
.lead-map-link:hover { color: var(--ink-950); border-color: var(--flow-500); }
.service-name { color: var(--ink-800); font-size: 12px; font-weight: 680; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid transparent; border-radius: 99px; font-size: 10px; font-weight: 850; letter-spacing: .15px; }
.status-new, .status-new-enquiry { color: #135f9b; background: var(--blue-100); border-color: #c7e1ff; } .status-contacted { color: #6543c2; background: var(--violet-100); border-color: #ddd3ff; } .status-quote-sent { color: #966100; background: var(--amber-100); border-color: #f7daa0; } .status-follow-up, .status-follow-up-required { color: #9c4215; background: #ffeadf; border-color: #ffcbb0; } .status-booked { color: #05725a; background: var(--flow-100); border-color: #a8eddd; } .status-won, .status-completed { color: #166b59; background: #dcefe9; border-color: #badfd4; } .status-lost { color: var(--ink-600); background: var(--ink-100); border-color: var(--ink-200); }
.follow-date strong { color: var(--ink-800); font-size: 11px; }
.follow-date.is-overdue strong { color: var(--red-500); }
.follow-date.is-today strong { color: #a86b00; }
.muted { color: var(--ink-500); font-size: 11px; }
.next-action { color: var(--ink-800); font-size: 11px; font-weight: 720; }
.row-arrow { display: grid; width: 31px; height: 31px; place-items: center; color: var(--ink-600); background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 9px; text-decoration: none; }
.row-arrow:hover { color: var(--ink-950); background: var(--flow-100); }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 15px; place-items: center; color: var(--ink-500); background: var(--ink-100); border-radius: 20px; }
.empty-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.empty-state h3 { margin: 0; font-size: 19px; }
.empty-state p { margin: 6px auto 18px; color: var(--ink-600); }
.empty-state > div:last-child { display: flex; justify-content: center; gap: 9px; }

.form-card { max-width: 950px; padding: clamp(22px, 4vw, 38px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .date-form label { display: block; margin-bottom: 7px; color: var(--ink-800); font-size: 12px; font-weight: 780; }
.field label span[aria-hidden] { color: var(--red-500); }
.field input, .field select, .field textarea, .date-form input { display: block; width: 100%; color: var(--ink-950); background: var(--white); border: 1px solid var(--ink-200); border-radius: 11px; transition: border-color .16s ease, box-shadow .16s ease; }
.field input, .field select, .date-form input { height: 46px; padding: 10px 12px; }
.field textarea { min-height: 120px; padding: 12px; line-height: 1.55; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover, .date-form input:hover { border-color: var(--ink-300); }
.field input:focus, .field select:focus, .field textarea:focus, .date-form input:focus { border-color: var(--blue-500); outline: 0; box-shadow: 0 0 0 3px rgba(51, 140, 255, .12); }
.field .has-error { border-color: var(--red-500); background: #fffafb; }
.field-error { margin: 6px 0 0; color: #bd2941; font-size: 11px; font-weight: 680; }
.field-hint, .field-meta { margin: 6px 0 0; color: var(--ink-500); font-size: 10px; }
.field-meta { display: flex; justify-content: space-between; gap: 15px; }
.field-meta span:last-child { white-space: nowrap; }
.address-autocomplete-control { position: relative; }
.address-autocomplete-menu { position: absolute; z-index: 70; top: calc(100% + 6px); right: 0; left: 0; overflow: hidden auto; max-height: min(320px, 48vh); padding: 5px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 12px; box-shadow: 0 16px 38px rgba(12, 31, 38, .18); }
.address-autocomplete-menu[hidden] { display: none; }
.address-autocomplete-option { display: block; width: 100%; padding: 10px 11px; color: var(--ink-800); background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.address-autocomplete-option:hover, .address-autocomplete-option.is-active { color: var(--ink-950); background: var(--flow-100); }
.address-autocomplete-primary, .address-autocomplete-secondary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-autocomplete-primary { font-size: 12px; font-weight: 780; }
.address-autocomplete-secondary { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.address-autocomplete-attribution { padding: 7px 10px 4px; color: var(--ink-500); border-top: 1px solid var(--ink-100); font-size: 9px; font-weight: 700; text-align: right; }
.optional { margin-left: 5px; color: var(--ink-500) !important; font-size: 10px; font-weight: 600; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ink-100); }
.form-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 12px 14px; color: #a6243a; background: var(--red-100); border: 1px solid #ffc5cf; border-radius: 11px; font-size: 12px; }
.form-summary strong { color: #8f1830; }
.honey-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.lost-reason-field { display: none; }
.lost-reason-field.is-visible { display: block; }

.detail-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.detail-title-row { display: flex; align-items: center; gap: 16px; }
.detail-avatar { display: grid; width: 65px; height: 65px; flex: 0 0 auto; place-items: center; color: var(--ink-800); background: linear-gradient(145deg, var(--flow-100), #ddecf0); border: 1px solid #c6e7e0; border-radius: 20px; font-size: 17px; font-weight: 850; }
.detail-hero h1 { margin-top: 5px; font-size: clamp(31px, 4vw, 47px); }
.detail-hero p { margin: 5px 0 0; color: var(--ink-600); }
.detail-kicker { display: flex; align-items: center; gap: 9px; color: var(--ink-500); font-size: 11px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.detail-main, .detail-side { display: grid; gap: 18px; }
.detail-card { padding: 24px; }
.action-banner { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 22px 25px; color: var(--white); background: linear-gradient(125deg, var(--ink-950), #0b303a); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.action-banner .eyebrow { color: var(--flow-300); }
.action-banner h2 { margin: 0; font-size: 23px; letter-spacing: -.6px; }
.action-banner p:last-child { margin: 4px 0 0; color: var(--ink-200); font-size: 12px; }
.action-signal { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(117, 235, 207, .25); border-radius: 50%; }
.action-signal span { width: 13px; height: 13px; background: var(--flow-400); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255, 198, 43, .12), 0 0 24px var(--flow-500); }
.action-overdue .action-signal { border-color: rgba(255, 145, 164, .3); }
.action-overdue .action-signal span { background: #ff738b; box-shadow: 0 0 0 8px rgba(232, 77, 102, .14), 0 0 24px var(--red-500); }
.contact-actions { display: flex; gap: 8px; }
.button-sms { color: #174b82; background: var(--blue-100); border-color: #c4dcf8; }
.button-sms:hover { background: #d4e7ff; }
.stage-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage-switcher form { min-width: 0; }
.stage-button { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ink-700); background: var(--white); border: 1px solid var(--ink-200); border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 760; }
.stage-button:hover { color: var(--ink-950); background: var(--ink-50); }
.stage-check { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; color: var(--white); background: var(--ink-200); border-radius: 6px; font-size: 10px; }
.stage-button.is-current { color: var(--ink-950); background: var(--flow-100); border-color: #9fe6d5; }
.stage-button.is-current .stage-check { color: var(--ink-950); background: var(--flow-400); }
.lost-note { margin: 14px 0 0; padding: 10px 12px; color: var(--ink-700); background: var(--ink-50); border-radius: 9px; font-size: 11px; }
.text-link { color: #087963; font-size: 11px; font-weight: 800; }
.address-card { overflow: hidden; }
.address-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 14px 16px; background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 13px; }
.address-pin { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: #087963; background: var(--flow-100); border-radius: 11px; }
.address-pin svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.address-summary span, .address-summary strong { display: block; }
.address-summary div > span { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.address-summary strong { margin-top: 3px; color: var(--ink-950); font-size: 13px; line-height: 1.4; }
.map-preview { position: relative; overflow: hidden; aspect-ratio: 16 / 7; min-height: 210px; background: var(--ink-100); border: 1px solid var(--ink-200); border-radius: 14px; }
.map-preview iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder, .map-empty-state { display: grid; min-height: 185px; place-items: center; align-content: center; padding: 24px; text-align: center; background: linear-gradient(145deg, var(--ink-50), #f1f8f7); border: 1px dashed var(--ink-300); border-radius: 14px; }
.map-placeholder > span { display: grid; width: 42px; height: 42px; margin-bottom: 9px; place-items: center; color: #087963; background: var(--flow-100); border-radius: 13px; font-size: 24px; }
.map-placeholder strong, .map-empty-state strong { color: var(--ink-950); font-size: 15px; }
.map-placeholder p, .map-empty-state p { max-width: 470px; margin: 5px 0 0; color: var(--ink-600); font-size: 11px; line-height: 1.55; }
.map-empty-state .button { margin-top: 15px; }
.map-open-button { margin-top: 13px; }
.address-sales-note { margin: 15px 0 0; color: var(--ink-500); font-size: 10px; line-height: 1.55; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.detail-list > div { min-width: 0; padding: 14px 10px 14px 0; border-bottom: 1px solid var(--ink-100); }
.detail-list > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--ink-100); }
.detail-list dt { color: var(--ink-500); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.detail-list dd { margin: 3px 0 0; color: var(--ink-900); font-size: 13px; font-weight: 680; }
.break-text { overflow-wrap: anywhere; }
.contact-link { color: #087963; font-weight: 780; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.notes-block { margin-top: 17px; padding: 16px; background: var(--ink-50); border-radius: 12px; }
.notes-block span { color: var(--ink-500); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.notes-block p { margin: 6px 0 0; color: var(--ink-700); white-space: pre-wrap; }
.timeline { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 9px; bottom: 9px; left: 6px; width: 1px; background: var(--ink-200); content: ""; }
.timeline li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.timeline-marker { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 3px; background: var(--white); border: 3px solid var(--flow-500); border-radius: 50%; }
.event-created { border-color: var(--blue-500); } .event-status { border-color: var(--violet-500); } .event-follow-up { border-color: var(--amber-500); }
.timeline strong, .timeline time { display: block; }
.timeline strong { color: var(--ink-800); font-size: 12px; }
.timeline time { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.date-form { display: grid; gap: 10px; }
.quick-followups { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.quick-followups button { width: 100%; padding: 7px; color: var(--ink-700); background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 750; }
.quick-followups button:hover { color: var(--ink-950); border-color: var(--flow-500); }
.clear-followup { display: block; margin: 12px auto 0; padding: 4px; color: var(--ink-500); background: none; border: 0; cursor: pointer; font-size: 10px; text-decoration: underline; }
.record-card dl { display: grid; gap: 11px; margin: 15px 0 0; }
.record-card dl div { display: flex; justify-content: space-between; gap: 10px; }
.record-card dt { color: var(--ink-500); font-size: 10px; }
.record-card dd { margin: 0; color: var(--ink-700); font-size: 10px; font-weight: 700; text-align: right; }
.delete-link { display: block; margin-top: 18px; padding-top: 14px; color: #b52b42; border-top: 1px solid var(--ink-100); font-size: 10px; font-weight: 780; text-align: center; }
.delete-card { max-width: 620px; margin: 50px auto; padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--white); border: 1px solid #f3c8d0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.delete-card h1 { margin: 0; color: var(--ink-950); font-size: clamp(30px, 5vw, 42px); letter-spacing: -1.3px; line-height: 1.1; }
.delete-card > p:not(.eyebrow) { max-width: 510px; margin: 14px auto 23px; color: var(--ink-600); }
.delete-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; color: #b52b42; background: var(--red-100); border-radius: 18px; }
.delete-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.delete-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 25px; background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 13px; }
.delete-summary div { padding: 13px; border-left: 1px solid var(--ink-100); }
.delete-summary div:first-child { border-left: 0; }
.delete-summary dt { color: var(--ink-500); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.delete-summary dd { margin: 4px 0 0; color: var(--ink-800); font-size: 11px; font-weight: 730; }
.delete-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.button-danger { color: var(--white); background: #c6344c; box-shadow: 0 8px 20px rgba(198, 52, 76, .16); }
.button-danger:hover { background: #a9263c; }

.operations-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.operation-stat { padding: 20px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.operation-stat span, .operation-stat small { display: block; }
.operation-stat span { color: var(--ink-600); font-size: 11px; font-weight: 780; text-transform: uppercase; }
.operation-stat strong { display: block; margin: 5px 0 3px; color: var(--ink-950); font-size: clamp(24px, 3vw, 32px); letter-spacing: -1px; }
.operation-stat small { color: var(--ink-500); font-size: 10px; }
.operation-stat-money { border-color: #a8e9da; background: linear-gradient(145deg, var(--white), #effcf8); }
.operations-grid { display: grid; gap: 18px; }
.operations-panel { padding: 24px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.operations-list { display: grid; }
.operation-row { display: grid; grid-template-columns: 150px minmax(230px, 1fr) 125px 120px; align-items: center; gap: 16px; padding: 15px 5px; border-top: 1px solid var(--ink-100); text-decoration: none; }
.operation-row:first-child { border-top: 0; }
.operation-row:hover { background: var(--ink-50); }
.operation-row strong, .operation-row small { display: block; }
.operation-row small { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.operation-date strong, .operation-person strong { color: var(--ink-900); font-size: 12px; }
.operation-balance { text-align: right; }
.operation-balance strong { color: var(--ink-950); font-size: 14px; }
.operations-empty { padding: 34px; text-align: center; background: var(--ink-50); border: 1px dashed var(--ink-200); border-radius: 14px; }
.operations-empty h3 { margin: 0; color: var(--ink-900); }
.operations-empty p { margin: 6px 0 0; color: var(--ink-500); }
.booking-pill, .payment-pill { display: inline-flex; width: fit-content; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 30px; font-size: 10px; font-weight: 820; white-space: nowrap; }
.booking-unscheduled { color: var(--ink-600); background: var(--ink-100); }
.booking-scheduled { color: #176aa9; background: var(--blue-100); }
.booking-confirmed, .booking-completed { color: #08715b; background: var(--flow-100); }
.booking-cancelled { color: #a6243a; background: var(--red-100); }
.payment-not-priced { color: var(--ink-600); background: var(--ink-100); }
.payment-unpaid, .payment-overdue { color: #a6243a; background: var(--red-100); }
.payment-part-paid, .payment-deposit-paid { color: #8b5c00; background: var(--amber-100); }
.payment-paid { color: #08715b; background: var(--flow-100); }
.operations-form, .payment-form { display: grid; gap: 18px; }
.operations-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.payment-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.money-input { display: flex; align-items: center; overflow: hidden; background: var(--white); border: 1px solid var(--ink-200); border-radius: 11px; }
.money-input:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(51, 140, 255, .12); }
.money-input > span { padding-left: 12px; color: var(--ink-500); font-weight: 780; }
.money-input input { border: 0 !important; box-shadow: none !important; }
.payment-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.payment-summary-grid > div { padding: 14px; background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 12px; }
.payment-summary-grid span, .payment-summary-grid strong { display: block; }
.payment-summary-grid span { color: var(--ink-500); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.payment-summary-grid strong { margin-top: 4px; color: var(--ink-900); font-size: 16px; }
.payment-summary-grid .payment-balance { background: var(--flow-100); border-color: #a8e9da; text-align: left; }
.payment-ledger { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ink-100); }
.payment-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 2px; border-top: 1px solid var(--ink-100); }
.payment-entry:first-of-type { border-top: 0; }
.payment-entry span:last-child { text-align: right; }
.payment-entry strong, .payment-entry small { display: block; }
.payment-entry strong { color: var(--ink-900); font-size: 12px; }
.payment-entry small { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.payment-entry .refund-amount { color: #b52b42; }

.public-page { min-height: 100vh; color: var(--ink-100); background: var(--ink-950); }
.public-shell, .success-shell, .login-shell { min-height: calc(100vh - 60px); background: radial-gradient(circle at 8% 10%, rgba(245, 168, 0, .14), transparent 27%), radial-gradient(circle at 90% 80%, rgba(51, 140, 255, .1), transparent 28%), var(--ink-950); }
.public-header { display: flex; width: min(1220px, calc(100% - 40px)); height: 85px; align-items: center; justify-content: space-between; margin: 0 auto; }
.public-header .brand { color: var(--white); }
.public-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; color: var(--ink-300); border: 1px solid rgba(255,255,255,.1); border-radius: 30px; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.enquiry-layout { display: grid; width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 45px 0 80px; grid-template-columns: minmax(0, .85fr) minmax(500px, 1.15fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.enquiry-story .eyebrow { color: var(--flow-300); }
.enquiry-story h1 { max-width: 600px; color: var(--white); font-size: clamp(48px, 6vw, 76px); letter-spacing: -3.4px; }
.story-lead { max-width: 560px; margin: 22px 0 34px; color: var(--ink-300); font-size: 17px; }
.story-points { display: grid; gap: 18px; }
.story-points > div { display: grid; grid-template-columns: 36px 1fr; gap: 13px; align-items: start; }
.story-points > div > span { color: var(--flow-400); font-size: 11px; font-weight: 850; }
.story-points p { margin: 0; }
.story-points strong, .story-points small { display: block; }
.story-points strong { color: var(--ink-100); font-size: 13px; }
.story-points small { margin-top: 2px; color: var(--ink-500); font-size: 11px; }
.shine-line { width: 75%; height: 1px; margin-top: 42px; overflow: hidden; background: rgba(255,255,255,.07); }
.shine-line span { display: block; width: 28%; height: 1px; background: linear-gradient(90deg, transparent, var(--flow-300), transparent); animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 100% { transform: translateX(-100%); opacity: 0; } 35%, 65% { opacity: 1; } 70% { transform: translateX(350%); } }
.enquiry-card { padding: clamp(25px, 4vw, 42px); color: var(--ink-900); background: rgba(255, 255, 255, .985); border: 1px solid rgba(255,255,255,.15); border-radius: 28px; box-shadow: var(--shadow-lg); }
.enquiry-card-heading { margin-bottom: 28px; }
.enquiry-card-heading h2 { margin: 0; color: var(--ink-950); font-size: 29px; letter-spacing: -1px; }
.enquiry-card-heading > p:last-child { margin: 7px 0 0; color: var(--ink-600); font-size: 12px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 13px 0 0; color: var(--ink-500); font-size: 9px; }
.privacy-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }
.public-footer { display: flex; min-height: 60px; align-items: center; justify-content: space-between; padding: 0 max(20px, calc((100vw - 1220px) / 2)); color: var(--ink-500); background: #041319; border-top: 1px solid rgba(255,255,255,.06); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.login-shell { display: flex; flex-direction: column; }
.login-layout { display: grid; flex: 1; place-items: center; padding: 45px 20px 85px; }
.login-card { width: min(460px, 100%); padding: clamp(28px, 5vw, 44px); color: var(--ink-900); background: var(--white); border: 1px solid rgba(255,255,255,.15); border-radius: 26px; box-shadow: var(--shadow-lg); }
.login-mark { display: grid; width: 52px; height: 52px; margin-bottom: 24px; place-items: center; color: #087963; background: var(--flow-100); border-radius: 16px; }
.login-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-card h1 { margin: 0; color: var(--ink-950); font-size: clamp(30px, 6vw, 40px); letter-spacing: -1.4px; line-height: 1.08; }
.login-card > p:not(.eyebrow) { margin: 13px 0 24px; color: var(--ink-600); }
.login-card form { display: grid; gap: 11px; }
.login-card label { color: var(--ink-700); font-size: 11px; font-weight: 800; }
.login-card input[type="email"], .login-card input[type="password"] { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink-900); background: var(--white); border: 1px solid var(--ink-300); border-radius: 10px; }
.login-card .button { margin-top: 6px; }
.login-error { margin: 0 0 18px; padding: 12px 13px; color: #98273a; background: var(--red-100); border: 1px solid #f2bec7; border-radius: 10px; font-size: 12px; font-weight: 700; }

/* Public product landing page */
.landing-shell { min-height: 100vh; overflow: clip; color: var(--ink-100); background: radial-gradient(circle at 75% 4%, rgba(51, 140, 255, .1), transparent 24%), radial-gradient(circle at 8% 12%, rgba(245, 168, 0, .14), transparent 27%), var(--ink-950); }
.landing-header { position: sticky; z-index: 100; top: 0; width: 100%; color: var(--white); background: rgba(6, 24, 31, .82); border-bottom: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(18px); transition: background .2s ease, box-shadow .2s ease, border-color .2s ease; }
.landing-header.is-scrolled { background: rgba(6, 24, 31, .95); border-color: rgba(255, 198, 43, .14); box-shadow: 0 15px 40px rgba(0, 0, 0, .2); }
.landing-header-inner { position: relative; display: flex; width: min(1220px, calc(100% - 40px)); min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; }
.landing-header .brand, .landing-footer .brand { color: var(--white); }
.landing-nav { display: flex; align-items: center; gap: 9px; }
.landing-nav > a:not(.button) { position: relative; padding: 10px 12px; color: var(--ink-300); border-radius: 9px; font-size: 12px; font-weight: 760; text-decoration: none; transition: color .18s ease, background .18s ease; }
.landing-nav > a:not(.button)::after { position: absolute; right: 12px; bottom: 5px; left: 12px; height: 2px; background: var(--flow-400); border-radius: 2px; content: ""; opacity: 0; transform: scaleX(.3); transition: opacity .18s ease, transform .18s ease; }
.landing-nav > a:not(.button):hover, .landing-nav > a:not(.button).is-active { color: var(--white); background: rgba(255, 255, 255, .05); }
.landing-nav > a:not(.button):hover::after, .landing-nav > a:not(.button).is-active::after { opacity: 1; transform: scaleX(1); }
.landing-menu-toggle, .landing-mobile-nav { display: none; }
.button-small { min-height: 38px; padding: 8px 15px; font-size: 12px; }
.button-header { color: var(--ink-950); background: var(--flow-400); }
.button-dark-secondary { color: var(--ink-100); background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .15); }
.button-dark-secondary:hover { color: var(--white); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.landing-hero { position: relative; display: grid; width: min(1220px, calc(100% - 40px)); min-height: 720px; grid-template-columns: minmax(0, .93fr) minmax(530px, 1.07fr); align-items: center; gap: clamp(45px, 6vw, 85px); margin: 0 auto; padding: 76px 0 108px; }
.landing-hero::after { position: absolute; right: 5%; bottom: 0; left: 5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 198, 43, .18), transparent); content: ""; }
.landing-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; color: var(--flow-300); font-size: 10px; font-weight: 830; letter-spacing: 1.1px; text-transform: uppercase; }
.landing-kicker .pulse-dot { width: 6px; height: 6px; }
.landing-hero h1 { max-width: 680px; margin: 0; color: var(--white); font-size: clamp(49px, 5.35vw, 73px); font-weight: 900; letter-spacing: -3.5px; line-height: .99; text-wrap: balance; }
.landing-lead { max-width: 625px; margin: 25px 0 30px; color: var(--ink-200); font-size: 17px; line-height: 1.68; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.landing-actions form, .landing-cta form { margin: 0; }
.landing-trust { margin: 20px 0 0; color: var(--ink-500); font-size: 10px; font-weight: 670; letter-spacing: .25px; }
.hero-positioning { max-width: 620px; margin: -12px 0 27px; padding-left: 14px; color: var(--white); border-left: 3px solid var(--flow-400); font-size: 13px; font-weight: 760; }
.hero-bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; max-width: 610px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-bullets li { position: relative; padding-left: 21px; color: var(--ink-300); font-size: 11px; font-weight: 680; }
.hero-bullets li::before { position: absolute; left: 0; color: var(--flow-400); content: "✓"; font-weight: 900; }
.product-preview { position: relative; min-width: 0; overflow: visible; color: var(--ink-900); background: var(--white); border: 1px solid rgba(255, 255, 255, .42); border-radius: 24px; box-shadow: 0 42px 110px rgba(0, 0, 0, .38); transform: perspective(1400px) rotateY(-2deg) rotateX(.5deg); }
.product-preview::before { position: absolute; z-index: -1; inset: -30px; background: radial-gradient(circle, rgba(255, 198, 43, .16), transparent 65%); content: ""; filter: blur(15px); }
.preview-topbar { display: grid; height: 51px; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 0 16px; background: var(--ink-50); border-bottom: 1px solid var(--ink-200); border-radius: 22px 22px 0 0; }
.preview-brand-dot { display: grid; width: 26px; height: 26px; place-items: center; background: var(--flow-400); border-radius: 8px; }
.preview-brand-dot span { width: 12px; height: 15px; background: var(--ink-950); clip-path: polygon(58% 0, 10% 57%, 46% 57%, 31% 100%, 90% 40%, 55% 40%); }
.preview-search { overflow: hidden; padding: 6px 10px; color: var(--ink-500); background: var(--white); border: 1px solid var(--ink-200); border-radius: 7px; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.preview-add { padding: 6px 9px; color: var(--ink-950); background: var(--flow-400); border-radius: 7px; font-size: 7px; font-weight: 820; }
.preview-body { display: grid; min-height: 390px; grid-template-columns: 54px 1fr; }
.preview-sidebar { display: flex; align-items: center; flex-direction: column; gap: 13px; padding: 25px 13px; background: linear-gradient(160deg, #071c24, #0a2b34); border-radius: 0 0 0 22px; }
.preview-sidebar span { width: 23px; height: 7px; background: rgba(255, 255, 255, .13); border-radius: 8px; }
.preview-sidebar span.is-active { height: 23px; background: rgba(255, 198, 43, .25); border: 1px solid rgba(255, 198, 43, .28); border-radius: 7px; }
.preview-content { min-width: 0; padding: 24px; background: #f5f8f8; border-radius: 0 0 22px 0; }
.preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.preview-heading small, .preview-heading strong { display: block; }
.preview-heading small { color: var(--ink-500); font-size: 6px; font-weight: 850; letter-spacing: .7px; }
.preview-heading strong { margin-top: 3px; color: var(--ink-950); font-size: 18px; letter-spacing: -.7px; }
.preview-heading > span { color: var(--ink-500); font-size: 7px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0 11px; }
.preview-stats div { padding: 11px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 9px; }
.preview-stats small, .preview-stats strong { display: block; }
.preview-stats small { color: var(--ink-500); font-size: 6px; font-weight: 750; }
.preview-stats strong { margin-top: 2px; color: var(--ink-950); font-size: 17px; }
.preview-stats .preview-alert { background: #fffaf0; border-color: #f3d895; }
.preview-stats .preview-alert strong { color: #ae6b00; }
.preview-focus { display: flex; min-height: 92px; align-items: end; justify-content: space-between; gap: 18px; padding: 16px; color: var(--white); background: radial-gradient(circle at 85% 20%, rgba(255, 198, 43, .2), transparent 30%), linear-gradient(135deg, var(--ink-950), #0d3540); border-radius: 11px; }
.preview-focus small, .preview-focus strong, .preview-focus span { display: block; }
.preview-focus small { margin-bottom: 7px; color: var(--flow-300); font-size: 6px; font-weight: 850; letter-spacing: .7px; }
.preview-focus strong { font-size: 13px; }
.preview-focus span { margin-top: 3px; color: var(--ink-300); font-size: 7px; }
.preview-focus b { color: var(--flow-300); font-size: 7px; white-space: nowrap; }
.preview-pipeline { display: flex; overflow: hidden; gap: 5px; margin-top: 11px; }
.preview-stage { display: inline-flex; min-width: 0; flex: 1; align-items: center; gap: 4px; padding: 7px 5px; color: var(--ink-600); background: var(--white); border: 1px solid var(--ink-200); border-radius: 7px; font-size: 5px; font-weight: 760; white-space: nowrap; }
.preview-stage i { width: 5px; height: 5px; flex: 0 0 auto; background: var(--blue-500); border-radius: 50%; }
.preview-stage-2 i { background: var(--violet-500); } .preview-stage-3 i { background: var(--amber-500); } .preview-stage-4 i { background: #ef7f45; } .preview-stage-5 i { background: var(--flow-500); } .preview-stage-6 i { background: #23846e; } .preview-stage-7 i { background: var(--ink-500); }
.preview-float { position: absolute; z-index: 3; display: grid; min-width: 145px; padding: 11px 13px; color: var(--ink-900); background: rgba(255, 255, 255, .97); border: 1px solid var(--ink-200); border-radius: 11px; box-shadow: var(--shadow-md); transform: rotateY(3deg); }
.preview-float strong { font-size: 8px; }
.preview-float span { margin-top: 2px; color: var(--ink-500); font-size: 7px; }
.preview-float-left { bottom: 40px; left: -48px; border-left: 3px solid var(--amber-500); }
.preview-float-right { top: 86px; right: -38px; border-left: 3px solid var(--flow-500); }
.landing-strip { display: flex; min-height: 86px; align-items: center; justify-content: center; gap: clamp(25px, 5vw, 65px); padding: 20px; color: var(--ink-300); background: rgba(255, 255, 255, .035); border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.landing-strip p { margin: 0; font-size: 12px; font-weight: 750; }
.landing-strip span { width: 5px; height: 5px; background: var(--flow-400); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 198, 43, .08); }
.landing-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; scroll-margin-top: 96px; }
.landing-section-heading { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.landing-section .eyebrow, .landing-cta .eyebrow { color: var(--flow-300); }
.landing-section h2, .landing-cta h2 { margin: 0; color: var(--white); font-size: clamp(36px, 4.4vw, 55px); letter-spacing: -2.2px; line-height: 1.04; }
.landing-section-heading > p:last-child { max-width: 590px; margin: 18px auto 0; color: var(--ink-300); }
.pain-section { padding-bottom: 80px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pain-card { display: flex; min-height: 138px; align-items: flex-start; gap: 18px; padding: 25px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.pain-card:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 198, 43, .23); transform: translateY(-3px); }
.pain-card:last-child { grid-column: 2 / 3; }
.pain-card > span { color: var(--flow-300); font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.pain-card p { margin: 0; color: var(--white); font-size: 14px; font-weight: 680; line-height: 1.55; }
.section-support { max-width: 760px; margin: 38px auto 0; color: var(--ink-300); font-size: 16px; text-align: center; }
.feature-block { padding-top: 80px; }
.sales-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.sales-feature-card { min-height: 235px; padding: 28px; background: linear-gradient(150deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)); border: 1px solid rgba(255, 255, 255, .1); border-radius: 21px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sales-feature-card:hover { border-color: rgba(255, 198, 43, .25); box-shadow: 0 22px 55px rgba(0, 0, 0, .17); transform: translateY(-4px); }
.sales-feature-card:nth-child(2), .sales-feature-card:nth-child(6) { border-color: rgba(255, 198, 43, .28); }
.feature-number { color: var(--flow-300); font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.sales-feature-card h3 { margin: 38px 0 11px; color: var(--white); font-size: 20px; letter-spacing: -.5px; }
.sales-feature-card p { margin: 0; color: var(--ink-300); font-size: 13px; line-height: 1.7; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: process; }
.process-card { position: relative; min-height: 245px; padding: 28px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px; transition: background .2s ease, border-color .2s ease; }
.process-card:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 198, 43, .2); }
.process-card:not(:last-child)::after { position: absolute; top: 45px; right: -12px; z-index: 2; color: var(--flow-400); content: "→"; font-size: 19px; font-weight: 900; }
.process-card > span { color: var(--flow-300); font-size: 9px; font-weight: 850; letter-spacing: 1.2px; text-transform: uppercase; }
.process-card h3 { margin: 55px 0 11px; color: var(--white); font-size: 19px; letter-spacing: -.5px; }
.process-card p { margin: 0; color: var(--ink-300); font-size: 12px; line-height: 1.65; }
.followup-problem-section, .comparison-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: center; gap: clamp(55px, 8vw, 100px); }
.followup-problem-copy h2, .comparison-copy h2 { margin: 0; color: var(--white); font-size: clamp(37px, 4.5vw, 57px); letter-spacing: -2.3px; line-height: 1.02; }
.followup-problem-copy > p:not(.eyebrow), .comparison-copy > p:not(.eyebrow) { margin: 22px 0 0; color: var(--ink-300); font-size: 15px; line-height: 1.75; }
.strong-check-list { display: grid; gap: 15px; margin: 0; padding: 30px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; list-style: none; }
.strong-check-list li { position: relative; padding-left: 30px; color: var(--ink-100); font-size: 13px; font-weight: 700; }
.strong-check-list li::before { position: absolute; left: 0; display: grid; width: 20px; height: 20px; place-items: center; color: var(--ink-950); background: var(--flow-400); border-radius: 6px; content: "✓"; font-size: 9px; font-weight: 900; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.step-card { position: relative; min-height: 300px; padding: 30px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; }
.step-card-featured { background: linear-gradient(150deg, rgba(245, 168, 0, .12), rgba(255, 255, 255, .035)); border-color: rgba(255, 198, 43, .25); transform: translateY(-13px); }
.step-number { position: absolute; top: 28px; right: 28px; color: var(--ink-600); font-size: 10px; font-weight: 830; }
.step-icon { display: grid; width: 48px; height: 48px; margin-bottom: 42px; place-items: center; color: var(--flow-300); background: rgba(255, 198, 43, .1); border: 1px solid rgba(255, 198, 43, .16); border-radius: 14px; }
.step-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.step-card h3 { margin: 0; color: var(--white); font-size: 20px; letter-spacing: -.5px; }
.step-card p { margin: 10px 0 0; color: var(--ink-300); font-size: 13px; }
.feature-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .85fr); align-items: center; gap: clamp(65px, 9vw, 120px); padding-top: 80px; }
.feature-copy > p:not(.eyebrow) { max-width: 620px; margin: 22px 0 33px; color: var(--ink-300); font-size: 15px; }
.feature-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 30px 1fr; gap: 13px; }
.feature-list li > span { display: grid; width: 27px; height: 27px; place-items: center; color: var(--ink-950); background: var(--flow-400); border-radius: 9px; font-size: 11px; font-weight: 900; }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { color: var(--ink-100); font-size: 13px; }
.feature-list small { margin-top: 2px; color: var(--ink-500); font-size: 11px; }
.pipeline-showcase { padding: 27px; color: var(--ink-900); background: var(--white); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; box-shadow: var(--shadow-lg); }
.pipeline-showcase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--ink-100); }
.pipeline-showcase-head span { color: var(--ink-500); font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.pipeline-showcase-head strong { font-size: 11px; }
.showcase-row { display: grid; grid-template-columns: 7px 85px 1fr 20px; align-items: center; gap: 10px; padding: 8px 0; }
.showcase-row strong, .showcase-row b { font-size: 9px; }
.showcase-row strong { color: var(--ink-700); }
.showcase-row b { color: var(--ink-900); text-align: right; }
.showcase-dot { width: 7px; height: 7px; border-radius: 50%; }
.showcase-track { height: 5px; overflow: hidden; background: var(--ink-100); border-radius: 10px; }
.showcase-track i { display: block; height: 100%; border-radius: inherit; }
.showcase-blue { background: var(--blue-500); } .showcase-violet { background: var(--violet-500); } .showcase-amber { background: var(--amber-500); } .showcase-orange { background: #ef7f45; } .showcase-green { background: var(--flow-500); } .showcase-deep-green { background: #23846e; } .showcase-grey { background: var(--ink-500); }
.showcase-width-18 { width: 18%; } .showcase-width-27 { width: 27%; } .showcase-width-36 { width: 36%; } .showcase-width-45 { width: 45%; } .showcase-width-99 { width: 99%; }
.pricing-section { padding-top: 70px; }
.pricing-payoff { color: var(--flow-300) !important; font-size: 17px; font-weight: 800; }
.pricing-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); overflow: hidden; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 198, 43, .22); border-radius: 28px; box-shadow: var(--shadow-lg); }
.pricing-summary { padding: clamp(32px, 5vw, 56px); background: radial-gradient(circle at 20% 10%, rgba(255, 198, 43, .17), transparent 40%), #09232b; }
.pricing-summary h3 { margin: 8px 0 18px; color: var(--white); font-size: clamp(34px, 4.8vw, 54px); letter-spacing: -2px; line-height: 1; }
.pricing-summary h3 span { display: block; margin-top: 10px; color: var(--flow-300); font-size: .52em; letter-spacing: -.5px; }
.pricing-summary > p:not(.eyebrow) { max-width: 480px; margin: 0 0 28px; color: var(--ink-300); }
.pricing-includes { display: grid; align-content: center; padding: clamp(32px, 5vw, 56px); }
.pricing-includes > strong { margin-bottom: 21px; color: var(--white); font-size: 18px; }
.pricing-includes > small { margin-top: 22px; color: var(--ink-500); font-size: 10px; line-height: 1.6; }
.pricing-list { display: grid; align-content: center; gap: 15px; margin: 0; padding: 0; list-style: none; }
.pricing-list li { position: relative; padding-left: 31px; color: var(--ink-100); font-size: 14px; font-weight: 680; }
.pricing-list li::before { position: absolute; top: -1px; left: 0; display: grid; width: 21px; height: 21px; place-items: center; color: var(--ink-950); background: var(--flow-400); border-radius: 7px; content: "✓"; font-size: 10px; font-weight: 900; }
.comparison-card { padding: 4px; background: linear-gradient(145deg, rgba(255, 198, 43, .2), rgba(255, 255, 255, .04)); border-radius: 25px; box-shadow: 0 28px 70px rgba(0, 0, 0, .16); }
.comparison-card > strong { display: block; padding: 27px 30px 0; color: var(--flow-300); font-size: 15px; }
.comparison-card .strong-check-list { padding-top: 20px; background: transparent; border: 0; }
.trade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trade-card { display: flex; min-height: 86px; align-items: center; gap: 13px; padding: 20px; color: var(--white); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.trade-card:hover { background: rgba(255, 255, 255, .055); border-color: rgba(255, 198, 43, .22); transform: translateY(-2px); }
.trade-card span { color: var(--flow-400); font-size: 15px; }
.trade-card strong { font-size: 13px; }
.faq-list { display: grid; max-width: 850px; gap: 10px; margin: 0 auto; }
.faq-item { padding: 0 23px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; }
.faq-item[open] { border-color: rgba(255, 198, 43, .25); }
.faq-item summary { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; color: var(--white); cursor: pointer; font-size: 14px; font-weight: 760; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--flow-400); font-size: 20px; font-weight: 500; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin: -3px 0 23px; color: var(--ink-300); font-size: 13px; line-height: 1.7; }
.floating-section-nav { position: fixed; z-index: 60; top: 50%; right: 0; display: grid; min-width: 150px; gap: 4px; padding: 12px; color: var(--ink-100); background: rgba(6, 24, 31, .92); border: 1px solid rgba(255, 255, 255, .1); border-right: 0; border-radius: 16px 0 0 16px; box-shadow: 0 22px 60px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translate(18px, -50%); transition: opacity .22s ease, transform .22s ease; backdrop-filter: blur(16px); }
.floating-section-nav.is-visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.floating-section-nav > span { padding: 5px 9px 8px; color: var(--flow-300); font-size: 8px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.floating-section-nav a { padding: 9px; color: var(--ink-300); border-radius: 9px; font-size: 10px; font-weight: 760; text-decoration: none; transition: color .16s ease, background .16s ease, transform .16s ease; }
.floating-section-nav a:hover, .floating-section-nav a.is-active { color: var(--white); background: rgba(255, 198, 43, .11); transform: translateX(-2px); }
.landing-cta { display: flex; width: min(1120px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 50px; margin: 30px auto 110px; padding: clamp(35px, 5vw, 60px); background: radial-gradient(circle at 85% 10%, rgba(255, 198, 43, .17), transparent 35%), linear-gradient(135deg, #0a2932, #071b22); border: 1px solid rgba(255, 198, 43, .2); border-radius: 28px; }
.landing-cta h2 { font-size: clamp(33px, 4vw, 49px); }
.landing-cta p:last-child { margin: 13px 0 0; color: var(--ink-300); }
.landing-cta .button, .landing-cta form { flex: 0 0 auto; }
.final-cta-actions { display: grid; flex: 0 0 auto; gap: 14px; justify-items: center; }
.text-link-light, .text-button-light { padding: 0; color: var(--ink-300); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.text-link-light:hover, .text-button-light:hover { color: var(--white); }
.landing-footer { display: grid; width: min(1220px, calc(100% - 40px)); min-height: 105px; grid-template-columns: 1fr auto auto; align-items: center; gap: 35px; margin: 0 auto; color: var(--ink-500); border-top: 1px solid rgba(255, 255, 255, .07); font-size: 10px; }
.landing-footer .brand-mark { width: 31px; height: 31px; }
.landing-footer .brand-word { font-size: 16px; }
.landing-footer p { margin: 0; }
.landing-footer > span { text-transform: uppercase; letter-spacing: .7px; }
.footer-brand p { margin: 5px 0 0 41px; }
.landing-footer nav { display: flex; gap: 20px; }
.landing-footer nav a { color: var(--ink-300); font-weight: 720; text-decoration: none; }
.landing-footer nav a:hover { color: var(--white); }
.success-shell { display: flex; flex-direction: column; }
.success-card { width: min(570px, calc(100% - 40px)); margin: auto; padding: 20px 20px 80px; text-align: center; }
.success-rings { position: relative; width: 140px; height: 140px; margin: 0 auto 25px; }
.success-rings span { position: absolute; inset: 0; border: 1px solid rgba(255,198,43,.12); border-radius: 50%; }
.success-rings span:nth-child(2) { inset: 20px; border-color: rgba(255,198,43,.25); }
.success-rings span:nth-child(3) { inset: 40px; background: rgba(255,198,43,.12); border-color: var(--flow-500); box-shadow: 0 0 45px rgba(245,168,0,.16); }
.success-rings svg { position: absolute; inset: 49px; width: 42px; height: 42px; fill: none; stroke: var(--flow-300); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.success-card .eyebrow { color: var(--flow-300); }
.success-card h1 { color: var(--white); font-size: clamp(42px, 7vw, 65px); }
.success-card > p:not(.eyebrow) { max-width: 500px; margin: 18px auto; color: var(--ink-300); }
.success-next { margin: 27px 0; padding: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; }
.success-next span, .success-next strong { display: block; }
.success-next span { color: var(--ink-500); font-size: 9px; text-transform: uppercase; }
.success-next strong { margin-top: 5px; color: var(--ink-100); font-size: 12px; letter-spacing: .5px; }
.error-page { max-width: 650px; margin: 80px auto; padding: 40px; text-align: center; }
.error-code { color: var(--ink-200); font-size: 90px; font-weight: 900; letter-spacing: -7px; line-height: 1; }
.error-page > p:not(.eyebrow) { margin: 14px auto 22px; color: var(--ink-600); }
.public-error { color: var(--ink-100); }
.public-error h1 { color: var(--white); }
.public-error > p:not(.eyebrow) { color: var(--ink-300); }

.onboarding-card { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 30px; margin-bottom: 18px; padding: 20px 23px; color: var(--ink-100); background: linear-gradient(125deg, var(--ink-950), #0b303a); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.onboarding-card h2 { margin: 0; color: var(--white); font-size: 18px; }
.onboarding-card .eyebrow { color: var(--flow-300); }
.onboarding-card ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.onboarding-card li { color: var(--ink-200); font-size: 10px; font-weight: 690; }
.onboarding-card li span { display: grid; width: 24px; height: 24px; margin-bottom: 7px; place-items: center; color: var(--ink-950); background: var(--flow-400); border-radius: 8px; font-size: 10px; font-weight: 850; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-pill { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 820; }
.account-active { color: #08715b; background: var(--flow-100); }
.account-trial { color: #8b5c00; background: var(--amber-100); }
.account-paused { color: #a6243a; background: var(--red-100); }
.password-card { margin: 35px auto; }
.password-card h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.password-card > p:not(.eyebrow) { margin: 10px 0 24px; color: var(--ink-600); }
.admin-topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 0 max(25px, calc((100vw - 1320px) / 2)); color: var(--white); background: var(--ink-950); }
.admin-topbar > div { display: flex; align-items: center; gap: 18px; color: var(--ink-300); font-size: 11px; }
.admin-topbar form { margin: 0; }
.admin-topbar button { padding: 7px 10px; color: var(--ink-100); background: transparent; border: 1px solid var(--ink-700); border-radius: 8px; cursor: pointer; }
.admin-main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 80px; }
.admin-grid { display: grid; grid-template-columns: minmax(380px, .85fr) minmax(500px, 1.15fr); align-items: start; gap: 22px; }
.admin-create-card { width: 100%; }
.admin-client-list { padding: 24px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.admin-client-card { padding: 18px 0; border-top: 1px solid var(--ink-100); }
.admin-client-card:first-of-type { border-top: 0; }
.admin-client-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.admin-client-heading strong, .admin-client-heading div > span { display: block; }
.admin-client-heading strong { color: var(--ink-950); font-size: 15px; }
.admin-client-heading div > span { margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.admin-client-card > p { margin: 10px 0; color: var(--ink-600); font-size: 11px; }
.admin-client-actions, .admin-client-actions form { display: flex; align-items: center; gap: 8px; }
.admin-client-actions { justify-content: space-between; }
.admin-client-actions select { height: 38px; padding: 6px 9px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 8px; }
.admin-client-actions .button { min-height: 38px; padding: 8px 11px; font-size: 11px; }
.credential-card { margin-bottom: 22px; padding: 23px; color: var(--white); background: linear-gradient(125deg, var(--ink-950), #0b303a); border: 1px solid rgba(255,198,43,.22); border-radius: var(--radius-lg); }
.credential-card h2 { margin: 0; }
.credential-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.credential-card dl div { padding: 12px; background: rgba(255,255,255,.06); border-radius: 10px; }
.credential-card dt { color: var(--ink-300); font-size: 9px; text-transform: uppercase; }
.credential-card dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.credential-card code { color: var(--flow-300); }
.credential-card > p:last-child { margin: 0; color: var(--ink-300); font-size: 10px; }

@media (max-width: 1399px) {
  .floating-section-nav { display: none; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .quote-table, .quote-table tbody, .quote-table tr, .quote-table td { display: block; width: 100%; min-width: 0; }
  .quote-table thead { display: none; }
  .quote-table tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .quote-table tr { padding: 15px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 14px; box-shadow: var(--shadow-sm); }
  .quote-table tr.is-overdue { background: #fffafb; border-color: #f3c1ca; box-shadow: inset 3px 0 var(--red-500); }
  .quote-table tr.is-due-today { background: #fffcf5; border-color: #f7daa0; box-shadow: inset 3px 0 var(--amber-500); }
  .quote-table tr.is-overdue td:first-child, .quote-table tr.is-due-today td:first-child { box-shadow: none; }
  .quote-table td { display: flex; max-width: none; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 7px 0; border: 0; text-align: right; }
  .quote-table td::before { flex: 0 0 76px; color: var(--ink-500); content: attr(data-label); font-size: 8px; font-weight: 850; letter-spacing: .5px; text-align: left; text-transform: uppercase; }
  .quote-table td:first-child { padding-bottom: 11px; border-bottom: 1px solid var(--ink-100); }
  .quote-customer, .quote-call-link { margin-left: auto; }
  .quote-note { max-width: 240px; text-align: right; -webkit-line-clamp: 2; }
  .quote-actions { min-width: 0; justify-content: flex-end; }
}

@media (max-width: 1180px) {
  .admin-grid { grid-template-columns: 1fr; }
  .onboarding-card { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr); gap: 35px; }
  .preview-float-left { left: -20px; }
  .preview-float-right { right: -18px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-split { grid-template-columns: 1fr; }
  .pipeline-list { grid-template-columns: 1fr 1fr; column-gap: 26px; }
  .filter-bar { grid-template-columns: minmax(180px, 1fr) 140px 165px auto; }
  .clear-filter { grid-column: 1 / -1; justify-self: start; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .operation-row { grid-template-columns: 130px minmax(190px, 1fr) 110px 100px; }
}
@media (max-width: 900px) {
  .quote-table tbody { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: 1fr; padding: 65px 0 105px; }
  .landing-hero-copy { max-width: 720px; text-align: center; margin: 0 auto; }
  .landing-kicker, .landing-actions { justify-content: center; }
  .landing-hero h1, .landing-lead, .hero-positioning { margin-right: auto; margin-left: auto; }
  .hero-bullets { margin-right: auto; margin-left: auto; text-align: left; }
  .product-preview { width: min(680px, 95%); margin: 25px auto 0; transform: none; }
  .preview-float { transform: none; }
  .feature-section { grid-template-columns: 1fr; }
  .pipeline-showcase { width: min(610px, 100%); }
  .pricing-card { grid-template-columns: 1fr; }
  .pain-grid, .sales-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-card:last-child { grid-column: auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card::after { display: none; }
  .followup-problem-section, .comparison-section { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-footer { grid-template-columns: 1fr auto; }
  .landing-footer > span { display: none; }
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .nav-scrim { position: fixed; z-index: 30; inset: 0; display: block; visibility: hidden; background: rgba(3,17,22,.55); opacity: 0; transition: .22s ease; }
  .nav-scrim.is-visible { visibility: visible; opacity: 1; }
  .app-canvas { margin-left: 0; }
  .mobile-header { position: sticky; z-index: 25; top: 0; display: flex; height: 70px; align-items: center; justify-content: space-between; padding: 0 22px; color: var(--ink-900); background: rgba(245,248,248,.92); border-bottom: 1px solid rgba(174,193,197,.55); backdrop-filter: blur(15px); }
  .mobile-header .brand-mark { width: 33px; height: 33px; }
  .mobile-header .brand-word { font-size: 17px; }
  .icon-button { display: grid; width: 42px; height: 42px; place-items: center; color: var(--ink-900); background: var(--white); border: 1px solid var(--ink-200); border-radius: 11px; }
  .icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
  .main-content { padding-top: 30px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { grid-template-columns: 1fr 1fr; }
  .enquiry-layout { grid-template-columns: 1fr; padding-top: 25px; }
  .enquiry-story { max-width: 680px; }
  .enquiry-story h1 { font-size: clamp(46px, 9vw, 72px); }
  .operations-stat-grid { grid-template-columns: 1fr 1fr; }
  .operation-row { grid-template-columns: 125px minmax(180px, 1fr) 110px; }
  .operation-balance { grid-column: 3; }
  .operation-row .booking-pill, .operation-row .payment-pill { grid-column: 3; grid-row: 1; }
  .payment-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .onboarding-card { padding: 18px; }
  .onboarding-card ol { grid-template-columns: 1fr; }
  .onboarding-card li { display: flex; align-items: center; gap: 9px; }
  .onboarding-card li span { margin: 0; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-topbar { padding: 0 15px; }
  .admin-topbar > div > span { display: none; }
  .admin-main { width: calc(100% - 30px); padding-top: 28px; }
  .admin-client-list { padding: 18px; }
  .admin-client-actions { align-items: stretch; flex-direction: column; }
  .admin-client-actions form { width: 100%; }
  .admin-client-actions form .button { flex: 1; }
  .credential-card dl { grid-template-columns: 1fr; }
  .landing-header-inner { width: min(100% - 30px, 1220px); min-height: 72px; }
  .landing-header .brand-mark { width: 34px; height: 34px; }
  .landing-header .brand-word { font-size: 18px; }
  .landing-nav { display: none; }
  .landing-menu-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 4px; padding: 0; color: var(--white); background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13); border-radius: 11px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
  .landing-menu-toggle:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 198, 43, .25); }
  .landing-menu-toggle:active { transform: scale(.96); }
  .landing-menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
  .landing-menu-toggle.is-open span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .landing-menu-toggle.is-open span:nth-child(3) { opacity: 0; }
  .landing-menu-toggle.is-open span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .landing-mobile-nav { position: absolute; top: calc(100% + 9px); right: 0; left: 0; display: grid; gap: 5px; padding: 13px; background: rgba(6, 24, 31, .98); border: 1px solid rgba(255, 255, 255, .11); border-radius: 16px; box-shadow: 0 22px 55px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease; visibility: hidden; }
  .landing-mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
  .landing-mobile-nav > a:not(.button) { padding: 12px 13px; color: var(--ink-200); border-radius: 9px; font-size: 13px; font-weight: 760; text-decoration: none; }
  .landing-mobile-nav > a:not(.button):hover, .landing-mobile-nav > a:not(.button).is-active { color: var(--white); background: rgba(255, 198, 43, .09); }
  .landing-mobile-nav .button { width: 100%; margin-top: 4px; }
  .landing-hero { width: min(100% - 30px, 1220px); min-height: auto; padding: 58px 0 82px; }
  .landing-hero h1 { font-size: clamp(40px, 11.8vw, 54px); letter-spacing: -2.2px; }
  .landing-lead { font-size: 15px; }
  .hero-positioning { margin-left: 0; padding-left: 0; border-left: 0; font-size: 12px; }
  .hero-bullets { grid-template-columns: 1fr; }
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-actions .button { width: 100%; }
  .product-preview { width: 100%; margin-top: 10px; }
  .preview-body { min-height: 320px; grid-template-columns: 40px 1fr; }
  .preview-content { padding: 17px 13px; }
  .preview-heading strong { font-size: 14px; }
  .preview-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); }
  .preview-stage { flex: auto; }
  .preview-float { display: none; }
  .landing-strip { flex-direction: column; gap: 12px; padding: 27px 20px; }
  .landing-strip span { display: none; }
  .landing-section { width: min(100% - 30px, 1120px); padding: 85px 0; }
  .landing-section-heading { margin-bottom: 35px; text-align: left; }
  .landing-section-heading > p:last-child { margin-left: 0; }
  .pain-grid, .sales-feature-grid, .process-grid, .trade-grid { grid-template-columns: 1fr; }
  .pain-card, .sales-feature-card, .process-card { min-height: auto; }
  .pain-card { padding: 21px; }
  .section-support { text-align: left; }
  .sales-feature-card h3, .process-card h3 { margin-top: 28px; }
  .followup-problem-section, .comparison-section { gap: 35px; }
  .strong-check-list { padding: 23px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 245px; }
  .step-card-featured { transform: none; }
  .step-icon { margin-bottom: 32px; }
  .feature-section { gap: 50px; padding-top: 20px; }
  .pipeline-showcase { padding: 20px 18px; }
  .pricing-section { padding-top: 30px; }
  .pricing-card { border-radius: 21px; }
  .pricing-summary .button { width: 100%; }
  .landing-cta { width: min(100% - 30px, 1120px); align-items: stretch; flex-direction: column; gap: 28px; margin-bottom: 75px; }
  .landing-cta .button { width: 100%; }
  .final-cta-actions { justify-items: stretch; }
  .landing-footer { width: min(100% - 30px, 1220px); min-height: 120px; grid-template-columns: 1fr; align-content: center; justify-items: start; gap: 9px; }
  .footer-brand p { margin-left: 0; }
  .landing-footer nav { flex-wrap: wrap; gap: 12px 20px; }
  .main-content { padding: 24px 15px 50px; }
  .app-footer { padding: 18px 16px; }
  .page-heading, .detail-hero { align-items: stretch; flex-direction: column; }
  .page-heading .button, .detail-hero > .button { align-self: flex-start; }
  .page-heading h1 { font-size: 34px; letter-spacing: -1.3px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 88px; padding: 14px; }
  .dashboard-split { gap: 13px; }
  .focus-panel, .pipeline-panel, .lead-section, .detail-card { padding: 18px; border-radius: 18px; }
  .focus-lead { min-height: 195px; padding: 21px; }
  .focus-orbit { right: -65px; opacity: .65; }
  .pipeline-list { grid-template-columns: 1fr; }
  .quote-command-centre { padding: 18px; border-radius: 18px; }
  .quote-command-heading { grid-template-columns: 1fr; align-items: stretch; gap: 15px; }
  .quote-command-heading h2 { font-size: 27px; }
  .quote-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .quote-table, .quote-table tbody, .quote-table tr, .quote-table td { display: block; width: 100%; min-width: 0; }
  .quote-table thead { display: none; }
  .quote-table tbody { display: grid; gap: 12px; }
  .quote-table tr { padding: 15px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 14px; box-shadow: var(--shadow-sm); }
  .quote-table tr.is-overdue { background: #fffafb; border-color: #f3c1ca; box-shadow: inset 3px 0 var(--red-500); }
  .quote-table tr.is-due-today { background: #fffcf5; border-color: #f7daa0; box-shadow: inset 3px 0 var(--amber-500); }
  .quote-table tr.is-overdue td:first-child, .quote-table tr.is-due-today td:first-child { box-shadow: none; }
  .quote-table td { display: grid; max-width: none; grid-template-columns: 91px minmax(0, 1fr); gap: 10px; padding: 8px 0; border: 0; text-align: right; }
  .quote-table td::before { color: var(--ink-500); content: attr(data-label); font-size: 8px; font-weight: 850; letter-spacing: .5px; text-align: left; text-transform: uppercase; }
  .quote-table td:first-child { padding-bottom: 12px; border-bottom: 1px solid var(--ink-100); }
  .quote-customer, .quote-call-link { justify-self: end; }
  .quote-note { text-align: right; -webkit-line-clamp: 2; }
  .quote-actions { min-width: 0; justify-content: flex-end; }
  .quote-action { min-height: 34px; font-size: 9px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .button-filter, .clear-filter { grid-column: 1 / -1; }
  .lead-table, .lead-table tbody, .lead-table tr, .lead-table td { display: block; width: 100%; }
  .lead-table thead { display: none; }
  .lead-table tbody { display: grid; gap: 11px; }
  .lead-table tr { position: relative; padding: 15px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 14px; box-shadow: var(--shadow-sm); }
  .lead-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border: 0; }
  .lead-table td::before { color: var(--ink-500); content: attr(data-label); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
  .lead-table td:first-child { padding-bottom: 12px; border-bottom: 1px solid var(--ink-100); box-shadow: none !important; }
  .lead-table td:first-child::before, .lead-table td:last-child::before { display: none; }
  .lead-table td:last-child { position: absolute; top: 17px; right: 14px; width: auto; padding: 0; }
  .lead-identity { width: calc(100% - 42px); min-width: 0; }
  .lead-identity span:last-child { min-width: 0; }
  .lead-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lead-location { max-width: 215px; }
  .lead-map-link { align-self: flex-end; margin: 8px 0 0 auto; }
  .service-name, .source-label { text-align: right; }
  .action-banner { grid-template-columns: 42px 1fr; padding: 20px; }
  .action-signal { width: 42px; height: 42px; }
  .contact-actions { grid-column: 1 / -1; }
  .contact-actions .button { flex: 1; }
  .delete-actions { align-items: stretch; flex-direction: column-reverse; }
  .delete-actions .button, .delete-actions form { width: 100%; }
  .stage-switcher { grid-template-columns: 1fr 1fr; }
  .detail-side { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field-wide { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .map-preview { aspect-ratio: 4 / 3; min-height: 205px; }
  .map-open-button { width: 100%; }
  .operations-panel { padding: 18px; border-radius: 18px; }
  .operation-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .operation-person { grid-column: 1 / -1; }
  .operation-row .booking-pill, .operation-row .payment-pill { grid-column: 2; grid-row: 2; }
  .operation-balance { grid-column: 2; text-align: right; }
  .operations-form-grid, .payment-form-grid { grid-template-columns: 1fr; }
  .operations-form-grid .field-wide, .payment-form-grid .field-wide { grid-column: auto; }
  .payment-summary-grid { grid-template-columns: 1fr 1fr; }
  .public-header { width: calc(100% - 30px); height: 72px; }
  .public-badge { display: none; }
  .enquiry-layout { width: calc(100% - 24px); padding: 25px 0 45px; gap: 38px; }
  .enquiry-story { padding: 0 7px; }
  .enquiry-story h1 { font-size: 47px; letter-spacing: -2.2px; }
  .enquiry-card { padding: 23px 18px; border-radius: 21px; }
  .public-footer { align-items: start; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .search-field, .button-filter, .clear-filter { grid-column: auto; }
  .detail-title-row { align-items: start; }
  .detail-avatar { width: 52px; height: 52px; border-radius: 16px; }
  .detail-hero h1 { font-size: 30px; }
  .stage-switcher { grid-template-columns: 1fr; }
  .delete-summary { grid-template-columns: 1fr; }
  .delete-summary div { border-top: 1px solid var(--ink-100); border-left: 0; }
  .delete-summary div:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
