:root {
      --gb-brand: #0872bd;
      --gb-brand-hover: #075b98;
      --gb-brand-bright: #1687d9;
      --gb-brand-soft: #eef8ff;
      --gb-ink: #172033;
      --gb-text: #344054;
      --gb-muted: #667085;
      --gb-border: #d8dee9;
      --gb-border-soft: #e5eaf1;
      --gb-surface: #ffffff;
      --gb-surface-subtle: #f8fafc;
      --gb-control-radius: .8rem;
      --gb-card-radius: 1.25rem;
      --gb-control-height: 44px;
      --gb-focus-ring: 0 0 0 3px rgba(22, 135, 217, .16);
      --gb-card-shadow: 0 1px 2px rgba(23, 32, 51, .025), 0 10px 28px rgba(23, 32, 51, .045);
    }
    [hidden], .hidden {
      display: none !important;
    }
    html {
      -webkit-tap-highlight-color: transparent;
    }
    body {
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    button,
    input,
    select,
    textarea {
      font: inherit;
    }
    button:not(:disabled) {
      cursor: pointer;
    }
    button:disabled {
      cursor: not-allowed;
    }
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    summary:focus-visible {
      outline: 3px solid rgba(22, 135, 217, .24);
      outline-offset: 3px;
    }
    input[type="checkbox"],
    input[type="radio"] {
      accent-color: var(--gb-brand);
    }
    .app-bg {
      background: radial-gradient(circle at 10% 0, rgba(22, 135, 217, .10), transparent 32rem),
                  radial-gradient(circle at 95% 5%, rgba(255, 118, 93, .09), transparent 28rem),
                  #f7f9fc;
    }
    .field {
      width: 100%;
      min-height: var(--gb-control-height);
      box-sizing: border-box;
      border: 1px solid var(--gb-border);
      border-radius: var(--gb-control-radius);
      padding: .72rem .9rem;
      background: var(--gb-surface);
      color: var(--gb-text);
      font-size: .9rem;
      line-height: 1.25;
      outline: none;
      transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    }
    .field::placeholder {
      color: #98a2b3;
      opacity: 1;
    }
    .field:hover:not(:disabled):not(:focus) {
      border-color: #c6cfdb;
    }
    .field:focus {
      border-color: var(--gb-brand-bright);
      outline: none;
      box-shadow: var(--gb-focus-ring);
    }
    .field:disabled,
    .field[readonly] {
      background: #f3f5f8;
      color: #7d8797;
    }
    .field:disabled {
      cursor: not-allowed;
    }
    .field[readonly] {
      cursor: default;
    }
    select.field {
      cursor: pointer;
    }
    select.field:not([multiple]) {
      appearance: none;
      padding-right: 2.45rem;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right .85rem center;
      background-size: 1rem;
    }
    select.field:disabled {
      cursor: not-allowed;
    }
    textarea.field {
      resize: vertical;
    }
    .rich-editor-shell {
      overflow: hidden;
      border: 1px solid var(--gb-border);
      border-radius: var(--gb-control-radius);
      background: var(--gb-surface);
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    .rich-editor-shell:focus-within {
      border-color: var(--gb-brand-bright);
      box-shadow: var(--gb-focus-ring);
    }
    .rich-editor-toolbar {
      display: flex;
      gap: .35rem;
      padding: .5rem;
      border-bottom: 1px solid var(--gb-border-soft);
      background: var(--gb-surface-subtle);
    }
    .format-btn {
      display: inline-flex;
      width: 2.15rem;
      height: 2.15rem;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--gb-border);
      border-radius: .6rem;
      background: var(--gb-surface);
      color: var(--gb-text);
      font-size: .82rem;
      font-weight: 800;
      transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    }
    .format-btn:hover {
      border-color: #b8c2d1;
      background: var(--gb-surface-subtle);
      color: var(--gb-brand);
    }
    .format-btn:focus-visible {
      border-color: var(--gb-brand-bright);
      color: var(--gb-brand);
      outline: none;
      box-shadow: var(--gb-focus-ring);
    }
    .rich-editor {
      min-height: 7.5rem;
      max-height: 16rem;
      overflow-y: auto;
      padding: .8rem .9rem;
      color: #344054;
      font-size: .9rem;
      line-height: 1.6;
      outline: none;
    }
    .rich-editor:empty::before {
      content: attr(data-placeholder);
      color: #98a2b3;
      pointer-events: none;
    }
    .service-description {
      line-height: 1.55;
      overflow-wrap: anywhere;
    }
    .service-description p,
    .service-description div {
      margin-top: .25rem;
    }
    .label {
      display: block;
      margin-bottom: .4rem;
      color: var(--gb-text);
      font-size: .78rem;
      font-weight: 700;
      line-height: 1.35;
    }
    .btn {
      display: inline-flex;
      min-height: var(--gb-control-height);
      box-sizing: border-box;
      align-items: center;
      justify-content: center;
      gap: .45rem;
      border: 1px solid transparent;
      border-radius: var(--gb-control-radius);
      padding: .68rem 1rem;
      font-size: .85rem;
      font-weight: 700;
      line-height: 1.15;
      text-align: center;
      text-decoration: none;
      cursor: pointer;
      user-select: none;
      touch-action: manipulation;
      transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
    }
    .btn:focus-visible,
    .nav-tab:focus-visible,
    .subnav-tab:focus-visible,
    .area-tab:focus-visible,
    .service-choice:focus-visible,
    .staff-choice:focus-visible,
    .slot-choice:focus-visible {
      outline: none;
      box-shadow: var(--gb-focus-ring);
    }
    .btn:disabled,
    .btn[aria-disabled="true"] {
      cursor: not-allowed;
      opacity: .52;
      transform: none;
      box-shadow: none;
    }
    .btn-primary {
      background: var(--gb-brand);
      color: white;
      box-shadow: 0 1px 2px rgba(8, 114, 189, .14);
    }
    .btn-primary:hover:not(:disabled) {
      background: var(--gb-brand-hover);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(8, 114, 189, .16);
    }
    .btn-dark {
      background: var(--gb-ink);
      color: white;
    }
    .btn-dark:hover:not(:disabled) {
      background: #2a354c;
      transform: translateY(-1px);
    }
    .btn-light {
      background: var(--gb-surface);
      color: var(--gb-text);
      border-color: var(--gb-border);
    }
    .btn-light:hover:not(:disabled) {
      background: var(--gb-surface-subtle);
      border-color: #b8c2d1;
      transform: translateY(-1px);
    }
    .btn:active:not(:disabled) {
      transform: translateY(0) scale(.99);
      box-shadow: none;
    }
    .card {
      background: rgba(255, 255, 255, .96);
      border: 1px solid var(--gb-border-soft);
      border-radius: var(--gb-card-radius);
      box-shadow: var(--gb-card-shadow);
    }
    .nav-tab.active,
    .subnav-tab.active {
      background: white;
      color: #172033;
      box-shadow: 0 2px 9px rgba(23, 32, 51, .08);
    }
    .area-tab.active {
      background: white;
      color: #172033;
      box-shadow: 0 2px 9px rgba(23, 32, 51, .16);
    }
    .service-choice.selected,
    .staff-choice.selected,
    .slot-choice.selected {
      border-color: var(--gb-brand-bright);
      background: var(--gb-brand-soft);
      box-shadow: 0 0 0 3px rgba(22, 135, 217, .11);
    }
    .spinner {
      width: 1.5rem;
      height: 1.5rem;
      border: 3px solid #d9efff;
      border-top-color: #0872bd;
      border-radius: 50%;
      animation: spin .75s linear infinite;
    }
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
    #publicBookingView {
      --customer-brand: #0872bd;
      --customer-brand-soft: #eef8ff;
      --customer-brand-border: #1687d9;
      --customer-brand-dark: #075b98;
    }
    #publicBookingView .bg-brand-600 { background-color: var(--customer-brand) !important; }
    #publicBookingView .text-brand-600 { color: var(--customer-brand) !important; }
    #publicBookingView .text-brand-700 { color: var(--customer-brand-dark) !important; }
    #publicBookingView .border-brand-500 { border-color: var(--customer-brand-border) !important; }
    #publicBookingView .service-choice.selected,
    #publicBookingView .staff-choice.selected,
    #publicBookingView .slot-choice.selected {
      border-color: var(--customer-brand-border) !important;
      background: var(--customer-brand-soft) !important;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--customer-brand) 14%, transparent) !important;
    }


    .landing-shell {
      background:
        radial-gradient(circle at 12% 2%, rgba(22, 135, 217, .13), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(255, 118, 93, .10), transparent 28rem),
        linear-gradient(180deg, #fbfdff 0%, #f7f9fc 55%, #ffffff 100%);
    }
    .landing-grid {
      background-image:
        linear-gradient(rgba(23, 32, 51, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 32, 51, .035) 1px, transparent 1px);
      background-size: 34px 34px;
    }
    .landing-kicker {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      border: 1px solid #d9efff;
      border-radius: 999px;
      padding: .48rem .75rem;
      background: rgba(255,255,255,.82);
      color: #075b98;
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .landing-kicker::before {
      content: "";
      width: .48rem;
      height: .48rem;
      border-radius: 999px;
      background: #1687d9;
      box-shadow: 0 0 0 4px rgba(22,135,217,.10);
    }
    .feature-icon {
      display: grid;
      width: 2.65rem;
      height: 2.65rem;
      place-items: center;
      border-radius: .9rem;
      background: #eef8ff;
      color: #0872bd;
      font-size: 1.05rem;
      font-weight: 900;
    }
    .booking-hero {
      background:
        radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--customer-brand) 11%, transparent), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
    }
    .booking-step {
      scroll-margin-top: 7.25rem;
      transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
    }
    .booking-step.opacity-50 {
      opacity: .58;
    }
    .booking-step:not(.opacity-50) {
      border-color: #dfe6ef;
    }
    .booking-step:not(.opacity-50):focus-within {
      border-color: var(--customer-brand-border);
      box-shadow: 0 14px 40px color-mix(in srgb, var(--customer-brand) 8%, transparent);
    }
    .progress-step {
      display: inline-flex;
      min-width: max-content;
      align-items: center;
      gap: .45rem;
      border: 1px solid #e5eaf1;
      border-radius: 999px;
      padding: .5rem .7rem;
      background: #fff;
      color: #8a94a6;
      font-size: .72rem;
      font-weight: 800;
      transition: .15s;
    }
    .progress-step .progress-dot {
      display: grid;
      width: 1.35rem;
      height: 1.35rem;
      place-items: center;
      border-radius: 999px;
      background: #eef1f5;
      color: #7a8496;
      font-size: .62rem;
      font-weight: 900;
    }
    .progress-step[data-status="current"] {
      border-color: var(--customer-brand-border);
      background: var(--customer-brand-soft);
      color: var(--customer-brand-dark);
    }
    .progress-step[data-status="current"] .progress-dot,
    .progress-step[data-status="complete"] .progress-dot {
      background: var(--customer-brand);
      color: #fff;
    }
    .progress-step[data-status="complete"] {
      border-color: color-mix(in srgb, var(--customer-brand) 28%, #e5eaf1);
      color: #526074;
    }
    .service-choice,
    .staff-choice,
    .slot-choice {
      cursor: pointer;
    }
    #publicBookingView .service-choice:hover,
    #publicBookingView .staff-choice:hover,
    #publicBookingView .slot-choice:hover {
      transform: translateY(-1px);
      box-shadow: 0 9px 24px rgba(23,32,51,.07);
    }
    #publicBookingView .slot-choice {
      min-height: 2.85rem;
      font-weight: 800;
    }
    .booking-summary-card {
      box-shadow: 0 18px 50px rgba(23, 32, 51, .08);
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .01ms !important;
      }
    }

    /* Homepage dashboard preview: finite motion, independent of booking data. */
    #dashboardPreview [data-preview-count] { font-variant-numeric: tabular-nums; }
    #dashboardPreview .preview-live { display: inline-flex; align-items: center; gap: .4rem; }
    #dashboardPreview .preview-live::before {
      content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #059669;
    }
    #dashboardPreview .preview-diary { position: relative; overflow: hidden; }
    #dashboardPreview .preview-diary::after {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.75) 50%, transparent 80%);
      transform: translateX(-110%); opacity: 0;
    }
    @media (prefers-reduced-motion: no-preference) {
      #dashboardPreview.preview-playing { animation: preview-enter .7s ease-out both; }
      #dashboardPreview.preview-playing .preview-stat,
      #dashboardPreview.preview-playing .preview-appointment,
      #dashboardPreview.preview-playing .preview-diary {
        animation: preview-enter .6s cubic-bezier(.2,.7,.3,1) both;
      }
      #dashboardPreview.preview-playing .preview-stat:nth-child(1) { animation-delay: .12s; }
      #dashboardPreview.preview-playing .preview-stat:nth-child(2) { animation-delay: .24s; }
      #dashboardPreview.preview-playing .preview-stat:nth-child(3) { animation-delay: .36s; }
      #dashboardPreview.preview-playing .preview-appointment:nth-child(1) { animation-delay: .48s; }
      #dashboardPreview.preview-playing .preview-appointment:nth-child(2) { animation-delay: .62s; }
      #dashboardPreview.preview-playing .preview-diary { animation-delay: .76s; }
      #dashboardPreview.preview-playing .preview-live::before { animation: preview-pulse 1.4s ease-out 3; }
      #dashboardPreview.preview-playing .preview-diary::after { animation: preview-sheen 1s ease-in-out 1.4s both; }
      #dashboardPreview .preview-stat, #dashboardPreview .preview-appointment {
        transition: box-shadow .2s ease, border-color .2s ease;
      }
    }
    @media (hover: hover) {
      #dashboardPreview .preview-stat:hover, #dashboardPreview .preview-appointment:hover {
        border-color: #b8dcf5; box-shadow: 0 6px 18px rgba(22,135,217,.09);
      }
    }
    @keyframes preview-enter {
      from { opacity: 0; transform: translateY(14px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes preview-pulse {
      0% { box-shadow: 0 0 0 0 rgba(5,150,105,.3); }
      100% { box-shadow: 0 0 0 7px rgba(5,150,105,0); }
    }
    @keyframes preview-sheen {
      0% { opacity: 0; transform: translateX(-110%); }
      20%, 80% { opacity: 1; }
      100% { opacity: 0; transform: translateX(110%); }
    }


    /* Dashboard visual system: keep the working UI aligned with the Grab&Book brand. */
    #dashboardView {
      background:
        radial-gradient(circle at 8% 0%, rgba(22, 135, 217, .075), transparent 30rem),
        linear-gradient(180deg, #fbfdff 0%, #f7f9fc 100%);
      color: #344054;
    }
    #dashboardView > header {
      position: sticky;
      top: 0;
      z-index: 35;
      border-color: rgba(216, 222, 233, .9);
      background: rgba(255, 255, 255, .94);
      box-shadow: 0 1px 0 rgba(23, 32, 51, .025), 0 10px 30px rgba(23, 32, 51, .035);
      backdrop-filter: blur(16px);
    }
    #dashboardView .dashboard-area-nav {
      box-shadow: 0 7px 22px rgba(23, 32, 51, .055);
    }
    #dashboardView .area-tab {
      color: #526074;
      transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
    }
    #dashboardView .area-tab:hover:not(.active) {
      background: #eef8ff;
      color: #075b98;
    }
    #dashboardView .area-tab.active {
      background: #0872bd;
      color: #ffffff;
      box-shadow: 0 6px 16px rgba(8, 114, 189, .18);
    }
    #dashboardView .dashboard-subnav {
      border: 1px solid #e5eaf1;
      background: rgba(241, 245, 249, .88);
    }
    #dashboardView .subnav-tab {
      color: #667085;
      transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
    }
    #dashboardView .subnav-tab:hover:not(.active) {
      color: #0872bd;
      background: rgba(255, 255, 255, .72);
    }
    #dashboardView .subnav-tab.active {
      background: #ffffff;
      color: #075b98;
      box-shadow: 0 2px 8px rgba(23, 32, 51, .07);
    }
    #dashboardView .card {
      border-color: #e3e9f1;
      background: rgba(255, 255, 255, .97);
      box-shadow: 0 10px 28px rgba(23, 32, 51, .045);
    }
    #dashboardView .field,
    #dashboardView .rich-editor-shell {
      border-color: #d8e0ea;
    }
    #dashboardView .field:hover {
      border-color: #c7d2df;
    }
    #dashboardView .btn-light {
      border-color: #d8e0ea;
      color: #475467;
      box-shadow: 0 1px 2px rgba(23, 32, 51, .025);
    }
    #dashboardView .btn-light:hover:not(:disabled) {
      border-color: #b8dcf5;
      background: #f7fbff;
      color: #075b98;
    }
    #dashboardView .btn-dark {
      background: #0872bd;
      color: #ffffff;
    }
    #dashboardView .btn-dark:hover:not(:disabled) {
      background: #075b98;
    }
    #dashboardView #dashboardSettingsBtn.dashboard-settings-active {
      border-color: #0872bd !important;
      background: #0872bd !important;
      color: #ffffff !important;
      box-shadow: 0 6px 16px rgba(8, 114, 189, .16);
    }
    #dashboardView #dashboardSettingsBtn.dashboard-settings-active:hover {
      border-color: #075b98 !important;
      background: #075b98 !important;
      color: #ffffff !important;
    }
    #dashboardView .growth-planner-filter,
    #dashboardView .growth-opportunity-filter {
      transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
    }
    #dashboardView .growth-planner-filter.bg-slate-100:hover,
    #dashboardView .growth-opportunity-filter.bg-slate-100:hover {
      background: #eef8ff;
      color: #075b98;
    }
    #dashboardView select,
    #dashboardView input,
    #dashboardView textarea {
      accent-color: #0872bd;
    }
    #dashboardView .text-ink {
      color: #172033;
    }
    @media (max-width: 639px) {
      #dashboardView > header > div {
        align-items: flex-start;
      }
      #dashboardView .dashboard-area-nav {
        width: max-content;
      }
    }


    /* Mobile dashboard optimisation */
    #dashboardView .area-tab,
    #dashboardView .subnav-tab,
    #dashboardView .btn {
      touch-action: manipulation;
    }
    #dashboardView .overflow-x-auto,
    #dashboardView .dashboard-scroll-row,
    #calendarMonthView,
    #calendarWeekView {
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      scrollbar-width: thin;
    }
    #dashboardView table {
      font-variant-numeric: tabular-nums;
    }
    #dashboardView table th,
    #dashboardView table td {
      white-space: nowrap;
    }

    @media (max-width: 639px) {
      #dashboardView > header {
        position: sticky;
        top: 0;
      }
      #dashboardView > header > div {
        align-items: stretch;
      }
      #dashboardView .dashboard-header-actions .btn {
        min-width: 0;
        min-height: 42px;
        padding-left: .7rem;
        padding-right: .7rem;
      }
      #dashboardView .dashboard-area-nav {
        width: 100%;
      }
      #dashboardView .area-tab,
      #dashboardView .subnav-tab {
        min-height: 44px;
      }
      #dashboardView #dashboardSubnavWrap {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-padding-inline: 1rem;
      }
      #dashboardView .dashboard-subnav {
        scroll-snap-type: x proximity;
      }
      #dashboardView .dashboard-subnav .subnav-tab {
        scroll-snap-align: start;
      }
      #dashboardView .card {
        border-radius: 1rem;
      }
      #dashboardView .field,
      #dashboardView input,
      #dashboardView select,
      #dashboardView textarea {
        font-size: 16px;
      }
      #dashboardView .btn {
        min-height: 44px;
      }
      #dashboardView .calendar-month-shell {
        min-width: 100% !important;
      }
      #dashboardView .calendar-month-cell {
        min-height: 58px !important;
        padding: .3rem !important;
        text-align: center;
      }
      #dashboardView .calendar-month-cell > div:first-child {
        margin-bottom: 0 !important;
        justify-content: center;
        gap: .2rem;
      }
      #dashboardView .calendar-month-cell-detail {
        display: none;
      }
      #dashboardView .calendar-booking-count {
        width: .42rem;
        height: .42rem;
        overflow: hidden;
        padding: 0 !important;
        border-radius: 999px;
        background: #1687d9;
        color: transparent;
        font-size: 0;
      }
      #dashboardView #calendarMonthView {
        overflow-x: visible;
      }
      #dashboardView #calendarWeekView {
        scroll-snap-type: x proximity;
      }
      #dashboardView #bookingCalendarWeekGrid > * {
        scroll-snap-align: start;
      }
      #customerEditorModal,
      #growthImportModal {
        align-items: flex-end;
        padding: .5rem;
      }
      #customerEditorModal > .card,
      #growthImportModal > .card {
        max-height: calc(100dvh - 1rem);
        border-radius: 1rem;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
      }
    }

    @supports (padding: max(0px)) {
      @media (max-width: 639px) {
        #dashboardView > header > div {
          padding-left: max(1rem, env(safe-area-inset-left));
          padding-right: max(1rem, env(safe-area-inset-right));
        }
      }
    }


    /* Mobile app-wide touch and form safeguards */
    @media (max-width: 639px) {
      #publicBookingView .field,
      #publicBookingView input,
      #publicBookingView select,
      #publicBookingView textarea,
      #authView .field,
      #authView input,
      #authView select,
      #authView textarea,
      #manageBookingView .field,
      #manageBookingView input,
      #manageBookingView select,
      #manageBookingView textarea {
        font-size: 16px;
      }
      #publicBookingView .btn,
      #publicBookingView button,
      #authView .btn,
      #manageBookingView .btn {
        min-height: 44px;
        touch-action: manipulation;
      }
      #publicBookingView .booking-step {
        scroll-margin-top: 5.5rem;
      }
      #publicBookingView,
      #authView,
      #manageBookingView {
        overflow-x: clip;
      }
      .landing-shell .btn {
        min-height: 44px;
        touch-action: manipulation;
      }
    }


    /* Public homepage product presentation */
    html {
      scroll-behavior: smooth;
    }
    .landing-anchor {
      scroll-margin-top: 5.5rem;
    }
    .landing-nav-link {
      position: relative;
      color: #667085;
      transition: color .16s ease;
    }
    .landing-nav-link:hover {
      color: #075b98;
    }
    .landing-nav-link::after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: -.45rem;
      height: 2px;
      border-radius: 999px;
      background: #1687d9;
      transition: right .18s ease;
    }
    .landing-nav-link:hover::after {
      right: 0;
    }
    .landing-section-eyebrow {
      color: #0872bd;
      font-size: .72rem;
      font-weight: 900;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .landing-product-card {
      display: block;
      border: 1px solid #e5eaf1;
      border-radius: 1.35rem;
      background: rgba(255,255,255,.96);
      padding: 1.5rem;
      box-shadow: 0 12px 35px rgba(23,32,51,.045);
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }
    .landing-product-card:hover {
      transform: translateY(-3px);
      border-color: #b8dcf5;
      box-shadow: 0 20px 48px rgba(23,32,51,.075);
    }
    .landing-product-preview {
      overflow: hidden;
      border: 1px solid #e1e8f0;
      border-radius: 1.5rem;
      background: #fff;
      box-shadow: 0 22px 65px rgba(23,32,51,.09);
    }
    .landing-benefit {
      display: flex;
      flex-direction: column;
      gap: .22rem;
      border: 1px solid #e5eaf1;
      border-radius: 1rem;
      background: rgba(255,255,255,.82);
      padding: .95rem 1rem;
    }
    .landing-benefit strong {
      color: #172033;
      font-size: .86rem;
    }
    .landing-benefit span {
      color: #667085;
      font-size: .78rem;
      line-height: 1.55;
    }
    .landing-calendar-day {
      position: relative;
      display: flex;
      min-height: 4.15rem;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: .4rem;
      border-right: 1px solid #f1f4f8;
      border-bottom: 1px solid #f1f4f8;
      color: #526074;
      font-style: normal;
    }
    .landing-calendar-day i {
      display: block;
      width: .38rem;
      height: .38rem;
      border-radius: 999px;
      background: #1687d9;
    }
    .landing-calendar-choice {
      width: 100%;
      appearance: none;
      cursor: pointer;
      border-top: 0;
      border-left: 0;
      background: #fff;
      padding: 0;
      color: inherit;
      font: inherit;
      transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
    }
    .landing-calendar-choice strong {
      display: grid;
      width: 1.9rem;
      height: 1.9rem;
      place-items: center;
      border-radius: 999px;
      transition: background-color .16s ease, color .16s ease, transform .16s ease;
    }
    .landing-calendar-choice.is-selected {
      background: #eef8ff;
      color: #075b98;
    }
    .landing-calendar-choice.is-selected strong {
      background: #0872bd;
      color: #fff;
      transform: scale(1.04);
    }
    .landing-calendar-choice.is-selected i {
      background: #0872bd;
    }
    .landing-calendar-choice:focus-visible {
      z-index: 1;
      outline: 3px solid rgba(22,135,217,.22);
      outline-offset: -3px;
    }
    @media (hover:hover) and (pointer:fine) {
      .landing-calendar-choice:hover {
        background: #f6fbff;
      }
      .landing-calendar-choice:hover strong {
        transform: translateY(-1px);
      }
    }
    .landing-calendar-agenda {
      display: grid;
      gap: .45rem;
    }
    .landing-calendar-appointment {
      display: grid;
      grid-template-columns: 3.25rem minmax(0,1fr) auto;
      align-items: center;
      gap: .75rem;
      min-width: 0;
      border: 1px solid #edf1f5;
      border-radius: .8rem;
      background: #fbfcfe;
      padding: .65rem .75rem;
    }
    .landing-calendar-appointment time {
      color: #64748b;
      font-size: .72rem;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }
    .landing-calendar-appointment > span {
      min-width: 0;
      text-align: left;
    }
    .landing-calendar-appointment strong {
      display: block;
      overflow: hidden;
      color: #172033;
      font-size: .76rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .landing-calendar-appointment small {
      display: block;
      margin-top: .15rem;
      overflow: hidden;
      color: #8491a3;
      font-size: .66rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .landing-calendar-appointment b {
      color: #344054;
      font-size: .75rem;
      font-variant-numeric: tabular-nums;
    }
    @media (prefers-reduced-motion:no-preference) {
      .landing-calendar-agenda.is-changing {
        animation: homepage-diary-change .28s ease both;
      }
      @keyframes homepage-diary-change {
        from { opacity:.35; transform:translateY(5px); }
        to { opacity:1; transform:none; }
      }
    }
    @media (max-width:420px) {
      .landing-calendar-appointment {
        grid-template-columns: 2.75rem minmax(0,1fr) auto;
        gap: .5rem;
        padding: .6rem;
      }
      .landing-calendar-appointment strong { font-size: .7rem; }
      .landing-calendar-appointment small { font-size: .61rem; }
    }
    @media (max-width: 639px) {
      .landing-anchor {
        scroll-margin-top: 4.8rem;
      }
      .landing-product-card {
        padding: 1.25rem;
      }
      .landing-product-preview {
        border-radius: 1.15rem;
      }
      .landing-calendar-day {
        min-height: 3.3rem;
      }
      #landingView h1,
      #landingView h2 {
        text-wrap: balance;
      }
    }


    /* Stage 2 navigation and shell */
    #landingView > header,
    .product-site-header {
      box-shadow: 0 1px 0 rgba(23,32,51,.035), 0 8px 24px rgba(23,32,51,.03);
    }
    #landingView > header > div:first-child,
    .product-site-header > div:first-child {
      min-height: 68px;
    }
    .site-desktop-nav a {
      position: relative;
      display: inline-flex;
      min-height: 40px;
      align-items: center;
      padding: .35rem .1rem;
      white-space: nowrap;
    }
    .product-site-header .site-desktop-nav a[aria-current="page"] {
      color: var(--gb-brand-hover);
    }
    .product-site-header .site-desktop-nav a[aria-current="page"]::after {
      content: "";
      position: absolute;
      left: .1rem;
      right: .1rem;
      bottom: .15rem;
      height: 2px;
      border-radius: 999px;
      background: var(--gb-brand-bright);
    }
    .landing-mobile-nav > div,
    .product-mobile-nav > div {
      scroll-snap-type: x proximity;
      scroll-padding-inline: .25rem;
      overscroll-behavior-x: contain;
    }
    .landing-mobile-nav a,
    .product-mobile-nav a {
      display: inline-flex;
      min-height: 40px;
      align-items: center;
      justify-content: center;
      scroll-snap-align: start;
      white-space: nowrap;
      transition: background-color .15s ease, color .15s ease;
    }
    .landing-mobile-nav a:active,
    .product-mobile-nav a:active {
      transform: scale(.98);
    }

    #dashboardView > header > div {
      min-height: 72px;
    }
    #dashboardView .dashboard-area-nav {
      border-color: var(--gb-border-soft);
      box-shadow: 0 1px 2px rgba(23,32,51,.03), 0 8px 20px rgba(23,32,51,.035);
    }
    #dashboardView .area-tab,
    #dashboardView .subnav-tab {
      min-height: 44px;
      white-space: nowrap;
    }
    #dashboardView #dashboardSubnavWrap {
      scrollbar-width: none;
      overscroll-behavior-x: contain;
    }
    #dashboardView #dashboardSubnavWrap::-webkit-scrollbar {
      display: none;
    }
    #dashboardView .dashboard-subnav {
      padding: .25rem;
    }
    #dashboardView .subnav-tab {
      padding-top: .62rem;
      padding-bottom: .62rem;
    }
    #dashboardView [id^="crm-"][id$="-section"],
    #dashboardView [id^="growth-"][id$="-section"] {
      scroll-margin-top: 7.5rem;
    }

    @media (max-width: 639px) {
      #landingView > header > div:first-child,
      .product-site-header > div:first-child {
        min-height: 62px;
      }
      #dashboardView > header > div {
        min-height: 0;
      }
      #dashboardView .dashboard-header-actions {
        gap: .5rem;
      }
      #dashboardView .dashboard-area-nav {
        gap: .2rem;
        padding: .3rem;
      }
      #dashboardView .area-tab {
        padding-left: .5rem;
        padding-right: .5rem;
      }
      #dashboardView #dashboardSubnavWrap {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-padding-inline: 1rem;
      }
      #dashboardView .dashboard-subnav {
        scroll-snap-type: x proximity;
      }
      #dashboardView .dashboard-subnav .subnav-tab {
        scroll-snap-align: center;
      }
    }


    /* Stage 3 public-site hierarchy and clutter reduction */
    #landingView main > section {
      position: relative;
    }
    .landing-audience-point,
    .landing-question-point {
      min-width: 0;
      border-top: 1px solid var(--gb-border-soft);
      padding: 1.15rem .15rem .1rem;
    }
    .landing-audience-point h3,
    .landing-question-point h3 {
      text-wrap: balance;
    }
    .landing-process-step {
      min-width: 0;
      border-left: 1px solid #dbe8f2;
      padding: .25rem .25rem .25rem 1.15rem;
    }
    .landing-process-step .feature-icon {
      box-shadow: none;
    }
    .pricing-plan-card {
      display: flex;
      min-height: 100%;
      flex-direction: column;
    }
    .pricing-plan-card > .btn {
      margin-top: auto;
    }
    .pricing-plan-card-pro {
      box-shadow: 0 10px 28px rgba(8,114,189,.08);
    }
    .pricing-fee-note {
      border-top: 1px solid var(--gb-border-soft);
      padding: 1.1rem .15rem 0;
    }
    .homepage-faq-card {
      border-top: 1px solid var(--gb-border-soft);
      padding: 1.15rem .15rem .2rem;
    }
    .homepage-faq-card p {
      max-width: 38rem;
    }

    .product-site-shell .product-feature,
    .product-site-shell .product-point,
    .product-site-shell .product-integration {
      box-shadow: none;
    }
    .product-site-shell .product-feature {
      height: 100%;
      border-color: var(--gb-border-soft);
      transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
    }
    .product-site-shell .product-feature:hover {
      border-color: #cbd9e5;
      background: #fcfdff;
      transform: translateY(-1px);
    }
    .product-site-shell .product-point {
      border-color: var(--gb-border-soft);
      background: rgba(255,255,255,.7);
    }
    .product-site-shell .product-ui-frame {
      box-shadow: 0 20px 55px rgba(23,32,51,.085);
    }
    .product-site-shell .product-page-hero .btn {
      min-width: 9rem;
    }
    .case-method-card {
      box-shadow: none;
    }
    .product-site-shell footer a {
      transition: color .15s ease;
    }

    @media (max-width: 639px) {
      .landing-audience-point,
      .landing-question-point {
        padding-top: 1rem;
      }
      .landing-process-step {
        border-left: 0;
        border-top: 1px solid #dbe8f2;
        padding: 1rem 0 0;
      }
      .pricing-plan-card {
        padding: 1.35rem !important;
      }
      .product-site-shell .product-page-hero .btn {
        width: 100%;
        min-width: 0;
      }
      .product-site-shell main > section:last-of-type .btn {
        width: 100%;
      }
      .homepage-final-cta .btn {
        width: 100%;
        max-width: 18rem;
      }
    }


    /* Stage 4 authentication and first-run experience */
    #authView,
    #pendingView {
      background:
        radial-gradient(circle at 12% 8%, rgba(22,135,217,.08), transparent 24rem),
        linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    }
    #authView .auth-mode {
      min-height: 42px;
      transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
    }
    #authView .auth-mode:focus-visible {
      outline: none;
      box-shadow: var(--gb-focus-ring);
    }
    #authView #authMessage {
      border: 1px solid transparent;
    }
    .first-run-setup {
      box-shadow: 0 10px 28px rgba(8,114,189,.055);
    }
    .first-run-step {
      min-width: 0;
    }
    .first-run-step-icon {
      display: grid;
      width: 2rem;
      height: 2rem;
      flex: 0 0 auto;
      place-items: center;
      border-radius: .7rem;
      background: var(--gb-brand-soft);
      color: var(--gb-brand);
      font-size: .76rem;
      font-weight: 900;
      transition: background-color .15s ease, color .15s ease, transform .15s ease;
    }
    .first-run-step-icon.first-run-step-complete {
      background: #ecfdf3;
      color: #047857;
    }
    .first-run-step button {
      min-height: 2.4rem;
      padding: .25rem 0;
      text-align: left;
    }
    .first-run-step button:disabled {
      cursor: not-allowed;
    }

    @media (max-width: 639px) {
      #authView {
        padding: 0;
      }
      #authView > div {
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
      }
      #authView > div > div:last-child {
        padding: 1.25rem;
      }
      #pendingView {
        padding: 1rem;
      }
      .first-run-setup > div:first-child {
        padding: 1.1rem;
      }
      .first-run-step {
        padding: 1.1rem;
      }
      #firstRunReady {
        align-items: stretch;
        flex-direction: column;
        padding: 1rem 1.1rem;
      }
      #firstRunReady .btn {
        width: 100%;
      }
    }


    /* Stage 5 dashboard overview */
    #tab-overview .overview-heading {
      padding-top: .1rem;
    }
    .overview-kpi-grid {
      align-items: stretch;
    }
    .overview-kpi {
      min-width: 0;
      border: 1px solid var(--gb-border-soft);
      border-radius: 1rem;
      background: rgba(255,255,255,.82);
      padding: 1rem 1.05rem;
    }
    .overview-kpi-label {
      color: #667085;
      font-size: .68rem;
      font-weight: 800;
      letter-spacing: .08em;
      line-height: 1.25;
      text-transform: uppercase;
    }
    .overview-kpi-value {
      margin-top: .45rem;
      color: var(--gb-ink);
      font-size: 1.85rem;
      font-weight: 800;
      letter-spacing: -.025em;
      line-height: 1.1;
    }
    .overview-kpi-detail {
      margin-top: .3rem;
      overflow: hidden;
      color: #7d8797;
      font-size: .75rem;
      line-height: 1.35;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .overview-priority-chip {
      display: inline-flex;
      min-height: 38px;
      align-items: center;
      gap: .55rem;
      border: 1px solid var(--gb-border-soft);
      border-radius: 999px;
      background: #f8fafc;
      padding: .45rem .7rem .45rem .85rem;
      color: #667085;
      font-size: .76rem;
      font-weight: 700;
    }
    .overview-priority-chip strong {
      display: grid;
      min-width: 1.55rem;
      height: 1.55rem;
      place-items: center;
      border-radius: 999px;
      background: #fff;
      color: var(--gb-ink);
      font-size: .78rem;
    }
    .overview-priority-chip-alert {
      border-color: #fee2e2;
      background: #fff7f7;
      color: #b42318;
    }
    .overview-priority-chip-alert strong {
      color: #b42318;
    }
    .overview-booking-row {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: .9rem;
      border-top: 1px solid var(--gb-border-soft);
      padding: .9rem 0;
    }
    .overview-booking-row:first-child {
      border-top: 0;
      padding-top: .15rem;
    }
    .overview-booking-row:last-child {
      padding-bottom: .15rem;
    }
    .overview-booking-time {
      display: flex;
      width: 4.25rem;
      flex: 0 0 4.25rem;
      flex-direction: column;
    }
    .overview-booking-time strong {
      color: var(--gb-ink);
      font-size: .95rem;
      font-weight: 800;
      line-height: 1.2;
    }
    .overview-booking-time span {
      margin-top: .15rem;
      color: #98a2b3;
      font-size: .69rem;
      font-weight: 700;
      line-height: 1.2;
    }
    .overview-booking-value {
      flex: 0 0 auto;
      border-radius: 999px;
      background: #f8fafc;
      padding: .4rem .65rem;
      color: #475467;
      font-size: .75rem;
      font-weight: 800;
    }

    @media (max-width: 639px) {
      #tab-overview .overview-heading .btn {
        width: 100%;
      }
      .overview-kpi {
        padding: .9rem 1rem;
      }
      .overview-kpi-value {
        font-size: 1.65rem;
      }
      .overview-booking-row {
        align-items: flex-start;
        gap: .7rem;
      }
      .overview-booking-time {
        width: 3.75rem;
        flex-basis: 3.75rem;
      }
      .overview-booking-value {
        display: none;
      }
    }


    /* Stage 6 booking operations */
    .booking-ops-page-head {
      min-width: 0;
    }
    .booking-ops-page-head > div:first-child,
    .booking-ops-page-head > p,
    .booking-ops-page-head > h2 {
      min-width: 0;
    }
    .booking-back-link {
      display: inline-flex;
      min-height: var(--gb-control-height);
      align-items: center;
      border-radius: .7rem;
      color: var(--gb-brand);
      font-size: .82rem;
      font-weight: 800;
      transition: background-color .15s ease, color .15s ease;
    }
    .booking-back-link:hover {
      color: var(--gb-brand-hover);
    }
    .booking-back-link:focus-visible {
      outline: none;
      box-shadow: var(--gb-focus-ring);
    }
    .booking-ops-grid {
      align-items: start;
    }
    .booking-ops-form {
      min-width: 0;
    }
    .booking-option-card,
    .booking-toggle-row {
      transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    }
    .booking-option-card:hover,
    .booking-toggle-row:hover {
      border-color: #cbd5e1;
    }
    .booking-option-card:focus-within,
    .booking-toggle-row:focus-within {
      border-color: var(--gb-brand-bright);
      box-shadow: var(--gb-focus-ring);
    }
    .booking-option-card > label input[type="checkbox"],
    .booking-toggle-row input[type="checkbox"] {
      width: 1.15rem;
      height: 1.15rem;
      flex: 0 0 auto;
    }
    .booking-option-card-violet {
      background: rgba(245,243,255,.7);
    }
    .booking-summary-list {
      border-top: 1px solid var(--gb-border-soft);
    }
    .booking-summary-row {
      display: grid;
      gap: .3rem;
      border-bottom: 1px solid var(--gb-border-soft);
      padding: .95rem 0;
    }
    .booking-summary-row strong {
      color: var(--gb-text);
      font-weight: 800;
    }
    .booking-summary-row span {
      min-width: 0;
    }
    .booking-record-list {
      min-width: 0;
    }
    .booking-record-row {
      display: flex;
      min-width: 0;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      border: 1px solid var(--gb-border-soft);
      border-radius: 1rem;
      background: var(--gb-surface);
      padding: .95rem 1rem;
      transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    }
    .booking-record-row:hover {
      border-color: #cbd5e1;
    }
    .booking-record-row-muted {
      background: #f8fafc;
      opacity: .72;
    }
    .booking-record-meta,
    .booking-record-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: .45rem;
    }
    .booking-record-actions {
      flex: 0 0 auto;
      justify-content: flex-end;
    }
    .booking-meta-pill {
      display: inline-flex;
      min-height: 1.75rem;
      align-items: center;
      border-radius: 999px;
      background: #f1f5f9;
      padding: .28rem .6rem;
      color: #64748b;
      font-size: .69rem;
      font-weight: 800;
      line-height: 1.15;
    }
    .booking-meta-pill-blue {
      background: #eff6ff;
      color: #1d4ed8;
    }
    .booking-meta-pill-green {
      background: #ecfdf3;
      color: #047857;
    }
    .booking-meta-pill-violet {
      background: #f5f3ff;
      color: #6d28d9;
    }
    .booking-danger-btn {
      background: #fff7f7;
      color: #b42318;
    }
    .booking-danger-btn:hover:not(:disabled) {
      background: #feecec;
      transform: translateY(-1px);
    }
    .booking-view-switch > button {
      min-height: 38px;
      transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
    }
    #tab-calendar .calendar-month-cell {
      cursor: pointer;
    }
    #tab-calendar .calendar-month-cell:focus-visible {
      position: relative;
      z-index: 2;
      outline: none;
      box-shadow: inset 0 0 0 3px rgba(22,135,217,.24);
    }
    #tab-calendar #calendarStaffFilter {
      max-width: 15rem;
    }

    @media (min-width: 768px) {
      .booking-summary-row {
        grid-template-columns: minmax(9.5rem,.72fr) minmax(0,1.6fr);
        gap: 1.25rem;
      }
    }

    @media (max-width: 639px) {
      .booking-ops-page-head > .btn,
      .booking-ops-page-head > button.btn {
        width: 100%;
      }
      .booking-record-row {
        align-items: stretch;
        flex-direction: column;
        gap: .8rem;
        padding: .9rem;
      }
      .booking-record-actions {
        width: 100%;
        justify-content: stretch;
      }
      .booking-record-actions > .btn,
      .booking-record-actions > details {
        flex: 1 1 auto;
      }
      .booking-record-actions > details > summary {
        width: 100%;
      }
      .booking-record-actions > details > div {
        left: 0;
        right: auto;
      }
      .booking-ops-form > .flex.gap-2 {
        align-items: stretch;
        flex-direction: column;
      }
      .booking-ops-form > .flex.gap-2 > .btn {
        width: 100%;
      }
      #tab-calendar .booking-ops-page-head .booking-view-switch,
      #tab-bookings .booking-ops-page-head .booking-view-switch {
        width: 100%;
      }
      #tab-calendar .booking-ops-page-head .booking-view-switch > button,
      #tab-bookings .booking-ops-page-head .booking-view-switch > button {
        flex: 1 1 0;
      }
      #tab-calendar #calendarStaffFilter {
        width: 100% !important;
        max-width: none;
      }
      #tab-calendar .calendar-month-shell {
        min-width: 680px;
      }
    }


    /* Stage 7 customer booking journey */
    #publicBookingView .booking-step {
      scroll-margin-top: 6.5rem;
    }
    #publicBookingView .service-choice,
    #publicBookingView .staff-choice {
      min-height: 4.75rem;
    }
    #publicBookingView .service-choice,
    #publicBookingView .staff-choice,
    #publicBookingView .slot-choice,
    #manageBookingView .manage-slot-choice,
    .booking-date-choice {
      -webkit-tap-highlight-color: transparent;
    }
    #publicBookingView .service-choice:focus-visible,
    #publicBookingView .staff-choice:focus-visible,
    #publicBookingView .slot-choice:focus-visible,
    #manageBookingView .manage-slot-choice:focus-visible,
    .booking-date-choice:focus-visible {
      outline: none;
      box-shadow: var(--gb-focus-ring);
    }
    #publicBookingView .slot-choice,
    #manageBookingView .manage-slot-choice {
      min-height: 46px;
      border-radius: .8rem;
      background: #fff;
    }
    .booking-date-strip {
      scrollbar-width: thin;
      scrollbar-color: #cbd5e1 transparent;
      overscroll-behavior-inline: contain;
      scroll-snap-type: x proximity;
    }
    .booking-date-choice {
      display: flex;
      min-width: 5.15rem;
      min-height: 4.25rem;
      flex: 0 0 auto;
      scroll-snap-align: start;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: .16rem;
      border: 1px solid var(--gb-border-soft);
      border-radius: .95rem;
      background: #fff;
      color: #667085;
      transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
    }
    .booking-date-choice:not(:disabled):hover {
      border-color: #b7c7d6;
      transform: translateY(-1px);
    }
    .booking-date-choice span {
      font-size: .7rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .booking-date-choice strong {
      color: var(--gb-ink);
      font-size: .88rem;
      font-weight: 900;
    }
    .booking-date-choice.selected {
      border-color: var(--customer-brand-border, var(--gb-brand-bright));
      background: var(--customer-brand-soft, var(--gb-brand-soft));
      color: var(--customer-brand-dark, var(--gb-brand));
      box-shadow: 0 0 0 1px var(--customer-brand-border, var(--gb-brand-bright));
    }
    .booking-date-choice:disabled {
      cursor: not-allowed;
      opacity: .42;
    }
    .booking-more-date-toggle {
      display: inline-flex;
      min-height: 2.5rem;
      align-items: center;
      list-style: none;
    }
    .booking-more-date-toggle::-webkit-details-marker {
      display: none;
    }
    .booking-more-date-toggle::after {
      content: "⌄";
      margin-left: .4rem;
      color: #98a2b3;
      font-size: .8rem;
    }
    #publicBookingView #publicPaymentNote:empty {
      display: none;
    }
    #publicBookingView #publicPaymentNote {
      border: 1px solid color-mix(in srgb, var(--customer-brand-border, #1687d9) 18%, white);
      background: var(--customer-brand-soft, #eef8ff);
      color: var(--customer-brand-dark, #075b98);
    }
    #publicBookingView .progress-step {
      min-height: 2.65rem;
    }
    #publicBookingView .progress-step[data-status="complete"] .progress-dot::after {
      content: "✓";
      font-size: .68rem;
    }
    #publicBookingView .progress-step[data-status="complete"] .progress-dot {
      font-size: 0;
    }
    #manageBookingView {
      background: #f7f9fc;
    }
    #manageBookingView .manage-slot-choice.selected {
      border-color: var(--gb-brand-bright);
      background: var(--gb-brand-soft);
      color: var(--gb-brand);
      box-shadow: 0 0 0 1px var(--gb-brand-bright);
    }
    #manageBookingView #manageReschedulePanel {
      scroll-margin-top: 1.5rem;
    }

    @media (max-width: 639px) {
      #publicBookingView main {
        padding-top: 1rem;
      }
      #publicBookingView #publicProgress {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
      }
      #publicBookingView .booking-step {
        padding: 1.1rem;
      }
      #publicBookingView #publicSlots,
      #manageBookingView #manageSlots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      #publicBookingView #confirmBookingBtn {
        min-height: 3.15rem;
        font-size: .95rem;
      }
      .manage-booking-actions {
        align-items: stretch;
        flex-direction: column;
      }
      .manage-booking-actions .btn {
        width: 100%;
      }
      #manageCancelConfirm > div {
        align-items: stretch;
        flex-direction: column;
      }
      #manageCancelConfirm .btn,
      #manageBookingView #manageRescheduleConfirm .btn {
        width: 100%;
      }
      #bookingSuccess #successManageActions {
        align-items: stretch;
        flex-direction: column;
      }
      #bookingSuccess #successManageActions .btn {
        width: 100%;
      }
    }


    /* Stage 8 CRM */
    .crm-kpi-grid {
      align-items: stretch;
    }
    .crm-kpi {
      min-width: 0;
      border: 1px solid var(--gb-border-soft);
      border-radius: 1rem;
      background: rgba(255,255,255,.82);
      padding: 1rem 1.05rem;
      box-shadow: none;
    }
    .crm-kpi-label {
      color: #667085;
      font-size: .68rem;
      font-weight: 800;
      letter-spacing: .08em;
      line-height: 1.25;
      text-transform: uppercase;
    }
    .crm-kpi-action {
      cursor: pointer;
      transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
    }
    .crm-kpi-action:hover {
      border-color: #bfd7e9;
      background: #fbfdff;
      transform: translateY(-1px);
    }
    .crm-secondary-section {
      box-shadow: 0 1px 2px rgba(23,32,51,.025), 0 8px 22px rgba(23,32,51,.035);
    }
    .crm-customer-row {
      display: block;
      width: 100%;
      min-width: 0;
      border: 1px solid var(--gb-border-soft);
      border-radius: 1rem;
      background: var(--gb-surface);
      padding: .9rem 1rem;
      text-align: left;
      transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    }
    .crm-customer-row:hover {
      border-color: #c7d5e2;
      background: #fcfdff;
    }
    .crm-customer-row.selected {
      border-color: #9cc7e5;
      background: var(--gb-brand-soft);
      box-shadow: inset 3px 0 0 var(--gb-brand);
    }
    .crm-customer-status {
      display: inline-flex;
      min-height: 1.45rem;
      align-items: center;
      border-radius: 999px;
      background: #eef8ff;
      padding: .2rem .5rem;
      color: #0b6ba9;
      font-size: .62rem;
      font-weight: 800;
      line-height: 1.1;
    }
    .crm-customer-tag {
      display: inline-flex;
      min-height: 1.4rem;
      align-items: center;
      border-radius: 999px;
      background: #f5f3ff;
      padding: .18rem .5rem;
      color: #6d28d9;
      font-size: .61rem;
      font-weight: 800;
      line-height: 1.1;
    }
    .crm-profile-actions > details {
      position: relative;
    }
    .crm-profile-metrics {
      align-items: stretch;
    }
    .crm-profile-metric {
      min-width: 0;
      border-top: 1px solid var(--gb-border-soft);
      padding: .85rem .15rem .15rem;
    }
    .crm-profile-metric-label {
      color: #98a2b3;
      font-size: .66rem;
      font-weight: 800;
      letter-spacing: .07em;
      line-height: 1.2;
      text-transform: uppercase;
    }
    #customerProfile > .mt-4.rounded-2xl.border {
      border-color: var(--gb-border-soft);
      box-shadow: none;
    }
    .crm-profile-context,
    .crm-profile-tags {
      border-top: 1px solid var(--gb-border-soft);
      padding: 1rem .1rem 0;
    }
    .crm-profile-context .rounded-xl,
    .crm-profile-tags .rounded-xl {
      box-shadow: none;
    }
    #customerRetentionPanel {
      border-color: #d7e8f5 !important;
      background: #f8fbfe !important;
    }
    #customerTimeline > div {
      border-color: var(--gb-border-soft);
      border-radius: .9rem;
      padding: .85rem;
    }
    .crm-campaign-history-item {
      border: 1px solid var(--gb-border-soft);
      border-radius: 1rem;
      background: var(--gb-surface);
      padding: .9rem 1rem;
      transition: border-color .15s ease, background-color .15s ease;
    }
    .crm-campaign-history-item[open] {
      border-color: #cad8e4;
      background: #fcfdff;
    }
    .crm-campaign-history-item > summary {
      list-style: none;
    }
    .crm-campaign-history-item > summary::-webkit-details-marker {
      display: none;
    }
    .crm-campaign-history-item > summary::after {
      content: "›";
      float: right;
      margin-left: .75rem;
      color: #98a2b3;
      font-size: 1.1rem;
      line-height: 1;
      transform: rotate(90deg);
      transition: transform .15s ease;
    }
    .crm-campaign-history-item[open] > summary::after {
      transform: rotate(-90deg);
    }
    #crm-campaigns-section #marketingEmailForm,
    #crm-retention-section #crmAutomationForm {
      min-width: 0;
    }
    #crm-campaigns-section #marketingRecipientText {
      max-width: 34rem;
      line-height: 1.45;
    }

    @media (max-width: 639px) {
      .crm-kpi {
        padding: .9rem 1rem;
      }
      .crm-profile-actions {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
      }
      .crm-profile-actions > .btn,
      .crm-profile-actions > details,
      .crm-profile-actions > details > summary {
        width: 100%;
      }
      .crm-profile-actions > details > div {
        left: 0;
        right: auto;
        width: min(15rem, calc(100vw - 2rem));
      }
      #crm-customers-section > article:first-child > div:first-child {
        align-items: stretch;
      }
      #crm-customers-section > article:first-child > div:first-child > div:last-child {
        width: 100%;
      }
      #crm-customers-section > article:first-child > div:first-child > div:last-child > .btn,
      #crm-customers-section > article:first-child > div:first-child > div:last-child > details {
        flex: 1 1 auto;
      }
      #crm-customers-section > article:first-child > div:first-child > div:last-child > details > summary {
        width: 100%;
      }
    }


    /* Standalone public product pages */
    .product-site-shell {
      background:
        radial-gradient(circle at 12% 2%, rgba(22,135,217,.11), transparent 30rem),
        linear-gradient(180deg,#fbfdff 0%,#f7f9fc 55%,#fff 100%);
    }
    .product-site-header {
      box-shadow: 0 1px 0 rgba(23,32,51,.025), 0 8px 24px rgba(23,32,51,.025);
    }
    .product-nav-link {
      color: #667085;
      transition: color .16s ease;
    }
    .product-nav-link:hover { color: #075b98; }
    .product-mobile-nav > div {
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .product-mobile-nav > div::-webkit-scrollbar { display:none; }
    .product-mobile-nav a {
      flex: 0 0 auto;
      border-radius: .75rem;
      padding: .48rem .8rem;
      color: #667085;
      font-size: .78rem;
      font-weight: 800;
    }
    .product-mobile-nav a.active {
      background: #eef8ff;
      color: #075b98;
    }
    .product-page-hero {
      background-image:
        linear-gradient(rgba(23,32,51,.03) 1px, transparent 1px),
        linear-gradient(90deg,rgba(23,32,51,.03) 1px,transparent 1px);
      background-size: 34px 34px;
    }
    .product-kicker {
      display:inline-flex;
      align-items:center;
      border:1px solid #d9efff;
      border-radius:999px;
      padding:.48rem .75rem;
      background:rgba(255,255,255,.88);
      color:#075b98;
      font-size:.72rem;
      font-weight:900;
      letter-spacing:.08em;
      text-transform:uppercase;
    }
    .product-section-label,
    .product-ui-eyebrow {
      color:#0872bd;
      font-size:.7rem;
      font-weight:900;
      letter-spacing:.14em;
      text-transform:uppercase;
    }
    .product-ui-frame {
      overflow:hidden;
      border:1px solid #dfe6ef;
      border-radius:1.55rem;
      background:#fff;
      box-shadow:0 28px 80px rgba(23,32,51,.11);
    }
    .product-ui-topbar {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:1rem;
      border-bottom:1px solid #eef1f5;
      padding:1rem 1.25rem;
    }
    .product-status {
      border-radius:999px;
      background:#ecfdf3;
      padding:.38rem .68rem;
      color:#047857;
      font-size:.7rem;
      font-weight:800;
    }
    .product-metric {
      border:1px solid #eef1f5;
      border-radius:1rem;
      background:#fff;
      padding:.9rem;
    }
    .product-metric span {
      display:block;
      color:#98a2b3;
      font-size:.62rem;
      font-weight:800;
      letter-spacing:.07em;
      text-transform:uppercase;
    }
    .product-metric strong {
      display:block;
      margin-top:.3rem;
      color:#172033;
      font-size:1.3rem;
      font-weight:900;
      letter-spacing:-.02em;
    }
    .product-metric small {
      display:block;
      margin-top:.12rem;
      color:#667085;
      font-size:.68rem;
    }
    .product-feature {
      border:1px solid #e5eaf1;
      border-radius:1.2rem;
      background:#fff;
      padding:1.35rem;
      box-shadow:0 10px 28px rgba(23,32,51,.035);
    }
    .product-feature > span {
      color:#1687d9;
      font-size:.7rem;
      font-weight:900;
    }
    .product-feature h3 {
      margin-top:.7rem;
      color:#172033;
      font-size:1.02rem;
      font-weight:900;
    }
    .product-feature p {
      margin-top:.5rem;
      color:#667085;
      font-size:.84rem;
      line-height:1.65;
    }
    .product-point {
      display:flex;
      flex-direction:column;
      gap:.22rem;
      border:1px solid #e5eaf1;
      border-radius:1rem;
      background:rgba(255,255,255,.88);
      padding:.95rem 1rem;
    }
    .product-point strong { color:#172033; font-size:.87rem; }
    .product-point span { color:#667085; font-size:.8rem; line-height:1.55; }
    .product-slot {
      display:grid;
      min-height:2.75rem;
      place-items:center;
      border:1px solid #e5eaf1;
      border-radius:.75rem;
      background:#fff;
      color:#526074;
      font-size:.75rem;
      font-weight:800;
    }
    .product-slot.active {
      border-color:#1687d9;
      background:#eef8ff;
      color:#075b98;
      box-shadow:0 0 0 2px rgba(22,135,217,.08);
    }
    .product-data-row {
      display:grid;
      grid-template-columns:1.25fr .65fr .65fr .8fr;
      align-items:center;
      gap:.4rem;
      border-top:1px solid #eef1f5;
      padding:.72rem .8rem;
      color:#667085;
      font-size:.72rem;
    }
    .product-data-row strong { color:#172033; }
    .product-data-head {
      border-top:0;
      background:#f8fafc;
      color:#98a2b3;
      font-size:.6rem;
      font-weight:800;
      letter-spacing:.06em;
      text-transform:uppercase;
    }
    .product-integration {
      border:1px solid #e5eaf1;
      border-radius:1.1rem;
      background:#fff;
      padding:1.25rem;
      box-shadow:0 10px 26px rgba(23,32,51,.035);
    }
    .product-integration strong {
      display:block;
      color:#172033;
      font-size:.9rem;
      font-weight:900;
    }
    .product-integration span {
      display:block;
      margin-top:.45rem;
      color:#667085;
      font-size:.78rem;
      line-height:1.55;
    }
    @media (max-width:639px) {
      .product-site-shell h1,
      .product-site-shell h2 { text-wrap:balance; }
      .product-ui-frame { border-radius:1.15rem; }
      .product-ui-topbar { align-items:flex-start; padding:1rem; }
      .product-status { white-space:nowrap; font-size:.62rem; }
      .product-data-row { grid-template-columns:1.15fr .6fr .62fr .78fr; padding:.7rem .6rem; font-size:.66rem; }
      .product-data-head { font-size:.55rem; }
    }


    /* Public trust, contact and case-study layer */
    .landing-mobile-nav > div {
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .landing-mobile-nav > div::-webkit-scrollbar { display:none; }
    .landing-mobile-nav a {
      flex:0 0 auto;
      border-radius:.75rem;
      padding:.48rem .78rem;
      color:#667085;
      font-size:.76rem;
      font-weight:800;
    }
    .landing-mobile-nav a:hover {
      background:#eef8ff;
      color:#075b98;
    }
    .trust-card {
      display:flex;
      min-height:10.5rem;
      flex-direction:column;
      justify-content:flex-end;
      gap:.45rem;
      border:1px solid #e5eaf1;
      border-radius:1.2rem;
      background:#fff;
      padding:1.25rem;
      box-shadow:0 10px 28px rgba(23,32,51,.035);
    }
    .trust-card strong {
      color:#172033;
      font-size:.92rem;
      font-weight:900;
    }
    .trust-card span {
      color:#667085;
      font-size:.78rem;
      line-height:1.55;
    }
    .contact-principle {
      display:flex;
      align-items:flex-start;
      gap:.9rem;
      border-top:1px solid #e5eaf1;
      padding-top:1rem;
    }
    .contact-principle > span {
      display:grid;
      width:2rem;
      height:2rem;
      flex:0 0 auto;
      place-items:center;
      border-radius:.65rem;
      background:#eef8ff;
      color:#0872bd;
      font-size:.68rem;
      font-weight:900;
    }
    .contact-principle strong {
      color:#172033;
      font-size:.9rem;
      font-weight:900;
    }
    .contact-principle p {
      margin-top:.25rem;
      color:#667085;
      font-size:.8rem;
      line-height:1.55;
    }
    .case-method-card {
      border:1px solid #e5eaf1;
      border-radius:1.25rem;
      background:#fff;
      padding:1.5rem;
      box-shadow:0 10px 28px rgba(23,32,51,.04);
    }
    .case-method-card > span {
      color:#1687d9;
      font-size:.7rem;
      font-weight:900;
    }
    .case-method-card h2 {
      margin-top:.75rem;
      color:#172033;
      font-size:1.1rem;
      font-weight:900;
    }
    .case-method-card p {
      margin-top:.55rem;
      color:#667085;
      font-size:.84rem;
      line-height:1.65;
    }
    .case-metric {
      min-height:8.8rem;
      background:#fff;
      padding:1.1rem;
    }
    .case-metric strong {
      display:block;
      color:#172033;
      font-size:.85rem;
      font-weight:900;
    }
    .case-metric span {
      display:block;
      margin-top:.35rem;
      color:#667085;
      font-size:.75rem;
      line-height:1.5;
    }
    @media (max-width:639px) {
      .product-site-shell .field {
        font-size:16px;
      }
      .trust-card {
        min-height:auto;
      }
      .case-metric {
        min-height:7.5rem;
      }
    }


    /* Public site accessibility and final responsive polish */
    .skip-link {
      position: fixed;
      left: 1rem;
      top: .75rem;
      z-index: 1000;
      transform: translateY(-180%);
      border-radius: .75rem;
      background: #172033;
      padding: .7rem 1rem;
      color: #fff;
      font-size: .82rem;
      font-weight: 800;
      box-shadow: 0 8px 24px rgba(23,32,51,.18);
      transition: transform .16s ease;
    }
    .skip-link:focus {
      transform: translateY(0);
    }
    #landingView a:focus-visible,
    #landingView button:focus-visible,
    .product-site-shell a:focus-visible,
    .product-site-shell button:focus-visible,
    .product-site-shell input:focus-visible,
    .product-site-shell select:focus-visible,
    .product-site-shell textarea:focus-visible {
      outline: 3px solid rgba(22,135,217,.32);
      outline-offset: 3px;
    }
    .product-site-shell [aria-current="page"] {
      text-decoration-thickness: 2px;
      text-underline-offset: .35rem;
    }
    @media (max-width: 420px) {
      #landingView > header > div,
      .product-site-header > div:first-child {
        gap: .55rem;
      }
      #landingView > header img,
      .product-site-header img {
        max-width: 118px;
        height: auto;
      }
      #landingView > header .btn,
      .product-site-header .btn {
        min-height: 40px;
        padding: .58rem .68rem;
        font-size: .74rem;
      }
      #landingView > header .flex.items-center.gap-2,
      .product-site-header .flex.items-center.gap-2 {
        gap: .35rem;
      }
    }


    /* Homepage SaaS motion system */
    #landingView .hero-motion-item {
      opacity: 1;
      transform: none;
    }
    #landingView .saas-reveal,
    #landingView .saas-stagger > * {
      opacity: 1;
      transform: none;
    }

    @media (prefers-reduced-motion: no-preference) {
      #landingView.homepage-motion-ready .hero-motion-item {
        opacity: 0;
        transform: translateY(16px);
      }
      #landingView.homepage-motion-ready.homepage-hero-playing .hero-motion-item {
        animation: homepage-rise .62s cubic-bezier(.2,.72,.25,1) forwards;
      }
      #landingView.homepage-motion-ready.homepage-hero-playing .hero-motion-item:nth-child(1) { animation-delay: .04s; }
      #landingView.homepage-motion-ready.homepage-hero-playing .hero-motion-item:nth-child(2) { animation-delay: .11s; }
      #landingView.homepage-motion-ready.homepage-hero-playing .hero-motion-item:nth-child(3) { animation-delay: .18s; }
      #landingView.homepage-motion-ready.homepage-hero-playing .hero-motion-item:nth-child(4) { animation-delay: .25s; }
      #landingView.homepage-motion-ready.homepage-hero-playing .hero-motion-item:nth-child(5) { animation-delay: .32s; }

      #dashboardPreview .preview-chrome,
      #dashboardPreview .preview-nav-item,
      #dashboardPreview .preview-stat,
      #dashboardPreview .preview-appointment,
      #dashboardPreview .preview-diary {
        opacity: 0;
        transform: translateY(10px);
      }
      #dashboardPreview.preview-playing .preview-chrome {
        animation: homepage-rise .5s cubic-bezier(.2,.72,.25,1) .05s forwards;
      }
      #dashboardPreview.preview-playing .preview-nav-item {
        animation: homepage-rise .42s cubic-bezier(.2,.72,.25,1) forwards;
      }
      #dashboardPreview.preview-playing .preview-nav-item:nth-child(1) { animation-delay: .17s; }
      #dashboardPreview.preview-playing .preview-nav-item:nth-child(2) { animation-delay: .22s; }
      #dashboardPreview.preview-playing .preview-nav-item:nth-child(3) { animation-delay: .27s; }
      #dashboardPreview.preview-playing .preview-nav-item:nth-child(4) { animation-delay: .32s; }
      #dashboardPreview.preview-playing .preview-stat:nth-child(1) { animation: homepage-rise .48s cubic-bezier(.2,.72,.25,1) .36s forwards; }
      #dashboardPreview.preview-playing .preview-stat:nth-child(2) { animation: homepage-rise .48s cubic-bezier(.2,.72,.25,1) .43s forwards; }
      #dashboardPreview.preview-playing .preview-stat:nth-child(3) { animation: homepage-rise .48s cubic-bezier(.2,.72,.25,1) .50s forwards; }
      #dashboardPreview.preview-playing .preview-appointment:nth-child(1) { animation: homepage-slide-in .52s cubic-bezier(.2,.72,.25,1) .62s forwards; }
      #dashboardPreview.preview-playing .preview-appointment:nth-child(2) { animation: homepage-slide-in .52s cubic-bezier(.2,.72,.25,1) .72s forwards; }
      #dashboardPreview.preview-playing .preview-diary { animation: homepage-rise .52s cubic-bezier(.2,.72,.25,1) .82s forwards; }

      #dashboardPreview .preview-progress-bar {
        transform: scaleX(0);
      }
      #dashboardPreview.preview-playing .preview-progress-bar {
        animation: homepage-bar-grow .72s cubic-bezier(.2,.72,.25,1) 1.02s forwards;
      }

      /* Once the finite hero animation finishes, the dashboard becomes ordinary static UI. */
      #dashboardPreview.preview-complete .preview-chrome,
      #dashboardPreview.preview-complete .preview-nav-item,
      #dashboardPreview.preview-complete .preview-stat,
      #dashboardPreview.preview-complete .preview-appointment,
      #dashboardPreview.preview-complete .preview-diary {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
      }
      #dashboardPreview.preview-complete .preview-progress-bar {
        transform: scaleX(1) !important;
        animation: none !important;
      }

      #landingView .saas-reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity .62s ease, transform .62s cubic-bezier(.2,.72,.25,1);
      }
      #landingView .saas-reveal.reveal-in {
        opacity: 1;
        transform: translateY(0);
      }
      #landingView .saas-stagger > * {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .5s ease, transform .5s cubic-bezier(.2,.72,.25,1);
      }
      #landingView .saas-stagger.reveal-in > * {
        opacity: 1;
        transform: translateY(0);
      }
      #landingView .saas-stagger.reveal-in > *:nth-child(2) { transition-delay: .07s; }
      #landingView .saas-stagger.reveal-in > *:nth-child(3) { transition-delay: .14s; }
      #landingView .saas-stagger.reveal-in > *:nth-child(4) { transition-delay: .21s; }

      .landing-product-card {
        will-change: transform;
      }
      .product-card-book .book-mini-slot,
      .product-card-crm .crm-mini-stat,
      .product-card-growth .growth-mini-bar {
        transition: transform .28s ease, box-shadow .28s ease, opacity .28s ease;
      }
      .product-card-growth .growth-mini-bar {
        transform: scaleX(.35);
      }
      .saas-stagger.reveal-in .product-card-growth .growth-mini-bar {
        transform: scaleX(1);
        transition-duration: .75s;
        transition-delay: .38s;
      }

      .saas-product-preview.reveal-in {
        box-shadow: 0 24px 65px rgba(23,32,51,.105);
      }
      .saas-product-preview .growth-detail-row {
        transition: background-color .2s ease;
      }

      .homepage-final-cta {
        position: relative;
        isolation: isolate;
      }
      .homepage-final-cta::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.18) 46%, transparent 72%);
        transform: translateX(-120%);
        opacity: 0;
      }
      .homepage-final-cta.reveal-in::after {
        animation: homepage-cta-sheen 1s ease .38s both;
      }
    }

    @media (hover:hover) and (prefers-reduced-motion:no-preference) {
      .product-card-book:hover .book-mini-slot-active {
        transform: translateY(-2px) scale(1.035);
        box-shadow: 0 8px 18px rgba(8,114,189,.16);
      }
      .product-card-book:hover .book-mini-slot:not(.book-mini-slot-active) {
        opacity: .72;
      }
      .product-card-crm:hover .crm-mini-stat:first-child {
        transform: translateY(-2px);
        box-shadow: 0 7px 16px rgba(23,32,51,.07);
      }
      .product-card-crm:hover .crm-mini-stat:nth-child(2) {
        transform: translateY(-2px);
        transition-delay: .05s;
        box-shadow: 0 7px 16px rgba(23,32,51,.07);
      }
      .product-card-growth:hover .growth-mini-bar {
        filter: saturate(1.12);
        transform: scaleX(1);
      }
      .saas-product-preview:hover {
        transform: translateY(-2px);
        box-shadow: 0 30px 72px rgba(23,32,51,.12);
      }
      .saas-product-preview {
        transition: transform .25s ease, box-shadow .25s ease;
      }
    }

    @keyframes homepage-rise {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes homepage-slide-in {
      from { opacity: 0; transform: translateX(-14px); }
      to { opacity: 1; transform: translateX(0); }
    }
    @keyframes homepage-bar-grow {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    @keyframes homepage-cta-sheen {
      0% { opacity: 0; transform: translateX(-120%); }
      20%, 75% { opacity: 1; }
      100% { opacity: 0; transform: translateX(120%); }
    }

    @media (max-width:639px) and (prefers-reduced-motion:no-preference) {
      #landingView .saas-reveal { transform: translateY(14px); }
      #landingView .saas-stagger > * { transform: translateY(12px); }
    }


    /* Homepage product-preview micro interactions */
    @media (prefers-reduced-motion:no-preference) {
      #product-book .saas-product-preview .landing-calendar-day i {
        transform: scale(0);
        opacity: 0;
      }
      #product-book .saas-product-preview.reveal-in .landing-calendar-day i {
        animation: homepage-dot-pop .38s cubic-bezier(.2,.8,.3,1) forwards;
      }
      #product-book .saas-product-preview.reveal-in .landing-calendar-day:nth-child(5) i { animation-delay:.22s; }
      #product-book .saas-product-preview.reveal-in .landing-calendar-day:nth-child(8) i { animation-delay:.28s; }
      #product-book .saas-product-preview.reveal-in .landing-calendar-day:nth-child(10) i { animation-delay:.34s; }
      #product-book .saas-product-preview.reveal-in .landing-calendar-day:nth-child(12) i { animation-delay:.40s; }
      #product-book .saas-product-preview.reveal-in .landing-calendar-day:nth-child(13) i { animation-delay:.46s; }

      #product-crm .saas-product-preview .border-l > div {
        opacity: 0;
        transform: translateX(-8px);
      }
      #product-crm .saas-product-preview.reveal-in .border-l > div {
        animation: homepage-timeline-in .44s cubic-bezier(.2,.72,.25,1) forwards;
      }
      #product-crm .saas-product-preview.reveal-in .border-l > div:nth-child(1) { animation-delay:.18s; }
      #product-crm .saas-product-preview.reveal-in .border-l > div:nth-child(2) { animation-delay:.28s; }
      #product-crm .saas-product-preview.reveal-in .border-l > div:nth-child(3) { animation-delay:.38s; }

      #product-growth .saas-product-preview .growth-detail-row {
        opacity: 0;
        transform: translateY(6px);
      }
      #product-growth .saas-product-preview.reveal-in .growth-detail-row {
        animation: homepage-rise .4s cubic-bezier(.2,.72,.25,1) forwards;
      }
      #product-growth .saas-product-preview.reveal-in .growth-detail-row:nth-child(2) { animation-delay:.18s; }
      #product-growth .saas-product-preview.reveal-in .growth-detail-row:nth-child(3) { animation-delay:.27s; }
      #product-growth .saas-product-preview.reveal-in .growth-detail-row:nth-child(4) { animation-delay:.36s; }
    }

    @keyframes homepage-dot-pop {
      0% { opacity:0; transform:scale(0); }
      70% { opacity:1; transform:scale(1.35); }
      100% { opacity:1; transform:scale(1); }
    }
    @keyframes homepage-timeline-in {
      from { opacity:0; transform:translateX(-8px); }
      to { opacity:1; transform:translateX(0); }
    }


    /* Book product page motion */
    .book-product-page .book-hero-item,
    .book-product-page .book-reveal,
    .book-product-page .book-stagger > * {
      opacity:1;
      transform:none;
    }

    @media (prefers-reduced-motion:no-preference) {
      .book-product-page.book-motion-ready .book-hero-item {
        opacity:0;
        transform:translateY(16px);
      }
      .book-product-page.book-motion-ready.book-hero-playing .book-hero-item {
        animation:book-rise .58s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .book-product-page.book-motion-ready.book-hero-playing .book-hero-item:nth-child(1){animation-delay:.03s}
      .book-product-page.book-motion-ready.book-hero-playing .book-hero-item:nth-child(2){animation-delay:.10s}
      .book-product-page.book-motion-ready.book-hero-playing .book-hero-item:nth-child(3){animation-delay:.17s}
      .book-product-page.book-motion-ready.book-hero-playing .book-hero-item:nth-child(4){animation-delay:.24s}

      .book-product-page.book-motion-enabled .book-hero-preview .book-preview-topbar,
      .book-product-page.book-motion-enabled .book-hero-preview .product-metric,
      .book-product-page.book-motion-enabled .book-hero-preview .book-diary-item {
        opacity:0;
        transform:translateY(10px);
      }
      .book-hero-preview.book-preview-playing .book-preview-topbar {
        animation:book-rise .46s cubic-bezier(.2,.72,.25,1) .05s forwards;
      }
      .book-hero-preview.book-preview-playing .product-metric {
        animation:book-rise .44s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .book-hero-preview.book-preview-playing .product-metric:nth-child(1){animation-delay:.20s}
      .book-hero-preview.book-preview-playing .product-metric:nth-child(2){animation-delay:.27s}
      .book-hero-preview.book-preview-playing .product-metric:nth-child(3){animation-delay:.34s}
      .book-hero-preview.book-preview-playing .product-metric:nth-child(4){animation-delay:.41s}
      .book-hero-preview.book-preview-playing .book-diary-item:nth-child(1){animation:book-slide-in .48s cubic-bezier(.2,.72,.25,1) .55s forwards}
      .book-hero-preview.book-preview-playing .book-diary-item:nth-child(2){animation:book-slide-in .48s cubic-bezier(.2,.72,.25,1) .66s forwards}
      .book-hero-preview.book-preview-playing .book-diary-item:nth-child(3){animation:book-slot-arrive .56s cubic-bezier(.2,.8,.25,1) .79s forwards}
      .book-live-status::before {
        content:"";
        display:inline-block;
        width:.4rem;
        height:.4rem;
        margin-right:.38rem;
        border-radius:999px;
        background:#10b981;
        vertical-align:.08rem;
      }
      .book-hero-preview.book-preview-playing .book-live-status::before {
        animation:book-live-ping .72s ease .88s 2;
      }
      .book-hero-preview.book-preview-complete .book-preview-topbar,
      .book-hero-preview.book-preview-complete .product-metric,
      .book-hero-preview.book-preview-complete .book-diary-item {
        opacity:1;
        transform:none;
      }

      .book-product-page.book-motion-enabled .book-reveal {
        opacity:0;
        transform:translateY(22px);
        transition:opacity .6s ease,transform .6s cubic-bezier(.2,.72,.25,1);
      }
      .book-product-page .book-reveal.reveal-in {
        opacity:1;
        transform:translateY(0);
      }
      .book-product-page.book-motion-enabled .book-stagger > * {
        opacity:0;
        transform:translateY(18px);
        transition:opacity .5s ease,transform .5s cubic-bezier(.2,.72,.25,1);
      }
      .book-product-page .book-stagger.reveal-in > * {
        opacity:1;
        transform:translateY(0);
      }
      .book-product-page .book-stagger.reveal-in > *:nth-child(2){transition-delay:.06s}
      .book-product-page .book-stagger.reveal-in > *:nth-child(3){transition-delay:.12s}
      .book-product-page .book-stagger.reveal-in > *:nth-child(4){transition-delay:.18s}
      .book-product-page .book-stagger.reveal-in > *:nth-child(5){transition-delay:.24s}
      .book-product-page .book-stagger.reveal-in > *:nth-child(6){transition-delay:.30s}

      .book-journey-preview .book-journey-step,
      .book-journey-preview .book-service-option,
      .book-journey-preview .product-slot,
      .book-journey-preview .book-confirm-preview {
        transition:opacity .35s ease,transform .35s ease,background-color .35s ease,border-color .35s ease,box-shadow .35s ease,color .35s ease;
      }
      .book-journey-preview .book-journey-step {
        border-radius:.55rem;
        padding:.5rem .2rem;
      }
      .book-product-page.book-motion-enabled .book-journey-preview:not(.journey-playing):not(.journey-complete) .book-service-option,
      .book-product-page.book-motion-enabled .book-journey-preview:not(.journey-playing):not(.journey-complete) .product-slot,
      .book-product-page.book-motion-enabled .book-journey-preview:not(.journey-playing):not(.journey-complete) .book-confirm-preview {
        opacity:0;
        transform:translateY(8px);
      }
      .book-journey-preview.journey-playing .book-journey-step.active {
        background:#0872bd;
        color:#fff;
        box-shadow:0 6px 16px rgba(8,114,189,.14);
      }
      .book-journey-preview.journey-playing .book-service-option.show,
      .book-journey-preview.journey-playing .product-slot.show,
      .book-journey-preview.journey-playing .book-confirm-preview.show {
        opacity:1;
        transform:translateY(0);
      }
      .book-journey-preview.journey-playing .book-service-selected.selected-pulse {
        box-shadow:0 0 0 4px rgba(22,135,217,.10),0 12px 24px rgba(23,32,51,.06);
        transform:translateY(-2px);
      }
      .book-journey-preview.journey-playing .book-time-selected.selected-pulse {
        transform:translateY(-2px) scale(1.03);
        box-shadow:0 8px 18px rgba(8,114,189,.14);
      }
      .book-journey-preview.journey-complete .book-confirm-preview {
        opacity:1;
        transform:none;
      }
    }

    @media (hover:hover) and (prefers-reduced-motion:no-preference) {
      .book-product-page .product-feature:hover {
        transform:translateY(-3px);
        border-color:#b8dcf5;
        box-shadow:0 16px 36px rgba(23,32,51,.07);
      }
      .book-product-page .product-feature {
        transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
      }
      .book-available-slot:hover {
        transform:translateY(-2px);
        box-shadow:0 10px 22px rgba(16,185,129,.10);
      }
    }

    @keyframes book-rise {
      from{opacity:0;transform:translateY(16px)}
      to{opacity:1;transform:translateY(0)}
    }
    @keyframes book-slide-in {
      from{opacity:0;transform:translateX(-12px)}
      to{opacity:1;transform:translateX(0)}
    }
    @keyframes book-slot-arrive {
      0%{opacity:0;transform:translateY(10px) scale(.985)}
      72%{opacity:1;transform:translateY(-2px) scale(1.012)}
      100%{opacity:1;transform:translateY(0) scale(1)}
    }
    @keyframes book-live-ping {
      0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}
      50%{box-shadow:0 0 0 5px rgba(16,185,129,.16)}
    }

    @media (max-width:639px) and (prefers-reduced-motion:no-preference) {
      .book-product-page .book-reveal{transform:translateY(14px)}
      .book-product-page .book-stagger > *{transform:translateY(12px)}
      .book-journey-preview .book-journey-step{font-size:.52rem;padding:.45rem .1rem}
    }


    /* CRM product page motion */
    .crm-product-page .crm-hero-item,
    .crm-product-page .crm-reveal,
    .crm-product-page .crm-stagger > * {
      opacity:1;
      transform:none;
    }

    @media (prefers-reduced-motion:no-preference) {
      .crm-product-page.crm-motion-ready .crm-hero-item {
        opacity:0;
        transform:translateY(16px);
      }
      .crm-product-page.crm-motion-ready.crm-hero-playing .crm-hero-item {
        animation:crm-rise .58s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .crm-product-page.crm-motion-ready.crm-hero-playing .crm-hero-item:nth-child(1){animation-delay:.03s}
      .crm-product-page.crm-motion-ready.crm-hero-playing .crm-hero-item:nth-child(2){animation-delay:.10s}
      .crm-product-page.crm-motion-ready.crm-hero-playing .crm-hero-item:nth-child(3){animation-delay:.17s}
      .crm-product-page.crm-motion-ready.crm-hero-playing .crm-hero-item:nth-child(4){animation-delay:.24s}

      .crm-product-page.crm-motion-enabled .crm-hero-preview .crm-preview-topbar,
      .crm-product-page.crm-motion-enabled .crm-hero-preview .product-metric,
      .crm-product-page.crm-motion-enabled .crm-hero-preview .crm-profile-tag,
      .crm-product-page.crm-motion-enabled .crm-hero-preview .crm-timeline-card {
        opacity:0;
        transform:translateY(10px);
      }
      .crm-hero-preview.crm-preview-playing .crm-preview-topbar {
        animation:crm-rise .46s cubic-bezier(.2,.72,.25,1) .05s forwards;
      }
      .crm-hero-preview.crm-preview-playing .product-metric {
        animation:crm-rise .44s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .crm-hero-preview.crm-preview-playing .product-metric:nth-child(1){animation-delay:.20s}
      .crm-hero-preview.crm-preview-playing .product-metric:nth-child(2){animation-delay:.27s}
      .crm-hero-preview.crm-preview-playing .product-metric:nth-child(3){animation-delay:.34s}
      .crm-hero-preview.crm-preview-playing .product-metric:nth-child(4){animation-delay:.41s}
      .crm-hero-preview.crm-preview-playing .crm-profile-tag {
        animation:crm-tag-pop .4s cubic-bezier(.2,.8,.25,1) forwards;
      }
      .crm-hero-preview.crm-preview-playing .crm-profile-tag:nth-child(1){animation-delay:.53s}
      .crm-hero-preview.crm-preview-playing .crm-profile-tag:nth-child(2){animation-delay:.61s}
      .crm-hero-preview.crm-preview-playing .crm-profile-tag:nth-child(3){animation-delay:.69s}
      .crm-hero-preview.crm-preview-playing .crm-timeline-card {
        animation:crm-rise .48s cubic-bezier(.2,.72,.25,1) .78s forwards;
      }
      .crm-product-page.crm-motion-enabled .crm-hero-preview .crm-timeline-event {
        opacity:0;
        transform:translateX(-8px);
      }
      .crm-hero-preview.crm-preview-playing .crm-timeline-event {
        animation:crm-timeline-in .42s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .crm-hero-preview.crm-preview-playing .crm-timeline-event:nth-child(1){animation-delay:.90s}
      .crm-hero-preview.crm-preview-playing .crm-timeline-event:nth-child(2){animation-delay:1.00s}
      .crm-hero-preview.crm-preview-playing .crm-timeline-event:nth-child(3){animation-delay:1.10s}
      .crm-hero-preview.crm-preview-complete .crm-preview-topbar,
      .crm-hero-preview.crm-preview-complete .product-metric,
      .crm-hero-preview.crm-preview-complete .crm-profile-tag,
      .crm-hero-preview.crm-preview-complete .crm-timeline-card,
      .crm-hero-preview.crm-preview-complete .crm-timeline-event {
        opacity:1;
        transform:none;
      }

      .crm-product-page.crm-motion-enabled .crm-reveal {
        opacity:0;
        transform:translateY(22px);
        transition:opacity .6s ease,transform .6s cubic-bezier(.2,.72,.25,1);
      }
      .crm-product-page .crm-reveal.reveal-in {
        opacity:1;
        transform:translateY(0);
      }
      .crm-product-page.crm-motion-enabled .crm-stagger > * {
        opacity:0;
        transform:translateY(18px);
        transition:opacity .5s ease,transform .5s cubic-bezier(.2,.72,.25,1);
      }
      .crm-product-page .crm-stagger.reveal-in > * {
        opacity:1;
        transform:translateY(0);
      }
      .crm-product-page .crm-stagger.reveal-in > *:nth-child(2){transition-delay:.06s}
      .crm-product-page .crm-stagger.reveal-in > *:nth-child(3){transition-delay:.12s}
      .crm-product-page .crm-stagger.reveal-in > *:nth-child(4){transition-delay:.18s}
      .crm-product-page .crm-stagger.reveal-in > *:nth-child(5){transition-delay:.24s}
      .crm-product-page .crm-stagger.reveal-in > *:nth-child(6){transition-delay:.30s}

      .crm-product-page.crm-motion-enabled .crm-analytics-preview .crm-analytics-metrics .product-metric,
      .crm-product-page.crm-motion-enabled .crm-analytics-preview .crm-health-bar,
      .crm-product-page.crm-motion-enabled .crm-analytics-preview .crm-status-step {
        opacity:0;
      }
      .crm-analytics-preview.analytics-playing .crm-analytics-metrics .product-metric {
        animation:crm-rise .42s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .crm-analytics-preview.analytics-playing .crm-analytics-metrics .product-metric:nth-child(1){animation-delay:.08s}
      .crm-analytics-preview.analytics-playing .crm-analytics-metrics .product-metric:nth-child(2){animation-delay:.14s}
      .crm-analytics-preview.analytics-playing .crm-analytics-metrics .product-metric:nth-child(3){animation-delay:.20s}
      .crm-analytics-preview.analytics-playing .crm-analytics-metrics .product-metric:nth-child(4){animation-delay:.26s}
      .crm-analytics-preview.analytics-playing .crm-analytics-metrics .product-metric:nth-child(5){animation-delay:.32s}
      .crm-analytics-preview.analytics-playing .crm-analytics-metrics .product-metric:nth-child(6){animation-delay:.38s}
      .crm-product-page.crm-motion-enabled .crm-analytics-preview .crm-health-bar {
        transform:scaleX(0);
        opacity:1;
      }
      .crm-analytics-preview.analytics-playing .crm-health-bar {
        animation:crm-bar-grow .68s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .crm-analytics-preview.analytics-playing .crm-health-bars > div:nth-child(1) .crm-health-bar{animation-delay:.56s}
      .crm-analytics-preview.analytics-playing .crm-health-bars > div:nth-child(2) .crm-health-bar{animation-delay:.66s}
      .crm-analytics-preview.analytics-playing .crm-health-bars > div:nth-child(3) .crm-health-bar{animation-delay:.76s}
      .crm-analytics-preview.analytics-playing .crm-status-step {
        animation:crm-status-pop .42s cubic-bezier(.2,.8,.25,1) forwards;
      }
      .crm-analytics-preview.analytics-playing .crm-status-step:nth-child(1){animation-delay:.95s}
      .crm-analytics-preview.analytics-playing .crm-status-step:nth-child(2){animation-delay:1.17s}
      .crm-analytics-preview.analytics-playing .crm-status-step:nth-child(3){animation-delay:1.39s}
      .crm-analytics-preview.analytics-playing .crm-status-step.status-active {
        background:#fff7ed;
        color:#c2410c;
        box-shadow:0 8px 18px rgba(194,65,12,.08);
      }
      .crm-analytics-preview.analytics-complete .crm-analytics-metrics .product-metric,
      .crm-analytics-preview.analytics-complete .crm-status-step {
        opacity:1;
        transform:none;
      }
      .crm-analytics-preview.analytics-complete .crm-health-bar {
        opacity:1;
        transform:scaleX(1);
      }
    }

    @media (hover:hover) and (prefers-reduced-motion:no-preference) {
      .crm-product-page .product-feature {
        transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
      }
      .crm-product-page .product-feature:hover {
        transform:translateY(-3px);
        border-color:#d8c7ff;
        box-shadow:0 16px 36px rgba(23,32,51,.07);
      }
    }

    @keyframes crm-rise {
      from{opacity:0;transform:translateY(16px)}
      to{opacity:1;transform:translateY(0)}
    }
    @keyframes crm-tag-pop {
      0%{opacity:0;transform:translateY(7px) scale(.96)}
      70%{opacity:1;transform:translateY(-1px) scale(1.02)}
      100%{opacity:1;transform:translateY(0) scale(1)}
    }
    @keyframes crm-timeline-in {
      from{opacity:0;transform:translateX(-8px)}
      to{opacity:1;transform:translateX(0)}
    }
    @keyframes crm-bar-grow {
      from{transform:scaleX(0)}
      to{transform:scaleX(1)}
    }
    @keyframes crm-status-pop {
      0%{opacity:0;transform:translateY(5px) scale(.97)}
      100%{opacity:1;transform:translateY(0) scale(1)}
    }

    @media (max-width:639px) and (prefers-reduced-motion:no-preference) {
      .crm-product-page .crm-reveal{transform:translateY(14px)}
      .crm-product-page .crm-stagger > *{transform:translateY(12px)}
    }


    /* Growth product page motion */
    .growth-product-page .growth-hero-item,
    .growth-product-page .growth-reveal,
    .growth-product-page .growth-stagger > * {
      opacity:1;
      transform:none;
    }

    @media (prefers-reduced-motion:no-preference) {
      .growth-product-page.growth-motion-ready .growth-hero-item {
        opacity:0;
        transform:translateY(16px);
      }
      .growth-product-page.growth-motion-ready.growth-hero-playing .growth-hero-item {
        animation:growth-rise .58s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .growth-product-page.growth-motion-ready.growth-hero-playing .growth-hero-item:nth-child(1){animation-delay:.03s}
      .growth-product-page.growth-motion-ready.growth-hero-playing .growth-hero-item:nth-child(2){animation-delay:.10s}
      .growth-product-page.growth-motion-ready.growth-hero-playing .growth-hero-item:nth-child(3){animation-delay:.17s}
      .growth-product-page.growth-motion-ready.growth-hero-playing .growth-hero-item:nth-child(4){animation-delay:.24s}

      .growth-product-page.growth-motion-enabled .growth-hero-preview .growth-preview-topbar,
      .growth-product-page.growth-motion-enabled .growth-hero-preview .product-metric,
      .growth-product-page.growth-motion-enabled .growth-hero-preview .growth-channel-row {
        opacity:0;
        transform:translateY(10px);
      }
      .growth-hero-preview.growth-preview-playing .growth-preview-topbar {
        animation:growth-rise .46s cubic-bezier(.2,.72,.25,1) .05s forwards;
      }
      .growth-hero-preview.growth-preview-playing .product-metric {
        animation:growth-rise .44s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .growth-hero-preview.growth-preview-playing .product-metric:nth-child(1){animation-delay:.20s}
      .growth-hero-preview.growth-preview-playing .product-metric:nth-child(2){animation-delay:.27s}
      .growth-hero-preview.growth-preview-playing .product-metric:nth-child(3){animation-delay:.34s}
      .growth-hero-preview.growth-preview-playing .product-metric:nth-child(4){animation-delay:.41s}
      .growth-hero-preview.growth-preview-playing .growth-channel-row {
        animation:growth-row-in .44s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .growth-hero-preview.growth-preview-playing .growth-channel-row:nth-child(2){animation-delay:.56s}
      .growth-hero-preview.growth-preview-playing .growth-channel-row:nth-child(3){animation-delay:.64s}
      .growth-hero-preview.growth-preview-playing .growth-channel-row:nth-child(4){animation-delay:.72s}
      .growth-hero-preview.growth-preview-playing .growth-channel-row:nth-child(5){animation-delay:.80s}
      .growth-live-status::before {
        content:"";
        display:inline-block;
        width:.4rem;
        height:.4rem;
        margin-right:.38rem;
        border-radius:999px;
        background:#10b981;
        vertical-align:.08rem;
      }
      .growth-hero-preview.growth-preview-playing .growth-live-status::before {
        animation:growth-live-ping .72s ease .88s 2;
      }
      .growth-hero-preview.growth-preview-complete .growth-preview-topbar,
      .growth-hero-preview.growth-preview-complete .product-metric,
      .growth-hero-preview.growth-preview-complete .growth-channel-row {
        opacity:1;
        transform:none;
      }

      .growth-product-page.growth-motion-enabled .growth-reveal {
        opacity:0;
        transform:translateY(22px);
        transition:opacity .6s ease,transform .6s cubic-bezier(.2,.72,.25,1);
      }
      .growth-product-page .growth-reveal.reveal-in {
        opacity:1;
        transform:translateY(0);
      }
      .growth-product-page.growth-motion-enabled .growth-stagger > * {
        opacity:0;
        transform:translateY(18px);
        transition:opacity .5s ease,transform .5s cubic-bezier(.2,.72,.25,1);
      }
      .growth-product-page .growth-stagger.reveal-in > * {
        opacity:1;
        transform:translateY(0);
      }
      .growth-product-page .growth-stagger.reveal-in > *:nth-child(2){transition-delay:.06s}
      .growth-product-page .growth-stagger.reveal-in > *:nth-child(3){transition-delay:.12s}
      .growth-product-page .growth-stagger.reveal-in > *:nth-child(4){transition-delay:.18s}
      .growth-product-page .growth-stagger.reveal-in > *:nth-child(5){transition-delay:.24s}
      .growth-product-page .growth-stagger.reveal-in > *:nth-child(6){transition-delay:.30s}

      .growth-product-page.growth-motion-enabled .growth-quality-preview .growth-quality-card,
      .growth-product-page.growth-motion-enabled .growth-quality-preview .growth-quality-insight {
        opacity:0;
        transform:translateY(10px);
      }
      .growth-quality-preview.quality-playing .growth-quality-card:nth-child(1) {
        animation:growth-rise .48s cubic-bezier(.2,.72,.25,1) .08s forwards;
      }
      .growth-quality-preview.quality-playing .growth-quality-card:nth-child(2) {
        animation:growth-rise .48s cubic-bezier(.2,.72,.25,1) .19s forwards;
      }
      .growth-quality-preview.quality-playing .growth-quality-insight {
        animation:growth-rise .46s cubic-bezier(.2,.72,.25,1) .48s forwards;
      }
      .growth-quality-preview .growth-quality-metric {
        display:block;
        transform-origin:left center;
      }
      .growth-quality-preview.quality-playing .growth-quality-google {
        box-shadow:0 16px 32px rgba(22,135,217,.08);
      }
      .growth-quality-preview.quality-playing .growth-quality-instagram {
        box-shadow:0 16px 32px rgba(124,58,237,.08);
      }
      .growth-quality-preview .growth-quality-card.quality-focus {
        transform:translateY(-3px) scale(1.008);
        box-shadow:0 18px 38px rgba(23,32,51,.11);
      }
      .growth-quality-preview.quality-complete .growth-quality-card,
      .growth-quality-preview.quality-complete .growth-quality-insight {
        opacity:1;
        transform:none;
      }

      .growth-product-page.growth-motion-enabled .growth-integration-flow .growth-integration-source,
      .growth-product-page.growth-motion-enabled .growth-integration-flow .growth-destination {
        opacity:0;
        transform:translateY(14px);
      }
      .growth-integration-flow.flow-playing .growth-integration-source {
        animation:growth-source-in .46s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .growth-integration-flow.flow-playing .growth-integration-source:nth-child(1){animation-delay:.06s}
      .growth-integration-flow.flow-playing .growth-integration-source:nth-child(2){animation-delay:.14s}
      .growth-integration-flow.flow-playing .growth-integration-source:nth-child(3){animation-delay:.22s}
      .growth-integration-flow.flow-playing .growth-integration-source:nth-child(4){animation-delay:.30s}
      .growth-data-rail span {
        position:relative;
        width:25%;
        height:2px;
        overflow:hidden;
        background:#d9efff;
      }
      .growth-data-rail span::after {
        content:"";
        position:absolute;
        inset:0;
        background:linear-gradient(90deg,transparent,#1687d9,transparent);
        transform:translateX(-110%);
      }
      .growth-integration-flow.flow-playing .growth-data-rail span::after {
        animation:growth-data-pulse .82s ease forwards;
      }
      .growth-integration-flow.flow-playing .growth-data-rail span:nth-child(1)::after{animation-delay:.42s}
      .growth-integration-flow.flow-playing .growth-data-rail span:nth-child(2)::after{animation-delay:.50s}
      .growth-integration-flow.flow-playing .growth-data-rail span:nth-child(3)::after{animation-delay:.58s}
      .growth-integration-flow.flow-playing .growth-data-rail span:nth-child(4)::after{animation-delay:.66s}
      .growth-integration-flow.flow-playing .growth-destination {
        animation:growth-destination-in .54s cubic-bezier(.2,.8,.25,1) .86s forwards;
      }
      .growth-integration-flow.flow-complete .growth-integration-source,
      .growth-integration-flow.flow-complete .growth-destination {
        opacity:1;
        transform:none;
      }
    }

    @media (hover:hover) and (prefers-reduced-motion:no-preference) {
      .growth-product-page .product-feature,
      .growth-product-page .product-integration {
        transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
      }
      .growth-product-page .product-feature:hover,
      .growth-product-page .product-integration:hover {
        transform:translateY(-3px);
        border-color:#b8dcf5;
        box-shadow:0 16px 36px rgba(23,32,51,.07);
      }
      .growth-quality-card {
        transition:transform .22s ease,box-shadow .22s ease;
      }
      .growth-quality-card:hover {
        transform:translateY(-2px);
      }
    }

    @keyframes growth-rise {
      from{opacity:0;transform:translateY(16px)}
      to{opacity:1;transform:translateY(0)}
    }
    @keyframes growth-row-in {
      from{opacity:0;transform:translateX(-10px)}
      to{opacity:1;transform:translateX(0)}
    }
    @keyframes growth-live-ping {
      0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}
      50%{box-shadow:0 0 0 5px rgba(16,185,129,.16)}
    }
    @keyframes growth-source-in {
      from{opacity:0;transform:translateY(12px) scale(.985)}
      to{opacity:1;transform:translateY(0) scale(1)}
    }
    @keyframes growth-data-pulse {
      from{transform:translateX(-110%)}
      to{transform:translateX(110%)}
    }
    @keyframes growth-destination-in {
      0%{opacity:0;transform:translateY(12px) scale(.985)}
      72%{opacity:1;transform:translateY(-2px) scale(1.01)}
      100%{opacity:1;transform:translateY(0) scale(1)}
    }

    @media (max-width:639px) and (prefers-reduced-motion:no-preference) {
      .growth-product-page .growth-reveal{transform:translateY(14px)}
      .growth-product-page .growth-stagger > *{transform:translateY(12px)}
    }


    /* Trust pages motion: case studies + contact */
    .case-studies-page .case-hero-item,
    .case-studies-page .case-method-step,
    .case-studies-page .case-reveal,
    .contact-product-page .contact-hero-item,
    .contact-product-page .contact-principle-item,
    .contact-product-page .contact-reveal,
    .contact-product-page .contact-stagger > *,
    .contact-thanks-page .contact-thanks-card {
      opacity:1;
      transform:none;
    }

    .contact-submit-spinner {
      width:1rem;
      height:1rem;
      border:2px solid rgba(255,255,255,.45);
      border-top-color:#fff;
      border-radius:999px;
      animation:trust-spinner .7s linear infinite;
    }
    #contactSubmitBtn.is-sending {
      cursor:wait;
      opacity:.92;
    }
    #contactSubmitBtn.is-sending .contact-submit-spinner {
      display:inline-block;
    }
    #contactSubmitBtn.is-sending .contact-submit-label {
      margin-right:.45rem;
    }

    @media (prefers-reduced-motion:no-preference) {
      .case-studies-page.case-motion-enabled .case-hero-item,
      .contact-product-page.contact-motion-enabled .contact-hero-item {
        opacity:0;
        transform:translateY(14px);
      }
      .case-studies-page.case-motion-enabled.case-hero-playing .case-hero-item,
      .contact-product-page.contact-motion-enabled.contact-hero-playing .contact-hero-item {
        animation:trust-rise .56s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .case-studies-page.case-motion-enabled.case-hero-playing .case-hero-item:nth-child(1),
      .contact-product-page.contact-motion-enabled.contact-hero-playing .contact-hero-item:nth-child(1){animation-delay:.03s}
      .case-studies-page.case-motion-enabled.case-hero-playing .case-hero-item:nth-child(2),
      .contact-product-page.contact-motion-enabled.contact-hero-playing .contact-hero-item:nth-child(2){animation-delay:.10s}
      .case-studies-page.case-motion-enabled.case-hero-playing .case-hero-item:nth-child(3),
      .contact-product-page.contact-motion-enabled.contact-hero-playing .contact-hero-item:nth-child(3){animation-delay:.17s}

      .case-studies-page.case-motion-enabled .case-method-step {
        opacity:0;
        transform:translateY(14px);
      }
      .case-method-flow.flow-playing .case-method-step {
        animation:trust-rise .46s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .case-method-flow.flow-playing .case-method-step:nth-child(1){animation-delay:.05s}
      .case-method-flow.flow-playing .case-method-step:nth-child(2){animation-delay:.16s}
      .case-method-flow.flow-playing .case-method-step:nth-child(3){animation-delay:.27s}
      .case-method-flow.flow-playing .case-method-step::after {
        content:"";
      }

      .case-studies-page.case-motion-enabled .case-reveal,
      .contact-product-page.contact-motion-enabled .contact-reveal {
        opacity:0;
        transform:translateY(18px);
        transition:opacity .58s ease,transform .58s cubic-bezier(.2,.72,.25,1);
      }
      .case-studies-page .case-reveal.reveal-in,
      .contact-product-page .contact-reveal.reveal-in {
        opacity:1;
        transform:translateY(0);
      }

      .case-metric-item {
        transition:background-color .2s ease;
      }
      .case-metric-grid.metrics-playing .case-metric-item {
        animation:trust-metric-settle .42s cubic-bezier(.2,.72,.25,1) both;
      }
      .case-metric-grid.metrics-playing .case-metric-item:nth-child(1){animation-delay:.05s}
      .case-metric-grid.metrics-playing .case-metric-item:nth-child(2){animation-delay:.10s}
      .case-metric-grid.metrics-playing .case-metric-item:nth-child(3){animation-delay:.15s}
      .case-metric-grid.metrics-playing .case-metric-item:nth-child(4){animation-delay:.20s}
      .case-metric-grid.metrics-playing .case-metric-item:nth-child(5){animation-delay:.25s}
      .case-metric-grid.metrics-playing .case-metric-item:nth-child(6){animation-delay:.30s}

      .contact-product-page.contact-motion-enabled .contact-principle-item {
        opacity:0;
        transform:translateX(-8px);
      }
      .contact-principles.principles-playing .contact-principle-item {
        animation:trust-slide-in .44s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .contact-principles.principles-playing .contact-principle-item:nth-child(1){animation-delay:.12s}
      .contact-principles.principles-playing .contact-principle-item:nth-child(2){animation-delay:.22s}
      .contact-principles.principles-playing .contact-principle-item:nth-child(3){animation-delay:.32s}

      .contact-product-page.contact-motion-enabled .contact-stagger > * {
        opacity:0;
        transform:translateY(12px);
        transition:opacity .46s ease,transform .46s cubic-bezier(.2,.72,.25,1);
      }
      .contact-product-page .contact-stagger.reveal-in > * {
        opacity:1;
        transform:translateY(0);
      }
      .contact-product-page .contact-stagger.reveal-in > *:nth-child(2){transition-delay:.07s}
      .contact-product-page .contact-stagger.reveal-in > *:nth-child(3){transition-delay:.14s}

      .contact-thanks-page.thanks-motion-enabled .contact-thanks-card {
        opacity:0;
        transform:translateY(12px);
      }
      .contact-thanks-page.thanks-motion-enabled.thanks-playing .contact-thanks-card {
        animation:trust-rise .56s cubic-bezier(.2,.72,.25,1) forwards;
      }
      .contact-thanks-page.thanks-motion-enabled.thanks-playing .contact-success-icon {
        animation:trust-success .6s cubic-bezier(.2,.8,.25,1) .16s both;
      }
    }

    @media (hover:hover) and (prefers-reduced-motion:no-preference) {
      .case-method-card,
      .case-metric,
      .contact-product-page .product-feature {
        transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
      }
      .case-method-card:hover,
      .contact-product-page .product-feature:hover {
        transform:translateY(-2px);
        border-color:#cfe8f8;
        box-shadow:0 14px 30px rgba(23,32,51,.055);
      }
      .case-metric:hover {
        background:#fbfdff;
      }
    }

    @keyframes trust-rise {
      from{opacity:0;transform:translateY(14px)}
      to{opacity:1;transform:translateY(0)}
    }
    @keyframes trust-slide-in {
      from{opacity:0;transform:translateX(-8px)}
      to{opacity:1;transform:translateX(0)}
    }
    @keyframes trust-metric-settle {
      from{opacity:.55;transform:scale(.985)}
      to{opacity:1;transform:scale(1)}
    }
    @keyframes trust-success {
      0%{opacity:0;transform:scale(.72)}
      70%{opacity:1;transform:scale(1.08)}
      100%{opacity:1;transform:scale(1)}
    }
    @keyframes trust-spinner {
      to{transform:rotate(360deg)}
    }

    @media (max-width:639px) and (prefers-reduced-motion:no-preference) {
      .case-studies-page.case-motion-enabled .case-reveal,
      .contact-product-page.contact-motion-enabled .contact-reveal {
        transform:translateY(12px);
      }
    }


    /* Clean homepage hero product entry */
    .homepage-product-entry-card {
      display:block;
      border:1px solid #e7ebf0;
      border-radius:1.25rem;
      background:rgba(255,255,255,.92);
      padding:1.35rem;
      text-align:left;
      box-shadow:0 12px 34px rgba(23,32,51,.045);
      transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
    }
    @media (hover:hover) {
      .homepage-product-entry-card:hover {
        transform:translateY(-3px);
        border-color:#b8dcf5;
        box-shadow:0 18px 42px rgba(23,32,51,.075);
      }
    }


    /* Product animation completion states: once built, demos stay fully built. */
    @media (prefers-reduced-motion:no-preference) {
      .book-product-page .book-hero-preview.book-preview-complete .book-preview-topbar,
      .book-product-page .book-hero-preview.book-preview-complete .product-metric,
      .book-product-page .book-hero-preview.book-preview-complete .book-diary-item {
        opacity:1 !important;
        transform:none !important;
        animation:none !important;
      }
      .book-product-page .book-journey-preview.journey-complete .book-service-option,
      .book-product-page .book-journey-preview.journey-complete .product-slot,
      .book-product-page .book-journey-preview.journey-complete .book-confirm-preview {
        opacity:1 !important;
        transform:none !important;
      }
      .book-product-page .book-journey-preview.journey-complete .book-journey-step:last-child {
        background:#0872bd;
        color:#fff;
        box-shadow:0 6px 16px rgba(8,114,189,.14);
      }

      .crm-product-page .crm-hero-preview.crm-preview-complete .crm-preview-topbar,
      .crm-product-page .crm-hero-preview.crm-preview-complete .product-metric,
      .crm-product-page .crm-hero-preview.crm-preview-complete .crm-profile-tag,
      .crm-product-page .crm-hero-preview.crm-preview-complete .crm-timeline-card,
      .crm-product-page .crm-hero-preview.crm-preview-complete .crm-timeline-event {
        opacity:1 !important;
        transform:none !important;
        animation:none !important;
      }
      .crm-product-page .crm-analytics-preview.analytics-complete .crm-analytics-metrics .product-metric,
      .crm-product-page .crm-analytics-preview.analytics-complete .crm-status-step {
        opacity:1 !important;
        transform:none !important;
        animation:none !important;
      }
      .crm-product-page .crm-analytics-preview.analytics-complete .crm-health-bar {
        opacity:1 !important;
        transform:scaleX(1) !important;
        animation:none !important;
      }
      .crm-product-page .crm-analytics-preview.analytics-complete .crm-status-step:last-child {
        background:#fff7ed;
        color:#c2410c;
        box-shadow:0 8px 18px rgba(194,65,12,.08);
      }

      .growth-product-page .growth-hero-preview.growth-preview-complete .growth-preview-topbar,
      .growth-product-page .growth-hero-preview.growth-preview-complete .product-metric,
      .growth-product-page .growth-hero-preview.growth-preview-complete .growth-channel-row {
        opacity:1 !important;
        transform:none !important;
        animation:none !important;
      }
      .growth-product-page .growth-quality-preview.quality-complete .growth-quality-card,
      .growth-product-page .growth-quality-preview.quality-complete .growth-quality-insight {
        opacity:1 !important;
        transform:none !important;
        animation:none !important;
      }
      .growth-product-page .growth-integration-flow.flow-complete .growth-integration-source,
      .growth-product-page .growth-integration-flow.flow-complete .growth-destination {
        opacity:1 !important;
        transform:none !important;
        animation:none !important;
      }
      .growth-product-page .growth-integration-flow.flow-complete .growth-destination {
        border-color:#b8dcf5;
        box-shadow:0 14px 34px rgba(22,135,217,.07);
      }
    }


    /* Homepage hero benefit grid */
    .hero-benefit-item {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:.9rem;
      min-height:3.25rem;
      padding:.85rem 1rem;
      border:1px solid #e3e8ef;
      border-radius:1rem;
      background:#fff;
      color:#344054;
      text-align:left;
      font-weight:700;
      line-height:1.35;
      box-shadow:0 8px 22px rgba(23,32,51,.045);
    }
    .hero-benefit-item > span:not(.hero-benefit-tick) {
      min-width:0;
      flex:1 1 auto;
    }
    .hero-benefit-tick {
      display:grid;
      place-items:center;
      order:2;
      flex:0 0 auto;
      width:1.3rem;
      height:1.3rem;
      margin-top:0;
      border-radius:999px;
      border:1px solid #bbf7d0;
      background:#ecfdf3;
      color:#15803d;
      font-size:.72rem;
      font-weight:900;
      line-height:1;
      box-shadow:none;
    }
    @media (max-width:639px) {
      .hero-proof-grid {
        grid-template-columns:1fr;
      }
      .hero-benefit-item {
        min-height:auto;
      }
    }

/* Public website navigation uses its own responsive class: the app's .hidden
   utility is intentionally !important for loading/auth/booking view safety. */
.site-desktop-nav { display:none; }
@media (min-width:1024px) {
  .site-desktop-nav { display:flex; }
}
@media (max-width:420px) {
  #landingView > header img,
  .product-site-header img { width:118px; }
}


    /* Dashboard owner appearance personalisation. Customer-facing branding is intentionally separate. */
    #dashboardView {
      --dash-accent: #0872bd;
      --dash-accent-dark: #075b98;
      --dash-accent-soft: #eef8ff;
      --dash-accent-border: #b8dcf5;
      --dash-accent-ring: rgba(8, 114, 189, .16);
    }
    #dashboardView[data-dashboard-accent="emerald"] {
      --dash-accent: #047857;
      --dash-accent-dark: #065f46;
      --dash-accent-soft: #ecfdf5;
      --dash-accent-border: #a7f3d0;
      --dash-accent-ring: rgba(4, 120, 87, .16);
    }
    #dashboardView[data-dashboard-accent="violet"] {
      --dash-accent: #6d28d9;
      --dash-accent-dark: #5b21b6;
      --dash-accent-soft: #f5f3ff;
      --dash-accent-border: #c4b5fd;
      --dash-accent-ring: rgba(109, 40, 217, .16);
    }
    #dashboardView[data-dashboard-accent="graphite"] {
      --dash-accent: #475467;
      --dash-accent-dark: #344054;
      --dash-accent-soft: #f2f4f7;
      --dash-accent-border: #cfd4dc;
      --dash-accent-ring: rgba(71, 84, 103, .16);
    }
    #dashboardView .btn-primary,
    #dashboardView .area-tab.active,
    #dashboardView .btn-dark,
    #dashboardView #dashboardSettingsBtn.dashboard-settings-active {
      background: var(--dash-accent) !important;
      border-color: var(--dash-accent) !important;
      color: #fff !important;
    }
    #dashboardView .btn-primary:hover:not(:disabled),
    #dashboardView .btn-dark:hover:not(:disabled),
    #dashboardView #dashboardSettingsBtn.dashboard-settings-active:hover {
      background: var(--dash-accent-dark) !important;
      border-color: var(--dash-accent-dark) !important;
    }
    #dashboardView .text-brand-600,
    #dashboardView .text-brand-700 {
      color: var(--dash-accent) !important;
    }
    #dashboardView .bg-brand-50,
    #dashboardView .bg-brand-100 {
      background-color: var(--dash-accent-soft) !important;
    }
    #dashboardView .border-brand-100,
    #dashboardView .border-brand-200,
    #dashboardView .border-brand-300,
    #dashboardView .border-brand-400,
    #dashboardView .border-brand-500 {
      border-color: var(--dash-accent-border) !important;
    }
    #dashboardView .ring-brand-100 {
      --tw-ring-color: var(--dash-accent-ring) !important;
    }
    #dashboardView .area-tab:hover:not(.active),
    #dashboardView .subnav-tab:hover:not(.active) {
      background: var(--dash-accent-soft);
      color: var(--dash-accent-dark);
    }
    #dashboardView .subnav-tab.active {
      color: var(--dash-accent-dark);
    }
    #dashboardView .field:focus,
    #dashboardView .rich-editor-shell:focus-within {
      border-color: var(--dash-accent) !important;
      box-shadow: 0 0 0 3px var(--dash-accent-ring) !important;
    }
    #dashboardView input,
    #dashboardView select,
    #dashboardView textarea {
      accent-color: var(--dash-accent);
    }
    #dashboardView .dashboard-theme-option.appearance-selected,
    #dashboardView .dashboard-accent-option.appearance-selected {
      border-color: var(--dash-accent) !important;
      background: var(--dash-accent-soft) !important;
      box-shadow: 0 0 0 3px var(--dash-accent-ring);
    }

    #dashboardView[data-dashboard-theme="dark"] {
      background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--dash-accent) 12%, transparent), transparent 30rem),
        linear-gradient(180deg, #111827 0%, #0b1220 100%);
      color: #cbd5e1;
      color-scheme: dark;
    }
    #dashboardView[data-dashboard-theme="dark"] > header {
      border-color: rgba(71, 85, 105, .72);
      background: rgba(15, 23, 42, .94);
      box-shadow: 0 1px 0 rgba(255,255,255,.025), 0 10px 30px rgba(0,0,0,.16);
    }
    #dashboardView[data-dashboard-theme="dark"] .card {
      border-color: #334155;
      background: rgba(15, 23, 42, .96);
      box-shadow: 0 10px 28px rgba(0,0,0,.16);
    }
    #dashboardView[data-dashboard-theme="dark"] .dashboard-area-nav {
      border-color: #334155 !important;
      background: #111827 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .dashboard-subnav {
      border-color: #334155;
      background: rgba(30, 41, 59, .9);
    }
    #dashboardView[data-dashboard-theme="dark"] .subnav-tab.active {
      background: #334155;
      color: #f8fafc;
    }
    #dashboardView[data-dashboard-theme="dark"] .subnav-tab:hover:not(.active) {
      background: #1e293b;
    }
    #dashboardView[data-dashboard-theme="dark"] .field,
    #dashboardView[data-dashboard-theme="dark"] .rich-editor-shell,
    #dashboardView[data-dashboard-theme="dark"] .rich-editor-toolbar,
    #dashboardView[data-dashboard-theme="dark"] .format-btn {
      border-color: #475569;
      background: #111827;
      color: #e2e8f0;
    }
    #dashboardView[data-dashboard-theme="dark"] .rich-editor {
      color: #e2e8f0;
    }
    #dashboardView[data-dashboard-theme="dark"] .btn-light {
      border-color: #475569;
      background: #1e293b;
      color: #e2e8f0;
    }
    #dashboardView[data-dashboard-theme="dark"] .btn-light:hover:not(:disabled) {
      border-color: var(--dash-accent-border);
      background: #273449;
      color: #f8fafc;
    }
    #dashboardView[data-dashboard-theme="dark"] .bg-white {
      background-color: #111827 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .bg-slate-50,
    #dashboardView[data-dashboard-theme="dark"] .bg-slate-50\/75,
    #dashboardView[data-dashboard-theme="dark"] .bg-slate-50\/80,
    #dashboardView[data-dashboard-theme="dark"] .bg-slate-50\/90 {
      background-color: #1e293b !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .bg-slate-100 {
      background-color: #273449 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .bg-slate-200,
    #dashboardView[data-dashboard-theme="dark"] .bg-slate-200\/70 {
      background-color: #334155 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .text-ink,
    #dashboardView[data-dashboard-theme="dark"] .text-slate-700,
    #dashboardView[data-dashboard-theme="dark"] .text-slate-800,
    #dashboardView[data-dashboard-theme="dark"] .text-slate-900 {
      color: #f1f5f9 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .text-slate-600 {
      color: #cbd5e1 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .text-slate-500 {
      color: #a8b4c5 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .text-slate-400 {
      color: #94a3b8 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .border-slate-100,
    #dashboardView[data-dashboard-theme="dark"] .border-slate-200,
    #dashboardView[data-dashboard-theme="dark"] .border-slate-300 {
      border-color: #334155 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
    #dashboardView[data-dashboard-theme="dark"] .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
      border-color: #334155 !important;
    }
    #dashboardView[data-dashboard-theme="dark"] .dashboard-theme-option,
    #dashboardView[data-dashboard-theme="dark"] .dashboard-accent-option {
      border-color: #334155;
      background: #111827;
    }

    #dashboardView[data-dashboard-theme="dark"] .dashboard-theme-option.appearance-selected,
    #dashboardView[data-dashboard-theme="dark"] .dashboard-accent-option.appearance-selected {
      border-color: var(--dash-accent) !important;
      background: color-mix(in srgb, var(--dash-accent) 16%, #111827) !important;
      box-shadow: 0 0 0 3px var(--dash-accent-ring);
    }


    #dashboardView .dashboard-density-option.appearance-selected {
      border-color: var(--dash-accent) !important;
      background: var(--dash-accent-soft) !important;
      box-shadow: 0 0 0 3px var(--dash-accent-ring);
    }
    #dashboardView[data-dashboard-theme="dark"] .dashboard-density-option {
      border-color: #334155;
      background: #111827;
    }
    #dashboardView[data-dashboard-theme="dark"] .dashboard-density-option.appearance-selected {
      border-color: var(--dash-accent) !important;
      background: color-mix(in srgb, var(--dash-accent) 16%, #111827) !important;
      box-shadow: 0 0 0 3px var(--dash-accent-ring);
    }

    /* Dashboard density: compact keeps type readable and reduces surrounding chrome on working screens. */
    @media (min-width: 768px) {
      #dashboardView[data-dashboard-density="compact"] > header > div {
        padding-top: .65rem !important;
        padding-bottom: .65rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] > div.mx-auto {
        padding-top: 1rem !important;
        padding-bottom: 1.25rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .dashboard-area-nav {
        padding: .25rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .area-tab {
        padding-top: .5rem !important;
        padding-bottom: .5rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .subnav-tab {
        padding-top: .4rem !important;
        padding-bottom: .4rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .dashboard-tab > .grid.gap-6,
      #dashboardView[data-dashboard-density="compact"] .dashboard-tab .grid.gap-6 {
        gap: 1rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .dashboard-tab > .grid.gap-4,
      #dashboardView[data-dashboard-density="compact"] .dashboard-tab .grid.gap-4 {
        gap: .75rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .dashboard-tab.space-y-6 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .dashboard-tab.space-y-5 > :not([hidden]) ~ :not([hidden]) {
        margin-top: .85rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .card.p-6,
      #dashboardView[data-dashboard-density="compact"] .card.p-5,
      #dashboardView[data-dashboard-density="compact"] .card[class~="p-6"],
      #dashboardView[data-dashboard-density="compact"] .card[class~="p-5"] {
        padding: 1rem !important;
      }
      #dashboardView[data-dashboard-density="compact"] .field {
        padding-top: .58rem;
        padding-bottom: .58rem;
      }
      #dashboardView[data-dashboard-density="compact"] .btn {
        padding-top: .55rem;
        padding-bottom: .55rem;
      }
      #dashboardView[data-dashboard-density="compact"] table th,
      #dashboardView[data-dashboard-density="compact"] table td {
        padding-top: .55rem !important;
        padding-bottom: .55rem !important;
      }
    }


    /* Stage 9 Growth hierarchy */
    #tab-growth {
      --growth-soft: #f7fafc;
      --growth-line: #e4eaf1;
    }
    #tab-growth .growth-page-toolbar {
      justify-content: flex-end;
    }
    #tab-growth .growth-page-toolbar > label,
    #tab-growth .growth-page-toolbar > span {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
    }
    #tab-growth .growth-kpi-grid > .card {
      min-width: 0;
      box-shadow: none;
    }
    #growthBusinessHealth {
      border-color: #dce7f0;
      box-shadow: 0 12px 30px rgba(23,32,51,.045);
    }
    #growthBusinessHealth .growth-health-primary {
      border-color: #cde3f3;
      background: linear-gradient(135deg, rgba(238,248,255,.92), rgba(255,255,255,.96));
      box-shadow: inset 3px 0 0 #1687d9;
    }
    #growthBusinessHealth .growth-health-grid > div {
      min-width: 0;
      border-radius: .9rem;
      background: #fbfcfe;
      padding: .8rem .9rem !important;
    }
    #growthBusinessHealth .growth-health-grid > div > p:last-child {
      margin-top: .4rem;
      line-height: 1.45;
    }
    #growthBusinessHealth .growth-health-grid [id$="Status"] {
      flex-shrink: 0;
    }

    #growthScenarioLab.growth-scenario-lab {
      border-color: var(--growth-line);
      box-shadow: 0 5px 18px rgba(23,32,51,.03);
    }
    .growth-scenario-summary {
      display: flex;
      cursor: pointer;
      list-style: none;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      user-select: none;
    }
    .growth-scenario-summary::-webkit-details-marker,
    .growth-data-notes > summary::-webkit-details-marker,
    .growth-guidance-disclosure > summary::-webkit-details-marker {
      display: none;
    }
    .growth-scenario-summary-actions {
      display: flex;
      flex-shrink: 0;
      align-items: center;
      gap: .65rem;
    }
    .growth-scenario-chevron,
    .growth-data-notes-chevron {
      display: inline-flex;
      width: 2rem;
      height: 2rem;
      align-items: center;
      justify-content: center;
      border: 1px solid #dce4ec;
      border-radius: 999px;
      background: #fff;
      color: #667085;
      font-size: 1rem;
      font-weight: 900;
      transition: transform .16s ease, border-color .16s ease, color .16s ease;
    }
    #growthScenarioLab[open] .growth-scenario-summary {
      border-bottom: 1px solid #edf1f5;
      padding-bottom: 1rem;
    }
    #growthScenarioLab[open] .growth-scenario-chevron,
    .growth-data-notes[open] .growth-data-notes-chevron {
      transform: rotate(180deg);
      border-color: #b8dcf5;
      color: #0872bd;
    }
    .growth-scenario-summary:hover .growth-scenario-chevron,
    .growth-data-notes > summary:hover .growth-data-notes-chevron {
      border-color: #b8dcf5;
      color: #0872bd;
    }

    .growth-data-notes {
      overflow: hidden;
    }
    .growth-data-notes > summary {
      display: flex;
      min-height: 56px;
      cursor: pointer;
      list-style: none;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: .75rem .9rem;
      color: #344054;
    }
    .growth-data-notes > summary > span:first-child {
      display: flex;
      min-width: 0;
      flex-direction: column;
      gap: .12rem;
    }
    .growth-data-notes > summary strong {
      color: #344054;
      font-size: .82rem;
    }
    .growth-data-notes > summary small {
      color: #98a2b3;
      font-size: .68rem;
      font-weight: 600;
    }
    .growth-data-notes-body {
      border-top: 1px solid var(--growth-line);
      padding: .9rem 1rem 1rem;
      color: #667085;
      font-size: .75rem;
      line-height: 1.6;
    }
    .growth-data-notes-grid {
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: .65rem;
      margin-top: .75rem;
    }
    .growth-data-notes-grid > span {
      min-width: 0;
      border-radius: .8rem;
      background: #fff;
      padding: .7rem .8rem;
    }
    .growth-data-notes-grid strong {
      display: block;
      margin-bottom: .12rem;
      color: #344054;
      font-size: .72rem;
    }
    .growth-data-note-foot {
      margin-top: .7rem;
      color: #98a2b3;
      font-size: .68rem;
    }

    .growth-planner-summary > button {
      display: grid;
      min-height: 78px;
      grid-template-columns: minmax(0,1fr) auto;
      grid-template-rows: auto auto;
      align-items: center;
      gap: .12rem .8rem;
      border-radius: .9rem !important;
      padding: .75rem .9rem !important;
      box-shadow: none !important;
    }
    .growth-planner-summary > button > p:first-child {
      grid-column: 1;
      grid-row: 1;
      margin: 0;
    }
    .growth-planner-summary > button > p:nth-child(2) {
      grid-column: 2;
      grid-row: 1;
      margin: 0;
      font-size: 1.35rem;
    }
    .growth-planner-summary > button > p:last-child {
      grid-column: 1 / -1;
      grid-row: 2;
      margin: 0;
    }

    #growth-channels-section .growth-channel-toolbar {
      justify-content: flex-end;
    }
    #growth-channels-section [id$="IntegrationCard"] {
      margin-top: 1rem;
      border-color: var(--growth-line);
      border-radius: 1rem;
      background: #fafcfe;
      box-shadow: none;
    }
    #growth-channels-section [id$="IntegrationCard"] h4 {
      margin-top: .35rem;
      font-size: 1rem;
    }
    #growth-channels-section [id$="IntegrationCard"] > div:first-child > div:last-child {
      align-self: center;
    }
    #growth-channels-section [id$="IntegrationCard"] .btn {
      min-height: 40px;
    }

    #growth-planner-section aside {
      border: 1px solid var(--growth-line);
      background: #fafcfe;
    }
    #growth-opportunities-section .growth-opportunity-summary > div {
      min-width: 0;
      border: 1px solid rgba(148,163,184,.14);
      border-radius: .9rem;
      padding: .85rem .95rem !important;
    }
    #growth-opportunities-section .growth-opportunity-summary > div > p:nth-child(2) {
      font-size: 1.35rem;
    }
    .growth-guidance-disclosure {
      overflow: hidden;
    }
    .growth-guidance-disclosure > summary {
      display: flex;
      min-height: 48px;
      cursor: pointer;
      list-style: none;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: .65rem .85rem;
      color: #667085;
      font-size: .72rem;
      font-weight: 800;
    }
    .growth-guidance-disclosure > summary span {
      transition: transform .16s ease;
    }
    .growth-guidance-disclosure[open] > summary span {
      transform: rotate(180deg);
    }
    .growth-guidance-disclosure > p {
      border-top: 1px solid var(--growth-line);
      padding: .8rem .9rem .9rem;
      color: #667085;
      font-size: .72rem;
      line-height: 1.6;
    }
    .growth-scenario-summary:focus-visible,
    .growth-data-notes > summary:focus-visible,
    .growth-guidance-disclosure > summary:focus-visible {
      outline: 3px solid rgba(22,135,217,.24);
      outline-offset: 3px;
      border-radius: .75rem;
    }

    @media (max-width: 639px) {
      #tab-growth .growth-page-toolbar,
      #growth-channels-section .growth-channel-toolbar {
        width: 100%;
        justify-content: stretch;
      }
      #tab-growth .growth-page-toolbar > label,
      #tab-growth .growth-page-toolbar > span {
        width: 100%;
        justify-content: space-between;
      }
      #tab-growth .growth-page-toolbar select {
        min-width: 5.5rem;
      }
      #growthBusinessHealth .growth-health-primary > div {
        align-items: stretch;
      }
      #growthBusinessHealth .growth-health-primary > div > div:last-child {
        width: 100%;
      }
      #growthBusinessHealth .growth-health-primary .btn {
        flex: 1 1 auto;
      }
      .growth-scenario-summary {
        align-items: flex-start;
        flex-direction: column;
      }
      .growth-scenario-summary-actions {
        width: 100%;
        justify-content: space-between;
      }
      .growth-data-notes-grid {
        grid-template-columns: 1fr;
      }
      #growth-channels-section .growth-channel-toolbar > .field,
      #growth-channels-section .growth-channel-toolbar > .btn {
        width: 100% !important;
      }
      #growth-channels-section [id$="IntegrationCard"] > div:first-child {
        align-items: stretch;
      }
      #growth-channels-section [id$="IntegrationCard"] > div:first-child > div:last-child {
        width: 100%;
      }
      #growth-channels-section [id$="IntegrationCard"] > div:first-child > div:last-child .btn {
        flex: 1 1 auto;
      }
      #growth-opportunities-section > div:first-child {
        align-items: stretch;
      }
      #growthOpportunitiesRefreshBtn {
        width: 100%;
      }
    }

    @media (min-width: 420px) and (max-width: 639px) {
      .growth-planner-summary {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
      }
    }


    /* Stage 10 Payments, plans & settings */
    #tab-settings .settings-hub-grid { align-items: stretch; }
    #tab-settings .settings-hub-card {
      position: relative;
      min-height: 168px;
      border-color: var(--gb-border-soft);
      box-shadow: 0 5px 18px rgba(23,32,51,.035);
      transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
    }
    #tab-settings .settings-hub-card:hover {
      transform: translateY(-2px);
      border-color: #bfd9eb;
      background: #fcfeff;
      box-shadow: 0 12px 28px rgba(23,32,51,.055);
    }
    #tab-settings .settings-hub-card > div > span:last-child {
      display: inline-flex;
      width: 2rem;
      height: 2rem;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
      border: 1px solid #e1e8ef;
      border-radius: 999px;
      background: #fff;
      color: #98a2b3;
      font-size: .95rem;
      transition: border-color .16s ease, color .16s ease, transform .16s ease;
    }
    #tab-settings .settings-hub-card:hover > div > span:last-child {
      transform: translateX(2px);
      border-color: #b8dcf5;
      color: #0872bd;
    }
    #tab-settings .settings-hub-card:focus-visible {
      outline: 3px solid rgba(22,135,217,.24);
      outline-offset: 3px;
    }
    #tab-branding .branding-preview-card { min-width: 0; }
    #tab-branding #brandingColourText { max-width: 10rem; }
    #tab-business-details .booking-summary-row,
    #tab-reminders .booking-summary-row { min-width: 0; }
    #tab-payments .payments-status-card {
      min-width: 0;
      border-color: var(--gb-border-soft);
      box-shadow: 0 8px 24px rgba(23,32,51,.04);
    }
    #tab-payments .payment-readiness-panel {
      min-height: 116px;
      border: 1px solid #e6ebf1;
      border-radius: 1rem;
      background: #fafcfe;
      padding: 1rem;
    }
    #tab-payments .payments-card-actions { align-items: center; }
    #tab-payments .payment-break-even {
      display: flex;
      flex-direction: column;
      gap: .22rem;
      border-top: 1px solid #edf1f5;
      padding-top: 1rem;
      color: #667085;
      font-size: .75rem;
      line-height: 1.55;
    }
    #tab-payments .payment-break-even strong { color: #344054; font-size: .78rem; }
    #tab-payments .payment-fee-disclosure {
      overflow: hidden;
      border: 1px solid #e6ebf1;
      border-radius: 1rem;
      background: #fff;
    }
    #tab-payments .payment-fee-disclosure > summary {
      display: flex;
      min-height: 48px;
      cursor: pointer;
      list-style: none;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: .7rem .85rem;
      color: #475467;
      font-size: .75rem;
      font-weight: 800;
    }
    #tab-payments .payment-fee-disclosure > summary::-webkit-details-marker { display: none; }
    #tab-payments .payment-fee-disclosure > summary span { color: #98a2b3; transition: transform .16s ease; }
    #tab-payments .payment-fee-disclosure[open] > summary span { transform: rotate(180deg); }
    #tab-payments .payment-fee-disclosure-body {
      display: grid;
      gap: .65rem;
      border-top: 1px solid #edf1f5;
      padding: .85rem;
    }
    #tab-payments .payment-fee-disclosure-body > div {
      display: grid;
      grid-template-columns: minmax(8rem,.65fr) minmax(0,1.35fr);
      gap: .75rem;
      border-radius: .75rem;
      background: #f8fafc;
      padding: .7rem .8rem;
      color: #667085;
      font-size: .72rem;
      line-height: 1.5;
    }
    #tab-payments .payment-fee-disclosure-body strong { color: #344054; }
    #tab-payments .plan-choice-card {
      position: relative;
      min-width: 0;
      background: #fff;
      transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }
    #tab-payments .plan-choice-card-pro {
      background: linear-gradient(145deg, rgba(238,248,255,.9), rgba(255,255,255,.98));
    }
    #tab-payments .plan-choice-card.is-current-plan {
      border-color: #8fc3e8 !important;
      box-shadow: inset 3px 0 0 #1687d9, 0 8px 20px rgba(23,32,51,.04);
    }
    #tab-payments .plan-feature-list { display: grid; gap: .65rem; }
    #tab-payments .plan-feature-list > div {
      display: grid;
      grid-template-columns: 4.5rem minmax(0,1fr);
      gap: .75rem;
      align-items: start;
      border-top: 1px solid #edf1f5;
      padding-top: .7rem;
      color: #667085;
      font-size: .78rem;
      line-height: 1.45;
    }
    #tab-payments .plan-feature-list > div:first-child { border-top: 0; padding-top: 0; }
    #tab-payments .plan-feature-list strong { color: #172033; font-size: .82rem; }
    @media (min-width: 1024px) {
      #tab-branding .branding-preview-card { position: sticky; top: 8rem; }
    }
    @media (max-width: 639px) {
      #tab-settings .settings-hub-card { min-height: 0; padding: 1rem !important; }
      #tab-branding #brandingColourText { max-width: none; }
      #tab-payments .payments-card-actions { display: grid; grid-template-columns: 1fr; }
      #tab-payments .payments-card-actions .btn { width: 100%; }
      #tab-payments .payment-readiness-panel { min-height: 0; }
      #tab-payments .payment-fee-disclosure-body > div,
      #tab-payments .plan-feature-list > div { grid-template-columns: 1fr; gap: .18rem; }
    }


    /* Stage 11 client view & secondary screens */
    #pendingView .pending-review-card {
      border-color: var(--gb-border-soft);
      box-shadow: 0 22px 60px rgba(23,32,51,.08);
    }
    .pending-review-steps { display:grid; gap:.45rem; }
    .pending-review-steps > div {
      display:grid; grid-template-columns:2rem minmax(0,1fr); align-items:center; gap:0 .75rem;
      border:1px solid #e6ebf1; border-radius:.9rem; background:#fafcfe; padding:.75rem .85rem; color:#667085;
    }
    .pending-review-steps > div > span {
      grid-row:1 / span 2; display:grid; width:2rem; height:2rem; place-items:center; border-radius:999px;
      background:#eef2f6; color:#667085; font-size:.72rem; font-weight:900;
    }
    .pending-review-steps strong { color:#344054; font-size:.8rem; }
    .pending-review-steps small { color:#98a2b3; font-size:.68rem; }
    .pending-review-steps .is-complete { border-color:#d7eee4; background:#f7fcf9; }
    .pending-review-steps .is-complete > span { background:#dff5e9; color:#047857; }
    .pending-review-steps .is-current { border-color:#f0d9a6; background:#fffbeb; }
    .pending-review-steps .is-current > span { background:#fef3c7; color:#a16207; }

    #bookingSuccess.booking-success-card {
      border-color:#dbe9e2; background:#fff; box-shadow:0 16px 42px rgba(23,32,51,.055);
    }
    #bookingSuccess .success-manage-actions {
      border:1px solid #e5eaf1; border-radius:1rem; background:#f8fafc; padding:.85rem;
    }

    #manageBookingView {
      background:radial-gradient(circle at 15% 0%, rgba(22,135,217,.055), transparent 24rem), #f7f9fc;
    }
    #manageBookingView .manage-booking-header { box-shadow:0 1px 0 rgba(23,32,51,.03); }
    #manageBookingView .manage-private-badge {
      display:inline-flex; min-height:30px; align-items:center; border:1px solid #e1e8ef; border-radius:999px;
      background:#f8fafc; padding:.25rem .65rem; color:#667085; font-size:.68rem; font-weight:800;
    }
    #manageBookingView .manage-appointment-card {
      border-color:#dce7f0; box-shadow:0 10px 28px rgba(23,32,51,.045);
    }
    #manageBookingView .manage-appointment-head {
      border-bottom:1px solid #e5edf4; background:linear-gradient(135deg,#eef8ff 0%,#fbfdff 72%);
    }
    #manageBookingView .manage-appointment-card dl > div { min-height:48px; align-items:center; }
    #manageBookingView #manageActionsCard,
    #manageBookingView #manageReschedulePanel {
      border-color:var(--gb-border-soft); box-shadow:0 7px 22px rgba(23,32,51,.035);
    }
    #manageBookingView .manage-cancel-trigger { color:#b42318; }
    #manageBookingView .manage-cancel-trigger:hover:not(:disabled) { border-color:#fecaca; background:#fff7f7; color:#991b1b; }
    #manageBookingView #manageCutoffNotice { border:1px solid #f3dfae; }
    #manageBookingView #manageCancelConfirm { box-shadow:none; }
    #manageBookingView #manageReschedulePanel { scroll-margin-top:5.5rem; }
    #manageBookingView .manage-slot-choice { min-height:48px; box-shadow:none; }
    #manageBookingView #manageRescheduleConfirm { border-color:#cfe4f3; background:#f3faff; }
    #manageBookingView .manage-cancelled-card,
    #manageBookingView #manageError {
      border-color:#e2e8f0; background:#fff; box-shadow:0 7px 22px rgba(23,32,51,.035);
    }

    #clientViewApp > header { box-shadow:0 1px 0 rgba(23,32,51,.03); }
    #clientViewApp main .card { border-color:#e3e9f1; box-shadow:0 8px 24px rgba(23,32,51,.04); }
    #clientViewApp .preview-panel > div:first-child h2 { text-wrap:balance; }
    #clientViewApp table { font-variant-numeric:tabular-nums; }

    @media (max-width:639px) {
      #pendingView .pending-review-card { padding:1.35rem!important; }
      #bookingSuccess .success-manage-actions { padding:.75rem; }
      #manageBookingView main { padding-top:1rem; }
      #manageBookingView .manage-private-badge { font-size:.62rem; }
      #manageBookingView .manage-appointment-card dl { padding:1rem; }
      #manageBookingView .manage-appointment-card dl > div { min-height:44px; }
      #clientViewApp > div:first-child > div { align-items:flex-start; }
      #clientViewApp > header > div { align-items:flex-start; }
      #clientViewApp > header > div > div:last-child { width:100%; flex-wrap:wrap; }
    }


    /* Stage 12 admin interface */
    #adminApp .admin-shell-header { box-shadow:0 1px 0 rgba(23,32,51,.03); }
    #adminApp .admin-stat-card { border-color:#e3e9f1; box-shadow:0 7px 22px rgba(23,32,51,.035); }
    #adminApp .admin-client-toolbar { background:linear-gradient(180deg,#fff 0%,#fcfdff 100%); }
    #adminApp .admin-business-row { outline:none; background:#fff; }
    #adminApp .admin-business-row:hover,
    #adminApp .admin-business-row:focus-visible { background:#f5faff; }
    #adminApp .admin-business-row:focus-visible { box-shadow:inset 3px 0 0 #1687d9; }
    #adminApp .admin-business-row.is-selected { background:#eef8ff; box-shadow:inset 3px 0 0 #1687d9; }
    #adminApp #adminBusinessDetail { border-color:#dde6ee; box-shadow:0 10px 28px rgba(23,32,51,.045); }
    #adminApp .admin-business-actions .btn { justify-content:center; }
    #adminApp .admin-technical-details { overflow:hidden; border:1px solid #e5eaf0; border-radius:.9rem; background:#fff; }
    #adminApp .admin-technical-details > summary { display:flex; min-height:44px; cursor:pointer; list-style:none; align-items:center; justify-content:space-between; gap:1rem; padding:.65rem .8rem; color:#667085; font-size:.72rem; font-weight:800; }
    #adminApp .admin-technical-details > summary::-webkit-details-marker { display:none; }
    #adminApp .admin-technical-details > summary span { transition:transform .16s ease; }
    #adminApp .admin-technical-details[open] > summary span { transform:rotate(180deg); }
    #adminApp #adminInspector { scroll-margin-top:5.5rem; border-color:#dde6ee; box-shadow:0 12px 34px rgba(23,32,51,.045); }
    #adminApp .admin-inspector-tab { min-height:40px; transition:background-color .15s ease,color .15s ease,box-shadow .15s ease; }
    #adminApp .admin-inspector-tab-active { background:#fff; color:#075b98; box-shadow:0 2px 8px rgba(23,32,51,.07); }
    #adminApp .admin-inspector-tab[data-inspector-tab="support"].admin-inspector-tab-active { color:#92400e; background:#fffbeb; }
    #adminApp #adminInspectorHealth { background:#fafcfe; }
    #adminApp .admin-pause-access { color:#b42318; }
    #adminApp .admin-pause-access:hover:not(:disabled) { border-color:#fecaca; background:#fff7f7; color:#991b1b; }
    #adminApp .admin-support-safety { box-shadow:inset 3px 0 0 #1687d9; }
    #adminApp table { font-variant-numeric:tabular-nums; }
    @media (max-width:767px) {
      #adminApp .admin-header-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }
      #adminApp .admin-header-actions .btn:first-child { grid-column:1 / -1; }
      #adminApp .admin-business-actions { grid-template-columns:1fr; }
      #adminApp .admin-business-actions .sm\:col-span-2 { grid-column:auto; }
    }


    /* Stage 13 cross-device pass */
    #dashboardView .dashboard-tab,
    #dashboardView .dashboard-tab > *,
    #dashboardView .booking-ops-grid > *,
    #dashboardView .payments-settings-grid > *,
    #adminApp main > *,
    #clientViewApp main > *,
    .landing-product-preview,
    .product-site-shell main > * {
      min-width: 0;
    }

    .landing-mobile-nav > div,
    .product-mobile-nav > div,
    #clientViewApp .preview-nav-shell {
      scrollbar-width: none;
    }
    .landing-mobile-nav > div::-webkit-scrollbar,
    .product-mobile-nav > div::-webkit-scrollbar,
    #clientViewApp .preview-nav-shell::-webkit-scrollbar {
      display: none;
    }

    @media (min-width:640px) and (max-width:1023px) {
      #dashboardView > header > div {
        align-items: flex-start;
      }
      #dashboardView .dashboard-header-actions {
        max-width: 68%;
        flex-wrap: wrap;
        justify-content: flex-end;
      }
      #dashboardView .dashboard-header-actions .btn {
        min-height: 42px;
      }
    }

    @media (max-width:639px) {
      #customerEditorModal,
      #customerMergeModal,
      #workspaceTaskModal,
      #growthPlannerModal,
      #growthImportModal {
        align-items: flex-end;
        padding: .5rem;
      }
      #customerEditorModal > .card,
      #customerMergeModal > .card,
      #workspaceTaskModal > .card,
      #growthPlannerModal > .card,
      #growthImportModal > .card {
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
        border-radius: 1rem;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
      }
      #customerEditorModal [id$="CloseBtn"],
      #customerMergeModal [id$="CloseBtn"],
      #workspaceTaskModal [id$="CloseBtn"],
      #growthPlannerModal [id$="CloseBtn"],
      #growthImportModal [id$="CloseBtn"] {
        min-width: 44px;
        min-height: 44px;
      }

      #blkStartPicker > div:first-child {
        grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
        width: 100%;
      }
      #blkStartHour,
      #blkStartMinute {
        width: 100%;
        min-width: 0;
        padding-left: .55rem !important;
        padding-right: 1.7rem !important;
      }

      #customersList {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
      }

      #calendarHoverCard {
        display: none !important;
      }

      #clientViewApp > div:first-child > div > a {
        width: 100%;
        justify-content: center;
      }
      #clientViewApp > header #previewPublicBookingLink,
      #clientViewApp > header .preview-settings-btn {
        flex: 1 1 auto;
        justify-content: center;
      }

      #adminToast {
        width: calc(100% - 2rem);
      }
      #adminApp #adminInspectorContent,
      #adminApp #adminInspectorHealth {
        min-width: 0;
      }

      #product-growth .growth-detail-row,
      #landingView #product-growth .growth-detail-row {
        font-size: .68rem;
      }
      #product-growth .growth-detail-row > span,
      #landingView #product-growth .growth-detail-row > span {
        min-width: 0;
        overflow-wrap: anywhere;
      }
    }

    @media (max-width:359px) {
      #landingView > header > div:first-child,
      .product-site-header > div:first-child {
        padding-left: .75rem;
        padding-right: .75rem;
        gap: .4rem;
      }
      #landingView > header img,
      .product-site-header img {
        max-width: 96px;
      }
      #landingView > header .btn,
      .product-site-header .btn {
        min-height: 38px;
        padding: .5rem .52rem;
        font-size: .68rem;
      }
      #dashboardView .area-tab {
        padding-left: .3rem;
        padding-right: .3rem;
        font-size: .68rem;
      }
      #manageBookingView .manage-private-badge {
        padding-left: .5rem;
        padding-right: .5rem;
      }
      #clientViewApp > header img,
      #adminApp > header img {
        max-width: 118px;
      }
    }

    @supports (padding: max(0px)) {
      @media (max-width:639px) {
        #manageBookingView > header > div,
        #clientViewApp > header > div,
        #clientViewApp > div:first-child > div,
        #adminApp > header > div {
          padding-left: max(1rem, env(safe-area-inset-left));
          padding-right: max(1rem, env(safe-area-inset-right));
        }
      }
    }


