:root {
    --qrd-navy: #12233f;
    --qrd-blue: #1666d8;
    --qrd-bg: #f5f7fb;
    --qrd-border: #dfe5ee;
    --qrd-text: #172033;
    --qrd-muted: #647085;
    --qrd-white: #fff;
}

* {
    box-sizing: border-box;
}

body.qrd-backoffice {
    margin: 0;
    background: var(--qrd-bg);
    color: var(--qrd-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.qrd-skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--qrd-white);
    color: var(--qrd-navy);
}

.qrd-skip-link:focus {
    transform: none;
}

.qrd-app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100dvh;
}

.qrd-app-nav {
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 24px 16px;
    background: var(--qrd-navy);
    color: var(--qrd-white);
}

.qrd-app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 8px 30px;
    color: inherit;
    text-decoration: none;
    font-size: 17px;
}

.qrd-app-brand span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--qrd-blue);
    font-size: 18px;
}

.qrd-app-nav nav {
    display: grid;
    gap: 6px;
}

.qrd-app-nav nav a, .qrd-app-nav nav span {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #dce5f3;
    text-decoration: none;
    font-weight: 500;
}

.qrd-app-nav nav .is-active {
    background: rgba(255, 255, 255, .13);
    color: #fff;
}

.qrd-app-nav nav span {
    opacity: .55;
}

.qrd-app-main {
    min-width: 0;
}

.qrd-app-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 66px;
    padding: 10px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid var(--qrd-border);
    background: rgba(255, 255, 255, .94);
}

.qrd-app-topbar div {
    display: grid;
    text-align: right;
}

.qrd-app-topbar span {
    color: var(--qrd-muted);
    font-size: 13px;
}

.qrd-nav-toggle {
    display: none;
}

#main-content {
    width: min(1440px, 100%);
    margin: auto;
    padding: clamp(24px, 4vw, 48px);
}

.qrd-dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
}

.qrd-eyebrow {
    margin: 0 0 5px;
    color: var(--qrd-blue);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 7px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 650;
}

h2 {
    margin-bottom: 14px;
    font-size: 19px;
    font-weight: 620;
}

.qrd-dashboard-heading>div>p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--qrd-muted);
}

.qrd-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.qrd-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 14px;
}

.qrd-stat-grid article, .qrd-panel {
    border: 1px solid var(--qrd-border);
    border-radius: 16px;
    background: var(--qrd-white);
    box-shadow: 0 8px 25px rgba(23, 32, 51, .045);
}

.qrd-stat-grid article {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.qrd-stat-grid span {
    color: var(--qrd-muted);
    font-size: 14px;
}

.qrd-stat-grid strong {
    font-size: 30px;
    font-weight: 650;
}

.qrd-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.qrd-panel {
    padding: 24px;
}

.qrd-panel dl {
    margin: 0;
}

.qrd-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--qrd-border);
}

.qrd-panel dt {
    color: var(--qrd-muted);
}

.qrd-panel dd {
    margin: 0;
    font-weight: 650;
}

a: focus-visible, button:focus-visible {
    outline: 3px solid #77aef7;
    outline-offset: 3px;
}

@media(max-width:1024px) {
    .qrd-stat-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .qrd-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-app-shell {
        display: block;
    }

    .qrd-app-nav {
        position: fixed;
        z-index: 30;
        inset: 0 auto 0 0;
        width: min(82vw, 280px);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .qrd-app-shell.is-nav-open .qrd-app-nav {
        transform: none;
    }

    .qrd-app-main {
        min-height: 100dvh;
    }

    .qrd-app-topbar {
        position: sticky;
        z-index: 20;
        top: 0;
        justify-content: space-between;
        padding: 9px 16px;
    }

    .qrd-nav-toggle {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        padding: 0 14px;
        border: 1px solid var(--qrd-border);
        border-radius: 9px;
        background: #fff;
        color: var(--qrd-text);
        font: inherit;
    }

    .qrd-app-topbar div {
        max-width: 65%;
        overflow: hidden;
    }

    .qrd-app-topbar span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #main-content {
        padding: 24px 16px 40px;
    }

    .qrd-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .qrd-stat-grid article {
        padding: 16px;
    }

    .qrd-stat-grid article:last-child {
        grid-column: 1/-1;
    }

    .qrd-stat-grid strong {
        font-size: 25px;
    }

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

    .qrd-panel {
        padding: 20px;
    }
}

@media(max-width:359px) {
    .qrd-stat-grid {
        grid-template-columns: 1fr;
    }

    .qrd-stat-grid article:last-child {
        grid-column: auto;
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto!important;
        transition: none!important;
    }
}

.qrd-network-hero {
    margin-bottom: 26px;
}

.qrd-network-stats {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.qrd-network-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.qrd-table-panel {
    padding: 0;
    overflow: hidden;
}

.qrd-table-panel>.qrd-section-heading {
    margin: 0;
    padding: 22px 24px 8px;
}

.qrd-table-scroll {
    overflow: auto;
}

.qrd-data-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
}

