/* crtl-frontend.css — single front-end stylesheet for the CreditRegistry
   Tenant-Landlord plugin. Consolidated 2026-07-12 from six page-specific
   files (cta-panel, homepage-cta, public-viewer, request-flow, share-form,
   test-mode) into one source of truth. One definition per shared component;
   page-specific rules are scoped overrides carrying ONLY their diffs.
   public-viewer's component rules (.crtl-btn*, .crtl-input, .crtl-spinner)
   are the shared base; request-flow's field/chip/freebox rules are the base
   for the form vocabulary; share-form's duplicates were removed and its
   genuine per-page differences re-scoped under .crtl-share-page.
   Conflicts resolved toward the newer blue/Metropolis design. */


/* ================================================================
   1. FONTS + PUBLIC-PAGE BASE + SHARED COMPONENTS + SHARED-REPORT VIEWER
   (source: public-viewer.css)
   ================================================================ */
/* Public shared-report page — landlord-facing */

/* Re-skin 2026-07-11: fonts + colors updated to Jinhui's design system
   (Metropolis type; palette in .claude-resources/updated-designs-07-05-2026).
   Spacing/geometry intentionally unchanged in this pass. Metropolis is
   self-hosted below because these standalone public pages are NOT rendered by
   Elementor (which is what serves the font elsewhere on the site). */

/* Self-hosted Metropolis — full family (Chris Simpson, v1.000, public domain).
   All 9 weights + italics are in ../fonts/. Declaring every weight is cheap: the
   browser only downloads a face when a CSS rule actually uses it. Weight ↔ style:
   100 Thin, 200 ExtraLight, 300 Light, 400 Regular, 500 Medium, 600 SemiBold,
   700 Bold, 800 ExtraBold, 900 Black. (Elementor also self-hosts its own 4-weight
   copy from uploads/2022/05 — intentional duplication for now; consolidate later.) */

/* upright */
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 100; font-display: swap; src: url("../fonts/Metropolis-Thin.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/Metropolis-ExtraLight.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/Metropolis-Light.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Metropolis-Regular.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Metropolis-Medium.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Metropolis-SemiBold.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Metropolis-Bold.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/Metropolis-ExtraBold.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/Metropolis-Black.otf") format("opentype"); }

/* italic */
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 100; font-display: swap; src: url("../fonts/Metropolis-ThinItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 200; font-display: swap; src: url("../fonts/Metropolis-ExtraLightItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/Metropolis-LightItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/Metropolis-RegularItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/Metropolis-MediumItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/Metropolis-SemiBoldItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/Metropolis-BoldItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/Metropolis-ExtraBoldItalic.otf") format("opentype"); }
@font-face { font-family: "Metropolis"; font-style: italic; font-weight: 900; font-display: swap; src: url("../fonts/Metropolis-BlackItalic.otf") format("opentype"); }

/* Content wrapper for the (now themed) public pages — request-report,
   my-requests, shared-report. They render inside the real site header/footer via
   get_header()/get_footer(); this replaces the old standalone body base. */
.crtl-public-page {
    /* The theme content area (.ast-container) is a flex row; grow to fill it so
       the cards can center across the full width (align-items:center on
       .crtl-public-content) instead of hugging the flex-start edge. */
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    background: #f9fafb;
    padding: 24px 20px 48px;
    font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000000;
    -webkit-font-smoothing: antialiased;
}

/* Legacy standalone scaffolding — retained harmlessly; the fake header/footer
   markup was removed when these pages became themed. */
.crtl-public-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.crtl-public-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.crtl-public-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.crtl-logo-mark {
    width: 24px;
    height: 24px;
    border: 2.5px solid #1946BA;
    border-radius: 6px 6px 6px 2px;
    transform: rotate(45deg);
}

.crtl-logo-text {
    font-weight: 700;
    font-size: 20px;
}

/* Content area */
.crtl-public-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the column. Matters for states whose max-width lands on this element
       (crtl-dead-end 420px, crtl-report-view 900px); no effect on the full-width
       form pages, whose cards center via align-items. */
    margin: 0 auto;
    padding: 34px 20px 30px;
}

/* Unlock challenge */
.crtl-challenge-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 2px solid #E2E9FE;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
}

.crtl-challenge-intro {
    font-size: 15px;
    color: #767676;
    margin: 0 0 20px;
    line-height: 1.4;
}

.crtl-challenge-intro strong {
    color: #000000;
}

.crtl-challenge-form {
    padding-top: 5px;
}

.crtl-challenge-form .crtl-field {
    text-align: left;
    margin-bottom: 16px;
}

.crtl-challenge-form .crtl-field label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.crtl-input {
    width: 100%;
    border: 2px solid #A6BCD7;
    border-radius: 9px;
    background: #EFF5FF;
    padding: 11px 12px;
    font-size: 14px;
    color: #000000;
    font-family: inherit;
}

.crtl-input:focus {
    outline: none;
    border-color: #1946BA;
    box-shadow: 0 0 0 2px rgba(25, 70, 186, 0.15);
}

.crtl-unlock-error {
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 12px;
    min-height: 18px;
}

/* Buttons */
.crtl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15.5px;
    border-radius: 11px;
    padding: 12px 20px;
    cursor: pointer;
    border: 2.5px solid;
    font-family: inherit;
    transition: opacity 0.15s;
}

