/* Installer workbench: warm paper, Jinko green, Figtree / Fraunces. */

:root {
  /* Eight-grain morning: warm paper, ripe leaf, round 8-count rhythm. */
  --font-sans: "Figtree", "Segoe UI", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", Georgia, serif;
  /* One in-app scale (iOS body 17 + Material label/title). Fraunces only on login Hey. */
  --text-caption: 0.75rem;
  --text-label: 0.8125rem;
  --text-body-sm: 0.9375rem;
  --text-body: 1rem;
  --text-title: 1.0625rem;
  --text-title-lg: 1.25rem;
  --leading-tight: 1.25;
  --leading-body: 1.45;

  --paper-bg: #F4EFE6;
  --paper-card: #FFFCF7;
  --paper-card-subtle: #EFE8DC;
  --paper-card-sunken: #E8E0D4;

  --ink-primary: #1A1612;
  --ink-secondary: #4A433C;
  --ink-muted: #6F6458;
  --ink-faint: #9A9086;

  --brand: var(--emerald-500);
  --brand-from: #1A8F45;
  --brand-to: #0A5C29;

  --emerald-600: #007A36;
  --emerald-500: #009A44;
  --emerald-700: #0A5C29;
  --emerald-900: #1A1612;
  --emerald-glow: rgba(0, 122, 54, 0.14);
  --emerald-tint: rgba(0, 154, 68, 0.12);

  --cyan-600: #0A5C29;
  --cyan-500: #1A8F45;
  --cyan-glow: rgba(0, 122, 54, 0.12);

  --amber-400: #1A8F45;
  --amber-500: #007A36;
  --amber-600: #0A5C29;
  --amber-tint: rgba(0, 154, 68, 0.12);

  --red-500: #B42318;
  --red-tint: rgba(180, 35, 24, 0.10);

  --line-subtle: rgba(26, 22, 18, 0.08);
  --line-medium: rgba(26, 22, 18, 0.10);
  --line-focus: #009A44;

  --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.05);
  --shadow-card: 0 14px 32px rgba(26, 22, 18, 0.07);
  --shadow-modal: 0 -16px 48px rgba(26, 22, 18, 0.16);
  --shadow-dropdown: 0 14px 32px rgba(26, 22, 18, 0.10);
  --shadow-dock: 0 10px 28px rgba(26, 22, 18, 0.12);
  --shadow-float: 0 18px 40px rgba(26, 22, 18, 0.12);

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --touch-min: 48px;
}

html[data-accent="rose"] {
  --brand-from: #FB7185;
  --brand-to: #BE123C;
  --emerald-600: #BE123C;
  --emerald-500: #F43F5E;
  --emerald-700: #9F1239;
  --emerald-glow: rgba(244, 63, 94, 0.16);
  --emerald-tint: rgba(244, 63, 94, 0.10);
  --cyan-600: #BE123C;
  --cyan-500: #F43F5E;
  --cyan-glow: rgba(244, 63, 94, 0.14);
  --amber-400: #F43F5E;
  --amber-500: #E11D48;
  --amber-600: #9F1239;
  --amber-tint: rgba(244, 63, 94, 0.10);
  --line-focus: #F43F5E;
}

html[data-accent="ink"] {
  --brand-from: #1F2937;
  --brand-to: #111827;
  --emerald-600: #111827;
  --emerald-500: #1F2937;
  --emerald-700: #030712;
  --emerald-glow: rgba(17, 24, 39, 0.12);
  --emerald-tint: rgba(17, 24, 39, 0.08);
  --cyan-600: #111827;
  --cyan-500: #1F2937;
  --cyan-glow: rgba(17, 24, 39, 0.10);
  --amber-400: #111827;
  --amber-500: #030712;
  --amber-600: #030712;
  --amber-tint: rgba(17, 24, 39, 0.08);
  --line-focus: #111827;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 17px;
  height: 100%;
  background-color: var(--paper-bg);
  color: var(--ink-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

body.installer-body {
  font-family: var(--font-sans);
  min-height: 100%;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  color: var(--ink-primary);
  line-height: 1.55;
  background-color: var(--paper-bg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overscroll-behavior: none;
}
body.installer-body:has(#view-workbench:not([hidden])) {
  background-color: var(--paper-bg);
}

.mesh-backdrop,
.glow-orb {
  display: none !important;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-emerald {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 122, 54, 0.22) 0%, rgba(0, 122, 54, 0) 70%);
}

.orb-cyan {
  width: 320px;
  height: 320px;
  bottom: 10%;
  left: -80px;
  background: radial-gradient(circle, rgba(16, 35, 63, 0.0) 0%, rgba(16, 35, 63, 0) 70%);
  animation-delay: -6s;
  display: none;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.08); }
  100% { transform: translateY(-20px) scale(0.95); }
}

/* Header Bar */
.installer-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(244, 239, 230, 0.86);
  border-bottom: 0;
}
body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
  background-color: rgba(255, 251, 248, 0.94);
  border-bottom: 1px solid var(--line-subtle);
}

.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

/* Logged-in workbench: drop the tall logo banner. Auth/register keep the mark.
   Page titles live in .page-brand; language/logout live in Profile. */
body.installer-body:has(#view-workbench:not([hidden])) .brand-logo,
body.installer-body:has(#view-workbench:not([hidden])) .brand-text,
body.installer-body:has(#view-workbench:not([hidden])) .brand {
  display: none;
}

body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
  display: none;
}

body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner {
  max-width: none;
  padding: 0;
  min-height: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-headline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
body.installer-body:has(#view-workbench:not([hidden])) .brand-name {
  color: var(--ink-primary);
}

.brand-region-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background-color: var(--amber-tint);
  color: var(--amber-600);
  border: 1px solid rgba(0, 122, 54, 0.28);
}
body.installer-body:has(#view-workbench:not([hidden])) .brand-region-tag {
  background-color: var(--amber-tint);
  color: var(--amber-600);
  border-color: rgba(0, 122, 54, 0.28);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
body.installer-body:has(#view-workbench:not([hidden])) .brand-sub {
  color: var(--ink-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Dropdown at Top-Right */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #FFFFFF;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}
body.installer-body:has(#view-workbench:not([hidden])) .lang-dropdown-btn {
  background-color: #FFFFFF;
  border: 1px solid var(--line-subtle);
  color: var(--ink-primary);
}

.lang-dropdown-btn:hover {
  background-color: #ffffff;
  border-color: var(--amber-500);
}

.current-lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.current-lang-name {
  font-size: 0.75rem;
}

.dropdown-caret {
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

.lang-dropdown-wrapper.open .dropdown-caret {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background-color: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  animation: dropdownFade 0.15s ease-out;
}

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

.lang-dropdown-wrapper.open .lang-dropdown-menu {
  display: flex;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.12s ease;
}

.lang-option-btn:hover {
  background-color: var(--paper-card-subtle);
  color: var(--amber-500);
}

.lang-option-btn.active {
  background-color: rgba(0, 122, 54, 0.12);
  color: var(--amber-500);
}

.flag-icon {
  font-size: 1rem;
  line-height: 1;
}

.lang-label {
  flex: 1;
}

/* Main Container */
.installer-main {
  position: relative;
  z-index: auto;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}

/* Register sheet is inside .installer-main. A z-index on .installer-main trapped
   position:fixed overlays under the sticky topbar, so the sheet title
   sat under the brand bar and felt unscrollable. */
body.installer-body:has(.modal-overlay:not([hidden])) .installer-topbar {
  z-index: 0;
}

.view-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Auth Card & Tabs (Symmetrical Layout) */
.auth-card {
  background: var(--paper-card);
  border: 0;
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--paper-card-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-subtle);
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-tab.active {
  background-color: #ffffff;
  color: var(--amber-500);
  box-shadow: 0 2px 6px rgba(16, 35, 63, 0.08);
}

.auth-starter-form, .auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-aux-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-aux-link {
  background: none;
  border: none;
  color: var(--amber-500);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  min-height: var(--touch-min);
}

.reset-lede {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.reset-code-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.reset-code-field {
  flex: 1;
  min-width: 0;
}

.reset-otp-btn {
  flex: 0 0 auto;
  min-width: 7.5rem;
  margin-bottom: 2px;
}

.reset-back-link {
  align-self: center;
}

.auth-app-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line-subtle);
}

.auth-card:has(#reset-form:not([hidden])) .auth-app-links {
  display: none;
}

.pwa-install,
.auth-survey-entry { width: 100%; }
#pwa-install[hidden],
.auth-survey-entry[hidden] { display: none !important; }
#view-auth:has(#tab-login.active) #auth-survey-entry,
#view-auth:has(#tab-register.active) #pwa-install { display: none !important; }
.pwa-install-btn { width: 100%; }
.pwa-notify-btn { width: calc(100% - 32px); margin: 8px 16px; }
.pwa-notify-btn[hidden] { display: none !important; }
@media (display-mode: standalone) {
  .pwa-install { display: none !important; }
}
.pwa-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 20, 0.46);
}
.pwa-install-overlay[hidden] { display: none !important; }
.pwa-install-overlay.is-open { display: flex !important; }
.pwa-install-card {
  position: relative;
  width: min(100%, 420px);
  margin-bottom: 12px;
  padding: 20px 18px 16px;
  border-radius: 18px;
  background: #fff;
  color: #14301f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.pwa-install-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.pwa-install-card.is-compact h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.pwa-install-card p { margin: 0 0 14px; line-height: 1.45; }
.pwa-install-card [hidden] {
  display: none !important;
}
.pwa-install-again {
  width: 100%;
  margin: 0 0 12px;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
}
.pwa-install-steps {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0 0 16px;
  padding: 0;
}
.pwa-install-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 92px;
  color: #007A36;
  font-weight: 700;
  text-align: center;
}
.pwa-install-steps svg { width: 36px; height: 36px; }
.pwa-install-close { width: 100%; }

.trigger-modal-field {
  cursor: pointer;
}

.trigger-modal-field input {
  cursor: pointer;
}

/* Concise Survey Channel Tile */
.concise-survey-channel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.survey-channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.channel-icon {
  color: var(--amber-500);
  flex-shrink: 0;
}

.channel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.channel-btn {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 38px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

/* Auth sheet: keep Hey. fully below the sticky topbar and let the page
   grow/scroll. A fixed-height centered flex overflowed upward under the
   header; translateY on the card did not expand layout, so phones could
   not swipe the greeting into view. */
html:has(#view-auth:not([hidden])),
html:has(#view-auth:not([hidden])) body.installer-body {
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.installer-body:has(#view-auth:not([hidden])) .installer-main {
  min-height: calc(100dvh - 88px);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  padding-top: 8px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

body.installer-body:has(#view-auth:not([hidden])) #view-auth {
  width: 100%;
}

@media (max-width: 600px) {
  body.installer-body:has(#view-auth:not([hidden])) .auth-card {
    transform: none;
    gap: 14px;
    padding: 18px 16px;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-starter-form,
  body.installer-body:has(#view-auth:not([hidden])) .auth-form {
    gap: 12px;
  }

  body.installer-body:has(#view-auth:not([hidden])) .concise-survey-channel {
    margin-top: 0;
    padding: 12px 14px;
  }
}

/* ========================================================================== 
   90% SCREEN FULL REGISTRATION MODAL
   ========================================================================== */
html, body.installer-body {
  touch-action: manipulation;
  overscroll-behavior: none;
}
input, textarea, select, .modal-body, .auth-card, .field-group, .consent-card, .modal-overlay, .modal-sheet-90 {
  touch-action: pan-x pan-y;
}
.consent-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-500);
  text-decoration: underline;
}
.consent-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.account-notice {
  position: fixed;
  inset: 0;
  z-index: 4600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  padding: 16px;
}
.account-notice[hidden] {
  display: none !important;
}
.account-notice-card {
  width: min(100%, 32rem);
  max-height: min(88vh, 40rem);
  overflow: auto;
  background: #fff;
  color: #0f172a;
  border-radius: 16px 16px 0 0;
  padding: 20px 18px 28px;
}
.account-notice-card h2 {
  margin: 12px 0;
  font-size: 1.15rem;
}
.account-notice-card p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInModal 0.25s ease-out;
  touch-action: pan-x pan-y;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet-90 {
  width: 100%;
  max-width: 520px;
  height: 90vh;
  height: 90dvh;
  max-height: 90vh;
  max-height: 90dvh;
  background: var(--paper-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
}

.modal-header-text {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.modal-sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--paper-card-subtle);
  border: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background-color: var(--paper-card-sunken);
  color: var(--ink-primary);
}

.modal-body {
  padding: 18px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-submit-dock {
  margin-top: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.account-notice-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -20px -18px 8px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line-subtle);
}
.account-notice-bar h2 {
  margin: 0;
}

#register-form.form-unified-stack { gap: 14px; }
#register-form .form-card-panel {
  border: 0;
  background: transparent;
  padding: 0;
  gap: 10px;
  box-shadow: none;
}
#register-form .panel-header { padding-bottom: 6px; }
#register-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 12px;
}
#register-form .name-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 12px;
}
#register-form .field-group.full-width,
#register-form .js-coverage-provinces { grid-column: 1 / -1; }
#register-form .field-group { gap: 4px; }
#register-form .field-label {
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 650;
}
#register-form .field-group:has(select.reg-picklist) .coverage-hint:not(.reg-keep-hint),
#register-form .js-coverage-provinces > .coverage-hint:not(.reg-keep-hint) { display: none; }
#register-form .coverage-hint.reg-keep-hint,
#register-form .field-hint {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-muted);
}
#register-form .coverage-hint.reg-keep-hint.is-warn { color: #b45309; font-weight: 700; }
/* Icons + control chrome: 29-register-demo-chrome.css (email/lock only). */
#register-form .select-wrapper select:not(.reg-native-hidden) {
  padding-right: 36px !important;
}
#register-form .input-wrapper:has(.btn-toggle-pwd) input {
  height: 48px !important;
  min-height: 48px !important;
  padding: 8px 44px 8px 12px !important;
}
#register-form input.js-intl-phone,
#register-form .iti input[name="phone"] {
  height: 44px !important;
  min-height: 44px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-right: 12px !important;
}
#register-form textarea {
  min-height: 64px !important;
  height: auto !important;
  padding: 8px 12px !important;
}
#register-form .reg-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
#register-form .select-wrapper:has(select.reg-picklist) .select-arrow { display: none; }
#register-form .reg-combo { position: relative; }
#register-form .reg-combo-btn {
  position: relative;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 8px 32px 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--line-medium);
  background: #fff;
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  white-space: normal;
  cursor: pointer;
}
#register-form .reg-combo-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 122, 54, 0.1);
  color: var(--ink-primary);
  font-size: 0.8125rem;
  line-height: 1.35;
}
#register-form .reg-combo-btn.is-empty { color: var(--ink-faint); }
#register-form .reg-combo-btn::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
#register-form .reg-combo-panel,
.reg-combo-panel {
  position: fixed;
  z-index: 6000;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line-medium);
  background: #fff;
  box-shadow: 0 16px 40px rgba(26, 22, 18, 0.16);
}
#register-form .reg-combo-panel[hidden],
.reg-combo-panel[hidden] { display: none !important; }
#register-form .reg-combo-panel.is-fixed,
.reg-combo-panel.is-fixed {
  position: fixed !important;
  right: auto !important;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  border-radius: 16px !important;
  overflow: hidden;
  padding: 0;
  background: #fff;
  box-shadow: 0 16px 40px rgba(26, 22, 18, 0.16);
}
.reg-combo-scroll {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px;
}
.reg-combo-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--ink-primary);
  background: #fff;
  cursor: pointer;
}
#register-form .reg-combo-opt:hover,
.reg-combo-opt:hover { background: rgba(0, 122, 54, 0.08); }
#register-form .reg-combo-opt input,
.reg-combo-opt input { width: 16px; height: 16px; margin: 0; }
.reg-combo-done {
  position: static;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line-medium);
  border-radius: 0 0 16px 16px;
  background: #007a36;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
#reg-province-panel .js-province-filter {
  flex: 0 0 auto;
  margin: 6px 6px 0;
}
#reg-province-panel .province-mosaic {
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#reg-province-panel .chip-inner { min-height: 34px; }
#register-form .consent-stack { gap: 8px; }
#register-form .consent-card { padding: 8px 10px; }
#register-form .consent-title { font-size: 0.75rem; line-height: 1.35; }
#register-form .modal-submit-dock {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: 8px;
  padding-top: 8px;
  background: linear-gradient(to bottom, rgba(255,252,247,0), var(--paper-card) 10px);
}
#register-form .gate-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(26, 22, 18, 0.08);
  overflow: hidden;
}
#register-form #register-gate-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #009a44;
}
#register-form .field-gate.is-empty,
#register-form .field-gate.is-ready,
#register-form .field-group.field-gate {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}
#register-form .field-gate.is-empty input:not([type="checkbox"]):not([type="radio"]):not(.reg-native-hidden),
#register-form .field-gate.is-empty select:not(.reg-native-hidden),
#register-form .field-gate.is-empty textarea,
#register-form .field-gate.is-empty .reg-combo-btn,
#register-form .consent-card.field-gate.is-empty .consent-box {
  border-color: #b91c1c !important;
}
#register-form button.consent-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
@media (max-width: 560px) {
  #register-form .form-grid,
  #register-form .name-grid { grid-template-columns: 1fr; }
}
@media (min-width: 760px) {
  .modal-sheet-90 { max-width: 720px; }
  #register-form .form-grid { grid-template-columns: 1fr 1fr; }
  #register-form .name-grid { grid-template-columns: 1.15fr 0.9fr 1.15fr; }
}
#register-form[hidden] { display: none !important; }
#register-verify {
  display: grid;
  gap: 12px;
}
#register-verify[hidden] { display: none !important; }
#register-verify h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}
#register-verify .register-verify-email {
  margin: 0;
  font-weight: 700;
  word-break: break-all;
}
#register-form .reg-step:not(.is-on) { display: none; }
#register-form .reg-step.step-fwd { animation: reg-step-fwd 220ms ease; }
#register-form .reg-step.step-back { animation: reg-step-back 220ms ease; }
@keyframes reg-step-fwd {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes reg-step-back {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}
#register-form .reg-wizard-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
#register-form #register-step-back {
  flex: 0 0 38%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #e6dfd4;
  background: #fff;
  color: #1c1915;
  font-weight: 700;
}
#register-form #register-step-next,
#register-form #register-submit { flex: 1 1 auto; }
#register-form #register-step-next[hidden],
#register-form #register-submit[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  #register-form .reg-step.step-fwd,
  #register-form .reg-step.step-back { animation: none; }
}
/* ==========================================================================
   FORM UNIFIED STACK & PANEL SECTIONS (TIER-1 TECH FORM SYSTEM)
   ========================================================================== */
.form-unified-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card-panel {
  background: var(--paper-card);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-subtle);
}

.panel-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #009a44;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-primary);
}

/* Uniform Form Grid */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.req {
  color: var(--red-500);
  text-decoration: none;
  font-weight: 800;
  margin-left: 2px;
}

/* UNIVERSAL ROBUST INPUT STYLING (MATCHES 100% OF TEXT/TEL/EMAIL/PASSWORD INPUTS) */
.input-wrapper,
.select-wrapper,
.textarea-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.input-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  color: var(--ink-faint) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  transition: color 0.2s ease !important;
}

.input-wrapper input:not([hidden]),
.select-wrapper select,
.textarea-wrapper textarea,
input[type="text"]:not(.module-sn-input):not([hidden]),
input[type="email"]:not([hidden]),
input[type="password"]:not([hidden]),
input[type="tel"]:not(.iti__tel-input):not(.js-intl-phone):not([hidden]),
input[type="number"]:not(.yield-bare-input):not(.yield-ghost):not(.module-sn-input):not([hidden]),
input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="range"]):not(.iti__tel-input):not(.js-intl-phone):not(.coverage-filter):not(.yield-bare-input):not(.yield-ghost):not(.module-sn-input):not([hidden]) {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 12px 14px 12px 42px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--line-medium) !important;
  background-color: #ffffff !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  color: var(--ink-primary) !important;
  box-shadow: var(--shadow-sm) !important;
  box-sizing: border-box !important;
  display: block !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

input::placeholder,
select:invalid,
textarea::placeholder {
  color: var(--ink-faint) !important;
  opacity: 1 !important;
}

.input-wrapper input:focus,
.select-wrapper select:focus,
.textarea-wrapper textarea:focus,
input:not([type="range"]):focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--line-focus) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 54, 0.18) !important;
}

.input-wrapper:focus-within .input-icon {
  color: var(--amber-500) !important;
}

.iti {
  width: 100%;
  display: block;
}

.iti .iti__tel-input,
.iti input.js-intl-phone,
.iti input[name="phone"] {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-right: 14px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--line-medium) !important;
  background-color: #ffffff !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  color: var(--ink-primary) !important;
  box-shadow: var(--shadow-sm) !important;
  box-sizing: border-box !important;
}

.iti__country-container {
  z-index: 4;
}

.iti__selected-dial-code {
  color: var(--ink-primary);
  font-weight: 600;
  padding-right: 4px;
}

.iti__dropdown-content {
  z-index: 4000 !important;
}

.iti__search-input {
  padding-left: 12px !important;
  height: 40px !important;
  min-height: 40px !important;
}

.input-readonly {
  background-color: var(--paper-card-subtle) !important;
  color: var(--ink-muted) !important;
  border-color: var(--line-medium) !important;
  box-shadow: none !important;
  cursor: default !important;
}

textarea {
  padding: 12px 14px !important;
  resize: vertical !important;
  min-height: 72px !important;
  height: auto !important;
}

.btn-toggle-pwd {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: var(--radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--ink-muted) !important;
  cursor: pointer !important;
  z-index: 3 !important;
}

.btn-toggle-pwd:hover {
  background-color: var(--paper-card-subtle) !important;
  color: var(--ink-primary) !important;
}

/* Select Styling */
.select-wrapper select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 38px !important;
  cursor: pointer !important;
}

.select-arrow {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid var(--ink-muted) !important;
  border-bottom: 2px solid var(--ink-muted) !important;
  transform: translateY(-60%) rotate(45deg) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Segmented Control */
.fieldset-block {
  border: none;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fieldset-legend {
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background-color: var(--paper-card-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-subtle);
}

.seg-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg-pill {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-icon {
  width: 15px;
  height: 15px;
}

.seg-item input:checked + .seg-pill {
  background-color: #ffffff;
  color: var(--amber-500);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Mosaic Chips */
.choice-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 8px;
}

.mosaic-chip {
  position: relative;
  cursor: pointer;
}

.mosaic-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-inner {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-medium);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.chip-pip {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--ink-faint);
  background-color: transparent;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.mosaic-chip input:checked + .chip-inner {
  border-color: var(--amber-500);
  background-color: rgba(0, 122, 54, 0.12);
  color: var(--ink-primary);
  box-shadow: 0 2px 8px rgba(0, 122, 54, 0.22);
}

.mosaic-chip input:checked + .chip-inner .chip-pip {
  background-color: var(--amber-500);
  border-color: var(--amber-500);
}

.mosaic-chip.highlight-brand .chip-inner {
  border-color: rgba(0, 122, 54, 0.35);
  background-color: rgba(0, 122, 54, 0.06);
}

.mosaic-chip.disabled-option {
  opacity: 0.4;
  pointer-events: none;
}

.coverage-hint {
  margin: 0 0 8px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-faint);
}

.coverage-filter {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  margin-bottom: 8px;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line-medium) !important;
  background: #fff !important;
  font-size: 0.8125rem !important;
  box-sizing: border-box !important;
}

.province-mosaic {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.province-mosaic .chip-inner {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 0.7rem;
}

.coverage-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 4px;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.conditional-box {
  animation: slideDown 0.22s ease-out;
  margin: 6px 0;
}

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

/* Consents */
.consent-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.consent-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.consent-card input {
  position: absolute;
  opacity: 0;
  pointer-events: auto;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 2;
  cursor: pointer;
}

.consent-box {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-medium);
  background-color: var(--paper-card-subtle);
  transition: all 0.2s ease;
}

.custom-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--ink-faint);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.check-svg {
  width: 12px;
  height: 12px;
  color: #ffffff;
  opacity: 0;
  transition: all 0.2s ease;
}

.consent-card input:checked ~ .consent-box {
  border-color: var(--amber-500);
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 122, 54, 0.22);
}

.consent-card input:checked ~ .consent-box .custom-check-box {
  background-color: var(--amber-500);
  border-color: var(--amber-500);
}

.consent-card input:checked ~ .consent-box .check-svg {
  opacity: 1;
}

.consent-link { pointer-events: auto; position: relative; z-index: 3; }
.consent-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-primary);
}

/* Buttons */
button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.primary-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform 0.16s cubic-bezier(.2,.8,.2,1), background-color 0.16s ease;
}
.primary-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.primary-btn:hover:not(:disabled) {
  background: var(--amber-500);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 122, 54, 0.28);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-giant-btn {
  min-height: 48px;
  font-size: 0.9375rem;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secondary-btn {
  width: 100%;
  min-height: var(--touch-min);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background-color: var(--amber-tint);
  border: 0;
  color: var(--amber-600);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line-medium);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch-min);
}

.icon-btn {
  padding: 6px 12px;
  min-height: 34px;
}

/* Standalone Survey & Ticket Header */
.ticket-hero {
  background: #ffffff;
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.ticket-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ticket-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-500);
  background-color: rgba(0, 122, 54, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 122, 54, 0.18);
}

.ticket-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-desc {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.survey-tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.tracker-step {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.tracker-bar {
  height: 4px;
  background-color: var(--paper-card-sunken);
  border-radius: var(--radius-pill);
  transition: background-color 0.25s ease;
}

.tracker-step.current .tracker-bar {
  background: var(--amber-500);
}

.tracker-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracker-step.current .tracker-label {
  color: var(--amber-500);
  font-weight: 700;
}

.card-section {
  background: var(--paper-card);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.section-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-subtle);
}

.section-num {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 122, 54, 0.12);
  color: var(--amber-500);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 122, 54, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.section-hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.submit-action-zone {
  margin-top: 16px;
}

/* Upgrade Screen */
.upgrade-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.success-header {
  text-align: center;
  padding: 16px 8px;
}

.success-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 122, 54, 0.12);
  border: 2px solid var(--amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 6px rgba(0, 122, 54, 0.22);
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: rgba(0, 122, 54, 0.12);
  color: var(--amber-500);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.upgrade-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.upgrade-lede {
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.ticket-card-frame {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ticket-cutout {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--paper-bg);
  border: 1px solid var(--line-medium);
  transform: translateY(-50%);
}

.ticket-cutout.left { left: -9px; }
.ticket-cutout.right { right: -9px; }

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-medium);
}

.ticket-category {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.ticket-corp-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.badge-status {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--amber-tint);
  color: var(--amber-600);
}

.field-prefill-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-prefill-grid .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.field-prefill-grid .row span { color: var(--ink-muted); }
.field-prefill-grid .row strong { color: var(--ink-primary); }

.upgrade-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dual-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.upgrade-footnote {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.45;
  background-color: var(--paper-card-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.upgrade-account-form {
  background: var(--paper-card);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.upgrade-account-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upgrade-account-heading strong {
  font-size: 0.9375rem;
  color: var(--ink-primary);
}

.upgrade-account-heading span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.upgrade-account-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

/* Workbench View */
.workbench-status-banner {
  background: linear-gradient(135deg, var(--ink-primary), #1e293b);
  color: #ffffff;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.workbench-status-banner strong {
  font-size: 1rem;
  font-weight: 700;
}

.workbench-status-banner .meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

.status-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.app-tab {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 60px;
}

.app-tab.active {
  display: flex;
}

#tab-academy.active {
  padding: 12px 0 24px;
  gap: 12px;
  overflow: visible;
  min-height: 0;
}

.academy-stack {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
}
.academy-frame {
  display: none;
}
.academy-native {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 12px;
}
.academy-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-title-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--wb-ink, var(--ink-primary));
}
.academy-head .hint {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: var(--leading-body);
  color: var(--ink-muted);
}
.academy-course-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #D9D5CC;
  border-radius: 16px;
  padding: 20px;
  color: var(--ink-primary);
  background: var(--paper-card, #FFFCF7);
  box-shadow: 0 2px 3px rgba(16, 35, 63, 0.08), 0 9px 24px rgba(16, 35, 63, 0.035);
  cursor: pointer;
}
.academy-card-orange,
.academy-card-green,
.academy-card-blue { background: var(--paper-card, #FFFCF7); color: var(--ink-primary); }
.academy-course-card strong {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-title);
  font-weight: 700;
  margin-bottom: 6px;
  line-height: var(--leading-tight);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}
.academy-native > h2 {
  font-family: var(--font-sans);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.012em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}
@media (max-width: 430px) {
  .academy-native > h2,
  .academy-head h2 {
    font-size: var(--text-title);
  }
}
.academy-course-card .meta { color: var(--ink-muted); font-size: var(--text-body-sm); font-style: normal; }
.academy-course-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--text-label);
  font-style: normal;
  color: var(--ink-muted);
}
.academy-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--paper-card-sunken);
  margin-top: 12px;
  overflow: hidden;
}
.academy-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--amber-500);
  border-radius: 999px;
}
.academy-native > .academy-course-meta {
  color: var(--wb-ink-500, var(--ink-muted));
}
.academy-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.academy-lesson-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid #D9D5CC;
  background: var(--paper-card, #FFFCF7);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  text-align: left;
  cursor: pointer;
}
.academy-lesson-row .meta {
  font-size: var(--text-label);
  color: var(--ink-muted);
}
.academy-lesson-row.is-locked { opacity: 0.62; }
.academy-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--emerald-600);
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 700;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.page-brand .academy-back {
  margin: 0 0 6px;
  padding: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}