.qrd-data-table th {
    padding: 14px 18px;
    border-top: 1px solid var(--qrd-border);
    border-bottom: 1px solid var(--qrd-border);
    background: #f8fafd;
    color: #3d4a60;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.qrd-data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f6;
    vertical-align: top;
}

.qrd-data-table tr:last-child td {
    border-bottom: 0;
}

.qrd-data-table td strong, .qrd-data-table td span, .qrd-data-table td small {
    display: block;
}

.qrd-data-table td strong {
    color: var(--qrd-navy);
    font-weight: 650;
}

.qrd-data-table td span {
    color: #344157;
}

.qrd-data-table td small {
    margin-top: 3px;
    color: var(--qrd-muted);
    font-size: 13px;
}

.qrd-empty {
    color: var(--qrd-muted);
    text-align: center;
}

.qrd-status-pill {
    display: inline-flex!important;
    align-items: center;
    width: max-content;
    margin: 0 6px 6px 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #556176;
    font-size: 12px;
    font-weight: 650;
    text-transform: capitalize;
}

.qrd-status-pill.is-good {
    background: #e8f7ef;
    color: #14784d;
}

.qrd-status-pill.is-muted {
    background: #f1f3f7;
    color: #687386;
}

@media(max-width:1024px) {
    .qrd-network-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.qrd-table-link {
    color: var(--qrd-blue);
    text-decoration: none;
}

.qrd-table-link:hover {
    text-decoration: underline;
}

.qrd-ghost-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--qrd-border);
    border-radius: 10px;
    background: #fff;
    color: var(--qrd-navy);
    font-weight: 650;
    text-decoration: none;
}

.qrd-office-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

@media(max-width:767px) {
    .qrd-office-grid {
        grid-template-columns: 1fr;
    }
}

.qrd-property-stats {
    grid-template-columns: repeat(6, minmax(125px, 1fr));
}

.qrd-property-filter {
    display: grid;
    grid-template-columns: 150px 155px 155px 130px 155px minmax(240px, 1fr) 95px auto;
    gap: 14px;
    align-items: end;
    margin-top: 22px;
    padding: 18px;
}

.qrd-property-filter label {
    display: grid;
    gap: 6px;
}

.qrd-property-filter label span {
    color: var(--qrd-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.qrd-property-filter input, .qrd-property-filter select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #c5cfdd;
    border-radius: 10px;
    background: #fff;
    color: var(--qrd-text);
    font: inherit;
}

.qrd-property-filter button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--qrd-blue);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.qrd-legacy-link-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.qrd-legacy-link-strip a, .qrd-disabled-action {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #fff;
    color: var(--qrd-navy);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.qrd-legacy-link-strip a:hover, .qrd-legacy-link-strip a.is-active {
    border-color: var(--qrd-blue);
    background: #eef5ff;
    color: var(--qrd-blue);
}

.qrd-property-action-bank {
    margin-top: 18px;
    padding: 0 0 18px;
}

.qrd-action-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px;
}

.qrd-disabled-action {
    color: #64748b;
    cursor: not-allowed;
    opacity: .78;
}
.qrd-property-list-panel {
    margin-top: 18px;
}

.qrd-property-list-panel>.qrd-section-heading {
    align-items: center;
}

.qrd-property-list-panel>.qrd-section-heading h2 {
    margin: 0;
}

.qrd-property-list-panel>.qrd-section-heading span {
    color: var(--qrd-muted);
    font-weight: 650;
}

.qrd-property-empty {
    padding: 26px;
}

.qrd-property-list {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.qrd-property-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
    padding: 18px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
}

.qrd-property-row-main {
    display: grid;
    gap: 12px;
}

.qrd-property-row h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.qrd-property-row h3 a {
    color: var(--qrd-navy);
    text-decoration: none;
}

.qrd-property-row h3 a:hover {
    color: var(--qrd-blue);
}

.qrd-property-row p {
    margin: 5px 0 0;
    color: #46546a;
}

.qrd-property-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.qrd-property-meta div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f9fc;
}

.qrd-property-meta dt {
    color: var(--qrd-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.qrd-property-meta dd {
    margin: 3px 0 0;
    color: var(--qrd-navy);
    font-weight: 650;
}

.qrd-property-side {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 14px;
    border-radius: 12px;
    background: #eef5ff;
}

.qrd-property-side strong {
    color: #0f4f90;
    font-size: 22px;
}

.qrd-property-side span {
    color: #334158;
    font-weight: 650;
}

.qrd-property-side small {
    color: #627087;
}

.qrd-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 18px 18px;
}

.qrd-pagination a, .qrd-pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 10px;
    font-weight: 650;
}

.qrd-pagination a {
    border: 1px solid var(--qrd-border);
    background: #fff;
    color: var(--qrd-navy);
    text-decoration: none;
}

.qrd-pagination .is-disabled {
    pointer-events: none;
    opacity: .45;
}

.qrd-status-pill.is-warning {
    background: #fff4db;
    color: #946214;
}

