:root {
    --re-navy: #082846;
    --re-navy-2: #0e365e;
    --re-gold: #c79b3b;
    --re-ivory: #f8f4ea;
    --re-ink: #172033;
    --re-muted: #667085;
    --hr-orange: #b68a35;
    --hr-gold: #b68a35;
    --hr-gold-soft: #f7f0df;
    --hr-black: #111318;
    --hr-bg: #f6f7f9;
    --hr-text: #171a21;
    --hr-muted: #6b7280;
    --hr-line: #e5e7eb;
}

/* Final public/admin layout guards */
.admin-shell-body,
.admin-shell-body .admin-main,
.admin-shell-body .admin-page {
    overflow-x: hidden !important;
}

.admin-shell-body .type-filter-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
}

.public-chatbot-first .re-chat-panel {
    width: min(430px, calc(100vw - 28px)) !important;
    height: min(680px, calc(100vh - 112px)) !important;
}

@media (max-width: 860px) {
    .public-chatbot-first .re-chat-panel {
        width: calc(100vw - 20px) !important;
        height: min(650px, calc(100vh - 92px)) !important;
    }
}

/* Minimal final override for property share fields */
.admin-shell-body .share-field-box {
    padding: 16px 18px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.admin-shell-body .share-field-box h2 {
    margin: 0 0 5px !important;
    font-size: 16px !important;
    font-weight: 850 !important;
}

.admin-shell-body .share-field-box .muted {
    margin: 0 0 12px !important;
    font-size: 12.5px !important;
    color: #6b7280 !important;
}

.admin-shell-body .share-field-box .checkbox-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.admin-shell-body .share-field-box .checkbox-grid label {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
    transform: none !important;
}

.admin-shell-body .share-field-box .checkbox-grid label:hover {
    border-color: #c7a24b !important;
    box-shadow: none !important;
    transform: none !important;
}

.admin-shell-body .share-field-box .checkbox-grid input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    border-radius: 5px !important;
    border: 1px solid #c7cbd1 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.admin-shell-body .share-field-box .checkbox-grid input[type="checkbox"]::before {
    width: 8px !important;
    height: 5px !important;
    border-left: 2px solid #111318 !important;
    border-bottom: 2px solid #111318 !important;
}

.admin-shell-body .share-field-box .checkbox-grid input[type="checkbox"]:checked {
    background: #d6b15b !important;
    border-color: #d6b15b !important;
    box-shadow: none !important;
}

.admin-shell-body .share-field-box .checkbox-grid label:has(input[type="checkbox"]:checked) {
    border-color: #d6b15b !important;
    background: #fffaf0 !important;
}

/* Elegant property form share-field selector */
.admin-shell-body .share-field-box {
    padding: 22px;
    border: 1px solid rgba(182, 138, 53, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.84));
    box-shadow: 0 14px 34px rgba(17, 19, 24, 0.05);
}

.admin-shell-body .share-field-box h2 {
    margin: 0 0 8px;
    color: #111318;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
}

.admin-shell-body .share-field-box .muted {
    max-width: 860px;
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.admin-shell-body .share-field-box .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.admin-shell-body .share-field-box .checkbox-grid label {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 11px 13px;
    border: 1px solid rgba(17, 19, 24, 0.1);
    border-radius: 14px;
    background: #fff;
    color: #232832;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(17, 19, 24, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.admin-shell-body .share-field-box .checkbox-grid label:hover {
    transform: translateY(-1px);
    border-color: rgba(182, 138, 53, 0.45);
    box-shadow: 0 12px 24px rgba(17, 19, 24, 0.07);
}

.admin-shell-body .share-field-box .checkbox-grid input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 1.5px solid rgba(17, 19, 24, 0.28);
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-shell-body .share-field-box .checkbox-grid input[type="checkbox"]::before {
    content: "";
    width: 13px;
    height: 8px;
    border-left: 3px solid #111318;
    border-bottom: 3px solid #111318;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 0.16s ease;
}

.admin-shell-body .share-field-box .checkbox-grid input[type="checkbox"]:checked {
    border-color: #d6b15b;
    background: #d6b15b;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.36);
}

.admin-shell-body .share-field-box .checkbox-grid input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.admin-shell-body .share-field-box .checkbox-grid label:has(input[type="checkbox"]:checked) {
    border-color: rgba(182, 138, 53, 0.48);
    background: #fffaf0;
}

@media (max-width: 720px) {
    .admin-shell-body .share-field-box {
        padding: 16px;
    }

    .admin-shell-body .share-field-box .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Latest chatbot flow/UI overrides */
.public-chatbot-first .re-chat-panel {
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
}

.public-chatbot-first .re-msg {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.public-chatbot-first .re-chat-options button,
.public-chatbot-first .re-chat-options button.primary {
    background: #111318 !important;
    border-color: #111318 !important;
    color: #fff !important;
    font-size: 12px !important;
}

.public-chatbot-first .re-chat-form input {
    color: #111318 !important;
    font-size: 14px !important;
}

.public-chatbot-first .re-chat-form button {
    background: #111318 !important;
    color: #fff !important;
}

@media (max-width: 860px) {
    .public-chatbot-first .re-chat-shell {
        inset: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        pointer-events: none;
    }

    .public-chatbot-first .re-chat-fab {
        position: fixed !important;
        right: 14px !important;
        bottom: 14px !important;
        pointer-events: auto;
    }

    .public-chatbot-first .re-chat-panel {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        pointer-events: auto;
    }

    .public-chatbot-first .re-chat-options button,
    .public-chatbot-first .re-chat-options button.primary {
        flex: 1 1 calc(50% - 8px);
        min-height: 42px;
    }
}

/* Chatbot-first visual polish */
.public-chatbot-first {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 236, 0.88)),
        repeating-linear-gradient(90deg, rgba(17, 19, 24, 0.025) 0 1px, transparent 1px 92px);
}

.public-chatbot-first .chatbot-landing {
    padding-top: clamp(42px, 8vw, 92px);
}

.public-chatbot-first .chatbot-hero-card {
    grid-template-columns: minmax(0, 0.98fr) 300px;
    min-height: 520px;
    border-color: rgba(17, 19, 24, 0.08);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 245, 0.9)),
        radial-gradient(circle at 85% 22%, rgba(198, 156, 70, 0.16), transparent 32%);
}