.academy-media {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.academy-yt,
.academy-video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.academy-lesson-text { white-space: pre-wrap; }
.academy-question {
  padding: 14px 16px;
  border: 1px solid #D9D5CC;
  border-radius: 16px;
  background: var(--paper-card, #FFFCF7);
  margin-bottom: 10px;
}
.academy-question.is-missing {
  border-color: #b42318;
}
.academy-q-title { font-family: var(--font-sans); font-size: var(--text-body); font-weight: 700; margin-bottom: 8px; }
.academy-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  min-height: 44px;
}
.academy-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
}
.academy-option span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.academy-q-title {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.academy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.academy-actions .primary-btn,
.academy-actions .ghost-btn {
  min-height: 44px;
  flex: 1 1 auto;
}
.academy-cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid #D9D5CC;
  background: var(--paper-card, #FFFCF7);
  box-shadow: 0 2px 3px rgba(16, 35, 63, 0.08), 0 9px 24px rgba(16, 35, 63, 0.035);
}
.academy-cert-list h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-title);
  font-weight: 700;
}
.academy-cert-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-medium);
  cursor: pointer;
}
.academy-cert-link:last-child { border-bottom: 0; }
.academy-player {
  position: relative;
}
.academy-media.academy-player {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.academy-media.academy-player .academy-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
}
.academy-player-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #D9D5CC;
  background: var(--paper-card, #FFFCF7);
  color: var(--ink-primary);
  position: relative;
  z-index: 3;
}
.academy-play-btn {
  flex: 0 0 auto;
  min-width: 72px;
  color: var(--ink-primary);
  border-color: var(--line-medium);
}
.academy-fs-btn {
  flex: 0 0 auto;
  min-width: 72px;
  color: var(--ink-primary);
  border-color: var(--line-medium);
  position: relative;
  z-index: 4;
}
.academy-player-track {
  flex: 1;
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.16);
  overflow: visible;
  cursor: pointer;
}
.academy-player-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--emerald-500, #009A44);
  pointer-events: none;
}
.academy-player-head {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10233f;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.academy-player-time {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
html:fullscreen,
html:-webkit-full-screen {
  background: #000;
  height: 100%;
}
html:fullscreen body,
html:-webkit-full-screen body {
  background: #000;
  height: 100%;
  overflow: hidden;
}
.academy-player:fullscreen,
.academy-player:-webkit-full-screen,
.academy-video:fullscreen,
.academy-video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  box-sizing: border-box;
  background: #000;
  display: block;
  padding: 0;
  overflow: hidden;
}
html:fullscreen .academy-player,
html:-webkit-full-screen .academy-player,
body.academy-video-theater .academy-player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  z-index: 6000;
  margin: 0;
  background: #000;
  display: block;
  border-radius: 0;
  padding: 0;
}
html:fullscreen .installer-topbar,
html:-webkit-full-screen .installer-topbar,
html:fullscreen .dock,
html:-webkit-full-screen .dock,
html:fullscreen #view-workbench .dock,
html:-webkit-full-screen #view-workbench .dock,
html:fullscreen .mesh-backdrop,
html:-webkit-full-screen .mesh-backdrop {
  display: none !important;
  pointer-events: none;
}
.academy-player:fullscreen .academy-video,
.academy-player:-webkit-full-screen .academy-video,
html:fullscreen .academy-media.academy-player .academy-video,
html:-webkit-full-screen .academy-media.academy-player .academy-video,
body.academy-video-theater .academy-media.academy-player .academy-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
}
.academy-player:fullscreen .academy-player-bar,
.academy-player:-webkit-full-screen .academy-player-bar,
html:fullscreen .academy-player-bar,
html:-webkit-full-screen .academy-player-bar,
body.academy-video-theater .academy-player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0;
  min-height: 44px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  transition: opacity 0.2s ease, transform 0.2s ease;
}
html:fullscreen .academy-player-track,
html:-webkit-full-screen .academy-player-track,
body.academy-video-theater .academy-player-track {
  background: rgba(255, 255, 255, 0.28);
}
html:fullscreen .academy-player-head,
html:-webkit-full-screen .academy-player-head,
body.academy-video-theater .academy-player-head {
  background: #fff;
}
html:fullscreen .academy-player-time,
html:-webkit-full-screen .academy-player-time,
body.academy-video-theater .academy-player-time {
  color: #fff;
}
.academy-player:fullscreen .academy-play-btn,
.academy-player:fullscreen .academy-fs-btn,
.academy-player:-webkit-full-screen .academy-play-btn,
.academy-player:-webkit-full-screen .academy-fs-btn,
html:fullscreen .academy-play-btn,
html:fullscreen .academy-fs-btn,
html:-webkit-full-screen .academy-play-btn,
html:-webkit-full-screen .academy-fs-btn,
body.academy-video-theater .academy-play-btn,
body.academy-video-theater .academy-fs-btn {
  min-width: 56px;
}
.academy-player.academy-player-chrome-hidden:fullscreen .academy-player-bar,
.academy-player.academy-player-chrome-hidden:-webkit-full-screen .academy-player-bar,
html:fullscreen .academy-player.academy-player-chrome-hidden .academy-player-bar,
html:-webkit-full-screen .academy-player.academy-player-chrome-hidden .academy-player-bar,
body.academy-video-theater .academy-player.academy-player-chrome-hidden .academy-player-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
body.academy-video-theater {
  overflow: hidden;
}
body.academy-video-theater .installer-topbar,
body.academy-video-theater .dock,
body.academy-video-theater #view-workbench .dock,
body.installer-body.academy-video-theater:has(#view-workbench:not([hidden])) .installer-topbar {
  display: none !important;
  pointer-events: none;
}
.academy-offline-row {
  margin-top: 2px;
}
.academy-offline-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  color: var(--emerald-600);
  font: inherit;
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}
.academy-watch-hint { margin-top: 10px; }
.academy-attempts {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #D9D5CC;
  background: var(--paper-card-subtle);
}
.academy-attempts summary,
.academy-attempts h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: var(--text-title);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.academy-attempts summary::-webkit-details-marker {
  display: none;
}
.academy-attempts[open] summary {
  margin-bottom: 8px;
}
.academy-attempts ol {
  margin: 0;
  padding-left: 1.2rem;
}
.academy-cert-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.academy-cert-overlay[hidden] { display: none !important; }
.academy-cert-review {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 36, 28, 0.55);
}
.academy-cert-review[hidden] { display: none !important; }
.academy-cert-review-card {
  width: min(22rem, 100%);
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #0c1524;
}
.academy-cert-review-card p {
  margin: 0 0 16px;
  line-height: 1.5;
}
.academy-cert-review-card .primary-btn { width: 100%; }
.academy-cert-dialog {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #0b241c;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
}
.academy-cert-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
  background: var(--paper-card);
  flex: 0 0 auto;
  min-height: 56px;
}
.academy-cert-toolbar strong {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  line-height: 1.2;
}
.academy-cert-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.35rem;
  flex-shrink: 0;
  white-space: nowrap;
}
#academy-cert-close {
  flex: 0 0 auto;
}
.academy-cert-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #0b241c;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}
.academy-cert-pending {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.academy-cert-pending[hidden] { display: none !important; }
.academy-cert-pending.is-hint {
  inset: auto 12px 12px 12px;
  z-index: 4;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(11, 36, 28, 0.92);
}
.academy-cert-share[hidden] { display: none !important; }
#academy-cert-save:disabled,
#academy-cert-save[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.academy-cert-pending strong {
  font-size: 1.125rem;
  line-height: 1.3;
}
.academy-cert-pending .hint {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
}
.academy-cert-pending .ghost-btn {
  min-height: 44px;
  min-width: 8rem;
}
.academy-cert-sizer {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}
.academy-cert-zoom {
  transform-origin: top left;
  background: #0b241c;
}
.academy-cert-html {
  width: 780pt;
  min-height: 540pt;
  margin: 0 auto;
}
.academy-cert-html .fs-cert {
  margin: 0 auto;
}
.academy-cert-zoom iframe,
.academy-cert-dialog iframe {
  width: 1040px;
  height: 720px;
  border: 0;
  display: block;
  background: #0b241c;
}
.academy-cert-actions {
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper-card);
  flex: 0 0 auto;
}
.academy-cert-actions .primary-btn,
.academy-cert-actions .ghost-btn,
#academy-cert-save {
  flex: 1 1 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.academy-cert-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper-card);
  flex: 0 0 auto;
}
.academy-cert-share-apps {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.academy-cert-share-app {
  flex: 1 1 0;
  min-height: 44px;
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid var(--line-medium, #d7d2c8);
  border-radius: 12px;
  background: #fff;
  color: #14301f;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
}
.academy-cert-share-app svg {
  width: 22px;
  height: 22px;
  display: block;
}
.academy-cert-share-app[data-academy-cert-share="facebook"] { color: #0866ff; }
.academy-cert-share-app[data-academy-cert-share="zalo"] { color: #0068ff; }
.academy-cert-share-app[data-academy-cert-share="whatsapp"] { color: #25d366; }
.academy-cert-share-app[data-academy-cert-share="x"] { color: #000000; }
.academy-cert-share-app[data-academy-cert-share="linkedin"] { color: #0a66c2; }
body.academy-cert-open {
  overflow: hidden;
}
body.academy-cert-open .dock,
body.academy-cert-open .installer-topbar {
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 721px) {
  .academy-cert-overlay {
    align-items: center;
    padding: 24px;
  }
  .academy-cert-dialog {
    width: min(1100px, 100%);
    height: min(90dvh, 820px);
    max-height: 90dvh;
    border-radius: 16px;
    box-shadow: var(--shadow-modal);
  }
  .academy-cert-toolbar {
    padding-bottom: 10px;
  }
}
#tab-academy [data-academy-submit-quiz],
#view-workbench #btn-profile-logout {
  position: relative;
  z-index: 6;
  scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.academy-play-btn {
  position: relative;
  z-index: 4;
}
.academy-watch-hint,
.academy-lesson-text {
  position: relative;
  z-index: 0;
}
#view-workbench #btn-profile-logout {
  width: 100%;
  min-height: 44px;
  margin: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
}

.sheet {
  background: var(--paper-card);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.sheet h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.metric {
  background-color: var(--paper-card-subtle);
  padding: 12px 10px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.metric span {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.metric b {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.lead-list, .product-list, .video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.lead-item, .product-item, .video-item {
  background-color: var(--paper-card);
  border: 1px solid var(--line-subtle);
  padding: 14px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-tag {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background-color: rgba(0, 122, 54, 0.12);
  color: var(--amber-500);
}

.lead-metric {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

.lead-item.locked {
  background: linear-gradient(145deg, #ffffff, var(--paper-card-subtle));
  border: 1.5px dashed var(--line-medium);
}

.lead-locked-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-600);
  font-size: 0.875rem;
}

.contact-line {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.installer-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.installer-actions button {
  flex: 1;
  min-height: 36px;
  font-size: 0.75rem;
  padding: 6px 10px;
}
/* Bottom Dock — floating island, iOS/PayPal-like. */
.dock {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  right: auto;
  width: min(400px, calc(100% - 24px));
  max-width: 400px;
  margin: 0;
  transform: translateX(-50%);
  background-color: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  height: 64px;
  padding: 4px;
  border-radius: 28px;
  box-shadow: var(--shadow-dock);
  z-index: 90;
  pointer-events: auto;
  touch-action: manipulation;
}

.dock button {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  border-radius: 0;
  transition: color 0.15s ease;
}

.dock-svg {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
}

.dock button.active {
  color: var(--amber-500);
  font-weight: 600;
  background: transparent;
}
.dock button.active .dock-svg {
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

/* Toast */
#toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  z-index: 5100;
  display: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  max-width: 90vw;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Workbench parity with native APP */
.filter-row, .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.filter-chip, .tool-subtab {
  border: 1px solid var(--line-medium);
  background: var(--paper-card);
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.filter-chip.active, .tool-subtab.active {
  background: rgba(0, 122, 54, 0.12);
  color: var(--amber-500);
  border-color: var(--amber-500);
}
.search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font: inherit;
  background: var(--paper-card);
}
.lead-item, .product-item, .video-item, .menu-item, .proposal-item {
  cursor: pointer;
}
button.proposal-item {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 8px;
}
.lead-item:focus, .product-item:focus, .video-item:focus, .menu-item:focus {
  outline: 2px solid var(--line-focus);
  outline-offset: 2px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.quick-tile {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--paper-card-subtle);
  text-align: left;
  font-weight: 700;
  color: var(--ink-primary);
}
.wb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.wb-overlay[hidden] { display: none !important; }
.wb-sheet {
  width: min(520px, 100%);
  max-height: 90vh;
  background: var(--paper-card);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
}
.wb-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line-subtle);
}
.wb-sheet-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.wb-sheet-body {
  overflow: auto;
  padding: 16px 18px 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.detail-grid .intel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}
.detail-grid .intel-card span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.detail-grid .intel-card strong {
  font-size: 1rem;
}
.intel-card.help-body {
  white-space: pre-line;
  line-height: 1.5;
}
.file-pick {
  display: block;
  margin: 8px 0;
}
.file-pick input[type="file"] {
  width: 100%;
  font: inherit;
}
.file-pick input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-right: 10px;
  background: var(--brand);
  color: #fff;
}
.file-pick-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.intel-card {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--paper-card-subtle);
  margin-bottom: 8px;
}
.slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.slider-row input[type="range"] { width: 100%; }
.cashflow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.cashflow-table th, .cashflow-table td {
  border-bottom: 1px solid var(--line-subtle);
  padding: 6px 4px;
  text-align: right;
}
.cashflow-table th:first-child, .cashflow-table td:first-child { text-align: left; }
.tool-card select.search-input,
.tool-card input.search-input {
  width: 100%;
  margin-top: 6px;
}
.tool-card .primary-btn {
  margin: 12px 0;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.poster-preview {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-medium);
  background: var(--paper-card-subtle);
}
.profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-subtle);
}
.menu-item span { color: var(--ink-muted); font-size: 0.75rem; }
.locked-mask { filter: blur(0.4px); opacity: 0.72; }
.academy-player video { width: 100%; border-radius: var(--radius-md); background: #000; }

/* Live required-field gates */
.field-gate,
.fieldset-block.field-gate,
.consent-card.field-gate,
.input-wrapper.field-gate,
.select-wrapper.field-gate {
  border-radius: var(--radius-md);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.field-gate.is-empty {
  background-color: var(--red-tint);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.28);
}
.field-gate.is-ready {
  background-color: rgba(0, 122, 54, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 54, 0.28);
}
.field-group.field-gate,
.fieldset-block.field-gate {
  padding: 8px;
  margin-left: -8px;
  margin-right: -8px;
}
.consent-card.field-gate.is-empty {
  border-color: rgba(239, 68, 68, 0.35);
}
.consent-card.field-gate.is-ready {
  border-color: rgba(0, 122, 54, 0.45);
}
.segmented-control {
  position: relative;
}
.seg-item {
  position: relative;
  display: block;
  cursor: pointer;
}
.seg-item input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}
.seg-pill {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.mosaic-chip input {
  pointer-events: auto;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}
#register-form .gate-progress { display: none !important; }
#register-form .email-verify-row,
#register-form .email-code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
#register-form .email-code-row { margin-top: 8px; }
#register-form .email-code-row[hidden],
#register-form #reg-email-dev {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #14532d;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
#register-form #reg-email-dev[hidden],
#register-form .email-verified-note[hidden] { display: none !important; }
#register-form .email-verify-row .input-wrapper,
#register-form .email-code-row input {
  flex: 1 1 auto;
  min-width: 0;
}
#register-form .email-verify-btn {
  flex: 0 0 auto;
  width: auto;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #007a36;
  color: #fff;
  font-weight: 700;
}
#register-form .email-verified-note {
  margin: 8px 0 0;
  color: #007a36;
  font-weight: 700;
}
.gate-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.gate-progress.is-ready {
  color: var(--amber-500);
}
.primary-btn:disabled,
.submit-giant-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}



#register-submit.is-blocked {
  opacity: 0.45;
  cursor: pointer;
  box-shadow: none;
}
#register-submit.is-blocked:hover {
  opacity: 0.62;
}
#register-form #register-gate-missing {
  margin: 0 0 8px;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.45;
  max-height: 7.2em;
  overflow: auto;
}
.reg-combo-panel .reg-combo-search {
  flex: 0 0 auto;
  margin: 6px 6px 0;
}
/* ==========================================================================
   LOGGED-IN WORKBENCH · APP VISUAL PARITY
   Scoped to #view-workbench so login/register/survey stay unchanged.
   App palette: cream canvas, gold accents, selected dock.
   ========================================================================== */
body.installer-body:has(#view-workbench:not([hidden])) {
  background-color: var(--paper-bg);
}
body.installer-body:has(#view-workbench:not([hidden])) .mesh-backdrop {
  opacity: 0.18;
}
#view-workbench {
  --wb-canvas: var(--paper-bg);
  --wb-card: #FFFFFF;
  --wb-hairline: var(--line-subtle);
  --wb-ink: var(--ink-primary);
  --wb-ink-700: var(--ink-secondary);
  --wb-ink-500: var(--ink-muted);
  --wb-ink-300: var(--ink-faint);
  --wb-amber: var(--amber-500);
  --wb-amber-400: var(--amber-400);
  --wb-ember: var(--amber-600);
  --wb-teal: var(--amber-500);
  --wb-green: var(--amber-500);
  --wb-red: var(--red-500);
  --wb-gold: var(--amber-400);
  --wb-blueprint: var(--ink-primary);
  gap: 12px;
  padding-bottom: 88px;
}
#view-workbench .workbench-status-banner { display: none; }
#view-workbench .app-tab { gap: 12px; padding-bottom: 96px; }
#view-workbench #tab-tools.app-tab {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}
#view-workbench .sheet {
  background: var(--wb-card);
  border: 1px solid var(--wb-hairline);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(16, 35, 63, 0.05);
  padding: 16px;
}
#view-workbench .sheet h2,
#view-workbench .wb-section-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: var(--wb-ink);
  margin: 0;
}
#view-workbench .hint,
#view-workbench .meta { color: var(--wb-ink-500); }
#view-workbench .wb-home-hero,
#view-workbench .wb-profile-hero {
  background: #FFFFFF;
  color: var(--wb-ink);
  border: 1px solid var(--wb-hairline);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(26, 25, 22, 0.04);
}
#view-workbench .wb-home-hero h2,
#view-workbench .wb-profile-hero h2 {
  color: var(--wb-ink);
  font-size: 1.05rem;
  margin: 0;
}
#view-workbench .wb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--wb-amber-400);
}
#view-workbench .wb-region-chip {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--amber-tint);
  color: var(--amber-600);
  font-size: 0.6875rem;
  font-weight: 700;
}
#view-workbench .wb-home-hero .hint,
#view-workbench .wb-profile-hero .hint,
#view-workbench .wb-home-hero .meta,
#view-workbench .wb-profile-hero .meta { color: var(--wb-ink-500); }
#view-workbench .wb-complete-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--amber-tint);
  color: var(--amber-600);
  font-size: 0.75rem;
  font-weight: 800;
}
#view-workbench .wb-glass {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--paper-card-subtle);
}
#view-workbench .wb-glass-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
}
#view-workbench .wb-glass-title.amber { color: var(--wb-amber-400); }
#view-workbench .wb-glass-title.green { color: var(--wb-green); }
#view-workbench .metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
}
#view-workbench .metric { background: transparent; padding: 4px 2px; }
#view-workbench .metric span { color: var(--wb-ink-500); font-size: 0.625rem; }
#view-workbench .metric b { color: var(--wb-ink); font-family: var(--font-sans); font-size: 0.8125rem; }
#view-workbench .metric.positive b { color: var(--wb-teal); }
#view-workbench .wb-ticker { display: flex; align-items: center; gap: 8px; overflow: hidden; }
#view-workbench .wb-ticker-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(244, 93, 31, 0.1);
  color: var(--wb-ember);
  font-size: 0.6875rem;
  font-weight: 800;
}
#view-workbench .wb-ticker-text {
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wb-ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-workbench .wb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
#view-workbench .wb-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--wb-ember);
  font-size: 0.75rem;
  font-weight: 800;
}
#view-workbench .quick-grid,
#view-workbench .wb-pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 0;
  padding-bottom: 2px;
  scrollbar-width: none;
}
#view-workbench .quick-grid::-webkit-scrollbar,
#view-workbench .wb-pill-row::-webkit-scrollbar { display: none; }
#view-workbench .quick-tile,
#view-workbench .wb-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--wb-hairline);
  border-radius: 20px;
  background: var(--wb-card);
  color: var(--wb-ink);
  font-size: 0.6875rem;
  font-weight: 800;
  white-space: nowrap;
}
#view-workbench .quick-tile svg,
#view-workbench .wb-pill svg {
  width: 14px;
  height: 14px;
  color: var(--wb-amber);
}
#view-workbench .search-input {
  min-height: 46px;
  border: 1px solid var(--wb-hairline);
  border-radius: 12px;
  background: var(--wb-card);
  color: var(--wb-ink);
  padding-left: 40px;
}
#view-workbench .wb-search-wrap { position: relative; }
#view-workbench .wb-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--wb-ink-500);
  pointer-events: none;
}
#view-workbench .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#view-workbench .chip-row::-webkit-scrollbar { display: none; }
#view-workbench .filter-chip,
#view-workbench .tool-subtab {
  border: 0;
  background: var(--wb-card);
  color: var(--wb-ink-700);
  box-shadow: inset 0 0 0 1px var(--wb-hairline);
}
#view-workbench .filter-chip.active,
#view-workbench .tool-subtab.active {
  background: var(--wb-amber-400);
  color: #ffffff;
  box-shadow: none;
}
#view-workbench .wb-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 8px;
}
#view-workbench .wb-count-row strong { font-size: 0.8125rem; color: var(--wb-ink-700); }
#view-workbench .wb-push-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(0, 122, 54, 0.12);
  color: var(--wb-amber);
  font-size: 0.6875rem;
  font-weight: 800;
}
#view-workbench .wb-push-btn.on {
  background: rgba(26, 158, 84, 0.12);
  color: var(--wb-green);
}
#view-workbench .lead-item,
#view-workbench .product-item,
#view-workbench .video-item,
#view-workbench .proposal-item {
  background: var(--wb-card);
  border: 1px solid var(--wb-hairline);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(16, 35, 63, 0.04);
}
#view-workbench .lead-tag {
  background: rgba(16, 35, 63, 0.08);
  color: var(--wb-blueprint);
}
#view-workbench .lead-item.locked {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f3efe6);
  border-style: solid;
  user-select: none;
}
#view-workbench .lead-item.locked .lead-blur-body {
  pointer-events: none;
  filter: blur(6px);
  opacity: 0.32;
}
#view-workbench .lead-item.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(245, 243, 238, 0.45);
  pointer-events: none;
}
#view-workbench .installer-actions .primary-btn,
#view-workbench .wb-sheet .primary-btn {
  background: var(--wb-amber);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 122, 54, 0.28);
}
#view-workbench .installer-actions .primary-btn:hover:not(:disabled),
#view-workbench .wb-sheet .primary-btn:hover:not(:disabled) { background: var(--wb-amber-400); }
#view-workbench .lead-metric b { color: var(--wb-ink); }
#view-workbench .sheet:not(.wb-home-hero):not(.wb-profile-hero) .metric b { color: var(--wb-ink); }
#view-workbench .wb-sponsor { background: #FFFFFF; color: var(--wb-ink); border: 1px solid var(--wb-hairline); }
#view-workbench .wb-sponsor h2,
#view-workbench .wb-sponsor .hint { color: var(--wb-amber); }
#view-workbench .wb-sponsor p { color: var(--wb-ink-500); font-size: 0.75rem; margin-top: 8px; }
#view-workbench .wb-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--wb-amber-400); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; font-weight: 800; flex-shrink: 0;
}
#view-workbench .wb-profile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#view-workbench .wb-tier {
  padding: 4px 8px; border-radius: 12px;
  background: var(--amber-tint); color: var(--wb-amber);
  font-size: 0.6875rem; font-weight: 800;
}
#view-workbench .wb-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  margin-top: 14px; padding: 3px; border-radius: 10px;
  background: var(--paper-card-subtle);
}
#view-workbench .wb-seg button {
  border: 0; min-height: 36px; border-radius: 8px;
  background: transparent; color: var(--wb-ink-500);
  font-size: 0.75rem; font-weight: 700;
}
#view-workbench .wb-seg button.active { background: #FFFFFF; color: var(--wb-amber); box-shadow: 0 1px 3px rgba(26, 25, 22, 0.06); }
#view-workbench .menu-group-title { margin: 4px 2px 0; font-size: 0.875rem; font-weight: 800; color: var(--wb-ink); }
#view-workbench .menu-item { padding: 14px 2px; border-bottom-color: var(--wb-hairline); }
#view-workbench .menu-item strong { display: block; font-size: 0.9375rem; color: var(--wb-ink); }
#view-workbench .menu-item span { display: block; margin-top: 2px; font-size: 0.6875rem; }
#view-workbench .wb-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
#view-workbench .wb-switch-row strong { display: block; font-size: 0.75rem; color: var(--wb-ink); }
#view-workbench .wb-switch-row span { display: block; font-size: 0.625rem; color: var(--wb-ink-500); }
#view-workbench .dock {
  background: rgba(255, 252, 247, 0.92);
  border-top: 0;
  box-shadow: var(--shadow-dock);
}
#view-workbench .dock button { color: var(--ink-muted); }
#view-workbench .dock button.active {
  color: var(--emerald-700);
  background: var(--emerald-tint);
}
#view-workbench .dock button.active .dock-svg {
  background: transparent;
  padding: 0;
}
.wb-overlay .wb-sheet { background: #FFFFFF; }
.wb-overlay .wb-sheet .primary-btn { background: var(--amber-500); box-shadow: 0 6px 16px rgba(0, 122, 54, 0.28); }
.wb-overlay .filter-chip.active { background: var(--amber-400); color: #ffffff; border-color: var(--amber-400); }

#view-workbench .wb-home-hero .metric b,
#view-workbench .wb-profile-hero .metric b { color: var(--wb-ink); }
#view-workbench .wb-home-hero .metric.positive b,
#view-workbench .wb-profile-hero .metric.positive b { color: var(--wb-teal); }
#view-workbench .lead-item.locked::after { pointer-events: none; }
#view-workbench .search-input { padding-left: 40px !important; height: 46px !important; min-height: 46px !important; }
#view-workbench .sheet .search-input { box-shadow: none !important; }
#view-workbench .installer-actions .primary-btn { background: var(--wb-amber) !important; }
#view-workbench .wb-seg button.active[data-profile-dash="1"] { color: var(--wb-teal); }

#view-workbench .app-lead-card,
#view-workbench .app-product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
#view-workbench .lead-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(231, 227, 218, 0.4);
}
#view-workbench .lead-spec-grid span {
  display: block;
  font-size: 0.625rem;
  color: var(--wb-ink-500);
}
#view-workbench .lead-spec-grid b {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--wb-ink);
}
#view-workbench .wb-intel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--paper-card-subtle);
  color: var(--wb-ink);
  font-size: 0.6875rem;
  font-weight: 800;
}
#view-workbench .wb-intel-banner b { color: var(--wb-amber-400); }
#view-workbench .contact-unlocked,
#view-workbench .contact-locked,
#view-workbench .product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#view-workbench .contact-unlocked {
  padding: 10px;
  border-radius: 12px;
  background: rgba(26, 158, 84, 0.1);
}
#view-workbench .product-price-row span,
#view-workbench .product-price-row small { color: var(--wb-ink-500); font-size: 0.625rem; }
#view-workbench .product-price-row b { color: var(--wb-ember); font-size: 1.125rem; }
#view-workbench .app-product-card h3 { margin: 0; font-size: 1rem; color: var(--wb-ink); }
#view-workbench .lead-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0, 122, 54, 0.35);
  border-radius: 16px;
  text-align: center;
  z-index: 2;
}
#view-workbench .lead-lock-overlay strong { color: var(--wb-blueprint); font-size: 0.8125rem; }
#view-workbench .lead-lock-overlay span { color: var(--wb-ink-500); font-size: 0.75rem; }
#view-workbench .lead-blur-body { filter: blur(1.4px); opacity: 0.35; }
#view-workbench .academy-feed { display: flex; flex-direction: column; gap: 14px; }
#view-workbench .academy-stage {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}
#view-workbench .academy-stage video,
#view-workbench .academy-cover {
  width: 100%;
  height: 68vh;
  object-fit: cover;
  background: #000;
}
#view-workbench .academy-stage img.academy-cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
}
#view-workbench .academy-overlay { z-index: 2; }
#view-workbench .academy-overlay .primary-btn { position: relative; z-index: 3; }

#view-workbench .academy-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: #fff;
}
#view-workbench .academy-overlay strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
#view-workbench .academy-overlay .meta { color: rgba(255,255,255,0.78); margin-bottom: 10px; }
#view-workbench .tool-panel { margin-top: 8px; }
#view-workbench .wb-result-banner,
#view-workbench .wb-eco-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
}
#view-workbench .wb-result-banner { background: var(--paper-card-subtle); color: var(--wb-ink); border: 1px solid var(--wb-hairline); }
#view-workbench .wb-result-banner span,
#view-workbench .wb-eco-banner span { display: block; font-size: 0.6875rem; color: var(--wb-ink-500); }
#view-workbench .wb-result-banner b { display: block; margin-top: 4px; font-size: 1.15rem; }
#view-workbench .kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#view-workbench .kpi-box {
  padding: 16px;
  border: 1px solid var(--wb-hairline);
  border-radius: 12px;
  background: #fff;
}
#view-workbench .kpi-box span { display: block; font-size: 0.6875rem; color: var(--wb-ink-500); }
#view-workbench .kpi-box b { display: block; margin-top: 4px; font-size: 1.125rem; color: var(--wb-ember); }
#view-workbench .wb-eco-banner {
  background: var(--amber-tint);
  border: 1px solid var(--line-subtle);
  color: var(--wb-ink);
}
#view-workbench .bom-row { display: flex; align-items: center; gap: 12px; }
#view-workbench .bom-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 35, 63, 0.06); font-weight: 800; color: var(--wb-ink-700);
}
#view-workbench .bom-qty { margin-left: auto; text-align: right; }
#view-workbench .bom-qty span { display: block; color: var(--wb-ember); font-size: 0.6875rem; }
#view-workbench .installer-actions.compact { margin: 0; }


/* Desktop shell lives in 19+/28+/30-desktop-shell-fix.css.
   Do not re-center a 720px phone column here — it fights the left-nav workspace. */