@media(max-width:1180px) {
    .qrd-property-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qrd-filter-search {
        grid-column: 1/-1;
    }

    .qrd-property-row {
        grid-template-columns: 1fr;
    }

    .qrd-property-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-property-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qrd-property-filter {
        grid-template-columns: 1fr;
    }

    .qrd-property-meta {
        grid-template-columns: 1fr;
    }

    .qrd-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.qrd-login-page {
    min-height: 100dvh;
    background: linear-gradient(145deg, #eef3fa, #f8fafc);
}

.qrd-login-shell {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 24px;
}

.qrd-login-card {
    width: min(440px, 100%);
    padding: clamp(26px, 5vw, 42px);
    border: 1px solid var(--qrd-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(18, 35, 63, .11);
}

.qrd-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    color: var(--qrd-navy);
    font-size: 17px;
    font-weight: 650;
    text-decoration: none;
}

.qrd-login-brand span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--qrd-blue);
    color: #fff;
}

.qrd-login-intro, .qrd-login-help {
    color: var(--qrd-muted);
}

.qrd-form-error {
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #f1b8b8;
    border-radius: 10px;
    background: #fff4f4;
    color: #8a2525;
}

.qrd-login-card form {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.qrd-login-card label {
    margin-top: 9px;
    font-weight: 600;
}

.qrd-login-card input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bdc8d8;
    border-radius: 10px;
    background: #fff;
    color: var(--qrd-text);
    font: inherit;
}

.qrd-login-card button {
    min-height: 48px;
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    background: var(--qrd-blue);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.qrd-login-help {
    margin: 22px 0 0;
    font-size: 13px;
}

.qrd-property-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.qrd-property-detail-hero .qrd-ghost-link {
    margin-bottom: 18px;
}

.qrd-property-detail-hero h1 {
    max-width: 920px;
}

.qrd-property-detail-hero .qrd-status-pill {
    margin-bottom: 8px;
}

.qrd-property-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
    gap: 18px;
}

.qrd-property-media-panel {
    display: grid;
    gap: 14px;
}

.qrd-property-main-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #d7e2f0;
    background: #eef3f9;
}

.qrd-property-image-placeholder {
    display: grid;
    place-items: center;
    min-height: 340px;
    border: 1px dashed #c4d2e5;
    border-radius: 14px;
    background: #f2f6fb;
    color: #6a7588;
    font-weight: 650;
}

.qrd-property-thumb-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.qrd-property-thumb-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #eef3f9;
}

.qrd-property-detail-summary {
    display: grid;
    align-content: start;
    gap: 18px;
}

.qrd-property-detail-price {
    display: block;
    margin-top: 3px;
    color: #0f4f90;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
}

.qrd-property-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qrd-property-detail-facts div, .qrd-detail-list div {
    padding: 13px 14px;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    background: #f8fbff;
}

.qrd-property-detail-facts dt, .qrd-detail-list dt {
    color: #607087;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.qrd-property-detail-facts dd, .qrd-detail-list dd {
    margin: 4px 0 0;
    color: var(--qrd-navy);
    font-weight: 650;
}

.qrd-property-detail-panels {
    align-items: start;
}

.qrd-property-description {
    margin: 0;
    color: #334158;
    font-size: 16px;
    line-height: 1.7;
}

.qrd-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qrd-property-extra-panel {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}

.qrd-property-extra-panel h2 {
    margin-bottom: 10px;
}

.qrd-feature-list, .qrd-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qrd-feature-list span, .qrd-file-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf5ff;
    color: #0f4f90;
    font-weight: 650;
    text-decoration: none;
}

.qrd-file-list a {
    border: 1px solid #cce0f7;
    background: #fff;
}

.qrd-file-list a:hover {
    background: #edf5ff;
}

@media(max-width:1100px) {
    .qrd-property-detail-grid {
        grid-template-columns: 1fr;
    }

    .qrd-property-detail-summary {
        grid-template-columns: 1fr;
    }

    .qrd-property-detail-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-property-detail-hero {
        display: grid;
    }

    .qrd-property-detail-grid, .qrd-property-detail-panels {
        grid-template-columns: 1fr;
    }

    .qrd-property-detail-facts, .qrd-detail-list {
        grid-template-columns: 1fr;
    }

    .qrd-property-thumb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qrd-property-detail-price {
        font-size: 28px;
    }

    .qrd-property-image-placeholder {
        min-height: 220px;
    }
}

.qrd-scope-strip {
    align-items: center;
    background: #e8f2ff;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    color: #153452;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: space-between;
    margin: 0 0 14px;
    padding: 12px 16px;
}

.qrd-scope-strip span {
    font-weight: 700;
}

.qrd-scope-strip a, .qrd-muted-link {
    color: #0f5d9f;
    font-weight: 700;
    text-decoration: none;
}

.qrd-scope-strip a:hover, .qrd-muted-link:hover {
    text-decoration: underline;
}

.qrd-dashboard-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.qrd-primary-link {
    align-items: center;
    background: var(--qrd-blue);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    min-height: 42px;
    padding: 0 15px;
    text-decoration: none;
}

.qrd-primary-link:hover {
    background: #0f5bc2;
    color: #fff;
}

.qrd-inline-form {
    display: inline-flex;
    margin: 0;
}