.public-chatbot-first .chatbot-hero-copy h1 {
    max-width: 780px;
    color: #15171c;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.98;
    font-weight: 950;
}

.public-chatbot-first .chatbot-hero-copy p {
    max-width: 620px;
    color: #4e5564;
    font-size: 16px;
}

.public-chatbot-first .eyebrow {
    color: #a77b23;
}

.public-chatbot-first .chatbot-status-card {
    align-self: center;
    min-height: 310px;
    background:
        linear-gradient(145deg, rgba(17, 19, 24, 0.98), rgba(31, 34, 42, 0.98)),
        radial-gradient(circle at 20% 20%, rgba(214, 177, 91, 0.18), transparent 40%);
}

.public-chatbot-first .chatbot-status-card strong {
    font-size: 28px;
    line-height: 1.05;
}

.public-chatbot-first .chatbot-primary-cta,
.public-chatbot-first .chatbot-hero-actions a {
    color: #111318;
    background: #d6b15b;
    border-color: #d6b15b;
}

.public-chatbot-first .chatbot-hero-actions a:not(.chatbot-primary-cta) {
    background: #fff;
    border-color: rgba(17, 19, 24, 0.16);
}

.quirky-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.quirky-proof-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(17, 19, 24, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #4d5564;
    font-size: 12px;
    font-weight: 850;
}

.home-vibe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.home-vibe-grid article {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
}

.home-vibe-grid article::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(214, 177, 91, 0.18);
}

.home-vibe-grid strong {
    color: #b68a35;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.home-vibe-grid h2 {
    position: relative;
    margin: 18px 0 10px;
    color: #111318;
    font-size: 21px;
    line-height: 1.16;
    letter-spacing: 0;
}

.home-vibe-grid p {
    position: relative;
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.62;
}

.contact-hero-funny {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    gap: 22px;
    align-items: start;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.86)),
        radial-gradient(circle at 10% 12%, rgba(214, 177, 91, 0.14), transparent 28%);
    box-shadow: 0 26px 70px rgba(17, 19, 24, 0.08);
}

.contact-hero-funny .contact-copy h1 {
    max-width: 720px;
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.contact-detail-grid a {
    display: grid;
    gap: 7px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(17, 19, 24, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #111318;
    text-decoration: none;
}

.contact-detail-grid small {
    color: #a77b23;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-detail-grid strong {
    color: #242833;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.contact-form-kicker {
    margin: 0 0 4px;
    color: #111318;
    font-size: 15px;
    font-weight: 900;
}

.contact-map-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 26px;
    background: #111318;
    color: #fff;
    box-shadow: 0 20px 56px rgba(17, 19, 24, 0.12);
}

.contact-map-panel h2 {
    margin: 10px 0 10px;
    color: #fff;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: 0;
}

.contact-map-panel p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.6;
}

.contact-map-panel iframe {
    width: 100%;
    min-height: 330px;
    border: 0;
    border-radius: 20px;
    background: #f3f0e8;
}

.svg-build-lab {
    display: grid;
    gap: 18px;
}

.svg-step-list {
    display: grid;
    gap: 14px;
}

.svg-step-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.svg-step-card span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--hr-gold-soft);
    color: var(--hr-black);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.svg-step-card h3 {
    margin: 12px 0 8px;
    color: var(--hr-black);
    font-size: 20px;
    line-height: 1.2;
}

.svg-step-card p {
    margin: 0 0 12px;
    color: var(--hr-muted);
    font-size: 13px;
    line-height: 1.62;
}

.svg-step-card code {
    display: block;
    overflow: auto;
    padding: 10px 12px;
    border-radius: 12px;
    background: #111318;
    color: #f7f0df;
    font-size: 12px;
}

.svg-step-card svg {
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #202522;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.svg-color-legend {
    display: grid;
    gap: 10px;
}

.svg-color-legend span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hr-text);
    font-size: 13px;
    font-weight: 800;
}

.svg-color-legend i {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(17, 19, 24, 0.18);
    border-radius: 7px;
}

.nursery-svg-guide,
.nursery-full-flow {
    display: grid;
    gap: 18px;
}

.nursery-rule-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.nursery-rule-grid div {
    padding: 16px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.04);
}

.nursery-rule-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--hr-black);
    font-size: 15px;
}

.nursery-rule-grid p,
.nursery-example-box p,
.nursery-step-text p {
    margin: 0;
    color: var(--hr-muted);
    font-size: 13px;
    line-height: 1.65;
}

.nursery-rule-grid code {
    padding: 2px 6px;
    border-radius: 7px;
    background: #f7f0df;
    color: var(--hr-black);
}

.nursery-example-box {
    padding: 18px;
    border: 1px solid rgba(182, 138, 53, 0.25);
    border-radius: 18px;
    background: #fffaf0;
}

.nursery-example-box h3 {
    margin: 0 0 12px;
    color: var(--hr-black);
    font-size: 18px;
}

.nursery-example-box pre,
.nursery-step-text pre {
    overflow: auto;
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: #111318;
    color: #f7f0df;
    font-size: 12px;
    line-height: 1.55;
}

.nursery-flow-steps {
    display: grid;
    gap: 18px;
}

.nursery-flow-steps article {
    display: grid;
    grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.04);
}

.nursery-step-text span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: #111318;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nursery-step-text h3 {
    margin: 14px 0 8px;
    color: var(--hr-black);
    font-size: 22px;
    line-height: 1.18;
}

.nursery-svg-preview {
    width: 100%;
    height: auto;
    min-height: 260px;
    border-radius: 18px;
    background: #202522;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.public-chatbot-first .re-chat-panel {
    background: #f9f4ea !important;
}

.public-chatbot-first .re-chat-head {
    background: #111318 !important;
    color: #fff !important;
}

.public-chatbot-first .re-chat-head strong {
    color: #fff;
    font-size: 15px;
}

.public-chatbot-first .re-chat-head span {
    color: rgba(255, 255, 255, 0.74);
}