@keyframes loginSpin { to { transform: rotate(360deg); } }
.login-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loginSpin .72s linear infinite;
}
.login-submit-loading .login-spinner { display: inline-block; }
.login-submit-loading { cursor: wait; }
.login-submit-success { background: #16805a; }
.login-success-mark {
  display: inline-block;
  width: 15px;
  height: 8px;
  margin-right: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
}

/* ==========================================================================
   APP FINISH PASS · 2026-09-03
   Visual-only refinements based on the native installer APP captures.
   ========================================================================== */
body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
  display: none;
}

body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
  width: 100%;
  max-width: 520px;
  padding: 12px 16px 0;
}

#view-workbench .empty-state { padding: 18px 4px 8px; text-align: center; }
#view-workbench .empty-state .hint { margin: 8px auto 12px; max-width: 34rem; }

body.installer-body:has(#view-workbench:not([hidden])) .mesh-backdrop {
  display: none;
}

#view-workbench {
  gap: 14px;
  padding-bottom: 0;
}

#view-workbench .app-tab {
  gap: 14px;
  padding-bottom: 0;
}

#view-workbench #tab-academy.active {
  padding: 0;
  gap: 0;
}

#view-workbench #tab-tools > .tool-card.sheet,
#view-workbench #tab-tools > .tool-modules,
#view-workbench #tab-tools > .tool-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 12px;
}

#view-workbench #tab-tools > .tool-card.sheet > h2,
#view-workbench .tool-modules-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}

#view-workbench #tab-home > .sheet:not(.wb-home-hero):not(.wb-ticker):not(.wb-sponsor) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

#view-workbench .wb-home-hero {
  min-height: 360px;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(16, 35, 63, 0.14);
}

#view-workbench .wb-kicker {
  display: flex;
  width: 100%;
  min-height: 28px;
  color: var(--wb-amber);
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

#view-workbench .wb-kicker::before {
  content: "";
  width: 18px;
  height: 21px;
  flex: 0 0 18px;
  border-radius: 6px 6px 8px 8px;
  background: var(--wb-amber-400);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 54, 0.28);
}

#view-workbench .wb-region-chip {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 122, 54, 0.13);
  color: var(--wb-amber-400);
}

#view-workbench .wb-home-hero > .hint {
  margin-top: 7px;
  font-size: 0.75rem;
}

#view-workbench .wb-glass {
  margin-top: 16px;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--paper-card-subtle);
  box-shadow: inset 0 0 0 1px var(--line-subtle);
}

#view-workbench .wb-glass-title {
  min-height: 24px;
  margin-bottom: 11px;
  font-size: 0.75rem;
}

#view-workbench .wb-home-hero .metric {
  min-width: 0;
  padding: 3px 1px;
}

#view-workbench .wb-home-hero .metric span {
  font-size: 0.625rem;
  font-weight: 500;
  white-space: nowrap;
}

#view-workbench .wb-home-hero .metric b {
  margin-top: 3px;
  font-size: 0.875rem;
  line-height: 1.25;
}

#view-workbench .wb-home-hero .wb-glass:last-child .meta {
  font-size: 0.6875rem;
  line-height: 1.55;
}

#view-workbench .wb-ticker {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 14px;
  border-color: rgba(231, 227, 218, 0.82);
  box-shadow: 0 3px 12px rgba(16, 35, 63, 0.035);
}

#view-workbench .wb-ticker-tag {
  padding: 5px 8px;
  font-size: 0.75rem;
  border-radius: 7px;
}

#view-workbench .wb-ticker-text {
  font-size: 0.75rem;
}

#view-workbench .wb-section-head {
  min-height: 28px;
  margin-bottom: 10px;
}

#view-workbench .sheet h2,
#view-workbench .wb-section-title {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

#view-workbench .wb-link {
  min-height: 32px;
  padding: 6px 0;
  font-size: 0.75rem;
}

#view-workbench .wb-pill-row {
  gap: 9px;
  margin: 0 -2px;
  padding: 1px 2px 3px;
}

#view-workbench .wb-pill {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  box-shadow: 0 2px 7px rgba(16, 35, 63, 0.035);
}

#view-workbench .lead-list,
#view-workbench .product-list,
#view-workbench .video-list {
  gap: 14px;
  margin-top: 10px;
}

#view-workbench .app-lead-card {
  border-radius: 16px;
  border-color: #D9D5CC;
  padding: 20px;
  gap: 16px;
  box-shadow: 0 2px 3px rgba(16, 35, 63, 0.08), 0 9px 24px rgba(16, 35, 63, 0.035);
}

#view-workbench .app-product-card {
  min-height: 266px;
  border-radius: 16px;
  border-color: #D9D5CC;
  padding: 24px 26px 26px;
  gap: 17px;
  box-shadow: 0 2px 3px rgba(16, 35, 63, 0.08), 0 9px 24px rgba(16, 35, 63, 0.035);
}

#view-workbench .lead-header {
  align-items: center;
  gap: 9px;
}

#view-workbench .app-lead-card .lead-header {
  flex-wrap: wrap;
}

#view-workbench .lead-header strong {
  color: var(--wb-ink);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

#view-workbench .app-lead-card .lead-header strong {
  flex: 1 0 100%;
}

#view-workbench .lead-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(12, 21, 36, 0.045);
  color: var(--wb-ink-700);
  font-size: 0.6875rem;
  line-height: 1;
}

#view-workbench .app-product-card .lead-tag {
  background: rgba(217, 162, 39, 0.12);
  color: #B98513;
}

#view-workbench .lead-spec-grid {
  gap: 10px;
  padding: 15px 12px;
  border-radius: 12px;
  background: #F7F5F1;
}

#view-workbench .lead-spec-grid > div:last-child {
  text-align: right;
}

#view-workbench .lead-spec-grid span {
  font-size: 0.6875rem;
  font-weight: 500;
}

#view-workbench .lead-spec-grid b {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.3;
}

#view-workbench .address-line {
  color: var(--wb-ink-700);
  font-size: 0.8125rem;
  line-height: 1.7;
}

#view-workbench .wb-intel-banner {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

#view-workbench .wb-intel-banner span {
  min-width: 0;
  text-align: left;
}

#view-workbench .wb-intel-banner b {
  flex-shrink: 0;
}

#view-workbench .contact-locked {
  min-height: 58px;
}

#view-workbench .contact-locked > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

#view-workbench .contact-locked .meta {
  font-size: 0.75rem;
}

#view-workbench .contact-locked .primary-btn {
  flex: 0 0 auto;
  width: 168px;
  min-width: 158px;
  min-height: 50px;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 800;
}

#view-workbench .app-product-card h3 {
  margin: 0;
  color: var(--wb-ink);
  font-size: 1.25rem;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

#view-workbench .app-product-card > .meta {
  font-size: 0.9375rem;
  line-height: 1.55;
}

#view-workbench .product-price-row {
  margin-top: 5px;
  align-items: flex-end;
}

#view-workbench .product-price-row > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  max-width: 58%;
}

#view-workbench .product-price-row span {
  flex: 1 0 100%;
  margin-bottom: 3px;
  font-size: 0.75rem;
}

#view-workbench .product-price-row b {
  color: var(--wb-ember);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

#view-workbench .product-price-row small {
  margin-left: 4px;
  font-size: 0.75rem;
}

#view-workbench .product-price-row .primary-btn,
#view-workbench .product-price-row .ghost-btn {
  width: 142px;
  flex: 0 0 142px;
  min-width: 142px;
  min-height: 58px;
  border-radius: 16px;
  border-color: var(--wb-amber);
  background: var(--wb-amber-400);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: none;
}

#view-workbench .wb-search-wrap {
  margin-bottom: 1px;
}

#view-workbench .wb-search-wrap .search-input {
  height: 68px !important;
  min-height: 68px !important;
  padding: 13px 16px 13px 52px !important;
  border-color: #DDD9D0;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--wb-ink);
  font-size: 0.9375rem;
  box-shadow: 0 2px 4px rgba(16, 35, 63, 0.035) !important;
}

#view-workbench .wb-search-wrap svg {
  left: 17px;
  width: 22px;
  height: 22px;
}

#view-workbench .chip-row {
  gap: 10px;
  margin: 14px -18px 14px 0;
  padding-right: 18px;
}

#view-workbench .filter-chip,
#view-workbench .tool-subtab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 17px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

#view-workbench .wb-count-row {
  min-height: 36px;
  margin: 2px 0 8px;
}

#view-workbench .wb-count-row strong {
  font-size: 0.875rem;
}

#view-workbench .wb-push-btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.75rem;
}

#view-workbench .wb-profile-hero {
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(16, 35, 63, 0.13);
}

#view-workbench .wb-profile-top > div {
  min-width: 0;
}

#view-workbench .wb-profile-top > div:first-child,
#view-workbench .profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

#view-workbench .wb-profile-hero h2,
#view-workbench .wb-profile-hero h2.wb-profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

#view-workbench .wb-profile-hero .hint {
  margin-top: 3px;
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-workbench .wb-avatar {
  width: 48px;
  height: 48px;
  background: var(--wb-amber);
  font-size: 1.125rem;
}

#view-workbench .wb-tier {
  padding: 6px 9px;
  background: var(--amber-tint);
  color: var(--wb-amber);
}

#view-workbench .wb-profile-hero .metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 16px 0 0;
  padding: 13px 8px;
  border-radius: 12px;
  background: var(--paper-card-subtle);
}

#view-workbench .wb-profile-hero .metric {
  padding: 3px 2px;
}

#view-workbench .wb-profile-hero .metric span {
  font-size: 0.625rem;
  font-weight: 500;
}

#view-workbench .wb-profile-hero .metric b {
  margin-top: 3px;
  font-size: 1rem;
}

#view-workbench .wb-profile-hero .metric:first-child b {
  color: var(--wb-amber-400);
}

#view-workbench .wb-seg {
  margin-top: 14px;
  padding: 3px;
  border: 1px solid var(--wb-hairline);
  background: var(--paper-card-subtle);
}

#view-workbench .wb-seg button {
  min-height: 38px;
}

#view-workbench .wb-seg button.active {
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(26, 25, 22, 0.08);
}

#view-workbench .menu-group-title {
  margin: 4px 0 -3px;
  font-size: 0.875rem;
  line-height: 1.4;
}

#view-workbench #tab-profile > .sheet:not(.wb-profile-hero) {
  padding: 4px 18px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(16, 35, 63, 0.035);
}

#view-workbench .menu-item {
  position: relative;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  padding: 14px 2px;
  text-align: left;
  background: transparent;
}

#view-workbench .menu-item::before,
#view-workbench .menu-item::after {
  content: none;
  display: none;
}

#view-workbench .menu-item:last-child {
  border-bottom-style: dashed;
}

#view-workbench .menu-item > div {
  min-width: 0;
}

#view-workbench .menu-item strong {
  font-size: 0.9375rem;
  line-height: 1.35;
}

#view-workbench .menu-item div span {
  margin-top: 3px;
  color: var(--wb-ink-500);
  font-size: 0.6875rem;
  line-height: 1.45;
}

#view-workbench .menu-item > span:last-child {
  margin: 0;
  color: var(--wb-ink-300);
  font-size: 1.125rem;
}

/* Profile menu: semantic icon tiles and a quiet grouped-list surface. */
#view-workbench #tab-profile > .sheet:not(.wb-profile-hero) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#view-workbench #tab-profile .menu-item {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  column-gap: 12px;
  min-height: 72px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px dashed var(--wb-hairline);
  border-radius: 0;
}
#view-workbench #tab-profile .profile-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 11px;
  color: var(--wb-ink-700);
  background: rgba(16, 35, 63, 0.08);
}
#view-workbench #tab-profile .profile-menu-icon svg {
  width: 19px;
  height: 19px;
}
#view-workbench #tab-profile .menu-item-copy {
  flex: 1 1 auto;
  min-width: 0;
}
#view-workbench #tab-profile .menu-item strong {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}
#view-workbench #tab-profile .menu-item div span {
  display: block;
  margin-top: 4px;
  color: var(--wb-ink-500);
  font-size: 0.75rem;
  line-height: 1.4;
}
#view-workbench #tab-profile .menu-item .icon-chevron-right {
  display: none;
}
#view-workbench #tab-profile .menu-item::before,
#view-workbench #tab-profile .menu-item::after {
  display: none;
}

#view-workbench .dock {
  width: min(400px, calc(100% - 24px));
  max-width: 400px;
  min-height: 0;
  height: 64px;
  padding: 4px;
  background: rgba(255, 252, 247, 0.92);
  border-top: 0;
  border-radius: 28px;
  box-shadow: var(--shadow-dock);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#view-workbench .dock button {
  position: relative;
  min-height: 0;
  height: 100%;
  gap: 3px;
  padding: 0;
  border-radius: 22px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
}

#view-workbench .dock button.active::before {
  display: none;
}

#view-workbench .dock .dock-svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: 0;
  stroke-width: 2;
}

#view-workbench .dock button > span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

#view-workbench .dock button.active {
  color: var(--emerald-700);
  font-weight: 700;
  background: var(--emerald-tint);
}

#view-workbench .dock button.active .dock-svg {
  padding: 0;
  background: transparent;
  color: var(--emerald-700);
}

#view-workbench .tool-card .search-input,
.wb-overlay .search-input {
  height: auto !important;
  min-height: 48px !important;
  padding: 11px 12px !important;
  border-radius: 12px;
  font-size: 0.875rem;
}

#view-workbench button:focus-visible,
#view-workbench input:focus-visible,
.wb-overlay button:focus-visible,
.wb-overlay input:focus-visible,
.wb-overlay select:focus-visible {
  outline: 2px solid var(--wb-amber);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    padding-left: 8px;
    padding-right: 8px;
  }
  #view-workbench .wb-home-hero { min-height: 342px; padding: 17px; }
  #view-workbench .app-lead-card { padding: 15px; gap: 13px; }
  #view-workbench .app-product-card { min-height: 248px; padding: 18px; gap: 14px; }
  #view-workbench .lead-spec-grid { grid-template-columns: 1fr 1fr; }
  #view-workbench .lead-spec-grid > div:last-child { text-align: left; }
  #view-workbench .contact-locked { align-items: stretch; flex-direction: column; }
  #view-workbench .contact-locked .primary-btn { width: 100%; }
  #view-workbench .product-price-row .primary-btn,
  #view-workbench .product-price-row .ghost-btn { min-width: 126px; }
}

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

/* Desktop adaptive shell: keep the phone UI, expand into a left-nav workspace. */
@media (min-width: 1024px) {
  body.installer-body {
    padding-bottom: 0;
  }

  .topbar-inner {
    max-width: 1280px;
    padding: 12px 28px;
  }

  .installer-main {
    max-width: 1280px;
  }

  body.installer-body:has(#view-auth:not([hidden])) .installer-main,
  body.installer-body:has(#view-survey:not([hidden])) .installer-main,
  body.installer-body:has(#view-upgrade:not([hidden])) .installer-main {
    max-width: 1280px;
    min-height: calc(100dvh - 72px);
    height: auto;
    padding: 48px 32px 64px;
    justify-content: flex-start;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-card {
    width: min(480px, 100%);
    margin: 24px auto 0;
    padding: 28px 28px;
    transform: none;
  }

  body.installer-body:has(#view-survey:not([hidden])) #view-survey,
  body.installer-body:has(#view-upgrade:not([hidden])) #view-upgrade {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    display: block;
    position: sticky;
    left: 232px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px 36px 48px 248px;
  }

  #view-workbench .dock,
  .dock {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 232px;
    max-width: 232px;
    min-height: 100dvh;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 88px 14px 24px;
    border-top: none;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--paper-card);
  }

  #view-workbench .dock button,
  .dock button {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
  }

  #view-workbench .dock button.active::before {
    top: 50%;
    left: 8px;
    width: 4px;
    height: 22px;
    border-radius: 999px;
    transform: translateY(-50%);
  }

  #view-workbench .lead-list,
  #view-workbench .product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #view-workbench .tool-card {
    max-width: 880px;
  }

  #view-workbench .metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .wb-overlay .wb-sheet {
    width: min(640px, 92vw);
    max-height: 86vh;
  }
}

.yield-back {
  align-self: flex-start;
  width: auto;
  min-height: 40px;
  margin: 0 0 4px;
  padding: 8px 14px;
}
.yield-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 8px;
  background: transparent;
  border-radius: 22px;
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}
.tool-shell {
  display: flex;
  flex-direction: column;
}
.tool-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--wb-hairline, var(--line-subtle));
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.tool-tab {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--wb-ink-500, #6b7280);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 700;
}
.tool-tab.is-on {
  color: #007a36;
  background: rgba(0, 154, 68, 0.08);
  box-shadow: inset 0 -3px 0 #007a36;
}
.tool-tab-panel {
  padding: 14px 12px 16px;
  background: #fff;
  border: 1px solid var(--wb-hairline, var(--line-subtle));
  border-radius: 0 0 16px 16px;
}
.yield-type-seg {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.yield-type-btn {
  flex: 1 1 0;
  min-height: 36px;
  border: 1px solid var(--wb-hairline, var(--line-subtle));
  border-radius: 10px;
  background: #fff;
  color: var(--wb-ink-500, var(--ink-secondary));
  font-size: 0.875rem;
  font-weight: 600;
}
.yield-type-btn.active {
  border-color: #007a36;
  background: rgba(0, 154, 68, 0.1);
  color: #007a36;
}
.yield-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yield-seg-btn {
  height: 44px;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}
.yield-seg-btn.active { background: var(--amber-500); border-color: var(--amber-500); color: #ffffff; }
.yield-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px 16px 10px;
  border: 0;
  box-shadow: 0 8px 24px rgba(16, 35, 63, 0.05);
}
.yield-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--wb-amber, var(--amber-500));
  font-size: 16px;
}
.yield-card-title .yield-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.yield-req { color: #ef4444; font-style: normal; margin-right: 4px; font-weight: 700; }
.yield-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid var(--line-subtle);
}
.yield-card .yield-line:last-of-type { border-bottom: 0; }
.yield-line-label {
  font-size: 16px;
  color: var(--ink-primary);
  font-weight: 600;
  flex: 0 0 auto;
}
.yield-line-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.yield-pill { position: relative; display: inline-flex; min-width: 108px; max-width: 100%; }
.yield-pill select {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 16px;
  padding: 0 30px 0 14px;
  width: 100%;
  max-width: 220px;
  text-align: center;
}
.yield-pill::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink-primary);
  border-bottom: 2px solid var(--ink-primary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.yield-locate {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-card-sunken);
  color: var(--wb-amber, var(--amber-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 36px;
}
.yield-locate .yield-ico { width: 18px; height: 18px; }
.yield-line-tilt { border-bottom: 0; min-height: 36px; }
.yield-tilt-rec { color: var(--wb-amber, var(--amber-500)); font-size: 14px; font-weight: 600; white-space: nowrap; }
.yield-tilt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--line-subtle);
}
.yield-sun {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--amber-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.yield-sun-svg { width: 26px; height: 26px; }
.yield-tilt-deg {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}
.yield-tilt input[type="range"] {
  flex: 1;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--wb-amber, var(--amber-500));
  background: transparent;
}
.yield-tilt input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-card-sunken);
}
.yield-tilt input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--wb-amber, var(--amber-500));
  box-shadow: 0 2px 6px rgba(0, 122, 54, 0.28);
}
.yield-tilt input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-card-sunken);
  border: 0;
}
.yield-tilt input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--wb-amber, var(--amber-500));
  box-shadow: 0 2px 6px rgba(0, 122, 54, 0.28);
}
.yield-line-mode { border-bottom: 0; }
.yield-line-mix { border-bottom: 0; }
.yield-mode { display: inline-flex; align-items: center; gap: 8px; }
.yield-mode-lbl {
  background: transparent;
  color: var(--ink-faint);
  font-size: 15px;
  font-weight: 600;
  padding: 0;
}
.yield-mode-lbl.is-on { color: var(--wb-amber, var(--amber-500)); }
.yield-ios {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  padding: 0;
  flex: 0 0 44px;
}
.yield-ios.on { background: var(--wb-amber, var(--amber-500)); }
.yield-ios::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease;
}
.yield-ios.on::after { transform: translateX(20px); }
.yield-hint {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-faint);
}
.yield-bare {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink-primary);
  font-weight: 800;
}
.yield-bare-input,
.yield-ghost {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: right;
  height: 36px !important;
  min-height: 0 !important;
  min-width: 88px;
  width: 4.8em !important;
  font-weight: 800;
  font-size: 16px !important;
  color: var(--ink-primary) !important;
  padding: 0 !important;
  display: inline-block !important;
  -moz-appearance: textfield;
}
.yield-bare-input::-webkit-outer-spin-button,
.yield-bare-input::-webkit-inner-spin-button,
.yield-ghost::-webkit-outer-spin-button,
.yield-ghost::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.yield-ghost {
  min-width: 168px;
  width: min(220px, 58vw) !important;
  font-weight: 500;
  font-size: 16px !important;
}
.yield-ghost:not(:placeholder-shown) {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink-primary);
}
.yield-bare-input:focus,
.yield-ghost:focus {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.yield-ghost::placeholder {
  color: var(--ink-faint);
  font-weight: 500;
  font-size: 15px;
}
.yield-self-num { font-size: 16px; font-weight: 800; color: var(--ink-primary); }
.yield-mix { position: relative; margin: 6px 0 12px; }
.yield-mix-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.yield-mix-leg-self { color: #007A36; }
.yield-mix-leg-export { color: #C48A00; }
.yield-mix-track {
  display: flex;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #F3E6B5;
  pointer-events: none;
}
.yield-mix-self {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #ffffff;
  background: #007A36;
  padding: 0 10px;
  font-weight: 700;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
}
.yield-mix-kicker { opacity: 0.9; font-size: 11px; font-weight: 600; }
.yield-mix-self .yield-ico,
.yield-mix-export .yield-ico { width: 14px; height: 14px; flex: 0 0 14px; }
.yield-mix-export {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #5C4300;
  background: #E8C547;
  padding: 0 10px;
  font-weight: 700;
  font-size: 13px;
}
/* Hit target is the 40px track, not the legend. A full-height range was a
   second scrollport: after a drag or a pan that started on it, WebKit scrolled
   the focused box back into view while the URL bar resized, and the page bounced. */
.yield-mix-range {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  cursor: pointer;
  z-index: 2;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: none;
  overflow: hidden;
}
.yield-mix-range::-webkit-slider-runnable-track {
  height: 40px;
  background: transparent;
  border: 0;
}
.yield-mix-range::-moz-range-track {
  height: 40px;
  background: transparent;
  border: 0;
}
.yield-mix-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--wb-amber, var(--amber-500));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.yield-mix-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--wb-amber, var(--amber-500));
}
#view-workbench .yield-mix-range:focus,
#view-workbench .yield-mix-range:focus-visible {
  outline: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.yield-field { display: block; margin-bottom: 10px; font-size: var(--text-body-sm); }
.yield-field span { display: block; font-size: var(--text-label); font-weight: 600; color: var(--ink-muted); margin-bottom: 6px; }
.yield-field i { font-style: normal; color: var(--wb-amber, var(--amber-500)); }
.yield-field select,
.yield-field input { width: 100%; height: 44px; border: 1px solid var(--line-subtle); border-radius: 12px; padding: 0 12px; font-family: var(--font-sans); font-size: var(--text-body); }
.yield-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yield-err { color: #dc2626; font-size: var(--text-label); padding: 0 4px; }
.yield-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yield-metric { background: #fff; border: 1px solid var(--line-subtle); border-radius: 12px; padding: 10px; }
.yield-metric b { display: block; color: var(--wb-amber, var(--amber-500)); font-size: var(--text-title); font-weight: 700; }
.yield-merged-head,
.yield-merged-row { display: grid; grid-template-columns: minmax(5.2em, 1.35fr) 1fr 1fr 0.85fr; gap: 8px; font-size: var(--text-label); }
.yield-merged-row { padding: 8px 0; border-top: 1px solid var(--line-subtle); }
.yield-merged-head .is-primary,
.yield-merged-row .is-primary {
  background: rgba(0, 122, 54, 0.12);
  color: #007A36;
  font-weight: 800;
  border-radius: 8px;
  padding: 4px 6px;
}
.yield-note { background: var(--paper-card-subtle); }
.yield-svg { width: 100%; height: 240px; display: block; }
.yield-chart-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--text-label); color: var(--ink-secondary); margin-bottom: 4px; }
.yield-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.yield-chart-sub { font-size: var(--text-label); color: var(--ink-muted); margin: 4px 0 8px; }
.yield-perf-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.yield-perf-btn { height: 36px; border: 1px solid var(--line-subtle); border-radius: 10px; background: #fff; font-weight: 700; }
.yield-perf-btn.active { background: var(--amber-400); color: #ffffff; border-color: var(--amber-400); }
.yield-chart-desc { font-size: var(--text-label); color: var(--ink-secondary); background: var(--paper-card-subtle); border-radius: 10px; padding: 8px 10px; }
.yield-ring-wrap { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.yield-ring { width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0; }
.yield-legend { font-size: var(--text-label); color: var(--ink-secondary); }
.yield-legend-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.yield-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: 0 0 10px; }
.yield-swatch-primary { background: #007A36; }
.yield-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.yield-chart-expand {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-subtle);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  color: #007A36;
}
.yield-chart-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x pan-y;
  margin: 0 -4px;
}
.yield-chart-scroll .yield-svg { min-width: 640px; height: 220px; }
.yield-chart-tip {
  position: absolute;
  z-index: 3;
  min-width: 120px;
  background: #1A1A1A;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.yield-chart-hint { font-size: 12px; color: var(--ink-muted); margin: 4px 0 0; }
.yield-donut {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.yield-donut-svg { width: 168px; height: 168px; }
.yield-donut-legend { display: grid; grid-template-columns: 1fr; gap: 8px; min-width: 0; }
.yield-donut-item { display: flex; align-items: flex-start; gap: 8px; }
.yield-donut-item div { display: flex; flex-direction: column; min-width: 0; }
.yield-donut-item strong { font-size: 13px; white-space: nowrap; }
.yield-donut-item span { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.yield-detail-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 12px;
  max-height: 50svh;
}
.yield-detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.yield-detail-table th,
.yield-detail-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-subtle); text-align: right; white-space: nowrap; }
.yield-detail-table th:first-child,
.yield-detail-table td:first-child { text-align: left; }
@media (max-width: 420px) {
  .yield-donut { grid-template-columns: 1fr; justify-items: center; }
  .yield-donut-legend { width: 100%; }
}
#view-workbench #tab-tools .yield-app .primary-btn {
  background: var(--brand);
  color: #ffffff;
  border-radius: 10px;
  min-height: 48px;
  margin: 12px 0 8px;
  box-shadow: none;
  font-weight: 800;
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
}
#view-workbench #tab-tools .yield-app #btn-run-v3 {
  position: static;
  bottom: auto;
  z-index: auto;
}
#view-workbench #tab-tools .yield-app .primary-btn:hover:not(:disabled) {
  background: var(--amber-500);
  color: #ffffff;
  box-shadow: none;
}

/* ==========================================================================
   SaaS shell (GreenSketch structure, teal-cyan default + rose/ink accents)
   Last cascade wins over 2026 cream-dock / orange-title passes.
   ========================================================================== */
html,
body.installer-body {
  font-family: var(--font-sans);
  background: var(--paper-bg);
  color: var(--ink-primary);
  -webkit-font-smoothing: antialiased;
}
body.installer-body .mesh-backdrop {
  opacity: 0.08;
}
body.installer-body:has(#view-workbench:not([hidden])) .brand-name,
body.installer-body:has(#view-workbench:not([hidden])) .brand-sub {
  color: var(--ink-primary);
}
body.installer-body:has(#view-workbench:not([hidden])) .brand-region-tag {
  background: var(--amber-tint);
  color: var(--amber-500);
  border: 0;
}
.lang-option-btn.active {
  background-color: var(--amber-tint);
  color: var(--amber-500);
}
#view-workbench {
  --wb-canvas: var(--paper-bg);
  --wb-card: #ffffff;
  --wb-hairline: var(--line-subtle);
  --wb-ink: var(--ink-primary);
  --wb-ink-700: var(--ink-secondary);
  --wb-ink-500: var(--ink-muted);
  --wb-ink-300: var(--ink-faint);
  --wb-amber: var(--amber-400);
  --wb-amber-400: var(--amber-400);
  --wb-ember: var(--amber-600);
  --wb-teal: var(--amber-400);
  --wb-green: #067647;
  --wb-gold: var(--amber-400);
}
#view-workbench .sheet {
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  box-shadow: none;
}
#view-workbench .sheet h2,
#view-workbench .wb-section-title,
#view-workbench .wb-sponsor h2,
#view-workbench .wb-sponsor .hint,
#view-workbench .menu-group-title {
  color: var(--ink-primary);
}
#view-workbench .wb-home-hero,
#view-workbench .wb-profile-hero {
  min-height: 0;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  box-shadow: none;
  background: #ffffff;
}
#view-workbench .wb-kicker {
  color: var(--ink-primary);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
#view-workbench .wb-kicker::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: none;
}
#view-workbench .wb-region-chip {
  background: var(--amber-tint);
  color: var(--amber-600);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
}
#view-workbench .wb-glass-title,
#view-workbench .wb-glass-title.amber,
#view-workbench .wb-glass-title.green {
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#view-workbench .wb-home-hero .metric b,
#view-workbench .wb-profile-hero .metric b {
  margin-top: 4px;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink-primary);
}
#view-workbench .wb-home-hero .metric.positive b {
  color: var(--amber-400);
}
#view-workbench .wb-pill {
  background: var(--amber-tint);
  border: 0;
  border-radius: 8px;
  color: var(--amber-600);
  font-weight: 600;
  box-shadow: none;
}
#view-workbench .wb-pill svg {
  color: var(--amber-600);
}
#view-workbench .wb-pill.primary {
  background: var(--brand);
  border-color: transparent;
  color: #ffffff;
}
#view-workbench .wb-pill.primary svg {
  color: #ffffff;
}
#view-workbench .wb-ticker-tag {
  background: var(--amber-tint);
  color: var(--amber-600);
  font-weight: 700;
}
#view-workbench .empty-state {
  padding: 28px 12px 12px;
  text-align: center;
}
#view-workbench .empty-state .empty-title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink-primary);
}
#view-workbench .empty-state .hint {
  margin: 0 auto 16px;
  max-width: 22rem;
}
#view-workbench .empty-state .primary-btn {
  max-width: 16rem;
  margin: 0 auto;
  border-radius: 8px;
}
#view-workbench .theme-chip-row {
  margin: 4px 0 14px;
}
#view-workbench .theme-chip-row .hint {
  margin: 0 0 10px;
}
#view-workbench .accent-chip.active {
  background: var(--brand);
  color: #ffffff;
  border-color: transparent;
}
#view-workbench .dock {
  background: rgba(255, 252, 247, 0.92);
  border-top: 0;
  box-shadow: var(--shadow-dock);
}
#view-workbench .dock button {
  color: var(--ink-muted);
  border-radius: 22px;
}
#view-workbench .dock button.active {
  color: var(--emerald-700);
  background: var(--emerald-tint);
  font-weight: 700;
}
#view-workbench .dock button.active::before {
  display: none;
}
#view-workbench .dock button.active .dock-svg {
  background: transparent;
  color: var(--emerald-700);
}
#view-workbench .academy-actions .ghost-btn {
  border: 0;
  background: var(--amber-tint);
  color: var(--amber-600);
}
#view-workbench .academy-actions .primary-btn {
  background: var(--brand);
  color: #ffffff;
  border-radius: 8px;
}
#view-workbench .wb-seg button.active {
  color: var(--ink-primary);
  background: #ffffff;
}
@media (min-width: 360px) {
  #view-workbench .wb-home-hero { min-height: 0; padding: 18px 16px; }
}