.qrd-action-button {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #c8d9ef;
    border-radius: 10px;
    color: var(--qrd-navy);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 0 15px;
}

.qrd-action-button:hover {
    background: #e3efff;
    border-color: #aecaed;
}

.qrd-action-button.is-danger {
    background: #fff3f1;
    border-color: #f1c7c1;
    color: #b42318;
}

.qrd-action-button.is-danger:hover {
    background: #ffe7e3;
    border-color: #e9aaa1;
}

.qrd-flash-message {
    margin: -8px 0 18px;
    padding: 12px 14px;
    border: 1px solid #b9d9c8;
    border-radius: 12px;
    background: #eefaf3;
    color: #14613a;
    font-weight: 700;
}

.qrd-stat-grid .qrd-stat-card {
    border: 1px solid var(--qrd-border);
    border-radius: 16px;
    background: var(--qrd-white);
    box-shadow: 0 8px 25px rgba(23, 32, 51, .045);
    color: inherit;
    display: grid;
    gap: 12px;
    padding: 20px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.qrd-stat-grid .qrd-stat-card:hover {
    border-color: #bfd4ef;
    box-shadow: 0 12px 30px rgba(23, 32, 51, .08);
    transform: translateY(-1px);
}

.qrd-panel-title-link, .qrd-panel dd a {
    color: var(--qrd-navy);
    text-decoration: none;
}

.qrd-panel-title-link:hover, .qrd-panel dd a:hover {
    color: var(--qrd-blue);
}

@media(max-width:767px) {
    .qrd-dashboard-heading {
        align-items: start;
        display: grid;
        gap: 14px;
    }

    .qrd-dashboard-actions {
        justify-content: flex-start;
    }
}

.qrd-lead-stats {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.qrd-stat-card.is-current {
    border-color: #9fc5f3;
    box-shadow: 0 12px 30px rgba(22, 102, 216, .11);
}

.qrd-lead-filter {
    grid-template-columns: 190px minmax(280px, 1fr) 110px auto;
}

.qrd-lead-list-panel {
    margin-top: 18px;
}

.qrd-lead-list-panel>.qrd-section-heading {
    align-items: center;
}

.qrd-lead-list-panel>.qrd-section-heading h2 {
    margin: 0;
}

.qrd-lead-list-panel>.qrd-section-heading span {
    color: var(--qrd-muted);
    font-weight: 650;
}

.qrd-lead-list {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.qrd-lead-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
}

.qrd-lead-row.is-unread {
    border-color: #b6d1f4;
    background: #fbfdff;
}

.qrd-lead-row-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.qrd-lead-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f2ff;
    color: #0f5d9f;
    font-weight: 750;
}

.qrd-lead-titleline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.qrd-lead-titleline h3 {
    margin: 0;
    color: var(--qrd-navy);
    font-size: 19px;
    line-height: 1.25;
}

.qrd-lead-row-main p {
    margin: 6px 0 12px;
    color: #46546a;
}

.qrd-lead-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f7ef;
    color: #14784d;
    font-size: 12px;
    font-weight: 700;
}

.qrd-lead-pill.is-flagged {
    background: #fff4db;
    color: #946214;
}

.qrd-lead-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.qrd-lead-meta div, .qrd-lead-property, .qrd-lead-property-card {
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    background: #f8fbff;
}

.qrd-lead-meta div {
    padding: 9px 10px;
}