.crtl-btn-primary {
    color: #ffffff;
    background: #1946BA;
    border-color: #1946BA;
    width: 100%;
}

.crtl-btn-primary:hover {
    opacity: 0.9;
}

.crtl-btn-ghost {
    color: #1946BA;
    background: transparent;
    border-color: #1946BA;
}

.crtl-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: crtl-spin 0.8s linear infinite;
}

@keyframes crtl-spin {
    to { transform: rotate(360deg); }
}

.crtl-btn.loading .crtl-spinner {
    display: inline-block;
}

.crtl-btn.loading {
    opacity: 0.85;
    pointer-events: none;
}

/* Shared-with banner (shown on report view) */
.crtl-shared-banner {
    width: 100%;
    max-width: 900px;
    background: #E2E9FE;
    border: 2px solid #1946BA;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.crtl-report-view {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

#crtl-report-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-height: 400px;
    padding: 20px;
}

.crtl-report-actions {
    text-align: center;
    margin-top: 20px;
}

.crtl-expiry-notice {
    text-align: center;
    font-size: 13px;
    color: #767676;
    margin-top: 12px;
}

/* Dead-end (expired/invalid/revoked) */
.crtl-dead-end {
    text-align: center;
    max-width: 420px;
}

.crtl-dead-end-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2.5px dashed #A6BCD7;
    background: #EFF5FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #767676;
}

.crtl-dead-end-icon svg {
    width: 44px;
    height: 44px;
}

.crtl-dead-end-headline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 10px;
}

.crtl-dead-end-message {
    font-size: 14.5px;
    color: #767676;
    margin: 0 auto 26px;
    max-width: 360px;
    line-height: 1.4;
}

/* Next steps boxes */
.crtl-next-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    width: 100%;
}

.crtl-next-box {
    border: 2px solid #E2E9FE;
    border-radius: 12px;
    padding: 14px 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: #EFF5FF;
    text-decoration: none;
    color: inherit;
}

.crtl-next-primary {
    border-color: #1946BA;
    background: #E2E9FE;
}

.crtl-next-role {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crtl-next-primary .crtl-next-role {
    color: #1946BA;
}

.crtl-next-secondary .crtl-next-role {
    color: #767676;
}

.crtl-next-role svg {
    width: 21px;
    height: 21px;
}

.crtl-next-body {
    flex: 1;
    min-width: 0;
}

.crtl-next-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.crtl-next-sub {
    font-size: 12.5px;
    color: #767676;
    line-height: 1.35;
}

.crtl-next-arrow {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 700;
    color: #1946BA;
}

/* Footer */
.crtl-public-footer {
    padding: 14px 16px 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.crtl-footer-text {
    font-size: 11.5px;
    color: #767676;
}

/* Mobile first adjustments */
@media (max-width: 480px) {
    .crtl-challenge-card {
        padding: 20px 16px;
    }

    .crtl-dead-end-headline {
        font-size: 24px;
    }
}


/* ================================================================
   2. REQUEST FLOW — request-report + my-requests
   (source: request-flow.css; unscoped .crtl-field/.crtl-chip/.crtl-freebox
   here are the shared form-vocabulary base)
   ================================================================ */
/* Landlord request flow — /request-report/ and /my-requests/ */
/* Layered on public-viewer.css (body.crtl-public-page, .crtl-input, .crtl-btn) */

/* ===== CSS version stamp =====
   Appends the live CSS version to the top "FREE" pill so every screenshot shows
   which stylesheet is actually loaded (a stale number = stale cache). Pure CSS,
   so it shows for ALL viewers — logged-out, incognito, real customer view.
   Harmless if left in; comment out when no longer wanted. Bump the content
   string to match CRTL_VERSION each iteration. */
body.crtl-test-version-css .crtl-free-pill::after {
    content: var(--crtl-ver, "v?");
    padding: 1px 7px;
    border-radius: 999px;
    background: #1946BA;
    color: #ffffff;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

/* Same stamp for the My Requests page (no FREE pill there); scoped to its card
   so request-report (which shares .crtl-request-title) isn't double-stamped. */
body.crtl-test-version-css #crtl-requests-card .crtl-request-title::after {
    content: var(--crtl-ver, "v?");
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #1946BA;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

/* Re-skin 2026-07-11: fonts + colors to Jinhui's blue design system.
   2026-07-11 (2): closer 1:1 with the mockup — top FREE pill, vertical
   free-info box, white light-bordered inputs, custom rounded-blue checkbox,
   borderless left-aligned WhatsApp opt-ins, solid divider. Mobile keeps the
   compact scale; desktop (>=768px) spreads out to match the mockup.
   This file only loads on request-report + my-requests, so the shared
   .crtl-freebox / .crtl-request-card class names are safe to restyle here
   without affecting invite-consent (which loads share-form.css instead). */

/* This is a full page, not a modal/panel — no card chrome. Just a width-
   constrained, centered form column that flows on the page background.
   (Applies to mobile too: dropping the card box reclaims the wasted padding.) */
.crtl-request-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.crtl-request-center {
    text-align: center;
}

/* Top status pill (design element above the H1) */
.crtl-free-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1946BA;
    background: #E2E9FE;
    border-radius: 999px;
    padding: 5px 11px;
    margin: 0 0 10px;
}

.crtl-free-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1946BA;
}

.crtl-request-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 6px;
}