/* Phone: the document scrolls. An inner overflow port was swallowing vertical drags. */
@media (max-width: 1023px) {
  /* One scrollport. html scrolls; body stays visible so a pull cannot
     bounce between two ports. svh does not grow when the URL bar hides. */
  html:has(#view-workbench:not([hidden])) {
    height: auto;
    min-height: 100%;
    max-height: none;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: none;
    scroll-behavior: auto;
    overflow-anchor: none;
    padding-bottom: 0;
  }

  html:has(#view-workbench:not([hidden])) body.installer-body {
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
    overscroll-behavior: none;
    padding-bottom: 0;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    height: auto;
    max-height: none;
    max-width: none;
    overflow: visible;
    display: block;
    padding-top: 10px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 0;
    min-width: 0;
  }

  #view-workbench {
    display: block;
    height: auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    touch-action: manipulation;
    gap: 0;
    padding-bottom: 0;
    animation: none;
    transform: none;
    filter: none;
  }

  #view-workbench::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  #view-workbench .app-tab:not(.active) {
    display: none !important;
    pointer-events: none;
  }

  #view-workbench .app-tab.active,
  #view-workbench #tab-academy.active {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    padding-bottom: 16px;
  }

  #view-workbench #tab-tools.app-tab.active {
    padding-bottom: 24px;
  }

  #view-workbench .academy-stack {
    min-height: 0;
    flex: 0 0 auto;
  }

  #view-workbench .wb-home-hero,
  #view-workbench .wb-profile-hero {
    min-height: auto;
  }

  #view-workbench .dock,
  .dock {
    z-index: 90;
    pointer-events: auto;
    touch-action: manipulation;
  }

  body.installer-body:has(#wb-overlay:not([hidden])) #view-workbench .dock,
  body.installer-body:has(#wb-overlay:not([hidden])) .dock {
    pointer-events: none;
  }

  .wb-overlay {
    pointer-events: auto;
  }

  .wb-overlay .installer-actions {
    flex-direction: column;
  }

  .wb-overlay .installer-actions .primary-btn,
  .wb-overlay .installer-actions .ghost-btn {
    width: 100%;
    min-height: 48px;
    touch-action: manipulation;
  }
}

#view-workbench .hint,
#view-workbench .meta {
  font-size: 0.875rem;
  line-height: 1.5;
}
#view-workbench .menu-item span,
#view-workbench .wb-switch-row span {
  font-size: 0.8125rem;
}
#view-workbench .wb-home-hero > .hint {
  font-size: 0.875rem;
}
#view-workbench .metric span,
#view-workbench .wb-home-hero .metric span {
  font-size: 0.75rem;
}
#view-workbench .menu-group-title {
  font-size: 1rem;
}
#view-workbench .menu-item strong {
  font-size: 1rem;
}

/* Consumer pass: warm paper, floating island, no leftover SaaS chrome. */
.brand-region-tag,
.brand-sub {
  display: none !important;
}

.auth-hero {
  max-width: 430px;
  margin: 0 auto 18px;
  padding: 8px 8px 0;
}
.auth-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.1rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink-primary);
}
.auth-hero p {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.lang-dropdown-btn {
  border: 0;
  background: var(--paper-card);
  box-shadow: 0 1px 0 rgba(26, 22, 18, 0.04);
}

#view-workbench .wb-kicker::before {
  display: none !important;
}

#view-workbench .app-tab.active > * {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
}

#view-workbench .wb-kicker {
  display: block !important;
  width: 100%;
  min-height: 0;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink-primary) !important;
}

#view-workbench .app-tab {
  gap: 10px;
}

#view-workbench .lead-list,
#view-workbench .product-list {
  gap: 10px;
}

#view-workbench .wb-home-hero,
#view-workbench .wb-profile-hero {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
  background: var(--paper-card);
  box-shadow: var(--shadow-card);
  border: 0;
  padding: 14px;
  border-radius: 20px;
}

#view-workbench .wb-profile-hero h2,
#view-workbench .wb-profile-hero h2.wb-profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

#view-workbench .wb-profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

#view-workbench .wb-profile-copy {
  min-width: 0;
  flex: 1 1 auto;
}

#view-workbench .wb-company-line,
#view-workbench .wb-profile-company,
#view-workbench .wb-home-company {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
  max-width: 100%;
  line-height: 1.35;
}

#view-workbench .wb-home-company,
#view-workbench .wb-profile-company {
  color: var(--wb-ink-500);
  font-size: 0.875rem;
}

/* Company name and the verification badge share this cluster. */
#view-workbench .wb-verify-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

#view-workbench .wb-profile-company-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-workbench .wb-verify-open {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  text-align: left;
}

#view-workbench button.wb-verify-label {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

#view-workbench .wb-verify-mark {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  line-height: 0;
}

#view-workbench .wb-verify-mark--none { color: #9CA3AF; }
#view-workbench .wb-verify-mark--pending { color: #E6B400; }
#view-workbench .wb-verify-mark--verified { color: #16A34A; }

#view-workbench .wb-verify-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: inherit;
}

#view-workbench .wb-verify-mark--none + .wb-verify-label,
#view-workbench .wb-company-line:has(.wb-verify-mark--none) .wb-verify-label,
#view-workbench .wb-home-company:has(.wb-verify-mark--none) .wb-verify-label,
#view-workbench .wb-profile-company:has(.wb-verify-mark--none) .wb-verify-label { color: #6B7280; }
#view-workbench .wb-verify-mark--pending + .wb-verify-label,
#view-workbench .wb-company-line:has(.wb-verify-mark--pending) .wb-verify-label,
#view-workbench .wb-home-company:has(.wb-verify-mark--pending) .wb-verify-label,
#view-workbench .wb-profile-company:has(.wb-verify-mark--pending) .wb-verify-label { color: #B45309; }
#view-workbench .wb-verify-mark--verified + .wb-verify-label,
#view-workbench .wb-company-line:has(.wb-verify-mark--verified) .wb-verify-label,
#view-workbench .wb-home-company:has(.wb-verify-mark--verified) .wb-verify-label,
#view-workbench .wb-profile-company:has(.wb-verify-mark--verified) .wb-verify-label { color: #15803D; }

#view-workbench .wb-profile-hero .hint {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

#view-workbench .status-tag,
#view-workbench .badge.status-tag {
  display: inline-flex;
  margin-top: 6px;
  background: var(--emerald-tint);
  color: var(--emerald-700);
}

#view-workbench .wb-profile-top,
#view-workbench .wb-profile-top > div {
  min-width: 0;
  width: 100%;
}

#view-workbench .theme-chip-row {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--paper-card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

#view-workbench .theme-chip-row .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

#view-workbench .theme-chip-row .filter-chip {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

#view-workbench .wb-section-head {
  margin: 8px 2px 0;
}

#view-workbench .app-lead-card {
  padding: 14px;
  gap: 12px;
  border-radius: 20px;
}

#view-workbench #tab-profile > .sheet:not(.wb-profile-hero) {
  padding: 2px 10px;
  border-radius: 20px;
}

#view-workbench .contact-locked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

#view-workbench .contact-locked-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#view-workbench .contact-locked .ghost-btn,
#view-workbench .contact-locked .primary-btn {
  width: auto;
  min-width: 0;
  max-width: 100%;
  justify-self: end;
}

#view-workbench .wb-section-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.yield-card {
  background: var(--paper-card);
  box-shadow: var(--shadow-card);
}

#toast {
  background: #1A1612;
}

#view-workbench .academy-actions .primary-btn {
  border-radius: var(--radius-pill);
}

#view-workbench .app-tab.active,
#view-workbench #tab-academy.active {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#view-workbench .app-tab.active::-webkit-scrollbar,
#view-workbench #tab-academy.active::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 1023px) {
  #view-workbench .dock,
  .dock {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 0 !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    padding: 4px !important;
    border-radius: 28px !important;
    border-top: 0 !important;
    background: rgba(255, 252, 247, 0.92) !important;
    box-shadow: var(--shadow-dock) !important;
  }
  #view-workbench .dock button,
  .dock button {
    min-height: 0 !important;
    height: 100%;
    border-radius: 22px !important;
  }
  #view-workbench .dock button.active,
  .dock button.active {
    background: var(--emerald-tint) !important;
    color: var(--emerald-700) !important;
  }
}

.primary-btn:active:not(:disabled),
.role:active {
  transform: scale(0.98);
}

.module-app {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 40rem;
}

.module-lead,
.module-warranty {
  margin: 0;
  color: #3d4a5c;
  font-size: 14px;
  line-height: 1.5;
}

.module-warranty {
  color: #667085;
  font-size: 13px;
}

.module-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.module-result-pair {
  display: grid;
  gap: 16px;
}

.module-result {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.module-result > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid #eef0f3;
}

.module-result > div:last-child {
  border-bottom: 0;
}

.module-result dt {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.module-result dd {
  margin: 0;
  color: #1a1612;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.module-app > .primary-btn {
  width: auto;
  min-width: 160px;
  align-self: flex-start;
}

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

.module-sn-field {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--wb-hairline, var(--line-subtle));
  border-radius: 14px;
  background: #f7f8fa;
  box-sizing: border-box;
}

.module-sn-field .module-sn-input,
#tab-tools .module-sn-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block;
  font: inherit;
  font-size: 1rem !important;
}

.module-sn-field .module-sn-input:focus {
  outline: none;
}

.module-sn-scan-btn {
  position: static;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  transform: none;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--emerald-700, #007a36);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.module-sn-add {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 154, 68, 0.12);
  color: #007a36;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
}

.module-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.module-captcha-row .module-sn-input {
  flex: 1 1 auto;
}

.module-captcha-code {
  flex: 0 0 88px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.module-sn-scan-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.module-sn-scan-btn.is-active,
.module-sn-scan-btn:not(:disabled):active {
  background: color-mix(in srgb, var(--emerald-tint, #e8f5ef) 90%, #fff);
}

.module-sn-field-scan {
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--emerald-tint, #e8f5ef) 70%, #fff);
}

.module-sn-scan-live {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #1a1612);
}

.module-scan-panel {
  margin-top: 0;
}

.module-queue-head {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wb-ink-500, #6b7280);
}

.module-scan-video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}

.module-queue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
  min-height: 1.5rem;
}

.module-queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--emerald-tint, #e8f5ef) 85%, #fff);
  color: var(--ink, #1a1612);
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.module-queue-x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

#btn-module-clear {
  margin-top: 0;
}

#view-workbench .lead-item.locked .lead-blur-body {
  pointer-events: none;
  filter: blur(6px);
  opacity: 0.32;
}
#view-workbench .lead-item.locked::after {
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(245, 243, 238, 0.45);
  pointer-events: none;
}
#view-workbench .lead-lock-overlay {
  z-index: 2;
}

#view-workbench .app-lead-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}
#view-workbench .lead-photo-wrap {
  position: relative;
}
#view-workbench .lead-photo,
.lead-detail > .lead-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #163325 0%, #2F6B4A 55%, #C9A227 130%);
  overflow: hidden;
}
.lead-detail > .lead-photo--hero {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
#view-workbench .lead-photo-img,
.lead-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#view-workbench .lead-photo-svg,
.lead-photo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#view-workbench .lead-photo-label,
.lead-photo-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(16, 35, 58, 0.55);
  padding: 4px 8px;
  border-radius: 999px;
}
#view-workbench .lead-photo.has-photo .lead-photo-label { display: none; }
#view-workbench .lead-photo-overlay {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  z-index: 1;
}
#view-workbench .lead-photo-overlay .lead-chip-country {
  background: rgba(255,255,255,0.92);
}
#view-workbench .lead-photo-overlay .lead-chip-date {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
#view-workbench .lead-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}
#view-workbench .lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
#view-workbench .lead-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#view-workbench .lead-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
#view-workbench .lead-chip-country {
  background: #F3F0EA;
  color: #1A1A1A;
}
#view-workbench .lead-chip-type {
  background: #FBE8D2;
  color: #C45C12;
}
#view-workbench .lead-chip-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}
#view-workbench .lead-pin {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  text-decoration: none;
  font-size: 18px;
}
#view-workbench .lead-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-primary);
}
#view-workbench .lead-check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: #007A36;
  color: #fff;
  font-size: 11px;
  align-items: center;
  justify-content: center;
  vertical-align: 2px;
}
#view-workbench .lead-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
#view-workbench .wb-intel-banner {
  background: #10233A;
  color: #fff;
  border-radius: 14px;
  min-height: 48px;
}
#view-workbench .wb-intel-banner span,
#view-workbench .wb-intel-banner b {
  color: #fff;
}
#view-workbench .wb-intel-banner b { color: #F0C14B; font-weight: 800; }
#view-workbench .lead-unlock-btn {
  background: #F5A623 !important;
  color: #fff !important;
  border-radius: 14px;
  min-height: 48px;
  box-shadow: none !important;
}
.wb-sheet:has(.lead-detail) .wb-sheet-head h3,
.wb-sheet:has(.lead-detail) #wb-sheet-sub { display: none; }
.wb-sheet:has(.lead-detail) .wb-sheet-head {
  justify-content: flex-end;
  border-bottom: 0;
  padding-bottom: 0;
}
.wb-sheet:has(.lead-detail) .wb-sheet-body { padding: 0 0 28px; }
.lead-detail { display: grid; gap: 0; }
.lead-detail-body { display: grid; gap: 14px; padding: 16px 18px 0; }
.lead-detail .lead-title { font-size: 20px; }
.lead-facts { display: grid; gap: 0; }
.lead-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 14px;
}
.lead-fact span { color: var(--ink-muted); }
.lead-fact b { text-align: right; font-weight: 700; }
.lead-map-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #10233A;
  color: #fff;
}
.lead-map-kicker { font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
.lead-map-card strong { display: block; font-size: 15px; }
.lead-map-card .meta { color: rgba(255,255,255,0.75); }
.lead-map-go {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F5A623;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 44px;
  font-size: 18px;
}
.lead-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-subtle);
}
.lead-stat-row span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}
.lead-stat-row b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink-primary);
}
.lead-stat-row > div:nth-child(2) b { color: #F5A623; }
.lead-detail-h {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
}
.lead-detail-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}


/* Wide installer workspace. Phone rules stay below 1024px. */
@media (min-width: 1024px) {
  body.installer-body:has(#view-workbench:not([hidden])) {
    background: #f4f6f8;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid #e6e8ec;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner {
    max-width: none;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 20px 0 16px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .brand {
    width: auto;
    min-width: 216px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    max-width: none;
    width: auto;
    margin: 0;
    min-height: 100dvh;
    padding: 80px 32px 48px 264px;
  }

  #view-workbench {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    gap: 16px;
  }

  #view-workbench .app-tab {
    padding-bottom: 24px;
  }

  #view-workbench .dock,
  body.installer-body:has(#view-workbench:not([hidden])) .dock {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 232px;
    max-width: 232px;
    height: auto;
    min-height: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 0;
    border-right: 1px solid #e6e8ec;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    z-index: 80;
  }

  #view-workbench .dock button,
  body.installer-body:has(#view-workbench:not([hidden])) .dock button {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3d4a5c;
  }

  #view-workbench .dock button:hover {
    background: #f3f5f7;
    color: #10233f;
  }

  #view-workbench .dock button.active,
  #view-workbench .dock button.active:hover {
    background: rgba(0, 122, 54, 0.1);
    color: #067647;
  }

  #view-workbench .dock button.active::before {
    display: none;
  }

  #view-workbench .dock button:focus-visible,
  #view-workbench .menu-item:focus-visible,
  #view-workbench .app-lead-card:focus-visible,
  #view-workbench .academy-course-card:focus-visible {
    outline: 2px solid #007a36;
    outline-offset: 2px;
  }

  #view-workbench .wb-home-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    min-height: 0;
    margin: 0;
    padding: 0 4px 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench .wb-home-hero > .hint,
  #view-workbench .wb-home-hero > .wb-complete-hint {
    flex: 1 0 100%;
  }

  #view-workbench .wb-kicker {
    width: auto;
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  #view-workbench #tab-home > .sheet:not(.wb-home-hero) {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    box-shadow: none;
    padding: 8px;
  }

  #view-workbench .wb-section-head {
    padding: 10px 12px 2px;
  }

  #view-workbench .wb-section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
  }

  #view-workbench .lead-list,
  #view-workbench .product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  #view-workbench .app-lead-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
  }

  #view-workbench .app-lead-card:hover {
    border-color: #c5cad3;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  }

  #view-workbench .lead-photo,
  #view-workbench .lead-photo-wrap .lead-photo {
    height: 100%;
    min-height: 132px;
    aspect-ratio: auto;
  }

  #view-workbench .lead-body {
    align-content: start;
    gap: 8px;
    padding: 12px 16px;
  }

  #view-workbench .lead-spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  #view-workbench .contact-locked,
  #view-workbench .contact-unlocked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #view-workbench .primary-btn,
  #view-workbench .ghost-btn,
  #view-workbench .secondary-btn {
    width: auto;
    min-width: 128px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
  }

  #view-workbench .academy-play-btn,
  #view-workbench .academy-fs-btn {
    min-width: 72px;
    padding: 8px 12px;
  }

  #view-workbench .installer-actions,
  #view-workbench .academy-actions,
  #view-workbench .academy-lesson-actions {
    justify-content: flex-start;
  }

  #view-workbench #tab-tools > .tool-shell {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 1040px;
    padding: 0;
  }

  #view-workbench .tool-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 80px;
    padding: 8px;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    overflow: visible;
  }

  #view-workbench .tool-tab {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: left;
    box-shadow: none;
  }

  #view-workbench .tool-tab.is-on {
    background: rgba(0, 122, 54, 0.1);
    box-shadow: none;
  }

  #view-workbench .yield-app {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #view-workbench .tool-tab-panel {
    max-width: none;
    margin: 0;
    padding: 20px 24px 24px;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
  }

  #view-workbench #tab-profile.active {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  #view-workbench #tab-profile .wb-profile-hero {
    position: sticky;
    top: 80px;
    margin: 0;
    padding: 20px;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
  }

  #view-workbench #tab-profile > .sheet:not(.wb-profile-hero) {
    margin: 0;
    padding: 8px;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
  }

  #view-workbench #tab-profile .menu-item {
    border: 0;
    border-radius: 8px;
    padding: 12px;
  }

  #view-workbench #tab-profile .menu-item:hover {
    background: #f3f5f7;
  }

  #view-workbench #tab-profile > #btn-profile-logout {
    grid-column: 2;
    justify-self: start;
  }

  #view-workbench .academy-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  #view-workbench .academy-course-card,
  #view-workbench .academy-lesson-row {
    text-align: left;
  }

  #view-workbench .academy-course-card:hover,
  #view-workbench .academy-lesson-row:hover {
    border-color: #c5cad3;
  }

  #view-workbench .academy-native {
    max-width: 960px;
  }

  #view-workbench .academy-quiz,
  #view-workbench .academy-question {
    max-width: 760px;
  }

  .wb-overlay {
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(16, 24, 40, 0.45);
  }

  .wb-overlay .wb-sheet {
    width: min(760px, calc(100vw - 96px));
    max-height: min(86vh, 880px);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
  }
}
/* One box for every registration answer: text, phone, textarea, and picklist.
   Fill / radius / icons: see 29-register-demo-chrome.css (demo Field chrome). */
#register-form input[type="text"]:not(.reg-native-hidden),
#register-form input[type="email"],
#register-form input[type="password"],
#register-form input[type="search"],
#register-form textarea,
#register-form .reg-combo-btn {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1.5px solid transparent !important;
  border-radius: 16px !important;
  background: #f6f4ef !important;
  color: var(--ink-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

#register-form .iti input.js-intl-phone,
#register-form .iti input[name="phone"] {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border: 1.5px solid transparent !important;
  border-radius: 16px !important;
  background: #f6f4ef !important;
  color: var(--ink-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

#register-form .reg-combo-btn {
  padding-right: 36px !important;
}

#register-form .input-wrapper:has(.btn-toggle-pwd) input {
  padding-right: 44px !important;
}

#register-form textarea {
  height: auto !important;
  min-height: 96px !important;
  resize: vertical;
}

#register-form .reg-other-note {
  margin-top: 8px;
}

#register-form .reg-other-note[hidden],
#survey-form .reg-other-note[hidden],
#profile-setup-form .reg-other-note[hidden],
#register-form input[hidden],
#survey-form input[hidden],
#profile-setup-form input[hidden] {
  display: none !important;
}

#register-form input:focus,
#register-form textarea:focus,
#register-form .reg-combo-btn:focus {
  outline: none !important;
  border-color: var(--line-focus) !important;
  background: #fff !important;
  box-shadow: none !important;
}
/* Phone-only: desktop columns stay out of the card stack. */
.wb-page-count,
.lead-table-head,
.lead-col-date {
  display: none;
}

.lead-site {
  display: grid;
  gap: 4px;
  min-width: 0;
}

/* Wide workspace. Same DOM as the phone, laid out like a CRM list. */
@media (min-width: 1024px) {
  body.installer-body:has(#view-workbench:not([hidden])) {
    background: #fff;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid #e6e8ec;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner {
    max-width: none;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px 0 14px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .brand {
    width: auto;
    min-width: 216px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    max-width: none;
    width: auto;
    margin: 0;
    min-height: 100dvh;
    padding: 52px 0 0 216px;
    background: #fff;
  }

  #view-workbench {
    --lead-cols: 40px minmax(220px, 1.7fr) 112px 128px 120px 108px minmax(132px, 0.7fr);
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    background: #fff;
  }

  #view-workbench .app-tab,
  #view-workbench #tab-tools.app-tab {
    gap: 0;
    min-height: calc(100dvh - 52px);
    padding: 0 0 32px;
    background: #fff;
  }

  #view-workbench .dock,
  body.installer-body:has(#view-workbench:not([hidden])) .dock {
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    width: 216px;
    max-width: 216px;
    height: auto;
    min-height: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 10px 8px;
    border: 0;
    border-right: 1px solid #e6e8ec;
    border-radius: 0;
    background: #f7f8fa;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 80;
  }

  #view-workbench .dock button,
  body.installer-body:has(#view-workbench:not([hidden])) .dock button {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: transparent;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
  }

  #view-workbench .dock button > span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
  }

  #view-workbench .dock .dock-svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  #view-workbench .dock button:hover {
    background: #eef0f3;
    color: #10233f;
  }

  #view-workbench .dock button.active,
  #view-workbench .dock button.active:hover {
    background: #fff;
    color: #10233f;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  }

  #view-workbench .dock button.active .dock-svg {
    color: #067647;
  }

  #view-workbench .dock button.active::before {
    display: none;
  }

  #view-workbench .wb-home-hero {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 16px 24px 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench .wb-page-heading {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 4px 12px;
    min-width: 0;
  }

  #view-workbench .wb-kicker {
    width: auto;
    margin: 0;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    line-height: 1.4;
    color: #667085 !important;
  }

  #view-workbench .wb-region-chip {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
  }

  #view-workbench .wb-home-company {
    margin: 0;
    font-size: 13px;
  }

  #view-workbench #tab-home > .sheet.lead-sheet:not(.wb-home-hero):not(.wb-ticker):not(.wb-sponsor) {
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench #tab-home .wb-section-head {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    margin: 0;
    padding: 8px 24px 12px;
    border: 0;
  }

  #view-workbench #tab-home .wb-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }

  #view-workbench .wb-page-count {
    display: inline;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
  }

  #view-workbench .lead-table-head,
  #view-workbench .app-lead-card {
    display: grid;
    grid-template-columns: var(--lead-cols);
    column-gap: 16px;
    align-items: center;
  }

  #view-workbench .lead-table-head {
    height: 36px;
    padding: 0 24px;
    background: #f8f9fb;
    border-top: 1px solid #e6e8ec;
    border-bottom: 1px solid #e6e8ec;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
  }

  #view-workbench .lead-table-head > span {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-workbench .lead-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  #view-workbench .app-lead-card {
    grid-template-rows: none;
    min-height: 64px;
    margin: 0;
    padding: 8px 24px;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
  }

  #view-workbench .app-lead-card:hover {
    background: #f8fafc;
    box-shadow: none;
  }

  #view-workbench .app-lead-card .lead-body,
  #view-workbench .app-lead-card .lead-spec-grid,
  #view-workbench .app-lead-card .lead-photo-wrap,
  #view-workbench .app-lead-card.locked .lead-blur-body {
    display: contents;
  }

  #view-workbench .app-lead-card:not(.locked) .lead-site {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  #view-workbench .app-lead-card .lead-photo,
  #view-workbench .lead-photo-wrap .lead-photo {
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 32px;
    min-height: 32px;
    aspect-ratio: auto;
    border-radius: 4px;
  }

  #view-workbench .app-lead-card .lead-photo-overlay,
  #view-workbench .app-lead-card .lead-photo-label,
  #view-workbench .app-lead-card .wb-intel-banner,
  #view-workbench .app-lead-card.locked .lead-chip-row,
  #view-workbench .app-lead-card.locked::after {
    display: none;
  }

  #view-workbench .app-lead-card .lead-title {
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-workbench .app-lead-card.locked .lead-title {
    grid-column: 2;
    grid-row: 1;
  }

  #view-workbench .app-lead-card .lead-desc {
    margin: 0;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-workbench .app-lead-card .lead-spec {
    display: block;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
  }

  #view-workbench .app-lead-card .lead-spec span {
    display: none;
  }

  #view-workbench .app-lead-card .lead-spec b {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-workbench .app-lead-card .lead-spec-capacity { grid-column: 3; }
  #view-workbench .app-lead-card .lead-spec-roof { grid-column: 4; }
  #view-workbench .app-lead-card .lead-spec-maker { grid-column: 5; }

  #view-workbench .app-lead-card .lead-col-date {
    display: block;
    grid-column: 6;
    grid-row: 1;
    overflow: hidden;
    color: #667085;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-workbench .app-lead-card .contact-locked,
  #view-workbench .app-lead-card .contact-unlocked {
    display: flex;
    grid-column: 7;
    grid-row: 1;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  #view-workbench .app-lead-card .contact-locked {
    flex-direction: row;
  }

  #view-workbench .app-lead-card .contact-locked-copy,
  #view-workbench .app-lead-card .contact-locked .meta,
  #view-workbench .app-lead-card .contact-unlocked .meta,
  #view-workbench .app-lead-card .contact-unlocked b {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-workbench .app-lead-card .contact-locked .meta + .meta,
  #view-workbench .app-lead-card .contact-unlocked:has(.installer-actions) > div:first-child {
    display: none;
  }

  #view-workbench .app-lead-card .installer-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: auto;
    margin: 0;
  }

  #view-workbench .app-lead-card .installer-actions .primary-btn,
  #view-workbench .app-lead-card .installer-actions .secondary-btn,
  #view-workbench .app-lead-card .lead-unlock-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
  }

  #view-workbench .app-lead-card .lead-unlock-btn,
  #view-workbench .app-lead-card .installer-actions .primary-btn {
    background: #007a36 !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  #view-workbench .app-lead-card.locked {
    background: #fff;
    border-style: solid;
  }

  #view-workbench .app-lead-card.locked .lead-blur-body {
    filter: none;
    opacity: 1;
  }

  #view-workbench .app-lead-card.locked .lead-lock-overlay {
    position: static;
    inset: auto;
    display: flex;
    grid-column: 7;
    grid-row: 1;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-align: left;
  }

  #view-workbench .app-lead-card.locked .lead-lock-overlay span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-workbench .primary-btn,
  #view-workbench .ghost-btn,
  #view-workbench .secondary-btn {
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
  }

  #view-workbench #tab-tools > .tool-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 920px;
    padding: 20px 28px 48px;
  }

  #view-workbench .tool-modules-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 12px;
    overflow: visible;
    clip: auto;
    color: #10233f;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    pointer-events: auto;
  }

  #view-workbench .tool-tabs {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    position: static;
    overflow: visible;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e6e8ec;
    border-radius: 0;
  }

  #view-workbench .tool-tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
  }

  #view-workbench .tool-tab.is-on {
    background: transparent;
    color: #067647;
    box-shadow: inset 0 -2px 0 #067647;
  }

  #view-workbench .tool-tab-panel {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  #view-workbench .yield-app {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  #view-workbench .yield-type-seg {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 0 12px;
  }

  #view-workbench .yield-type-btn {
    flex: 1 1 0;
  }

  #view-workbench .yield-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    align-items: start;
    margin: 0;
    padding: 8px 0 18px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench .yield-card-title,
  #view-workbench .yield-hint,
  #view-workbench .yield-mix,
  #view-workbench .yield-line-mode,
  #view-workbench .yield-line-mix,
  #view-workbench .yield-app > .yield-back,
  #view-workbench .yield-app > .primary-btn,
  #view-workbench .yield-app > .secondary-btn,
  #view-workbench .yield-app > .hint,
  #view-workbench .yield-app > .yield-err,
  #view-workbench .yield-app > .yield-note {
    grid-column: 1 / -1;
  }

  #view-workbench .yield-card-title {
    margin: 0;
    color: #10233f;
    font-size: 14px;
    font-weight: 700;
  }

  #view-workbench .yield-line {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    border-bottom: 0;
  }

  #view-workbench .yield-line-label {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
  }

  #view-workbench .yield-line-control,
  #view-workbench .yield-pill,
  #view-workbench .yield-bare {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  #view-workbench .yield-bare {
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
  }

  #view-workbench .yield-pill select,
  #view-workbench .yield-ghost,
  #view-workbench .yield-bare-input {
    max-width: none !important;
    height: 36px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left;
  }

  #view-workbench .yield-pill select,
  #view-workbench .yield-ghost {
    width: 100% !important;
  }

  #view-workbench .yield-bare-input {
    width: auto !important;
    flex: 1 1 auto;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
  }

  #view-workbench .yield-pill select {
    padding: 0 28px 0 10px;
  }

  #view-workbench .yield-ghost,
  #view-workbench .yield-bare-input {
    min-width: 0;
    padding: 0 10px !important;
  }

  #view-workbench .yield-app > .yield-back,
  #view-workbench .yield-app > .primary-btn,
  #view-workbench .yield-app > .secondary-btn {
    justify-self: start;
    align-self: flex-start;
    min-width: 140px;
    margin-top: 8px;
  }

  #view-workbench .module-app {
    max-width: 880px;
  }

  #view-workbench .academy-native {
    max-width: none;
    padding: 0 0 24px;
    background: #fff;
  }

  #view-workbench .academy-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-top: 1px solid #e6e8ec;
    border-radius: 0;
  }

  #view-workbench .academy-course-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(240px, 1.8fr) minmax(140px, 200px) auto;
    gap: 8px 24px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 16px 24px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
  }

  #view-workbench .academy-course-card:hover {
    background: #f8fafc;
  }

  #view-workbench .academy-course-card strong {
    font-size: 14px;
    font-weight: 700;
  }

  #view-workbench .academy-course-card .meta {
    margin: 0;
    color: #667085;
    font-size: 13px;
  }

  #view-workbench .academy-progress {
    height: 6px;
    margin: 0;
    overflow: hidden;
    background: #e8eaee;
    border-radius: 99px;
  }

  #view-workbench .academy-progress > i {
    display: block;
    height: 100%;
    background: #007a36;
  }

  #view-workbench .academy-course-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: #667085;
    font-size: 13px;
  }

  #view-workbench .academy-cert-list {
    margin: 0;
    padding: 20px 24px 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench .academy-cert-list h3 {
    margin: 0 0 8px;
    font-size: 14px;
  }

  #view-workbench .academy-cert-link {
    border-bottom: 1px solid #eef0f3;
    color: #10233f;
    text-decoration: none;
  }

  #view-workbench .academy-body:has(.academy-lesson-list) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 10px 24px;
    align-items: start;
    max-width: none;
    padding: 0;
  }

  #view-workbench .academy-body:has(.academy-lesson-list) > * {
    grid-column: 1;
  }

  #view-workbench .academy-body:has(.academy-lesson-list) > .academy-actions {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 8;
    position: sticky;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
  }

  #view-workbench .academy-actions .primary-btn,
  #view-workbench .academy-actions .ghost-btn {
    width: 100%;
  }

  #view-workbench .academy-lesson-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
  }

  #view-workbench .academy-lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
  }

  #view-workbench .academy-lesson-row:hover {
    background: #f8fafc;
  }

  #view-workbench .academy-back {
    width: auto;
    min-height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #067647;
    font-weight: 600;
  }

  #view-workbench .academy-quiz,
  #view-workbench .academy-question {
    max-width: 720px;
  }

  #view-workbench #tab-profile.active {
    display: block;
    max-width: none;
    padding: 0 0 40px;
    background: #fff;
  }

  #view-workbench #tab-profile .wb-profile-hero {
    position: static;
    display: flex;
    align-items: center;
    max-width: 760px;
    margin: 0;
    padding: 20px 28px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e6e8ec;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench #tab-profile .wb-profile-name {
    font-size: 18px;
    font-weight: 700;
  }

  #view-workbench #tab-profile > .sheet:not(.wb-profile-hero) {
    max-width: 760px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench #tab-profile .menu-item,
  #view-workbench #tab-profile a.menu-item {
    min-height: 56px;
    margin: 0 12px;
    padding: 10px 8px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0;
    color: #10233f;
    text-decoration: none;
  }

  #view-workbench #tab-profile a.menu-item strong,
  #view-workbench #tab-profile a.menu-item span {
    color: #10233f;
    text-decoration: none;
  }

  #view-workbench #tab-profile a.menu-item span {
    color: #667085;
  }

  #view-workbench #tab-profile .menu-item:hover {
    background: #f8fafc;
  }

  #view-workbench #tab-profile > #btn-profile-logout {
    display: inline-flex;
    width: auto;
    margin: 16px 28px 0;
  }

  .wb-overlay {
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(16, 24, 40, 0.45);
  }

  .wb-overlay .wb-sheet {
    width: min(960px, calc(100vw - 80px));
    max-height: min(86vh, 880px);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
  }

  .lead-detail {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: stretch;
  }

  .lead-detail > .lead-photo {
    height: 100%;
    min-height: 280px;
    aspect-ratio: auto;
    border-radius: 12px 0 0 12px;
  }

  .lead-detail-body {
    padding: 20px 22px 28px;
  }

  .lead-stat-row > div:nth-child(2) b {
    color: #10233f;
  }
}
/* Guide sits on the edge. Desktop pages fill the space beside the nav. */
.guide-edge {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 70;
  margin: 0;
  padding: 14px 8px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: rgba(16, 35, 63, 0.42);
  color: #fff;
  font: 700 12px/1.2 var(--font-sans, Figtree, sans-serif);
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dock button > span {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

button.wb-profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wb-profile-country {
  margin: 0;
  color: #6f685f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}

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

.account-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.account-form input,
.account-form select {
  width: 100%;
  min-height: 40px;
}

.account-form select[multiple] {
  min-height: 120px;
}

.account-readonly {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}

.account-readonly span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.account-readonly strong {
  color: #1a1612;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.guide-edge:hover,
.guide-edge:focus-visible {
  background: rgba(6, 118, 71, 0.82);
}

.guide-drawer {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: flex;
  flex-direction: column;
  width: auto;
  height: auto;
  background: #f4efe6;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.guide-drawer[hidden] {
  display: none;
}

.guide-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px 16px;
  border-bottom: 1px solid rgba(16, 35, 63, 0.08);
  background: #fffcf7;
  font-family: var(--font-sans, Figtree, sans-serif);
}

.guide-drawer-bar strong {
  font-family: var(--font-sans, Figtree, sans-serif);
  font-size: 16px;
  font-weight: 700;
}

#guide-drawer-close {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #10233f;
  font-weight: 700;
}

.guide-drawer iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
}

#view-workbench .lead-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46vh;
  margin: 0;
  padding: 32px 20px 96px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#view-workbench .lead-placeholder-copy {
  max-width: 36rem;
  margin: 0;
  color: #3d4a5c;
  font-size: 17px;
  line-height: 1.5;
}