.qrd-lead-meta dt, .qrd-lead-detail-list dt {
    color: var(--qrd-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qrd-lead-meta dd, .qrd-lead-detail-list dd {
    margin: 3px 0 0;
    color: var(--qrd-navy);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.qrd-lead-property {
    align-content: start;
    display: grid;
    gap: 7px;
    padding: 14px;
}

.qrd-lead-property strong {
    color: #0f4f90;
    font-size: 21px;
}

.qrd-lead-property span, .qrd-lead-property small {
    color: #536176;
}

.qrd-lead-read-hero {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.qrd-lead-read-hero .qrd-ghost-link {
    margin-bottom: 18px;
}

.qrd-read-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.qrd-lead-read-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.qrd-message-thread {
    display: grid;
    gap: 12px;
}

.qrd-message-bubble {
    padding: 16px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
}

.qrd-message-bubble.is-agent {
    background: #f1f7ff;
}

.qrd-message-bubble header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.qrd-message-bubble header span {
    color: var(--qrd-muted);
    font-size: 13px;
}

.qrd-message-bubble p {
    margin: 0;
    color: #344157;
    line-height: 1.7;
}

.qrd-lead-side-panel {
    align-content: start;
    display: grid;
    gap: 18px;
}

.qrd-lead-detail-list {
    grid-template-columns: 1fr;
}

.qrd-lead-property-card {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.qrd-lead-property-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.qrd-lead-property-card h3 a {
    color: var(--qrd-navy);
    text-decoration: none;
}

.qrd-lead-property-card h3 a:hover {
    color: var(--qrd-blue);
}

.qrd-lead-property-card>strong {
    color: #0f4f90;
    font-size: 24px;
}

.qrd-lead-property-card p, .qrd-lead-property-card small {
    margin: 0;
    color: #526074;
}

@media(max-width:1180px) {
    .qrd-lead-filter, .qrd-lead-row, .qrd-lead-read-grid {
        grid-template-columns: 1fr;
    }

    .qrd-lead-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-lead-stats, .qrd-lead-meta {
        grid-template-columns: 1fr;
    }

    .qrd-lead-read-hero {
        align-items: start;
        display: grid;
    }

    .qrd-read-actions {
        justify-content: flex-start;
    }
}

.qrd-client-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.qrd-client-filter {
    align-items: end;
    display: grid;
    grid-template-columns: 170px 180px minmax(260px, 1fr) 110px auto;
    gap: 14px;
}

.qrd-client-filter label {
    display: grid;
    gap: 7px;
}

.qrd-client-filter label span {
    color: var(--qrd-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qrd-client-filter input, .qrd-client-filter select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cad6e6;
    border-radius: 10px;
    background: #fff;
    color: var(--qrd-navy);
    font: inherit;
    padding: 0 13px;
}

.qrd-client-filter button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--qrd-blue);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 20px;
}

.qrd-client-list {
    display: grid;
    gap: 12px;
}

.qrd-client-row {
    align-items: center;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
}

.qrd-client-avatar {
    align-items: center;
    aspect-ratio: 1;
    display: inline-flex;
    justify-content: center;
    border-radius: 14px;
    background: #eaf3ff;
    color: var(--qrd-blue);
    font-size: 24px;
    font-weight: 900;
}

.qrd-client-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qrd-client-title h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.qrd-client-title h3 a {
    color: var(--qrd-navy);
    text-decoration: none;
}

.qrd-client-title h3 a:hover {
    color: var(--qrd-blue);
}

.qrd-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #08754b;
    font-size: 12px;
    font-weight: 800;
}

.qrd-client-meta, .qrd-detail-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

.qrd-client-meta div, .qrd-detail-list div {
    padding: 10px;
    border: 1px solid #e1e8f2;
    border-radius: 10px;
    background: #f8fbff;
}

.qrd-client-meta dt, .qrd-detail-list dt {
    color: var(--qrd-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qrd-client-meta dd, .qrd-detail-list dd {
    margin: 3px 0 0;
    color: var(--qrd-navy);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.qrd-client-side {
    align-items: end;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.qrd-client-side a {
    color: var(--qrd-blue);
    font-weight: 800;
    text-decoration: none;
}

.qrd-status-pill.archived {
    background: #f1f5f9;
    color: #64748b;
}

.qrd-client-detail-hero {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.qrd-client-detail-hero>a {
    color: var(--qrd-blue);
    font-weight: 800;
    text-decoration: none;
}

.qrd-client-detail-hero h1 {
    margin: 8px 0 4px;
}

.qrd-client-detail-hero p {
    margin: 0;
    color: var(--qrd-muted);
    font-weight: 700;
}

.qrd-client-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.qrd-client-detail-card {
    align-content: start;
}

.qrd-detail-list .qrd-detail-wide {
    grid-column: 1 / -1;
}

@media(max-width:1180px) {
    .qrd-client-stats, .qrd-client-filter, .qrd-client-row, .qrd-client-detail-grid {
        grid-template-columns: 1fr;
    }

    .qrd-client-meta, .qrd-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qrd-client-side {
        align-items: start;
        justify-items: start;
    }
}

@media(max-width:767px) {
    .qrd-client-meta, .qrd-detail-list {
        grid-template-columns: 1fr;
    }

    .qrd-client-detail-hero {
        align-items: start;
        display: grid;
    }
}

.qrd-notification-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qrd-notification-filter {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 120px auto;
    gap: 14px;
}

.qrd-notification-filter label {
    display: grid;
    gap: 7px;
}

.qrd-notification-filter label span {
    color: var(--qrd-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qrd-notification-filter select {
    min-height: 44px;
    border: 1px solid #cad6e6;
    border-radius: 10px;
    background: #fff;
    color: var(--qrd-navy);
    font: inherit;
    padding: 0 13px;
}

.qrd-notification-filter button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--qrd-blue);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 20px;
}

.qrd-notification-list {
    display: grid;
    gap: 10px;
}

.qrd-notification-row a {
    align-items: center;
    display: grid;
    grid-template-columns: 16px minmax(190px, 260px) minmax(0, 1fr) auto;
    gap: 14px;
    padding: 15px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
    color: var(--qrd-navy);
    text-decoration: none;
}

.qrd-notification-row.is-unread a {
    border-color: #b8d3f4;
    background: #f8fbff;
    box-shadow: inset 4px 0 0 var(--qrd-blue);
}

.qrd-notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.qrd-notification-row.is-unread .qrd-notification-dot {
    background: var(--qrd-blue);
}

.qrd-notification-row strong, .qrd-notification-row small {
    display: block;
}

.qrd-notification-row small, .qrd-notification-preview {
    color: var(--qrd-muted);
}

.qrd-notification-preview {
    overflow-wrap: anywhere;
}

.qrd-notification-message {
    min-height: 220px;
    padding: 18px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #f8fbff;
    color: var(--qrd-navy);
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.qrd-notification-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media(max-width:1180px) {
    .qrd-notification-stats, .qrd-notification-filter, .qrd-notification-row a {
        grid-template-columns: 1fr;
    }
}

@media(max-width:767px) {
    .qrd-notification-detail-list {
        grid-template-columns: 1fr;
    }
}

.qrd-valuation-stats {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.qrd-valuation-filter {
    grid-template-columns: 160px 170px minmax(260px, 1fr) 110px auto;
}

.qrd-valuation-row .qrd-lead-row-main p {
    max-width: 980px;
}

.qrd-lead-pill.is-verified {
    background: #e8f7ef;
    color: #14784d;
}

.qrd-valuation-side strong {
    color: #0f4f90;
}

.qrd-valuation-detail-list {
    margin-bottom: 18px;
}

@media(max-width:1180px) {
    .qrd-valuation-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qrd-valuation-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-valuation-stats, .qrd-valuation-filter {
        grid-template-columns: 1fr;
    }
}

.qrd-direct-lead-stats {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.qrd-direct-lead-filter {
    grid-template-columns: 160px 170px minmax(260px, 1fr) 110px auto;
}

.qrd-lead-pill.is-direct {
    background: #edf2ff;
    color: #2451a6;
}

.qrd-direct-lead-side strong {
    color: #0f4f90;
}

@media(max-width:1180px) {
    .qrd-direct-lead-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-direct-lead-stats, .qrd-direct-lead-filter {
        grid-template-columns: 1fr;
    }
}

.qrd-billing-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.qrd-billing-summary article {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
}

.qrd-billing-summary span, .qrd-billing-alert small {
    display: block;
    color: var(--qrd-muted);
    font-size: 13px;
}

.qrd-billing-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--qrd-navy);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.qrd-billing-alert {
    display: grid;
    gap: 4px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #f8fbff;
}

.qrd-billing-alert.is-warning {
    border-color: #f7c76b;
    background: #fff8e8;
}

.qrd-billing-alert.is-danger {
    border-color: #ef9a9a;
    background: #fff1f1;
}

.qrd-billing-alert strong {
    color: var(--qrd-navy);
}

.qrd-billing-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px 18px;
    margin: 0 0 18px;
}

.qrd-billing-details div {
    min-width: 0;
}

.qrd-billing-details dt {
    color: var(--qrd-muted);
    font-size: 13px;
}

.qrd-billing-details dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

@media(max-width:1180px) {
    .qrd-billing-summary, .qrd-billing-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-billing-summary, .qrd-billing-details {
        grid-template-columns: 1fr;
    }
}
.qrd-disabled-action {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f1f5f9;
    color: #647085;
    cursor: not-allowed;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.qrd-calendar-stats {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.qrd-calendar-board {
    margin: 18px 0;
}

.qrd-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.qrd-calendar-toolbar h2 {
    margin-bottom: 0;
}

.qrd-calendar-list {
    display: grid;
    gap: 10px;
}

.qrd-calendar-event {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #fff;
}

.qrd-calendar-swatch {
    width: 12px;
    height: 100%;
    min-height: 44px;
    border-radius: 999px;
}

.qrd-calendar-event strong, .qrd-calendar-event span, .qrd-calendar-event small {
    display: block;
}

.qrd-calendar-event span, .qrd-calendar-event small, .qrd-calendar-event p {
    color: var(--qrd-muted);
}

.qrd-calendar-event p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.qrd-calendar-event nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: end;
}

@media(max-width:767px) {
    .qrd-calendar-stats, .qrd-calendar-event {
        grid-template-columns: 1fr;
    }

    .qrd-calendar-swatch {
        width: 100%;
        height: 6px;
        min-height: 6px;
    }

    .qrd-calendar-event nav, .qrd-calendar-toolbar {
        justify-content: start;
    }
}
.qrd-ticket-stats {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.qrd-ticket-board {
    margin: 18px 0;
}

.qrd-ticket-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
}

.qrd-ticket-tabs a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--qrd-text);
    text-decoration: none;
}

.qrd-ticket-tabs span, .qrd-ticket-card p, .qrd-ticket-meta span, .qrd-ticket-reply span, .qrd-ticket-reply small {
    overflow-wrap: anywhere;
}

.qrd-ticket-tabs strong {
    color: var(--qrd-blue);
}

.qrd-ticket-list, .qrd-ticket-thread {
    display: grid;
    gap: 12px;
}

.qrd-ticket-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #fff;
}

.qrd-ticket-card small, .qrd-ticket-card p {
    color: var(--qrd-muted);
}

.qrd-ticket-card strong {
    display: block;
    margin: 3px 0 5px;
    color: var(--qrd-navy);
}

.qrd-ticket-card nav, .qrd-ticket-actions, .qrd-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: end;
}

.qrd-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qrd-ticket-meta span, .qrd-ticket-attachments span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf2ff;
    color: #2451a6;
    font-size: 12px;
    font-weight: 600;
}

.qrd-ticket-detail-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
}

.qrd-ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.qrd-ticket-reply {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #fff;
}

.qrd-ticket-reply strong, .qrd-ticket-reply span, .qrd-ticket-reply small {
    display: block;
}

.qrd-ticket-reply p {
    margin-bottom: 0;
    color: var(--qrd-text);
    overflow-wrap: anywhere;
}

.qrd-ticket-form-panel {
    max-width: 980px;
}

.qrd-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.qrd-form-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--qrd-muted);
    font-size: 13px;
    font-weight: 600;
}

.qrd-form-grid input, .qrd-form-grid select, .qrd-form-grid textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--qrd-text);
    font: inherit;
}