.public-chatbot-first .re-chat-messages {
    background: #f8f1e4;
}

.public-chatbot-first .re-msg {
    font-size: 14px;
    line-height: 1.55;
}

.public-chatbot-first .re-msg.bot {
    color: #101828;
    background: #fff;
}

.public-chatbot-first .re-chat-options {
    background: #fff;
}

.public-chatbot-first .re-chat-options button,
.public-chatbot-first .re-chat-options button.primary {
    border: 1px solid rgba(17, 19, 24, 0.14) !important;
    background: #111318 !important;
    color: #fff !important;
    font-size: 12px;
    box-shadow: none;
}

.public-chatbot-first .re-chat-options button:hover,
.public-chatbot-first .re-chat-form button:hover {
    background: #d6b15b !important;
    border-color: #d6b15b !important;
    color: #111318 !important;
}

.public-chatbot-first .re-chat-form {
    background: #fff;
    border-top: 1px solid rgba(17, 19, 24, 0.08);
}

.public-chatbot-first .re-chat-form input {
    border-color: rgba(17, 19, 24, 0.32);
    color: #111318;
}

.public-chatbot-first .re-chat-form button {
    background: #111318 !important;
    color: #fff !important;
}

.public-chatbot-first .re-chat-shell {
    font-family: "Inter", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-chatbot-first .re-chat-panel {
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
}

.public-chatbot-first .re-chat-messages {
    gap: 12px;
    padding: 16px;
}

.public-chatbot-first .re-msg {
    max-width: 92%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
}

.public-chatbot-first .re-property-card {
    padding: 12px;
    border-color: rgba(17, 19, 24, 0.1);
    border-radius: 15px;
}

.public-chatbot-first .re-property-card strong {
    color: #111318;
    font-size: 14px;
}

.public-chatbot-first .re-property-card small,
.public-chatbot-first .re-property-card span {
    color: #4f5869;
    font-size: 12px;
    line-height: 1.45;
}

.public-chatbot-first .re-property-actions a,
.public-chatbot-first .re-property-actions button {
    padding: 8px 11px;
    border-color: #111318;
    background: #fff;
    color: #111318;
    font-size: 12px;
}

.public-chatbot-first .re-chat-options {
    max-height: 150px;
    overflow: auto;
    padding: 12px 14px 4px;
}

.public-chatbot-first .re-chat-options button,
.public-chatbot-first .re-chat-options button.primary {
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.2;
}

.public-chatbot-first .re-chat-form {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 10px;
    padding: 12px 14px 14px;
}

.public-chatbot-first .re-chat-form input {
    min-height: 46px;
    font-size: 14px;
}

.public-chatbot-first .re-chat-form button {
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
}

@media (max-width: 860px) {
    .public-chatbot-first .chatbot-hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 28px 22px;
    }

    .public-chatbot-first .chatbot-hero-copy h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .public-chatbot-first .chatbot-status-card {
        min-height: 210px;
    }

    .home-vibe-grid {
        grid-template-columns: 1fr;
    }

    .home-vibe-grid article {
        min-height: auto;
    }

    .contact-hero-funny,
    .contact-detail-grid,
    .contact-map-panel {
        grid-template-columns: 1fr;
    }

    .contact-map-panel iframe {
        min-height: 280px;
    }

    .svg-step-card {
        grid-template-columns: 1fr;
    }

    .nursery-rule-grid,
    .nursery-flow-steps article {
        grid-template-columns: 1fr;
    }

    .public-chatbot-first .re-chat-shell {
        inset: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        pointer-events: none;
    }

    .public-chatbot-first .re-chat-fab {
        right: 14px !important;
        bottom: 14px !important;
        position: fixed;
        pointer-events: auto;
    }

    .public-chatbot-first .re-chat-panel {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        pointer-events: auto;
    }

    .public-chatbot-first .re-chat-head {
        min-height: 68px;
        padding: 16px 18px;
    }

    .public-chatbot-first .re-chat-head strong {
        font-size: 16px;
    }

    .public-chatbot-first .re-chat-messages {
        padding: 14px;
    }

    .public-chatbot-first .re-chat-options {
        max-height: 190px;
        padding: 10px 12px 4px;
    }

    .public-chatbot-first .re-chat-options button,
    .public-chatbot-first .re-chat-options button.primary {
        flex: 1 1 calc(50% - 8px);
        min-height: 42px;
    }

    .public-chatbot-first .re-chat-form {
        grid-template-columns: minmax(0, 1fr) 68px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.admin-shell-body {
    background: var(--hr-bg);
    color: var(--hr-text);
    font-family: "Inter", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.admin-shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    border-right: 1px solid var(--hr-line);
    background: #fff;
    box-shadow: 4px 0 20px rgba(16, 24, 40, 0.03);
    z-index: 40;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 14px 18px;
    color: var(--hr-text);
    text-decoration: none;
    border-bottom: 1px solid var(--hr-line);
}

.admin-brand span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--hr-black);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.admin-brand strong {
    font-size: 15px;
    letter-spacing: 0;
}

.admin-sidebar-nav {
    display: grid;
    gap: 3px;
    padding: 14px 12px 22px;
}

.admin-sidebar-nav p {
    margin: 15px 8px 6px;
    color: #8a94a6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.admin-sidebar-nav a span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: #f2f4f7;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background: var(--hr-gold-soft);
    color: var(--hr-black);
}

.admin-sidebar-nav a:hover span,
.admin-sidebar-nav a.active span {
    background: var(--hr-black);
    color: #fff;
}

.admin-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 9px 20px;
    border-bottom: 1px solid var(--hr-line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.admin-search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--hr-line);
    border-radius: 10px;
    background: #f9fafb;
}

.admin-search-pill span {
    color: var(--hr-muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-search-pill strong {
    color: var(--hr-text);
    font-size: 13px;
}

.admin-top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-top-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--hr-line);
    border-radius: 10px;
    background: #fff;
    color: var(--hr-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.admin-user-pill {
    background: var(--hr-gold-soft) !important;
    color: var(--hr-black) !important;
}

.admin-logout {
    color: #c2410c !important;
}

.admin-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 20px;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--hr-line);
    color: var(--hr-muted);
    font-size: 13px;
    background: #fff;
}