#view-workbench .lead-placeholder .primary-btn {
  width: auto;
  min-width: 180px;
}

@media (min-width: 1024px) {
  #view-workbench #tab-home,
  #view-workbench #tab-academy,
  #view-workbench #tab-tools,
  #view-workbench #tab-profile,
  #view-workbench #tab-profile .wb-profile-hero,
  #view-workbench #tab-profile > .sheet:not(.wb-profile-hero),
  #view-workbench #tab-tools > .tool-shell,
  #view-workbench .yield-app,
  #view-workbench .academy-native,
  #view-workbench .academy-native:has(.academy-lesson-list),
  #view-workbench .academy-quiz,
  #view-workbench .academy-question {
    max-width: none;
    width: 100%;
  }

  #view-workbench .module-app {
    max-width: 880px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 28px;
    align-items: end;
  }

  #view-workbench .module-app > .module-lead,
  #view-workbench .module-app > .module-warranty,
  #view-workbench .module-app > .module-result-pair,
  #view-workbench .module-app > .module-result,
  #view-workbench .module-app > .module-scan-panel,
  #view-workbench .module-app > .yield-err,
  #view-workbench .module-app > .hint,
  #view-workbench .module-app-result > .primary-btn {
    grid-column: 1 / -1;
  }

  #view-workbench .module-result-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  #view-workbench .yield-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    align-items: start;
  }

  #view-workbench .yield-card-title {
    grid-column: 1 / -1;
  }

  #view-workbench .lead-placeholder {
    min-height: calc(100dvh - 220px);
    padding-bottom: 48px;
  }

  .guide-edge {
    top: 50%;
  }

  .guide-drawer {
    top: 16px;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: min(680px, calc(100vw - 32px));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
  }
}

.feedback-edge {
  position: fixed;
  left: 16px;
  bottom: 108px;
  z-index: 70;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.46);
  color: #fff;
  font: 700 14px/1 var(--font-sans, Figtree, sans-serif);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: grab;
  touch-action: none;
}

.guide-edge,
.guide-drawer-bar,
.wb-sheet-head,
.feedback-edge {
  touch-action: none;
}

.guide-edge,
.feedback-edge,
.guide-drawer-bar {
  cursor: grab;
}

.guide-edge.is-placed,
.feedback-edge.is-placed,
.guide-drawer.is-placed,
.wb-sheet.is-placed {
  right: auto;
  bottom: auto;
}

.guide-drawer.is-placed {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
}

.wb-sheet.is-placed {
  position: fixed;
  margin: 0;
  transform: none;
}

.lead-placeholder-title {
  margin: 0;
  color: #10233f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.account-wide textarea,
.wb-sheet textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 12px;
  font: 16px/1.4 var(--font-sans, Figtree, sans-serif);
}

.wb-sheet-emphasis .lead-placeholder-copy {
  font-size: 18px;
}

.help-edge {
  position: fixed;
  right: 0;
  top: 46%;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: rgba(16, 35, 63, 0.32);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  touch-action: manipulation;
}

.help-edge.is-placed {
  right: 0;
  top: 46%;
  left: auto;
  bottom: auto;
}

.wb-sheet-form .wb-sheet-head h3,
.wb-sheet-form .hint,
.help-form,
.help-form label,
.help-form select,
.help-form textarea,
.help-form button,
.help-file-name {
  font-family: var(--font-sans, Figtree, sans-serif);
}

.wb-sheet-form .wb-sheet-head h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.wb-sheet-form .hint {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.help-form {
  display: grid;
  gap: 14px;
}

.help-form label,
.help-file-label {
  display: grid;
  gap: 6px;
  color: #3d4a5c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.help-form select,
.help-form textarea {
  width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(16, 35, 63, 0.16) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #1a1612 !important;
  font-family: var(--font-sans, Figtree, sans-serif) !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.help-form textarea {
  min-height: 128px !important;
  resize: vertical;
}

.help-file {
  display: grid;
  gap: 8px;
}

.help-file-pick {
  justify-self: start;
  width: auto;
  min-height: 40px;
  padding: 0 14px;
}

.help-file-name {
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.help-file-input {
  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;
  border: 0 !important;
  white-space: nowrap !important;
}

.help-choices {
  display: grid;
  gap: 12px;
}

.help-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.9);
  color: #10233f;
  font: 700 16px/1.2 var(--font-sans, Figtree, sans-serif);
  text-align: left;
}

.help-choice svg {
  flex: 0 0 auto;
}

.wb-verify-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
/* Demo-matched installer surface: warm paper, green brand header, floating dock. */

body.installer-body {
  background: #f4efe6;
  color: #1c1915;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

body.installer-body .mesh-backdrop { display: none; }

body.installer-body .installer-topbar {
  background: #fffcf7;
  border: 0;
  border-bottom: 1px solid #e6dfd4;
  box-shadow: none;
  backdrop-filter: none;
}

body.installer-body .brand {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body.installer-body .brand-logo {
  height: 32px;
  width: auto;
}

body.installer-body:has(#view-workbench:not([hidden])) .brand-text,
body.installer-body:has(#view-auth:not([hidden])) .brand-text {
  display: none;
}

body.installer-body .lang-dropdown-btn,
body.installer-body #btn-logout {
  background: #fff;
  color: #1c1915;
  border: 1.5px solid #e6dfd4;
  border-radius: 999px;
  box-shadow: none;
}

body.installer-body .installer-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  background: #f4efe6;
  min-height: 100vh;
}

#view-workbench {
  background: #f4efe6;
  gap: 0;
  padding: 0;
}

#view-workbench .app-tab {
  background: #f4efe6;
  padding: 0 16px 112px;
  min-height: 100vh;
  gap: 0;
}

.workbench-status-banner { display: none; }

.page-brand {
  margin: 0 -16px;
  padding: 64px 20px 46px;
  background: linear-gradient(165deg, #075c32 0%, #009a44 62%, #1aaa55 100%);
  color: #fff;
}

.page-kicker {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.88;
}

.page-brand-title {
  margin: 2px 0 0;
  font-family: Figtree, sans-serif;
  font-size: 22px;
  font-weight: 750;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.page-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.page-brand-company {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 6px 0 0;
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
}

.page-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fffcf7;
  color: #007a36;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  flex: none;
}

.page-straddle {
  margin: -28px 0 0;
  position: relative;
  z-index: 2;
}

.opp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 14px;
  background: #fffcf7;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(40, 30, 10, 0.12);
  color: #6f685f;
}

.opp-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 15px;
  padding: 0;
  min-height: 0;
  box-shadow: none;
}

.opp-section { padding: 16px 0 0; }

.opp-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.opp-muted { color: #6f685f; font-size: 13px; font-weight: 600; }

.opp-fill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #fffcf7;
  color: #1c1915;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
}

.opp-fill-copy { min-width: 0; flex: 1; }
.opp-fill h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.opp-fill p { margin: 0 0 12px; max-width: 62ch; color: #5c564e; font-size: 14px; line-height: 1.45; }
.opp-fill-bar { height: 6px; border-radius: 99px; background: #efe8df; overflow: hidden; }
.opp-fill-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: #007a36;
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
}
.opp-fill strong { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #007a36; font-variant-numeric: tabular-nums; }
.opp-fill .primary-btn {
  width: auto;
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.opp-fill .primary-btn:active:not(:disabled) { transform: scale(0.97); }
.opp-fill .primary-btn:focus-visible { outline: 2px solid #007a36; outline-offset: 3px; }

@media (max-width: 720px) {
  .opp-fill { flex-direction: column; align-items: stretch; }
  .opp-fill .primary-btn { width: 100%; }
}

#tab-profile #profile-details-slot {
  margin-top: 18px;
}

#tab-profile #profile-setup-form {
  margin: 0;
  padding: 4px 0 8px;
  background: transparent;
  box-shadow: none;
}

#tab-profile .detail-suggest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #14532d;
}

#tab-profile .detail-suggest span {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

#tab-profile .detail-suggest button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #14532d;
  cursor: pointer;
}

#tab-profile .detail-suggest button:active {
  transform: scale(0.97);
}

#tab-profile .detail-suggest button:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .opp-fill .primary-btn,
  #tab-profile .detail-suggest button { transition: none; }
}

.opp-promo {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
  align-items: center;
  background: linear-gradient(135deg, #0c6b38, #009a44 55%, #df8a45);
  color: #fff;
  border-radius: 22px;
  padding: 16px;
  min-height: 148px;
}

.opp-promo h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.opp-promo p { margin: 0 0 12px; font-size: 13px; }

.opp-thumb {
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, hsl(150 42% 46%), hsl(150 35% 28%));
}

.opp-promo .opp-thumb { height: 108px; }

body.installer-body .opp-promo .primary-btn {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: linear-gradient(180deg, #f3a15f, #e07a3d 55%, #c8642c);
  box-shadow: 0 8px 16px rgba(180, 80, 20, 0.25);
}

.opp-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.opp-hscroll::-webkit-scrollbar { display: none; }

.opp-more { margin-top: 12px; }

.opp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.opp-card {
  position: relative;
  text-align: left;
  width: 100%;
  background: #fffcf7;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  padding: 12px;
  color: #1c1915;
}

.opp-hscroll .opp-card { min-width: 168px; flex: 0 0 168px; }

#tab-home .opp-roofs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Phone roofs stay one-up. 28-demo-faithful.css sets #tab-home .opp-grid
   to two columns at the same specificity, which would override the rule above. */
@media (max-width: 1023px) {
  #tab-home .opp-grid.opp-roofs {
    grid-template-columns: minmax(0, 1fr);
  }
}

#tab-home .opp-roofs .opp-card {
  min-width: 0;
  flex: none;
}

#tab-home .opp-roofs .opp-thumb {
  height: auto;
  aspect-ratio: 16 / 9;
}

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

#tab-home,
#tab-home .opp-section,
#tab-home #home-pipeline {
  position: static;
  overflow: visible;
  height: auto;
  max-height: none;
}

#tab-home .opp-more {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.opp-card b { display: block; font-size: 15px; }

.opp-meta {
  color: #6f685f;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
}

.opp-chip,
.opp-pill {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.opp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e5f6ec;
  color: #007a36;
  padding: 2px 8px;
  font-size: 12px;
}

.opp-chip-mute { background: #f0ebe3; color: #6f685f; }

.opp-chip-btn {
  border: 0;
  cursor: pointer;
  align-self: center;
  max-width: 46%;
}

.opp-plus {
  position: absolute;
  right: 16px;
  bottom: 44px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #009a44;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(0, 122, 54, 0.3);
}

.opp-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.opp-pills::-webkit-scrollbar { display: none; }

.opp-pill {
  background: #fffcf7;
  color: #6f685f;
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.05);
  white-space: nowrap;
}

.opp-pill.is-on { background: #009a44; color: #fff; }

.opp-empty {
  background: #fffcf7;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  text-align: center;
  color: #6f685f;
  padding: 28px 16px;
  margin: 0;
  font-weight: 600;
}

.opp-empty p { margin: 0; }

.opp-summary {
  background: #fffcf7;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(40, 30, 10, 0.12);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.opp-summary b { font-size: 20px; display: block; }
.opp-summary small { color: #6f685f; }

/* Profile summary: company and country share the left of the existing pill. */
#tab-profile .wb-profile-place {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
}
#tab-profile .wb-profile-place .wb-profile-company-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  color: #1c1915;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tab-profile .wb-profile-place .wb-profile-company-name.is-empty {
  color: #6f685f;
  font-weight: 600;
}
#tab-profile .opp-summary .wb-profile-country {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tab-profile .opp-menu { padding: 16px 0 0; display: grid; gap: 10px; }

#tab-profile .menu-item {
  width: 100%;
  text-align: left;
  background: #fffcf7;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  padding: 14px 16px;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

#tab-profile #btn-profile-logout,
#tab-profile #btn-send-test-notification {
  width: 100%;
  margin: 0;
  border-radius: 18px;
  min-height: 48px;
  background: #fffcf7;
  border: 0;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
}

#tab-tools .tool-tabs {
  display: flex;
  gap: 8px;
  background: #f3eee6;
  padding: 4px;
  border: 0;
  border-radius: 14px;
}

#tab-tools .tool-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 12px;
  min-height: 40px;
  color: #6f685f;
  font-weight: 700;
}

#tab-tools .tool-tab.is-on {
  background: #009a44;
  color: #fff;
  border: 0;
}

#tab-tools .tool-tab-panel { padding-top: 8px; }

.academy-native { background: transparent; }

.academy-course-card,
.academy-lesson-row {
  background: #fffcf7;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  padding: 14px 16px;
  margin: 0 0 10px;
  width: 100%;
  text-align: left;
}

body.installer-body .primary-btn {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  background: linear-gradient(180deg, #14a84f, #009a44 45%, #007a36);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(0, 122, 54, 0.28);
}

body.installer-body .ghost-btn,
body.installer-body .secondary-btn {
  border-radius: 999px;
  border: 1px solid #e4ddd2;
  background: #fff;
  color: #1c1915;
  font-weight: 700;
}

body.installer-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
body.installer-body textarea,
body.installer-body select {
  background: #f6f4ef;
  border: 1.5px solid transparent;
  border-radius: 16px;
  color: #1c1915;
}

body.installer-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
body.installer-body textarea:focus,
body.installer-body select:focus {
  border-color: #009a44;
  background: #fff;
  outline: none;
}

.opp-search input,
.opp-search input:focus {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.installer-body:has(#view-auth:not([hidden])) {
  background: #064e28;
}

body.installer-body:has(#view-auth:not([hidden])) .installer-main {
  background: transparent;
  max-width: 480px;
  padding: 0;
  min-height: 100vh;
}

#view-auth {
  min-height: 100vh;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #064e28 0%, #009a44 38%, #f4efe6 38%);
}

.auth-hero {
  position: relative;
  min-height: 132px;
  padding: 18px 22px 0;
  color: #fff;
}

.auth-kicker { display: none; }

.auth-art {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 148px;
  height: 106px;
}

.auth-card {
  background: #fffcf7;
  border: 0;
  border-radius: 32px 32px 0 0;
  box-shadow: none;
  margin-top: 8px;
  min-height: calc(100vh - 180px);
  padding: 22px 22px 36px;
  animation: demo-sheet 0.7s cubic-bezier(0.22, 1.25, 0.36, 1);
}

#view-auth .auth-card h1 {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
  color: #1c1915;
}

.auth-sub { margin: 0 0 16px; color: #6f685f; font-size: 16px; }

#view-auth .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
}

#view-auth .auth-tab {
  border: 1.5px solid #e6dfd4;
  border-radius: 14px;
  background: #fff;
  color: #1c1915;
  min-height: 44px;
  box-shadow: none;
}

#view-auth .auth-tab.active {
  background: #e5f6ec;
  border-color: #009a44;
  color: #007a36;
}

#auth-app-links {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: #e5f6ec;
  border: 1.5px solid #009a44;
  border-radius: 16px;
}

#view-auth .auth-aux-link { color: #007a36; font-weight: 700; }

#view-survey,
#view-upgrade {
  background: #f4efe6;
  padding: 16px 16px 32px;
}

.modal-overlay { background: rgba(28, 25, 21, 0.4); }

.modal-sheet-90 {
  background: #fffcf7;
  border-radius: 28px 28px 0 0;
}

body[data-screen="register"] .modal-sheet-90 {
  border-radius: 0;
  box-shadow: none;
}

.form-card-panel,
.ticket-hero {
  background: #fffcf7;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
}

#register-form .form-card-panel {
  background: #fff;
  border: 1px solid #efe8dc;
  box-shadow: none;
}

body.installer-body .dock {
  left: 16px;
  right: 16px;
  width: auto;
  max-width: none;
  transform: none;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  height: 64px;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 16px 40px rgba(40, 30, 10, 0.18);
}

body.installer-body .dock button { color: #8d877e; font-size: 10px; font-weight: 700; }
body.installer-body .dock button.active { color: #007a36; background: transparent; box-shadow: none; }
body.installer-body .dock button.active .dock-svg {
  background: transparent;
  color: #007a36;
  border-radius: 0;
  width: 22px;
  height: 22px;
  padding: 0;
}

body.installer-body .help-edge,
body.installer-body .help-edge.is-placed {
  right: 0;
  left: auto;
  top: 42%;
  width: auto;
  height: auto;
  padding: 8px 6px;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 252, 247, 0.92);
  color: #007a36;
  box-shadow: -4px 6px 16px rgba(60, 40, 20, 0.08);
}

.wb-overlay { background: rgba(28, 25, 21, 0.4); }

.wb-sheet {
  background: #fffcf7;
  border-radius: 28px 28px 0 0;
  max-height: 82%;
  width: min(520px, 100%);
  animation: demo-sheet 0.5s cubic-bezier(0.22, 1.25, 0.36, 1);
}

.sheet-grab {
  align-self: center;
  width: 42px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: #e4ddd2;
}

.wb-sheet-head { border-bottom: 0; }
.wb-sheet-head h3 { font-family: Figtree, sans-serif; font-size: 20px; color: #1c1915; }

#toast {
  background: #1c1915;
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
}

#pwa-notify-btn { margin: 12px 16px 0; }

@keyframes demo-sheet {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

body.installer-body:has(#view-auth:not([hidden])) .installer-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fffcf7;
}

body.installer-body:has(#view-auth:not([hidden])) .topbar-inner {
  max-width: 480px;
}

@media (max-width: 1023px) {
  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    display: block;
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    height: auto;
    background: #fffcf7;
    border: 0;
    border-bottom: 1px solid #e6dfd4;
    box-shadow: none;
    z-index: 50;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner {
    max-width: none;
    height: auto;
    padding: 8px 16px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #f4efe6;
  }

  #view-workbench {
    padding: 0;
    gap: 0;
  }

  #view-workbench .app-tab {
    padding: 0 0 128px;
    gap: 0;
  }

  .page-brand { margin: 0; padding-top: 22px; }

  .page-straddle { margin: -28px 16px 0; }

  .opp-section { padding: 16px 16px 0; }

  #tab-profile .opp-menu,
  #tab-tools .tool-tab-panel { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 1024px) {
  body.installer-body,
  body.installer-body:has(#view-workbench:not([hidden])) {
    background: #f4efe6;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 100px;
    right: 0;
    height: auto;
    background: #fffcf7;
    border: 0;
    border-bottom: 1px solid #e6dfd4;
    border-radius: 0;
    box-shadow: none;
    z-index: 40;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner {
    max-width: none;
    height: auto;
    padding: 8px 20px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    max-width: none;
    width: auto;
    margin: 0 0 0 112px;
    min-height: 100vh;
    padding: 0 0 24px;
    background: #f4efe6;
  }

  .page-brand { margin: 0; }
  .page-straddle { margin: -28px 28px 0; }
  .opp-section { padding-left: 28px; padding-right: 28px; }

  #view-workbench,
  #view-workbench .app-tab,
  #view-workbench #tab-tools.app-tab {
    background: #f4efe6;
    min-height: 100vh;
    padding-bottom: 28px;
  }

  #view-workbench .dock,
  body.installer-body:has(#view-workbench:not([hidden])) .dock {
    position: fixed;
    left: 16px;
    top: 18px;
    bottom: 18px;
    right: auto;
    width: 84px;
    max-width: 84px;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 6px;
    border: 0;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.94);
    box-shadow: 0 16px 40px rgba(40, 30, 10, 0.18);
  }

  #view-workbench .dock button,
  body.installer-body:has(#view-workbench:not([hidden])) .dock button {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 6px 2px;
    border-radius: 16px;
    background: transparent;
    color: #8d877e;
    font-size: 10px;
    box-shadow: none;
  }

  #view-workbench .dock button.active,
  #view-workbench .dock button.active:hover {
    background: transparent;
    color: #007a36;
    box-shadow: none;
  }

  #view-workbench .dock button > span { font-size: 10px; }

  .opp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-workbench .opp-card .opp-thumb { height: 148px; }

  body.installer-body:has(#view-auth:not([hidden])) .installer-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .wb-sheet { animation: none; }
}
/* Per-screen demo motion: splash, routes, sheets, logo strip. Desktop keeps the wide left nav. */