.qrd-form-grid textarea {
    resize: vertical;
}

.qrd-form-wide, .qrd-form-actions {
    grid-column: 1 / -1;
}

@media(max-width:1180px) {
    .qrd-ticket-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-ticket-stats, .qrd-ticket-tabs, .qrd-ticket-card, .qrd-ticket-detail-grid, .qrd-form-grid {
        grid-template-columns: 1fr;
    }

    .qrd-ticket-card nav, .qrd-ticket-actions, .qrd-form-actions {
        justify-content: start;
    }
}
.qrd-contact-stats {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.qrd-contact-board {
    margin: 18px 0;
}

.qrd-contact-board .qrd-action-row {
    gap: 8px;
}

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

.qrd-contact-detail-list div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
}

.qrd-contact-detail-list dt {
    color: var(--qrd-muted);
    font-size: 13px;
}

.qrd-contact-detail-list dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.qrd-contact-partial {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

@media(max-width:767px) {
    .qrd-contact-stats, .qrd-contact-detail-list {
        grid-template-columns: 1fr;
    }
}
.qrd-settings-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.qrd-settings-section, .qrd-profile-edit-panel {
    margin-top: 18px;
}

.qrd-settings-list, .qrd-profile-about {
    display: grid;
    gap: 12px;
    margin: 0;
}

.qrd-settings-list div, .qrd-profile-about div {
    min-width: 0;
}

.qrd-settings-list dt, .qrd-profile-about dt {
    color: var(--qrd-muted);
    font-size: 13px;
}

.qrd-settings-list dd, .qrd-profile-about dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.qrd-readonly-form input:disabled, .qrd-readonly-form select:disabled, .qrd-readonly-form textarea:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.qrd-membership-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
}