.admin-backdrop {
    display: none;
}

.admin-shell-body .dashboard-hero {
    border: 1px solid rgba(182, 138, 53, 0.22);
    border-radius: 14px;
    background: linear-gradient(135deg, #111318, #262a33);
    box-shadow: 0 12px 30px rgba(17, 19, 24, 0.12);
}

.admin-shell-body .metric-card,
.admin-shell-body .info-panel,
.admin-shell-body .form-panel,
.admin-shell-body .auth-panel,
.admin-shell-body .list-panel,
.admin-shell-body .property-card,
.admin-shell-body .dashboard-action-grid a {
    border-color: var(--hr-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.admin-shell-body .metric-card strong {
    color: var(--hr-text);
    font-size: 24px;
}

.admin-shell-body .metric-card span,
.admin-shell-body .muted,
.admin-shell-body .mini-list span {
    color: var(--hr-muted);
}

.admin-shell-body .primary-btn,
.admin-shell-body .secondary-btn,
.admin-shell-body .outline-btn,
.admin-shell-body button {
    border-radius: 8px;
}

.admin-shell-body .primary-btn {
    background: var(--hr-black);
    border-color: var(--hr-black);
}

/* Public chatbot-first website */
.public-chatbot-first {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(182, 138, 53, 0.12), transparent 30%),
        linear-gradient(135deg, #fbfaf7 0%, #f3f0e8 100%);
    color: #15171c;
    font-family: "Inter", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.public-simple-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 56px);
    border-bottom: 1px solid rgba(17, 19, 24, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.public-simple-brand,
.public-simple-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-simple-brand {
    color: #111318;
    text-decoration: none;
}

.public-simple-brand span,
.public-simple-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.public-simple-brand span {
    display: grid;
    place-items: center;
    background: #111318;
    color: #d6b15b;
    font-weight: 900;
    font-size: 13px;
}

.public-simple-brand img {
    object-fit: cover;
    border: 1px solid rgba(182, 138, 53, 0.35);
}

.public-simple-brand strong {
    font-size: 16px;
    letter-spacing: 0;
}

.public-simple-links a {
    color: #303747;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 11px;
    border-radius: 999px;
}

.public-simple-links a:hover,
.public-admin-link {
    background: #111318;
    color: #fff !important;
}

.chatbot-landing {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 7vw, 76px) 0 30px;
}

.chatbot-hero-card,
.public-info-panel,
.public-contact-clean {
    border: 1px solid rgba(182, 138, 53, 0.18);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 26px 70px rgba(17, 19, 24, 0.08);
}

.chatbot-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(18px, 4vw, 42px);
    align-items: stretch;
    padding: clamp(24px, 5vw, 54px);
}

.chatbot-hero-copy h1,
.public-info-panel h1,
.contact-copy h1 {
    margin: 8px 0 14px;
    max-width: 720px;
    color: #111318;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: 0;
}

.chatbot-hero-copy p,
.public-info-panel p,
.contact-copy p {
    max-width: 680px;
    color: #5c6472;
    font-size: 15px;
    line-height: 1.75;
}

.eyebrow {
    margin: 0;
    color: #b68a35;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chatbot-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.chatbot-primary-cta,
.chatbot-hero-actions a,
.contact-form-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #111318;
    background: #111318;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.chatbot-hero-actions a {
    background: transparent;
    color: #111318;
}

.chatbot-status-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 24px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(145deg, #111318, #23262e);
    color: #fff;
}

.chatbot-status-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto 42%;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(182, 138, 53, 0.28);
    filter: blur(2px);
}

.chatbot-status-card strong {
    position: relative;
    font-size: 22px;
}

.chatbot-status-card p {
    position: relative;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.6;
}

.status-dot {
    position: relative;
    width: 12px;
    height: 12px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #37d67a;
    box-shadow: 0 0 0 8px rgba(55, 214, 122, 0.12);
}

.chatbot-trust-strip,
.public-simple-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #697080;
    font-size: 13px;
}

.chatbot-trust-strip {
    margin-top: 18px;
    padding: 0 6px;
}

.public-simple-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(17, 19, 24, 0.08);
}

.public-info-panel {
    padding: clamp(24px, 5vw, 50px);
}

.profile-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.profile-mini-grid div {
    padding: 18px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.profile-mini-grid strong,
.profile-mini-grid span {
    display: block;
}

.profile-mini-grid strong {
    margin-bottom: 8px;
    color: #111318;
    font-size: 13px;
}

.profile-mini-grid span {
    color: #687083;
    font-size: 13px;
    line-height: 1.55;
}

.public-contact-clean {
    padding: clamp(20px, 4vw, 44px);
}

.contact-mini-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 24px;
    color: #303747;
    font-size: 14px;
    font-weight: 800;
}

.public-chatbot-first .contact-form-card {
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 22px;
    box-shadow: none;
}

.public-chatbot-first .contact-form-card input,
.public-chatbot-first .contact-form-card select,
.public-chatbot-first .contact-form-card textarea {
    border-color: rgba(17, 19, 24, 0.12);
    border-radius: 12px;
    font-size: 14px;
}

.public-chatbot-first .re-chat-fab {
    right: 22px;
    bottom: 22px;
    border: 1px solid rgba(214, 177, 91, 0.55);
    background: #111318;
    box-shadow: 0 18px 45px rgba(17, 19, 24, 0.24);
}

.public-chatbot-first .re-chat-fab span {
    background: #d6b15b;
    color: #111318;
}

.public-chatbot-first .re-chat-panel {
    right: 22px;
    bottom: 88px;
    width: min(430px, calc(100vw - 28px));
    height: min(680px, calc(100vh - 112px));
    border: 1px solid rgba(214, 177, 91, 0.28);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(17, 19, 24, 0.28);
}