.page-brand-place {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.help-edge {
  width: auto !important;
  height: auto !important;
  min-height: 72px;
  padding: 10px 6px !important;
  background: rgba(255, 252, 247, 0.94) !important;
  color: #007a36 !important;
  border-radius: 12px 0 0 12px !important;
  box-shadow: -4px 6px 16px rgba(60, 40, 20, 0.12);
}

body.installer-body:has(#view-workbench:not([hidden])) .lang-dropdown-wrapper,
body.installer-body:has(#view-workbench:not([hidden])) #btn-logout {
  display: none !important;
}

body.installer-body:has(#view-auth:not([hidden])) .installer-topbar {
  position: fixed;
  top: 10px;
  right: 12px;
  left: auto;
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 80;
}

body.installer-body:has(#view-auth:not([hidden])) .brand { display: none; }
body.installer-body:has(#view-auth:not([hidden])) .topbar-inner { padding: 0; max-width: none; }
body.installer-body:has(#view-auth:not([hidden])) #btn-logout { display: none !important; }

.auth-card-logo {
  display: block;
  height: 36px;
  width: auto;
  margin: 0 0 8px;
}

.splash-mark {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: linear-gradient(165deg, #064e28 0%, #007a36 46%, #009a44 100%);
  background-size: 160% 160%;
  color: #fff;
  text-align: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.splash-mark p { margin: 0; font-size: 16px; opacity: 0.92; }

.auth-stage[data-phase="login"] .splash-mark,
.auth-stage.is-leaving .splash-mark {
  opacity: 0;
  pointer-events: none;
}

.auth-stage { position: relative; overflow: hidden; background: #075c32; }
.auth-stage .auth-card {
  position: relative;
  z-index: 2;
  transform: translateY(110%);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-stage[data-phase="login"] .auth-card { transform: none; }
.auth-stage.is-leaving { z-index: 40; }
.auth-stage.is-leaving .auth-card { transform: translateY(110%); }

#auth-app-links {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.install-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  margin-top: 14px;
  padding: 12px 14px;
  background: #e5f6ec;
  border: 1.5px solid #009a44;
  border-radius: 16px;
  color: #1c1915;
}

.install-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #009a44;
  color: #fff;
  display: grid;
  place-items: center;
}

.install-card b { display: block; color: #007a36; font-size: 15px; }
.install-card b + span { display: block; margin-top: 2px; color: #3c3832; font-size: 13px; font-weight: 600; }

.help-edge span {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#forgot-sheet.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}

#forgot-sheet[hidden] { display: none !important; }

#forgot-sheet .dim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 25, 21, 0.4);
}

#forgot-sheet .sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  overflow: auto;
  background: #fffcf7;
  border-radius: 28px 28px 0 0;
  padding: 10px 18px 28px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
  animation: demo-sheet 0.5s cubic-bezier(0.22, 1.25, 0.36, 1);
}

#forgot-sheet .grab {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: #e4ddd2;
  margin: 4px auto 10px;
}

#forgot-sheet h3 { margin: 0 0 8px; font-size: 20px; }

/* Keep #help-edge rendered. The register sheet covers the language row. */
body[data-screen="register"] .installer-topbar {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  height: 0;
  min-height: 0;
  overflow: visible;
}
body[data-screen="register"] .topbar-inner {
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
}
body[data-screen="register"] .brand,
body[data-screen="register"] #btn-logout {
  display: none !important;
}
body[data-screen="register"] .lang-dropdown-wrapper {
  display: block !important;
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 260;
}
body[data-screen="register"] .lang-dropdown-menu {
  z-index: 261;
}

/* Register full-bleed chrome lives in 29-register-demo-chrome.css (survey tokens). */
body[data-screen="register"] #register-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  background: #fffcf7;
  padding: 0;
}

body[data-screen="register"] #register-modal-overlay[hidden] { display: none !important; }

body[data-screen="register"] .modal-sheet-90 {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fffcf7;
}

.account-notice {
  align-items: flex-end;
  padding: 0;
  background: rgba(28, 25, 21, 0.4);
}

.account-notice-card {
  width: 100%;
  max-width: none;
  border-radius: 28px 28px 0 0;
  max-height: 82vh;
  animation: demo-sheet 0.45s cubic-bezier(0.22, 1.25, 0.36, 1);
}

#view-ready {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fffcf7;
  padding: 32px 24px;
}

body.installer-body:has(#view-ready:not([hidden])) .installer-topbar { display: none !important; }

#view-ready[hidden] { display: none !important; }

.ready-card { text-align: center; max-width: 360px; }
.ready-card h1 {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 40px;
  margin: 8px 0;
}
.ready-card p { color: #6f685f; font-size: 16px; }
.ready-card .auth-card-logo { margin: 0 auto 8px; }

#lead-route {
  position: absolute;
  z-index: 8;
  inset: 0 0 96px 0;
  overflow: auto;
  background: #f4efe6;
  padding: 12px 16px 24px;
}

#lead-route[hidden] { display: none !important; }

.backline { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.backline .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f3eee6;
  display: grid;
  place-items: center;
}

.lead-page-pad .lead-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lead-page-pad .lead-stat-row > div {
  background: #fffcf7;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
}

.lead-page-pad .lead-map-card {
  min-height: 140px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 58% 46%, rgba(0, 154, 68, 0.22), transparent 28%),
    linear-gradient(#d5e2cf, #eef3ea);
}

#view-workbench .app-tab { padding-bottom: 128px; }

#tab-profile .opp-menu .menu-item,
#btn-profile-logout,
#btn-send-test-notification {
  width: 100%;
  text-align: left;
  background: #fffcf7;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  padding: 14px 16px;
  margin-top: 10px;
}

#btn-send-test-notification[hidden] { display: none !important; }

.wb-overlay.sheet-center { align-items: center; }
.wb-overlay.sheet-center .wb-sheet {
  top: auto;
  bottom: auto;
  border-radius: 24px;
  max-height: 70%;
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  animation: demo-pop 0.35s cubic-bezier(0.22, 1.25, 0.36, 1);
}

@keyframes demo-pop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

body.is-shifting[data-shift="push"] #view-workbench .app-tab.active,
body.is-shifting[data-shift="pop"] #view-workbench .app-tab.active,
body.is-shifting[data-shift="rise"] #view-workbench .app-tab.active,
body.is-shifting[data-shift="tab"] #view-workbench .app-tab.active {
  animation: shift-rise 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes shift-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

body.is-shifting[data-shift="push"] #view-workbench .app-tab.active { animation-name: shift-push; }
body.is-shifting[data-shift="pop"] #view-workbench .app-tab.active { animation-name: shift-pop; }

@keyframes shift-push {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: none; }
}

@keyframes shift-pop {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: none; }
}

#view-workbench .academy-progress {
  height: 4px;
  background: #efe8dc;
  border-radius: 99px;
  overflow: hidden;
}

#view-workbench .academy-progress > i {
  display: block;
  height: 100%;
  background: #009a44;
}

@media (min-width: 1024px) {
  #view-workbench .dock,
  body.installer-body:has(#view-workbench:not([hidden])) .dock {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: 232px;
    max-width: 232px;
    height: auto;
    min-height: 100vh;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 18px 12px;
    border-radius: 0;
    background: #fffcf7;
    border-right: 1px solid #e6dfd4;
    box-shadow: none;
  }

  #view-workbench .dock button,
  body.installer-body:has(#view-workbench:not([hidden])) .dock button {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #6f685f;
  }

  #view-workbench .dock button.active {
    background: #e5f6ec;
    color: #007a36;
  }

  #view-workbench .dock button > span { font-size: 14px; }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    margin: 52px 0 0 232px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    left: 232px;
    right: 0;
    background: #fffcf7;
    z-index: 50;
  }

  .page-brand { padding-top: 22px; }

  #lead-route { left: 0; bottom: 0; }
  #view-workbench .app-tab { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-stage .auth-card,
  .splash-mark,
  #forgot-sheet .sheet,
  .account-notice-card,
  body[data-screen="register"] #register-modal-overlay.is-grow .modal-sheet-90,
  body[data-screen="register"] .modal-sheet-90,
  .wb-sheet,
  body.is-shifting #view-workbench .app-tab.active {
    animation: none !important;
    transition: none !important;
  }

  .auth-stage .auth-card,
  .auth-stage[data-phase="splash"] .auth-card { transform: none; }
  .splash-mark { display: none; }
}

#wb-sheet-sub:empty { display: none; }

.wb-overlay .lang-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 4px 0 8px;
}

.wb-overlay .lang-sheet .filter-chip {
  position: static;
  margin: 0;
}

#tab-home .opp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#tab-home .opp-grid .opp-card { min-width: 0; width: 100%; }
#tab-home .opp-search { padding-left: 14px; }
#tab-home .opp-search svg { flex: 0 0 18px; }
#tab-home .opp-search input { padding: 0 0 0 6px !important; }

.academy-card-art {
  height: 92px;
  margin: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #1f9d55, #0b7a3b);
}
.academy-card-art svg { display: block; width: 100%; height: 100%; }
.academy-card-art.is-cover {
  height: auto;
  background: #0b7a3b;
}
.academy-card-art img.academy-card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 1024px) {
  #view-workbench .academy-course-card .academy-card-art.is-cover {
    grid-column: 1 / -1;
  }
}
.academy-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5f6ec;
  color: #007a36;
  font-size: 12px;
  font-weight: 700;
}

#view-workbench .lead-chip-type {
  background: #e5f6ec;
  color: #007a36;
}
#view-workbench .lead-map-go,
.lead-map-go {
  background: #007a36;
  color: #fff;
}
#view-workbench .lead-stat-row > div:nth-child(2) b { color: #007a36; }
#view-workbench .lead-detail-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
#view-workbench .lead-detail .primary-btn,
#view-workbench .lead-unlock-btn {
  background: #007a36 !important;
  color: #fff !important;
  border-radius: 999px;
  width: 100%;
}

#view-workbench .yield-type-btn { border-radius: 999px; }
#view-workbench .yield-type-btn.active {
  background: #007a36;
  border-color: #007a36;
  color: #fff;
}
#view-workbench .yield-line {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
}
#view-workbench .yield-line-control,
#view-workbench .yield-pill,
#view-workbench .yield-pill select,
#view-workbench .yield-bare,
#view-workbench .yield-ghost {
  width: 100%;
  max-width: none;
  min-width: 0;
}
#view-workbench .yield-card-title { color: #007a36; }

#tab-profile #btn-profile-logout.profile-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  margin: 12px 16px 8px;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #1c1915;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
}
/* Register wizard → demo-shell survey/register scroll-page chrome.
   Full-bleed #fffcf7 (no cream gutter + floating sheet). Keep 3 steps + live API. */

body[data-screen="register"] {
  background: #fffcf7;
}

body[data-screen="register"] .installer-main {
  background: #fffcf7;
}

body[data-screen="register"] #register-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  background: #fffcf7;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  animation: none;
}

body[data-screen="register"] #register-modal-overlay[hidden] {
  display: none !important;
}

/* Scroll page = demo .scroll-page / .page.plain / .grow-in — not a sheet card. */
body[data-screen="register"] .modal-sheet-90 {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0 !important;
  background: #fffcf7;
  box-shadow: none !important;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  animation: none;
  display: block;
}

body[data-screen="register"] #register-modal-overlay.is-grow .modal-sheet-90 {
  transform-origin: var(--ox, 50%) var(--oy, 80%);
  animation: reg-grow-plain 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reg-grow-plain {
  from { opacity: 0.2; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Pad rhythm: 16px sides, 12px stack gap (demo .pad). */
body[data-screen="register"] .modal-header.reg-wizard-chrome {
  display: grid;
  gap: 12px;
  align-items: stretch;
  padding: 16px 16px 0;
  border-bottom: 0;
  background: #fffcf7;
}

body[data-screen="register"] .reg-wizard-chrome .auth-card-logo {
  display: block;
  height: 36px;
  width: auto;
  margin: 0;
}

/* demo .wizard-top */
body[data-screen="register"] .reg-wizard-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

body[data-screen="register"] .reg-wizard-top .modal-header-text {
  flex: 1;
  min-width: 0;
}

body[data-screen="register"] .reg-wizard-top .btn-close-modal,
body[data-screen="register"] .reg-wizard-top .icon-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eee6;
  color: #1c1915;
  box-shadow: none;
  display: grid;
  place-items: center;
}

body[data-screen="register"] .modal-title {
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif !important;
  font-style: normal !important;
  font-weight: 750;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  color: #1c1915;
}

body[data-screen="register"] .modal-sub {
  margin: 4px 0 0;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6f685f;
}

body[data-screen="register"] .modal-body {
  padding: 8px 16px 24px;
  background: #fffcf7;
  display: block;
}

#register-form.form-unified-stack {
  display: grid;
  gap: 12px;
}

/* demo .form-panel — white section cards on #fffcf7 page */
#register-form .form-card-panel {
  background: #fff !important;
  border: 1px solid #efe8dc !important;
  border-radius: 18px !important;
  padding: 12px !important;
  margin: 0 0 14px !important;
  gap: 12px;
  box-shadow: none !important;
}

#register-form .panel-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 8px;
  margin: 0 0 4px;
  border-bottom: 0;
}

#register-form .panel-step-badge {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #009a44;
  color: #fff;
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
}

#register-form .panel-title {
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif !important;
  font-style: normal !important;
  font-size: 1rem;
  font-weight: 750;
  color: #1c1915;
}

#register-form .form-grid {
  gap: 12px;
}

#register-form .field-label,
#register-form .field-label .label-text {
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1c1915;
}

/* Soft Field / .pick controls — 16px radius (not full pill). */
#register-form input[type="text"]:not(.reg-native-hidden):not(.js-province-filter),
#register-form input[type="email"],
#register-form input[type="password"],
#register-form input[type="search"]:not(.js-province-filter),
#register-form input[type="tel"]:not(.js-intl-phone),
#register-form textarea,
#register-form .reg-combo-btn,
#register-form .select-wrapper select:not(.reg-native-hidden),
#register-form .iti input.js-intl-phone,
#register-form .iti input[name="phone"] {
  background: #f6f4ef !important;
  border: 1.5px solid transparent !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #1c1915 !important;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  min-height: 48px !important;
  height: 48px !important;
}

#register-form textarea,
#register-form .reg-combo-btn:not(.is-empty) {
  border-radius: 16px !important;
  height: auto !important;
}

#register-form textarea {
  min-height: 88px !important;
  padding: 14px !important;
}

#register-form input[type="text"]:not(.reg-native-hidden):not(.js-province-filter),
#register-form input[type="email"],
#register-form input[type="password"],
#register-form input[type="search"]:not(.js-province-filter),
#register-form input[type="tel"]:not(.js-intl-phone),
#register-form .select-wrapper select:not(.reg-native-hidden),
#register-form .reg-combo-btn {
  padding: 14px 16px !important;
}

#register-form input:focus,
#register-form textarea:focus,
#register-form .reg-combo-btn:focus,
#register-form .select-wrapper select:focus,
#register-form .iti input.js-intl-phone:focus {
  outline: none !important;
  border-color: #009a44 !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Leading icons only on email + password (demo Field icon=mail|lock). */
#register-form .input-wrapper .input-icon,
#register-form .select-wrapper > .input-icon {
  display: none !important;
}

#register-form .field-group:has(#reg_email) .input-icon,
#register-form .field-group:has(#reg_password) .input-icon {
  display: grid !important;
  place-items: center;
  left: 14px !important;
  width: 20px !important;
  height: 20px !important;
  color: #6f685f !important;
}

#register-form .field-group:has(#reg_email) input,
#register-form .field-group:has(#reg_password) input {
  padding-left: 44px !important;
}

#register-form .input-wrapper:has(.btn-toggle-pwd) input {
  padding-right: 44px !important;
}

#register-form .btn-toggle-pwd {
  color: #6f685f !important;
  background: transparent !important;
}

#register-form .field-gate.is-empty input:not([type="checkbox"]):not([type="radio"]):not(.reg-native-hidden),
#register-form .field-gate.is-empty select:not(.reg-native-hidden),
#register-form .field-gate.is-empty textarea,
#register-form .field-gate.is-empty .reg-combo-btn,
#register-form .consent-card.field-gate.is-empty .consent-box {
  border-color: transparent !important;
  background: transparent !important;
}
body[data-screen="register"] #register-form .consent-stack {
  gap: 0;
  margin: 6px 0 2px;
}
body[data-screen="register"] #register-form .consent-card,
body[data-screen="register"] #register-form .consent-card.field-gate,
body[data-screen="register"] #register-form .consent-card.field-gate.is-empty,
body[data-screen="register"] #register-form .consent-card.field-gate.is-ready {
  display: block;
  box-sizing: border-box;
  padding: 8px 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body[data-screen="register"] #register-form .consent-box,
body[data-screen="register"] #register-form .consent-card input:checked ~ .consent-box,
body[data-screen="register"] #register-form .consent-card.field-gate.is-empty .consent-box,
body[data-screen="register"] #register-form .consent-card.field-gate.is-ready .consent-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  justify-items: stretch;
  box-sizing: border-box;
  width: 100%;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transition: none;
}
body[data-screen="register"] #register-form .custom-check-box {
  position: relative;
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px;
  max-height: 22px;
  margin: 0;
  padding: 0;
  align-self: start;
  justify-self: start;
  border: 2px solid #1c1915;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body[data-screen="register"] #register-form .consent-card input:checked ~ .consent-box .custom-check-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px;
  max-height: 22px;
  margin: 0;
  padding: 0;
  border-width: 2px;
  border-style: solid;
  border-color: #007a36;
  background-color: #007a36;
  box-shadow: none;
}
body[data-screen="register"] #register-form .check-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
body[data-screen="register"] #register-form .consent-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}
body[data-screen="register"] #register-form .consent-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1915;
}
body[data-screen="register"] #register-form .consent-card input:focus-visible ~ .consent-box .custom-check-box {
  outline: 2px solid #007a36;
  outline-offset: 2px;
}
body[data-screen="register"] #register-form button.consent-link {
  margin-top: 2px;
  color: #007a36;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

/* demo .gate */
#register-form .gate-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1c1915;
}

#register-form .gate-progress-track {
  height: 6px;
  border-radius: 99px;
  background: #efe8dc;
  overflow: hidden;
}

#register-form #register-gate-fill {
  display: block;
  height: 100%;
  background: #009a44;
  border-radius: 99px;
}

#register-form .modal-submit-dock {
  background: transparent;
  padding-top: 0;
  position: static;
  box-shadow: none;
}

#register-form .reg-wizard-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

#register-form #register-step-back {
  flex: 0 0 36%;
  height: 54px;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid #e4ddd2;
  background: #fff;
  color: #1c1915;
  font-weight: 700;
  box-shadow: none;
}

/* demo .btn — 54px green gradient pill */
#register-form #register-step-next,
#register-form #register-submit {
  flex: 1 1 auto;
  width: auto;
  height: 54px;
  min-height: 54px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #14a84f, #009a44 45%, #007a36) !important;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(0, 122, 54, 0.28);
}

#register-form .reg-combo-panel,
.reg-combo-panel {
  border-radius: 16px;
  border: 1px solid #e6dfd4;
  background: #fffcf7;
}

@media (min-width: 760px) {
  body[data-screen="register"] .modal-sheet-90 {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* test-host cache v13 */
/* Final cascade: one coherent desktop shell (left nav + wide content + desktop auth).
   Breakpoint: min-width 1024px (same as page-map / pixel-checklist).
   Mobile bottom dock and phone auth card stay unchanged below 1024. */

/* —— Logged-in chrome: no logo row (reinforces 02-topbar) —— */
body.installer-body:has(#view-workbench:not([hidden])) .brand-logo,
body.installer-body:has(#view-workbench:not([hidden])) .brand-text,
body.installer-body:has(#view-workbench:not([hidden])) .brand {
  display: none !important;
}

body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
  display: none !important;
}

@media (min-width: 1024px) {
  /* —— Workbench: fixed left rail + full remaining width —— */
  body.installer-body:has(#view-workbench:not([hidden])) {
    background: #f4efe6;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    max-width: none !important;
    width: auto;
    margin: 0 0 0 232px !important;
    min-height: 100vh;
    padding: 0 0 24px;
    background: #f4efe6;
  }

  #view-workbench {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  #view-workbench .app-tab,
  #view-workbench #tab-tools.app-tab {
    max-width: none;
    width: 100%;
    padding-bottom: 28px;
    min-height: 100vh;
  }

  #view-workbench .dock,
  body.installer-body:has(#view-workbench:not([hidden])) .dock {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: 232px !important;
    max-width: 232px !important;
    height: auto !important;
    min-height: 100vh;
    transform: none !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 20px 12px 24px;
    border: 0;
    border-right: 1px solid #e6dfd4;
    border-radius: 0 !important;
    background: #fffcf7;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 80;
  }

  /* Tiny brand mark in the left rail (PWA / splash still carry full identity). */
  #view-workbench .dock::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    height: 28px;
    width: auto;
    margin: 4px 10px 14px;
    background: url("/installer/assets/jinko-solar-logo-green.svg?v=5") left center / contain no-repeat;
  }

  #view-workbench .dock button,
  body.installer-body:has(#view-workbench:not([hidden])) .dock button {
    flex-direction: row !important;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6f685f;
    background: transparent;
  }

  #view-workbench .dock button > span {
    font-size: 14px !important;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
  }

  #view-workbench .dock .dock-svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  #view-workbench .dock button.active,
  #view-workbench .dock button.active:hover {
    background: #e5f6ec;
    color: #007a36;
    box-shadow: none;
  }

  #view-workbench .dock button.active::before {
    display: none;
  }

  /* —— Auth: desktop split (brand panel + form), not a phone column —— */
  body.installer-body:has(#view-auth:not([hidden])) {
    background: #f4efe6;
  }

  body.installer-body:has(#view-auth:not([hidden])) .installer-main {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 40px 48px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4efe6;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 520px);
    grid-template-rows: auto;
    max-width: 960px;
    width: 100%;
    min-height: min(640px, calc(100vh - 80px));
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #fffcf7;
    box-shadow: 0 24px 64px rgba(40, 30, 10, 0.14);
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .splash-mark {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    border-radius: 28px;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-hero {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    min-height: 100%;
    height: 100%;
    padding: 36px 32px;
    background: linear-gradient(165deg, #075c32 0%, #009a44 62%, #1aaa55 100%);
    color: #fff;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-kicker {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-art {
    position: absolute;
    right: 24px;
    bottom: 28px;
    top: auto;
    width: 200px;
    height: 144px;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-card {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    border-radius: 0;
    min-height: 100%;
    padding: 36px 40px 40px;
    box-shadow: none;
    background: #fffcf7;
  }

  body.installer-body:has(#view-auth:not([hidden])) .installer-topbar {
    position: fixed;
    top: 16px;
    right: 20px;
    left: auto;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 80;
  }

  /* —— Register wizard: use the wide window, keep demo scroll chrome —— */
  body[data-screen="register"] .installer-main {
    max-width: none !important;
    width: 100%;
    margin: 0;
  }

  body[data-screen="register"] .modal-sheet-90 {
    max-width: none;
  }

  body[data-screen="register"] .modal-header.reg-wizard-chrome,
  body[data-screen="register"] .modal-body {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* Shared installer sheets and dialogs. Register full-bleed #fffcf7 stays in 29-register-demo-chrome.css.
   Phone bottom sheets: 16px top corners, square bottom, flush to the screen edge.
   Safe-area padding sits inside the sheet body (35-mobile-polish.css), not under the sheet.
   39-sheet-dock.css repeats the phone geometry so later files cannot lift the sheet. */

.wb-overlay {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(28, 25, 21, 0.46);
}

.wb-overlay .wb-sheet {
  width: min(520px, 100%);
  max-height: min(86vh, 760px);
  margin: 0;
  background: #fffcf7;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -18px 48px rgba(28, 25, 21, 0.16);
  padding-bottom: 0;
}

.wb-overlay .sheet-grab {
  width: 36px;
  height: 4px;
  margin: 10px auto 2px;
  border-radius: 99px;
  background: #e6dfd4;
}

.wb-overlay .wb-sheet-head {
  align-items: flex-start;
  gap: 12px;
  padding: 8px 16px 0 20px;
  border-bottom: 0;
}

.wb-overlay .wb-sheet-head h3,
.wb-overlay .wb-sheet-form .wb-sheet-head h3 {
  margin: 0;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1c1915;
}

.wb-overlay #wb-sheet-sub,
.wb-overlay .wb-sheet-head .hint {
  margin: 4px 0 0;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #6f685f;
}

.wb-overlay .btn-close-modal {
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eee6;
  color: #1c1915;
  box-shadow: none;
}

.wb-overlay .wb-sheet-body {
  padding: 12px 20px 22px;
}

.wb-overlay .lead-placeholder-copy,
.wb-overlay .wb-sheet-emphasis .lead-placeholder-copy {
  margin: 0;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: #3c3832;
}

.wb-overlay .installer-actions:not(.compact) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 2px;
}

.wb-overlay .wb-sheet .primary-btn,
.wb-overlay .wb-sheet .ghost-btn,
.wb-overlay .wb-sheet .secondary-btn {
  width: 100%;
  height: 54px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}

.wb-overlay .wb-sheet .primary-btn {
  border: 0;
  background: linear-gradient(180deg, #14a84f, #009a44 45%, #007a36);
  color: #fff;
  box-shadow: 0 10px 18px rgba(0, 122, 54, 0.22);
}

.wb-overlay .wb-sheet .primary-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #16b255, #009a44 40%, #006b30);
  color: #fff;
}

.wb-overlay .wb-sheet .ghost-btn,
.wb-overlay .wb-sheet .secondary-btn {
  border: 1.5px solid #e4ddd2;
  background: #fff;
  color: #1c1915;
  box-shadow: none;
}

#wb-overlay .help-form input[type="text"] {
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(16, 35, 63, 0.16) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #1a1612 !important;
  font-family: var(--font-sans, Figtree, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

#wb-overlay .help-form input[type="text"]:focus {
  outline: none !important;
  border-color: #009a44 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 54, 0.18) !important;
}

#wb-overlay .help-form .help-check-set {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

#wb-overlay .help-form .help-check-set legend {
  margin: 0 0 4px;
  padding: 0;
  color: #3d4a5c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

#wb-overlay .help-form .help-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1c1915;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

#wb-overlay .help-form .help-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: #007a36;
}

.wb-overlay .installer-actions.compact {
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
}

.wb-overlay .installer-actions.compact .primary-btn,
.wb-overlay .installer-actions.compact .secondary-btn {
  width: auto;
  flex: 1;
  height: 40px;
  min-height: 40px;
  font-size: 14px;
  box-shadow: none;
}

.wb-overlay .account-form {
  display: grid;
  gap: 8px;
}

.wb-overlay .account-readonly {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(60, 40, 20, 0.06);
}

.wb-overlay .account-readonly span {
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #8a8378;
}

.wb-overlay .account-readonly strong {
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  color: #1c1915;
}

.wb-overlay .account-readonly.is-empty strong {
  color: #8a8378;
  font-weight: 600;
}

.wb-overlay.sheet-center {
  align-items: center;
  padding: 24px 16px;
}

.wb-overlay.sheet-center .wb-sheet {
  border-radius: 16px;
  width: min(440px, calc(100% - 32px));
  padding-bottom: 8px;
}

#forgot-sheet .sheet,
.account-notice-card,
.pwa-install-card,
#profile-setup-overlay .modal-sheet-90 {
  background: #fffcf7;
  margin: 0;
  border-radius: 16px 16px 0 0;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

.pwa-install-overlay,
.account-notice {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.pwa-install-card {
  width: 100%;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

#forgot-sheet .sheet {
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.account-notice-card {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

#forgot-sheet .grab {
  width: 36px;
  height: 4px;
  background: #e6dfd4;
}

#forgot-sheet h3,
.account-notice-card h2,
.pwa-install-card h2 {
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: #1c1915;
}

#forgot-sheet .primary-btn,
.pwa-install-card .primary-btn {
  height: 54px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #14a84f, #009a44 45%, #007a36);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(0, 122, 54, 0.22);
}

#forgot-sheet .ghost-btn,
.pwa-install-card .ghost-btn,
.pwa-install-close {
  height: 54px;
  min-height: 54px;
  border-radius: 999px;
  border: 1.5px solid #e4ddd2;
  background: #fff;
  color: #1c1915;
  font-weight: 700;
  box-shadow: none;
}

.account-notice .btn-close-modal {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3eee6;
  color: #1c1915;
}

#pwa-notify-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
}

#pwa-notify-bar[hidden] { display: none !important; }

#pwa-notify-bar #pwa-notify-btn {
  flex: 1;
  width: auto;
  margin: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(255, 252, 247, 0.55);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: #1c1915;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

#pwa-notify-dismiss {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eee6;
  color: #1c1915;
  display: grid;
  place-items: center;
}

.wb-overlay .detail-locked { margin-bottom: 8px; }

.wb-overlay .detail-form {
  display: grid;
  gap: 14px;
}

.wb-overlay .detail-form h4 {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1c1915;
}

.wb-overlay .detail-form h4:first-child { margin-top: 0; }

.wb-overlay .detail-form .field-label[hidden],
#wb-overlay .detail-form .detail-note[hidden],
#wb-overlay .detail-note[hidden] {
  display: none !important;
}

.wb-overlay .detail-form .field-label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #3c3832;
}

.wb-overlay .detail-form .field-hint {
  font-size: 12px;
  font-weight: 500;
  color: #6f685f;
}

.wb-overlay .detail-form input,
.wb-overlay .detail-form select,
.wb-overlay .detail-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e4ddd2;
  border-radius: 12px;
  background: #fff;
  color: #1c1915;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
}

.wb-overlay .detail-form textarea { min-height: 88px; resize: vertical; }
.wb-overlay .detail-form select[multiple] { min-height: 120px; }

.wb-overlay .detail-form input:focus,
.wb-overlay .detail-form select:focus,
.wb-overlay .detail-form textarea:focus {
  outline: 2px solid #007a36;
  outline-offset: 1px;
  border-color: #007a36;
}

.wb-overlay .detail-form .detail-note { margin-top: 6px; }

.wb-overlay .detail-form .primary-btn {
  margin-top: 4px;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.wb-overlay .detail-form .primary-btn:active:not(:disabled) { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .wb-overlay .detail-form .primary-btn { transition: none; }
}

@media (min-width: 1024px) {
  .wb-overlay {
    align-items: center;
    padding: 32px;
  }

  .wb-overlay .wb-sheet {
    width: min(480px, calc(100vw - 64px));
    border-radius: 16px;
    padding-bottom: 8px;
    box-shadow: 0 24px 48px rgba(28, 25, 21, 0.16);
  }

  .wb-overlay .wb-sheet.wb-sheet-details {
    width: min(640px, calc(100vw - 96px));
  }

  #forgot-sheet .sheet,
  .account-notice-card,
  .pwa-install-card,
  #profile-setup-overlay .modal-sheet-90 {
    border-radius: 16px 16px 0 0;
  }
}
/* profile-menu-group */
/* Profile list is one cream card with a solid row separator. */

#view-workbench #tab-profile > .sheet:not(.wb-profile-hero) {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

#view-workbench #tab-profile .opp-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  background: #fffcf7;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  overflow: hidden;
}

#view-workbench #tab-profile .opp-menu .menu-item {
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  column-gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #e6dfd4;
  box-shadow: none;
}

#view-workbench #tab-profile .opp-menu .menu-item:first-child {
  border-top: 0;
}

#view-workbench #tab-profile .opp-menu #btn-profile-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid #e6dfd4;
  border-radius: 0;
  background: transparent;
  color: #1c1915;
  font-weight: 700;
  text-align: left;
  box-shadow: none;
}

#view-workbench #tab-profile .opp-menu .menu-item:hover,
#view-workbench #tab-profile .opp-menu .menu-item:active {
  background: #f6f1ea;
}

@media (min-width: 1024px) {
  #view-workbench #tab-profile .opp-menu {
    border-radius: 20px;
  }
}

#view-workbench #tab-profile .menu-fold {
  display: block;
}

#view-workbench #tab-profile .menu-fold .menu-item {
  width: 100%;
}

#view-workbench #tab-profile .menu-fold-chevron {
  flex: none;
  margin-left: 8px;
  color: #6b6560;
  transform: rotate(-90deg);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

#view-workbench #tab-profile .menu-fold.is-open .menu-fold-chevron {
  transform: rotate(0deg);
}

#view-workbench #tab-profile .menu-fold-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

#view-workbench #tab-profile .menu-fold.is-open .menu-fold-panel {
  grid-template-rows: 1fr;
}

#view-workbench #tab-profile .menu-fold-inner {
  overflow: hidden;
}

#view-workbench #tab-profile .menu-fold.is-open .menu-fold-inner {
  overflow: visible;
}

.wb-overlay .lang-sheet {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}
.wb-overlay .lang-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e6dfd4;
  border-radius: 12px;
  background: #fff;
  color: #1c1915;
  text-align: left;
}
.wb-overlay .lang-choice-mark {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(16, 35, 63, 0.08);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.wb-overlay .lang-choice-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.wb-overlay .lang-choice.active {
  border-color: #009a44;
  background: rgba(0, 154, 68, 0.1);
}

#view-workbench #details-page .detail-form {
  display: block;
}

#view-workbench #details-page .detail-q {
  margin: 0 0 8px;
  padding: 0 0 16px;
  border: 0;
  min-width: 0;
}

#view-workbench #details-page .detail-q legend {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  color: #1c1915;
}