.crtl-request-sub {
    font-size: 14px;
    color: #767676;
    margin: 0 0 18px;
    line-height: 1.4;
}

/* Step visibility */
#crtl-request-flow > .crtl-request-card { display: none; }
#crtl-request-flow[data-step="form"] #crtl-request-step-form { display: block; }
#crtl-request-flow[data-step="otp"] #crtl-request-step-otp { display: block; }
#crtl-request-flow[data-step="sent"] #crtl-request-step-sent { display: block; }

/* Free-for-you box — vertical: bold-blue heading over body text, borderless */
.crtl-freebox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: none;
    background: #E2E9FE;
    border-radius: 10px;
    padding: 13px 15px;
    /* margin-top carries the subtitle->freebox gap: the subtitle is a <p> and the
       theme's `p{margin-bottom:0!important}` eats any bottom margin we set there */
    margin: 18px 0;
}

.crtl-freebox-head {
    font-weight: 700;
    font-size: 13.5px;
    color: #1946BA;
    line-height: 1.3;
}

.crtl-freebox-text {
    font-size: 12.5px;
    line-height: 1.4;
    color: #000000;
}

/* Form fields */
.crtl-field {
    margin-bottom: 14px;
}

.crtl-field label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.crtl-req {
    color: #c0392b;
    font-weight: 700;
}

.crtl-optional {
    font-weight: 400;
    color: #48618A;
}

.crtl-field-help {
    font-size: 11.5px;
    font-weight: 500;
    color: #48618A;
    margin: 4px 0 0;
    line-height: 1.35;
}

/* White, light-bordered inputs per the mockup (scoped to the request card so
   the report-viewer's .crtl-input base is untouched) */
.crtl-request-card .crtl-input {
    background: #ffffff;
    border: 1.5px solid #CBD6EF;
    border-radius: 8px;
}

.crtl-request-card .crtl-input:focus {
    border-color: #1946BA;
    box-shadow: 0 0 0 3px rgba(25, 70, 186, 0.12);
}

/* WhatsApp opt-in — borderless, left-aligned checkbox + label, help below */
.crtl-check {
    margin: 4px 0 14px;
}

.crtl-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.crtl-check-row input[type="checkbox"] {
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid #A6BCD7;
    border-radius: 5px;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.crtl-check-row input[type="checkbox"]:checked {
    background-color: #1946BA;
    border-color: #1946BA;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 L10 17.5 L19 7'/%3E%3C/svg%3E");
}

.crtl-check-row input[type="checkbox"]:focus-visible {
    outline: 2px solid #1946BA;
    outline-offset: 2px;
}

.crtl-check-main {
    font-weight: 400;
    font-size: 13px;
    color: #000000;
}

.crtl-check-help {
    font-size: 11.5px;
    font-weight: 500;
    color: #48618A;
    margin: 6px 0 0;
    line-height: 1.35;
}

.crtl-form-divider {
    border: none;
    border-top: 1px solid #CBD6EF;
    opacity: 1; /* override Bootstrap's hr { opacity: .25 } which washed this out */
    margin: 18px 0;
}

.crtl-request-error {
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 12px;
    min-height: 18px;
}

/* OTP step */
.crtl-otp-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0 6px;
}

/* !important on the geometry: a global input rule (theme/Elementor) forces
   padding on all text inputs with priority our class selector can't beat —
   the padding squeezed the digit below the visible area (bottom-clipped). */
.crtl-otp-box {
    width: 40px;
    height: 50px !important;
    border: 1.5px solid #CBD6EF;
    border-radius: 9px;
    background: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    line-height: normal !important;
    color: #000000;
    font-family: inherit;
    padding: 0 !important;
}

.crtl-otp-box:focus {
    outline: none;
    border-color: #1946BA;
    box-shadow: 0 0 0 3px rgba(25, 70, 186, 0.12);
}

.crtl-otp-error {
    display: none;
    font-size: 13px;
    color: #c0392b;
    margin: 8px 0 0;
}

.crtl-limit-banner {
    display: none;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    border: 2px solid #c0392b;
    background: #fdecea;
    border-radius: 10px;
    padding: 11px 12px;
    margin: 14px 0 0;
    font-size: 13px;
    color: #c0392b;
    line-height: 1.35;
}

.crtl-limit-x {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2.5px solid #c0392b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

#crtl-request-step-otp[data-state="wrong"] .crtl-otp-box {
    border-color: #c0392b;
    background: #fdecea;
}

#crtl-request-step-otp[data-state="wrong"] .crtl-otp-error {
    display: block;
}

#crtl-request-step-otp[data-state="limit"] .crtl-otp-row,
#crtl-request-step-otp[data-state="limit"] .crtl-otp-links {
    opacity: 0.35;
    pointer-events: none;
}

#crtl-request-step-otp[data-state="limit"] .crtl-limit-banner {
    display: flex;
}

#crtl-request-step-otp[data-state="limit"] #crtl-otp-verify {
    opacity: 0.4;
    pointer-events: none;
}