.public-chatbot-first .re-chat-head {
    background: linear-gradient(135deg, #111318, #262a33);
}

.public-chatbot-first .re-chat-options button.primary,
.public-chatbot-first .re-chat-form button {
    background: #111318;
    border-color: #111318;
}

.public-chatbot-first .re-msg.bot {
    border-color: rgba(182, 138, 53, 0.18);
}

/* Remove backend horizontal overflow on property filters/cards */
.admin-shell-body,
.admin-shell-body .admin-main,
.admin-shell-body .admin-page {
    overflow-x: hidden;
}

.admin-shell-body .type-filter-strip,
.admin-shell-body .filter-grid,
.admin-shell-body .property-grid {
    max-width: 100%;
}

.admin-shell-body .type-filter-strip {
    flex-wrap: wrap;
    overflow-x: visible;
}

.admin-shell-body .type-filter-strip::-webkit-scrollbar {
    display: none;
}

@media (max-width: 860px) {
    .public-simple-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-simple-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .chatbot-hero-card,
    .profile-mini-grid,
    .public-contact-clean {
        grid-template-columns: 1fr;
    }

    .chatbot-hero-copy h1,
    .public-info-panel h1,
    .contact-copy h1 {
        font-size: 34px;
    }

    .chatbot-status-card {
        min-height: 190px;
    }

    .public-chatbot-first .re-chat-panel {
        right: 10px;
        bottom: 78px;
        width: calc(100vw - 20px);
        height: min(650px, calc(100vh - 92px));
        border-radius: 20px;
    }

    .public-chatbot-first .re-chat-fab {
        right: 12px;
        bottom: 12px;
    }
}

.admin-shell-body .badge,
.admin-shell-body .profile-pill {
    background: var(--hr-gold-soft);
    color: var(--hr-black) !important;
}

.admin-shell-body h1,
.admin-shell-body h2,
.admin-shell-body h3 {
    color: var(--hr-text);
    letter-spacing: 0;
}

.admin-shell-body .toolbar,
.admin-shell-body .page-header,
.admin-shell-body .property-view-head,
.admin-shell-body .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--hr-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.admin-shell-body .toolbar h1,
.admin-shell-body .page-header h1,
.admin-shell-body .property-view-head h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.admin-shell-body .row-actions,
.admin-shell-body .card-actions,
.admin-shell-body .action-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-shell-body .filter-grid,
.admin-shell-body .pdf-options-panel,
.admin-shell-body .type-filter-strip {
    border: 1px solid var(--hr-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.admin-shell-body .type-filter-strip {
    gap: 7px;
    padding: 10px;
    margin-bottom: 10px;
}

.admin-shell-body .type-filter-strip a {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 7px;
    color: var(--hr-text);
    font-size: 12px;
    font-weight: 850;
}

.admin-shell-body .type-filter-strip a.active {
    color: #fff;
    background: var(--hr-black);
    border-color: var(--hr-black);
    box-shadow: inset 0 -2px 0 rgba(182, 138, 53, 0.8);
}

.admin-shell-body .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 9px;
    padding: 12px;
}

.admin-shell-body input,
.admin-shell-body select,
.admin-shell-body textarea {
    border: 1px solid #dbe0e6;
    border-radius: 8px;
    color: var(--hr-text);
    background: #fff;
    font: inherit;
}

.admin-shell-body input:focus,
.admin-shell-body select:focus,
.admin-shell-body textarea:focus {
    outline: 2px solid rgba(182, 138, 53, 0.18);
    border-color: var(--hr-gold);
}

.admin-shell-body label {
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.admin-shell-body .stack {
    display: grid;
    gap: 13px;
}

.admin-shell-body .two-col,
.admin-shell-body .three-col,
.admin-shell-body .detail-layout,
.admin-shell-body .property-view-grid {
    display: grid;
    gap: 16px;
}

.admin-shell-body .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shell-body .three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell-body .property-view-grid,
.admin-shell-body .detail-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    align-items: start;
}

.admin-shell-body .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 14px;
}

.admin-shell-body .property-card {
    position: relative;
    overflow: hidden;
}

.admin-shell-body .property-image,
.admin-shell-body .image-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.admin-shell-body .image-placeholder {
    display: grid;
    place-items: center;
    background: #eef0f3;
    color: var(--hr-muted);
    font-size: 12px;
}

.admin-shell-body .property-body {
    padding: 12px;
    font-size: 12px;
}

.admin-shell-body .property-body h2 {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.35;
}

.admin-shell-body .property-code {
    color: #9a711f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-shell-body .property-card .muted,
.admin-shell-body .property-card .meta {
    font-size: 12px;
    line-height: 1.45;
}

.admin-shell-body .property-card .badge {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 10px;
    background: #f4efe3;
    color: #80601f !important;
}

.admin-shell-body .list-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.admin-shell-body .data-row,
.admin-shell-body .lead-row,
.admin-shell-body .document-row,
.admin-shell-body .timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--hr-line);
    border-radius: 10px;
    background: #fff;
    color: var(--hr-text);
    text-decoration: none;
}

.admin-shell-body .lead-row:hover,
.admin-shell-body .data-row:hover {
    border-color: rgba(182, 138, 53, 0.42);
    box-shadow: 0 8px 22px rgba(17, 19, 24, 0.06);
}

.admin-shell-body .data-row strong,
.admin-shell-body .lead-row strong {
    display: block;
    color: var(--hr-text);
    font-size: 14px;
}

.admin-shell-body .data-row span,
.admin-shell-body .lead-row span,
.admin-shell-body .data-row small,
.admin-shell-body .lead-row small {
    color: var(--hr-muted);
    font-size: 12px;
}

.admin-shell-body .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-shell-body .priority-hot {
    background: #fee2e2 !important;
    color: #b42318 !important;
}

.admin-shell-body .priority-warm {
    background: var(--hr-gold-soft) !important;
    color: #80601f !important;
}

.admin-shell-body .priority-cold {
    background: #e0f2fe !important;
    color: #026aa2 !important;
}

.admin-shell-body dl {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 8px 12px;
}

.admin-shell-body dt {
    color: var(--hr-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-shell-body dd {
    margin: 0;
    color: var(--hr-text);
    font-weight: 700;
}

.admin-shell-body .bulk-share-bar {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--hr-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.12);
    backdrop-filter: blur(12px);
}

.admin-shell-body .bulk-share-bar .primary-btn {
    justify-self: end;
}

.admin-shell-body .carousel-main {
    border-radius: 12px;
}

.admin-shell-body .media-panel,
.admin-shell-body .property-side {
    display: grid;
    gap: 16px;
}

.admin-shell-body .pipeline-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.admin-shell-body .pipeline-column {
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hr-line);
}