/* Book hero diary completion pass. */
.book-product-page .book-hero-diary{
  display:grid;
  gap:.65rem;
}
.book-product-page .book-hero-diary-row{
  display:grid;
  grid-template-columns:3.5rem minmax(0,1fr);
  gap:.8rem;
  align-items:center;
}
.book-product-page .book-hero-diary-row>time{
  color:#94a3b8;
  font-size:.68rem;
  font-weight:800;
  text-align:right;
}
.book-product-page .book-hero-diary .book-diary-item{
  min-width:0;
}
.book-product-page .book-diary-buffer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:46px;
  border:1px dashed #d7e0e7;
  border-radius:.75rem;
  background:#f8fafc;
  padding:.7rem .85rem;
  color:#718096;
}
.book-product-page .book-diary-buffer span{
  font-size:.78rem;
  font-weight:800;
}
.book-product-page .book-diary-buffer small{
  font-size:.68rem;
  font-weight:700;
  color:#9aa6b2;
}
.book-product-page .book-available-slot{
  position:relative;
  min-height:62px;
  overflow:hidden;
  border:1px dashed #a7e6c8;
  border-radius:.75rem;
  background:#ecfdf5;
  padding:.8rem .9rem;
  transition:border-color .35s ease,background-color .35s ease,box-shadow .35s ease;
}
.book-product-page .book-slot-available-state{
  transition:opacity .3s ease,transform .35s ease;
}
.book-product-page .book-slot-available-state p{
  margin:0;
  color:#047857;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.book-product-page .book-slot-available-state strong{
  display:block;
  margin-top:.2rem;
  color:#064e3b;
  font-size:.86rem;
}
.book-product-page .book-slot-confirmed-state{
  position:absolute;
  inset:.72rem .85rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .34s ease,transform .4s cubic-bezier(.2,.72,.25,1);
}
.book-product-page .book-slot-confirmed-state>div{
  min-width:0;
}
.book-product-page .book-slot-confirmed-state span{
  display:block;
  color:#0872bd;
  font-size:.61rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.book-product-page .book-slot-confirmed-state strong{
  display:block;
  margin-top:.12rem;
  color:#172033;
  font-size:.83rem;
}
.book-product-page .book-slot-confirmed-state small{
  display:block;
  margin-top:.1rem;
  color:#667085;
  font-size:.68rem;
}
.book-product-page .book-slot-confirmed-state b{
  flex:0 0 auto;
  color:#172033;
  font-size:.82rem;
}
.book-product-page .book-available-slot.slot-booked{
  border-style:solid;
  border-color:#b8dcf5;
  background:#eff8ff;
  box-shadow:0 10px 24px -20px rgba(8,114,189,.3);
}
.book-product-page .book-available-slot.slot-booked .book-slot-available-state{
  opacity:0;
  transform:translateY(-7px);
}
.book-product-page .book-available-slot.slot-booked .book-slot-confirmed-state{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion:no-preference){
  .book-product-page.book-motion-enabled .book-hero-preview .book-hero-diary-row .book-diary-item{
    opacity:0;
    transform:translateY(10px);
  }
  .book-hero-preview.book-preview-playing .book-hero-diary-row:nth-child(1) .book-diary-item{
    animation:book-slide-in .48s cubic-bezier(.2,.72,.25,1) .55s forwards;
  }
  .book-hero-preview.book-preview-playing .book-hero-diary-row:nth-child(2) .book-diary-item{
    animation:book-slide-in .48s cubic-bezier(.2,.72,.25,1) .66s forwards;
  }
  .book-hero-preview.book-preview-playing .book-hero-diary-row:nth-child(3) .book-diary-item{
    animation:book-rise .46s cubic-bezier(.2,.72,.25,1) .77s forwards;
  }
  .book-hero-preview.book-preview-playing .book-hero-diary-row:nth-child(4) .book-diary-item{
    animation:book-slot-arrive .56s cubic-bezier(.2,.8,.25,1) .9s forwards;
  }
  .book-hero-preview.book-preview-complete .book-hero-diary-row .book-diary-item{
    opacity:1;
    transform:none;
  }
}
@media(max-width:639px){
  .book-product-page .book-hero-diary-row{
    grid-template-columns:3rem minmax(0,1fr);
    gap:.6rem;
  }
  .book-product-page .book-hero-diary-row>time{
    font-size:.63rem;
  }
  .book-product-page .book-diary-buffer{
    align-items:flex-start;
    flex-direction:column;
    gap:.1rem;
  }
}

/* Hero diary rows now own their reveal timing. */
@media (prefers-reduced-motion:no-preference){
  .book-hero-preview.book-preview-playing .book-diary-items .book-diary-item:nth-child(1),
  .book-hero-preview.book-preview-playing .book-diary-items .book-diary-item:nth-child(2),
  .book-hero-preview.book-preview-playing .book-diary-items .book-diary-item:nth-child(3){
    animation:none;
  }
}