#crtl-request-step-otp .crtl-btn {
    margin-top: 18px;
    width: 100%;
}

.crtl-otp-links {
    font-size: 13px;
    color: #767676;
    margin: 14px 0 0;
}

.crtl-otp-links a {
    color: #1946BA;
    font-weight: 700;
    text-decoration: underline;
}

/* Sent step */
.crtl-sent-badge {
    width: 52px;
    height: 52px;
    margin: 4px auto 14px;
    border: 3px solid #3BAF29;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #3BAF29;
    background: rgba(160, 236, 204, 0.35);
}

.crtl-expect {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 16px 0 20px;
    text-align: left;
}

.crtl-expect-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.crtl-expect-num {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #1946BA;
    background: #E2E9FE;
    color: #1946BA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.crtl-expect-text {
    font-size: 13px;
    line-height: 1.4;
    color: #000000;
    padding-top: 2px;
}

/* My requests list */
.crtl-request-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 12px 2px;
    border-bottom: 1px solid #E2E9FE;
}

.crtl-request-row:last-child {
    border-bottom: 0;
}

.crtl-request-row-phone {
    font-weight: 700;
    font-size: 14px;
}

.crtl-request-row-date {
    grid-column: 1;
    font-size: 11.5px;
    color: #767676;
}

.crtl-request-row-status {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
}

.crtl-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 999px;
    padding: 4px 10px 2px 10px;
    border: 1.5px solid #A6BCD7;
    color: #767676;
    white-space: nowrap;
}

.crtl-chip-delivered {
    color: #1946BA;
    border-color: #1946BA;
    background: #E2E9FE;
}

.crtl-chip-pending {
    border-style: dashed;
}

.crtl-chip-expired {
    color: #767676;
    border-style: dashed;
}

.crtl-requests-empty p {
    font-size: 14px;
    color: #767676;
    text-align: center;
    padding: 18px 0;
    margin: 0;
}

.crtl-requests-another {
    margin-top: 16px;
    width: 100%;
}

@media (max-width: 480px) {
    .crtl-otp-box {
        width: 36px;
        height: 46px !important;
    }
}

/* Desktop: match the mockup's scale — wider card, larger type, more spread out,
   flat pill button + soft card shadow. The mobile look (<=480 base) is kept as
   is; this only applies >=768px. Scoped to .crtl-request-card so the shared
   public-viewer base (report-viewer page) is unaffected. */
@media (min-width: 768px) {
    .crtl-request-card {
        max-width: 600px;
    }

    .crtl-free-pill {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .crtl-request-title {
        font-size: 28px;
        font-weight: 400;
        line-height: 1.4;
        margin: 0 0 12px;
    }

    .crtl-request-sub {
        font-size: 16px;
        line-height: 1.3;
        margin: 0 0 24px;
    }

    /* Scoped to .crtl-request-card so these desktop sizes don't bleed onto the
       share/invite pages (which share .crtl-freebox / .crtl-field class names). */
    .crtl-request-card .crtl-freebox {
        gap: 14px;
        padding: 18px 20px;
        border-radius: 14px;
        margin: 22px 0 24px;
    }

    .crtl-request-card .crtl-freebox-head {
        font-size: 18px;
    }

    .crtl-request-card .crtl-freebox-text {
        font-size: 16px;
        line-height: 1.4;
    }

    .crtl-request-card .crtl-field {
        margin-bottom: 16px;
    }

    .crtl-request-card .crtl-field label {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .crtl-request-card .crtl-field-help {
        font-size: 13px;
    }

    .crtl-request-card .crtl-input {
        padding: 7px 18px;
        font-size: 16px;
        border-radius: 8px;
    }

    .crtl-check {
        margin: 8px 0 20px;
    }

    .crtl-check-row {
        gap: 11px;
    }

    .crtl-check-row input[type="checkbox"] {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        background-size: 14px;
    }

    .crtl-check-main {
        font-size: 16px;
    }

    .crtl-check-help {
        font-size: 13px;
        margin-top: 7px;
    }

    .crtl-form-divider {
        margin: 26px 0;
    }

    .crtl-request-card .crtl-btn {
        font-size: 18px;
        padding: 18px 24px;
        border-radius: 999px;
    }

    .crtl-request-card .crtl-btn-primary {
        box-shadow: none;
    }

    .crtl-request-card .crtl-btn-ghost {
        box-shadow: none;
    }

    /* OTP + sent steps scale up too */
    .crtl-otp-row {
        gap: 12px;
        margin: 24px 0 8px;
    }

    .crtl-otp-box {
        width: 54px;
        height: 64px !important;
        font-size: 28px;
        border-radius: 12px;
    }

    .crtl-sent-badge {
        width: 64px;
        height: 64px;
        font-size: 32px;
        margin: 4px auto 18px;
    }

    .crtl-request-card .crtl-expect {
        gap: 14px;
        margin: 20px 0 26px;
    }

    .crtl-request-card .crtl-expect-num {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .crtl-request-card .crtl-expect-text {
        font-size: 14px;
    }

    .crtl-otp-links {
        font-size: 14px;
    }
}


/* ================================================================
   3. SHARE / INVITE / PURCHASE  (.crtl-share-page)
   (source: share-form.css; duplicate components removed, per-page
   differences re-scoped under .crtl-share-page)
   ================================================================ */
/* Share Report page — tenant-facing form + history */
/* Re-skin 2026-07-12: orange/brown scheme -> Jinhui's blue + Metropolis system.
   Colors + fonts only; geometry preserved. Error red kept; success/viewed use
   the palette green; destructive queue actions kept red. This page is themed
   (get_header) so Metropolis is available via the site; set explicitly for safety. */

/* ===== CSS version stamp (harmless; comment out before shipping) ===== */
body.crtl-test-version-css .crtl-page-title::after {
    content: var(--crtl-ver, "v?");
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #1946BA;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.crtl-share-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 26px 30px 60px;
    font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000000;
}

.crtl-share-page-head {
    margin-bottom: 18px;
}

.crtl-page-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 4px;
}

.crtl-page-subtitle {
    font-size: 14px;
    color: #767676;
    margin: 0;
}

/* Active window banner */
.crtl-active-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border: 2px solid #1946BA;
    background: #E2E9FE;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 22px;
}

.crtl-active-banner-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 2.5px solid #1946BA;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: #1946BA;
}