.admin-shell-body .metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-shell-body .chat-admin-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.admin-shell-body .chat-admin-list {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.admin-shell-body .chat-lead-item {
    border-color: var(--hr-line);
    border-radius: 10px;
}

.admin-shell-body .chat-lead-item.active {
    border-color: rgba(182, 138, 53, 0.42);
    background: var(--hr-gold-soft);
}

.admin-shell-body .chat-admin-messages {
    background: #f7f8fa;
    border: 1px solid var(--hr-line);
    border-radius: 12px;
}

.admin-shell-body .chat-admin-message {
    border-radius: 12px;
}

.admin-shell-body .chat-admin-message.client {
    background: var(--hr-black);
    color: #fff;
}

.admin-shell-body .compact-form {
    margin-bottom: 14px;
}

.admin-shell-body .logo-preview {
    border-radius: 12px;
    border-color: var(--hr-line);
}

.admin-shell-body .pdf-options-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    margin-top: 14px;
}

.admin-shell-body .pdf-options-panel strong {
    color: var(--hr-text);
    margin-right: 6px;
}

.admin-shell-body .pdf-options-panel label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--hr-line);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
}

.admin-shell-body .eyebrow {
    margin: 0 0 4px;
    color: #9a711f !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-shell-body .list-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 10px;
    border-bottom: 1px solid var(--hr-line);
    margin-bottom: 4px;
}

.admin-shell-body .list-panel-head h2 {
    margin: 0;
    font-size: 17px;
}

.admin-shell-body .list-panel-head p {
    margin: 3px 0 0;
    color: var(--hr-muted);
    font-size: 13px;
}

.admin-shell-body .empty-state {
    display: grid;
    place-items: center;
    min-height: 130px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--hr-muted);
    background: #f9fafb;
    font-weight: 800;
}

.admin-shell-body .inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-shell-body .small-danger-btn {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b42318;
}

.admin-shell-body .outline-btn {
    border: 1px solid var(--hr-line);
    background: #fff;
    color: var(--hr-text);
}

.admin-shell-body .secondary-btn {
    border: 1px solid rgba(182, 138, 53, 0.28);
    background: var(--hr-gold-soft);
    color: var(--hr-black);
}

.admin-shell-body .primary-btn {
    border: 1px solid var(--hr-black);
    color: #fff;
}

.admin-shell-body .primary-btn,
.admin-shell-body .secondary-btn,
.admin-shell-body .outline-btn,
.admin-shell-body .small-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
}

.admin-shell-body .form-panel h1,
.admin-shell-body .info-panel h2 {
    margin-top: 0;
}

.admin-shell-body .form-panel {
    margin-bottom: 16px;
}

.admin-shell-body .lead-row {
    color: inherit;
}

.admin-shell-body .site-footer {
    display: none;
}

.public-crm-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fffdf8 0%, #f7f2e8 100%);
    color: var(--re-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-crm-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 5vw, 72px);
    border-bottom: 1px solid rgba(8, 40, 70, 0.1);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(14px);
}

.public-crm-brand,
.public-crm-nav a {
    color: var(--re-navy);
    text-decoration: none;
    font-weight: 850;
}

.public-crm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
}

.public-crm-brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--re-navy);
    color: #fff;
    font-size: 13px;
}

.public-crm-nav div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-crm-main {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 42px 0 90px;
}

.public-site {
    padding-bottom: 120px;
}

.public-crm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: stretch;
}

.public-crm-hero > div {
    padding: clamp(26px, 5vw, 58px);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(8, 40, 70, 0.94), rgba(13, 55, 92, 0.92)),
        url("../uploads/thumbnails/sample-apartment.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 0 26px 70px rgba(8, 40, 70, 0.22);
}

.public-search-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr auto;
    gap: 10px;
    align-items: end;
    margin-top: -28px;
    padding: 14px;
    border: 1px solid rgba(8, 40, 70, 0.1);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(8, 40, 70, 0.14);
}

.public-search-panel label {
    display: grid;
    gap: 6px;
}