.qrd-membership-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
}

.qrd-profile-grid {
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
}

.qrd-profile-card {
    align-self: start;
}

.qrd-profile-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--qrd-blue);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.qrd-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qrd-chip-row span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf2ff;
    color: #2451a6;
    font-size: 12px;
    font-weight: 600;
}

@media(max-width:1180px) {
    .qrd-settings-grid, .qrd-profile-grid, .qrd-membership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-settings-grid, .qrd-profile-grid, .qrd-membership-grid {
        grid-template-columns: 1fr;
    }
}
.qrd-status-pill.is-danger {
    background: #fee2e2;
    color: #991b1b;
}
.qrd-branch-stats {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.qrd-branch-form {
    display: grid;
    gap: 18px;
}

.qrd-branch-section {
    display: grid;
    gap: 16px;
}

.qrd-branch-address-grid {
    align-items: end;
}

.qrd-fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
}

.qrd-fieldset legend {
    padding: 0 6px;
    color: var(--qrd-muted);
    font-size: 13px;
    font-weight: 700;
}

.qrd-fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: var(--qrd-text);
    font-size: 13px;
    font-weight: 600;
}

.qrd-branch-inline-action {
    min-height: 42px;
    display: flex;
    align-items: end;
}

.qrd-helper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qrd-branch-plan-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px;
}

.qrd-branch-plan-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
}

.qrd-branch-plan-card input {
    justify-self: start;
}

.qrd-branch-plan-card strong {
    color: var(--qrd-blue);
    font-size: 24px;
}

.qrd-plan-name {
    color: var(--qrd-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.qrd-branch-feature-list {
    display: grid;
    gap: 6px;
    margin: 4px 0 0;
    padding-left: 18px;
    color: var(--qrd-text);
}

@media(max-width:767px) {
    .qrd-branch-stats, .qrd-branch-plan-picker {
        grid-template-columns: 1fr;
    }

    .qrd-branch-inline-action {
        min-height: auto;
        align-items: start;
    }
}
.qrd-virtual-number-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
}

.qrd-virtual-number-panel {
    margin-top: 18px;
}

.qrd-muted-copy {
    margin: 0;
    color: var(--qrd-muted);
    overflow-wrap: anywhere;
}

.qrd-status-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.qrd-status-note.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

@media(max-width:767px) {
    .qrd-virtual-number-grid {
        grid-template-columns: 1fr;
    }
}
.qrd-legacy-dashboard-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    margin-top: 20px;
}