.crtl-active-banner-text {
    flex: 1;
    min-width: 220px;
    font-size: 14px;
}

.crtl-active-banner-text strong {
    font-weight: 700;
}

.crtl-active-banner-pill {
    font-weight: 700;
    font-size: 12px;
    color: #1946BA;
    border: 2px solid #1946BA;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

.crtl-notice {
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 16px;
    background: #F2F2F2;
    font-size: 14px;
}

/* Grid layout */
.crtl-share-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 820px) {
    .crtl-share-grid {
        grid-template-columns: 1fr;
    }
}

/* Card base */
.crtl-card {
    border: 2px solid #E2E9FE;
    border-radius: 14px;
    background: #ffffff;
    padding: 20px 20px 22px;
}

.crtl-card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 2px;
}

.crtl-card-sub {
    font-size: 13px;
    color: #767676;
    margin: 0 0 16px;
}

/* Form fields — base .crtl-field / label / .crtl-input / .crtl-field-help live
   in the shared + request-flow sections. The share page keeps BOLD labels and a
   plain-white input (the shared base label is medium-weight and the base input
   is the viewer's pale-blue), so only those deltas are scoped here. */
.crtl-required {
    color: #c0392b;
}

.crtl-share-page .crtl-field label {
    font-weight: 700;
    font-size: 13.5px;
    line-height: normal;
    margin-bottom: 6px;
}

.crtl-share-page .crtl-field-help {
    font-weight: 400;
    font-size: 12px;
}

.crtl-share-page .crtl-input {
    background: #ffffff;
    border-color: #CBD6EF;
}

.crtl-field-error {
    display: none;
    font-size: 12.5px;
    color: #c0392b;
    margin: 6px 0 0;
}

.crtl-field-error.visible {
    display: block;
}

/* Checkbox row */
.crtl-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 2px dashed #A6BCD7;
    border-radius: 10px;
    padding: 12px 13px;
    margin-bottom: 16px;
}

.crtl-checkbox-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #1946BA;
}

.crtl-checkbox-label {
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

.crtl-checkbox-help {
    font-size: 12px;
    color: #48618A;
    margin: 3px 0 0;
}

.crtl-channel-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
    border: 1.5px solid #A6BCD7;
    border-radius: 6px;
    padding: 2px 6px 0px 6px;
    color: #767676;
}

/* Buttons — base .crtl-btn / -primary / -ghost and the .crtl-spinner +
   crtl-spin keyframes live in the shared section (public-viewer). Only the
   share-page-specific delta (top margin above the submit button) remains. */
.crtl-share-page .crtl-btn-primary {
    margin-top: 6px;
}

/* Progress bar */
.crtl-progress {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    color: #767676;
}

.crtl-progress-bar {
    flex: 1;
    height: 7px;
    border-radius: 5px;
    background: #E2E9FE;
    overflow: hidden;
    position: relative;
}

.crtl-progress-bar::after {
    content: "";
    position: absolute;
    left: -40%;
    top: 0;
    bottom: 0;
    width: 40%;
    background: #1946BA;
    border-radius: 5px;
    animation: crtl-load 1.1s ease-in-out infinite;
}

@keyframes crtl-load {
    to { left: 100%; }
}

.crtl-send-note {
    font-size: 12px;
    color: #767676;
    text-align: center;
    margin: 10px 0 0;
}

/* Error banner */
.crtl-error-banner {
    display: none;
    align-items: center;
    gap: 10px;
    border: 2px solid #c0392b;
    background: #fdecea;
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #c0392b;
}

.crtl-error-banner.visible {
    display: flex;
}

.crtl-error-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 2.5px solid #c0392b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Success state */
.crtl-success {
    display: none;
    text-align: center;
    padding: 8px 4px 4px;
}

.crtl-success-badge {
    width: 56px;
    height: 56px;
    margin: 4px auto 12px;
    border: 3px solid #3BAF29;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #3BAF29;
    background: rgba(160, 236, 204, 0.35);
}

.crtl-success-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
}

.crtl-success-message {
    font-size: 14px;
    color: #767676;
    margin: 0 auto 16px;
    max-width: 320px;
}