.public-search-panel span {
    color: var(--re-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-search-panel input,
.public-search-panel select {
    min-width: 0;
    min-height: 46px;
    border: 1px solid #e5dccb;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    color: var(--re-ink);
    font: inherit;
    font-weight: 750;
}

.public-search-panel button,
.public-section-head button {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    background: var(--re-navy);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.public-crm-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: 0;
}

.public-crm-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.65;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--re-gold) !important;
    font-size: 13px !important;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-crm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.public-crm-actions button,
.public-crm-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: #fff;
    color: var(--re-navy);
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.public-crm-actions a {
    background: transparent;
    color: #fff;
}

.public-crm-card {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 28px;
    border: 1px solid rgba(199, 155, 59, 0.32);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(8, 40, 70, 0.1);
}

.public-crm-card span,
.public-crm-card small {
    color: var(--re-muted);
    font-weight: 800;
}

.public-crm-card strong {
    color: var(--re-navy);
    font-size: 56px;
    line-height: 1;
}

.public-crm-types,
.public-crm-strip {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.public-crm-types {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.public-crm-types span,
.public-crm-strip article {
    border: 1px solid rgba(8, 40, 70, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(8, 40, 70, 0.06);
}

.public-crm-types span {
    padding: 13px 14px;
    color: var(--re-navy);
    font-weight: 850;
}

.public-crm-strip {
    grid-template-columns: repeat(3, 1fr);
}

.public-crm-strip article {
    padding: 20px;
}

.public-crm-strip strong {
    color: var(--re-navy);
    font-size: 18px;
}

.public-crm-strip p {
    color: var(--re-muted);
    line-height: 1.6;
}

.public-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
}

.public-section-head h2 {
    margin: 0;
    color: var(--re-navy);
    font-size: clamp(26px, 4vw, 42px);
}

.public-property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.public-property-card {
    overflow: hidden;
    border: 1px solid rgba(8, 40, 70, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(8, 40, 70, 0.08);
}

.public-property-card img,
.public-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.public-card-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f8f4ea, #e9dcc0);
    color: var(--re-navy);
    font-weight: 950;
}

.public-property-card div {
    padding: 14px;
}

.public-property-card span {
    color: var(--re-gold);
    font-size: 12px;
    font-weight: 950;
}

.public-property-card h3 {
    margin: 5px 0;
    color: var(--re-navy);
    font-size: 18px;
}

.public-property-card p {
    margin: 0 0 8px;
    color: var(--re-muted);
}

.public-property-card strong {
    color: var(--re-ink);
}

.public-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.public-card-actions a,
.public-card-actions button,
.contact-copy button,
.contact-form-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: var(--re-navy);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.public-card-actions button {
    background: var(--re-gold);
    color: #111827;
}

.public-list-filter {
    margin-top: 18px;
    grid-template-columns: 1.4fr 1fr auto;
}

.public-listing-grid {
    margin-top: 22px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
    gap: 22px;
    align-items: stretch;
}

.contact-copy,
.contact-form-card {
    border-radius: 24px;
    box-shadow: 0 20px 52px rgba(8, 40, 70, 0.1);
}

.contact-copy {
    padding: clamp(26px, 5vw, 56px);
    background: var(--re-navy);
    color: #fff;
}

.contact-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
}

.contact-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.contact-copy button {
    margin-top: 16px;
    background: #fff;
    color: var(--re-navy);
}

.contact-form-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(8, 40, 70, 0.1);
    background: #fff;
}

.contact-form-card label {
    display: grid;
    gap: 6px;
    color: var(--re-navy);
    font-weight: 900;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e5dccb;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
}

.contact-form-card textarea {
    min-height: 96px;
}

.about-hero {
    padding: clamp(28px, 6vw, 70px);
    border-radius: 26px;
    background: var(--re-navy);
    color: #fff;
    box-shadow: 0 26px 70px rgba(8, 40, 70, 0.18);
}

.about-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.04;
}

.about-hero p:not(.eyebrow) {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.service-grid article {
    padding: 22px;
    border: 1px solid rgba(8, 40, 70, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(8, 40, 70, 0.07);
}

.service-grid strong {
    color: var(--re-navy);
    font-size: 20px;
}

.service-grid p {
    color: var(--re-muted);
    line-height: 1.65;
}

.admin-menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(8, 40, 70, 0.12);
    border-radius: 12px;
    background: #fff;
    padding: 9px;
}

.admin-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--re-navy);
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 16px;
}

.dashboard-action-grid a {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid rgba(8, 40, 70, 0.1);
    border-radius: 16px;
    background: #fff;
    color: var(--re-ink);
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(8, 40, 70, 0.06);
}

.dashboard-action-grid strong {
    color: var(--re-navy);
}

.dashboard-action-grid span {
    color: var(--re-muted);
    font-size: 13px;
}

.two-panel-row {
    grid-template-columns: 1fr 1fr !important;
    margin-top: 14px;
}

.security-settings-box {
    padding: 16px;
    border: 1px solid #e7dfd0;
    border-radius: 16px;
    background: #fffaf0;
}

.security-settings-box h2 {
    margin: 0 0 6px;
    color: var(--re-navy);
    font-size: 18px;
}

.re-chat-shell {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.re-chat-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 17px 8px 8px;
    border: 0;
    border-radius: 999px;
    background: var(--re-navy);
    color: #fff;
    box-shadow: 0 20px 52px rgba(8, 40, 70, 0.32);
    cursor: pointer;
}

.re-chat-fab span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--re-gold);
    color: #111827;
    font-weight: 950;
}

.re-chat-fab strong {
    font-size: 14px;
}

.re-chat-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: grid;
    grid-template-rows: auto minmax(240px, 1fr) auto auto;
    width: min(430px, calc(100vw - 24px));
    height: min(680px, calc(100vh - 92px));
    overflow: hidden;
    border: 1px solid rgba(8, 40, 70, 0.14);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 88px rgba(15, 23, 42, 0.32);
}

.re-chat-panel[hidden] {
    display: none !important;
}

.re-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    background: var(--re-navy);
    color: #fff;
}

.re-chat-head strong,
.re-chat-head span {
    display: block;
}

.re-chat-head span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.re-chat-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.re-chat-messages {
    display: grid;
    align-content: start;
    gap: 11px;
    padding: 14px;
    overflow: auto;
    background: var(--re-ivory);
}

.re-msg {
    max-width: 90%;
    padding: 10px 12px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.re-msg.bot {
    justify-self: start;
    border: 1px solid #e5dece;
    background: #fff;
    color: var(--re-ink);
}

.re-msg.user {
    justify-self: end;
    background: var(--re-navy);
    color: #fff;
}

.re-msg a {
    color: var(--re-navy);
    font-weight: 900;
}

.re-property-card {
    display: grid;
    gap: 7px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(8, 40, 70, 0.12);
    border-radius: 14px;
    background: #fff;
}

.re-property-card strong {
    color: var(--re-navy);
}

.re-property-card small {
    color: var(--re-muted);
}

.re-property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.re-property-actions a,
.re-property-actions button,
.re-chat-options button {
    border: 1px solid rgba(8, 40, 70, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--re-navy);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.re-property-actions a,
.re-property-actions button {
    padding: 7px 9px;
}

.re-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 0;
    background: #fff;
}

.re-chat-options button {
    padding: 8px 10px;
}

.re-chat-options button.primary {
    border-color: var(--re-gold);
    background: #fff8e5;
}

.re-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.re-chat-form input {
    min-width: 0;
    min-height: 44px;
    border: 1px solid #ded6c8;
    border-radius: 999px;
    padding: 9px 13px;
    font: inherit;
}

.re-chat-form button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    background: var(--re-gold);
    color: #111827;
    font-weight: 950;
    cursor: pointer;
}