#view-workbench #details-page .detail-q .field-hint {
  margin: -4px 0 10px;
  color: #6f685f;
  font-size: 13px;
  font-weight: 500;
}

#view-workbench #details-page .detail-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#view-workbench #details-page .detail-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #e6dfd4;
  border-radius: 12px;
  background: #fff;
  color: #1c1915;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

#view-workbench #details-page .detail-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: #007a36;
}

#view-workbench #details-page .detail-q > input[type="text"],
#view-workbench #details-page .detail-q > textarea,
#view-workbench #details-page .detail-note {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid #e6dfd4;
  border-radius: 12px;
  background: #fff;
  color: #1c1915;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

#view-workbench #details-page .detail-note[hidden],
#view-workbench #details-page .detail-q[hidden] {
  display: none !important;
}

#view-workbench #details-page .detail-q > textarea {
  min-height: 96px;
  resize: vertical;
}

#view-workbench #details-page .detail-suggest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 10px 8px 14px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #14532d;
}

#view-workbench #details-page .detail-suggest span {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

#view-workbench #details-page .detail-suggest button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #14532d;
  cursor: pointer;
}

#view-workbench #details-page .detail-suggest button:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

#view-workbench #details-page .detail-form .primary-btn {
  width: auto;
  min-width: 160px;
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  #view-workbench #tab-profile .menu-fold-chevron,
  #view-workbench #tab-profile .menu-fold-panel {
    transition: none;
  }
}

#view-workbench #details-page {
  display: none;
  position: static;
  color: #1c1915;
}

#view-workbench #details-page.is-open {
  display: block;
}

#view-workbench:has(#details-page.is-open) > .app-tab {
  display: none;
}

#view-workbench .details-page-inner {
  width: min(760px, 100%);
  margin: 0;
  padding: 28px 24px 48px;
}

@media (min-width: 1024px) {
  #view-workbench .details-page-inner {
    padding: 32px 48px 64px 56px;
  }
}

#view-workbench .details-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

#view-workbench .details-top h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#view-workbench .details-top p {
  margin: 4px 0 0;
  color: #007a36;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#view-workbench #details-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1c1915;
  box-shadow: 0 4px 12px rgba(40, 30, 10, 0.08);
}

#view-workbench .details-meter {
  height: 12px;
  margin: 0 0 22px;
  border-radius: 99px;
  background: #d9efe3;
  overflow: hidden;
}

#view-workbench .details-meter span {
  display: block;
  height: 100%;
  width: 100%;
  background: #007a36;
  transform: scaleX(0);
  transform-origin: left center;
}

#view-workbench .details-section {
  margin: 0 0 16px;
  padding: 18px 18px 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 30, 10, 0.06);
}

#view-workbench .details-section > h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}

#view-workbench .details-section .detail-q {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ebe3;
}

#view-workbench .details-section .detail-q:last-of-type {
  border-bottom: 0;
}
/* /profile-menu-group */
/* desktop-design-pack: full-bleed auth, 220px rail, 56px strip.
   <768 and 768–1023 keep the phone bottom dock. The left rail starts at 1024.
   Joined stylesheet query is installer.css?v=21. */

.rail-brand,
.desk-avatar,
.desk-profile-side,
.auth-brand-lockup,
.auth-tagline {
  display: none;
}

@media (min-width: 1024px) {
  body.installer-body:has(#view-workbench:not([hidden])),
  body.installer-body:has(#view-auth:not([hidden])) {
    background: #f4efe6;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .mesh-backdrop,
  body.installer-body:has(#view-auth:not([hidden])) .mesh-backdrop {
    display: none;
  }

  /* —— Auth: viewport split, logo on the card, install card kept —— */
  body.installer-body:has(#view-auth:not([hidden])) .installer-main {
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    display: block;
    background: #f4efe6;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) 1.15fr;
    max-width: none;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .splash-mark {
    position: fixed;
    inset: 0;
    border-radius: 0;
    z-index: 30;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-hero {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    margin: 0;
    max-width: none;
    justify-content: center;
    gap: clamp(28px, 5.5vh, 64px);
    padding: 48px 48px 56px;
    background: linear-gradient(165deg, #005c28 0%, #007a36 55%, #0a9a4a 100%);
    color: #fff;
    overflow: hidden;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    z-index: 1;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-kicker {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.9;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-art {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 240px;
    height: 172px;
    margin: 0;
    align-self: flex-start;
    flex: 0 0 auto;
    z-index: 1;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-tagline {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 28ch;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-card {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: min(460px, calc(100% - 80px));
    margin: 40px auto;
    min-height: 0;
    padding: 32px 34px 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(28, 25, 21, 0.08);
    transform: none;
  }

  /* Card-top brand: intrinsic lockup, not a stretched full-width box.
     128×44 matches the authored mark; JinKO word sits near the 18px card logo. */
  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-card-logo {
    align-self: flex-start;
    flex: 0 0 auto;
    display: block;
    width: 128px;
    height: 44px;
    max-width: 128px;
    margin: 0 0 18px;
    object-fit: contain;
    object-position: left center;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-tabs {
    display: inline-flex;
    width: auto;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-tab {
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid #e4ddd2;
    background: #fff;
    color: #6b6560;
    box-shadow: none;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-tab.active {
    background: #e6f4ec;
    border-color: #007a36;
    color: #007a36;
  }

  body.installer-body:has(#view-auth:not([hidden])) .install-card {
    margin-top: 4px;
    border: 1.5px solid #b7d9c4;
    background: linear-gradient(90deg, #f7fbf8, #fff);
    border-radius: 18px;
  }

  body.installer-body:has(#view-auth:not([hidden])) .install-ico {
    background: #007a36;
  }

  body.installer-body:has(#view-auth:not([hidden])) .installer-topbar {
    position: fixed;
    top: 16px;
    right: 20px;
    left: auto;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 80;
  }

  body.installer-body:has(#view-auth:not([hidden])) .topbar-inner,
  body.installer-body:has(#view-auth:not([hidden])) .topbar-actions {
    width: auto;
    gap: 10px;
  }

  /* Sign-in Help sits in the top strip, left of the language control.
     The register wizard keeps the phone edge tab. */
  body.installer-body:has(#view-auth:not([hidden])):not([data-screen="register"]) #help-edge {
    display: inline-flex !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    background: #e6f4ec !important;
    color: #007a36 !important;
    box-shadow: none !important;
    z-index: 90;
  }

  body.installer-body:has(#view-auth:not([hidden])):not([data-screen="register"]) #help-edge span {
    writing-mode: horizontal-tb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
  }

  /* —— Logged-in: 220px rail + 56px light strip. No fat green header. —— */
  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    height: 56px;
    width: auto;
    align-items: center;
    background: rgba(255, 252, 247, 0.92);
    border: 0;
    border-bottom: 1px solid #e8e1d6;
    box-shadow: none;
    z-index: 70;
    backdrop-filter: blur(8px);
  }

  body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner {
    width: 100%;
    max-width: none;
    min-height: 56px;
    padding: 0 108px 0 28px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .brand {
    display: flex !important;
    gap: 8px;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .brand-logo {
    display: block !important;
    height: 22px;
    width: auto;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .brand-text,
  body.installer-body:has(#view-workbench:not([hidden])) .brand-region-tag {
    display: none !important;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    max-width: none !important;
    width: auto;
    margin: 0 0 0 220px !important;
    padding: 56px 0 24px !important;
    min-height: 100vh;
    background: #f4efe6;
  }

  #view-workbench {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  #view-workbench .app-tab.active {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 48px 56px 56px;
    min-height: calc(100vh - 56px);
    background: transparent;
  }

  #view-workbench .dock,
  body.installer-body:has(#view-workbench:not([hidden])) .dock {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    min-height: 100vh;
    transform: none !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 6px;
    padding: 20px 14px 24px;
    border: 0;
    border-right: 1px solid #e8e1d6;
    border-radius: 0 !important;
    background: #fffcf7;
    box-shadow: none !important;
    z-index: 80;
  }

  #view-workbench .dock::before {
    display: none !important;
    content: none !important;
  }

  /* Document fullscreen hides the phone dock. Desktop keeps the rail. */
  html:fullscreen #view-workbench .dock,
  html:-webkit-full-screen #view-workbench .dock {
    display: flex !important;
  }

  #view-workbench .dock .rail-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 16px;
  }

  #view-workbench .rail-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, #009a44, #007a36);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(0, 122, 54, 0.28);
    flex: 0 0 auto;
  }

  #view-workbench .rail-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1c1915;
  }

  #view-workbench .rail-name small {
    display: block;
    font-weight: 500;
    color: #6b6560;
    font-size: 11px;
  }

  #view-workbench .dock button,
  body.installer-body:has(#view-workbench:not([hidden])) .dock button {
    flex-direction: row !important;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #6b6560;
    background: transparent;
    box-shadow: none;
  }

  #view-workbench .dock button > span {
    font-size: 14.5px !important;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
  }

  #view-workbench .dock .dock-svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  #view-workbench .dock button.active,
  #view-workbench .dock button.active:hover {
    background: #e6f4ec;
    color: #007a36;
    box-shadow: none;
  }

  #view-workbench .dock button.active .dock-svg {
    stroke: #007a36;
  }

  #view-workbench .dock button.active::before {
    display: none;
  }

  body.installer-body:has(#view-workbench:not([hidden])) #help-edge {
    display: inline-flex !important;
    position: fixed !important;
    top: 11px !important;
    right: 62px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    background: #e6f4ec !important;
    color: #007a36 !important;
    box-shadow: none !important;
    z-index: 90;
  }

  body.installer-body:has(#view-workbench:not([hidden])) #help-edge span {
    writing-mode: horizontal-tb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
  }

  #desk-avatar.desk-avatar {
    display: grid;
    place-items: center;
    position: fixed;
    top: 11px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #1c1915;
    background: #fff;
    color: #1c1915;
    font-weight: 800;
    font-size: 14px;
    z-index: 90;
    cursor: pointer;
  }

  #lead-route {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }

  /* Page heads are ink on paper, not a green banner. */
  #view-workbench .page-brand {
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
    color: #1c1915;
  }

  #view-workbench .page-kicker,
  #view-workbench .page-brand-title,
  #view-workbench .page-brand-place {
    color: #1c1915;
  }

  #view-workbench .page-avatar {
    display: none;
  }

  #view-workbench #tab-home.active {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    align-content: start;
  }

  #tab-home .page-brand {
    grid-column: 1;
    margin: 0;
    align-self: end;
  }

  #tab-home .page-kicker {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    opacity: 1;
  }

  #tab-home .page-straddle {
    grid-column: 2;
    margin: 0;
    align-self: end;
    min-width: 0;
  }

  #tab-home .home-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  #tab-home .home-toolbar .opp-pills { flex: 1 1 auto; min-width: 0; margin: 0; }

  #tab-home .home-sort { flex: 0 0 auto; margin: 0; }

  #tab-home .home-sort select {
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #ece6dc;
    font-weight: 700;
    padding: 0 12px;
  }

  #tab-home .opp-search {
    flex: 1 1 220px;
    min-width: 180px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #e8e1d6;
    background: #fff;
    box-shadow: 0 4px 14px rgba(28, 25, 21, 0.06);
  }

  #tab-home .opp-section {
    grid-column: 1 / -1;
    padding: 22px 0 0;
  }

  #tab-home #home-roofs.home-list {
    padding-top: 12px;
  }

  #tab-home .opp-section h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  #tab-home .opp-muted {
    font-size: 12px;
    font-weight: 700;
    color: #6b6560;
    background: #ece6dc;
    padding: 4px 10px;
    border-radius: 999px;
  }

  #tab-home .opp-promo {
    grid-template-columns: 1.4fr 180px;
    gap: 24px;
    min-height: 180px;
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(125deg, #007a36 0%, #0a9a4a 48%, #e87722 120%);
    box-shadow: 0 16px 40px rgba(0, 122, 54, 0.22);
  }

  #tab-home .opp-promo h2 {
    font-size: 26px;
    max-width: 18ch;
  }

  #tab-home .opp-promo p {
    font-size: 15px;
    max-width: 36ch;
  }

  #tab-home .opp-promo .opp-thumb {
    height: 140px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  body.installer-body #tab-home .opp-promo .primary-btn {
    width: auto;
    min-width: 180px;
    height: 48px;
    border-radius: 999px;
    background: #e87722;
  }

  #tab-home .opp-hscroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
  }

  #tab-home .opp-hscroll .opp-card,
  #tab-home .opp-grid .opp-card {
    min-width: 0;
    width: auto;
    flex: none;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(28, 25, 21, 0.06);
  }

  #tab-home .opp-hscroll .opp-card {
    border: 1.5px solid #1c1915;
  }

  #tab-home .opp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  #tab-home .opp-empty {
    min-height: 140px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(28, 25, 21, 0.06);
  }

  #tab-home .opp-pill {
    background: #ece6dc;
  }

  #tab-home .opp-pill.is-on {
    background: #007a36;
    color: #fff;
  }

  /* Tools: form column + action column, warm fields. */
  #view-workbench #tab-tools .page-kicker {
    font-size: 13px;
    font-weight: 700;
    opacity: 1;
    color: #6b6560;
  }

  #view-workbench #tab-tools .page-brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  #view-workbench #tab-tools .page-straddle {
    margin: 0 0 16px;
  }

  #view-workbench .tool-tabs {
    display: inline-flex;
    gap: 8px;
    background: #ece6dc;
    padding: 4px;
    border-radius: 999px;
  }

  #view-workbench .tool-tab {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    color: #6b6560;
    background: transparent;
  }

  #view-workbench .tool-tab.is-on {
    background: #007a36;
    color: #fff;
  }

  #view-workbench .yield-app {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 16px 20px;
    align-items: start;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  #view-workbench .yield-app > .yield-type-seg {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0;
  }

  #view-workbench .yield-app > .yield-card {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin: 0;
    padding: 22px;
    background: #fff;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(28, 25, 21, 0.06);
  }

  #view-workbench .yield-card-title,
  #view-workbench .yield-hint,
  #view-workbench .yield-mix,
  #view-workbench .yield-line-mode,
  #view-workbench .yield-line-mix,
  #view-workbench .yield-line-wide {
    grid-column: 1 / -1;
  }

  #view-workbench .yield-card-title {
    margin: 0;
    color: #1c1915;
    font-size: 16px;
    font-weight: 800;
  }

  #view-workbench .yield-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    border: 0;
  }

  #view-workbench .yield-line-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1c1915;
  }

  #view-workbench .yield-req {
    color: #c0392b;
    font-style: normal;
  }

  #view-workbench .yield-pill select,
  #view-workbench .yield-ghost,
  #view-workbench .yield-bare {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    border: 1.5px solid transparent !important;
    border-radius: 14px !important;
    background: #f0ebe3 !important;
    color: #1c1915 !important;
    font-size: 14.5px !important;
    box-shadow: none !important;
  }

  #view-workbench .yield-bare {
    display: flex;
    align-items: center;
    padding: 0 14px;
  }

  #view-workbench .yield-bare-input {
    border: 0 !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  #view-workbench .yield-app > .primary-btn {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: 76px;
    width: 100%;
    margin: 0;
    border-radius: 999px;
    background: #007a36;
    min-height: 48px;
  }

  #view-workbench .yield-app > .hint,
  #view-workbench .yield-app > .yield-err {
    grid-column: 2;
    grid-row: 3;
    position: static;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 16px;
    min-height: 0;
    color: #6b6560;
  }

  #view-workbench .yield-app:has(#btn-yield-back) {
    grid-template-columns: 1fr 1fr;
  }

  #view-workbench .yield-app:has(#btn-yield-back) > .yield-back {
    grid-column: 1 / -1;
  }

  #view-workbench .yield-app:has(#btn-yield-back) > .yield-card {
    grid-column: auto;
  }

  #view-workbench .yield-app:has(#btn-yield-back) > .yield-card:has(.yield-metrics),
  #view-workbench .yield-app:has(#btn-yield-back) > .yield-card:has(.yield-perf-toggle),
  #view-workbench .yield-app:has(#btn-yield-back) > .yield-note {
    grid-column: 1 / -1;
  }

  #view-workbench .yield-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  /* Profile: list stays primary; account and company fill the right. */
  #tab-profile .page-kicker {
    font-size: 13px;
    font-weight: 700;
    color: #6b6560;
    opacity: 1;
  }

  #tab-profile .page-brand-title {
    font-size: 22px;
    font-weight: 800;
  }

  #view-workbench #tab-profile h2.wb-profile-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  #view-workbench #tab-profile.active {
    padding: 36px 56px 72px 80px;
    background: transparent;
  }

  #tab-profile .page-brand {
    margin-bottom: 22px;
  }

  #tab-profile .page-straddle {
    margin: 0 0 22px;
  }

  #tab-profile .wb-profile-place .wb-profile-company-name {
    font-size: 15px;
    line-height: 1.15;
  }

  #tab-profile .opp-summary .wb-profile-country {
    font-size: 13px;
    line-height: 1.15;
  }

  #tab-profile .desk-profile {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 32px;
    align-items: start;
  }

  #tab-profile .desk-profile-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  #tab-profile .desk-side-card,
  #tab-profile .desk-side-tip {
    background: #fff;
    border-radius: 24px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(28, 25, 21, 0.06);
  }

  #tab-profile .desk-side-card h3,
  #tab-profile .desk-side-tip b {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
  }

  #tab-profile .desk-kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #f0ebe3;
    font-size: 14px;
  }

  #tab-profile .desk-kv span {
    color: #6b6560;
    font-weight: 600;
  }

  #tab-profile .desk-kv b {
    font-weight: 700;
    text-align: right;
  }

  #tab-profile .desk-side-tip {
    background: #e6f4ec;
  }

  #tab-profile .desk-side-tip p {
    margin: 0;
    color: #1c1915;
    font-size: 13px;
    line-height: 1.45;
  }

  #tab-academy .page-kicker {
    font-size: 13px;
    font-weight: 700;
    color: #6b6560;
    opacity: 1;
  }

  #tab-academy .page-brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1c1915;
  }

  #view-workbench #tab-academy .academy-native {
    background: transparent;
  }

  #tab-academy .page-straddle {
    margin: 0 0 16px;
  }

  #view-workbench #tab-academy .page-brand .academy-back {
    margin: 0 0 8px;
    padding: 0;
    min-height: 32px;
    color: #6b6560;
    font-size: 13px;
    font-weight: 700;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #tab-home .opp-grid,
  #tab-home .opp-hscroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-workbench .yield-app,
  #tab-profile .desk-profile {
    grid-template-columns: 1fr;
  }

  #view-workbench .yield-app > .yield-card,
  #view-workbench .yield-app > .primary-btn,
  #view-workbench .yield-app > .hint,
  #view-workbench .yield-app > .yield-err {
    grid-column: 1;
    position: static;
  }
}
/* phone-auth-scroll
   Below 1024 the sign-in body was overflow-y:auto with a height that
   matched its content, so it was a scrollport that could not move.
   overscroll-behavior:contain then ate the finger pan and the window
   stayed put. Register was a position:fixed sheet, so the document
   could not move either. Phone widths scroll the document. Desktop
   (min-width 1024) keeps the split sign-in and the fixed register page. */
@media (max-width: 1023px) {
  html:has(#view-auth:not([hidden])) body.installer-body {
    overflow: visible;
    overscroll-behavior: auto;
  }

  body[data-screen="register"] {
    overflow: visible !important;
  }

  body[data-screen="register"] .installer-main {
    display: block;
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 100dvh;
  }

  body[data-screen="register"] #view-auth {
    display: none !important;
  }

  body[data-screen="register"] #register-modal-overlay {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-screen="register"] .modal-sheet-90 {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body[data-screen="register"] .modal-body {
    overflow: visible;
    height: auto;
    max-height: none;
  }
}
/* /phone-auth-scroll */
/* wide-phone-column
   Viewports wider than a phone but below the 1024 desktop rail (unfolded
   folds, ~700–840) were full-bleed: the workbench column and the bottom
   dock stretched across the screen, and the register sheet did the same.
   Keep the phone dock and the 480 phone column, centered. True desktop
   (min-width 1024) is unchanged. Narrower phones stay full-bleed because
   100% is already under 480. */
@media (max-width: 1023px) {
  body.installer-body:has(#view-workbench:not([hidden])) .installer-main {
    width: min(480px, 100%);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  #view-workbench .dock,
  .dock {
    width: min(480px, calc(100% - 16px)) !important;
    max-width: 480px !important;
  }

  body[data-screen="register"] .installer-main,
  body[data-screen="register"] .modal-sheet-90 {
    width: min(480px, 100%);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  body.installer-body[data-screen="register"]:has(#view-auth) {
    background: #fffcf7;
  }

  body[data-screen="register"] #register-form .form-grid,
  body[data-screen="register"] #register-form .name-grid {
    grid-template-columns: 1fr;
  }

  .wb-overlay .wb-sheet,
  .wb-sheet {
    width: min(480px, 100%);
  }

  .academy-cert-overlay {
    align-items: stretch;
    padding: 0;
  }

  .academy-cert-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench .details-page-inner {
    width: min(480px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .opp-fill {
    flex-direction: column;
    align-items: stretch;
  }

  .opp-fill .primary-btn {
    width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 1023px) {
  body.installer-body:has(#view-auth:not([hidden])) #help-edge,
  body.installer-body[data-screen="register"] #help-edge {
    right: max(0px, calc((100vw - 480px) / 2 - 28px));
  }

  /* Logged-in phone top bar has no visible controls; don't draw it across the fold. */
  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    width: min(480px, 100%);
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border-bottom-color: transparent;
  }
}
/* /wide-phone-column */
/* phone-polish
   Below 1024, one cream/green rhythm for type, cards, forms, sheets, and
   the bottom dock. The 220px rail and the 56px strip stay in
   32-desktop-design.css (min-width 1024). The 480 centered column stays
   in 34-wide-phone.css. */

/* Login fields use the same warm fill as registration. */
#login-form input,
#reset-form input {
  background: #f6f4ef !important;
  border: 1.5px solid transparent !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

#login-form input:focus,
#reset-form input:focus {
  background: #fff !important;
  border-color: #009a44 !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 54, 0.18) !important;
}

@media (max-width: 1023px) {
  /* Logged-in phone bar has no controls. The green page head is the header. */
  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar {
    display: none !important;
  }

  #view-workbench {
    --phone-gutter: 16px;
  }

  #view-workbench .page-brand {
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 42px;
  }

  #view-workbench .page-kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.92;
  }

  #view-workbench .page-brand-title,
  #view-workbench .page-brand-place {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
  }

  #view-workbench .page-hello-sub {
    margin: 6px 0 0;
    max-width: 32ch;
    color: rgba(255, 252, 247, 0.92);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }

  #tab-home .page-brand {
    padding-bottom: 32px;
  }

  #tab-home .page-kicker {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.03em;
    opacity: 1;
  }

  #view-workbench .page-brand .wb-home-company,
  #view-workbench .page-brand .wb-profile-company,
  #view-workbench .page-brand .wb-company-line .wb-verify-label,
  #view-workbench .page-brand .wb-home-company .wb-verify-label,
  #view-workbench .page-brand .wb-profile-company .wb-verify-label {
    color: rgba(255, 252, 247, 0.92);
  }

  #view-workbench .page-brand .wb-verify-mark {
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
  }

  #view-workbench .page-straddle {
    margin: -28px var(--phone-gutter) 0;
  }

  #tab-home #home-roofs.home-list {
    padding-top: 8px;
  }

  #view-workbench .opp-section {
    padding: 18px var(--phone-gutter) 0;
  }

  #view-workbench .opp-section h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  #view-workbench .page-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  /* Search sits in the cream pill. The global input rule must not draw a second box. */
  #view-workbench .opp-search {
    height: 52px;
    border-radius: 18px;
  }

  #view-workbench .opp-search input,
  #view-workbench .opp-search input:focus {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  #view-workbench .opp-fill,
  #view-workbench .opp-promo,
  #view-workbench .opp-card,
  #view-workbench .opp-empty,
  #view-workbench .opp-summary,
  #view-workbench .academy-course-card,
  #view-workbench .academy-lesson-row {
    border-radius: 20px;
  }

  #view-workbench .opp-fill h2,
  #view-workbench .opp-promo h2,
  #view-workbench .academy-course-card strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }

  #view-workbench .opp-fill p,
  #view-workbench .opp-promo p,
  #view-workbench .academy-course-card .meta {
    font-size: 14px;
    line-height: 1.45;
  }

  #view-workbench .opp-card b {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  #view-workbench .opp-meta,
  #view-workbench .opp-muted,
  #view-workbench .opp-chip {
    font-size: 13px;
  }

  #view-workbench .opp-pill {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 14px;
  }

  #view-workbench .primary-btn {
    min-height: 52px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
  }

  /* Profile list lines up with the summary card. */
  #view-workbench #tab-profile > .sheet {
    margin-left: var(--phone-gutter);
    margin-right: var(--phone-gutter);
  }

  #view-workbench #tab-profile .menu-item-copy strong,
  #view-workbench #tab-profile .menu-item strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  #view-workbench #tab-profile .menu-item div span {
    font-size: 13px;
    line-height: 1.35;
    color: #6f685f;
  }

  #view-workbench #tab-profile .wb-profile-place .wb-profile-company-name {
    font-size: 14px;
    line-height: 1.15;
  }

  #view-workbench #tab-profile .opp-summary .wb-profile-country {
    margin: 0;
    font-size: 12px;
    line-height: 1.15;
    color: #6f685f;
  }

  #view-workbench .wb-profile-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  /* Tools: pills on cream, cards without a second white frame. */
  #view-workbench #tab-tools .tool-tabs {
    border-radius: 999px;
    padding: 4px;
  }

  #view-workbench #tab-tools .tool-tab {
    min-height: 44px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
  }

  #view-workbench #tab-tools .tool-tab-panel {
    padding: 14px var(--phone-gutter) 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #view-workbench .yield-app,
  #view-workbench .module-app {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 12px;
  }

  #view-workbench .yield-type-btn {
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
  }

  #view-workbench .yield-card,
  #view-workbench .module-app:not(.module-app-result) {
    background: #fffcf7;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  }

  #view-workbench .module-app:not(.module-app-result) {
    padding: 16px;
    gap: 14px;
  }

  #view-workbench .yield-card {
    padding: 16px 16px 8px;
  }

  #view-workbench .yield-card-title {
    margin: 0 0 10px;
    color: #1c1915;
    font-size: 18px;
    font-weight: 700;
  }

  #view-workbench .yield-line {
    gap: 6px;
    padding: 4px 0 10px;
    border-bottom: 0;
  }

  #view-workbench .yield-line-label,
  #view-workbench .module-field .yield-line-label {
    font-size: 14px;
    font-weight: 700;
    color: #1c1915;
  }

  #view-workbench .yield-hint,
  #view-workbench .module-lead,
  #view-workbench .module-warranty,
  #view-workbench .yield-app > .hint,
  #view-workbench .module-app > .hint {
    font-size: 13px;
    line-height: 1.45;
    color: #6f685f;
  }

  #view-workbench .yield-pill {
    display: block;
    width: 100%;
  }

  #view-workbench .yield-pill select,
  #view-workbench .yield-ghost,
  #view-workbench .yield-bare {
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 36px 0 14px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #f6f4ef !important;
    box-shadow: none !important;
    color: #1c1915 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: left !important;
  }

  #view-workbench .yield-bare-input {
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: left !important;
  }

  #view-workbench .module-sn-field {
    min-height: 52px;
    padding: 4px;
    border: 0;
    border-radius: 16px;
    background: #f6f4ef;
  }

  #view-workbench .module-sn-scan-btn {
    border-radius: 12px;
    background: #fff;
  }

  #view-workbench .module-captcha-row .module-sn-input {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #f6f4ef !important;
    box-shadow: none !important;
  }

  #view-workbench .module-captcha-code {
    min-height: 48px;
    border-radius: 16px;
    background: #e5f6ec;
    color: #007a36;
  }

  #view-workbench #tab-tools .yield-app .primary-btn,
  #view-workbench #tab-tools .module-app > .primary-btn {
    width: 100%;
    align-self: stretch;
    min-height: 52px;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(180deg, #14a84f, #009a44 45%, #007a36);
    box-shadow: 0 10px 18px rgba(0, 122, 54, 0.22);
  }

  #view-workbench .module-result {
    background: #fffcf7;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  }

  #view-workbench .module-result > div {
    border-bottom-color: #efe8dc;
  }

  #view-workbench .module-result dt {
    color: #6f685f;
    font-size: 13px;
  }

  #view-workbench .module-result dd {
    font-size: 16px;
  }

  /* Certification rows: one gap, full-width actions. */
  #view-workbench .academy-feed {
    gap: 12px;
  }

  #view-workbench .academy-feed .academy-course-card,
  #view-workbench .academy-lesson-list .academy-lesson-row {
    margin: 0;
  }

  #view-workbench .page-brand .academy-back {
    margin: 0 0 6px;
    padding: 0;
    min-height: 44px;
    font-size: 13px;
    font-weight: 700;
    color: inherit;
    background: transparent;
    border: 0;
  }

  #tab-academy .page-brand {
    padding-bottom: 56px;
  }

  #view-workbench .academy-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  #view-workbench .academy-actions .primary-btn,
  #view-workbench .academy-actions .ghost-btn {
    width: 100%;
    flex: none;
    min-height: 52px;
    border-radius: 999px;
  }

  /* Details editor matches the 16px page gutter. */
  #view-workbench .details-page-inner {
    padding: 12px var(--phone-gutter) 112px;
  }

  #view-workbench #details-page .details-top h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  #view-workbench #details-page .detail-q legend {
    font-size: 16px;
    font-weight: 700;
  }

  #view-workbench #details-page .detail-q > input,
  #view-workbench #details-page .detail-q > textarea,
  #view-workbench #details-page .detail-note {
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #f6f4ef !important;
    box-shadow: none !important;
    font-size: 16px !important;
  }

  #view-workbench #details-page .detail-choice {
    min-height: 48px;
    border-radius: 16px;
    border-color: transparent;
    background: #f6f4ef;
    font-size: 16px;
  }

  #view-workbench #details-page .detail-form .primary-btn {
    width: 100%;
    min-width: 0;
  }

  /* Sheets: same button and field rhythm as the page. */
  .wb-overlay .wb-sheet-body {
    padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .wb-overlay .field-group:not(:has(.input-icon)) input,
  .wb-overlay .field-group:not(:has(.input-icon)) textarea,
  .wb-overlay .field-group:not(:has(.input-icon)) select {
    padding-left: 14px !important;
    background: #f6f4ef !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }

  .wb-overlay .app-lead-card,
  .wb-overlay .lead-item {
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(60, 40, 20, 0.06);
    margin: 0 0 12px;
    overflow: hidden;
  }

  /* Complete-your-details sheet and the Account profile editor.
     Those controls are .detail-q / .field-label, not .field-group.
     Survey questions stay; only the phone rhythm changes. */
  .wb-overlay .details-section {
    margin: 0 0 12px;
    padding: 16px 14px 8px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(60, 40, 20, 0.06);
  }

  .wb-overlay .details-section > h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #1c1915;
  }

  .wb-overlay .detail-q {
    margin: 0 0 16px;
    padding: 0 0 14px;
    border: 0;
    min-width: 0;
  }

  .wb-overlay .details-section .detail-q:last-of-type {
    margin-bottom: 8px;
    padding-bottom: 0;
  }

  .wb-overlay .detail-q legend {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #1c1915;
  }

  .wb-overlay .detail-q .field-hint {
    margin: -2px 0 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #6f685f;
  }

  .wb-overlay .detail-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wb-overlay .detail-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 16px;
    background: #f6f4ef;
    color: #1c1915;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
  }

  .wb-overlay .detail-choice input {
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none;
    accent-color: #007a36;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .wb-overlay .account-form {
    gap: 12px;
  }

  .wb-overlay .account-form .field-label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #3c3832;
  }

  #wb-overlay .detail-form input:not([type="checkbox"]):not([type="radio"]),
  #wb-overlay .detail-form textarea,
  #wb-overlay .detail-form select,
  #wb-overlay .account-form .field-label input,
  #wb-overlay .account-form .field-label select,
  #wb-overlay .account-form .detail-q > input:not([type="checkbox"]):not([type="radio"]),
  #wb-overlay .account-form .detail-q > textarea,
  #wb-overlay .account-form .detail-note {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0;
    padding: 12px 14px !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    background-color: #f6f4ef !important;
    box-shadow: none !important;
    color: #1c1915 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  #wb-overlay .detail-form textarea,
  #wb-overlay .account-form textarea {
    height: auto !important;
    min-height: 96px !important;
  }

  #wb-overlay .account-form select,
  #wb-overlay .detail-form select {
    appearance: none;
    padding-right: 36px !important;
    background-image:
      linear-gradient(45deg, transparent 50%, #6f685f 50%),
      linear-gradient(135deg, #6f685f 50%, transparent 50%) !important;
    background-position:
      calc(100% - 20px) calc(50% - 2px),
      calc(100% - 14px) calc(50% - 2px) !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
  }

  #wb-overlay .detail-form input:not([type="checkbox"]):not([type="radio"]):focus,
  #wb-overlay .detail-form textarea:focus,
  #wb-overlay .detail-form select:focus,
  #wb-overlay .account-form .field-label input:focus,
  #wb-overlay .account-form .field-label select:focus,
  #wb-overlay .account-form .detail-q > input:not([type="checkbox"]):not([type="radio"]):focus,
  #wb-overlay .account-form .detail-q > textarea:focus,
  #wb-overlay .account-form .detail-note:focus {
    background-color: #fff !important;
    border-color: #009a44 !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 54, 0.18) !important;
    outline: none !important;
  }

  .wb-overlay .detail-suggest {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    min-height: 44px;
    padding: 8px 10px 8px 14px;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    background: #ecfdf5;
    color: #14532d;
  }

  .wb-overlay .detail-suggest span {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }

  .wb-overlay .detail-suggest button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #14532d;
    box-shadow: none;
  }

  /* Three-step company details sheet. Fields have no leading icon. */
  #profile-setup-form .field-group > input:not([type="hidden"]),
  #profile-setup-form .field-group > textarea,
  #profile-setup-form .select-wrapper select {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    background-color: #f6f4ef !important;
    box-shadow: none !important;
    color: #1c1915 !important;
    font-size: 16px !important;
  }

  #profile-setup-form .select-wrapper select {
    appearance: none;
    padding-right: 36px !important;
  }

  #profile-setup-form .field-group > textarea {
    height: auto !important;
    min-height: 96px !important;
  }

  #profile-setup-form .field-group > input:not([type="hidden"]):focus,
  #profile-setup-form .field-group > textarea:focus,
  #profile-setup-form .select-wrapper select:focus {
    background-color: #fff !important;
    border-color: #009a44 !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 54, 0.18) !important;
    outline: none !important;
  }

  #profile-setup-form .label-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #3c3832;
  }

  #profile-setup-form .reg-wizard-actions .primary-btn,
  #profile-setup-form .reg-wizard-actions .ghost-btn {
    min-height: 52px;
    border-radius: 999px;
  }

  #view-workbench #details-page .detail-note[hidden],
  #view-workbench #details-page .detail-q[hidden],
  #wb-overlay .detail-note[hidden],
  #wb-overlay .detail-q[hidden],
  #wb-overlay #email-change[hidden] {
    display: none !important;
  }

  /* Dock labels are 13px. Active is green icon and word, not a tint pill. */
  #view-workbench .dock button,
  #view-workbench .dock button > span {
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  #view-workbench .dock button.active,
  #view-workbench .dock button.active:hover,
  .dock button.active {
    background: transparent !important;
    color: #007a36 !important;
    box-shadow: none !important;
  }

  #view-workbench .dock button.active .dock-svg,
  .dock button.active .dock-svg {
    color: #007a36 !important;
    stroke: #007a36;
  }
}
/* /phone-polish */