/* State visibility */
[data-state="loading"] .crtl-spinner { display: inline-block; }
[data-state="loading"] .crtl-progress { display: flex; }
[data-state="loading"] .crtl-btn-primary { opacity: 0.85; pointer-events: none; }
[data-state="success"] .crtl-form-body { display: none; }
[data-state="success"] .crtl-success { display: block; }
[data-state="error"] .crtl-error-banner { display: flex; }

/* History card */
.crtl-history-empty {
    text-align: center;
    padding: 26px 12px 22px;
}

.crtl-history-empty-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border: 2.5px dashed #A6BCD7;
    border-radius: 10px;
}

.crtl-history-empty p {
    font-size: 13.5px;
    color: #767676;
    margin: 0;
}

.crtl-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px;
    border-bottom: 1.5px dashed #A6BCD7;
}

.crtl-history-row:last-child {
    border-bottom: 0;
}

.crtl-history-row-highlight {
    border-color: #D97706;
}

.crtl-history-name {
    font-weight: 700;
    font-size: 14px;
}

.crtl-history-phone {
    font-size: 12.5px;
    color: #767676;
}

.crtl-history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.crtl-history-tags {
    display: flex;
    gap: 6px;
    align-items: center;
}

.crtl-history-date {
    font-size: 11.5px;
    color: #767676;
}

/* .crtl-chip base + .crtl-chip-expired live in the request-flow section. */
.crtl-chip-wa {
    color: #1946BA;
    border-color: #1946BA;
}

.crtl-chip-active {
    color: #1946BA;
    border-color: #1946BA;
    background: #E2E9FE;
}

.crtl-history-footer {
    margin-top: 16px;
}

/* Invite consent view */
/* Freebox here is the HORIZONTAL status callout (Active / Purchase needed). The
   base .crtl-freebox (request-flow section) is the VERTICAL "free for you" box —
   same class name, different component — so the horizontal layout is a scoped
   override. .crtl-freebox-text base also lives in the request-flow section.
   NOTE: worth renaming one of these two components in a future pass. */
.crtl-share-page .crtl-freebox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 16px;
}

.crtl-freebox-tag {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 12px;
    color: #1946BA;
    background: #ffffff;
    border: 1.5px solid #1946BA;
    border-radius: 999px;
    padding: 2px 10px;
}

.crtl-freebox-text strong {
    color: #1946BA;
}

.crtl-invite-detail {
    border: 2px solid #A6BCD7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.crtl-invite-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.crtl-invite-row + .crtl-invite-row {
    border-top: 1px dashed #A6BCD7;
}

.crtl-invite-label {
    color: #767676;
    font-weight: 400;
}

.crtl-invite-value {
    font-weight: 700;
    text-align: right;
}

.crtl-invite-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.crtl-invite-actions .crtl-btn-ghost {
    width: 100%;
    text-align: center;
}

.crtl-invite-decline-form {
    width: 100%;
}

/* Pre-purchase explainer */
.crtl-purchase-explainer {
    max-width: 520px;
    margin: 0 auto;
}

.crtl-purchase-explainer .crtl-card-title {
    margin-bottom: 16px;
}

/* .crtl-expect / -row / -num base live in the request-flow section; only the
   purchase-explainer's gap/margin/text-size deltas remain. */
.crtl-purchase-explainer .crtl-expect {
    gap: 12px;
    margin: 0 0 20px;
}

.crtl-purchase-explainer .crtl-expect-text {
    font-size: 13.5px;
}

.crtl-purchase-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #EFF5FF;
    border: 2px solid #CBD6EF;
    border-radius: 10px;
}

.crtl-purchase-amount {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.crtl-purchase-term {
    font-size: 14px;
    color: #767676;
}

/* .crtl-btn-primary is full-width by default (shared base) — no override needed. */

.crtl-purchase-exit {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #767676;
    text-decoration: none;
}

.crtl-purchase-exit:hover {
    color: #1946BA;
}

.crtl-purchase-unavailable {
    font-size: 14px;
    color: #767676;
    text-align: center;
    padding: 12px;
    background: #EFF5FF;
    border-radius: 8px;
}

/* Share queue */
.crtl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crtl-queue-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px;
    border-bottom: 1.5px dashed #A6BCD7;
}

.crtl-queue-row:last-child {
    border-bottom: 0;
}

.crtl-queue-name {
    font-weight: 700;
    font-size: 14px;
}

.crtl-queue-phone {
    font-size: 12.5px;
    color: #767676;
}

.crtl-queue-date {
    font-size: 11.5px;
    color: #767676;
    margin-top: 2px;
}

.crtl-queue-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.crtl-queue-btn {
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    border: 1.5px solid;
    transition: opacity 0.15s;
}

.crtl-queue-btn:hover {
    opacity: 0.85;
}

.crtl-queue-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.crtl-queue-approve {
    color: #fff;
    background: #1946BA;
    border-color: #1946BA;
}

.crtl-queue-deny {
    color: #767676;
    background: transparent;
    border-color: #A6BCD7;
}

.crtl-queue-delete {
    color: #c0392b;
    background: transparent;
    border-color: #c0392b;
}

.crtl-queue-resend {
    color: #767676;
    background: transparent;
    border-color: #A6BCD7;
}