.chat-admin-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.chat-admin-list {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.chat-lead-item {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid #e6dfd2;
    border-radius: 12px;
    color: var(--re-ink);
    text-decoration: none;
    margin-bottom: 9px;
    background: #fff;
}

.chat-lead-item.active {
    border-color: var(--re-gold);
    background: #fff8e5;
}

.chat-lead-item span,
.chat-lead-item small {
    color: var(--re-muted);
}

.chat-admin-messages {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: #f8f4ea;
}

.chat-admin-message {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6dfd2;
}

.chat-admin-message.client {
    justify-self: end;
    background: var(--re-navy);
    color: #fff;
}

.chat-admin-message p {
    margin: 5px 0;
}

.chat-admin-message small {
    color: #8b95a5;
}

.share-field-box {
    padding: 16px;
    border: 1px solid #e7dfd0;
    border-radius: 16px;
    background: #fffaf0;
}

.share-field-box h2 {
    margin: 0 0 6px;
    color: var(--re-navy);
    font-size: 18px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #eadfc8;
    border-radius: 12px;
    background: #fff;
    color: var(--re-ink);
    font-weight: 800;
}

@media (max-width: 760px) {
    .public-crm-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-crm-main {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .public-crm-nav div {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .public-crm-hero,
    .public-crm-strip,
    .public-search-panel,
    .public-property-grid,
    .contact-layout,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .public-crm-hero {
        gap: 12px;
    }

    .public-crm-hero > div {
        padding: 24px;
        border-radius: 20px;
    }

    .public-crm-hero h1 {
        font-size: 34px;
    }

    .public-crm-hero p {
        font-size: 15px;
    }

    .public-search-panel {
        margin-top: 14px;
        border-radius: 18px;
    }

    .public-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .public-crm-card strong {
        font-size: 42px;
    }

    .re-chat-shell {
        right: 10px;
        bottom: 10px;
    }

    .re-chat-panel {
        position: fixed;
        inset: auto 8px 74px 8px;
        width: auto;
        height: min(700px, calc(100dvh - 92px));
        border-radius: 20px;
        grid-template-rows: auto minmax(180px, 1fr) auto auto;
    }

    .topbar[data-admin-topbar] {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 10px 12px;
    }

    .topbar[data-admin-topbar] .brand {
        min-width: 0;
    }

    .topbar[data-admin-topbar] .brand span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-menu-toggle {
        display: inline-block;
    }

    .topbar[data-admin-topbar] nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        max-height: calc(100dvh - 82px);
        overflow: auto;
        padding: 10px 0 2px;
        justify-content: stretch;
    }

    .topbar[data-admin-topbar].menu-open nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .topbar[data-admin-topbar] nav a {
        justify-content: center;
        min-height: 42px;
        border: 1px solid #e8dfd0;
        border-radius: 12px;
        background: #fff;
        white-space: normal;
        text-align: center;
    }

    .dashboard-action-grid,
    .two-panel-row {
        grid-template-columns: 1fr !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .data-row {
        display: grid !important;
        gap: 10px;
        align-items: start !important;
    }

    .data-row .inline-form,
    .data-row .row-actions {
        width: 100%;
        justify-content: stretch;
    }

    .data-row button,
    .data-row a {
        min-height: 42px;
    }

    .list-panel,
    .form-panel,
    .info-panel {
        border-radius: 16px;
        padding: 14px;
    }

    .chat-admin-grid {
        grid-template-columns: 1fr;
    }

    .chat-admin-list {
        position: static;
        max-height: none;
    }
}

@media (max-width: 1024px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(300px, 86vw);
        transform: translateX(-102%);
        transition: transform 180ms ease;
    }

    .admin-shell.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(15, 23, 42, 0.36);
    }

    .admin-shell.sidebar-open + .admin-backdrop {
        display: block;
    }

    .admin-search-pill {
        display: none;
    }

    .admin-topbar {
        padding: 10px 12px;
    }

    .admin-top-actions {
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .admin-top-actions a {
        white-space: nowrap;
    }

    .admin-page {
        padding: 14px;
    }
}

@media (min-width: 1025px) {
    .admin-menu-toggle {
        display: none;
    }
}

@media (max-width: 820px) {
    .admin-shell-body .toolbar,
    .admin-shell-body .page-header,
    .admin-shell-body .property-view-head,
    .admin-shell-body .section-title {
        display: grid;
        gap: 10px;
        padding: 14px;
    }

    .admin-shell-body .row-actions,
    .admin-shell-body .card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-shell-body .two-col,
    .admin-shell-body .three-col,
    .admin-shell-body .property-view-grid,
    .admin-shell-body .detail-layout,
    .admin-shell-body .filter-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-shell-body .property-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell-body .data-row,
    .admin-shell-body .lead-row,
    .admin-shell-body .document-row,
    .admin-shell-body .timeline-item {
        display: grid;
        align-items: start;
    }

    .admin-shell-body .data-row .row-actions,
    .admin-shell-body .lead-row .row-actions {
        justify-content: flex-start;
    }

    .admin-shell-body dl {
        grid-template-columns: 1fr;
    }

    .admin-shell-body dt {
        margin-top: 8px;
    }

    .admin-shell-body .bulk-share-bar {
        grid-template-columns: 1fr 1fr;
    }

    .admin-shell-body .bulk-share-bar .primary-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .admin-shell-body .bulk-share-bar .primary-btn,
    .admin-shell-body .full,
    .admin-shell-body .action-stack a,
    .admin-shell-body .action-stack button {
        width: 100%;
    }

    .admin-shell-body .chat-admin-grid,
    .admin-shell-body .metric-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell-body .chat-admin-list {
        position: static;
        max-height: none;
    }

    .admin-shell-body .pdf-options-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .admin-shell-body .pdf-options-panel strong {
        grid-column: 1 / -1;
    }
}

/* Final public/admin layout guards */
.admin-shell-body,
.admin-shell-body .admin-main,
.admin-shell-body .admin-page {
    overflow-x: hidden !important;
}

.admin-shell-body .type-filter-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
}

.public-chatbot-first .re-chat-panel {
    width: min(430px, calc(100vw - 28px)) !important;
    height: min(680px, calc(100vh - 112px)) !important;
}

@media (max-width: 860px) {
    .public-chatbot-first .re-chat-panel {
        width: calc(100vw - 20px) !important;
        height: min(650px, calc(100vh - 92px)) !important;
    }
}