@media(max-width:1180px) {
    .qrd-legacy-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-legacy-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.qrd-branch-account-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.qrd-branch-account-grid .qrd-form-grid {
    grid-template-columns: 1fr;
}

@media(max-width:1180px) {
    .qrd-branch-account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:767px) {
    .qrd-branch-account-grid {
        grid-template-columns: 1fr;
    }
}
.qrd-activity-board {
    display: grid;
    gap: 18px;
}

.qrd-activity-month {
    display: grid;
    gap: 10px;
}

.qrd-activity-month h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: var(--qrd-blue);
    font-size: 16px;
}

.qrd-activity-month h3 span {
    color: var(--qrd-muted);
    font-size: 12px;
    font-weight: 700;
}

.qrd-activity-list {
    display: grid;
    gap: 8px;
}

.qrd-activity-item {
    display: grid;
    grid-template-columns: 150px 110px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
}

.qrd-activity-item time, .qrd-activity-item span {
    color: var(--qrd-muted);
    font-size: 12px;
    font-weight: 700;
}

.qrd-activity-item span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f4f1;
    color: #0f766e;
}

.qrd-activity-item p {
    margin: 0;
    overflow-wrap: anywhere;
}

@media(max-width:767px) {
    .qrd-activity-item {
        grid-template-columns: 1fr;
    }
}
.qrd-branch-network-stats {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.qrd-branch-network-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
}

.qrd-branch-nav {
    display: grid;
    gap: 10px;
}

.qrd-panel-heading-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.qrd-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.qrd-filter-bar label {
    display: grid;
    gap: 5px;
    color: var(--qrd-muted);
    font-size: 12px;
    font-weight: 700;
}

.qrd-filter-bar input, .qrd-filter-bar select {
    min-height: 38px;
    width: 100%;
    border: 1px solid var(--qrd-border);
    border-radius: 6px;
    padding: 7px 9px;
    color: var(--qrd-text);
    background: #fff;
}

.qrd-staff-table td {
    vertical-align: top;
}

.qrd-staff-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--qrd-border);
    background: #eef2f7;
}

.qrd-staff-profile {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.qrd-staff-profile div {
    display: grid;
    gap: 4px;
}

.qrd-staff-profile strong {
    color: var(--qrd-blue);
    font-size: 20px;
}

.qrd-staff-profile span, .qrd-staff-profile small {
    color: var(--qrd-muted);
    font-weight: 700;
}

.qrd-staff-photo-large {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--qrd-border);
    background: #eef2f7;
}

.qrd-permission-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.qrd-permission-cloud span, .qrd-disabled-action-bank span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e6f4f1;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
}

.qrd-disabled-action-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.qrd-disabled-action-bank span {
    background: #f3f4f6;
    color: #6b7280;
}

.qrd-branch-office-list {
    display: grid;
    gap: 16px;
}

.qrd-branch-counter-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.qrd-branch-counter-board > div {
    min-width: 0;
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    background: #f8fbff;
    padding: 12px;
}

.qrd-branch-counter-board h3 {
    margin: 0 0 8px;
    color: var(--qrd-blue);
    font-size: 14px;
}

.qrd-branch-counter-board dl, .qrd-branch-counter-board div div {
    display: grid;
    gap: 6px;
    margin: 0;
}

.qrd-branch-counter-board dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.qrd-branch-counter-board dt, .qrd-branch-counter-board dd {
    margin: 0;
    color: var(--qrd-text);
    font-size: 13px;
}

.qrd-branch-counter-board dd {
    font-weight: 800;
}

@media(max-width:1180px) {
    .qrd-branch-network-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qrd-branch-counter-board {
        grid-template-columns: 1fr;
    }
}

@media(max-width:767px) {
    .qrd-branch-network-stats, .qrd-branch-network-grid, .qrd-filter-bar {
        grid-template-columns: 1fr;
    }

    .qrd-panel-heading-row, .qrd-staff-profile {
        display: grid;
    }
}
.qrd-branch-chat-metrics {
    margin-bottom: 18px;
}

.qrd-branch-chat-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.qrd-chat-conversation {
    color: inherit;
    text-decoration: none;
}

.qrd-chat-conversation.is-selected {
    border-color: var(--qrd-blue);
    background: #f8fbff;
}

.qrd-chat-conversation small {
    color: var(--qrd-muted);
}

.qrd-chat-property {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.qrd-chat-property img {
    width: 120px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f7;
}

.qrd-chat-property h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.qrd-chat-property p {
    margin: 0 0 10px;
    color: var(--qrd-muted);
}

.qrd-chat-thread {
    display: grid;
    gap: 12px;
}

.qrd-chat-message {
    max-width: min(560px, 100%);
    border: 1px solid var(--qrd-border);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.qrd-chat-message.is-agent {
    margin-left: auto;
    background: #f0f8f5;
    border-color: #c8ead7;
}

.qrd-chat-message.is-user {
    background: #f8fbff;
    border-color: #cfe0f7;
}

.qrd-chat-message div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: var(--qrd-muted);
    font-size: 12px;
}

.qrd-chat-message p {
    margin: 0;
    white-space: pre-wrap;
}

@media(max-width:980px) {
    .qrd-branch-chat-grid, .qrd-chat-property {
        grid-template-columns: 1fr;
    }
}