.crtl-history-note {
    color: #c0392b;
    font-size: 12px;
}

.crtl-queue-denied-label {
    position: absolute;
    top: 6px;
    right: 2px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c0392b;
}

.crtl-queue-row[data-status="denied"] .crtl-queue-name {
    color: #767676;
}

/* Viewed chip */
.crtl-chip-viewed {
    color: #3BAF29;
    border-color: #3BAF29;
    background: rgba(160, 236, 204, 0.35);
}

.crtl-chip-revoked {
    color: #c0392b;
    border-color: #c0392b;
    background: #fdecea;
}

/* History row with actions */
.crtl-history-info {
    min-width: 0;
}

.crtl-history-actions {
    margin-top: 6px;
}

.crtl-history-row[data-status="revoked"] .crtl-history-name {
    color: #767676;
}


/* ================================================================
   4. HOMEPAGE CORNER CTA  (.crtl-home-cta*)
   (source: homepage-cta.css)
   ================================================================ */
/* Homepage rental-reports CTA panel — corner pop-up */

/* Re-skin 2026-07-05: fonts + colors updated to Jinhui's design system
   (Metropolis type; palette in .claude-resources/updated-designs-07-05-2026).
   Spacing/geometry intentionally unchanged in this pass. Font family loaded
   site-wide via Elementor custom fonts. */

/* Desktop: upper-left over the hero background, below the site header
   (exact top offset measured in homepage-cta.js) */
.crtl-home-cta {
    position: absolute;
    left: 16px;
    top: 120px;
    z-index: 99990;
    width: 304px;
    background: #ffffff;
    border: 2.5px solid #E2E9FE; /* neutralized toward Jinhui's borderless white card (was #863900) */
    border-radius: 14px;
    padding: 16px 16px 14px;
    font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.35s ease;
}

.crtl-home-cta-offscreen {
    transform: translateX(calc(-100% - 32px));
    pointer-events: none;
}

.crtl-home-cta-topbar {
    position: absolute;
    left: -2.5px;
    right: -2.5px;
    top: -2.5px;
    height: 8px;
    background: transparent; /* top accent hidden via color — new design has none (was #b25409) */
    border-radius: 12px 12px 0 0;
}

.crtl-home-cta-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: 2px solid transparent; /* new design close is a bare × (was #97877a circle) */
    border-radius: 50%;
    background: transparent;
    color: #767676;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.crtl-home-cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1946BA;
    background: #E2E9FE;
    border: 1.5px solid #E2E9FE; /* borderless pill — border matches bg (was #b25409) */
    border-radius: 999px;
    padding: 3px 10px;
    margin: 4px 0 8px;
}

/* Dot and label are real elements (were a ::before + bare text) so each can be
   tweaked independently in the browser. */
.crtl-home-cta-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1946BA;
}

.crtl-home-cta-tag-text {
    position: relative;
    top: 2px;
}

.crtl-home-cta-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 12px;
    color: #000000;
}

/* CSS version stamp (dev/QA) — the title is present in BOTH the main CTA and the
   logged-out auth interstitial, so this one rule stamps both states. */
body.crtl-test-version-css .crtl-home-cta-title::after {
    content: var(--crtl-ver, "v?");
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #1946BA;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.crtl-home-cta-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crtl-home-cta-opt {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 2px solid #E2E9FE; /* borderless option card — border matches bg (was #97877a) */
    border-radius: 11px;
    padding: 11px 12px;
    background: #E2E9FE;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.crtl-home-cta-opt:hover {
    border-color: #1946BA;
    text-decoration: none;
    color: inherit;
}

.crtl-home-cta-oicon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid #ffffff; /* white icon disc on purple card (was #863900) */
    color: #1946BA;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.crtl-home-cta-oicon svg {
    width: 19px;
    height: 19px;
}

.crtl-home-cta-obody {
    flex: 1;
    min-width: 0;
}

.crtl-home-cta-otitle {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.crtl-home-cta-osub {
    display: block;
    font-weight: 400;
    font-size: 11.5px;
    color: #48618A;
    line-height: 1.3;
}

.crtl-home-cta-oarrow {
    flex: 0 0 auto;
    color: #1946BA;
    font-size: 18px;
    font-weight: 700;
}

.crtl-home-cta-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    font-size: 10.5px;
    color: #767676;
    justify-content: center;
}

/* Reopen tab shown after dismissal — same spot as the panel */
.crtl-home-cta-reopen {
    position: absolute;
    left: 16px;
    top: 120px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    background: #1946BA;
    color: #ffffff;
    border: 2px solid #1946BA;
    border-radius: 999px;
    padding: 9px 16px;
    font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    transition: transform 0.35s ease;
}

/* Narrow desktop / tablet: shrink panel to avoid crowding the hero headline */
@media (min-width: 641px) and (max-width: 1100px) {
    .crtl-home-cta {
        width: 250px;
        padding: 14px 14px 12px;
    }

    .crtl-home-cta-title {
        font-size: 17px;
    }

    .crtl-home-cta-opt {
        padding: 9px 10px;
        gap: 8px;
    }

    .crtl-home-cta-oicon {
        width: 30px;
        height: 30px;
    }

    .crtl-home-cta-oicon svg {
        width: 16px;
        height: 16px;
    }

    .crtl-home-cta-otitle {
        font-size: 12.5px;
    }

    .crtl-home-cta-osub {
        font-size: 10.5px;
    }
}