#register-form .reg-other-note[hidden],
#survey-form .reg-other-note[hidden],
#profile-setup-form .reg-other-note[hidden],
#detail-form .detail-note[hidden],
#view-workbench #details-page .detail-note[hidden],
#wb-overlay .detail-note[hidden] {
  display: none !important;
}

#survey-form .select-wrapper select.reg-native-hidden,
#profile-setup-form .select-wrapper select.reg-native-hidden,
#detail-form .select-wrapper select.reg-native-hidden,
#wb-overlay .select-wrapper select.reg-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#survey-form .select-wrapper:has(select.reg-picklist) .select-arrow,
#profile-setup-form .select-wrapper:has(select.reg-picklist) .select-arrow,
#detail-form .select-wrapper:has(select.reg-picklist) .select-arrow,
#wb-overlay .select-wrapper:has(select.reg-picklist) .select-arrow {
  display: none !important;
}

#survey-form .reg-combo-btn,
#profile-setup-form .reg-combo-btn,
#detail-form .reg-combo-btn,
#wb-overlay .reg-combo-btn {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 8px 36px 8px 14px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: #f6f4ef;
  color: #1c1915;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#survey-form .reg-combo-btn.is-empty,
#profile-setup-form .reg-combo-btn.is-empty,
#detail-form .reg-combo-btn.is-empty,
#wb-overlay .reg-combo-btn.is-empty {
  color: #8a8175;
}

#survey-form .reg-combo-btn::after,
#profile-setup-form .reg-combo-btn::after,
#detail-form .reg-combo-btn::after,
#wb-overlay .reg-combo-btn::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8a8175;
  border-bottom: 2px solid #8a8175;
  transform: rotate(45deg);
  pointer-events: none;
}

#survey-form .reg-combo-chip,
#profile-setup-form .reg-combo-chip,
#detail-form .reg-combo-chip,
#wb-overlay .reg-combo-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 122, 54, 0.1);
  color: #1c1915;
  font-size: 0.8125rem;
  line-height: 1.35;
}

#register-form .select-wrapper,
#survey-form .select-wrapper,
#profile-setup-form .select-wrapper,
#register-form .field-group,
#survey-form .field-group,
#profile-setup-form .field-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

#survey-form .js-survey-mount > .field-group:not(.field-gate) > .select-wrapper.field-gate,
#profile-setup-form .js-profile-setup-mount > .field-group:not(.field-gate) > .select-wrapper.field-gate {
  width: calc(100% - 16px) !important;
  max-width: calc(100% - 16px) !important;
  margin-left: 8px;
  margin-right: 8px;
}

#register-form .select-wrapper .reg-combo,
#survey-form .select-wrapper .reg-combo,
#profile-setup-form .select-wrapper .reg-combo {
  display: block;
  flex: 1 1 100%;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

#register-form .reg-combo-btn,
#survey-form .reg-combo-btn,
#profile-setup-form .reg-combo-btn,
#register-form .select-wrapper select:not(.reg-native-hidden),
#survey-form .select-wrapper select:not(.reg-native-hidden),
#profile-setup-form .select-wrapper select:not(.reg-native-hidden) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  field-sizing: fixed !important;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  #view-workbench #tab-academy .academy-native {
    padding: 0 0 12px;
    gap: 0;
    background: transparent;
  }

  #view-workbench #tab-academy .academy-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 16px 0;
  }

  #view-workbench #tab-academy .page-brand .academy-back {
    margin: 0 0 6px;
    padding: 0;
    min-height: 44px;
    color: inherit;
  }

  #view-workbench #tab-academy .academy-lesson-row,
  #view-workbench #tab-academy .academy-course-card {
    padding: 16px 18px;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(60, 40, 20, 0.08);
  }

  #view-workbench #tab-academy .academy-offline-link {
    display: inline-block;
    margin: 2px 4px 0;
    padding: 12px 4px;
  }

  #view-workbench #tab-academy .academy-actions {
    margin-top: 8px;
  }
}
/* Sign-in hero motion. Slow drifts and one panel glint. No bounce. */

.splash-mark {
  animation: splash-sky 16s ease-in-out infinite alternate;
}

.splash-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.splash-orb,
.splash-spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.splash-orb {
  filter: blur(26px);
  animation: splash-drift 11s ease-in-out infinite alternate;
}

.splash-orb-a {
  width: 220px;
  height: 220px;
  left: 8%;
  top: 16%;
  background: rgba(246, 226, 122, 0.34);
}

.splash-orb-b {
  width: 280px;
  height: 280px;
  right: -40px;
  bottom: 6%;
  background: rgba(255, 252, 247, 0.16);
  animation-duration: 15s;
  animation-delay: -4s;
}

.splash-orb-c {
  width: 160px;
  height: 160px;
  left: 46%;
  top: 58%;
  background: rgba(183, 240, 207, 0.28);
  animation-duration: 13s;
  animation-delay: -7s;
}

.splash-spark {
  width: 7px;
  height: 7px;
  background: #f6e27a;
  box-shadow: 0 0 12px rgba(246, 226, 122, 0.85);
  animation: splash-spark 7s ease-in-out infinite;
}

.splash-spark-a { left: 22%; top: 28%; }
.splash-spark-b {
  right: 18%;
  bottom: 24%;
  width: 5px;
  height: 5px;
  animation-duration: 9s;
  animation-delay: -3s;
}

.splash-logo {
  animation:
    splash-logo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both,
    splash-logo-float 3.4s ease-in-out 0.9s infinite;
}

.splash-mark p {
  animation: splash-copy-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

#view-auth .auth-hero::before {
  content: "";
  position: absolute;
  right: -36px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 226, 122, 0.32), rgba(246, 226, 122, 0) 68%);
  pointer-events: none;
  animation: hero-glow 12s ease-in-out infinite alternate;
}

#view-auth .auth-card {
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-stage.is-leaving .auth-card {
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 1, 1), opacity 0.4s ease;
}

.auth-art .auth-cloud,
.auth-art .art-house,
.auth-art .art-sun,
.auth-art .auth-sun-rays,
.auth-art .auth-sun-halo,
.auth-art .art-shadow,
.auth-art .auth-mote,
.auth-art .auth-panel,
.auth-art .auth-sheen rect {
  transform-box: fill-box;
  transform-origin: center;
}

.auth-art .auth-cloud { opacity: 0.42; }
.auth-art .auth-cloud-b { opacity: 0.26; }

.auth-art .auth-cloud-a { animation: cloud-drift 18s ease-in-out infinite alternate; }
.auth-art .auth-cloud-b {
  animation: cloud-drift 22s ease-in-out infinite alternate-reverse;
  animation-delay: -5s;
}

.auth-art .art-house { animation: house-breathe 8s ease-in-out infinite; }
.auth-art .art-shadow {
  opacity: 0.2;
  animation: house-shadow 8s ease-in-out infinite;
}

.auth-art .art-sun { animation: sun-breathe 9s ease-in-out infinite; }
.auth-art .auth-sun-halo { animation: halo-bloom 9s ease-in-out infinite; }
.auth-art .auth-sun-rays {
  opacity: 0.72;
  animation: ray-turn 36s linear infinite;
}

.auth-art .auth-sheen rect { animation: panel-glint 8.5s ease-in-out infinite; }

.auth-art .auth-mote { opacity: 0.55; }
.auth-art .auth-mote-a { animation: mote-rise 11s ease-in-out infinite; }
.auth-art .auth-mote-b { animation: mote-rise 13s ease-in-out infinite -4s; }
.auth-art .auth-mote-c { animation: mote-rise 9.5s ease-in-out infinite -7s; }

@media (min-width: 1024px) {
  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-hero::before {
    left: 6%;
    right: auto;
    top: 34%;
    width: 240px;
    height: 240px;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-hero::after {
    animation: hero-glow 18s ease-in-out infinite alternate-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-mark,
  .splash-logo,
  .splash-mark p,
  .splash-orb,
  .splash-spark,
  #view-auth .auth-hero::before,
  #view-auth .auth-hero::after,
  .auth-art .auth-cloud-a,
  .auth-art .auth-cloud-b,
  .auth-art .art-house,
  .auth-art .art-shadow,
  .auth-art .art-sun,
  .auth-art .auth-sun-halo,
  .auth-art .auth-sun-rays,
  .auth-art .auth-sheen rect,
  .auth-art .auth-mote-a,
  .auth-art .auth-mote-b,
  .auth-art .auth-mote-c {
    animation: none !important;
  }

  .auth-stage.is-leaving .auth-card { opacity: 1; }
}

@keyframes splash-sky {
  from { background-position: 0% 20%; }
  to { background-position: 80% 60%; }
}

@keyframes splash-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(16px, -18px, 0) scale(1.06); }
}

@keyframes splash-spark {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes splash-logo-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes splash-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes splash-copy-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.92; transform: none; }
}

@keyframes hero-glow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(18px, 14px, 0); }
}

@keyframes cloud-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(12px, -5px); }
}

@keyframes house-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes house-shadow {
  0%, 100% { transform: scaleX(1); opacity: 0.22; }
  50% { transform: scaleX(0.9); opacity: 0.12; }
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes halo-bloom {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes ray-turn {
  to { transform: rotate(360deg); }
}

@keyframes panel-glint {
  0% { transform: translateX(0); opacity: 0; }
  14% { opacity: 0.95; }
  42% { transform: translateX(92px); opacity: 0.2; }
  58%, 100% { transform: translateX(92px); opacity: 0; }
}

@keyframes mote-rise {
  0% { transform: translate(0, 6px); opacity: 0; }
  22% { opacity: 0.7; }
  100% { transform: translate(8px, -20px); opacity: 0; }
}
/* Phone home toolbar. One nowrap row clips sort and the last chips on a 390px screen.
   Search and sort share the first line. Filter chips are the next line and may scroll.
   Desktop (min-width 1024 in 32-desktop-design.css) stays one row. */

@media (max-width: 1023px) {
  #tab-home .home-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "search sort"
      "pills pills";
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: visible;
  }

  #tab-home .home-toolbar .opp-search {
    grid-area: search;
    flex: none;
    width: auto;
    min-width: 0;
    height: 44px;
  }

  #tab-home .home-toolbar .opp-search input {
    min-width: 0;
    text-overflow: ellipsis;
  }

  #tab-home .home-toolbar .opp-pills {
    grid-area: pills;
    flex: none;
    min-width: 0;
    margin: 0;
    gap: 6px;
    overflow-x: auto;
  }

  #tab-home .home-toolbar .opp-pill {
    min-height: 36px;
    padding: 6px 10px;
  }

  #tab-home .home-sort {
    grid-area: sort;
    flex: none;
    display: flex;
    align-items: center;
    margin: 0;
    min-width: max-content;
    max-width: 70%;
  }

  #tab-home .home-sort select {
    width: auto;
    min-width: 148px;
    max-width: 100%;
    field-sizing: content;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fffcf7;
    box-shadow: 0 4px 12px rgba(60, 40, 20, 0.05);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #1c1915;
    padding: 0 10px;
  }
}
/* Sign-in fold: the wordmark sits in the green hero, to the right of the rooftop.
   The cream card starts at Hey. The language control shares that row, on the right.
   The register wizard keeps its own logo and the fixed top-right language control. */

@media (max-width: 1023px) {
  #view-auth .auth-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 14px 16px 12px;
    box-sizing: border-box;
  }

  #view-auth .auth-art {
    order: 1;
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    flex: 0 0 auto;
    width: 132px;
    height: 94px;
    margin: 0;
    z-index: 1;
  }

  #view-auth .auth-brand-lockup {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
    z-index: 1;
  }

  #view-auth .auth-brand-logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
  }

  #view-auth .auth-kicker {
    display: none;
  }
}

body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-card-logo {
  display: none;
}

#view-auth .auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

#view-auth .auth-card-head h1 {
  margin: 0;
  min-width: 0;
}

#view-auth .auth-lang-slot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

#view-auth .auth-lang-slot .lang-dropdown-wrapper {
  position: relative;
  top: auto;
  right: auto;
  z-index: 30;
}

#view-auth .auth-lang-slot .lang-dropdown-menu {
  z-index: 40;
}

@media (min-width: 1024px) {
  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    justify-content: start;
    justify-items: start;
    column-gap: 32px;
    row-gap: 28px;
  }

  body.installer-body:has(#view-auth:not([hidden])) #view-auth .auth-art {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-brand-lockup {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    max-width: 240px;
  }

  body.installer-body:has(#view-auth:not([hidden])) .auth-tagline {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* Logged-in pages keep the same right-edge Help tab as registration.
   The phone top bar stays out of the layout; the tab is position:fixed. */

body.installer-body:has(#view-workbench:not([hidden])) #help-edge,
body.installer-body:has(#view-ready:not([hidden])) #help-edge {
  display: grid !important;
  position: fixed !important;
  right: 0 !important;
  left: auto !important;
  top: 42% !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 10px 6px !important;
  border: 0 !important;
  border-radius: 12px 0 0 12px !important;
  background: rgba(255, 252, 247, 0.94) !important;
  color: #007a36 !important;
  box-shadow: -4px 6px 16px rgba(60, 40, 20, 0.12) !important;
  z-index: 90 !important;
  place-items: center;
  pointer-events: auto;
}

body.installer-body:has(#view-workbench:not([hidden])) #help-edge span,
body.installer-body:has(#view-ready:not([hidden])) #help-edge span {
  writing-mode: vertical-rl !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar,
body.installer-body:has(#view-ready:not([hidden])) .installer-topbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 1023px) {
  body.installer-body:has(#view-workbench:not([hidden])) .installer-topbar,
  body.installer-body:has(#view-ready:not([hidden])) .installer-topbar {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 90;
    pointer-events: none;
  }

  body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner,
  body.installer-body:has(#view-workbench:not([hidden])) .topbar-actions,
  body.installer-body:has(#view-ready:not([hidden])) .topbar-inner,
  body.installer-body:has(#view-ready:not([hidden])) .topbar-actions {
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none;
  }
}

@media (min-width: 481px) and (max-width: 1023px) {
  body.installer-body:has(#view-workbench:not([hidden])) #help-edge,
  body.installer-body:has(#view-ready:not([hidden])) #help-edge {
    right: max(0px, calc((100vw - 480px) / 2 - 28px)) !important;
  }
}

@media (min-width: 1024px) {
  body.installer-body:has(#view-workbench:not([hidden])) .topbar-inner {
    padding-right: 64px !important;
  }
}

body.installer-body.is-help-shrink #help-edge {
  z-index: 1400 !important;
}

#help-edge.is-help-arrived {
  animation: help-edge-pop 420ms ease;
}

@keyframes help-edge-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.wb-overlay.is-help-shrink {
  background: transparent !important;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #help-edge.is-help-arrived { animation: none; }
}

.support-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.9);
  color: #10233f;
  font: 700 16px/1.2 var(--font-sans, Figtree, sans-serif);
  text-align: left;
  text-decoration: none;
}

.support-contact svg {
  flex: 0 0 auto;
}

.support-contact-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.support-contact-address {
  color: #007a36;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: text;
}

#view-workbench #tab-profile .opp-menu .support-contact-row {
  min-height: 72px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid #e6dfd4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-workbench #tab-profile .opp-menu .support-contact-row:hover,
#view-workbench #tab-profile .opp-menu .support-contact-row:active {
  background: #f6f1ea;
}
/* Phone browser chrome (address bar, back, home) overlays the layout
   viewport. env(safe-area-inset-bottom) is the device home indicator.
   The head script writes --browser-chrome-measured from visualViewport
   resize/orientation only. It does not write on visualViewport.scroll,
   and it ignores resize while a touch/wheel scroll is active, so page
   padding does not thrash mid-scroll.
   A gap of 160px or more is the software keyboard, not the browser bar.

   The round dock sits on the screen edge (bottom: 0). Safe area is
   padding inside the dock, so the background reaches the bottom and
   the icons sit above the inset. Do not add a floor to `bottom`.
   Measured chrome pads pages that have no dock. It does not lift the
   dock. Desktop (min-width 1024) is the left rail and keeps bottom: 0. */

:root {
  --browser-chrome-measured: 0px;
  --browser-chrome-bottom: var(--browser-chrome-measured, 0px);
  --dock-inner-safe: max(env(safe-area-inset-bottom, 0px), 8px);
  /* 4px top pad + 56px icon row + the inner safe pad + 16px above the dock. */
  --dock-clearance: calc(60px + var(--dock-inner-safe, 8px) + 16px);
}

@media (max-width: 1023px) {
  :root {
    --browser-chrome-bottom: calc(
      env(safe-area-inset-bottom, 0px) + var(--browser-chrome-measured, 0px)
    );
    --dock-clearance: calc(60px + var(--dock-inner-safe, 8px) + 16px);
  }

  html {
    scroll-padding-bottom: var(--dock-clearance, 84px);
  }

  /* Login and register have no dock. Real insets keep the last row clear. */
  body.installer-body {
    padding-bottom: var(--browser-chrome-bottom, 0px);
  }

  /* Workbench clearance lives on the tab, so the body pad does not stack. */
  html:has(#view-workbench:not([hidden])) body.installer-body {
    padding-bottom: 0;
  }

  /* Later .dock { bottom } rules lose: higher specificity, !important, last file. */
  html body.installer-body #view-workbench .dock,
  html body.installer-body .dock {
    bottom: 0 !important;
    height: auto !important;
    min-height: calc(60px + var(--dock-inner-safe, 8px)) !important;
    padding: 4px 4px var(--dock-inner-safe, 8px) !important;
    border-radius: 28px 28px 0 0 !important;
  }

  html body.installer-body #view-workbench .dock button,
  html body.installer-body .dock button {
    height: auto !important;
    min-height: 56px !important;
  }

  #view-workbench #tab-tools .yield-app .primary-btn {
    bottom: var(--dock-clearance, 84px);
  }

  /* #btn-run-v3 stays position: static and scrolls with the form. This pad
     puts the whole Calculate button above the dock at the end of the scroll. */
  html body.installer-body #view-workbench .app-tab.active {
    padding-bottom: var(--dock-clearance, 84px) !important;
  }

  #register-form .modal-submit-dock {
    bottom: var(--browser-chrome-bottom, 0px);
  }

  #view-ready {
    min-height: 100svh;
  }

  /* Bottom sheets are not lifted for the dock or the browser bar.
     Their chrome is 39-sheet-dock.css. Full-screen guide and certificate
     still inset their own content. */
  .guide-drawer,
  .academy-cert-dialog {
    padding-bottom: var(--browser-chrome-bottom, 0px);
  }

  #toast {
    bottom: calc(24px + var(--browser-chrome-bottom, 0px));
  }

  html:has(#view-workbench:not([hidden])) #toast {
    bottom: var(--dock-clearance, 84px);
  }

  /* 100vh on the tab tracks the large viewport and, with the URL bar,
     makes a short page jump after a pull. The dock pad is the only gap. */
  #view-workbench .app-tab {
    min-height: 0;
  }

  #lead-route:not([hidden]) {
    position: fixed;
    z-index: 40;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(480px, 100%);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 16px calc(var(--dock-clearance, 84px) + 12px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  html:has(#lead-route:not([hidden])) {
    overflow: hidden;
  }
}

/* First-visit Yield/Module tip: same bottom sheet, no close control.
   Continue shrinks the sheet into Help. */
.wb-overlay .wb-sheet:has(#btn-beta-continue) #wb-sheet-close {
  display: none;
}
/* Shared phone bottom-sheet chrome. This file is last so it wins over
   earlier per-sheet radii and the dock-height gap. One geometry:
   full width, 16px top corners, square bottom flush with the screen,
   safe-area padding inside the content. The grab handle stays.
   Register full-bleed stays radius 0 (!important in 29).
   Desktop (min-width 1024) centered dialogs stay in 30-sheet-chrome.css.
   Centered wish sheets (.sheet-center) keep four equal 16px corners. */

@media (max-width: 1023px) {
  .wb-overlay:not(.sheet-center),
  .account-notice,
  .pwa-install-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .wb-overlay:not(.sheet-center) .wb-sheet,
  #forgot-sheet .sheet,
  .account-notice-card,
  .pwa-install-card,
  #profile-setup-overlay .modal-sheet-90 {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
  }

  .wb-overlay:not(.sheet-center) .wb-sheet {
    padding-bottom: 0;
  }

  .wb-overlay:not(.sheet-center) .wb-sheet-body {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  #forgot-sheet .sheet {
    bottom: 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .account-notice-card {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .pwa-install-card {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  #profile-setup-overlay .modal-sheet-90 {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
/* Register tab footer: fixed-height benefit carousel. The height stays put
   so a longer translation cannot push the sign-up fields. */

#view-auth:has(#tab-register.active) #auth-app-links {
  display: block;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: 0;
}

.auth-survey-entry {
  height: 168px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-carousel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #cfe8d8;
  border-radius: 16px;
  background: #e5f6ec;
}

.benefit-viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}

.benefit-viewport::-webkit-scrollbar { display: none; }

.benefit-track {
  display: flex;
  height: 100%;
}

.benefit-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.benefit-slide-calc { background: #e5f6ec; }
.benefit-slide-module { background: #e3f2ea; }
.benefit-slide-academy { background: #e7f6ee; }
.benefit-slide-verified { background: #dff3e8; }

.benefit-slide.is-light { background: #fff8ef; }

.benefit-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #007a36;
}

.benefit-slide.is-light .benefit-mark { color: #b7791f; }

.benefit-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-text strong {
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #14301f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.benefit-slide.is-light .benefit-text strong { color: #6b4b16; }

.benefit-text span {
  font-size: 13px;
  line-height: 1.35;
  color: #3d5346;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.benefit-slide.is-light .benefit-text span { color: #7a6240; }

.benefit-dots {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fffcf7;
}

.benefit-dot {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: transparent;
}

.benefit-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #b7d7c4;
  transform: translate(-50%, -50%);
}

.benefit-dot.is-on::after {
  width: 16px;
  background: #007a36;
}

.benefit-survey-link {
  flex: 0 0 32px;
  align-self: center;
  max-width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #cfe8d8;
  border-radius: 999px;
  background: #fff;
  color: #007a36;
  font-family: Figtree, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 90, 40, 0.06);
}

body.survey-open { overflow: hidden; }

#view-survey.survey-sheet {
  position: fixed;
  inset: 0;
  z-index: 4400;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  animation: none;
}

#view-survey .survey-sheet-dim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(28, 25, 21, 0.46);
}

#view-survey .survey-sheet-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(86dvh, 820px);
  overflow: hidden;
  background: #fffcf7;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -18px 48px rgba(28, 25, 21, 0.16);
}

#view-survey .grab {
  flex: none;
  width: 36px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: #e6dfd4;
}

#view-survey .survey-sheet-scroll {
  min-height: 0;
  overflow: auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

#view-survey .ticket-hero {
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-survey .hero-desc { margin-bottom: 8px; }

@media (min-width: 1024px) {
  body.installer-body:has(#view-survey:not([hidden])) #view-survey.survey-sheet {
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 32px 16px;
    background: transparent;
  }

  #view-survey .survey-sheet-panel {
    width: min(640px, 100%);
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-viewport { scroll-behavior: auto; }
  #view-survey.survey-sheet { animation: none; }
}
.academy-pass {
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 220px;
  padding-top: 12px;
}
.academy-pass-kicker {
  position: relative;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #009A44;
}
.academy-pass-score {
  position: relative;
  margin: 6px 0 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--wb-ink, #143028);
}
.academy-pass .hint,
.academy-pass .installer-actions,
.academy-pass .academy-attempts {
  position: relative;
}
#academy-pass-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .academy-pass-score { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  #academy-pass-confetti { display: none; }
}
/* Certification catalog: summary, course, and My certificates use one gap
   and one inner pad. The certificate card stays as tall as its rows. */

#view-workbench #tab-academy .academy-native {
  gap: 12px;
  background: transparent;
  padding-bottom: 0;
}

#view-workbench #tab-academy .page-straddle {
  margin-bottom: 0;
}

#view-workbench #tab-academy .opp-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
}

#view-workbench #tab-academy .academy-feed {
  gap: 12px;
  margin: 0;
}

#view-workbench #tab-academy .opp-summary,
#view-workbench #tab-academy .academy-course-card,
#view-workbench #tab-academy .academy-cert-list {
  padding: 16px;
}

#view-workbench #tab-academy .academy-cert-list {
  margin: 0;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  align-self: stretch;
  background: #fffcf7;
  border: 1px solid #d9d5cc;
  border-radius: 16px;
  box-shadow: 0 2px 3px rgba(16, 35, 63, 0.08), 0 9px 24px rgba(16, 35, 63, 0.035);
}

#view-workbench #tab-academy .academy-cert-list h3 {
  margin: 0;
}

#view-workbench #tab-academy .academy-cert-link:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