/* Auth interstitial — shown when logged-out tenant clicks share */
.crtl-home-cta-auth-sub {
    font-size: 13px;
    color: #48618A;
    line-height: 1.4;
    margin: 6px 0 14px;
}

.crtl-home-cta-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 7px;
}

.crtl-home-cta-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 9px;
    padding: 10px 16px;
    cursor: pointer;
    border: 2.5px solid;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.15s;
}

.crtl-home-cta-auth-btn.crtl-btn-primary {
    color: #ffffff;
    background: #1946BA;
    border-color: #1946BA;
}

.crtl-home-cta-auth-btn.crtl-btn-primary:hover {
    opacity: 0.9;
}

.crtl-home-cta-auth-btn.crtl-btn-ghost {
    color: #1946BA;
    background: transparent;
    border-color: #1946BA;
}

.crtl-home-cta-auth-btn.crtl-btn-ghost:hover {
    opacity: 0.85;
}

.crtl-home-cta-auth-back {
    display: inline-block;
    margin-top: 12px;
    font-size: 12.5px;
    color: #48618A;
    text-decoration: none;
    font-weight: 700;
}

.crtl-home-cta-auth-back:hover {
    color: #1946BA;
}

/* Mobile: in-flow below the hero section */
@media (max-width: 640px) {
    .crtl-home-cta {
        position: static;
        width: auto;
        margin: 20px 16px;
    }

    .crtl-home-cta-reopen {
        display: none !important;
    }

    .crtl-home-cta-close {
        display: none;
    }

    /* Hide "Trusted By" text and logo carousel on mobile */
    .elementor-element-1eaccfb,
    .elementor-element-d3d6ef4 {
        display: none !important;
    }
}


/* ================================================================
   5. REPORT CTA PANEL  (.crtl-cta*, /report/)
   (source: cta-panel.css)
   ================================================================ */
/* CTA panel — injected on the /report/ page */
/* Re-skin 2026-07-12: orange/brown -> blue + Metropolis. Colors/fonts only. */

/* ===== CSS version stamp (harmless; comment out before shipping) ===== */
body.crtl-test-version-css .crtl-cta-heading::after {
    content: var(--crtl-ver, "v?");
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #1946BA;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.crtl-cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2.5px solid #E2E9FE;
    border-radius: 16px;
    background: #ffffff;
    padding: 18px 20px;
    margin: 16px 0;
    flex-wrap: wrap;
    font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000000;
}

/* Left accent bar retired — not part of Jinhui's new design (2026-07-12). */
.crtl-cta-accent-edge {
    display: none;
}

.crtl-cta-icon {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    color: #1946BA;
}

.crtl-cta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.crtl-cta-body {
    flex: 1;
    min-width: 200px;
}

.crtl-cta-heading {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 4px;
}

.crtl-cta-sub {
    font-size: 13.5px;
    color: #767676;
    margin: 0;
}

.crtl-cta-price {
    font-weight: 700;
    font-size: 14px;
    margin: 7px 0 0;
}

.crtl-cta-amount {
    color: #1946BA;
}

.crtl-cta-pill {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    color: #1946BA;
    border: 2px solid #1946BA;
    border-radius: 999px;
    padding: 3px 10px;
    margin: 6px 0;
    white-space: nowrap;
}

/* Active CTA: sub text (wraps up to two lines) with the days pill to its
   right; the Send Report Link button then sits alone on the next line, left. */
.crtl-cta-subrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crtl-cta-subrow .crtl-cta-sub {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.crtl-cta-subrow .crtl-cta-pill {
    flex-shrink: 0;
    margin: 0;
}

.crtl-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    background: #1946BA;
    border: 2.5px solid #1946BA;
    border-radius: 12px;
    padding: 10px 18px;
    margin-top: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.crtl-cta-button:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}


/* ================================================================
   6. DEV — TEST-MODE TOOLBAR  (.crtl-test*)
   (source: test-mode.css)
   ================================================================ */
.crtl-test-toolbar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    background: #1a1a1a;
    color: #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    width: 400px;
    max-width: calc(100vw - 40px);
    overflow: hidden;
}

.crtl-test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #333;
    cursor: default;
}

.crtl-test-badge {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
    color: #fbbf24;
}

.crtl-test-collapse {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.crtl-test-collapse:hover { color: #fff; }

.crtl-test-body {
    padding: 10px 14px 14px;
}

.crtl-test-group {
    margin-bottom: 12px;
}

.crtl-test-group:last-child {
    margin-bottom: 0;
}

.crtl-test-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin-bottom: 6px;
}

.crtl-test-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.crtl-test-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all .12s;
    text-decoration: none;
    line-height: 1.3;
    font-family: inherit;
    white-space: nowrap;
}
.crtl-test-btn:hover {
    background: #363636;
    border-color: #666;
    color: #fff;
}
.crtl-test-btn.active {
    background: #12244a;
    border-color: #1946BA;
    color: #93b4ff;
}

.crtl-test-nav {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.crtl-test-nav-btn {
    text-align: center;
}
