/* Public website responsive layer. Loaded after the legacy and theme styles. */
.page-home,
.page-home *,
.digi-ref-shell,
.digi-ref-shell *,
.site-footer--theme,
.site-footer--theme * {
    box-sizing: border-box;
}

.page-home img,
.digi-ref-shell img,
.site-footer--theme img {
    max-width: 100%;
}

.page-home .section-title,
.page-home .cta-title,
.page-home .custom-content-copy h2,
.page-home .hero-title {
    overflow-wrap: anywhere;
}

body.page-home #announcementBar.site-announcement--modern,
body.has-home-header #announcementBar.site-announcement--modern {
    margin-top: 0;
}

/* Keep the homepage announcement typography aligned with the same bar on
   service, blog, gallery, and account pages. */
body.page-home #announcementBar.site-announcement--modern .ann-text {
    font-size: 13.5px;
}

body.page-home #announcementBar.site-announcement--modern .ann-btn {
    font-size: 11.5px;
    height: 25px;
    min-height: 25px;
    max-height: 25px;
    line-height: 25px;
}

body.page-home #announcementBar.site-announcement--modern .ann-icon,
body.has-home-header #announcementBar.site-announcement--modern .ann-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .digi-ref-shell .digi-ref-header {
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }

    .digi-ref-shell #refNavbar {
        top: 10px !important;
        margin: 8px 14px 4px !important;
        border-radius: 18px !important;
    }

    .digi-ref-shell #refNavbar.scrolled {
        top: 10px !important;
        right: 14px !important;
        left: 14px !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    .digi-ref-shell .nav-inner {
        min-height: 60px !important;
    }

    .digi-ref-shell .mobile-nav-menu {
        right: min(-360px, -100vw) !important;
        width: min(360px, 100vw) !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 24px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 24px !important;
        overflow: hidden !important;
        overscroll-behavior: contain;
    }

    .digi-ref-shell .mobile-nav-menu.active {
        right: 0 !important;
    }

    .digi-ref-shell .mobile-nav-links {
        min-height: 0;
        overscroll-behavior: contain;
    }

    .page-home .hero-inner {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 44px;
    }

    .page-home .hero-visual {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    .page-home .hero-image-container {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        width: min(100%, 620px);
        max-width: 620px;
    }

    .page-home .floating-badge {
        position: static;
        min-width: 0;
        margin: 0;
        white-space: normal;
        animation: none;
    }
}

@media (max-width: 900px) {
    .digi-ref-shell .topbar-inner {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    .digi-ref-shell .topbar-left {
        gap: 12px !important;
    }

    .page-home .section-title {
        font-size: clamp(28px, 5vw, 32px);
    }

    .page-home .cta-title {
        font-size: clamp(28px, 5vw, 32px);
    }

    .page-home .cta-banner-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .page-home .cta-price-box {
        width: min(100%, 360px);
    }
}

@media (max-width: 768px) {
    body.has-home-header main {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.has-home-header main > div:first-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.has-home-header main section:last-of-type {
        margin-bottom: 0 !important;
    }

    body.has-home-header footer.site-footer.site-footer--theme {
        margin-top: 0 !important;
    }

    .digi-ref-shell .topbar {
        padding: 8px 0 !important;
    }

    .digi-ref-shell .topbar-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px !important;
    }

    .digi-ref-shell .topbar-left,
    .digi-ref-shell .topbar-right {
        min-width: 0;
    }

    .digi-ref-shell .topbar-left .topbar-item:nth-child(3) {
        display: none !important;
    }

    .digi-ref-shell .topbar-item {
        font-size: 11px !important;
        overflow-wrap: anywhere;
    }

    .digi-ref-shell .notif-wrapper.is-open {
        z-index: 1200;
    }

    .digi-ref-shell .notif-dropdown {
        position: fixed;
        top: max(68px, calc(env(safe-area-inset-top) + 56px));
        right: auto;
        left: 50%;
        width: calc(100vw - 24px);
        max-width: 430px;
        max-height: calc(100dvh - 84px);
        border-radius: 18px;
        box-shadow: 0 24px 70px rgba(2, 6, 23, 0.3);
        transform: translate(-50%, -12px) scale(0.98);
        transform-origin: top center;
    }

    .digi-ref-shell .notif-wrapper.is-open .notif-dropdown {
        padding: 8px !important;
        transform: translate(-50%, 0) scale(1);
    }

    .digi-ref-shell .notif-header {
        gap: 10px;
        padding: 14px 12px 12px;
    }

    .digi-ref-shell .notif-list-wrap {
        max-height: calc(100dvh - 170px);
    }

    .digi-ref-shell .notif-item {
        gap: 10px;
        padding: 12px 10px 12px 12px;
        border-radius: 12px;
    }

    .digi-ref-shell .notif-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .digi-ref-shell .notif-desc {
        overflow-wrap: anywhere;
    }

    .digi-ref-shell .nav-logo {
        font-size: 19px !important;
    }

    .page-home .hero-section {
        padding: 56px 0 64px;
    }

    .page-home .hero-title {
        min-height: 0;
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1.14;
    }

    .page-home .hero-subtitle {
        max-width: none;
        font-size: 14px;
    }

    .page-home .hero-image-container {
        aspect-ratio: 16 / 11;
    }

    .page-home .trust-bar {
        padding: 28px 0;
    }

    .page-home .trust-bar-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .page-home .trust-item {
        padding: 16px 12px;
    }

    .page-home .trust-num {
        font-size: clamp(28px, 8vw, 34px);
    }

    .page-home .section,
    .page-home .cta-banner {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .page-home .section-header {
        margin-bottom: 26px;
    }

    .page-home .section-subtitle {
        font-size: 15px;
    }

    .page-home .portfolio-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-right: 0;
        margin-left: 0;
        padding: 0 4px 8px;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-padding-left: 4px;
        scroll-snap-type: x proximity;
    }

    .page-home .portfolio-tabs::-webkit-scrollbar {
        display: none;
    }

    .page-home .portfolio-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .page-home .video-info {
        padding: 26px 22px;
    }

    .page-home .video-thumb {
        min-height: 230px;
        padding: 26px 20px;
    }

    .page-home .pricing-card.featured {
        transform: none;
    }

    .page-home .cta-price-box {
        justify-self: start;
    }

    .home-video-dialog {
        width: calc(100vw - 28px) !important;
        max-height: calc(100dvh - 28px);
    }
}

@media (max-width: 560px) {
    .digi-ref-shell .topbar-inner {
        grid-template-columns: 1fr !important;
    }

    .digi-ref-shell .topbar-left,
    .digi-ref-shell .topbar-right {
        justify-content: center !important;
        margin-left: 0 !important;
    }

    .digi-ref-shell .topbar-left .topbar-item:nth-child(2) {
        display: none !important;
    }

    .digi-ref-shell .nav-inner {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .digi-ref-shell .notif-dropdown {
        top: max(112px, calc(env(safe-area-inset-top) + 98px));
        max-height: calc(100dvh - 126px);
    }

    .digi-ref-shell .notif-list-wrap {
        max-height: calc(100dvh - 210px);
    }

    body.page-home #announcementBar.site-announcement--modern,
    body.has-home-header #announcementBar.site-announcement--modern {
        margin: 0 !important;
        max-height: 64px;
        padding: 8px 0 !important;
    }

    body.page-home #announcementBar.site-announcement--modern .ann-inner,
    body.has-home-header #announcementBar.site-announcement--modern .ann-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        justify-content: stretch;
        gap: 8px;
        min-height: 40px;
        padding: 0 38px 0 12px;
        text-align: left;
    }

    body.page-home #announcementBar.site-announcement--modern .ann-icon,
    body.has-home-header #announcementBar.site-announcement--modern .ann-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 11px;
    }

    body.page-home #announcementBar.site-announcement--modern .ann-text,
    body.has-home-header #announcementBar.site-announcement--modern .ann-text {
        display: -webkit-box;
        min-width: 0;
        overflow: hidden;
        color: #ffffff;
        font-size: 11.5px;
        line-height: 1.35;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.page-home #announcementBar.site-announcement--modern .ann-btn,
    body.has-home-header #announcementBar.site-announcement--modern .ann-btn {
        height: 25px;
        min-height: 25px;
        max-height: 25px;
        max-width: 104px;
        padding: 0 11px;
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
    }

    body.page-home #announcementBar.site-announcement--modern .ann-close,
    body.has-home-header #announcementBar.site-announcement--modern .ann-close {
        right: 8px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .page-home .hero-trust-badge {
        max-width: 100%;
        line-height: 1.45;
    }

    .page-home .hero-ctas,
    .page-home .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .page-home .hero-ctas .btn,
    .page-home .cta-actions .btn {
        width: 100%;
        min-height: 52px;
    }

    .page-home .hero-features-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .page-home .hero-visual {
        grid-template-columns: 1fr;
    }

    .page-home .hero-image-container {
        grid-column: 1;
        aspect-ratio: 4 / 3;
    }

    .page-home .floating-badge:nth-of-type(n + 4) {
        display: none;
    }

    .page-home .hero-img-caption {
        right: 16px;
        bottom: 40px;
        left: 16px;
    }

    .page-home .hero-img-caption strong {
        font-size: 18px;
    }

    .page-home .hero-img-caption span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-home .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .page-home .workflow-grid,
    .page-home .services-grid,
    .page-home .pillars-grid,
    .page-home .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-home .workflow-grid.row-2 {
        margin-top: 12px;
    }

    .page-home .portfolio-item-overlay {
        padding: 12px;
        transform: translateY(0);
    }

    .page-home #reviews,
    .page-home #reviews .section-inner,
    .page-home .review-carousel-wrapper,
    .page-home .review-carousel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .page-home #reviews {
        overflow-x: clip;
    }

    .page-home .review-carousel-wrapper,
    .page-home .review-carousel {
        overflow: hidden;
    }

    .page-home .review-carousel {
        padding: 30px 10px;
    }

    .page-home .review-track {
        width: 100%;
        max-width: 100%;
        align-items: stretch;
    }

    .page-home .review-track.is-single {
        justify-content: center;
    }

    .page-home .review-card-carousel {
        flex: 0 0 calc(100% - 20px);
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        min-width: 0;
        transform-origin: center;
    }

    .page-home .review-card-carousel.active {
        transform: scale(1.02);
    }

    .page-home .review-nav,
    .page-home .review-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .page-home .faq-question-row {
        gap: 12px;
        padding: 18px;
        font-size: 14px;
    }

    .page-home .faq-answer,
    .page-home .faq-item.open .faq-answer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .page-home .cta-price-box {
        width: 100%;
        padding: 24px 20px;
    }

    .site-footer--theme .site-footer-theme__legal {
        gap: 12px 18px;
    }
}

@media (max-width: 360px) {
    .digi-ref-shell .topbar-right {
        flex-wrap: wrap;
    }

    .digi-ref-shell .live-chat-badge,
    .digi-ref-shell .user-welcome {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .digi-ref-shell .nav-logo {
        font-size: 17px !important;
    }

    .page-home .ann-inner,
    .page-home .hero-inner,
    .page-home .section-inner,
    .page-home .cta-banner-inner,
    .site-footer--theme .site-footer-theme__grid,
    .site-footer--theme .site-footer-theme__bottom-inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    body.page-home #announcementBar.site-announcement--modern .ann-inner,
    body.has-home-header #announcementBar.site-announcement--modern .ann-inner {
        grid-template-columns: auto minmax(0, 1fr);
        padding-right: 34px;
        padding-left: 10px;
    }

    body.page-home #announcementBar.site-announcement--modern .ann-btn,
    body.has-home-header #announcementBar.site-announcement--modern .ann-btn {
        display: none;
    }

    .page-home .hero-title {
        font-size: 27px;
    }

    .page-home .hero-features-row,
    .page-home .trust-bar-inner,
    .page-home .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-home .portfolio-grid.is-carousel .portfolio-item {
        flex-basis: 100%;
    }

    .page-home .portfolio-item {
        aspect-ratio: 4 / 3;
    }
}

@media (hover: none) {
    .page-home .hero-img-arrow {
        opacity: 1;
    }

    .page-home .portfolio-item-overlay {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home *,
    .digi-ref-shell * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Customer dashboard: compact navigation and phone-friendly data cards. */
.customer-sidebar__mobile-toggle {
    display: none;
}

body.customer-ui .dashboard-match-page {
    overflow-x: clip;
    background: #f6f8fc;
}

body.customer-ui .dashboard-match-page .dashboard-reference-welcome {
    background: linear-gradient(135deg, #101a31 0%, #172542 68%, #203457 100%);
    color: #ffffff;
}

body.customer-ui .dashboard-match-page .dashboard-reference-welcome h1,
body.customer-ui .dashboard-match-page .dashboard-reference-welcome p {
    color: inherit;
}

body.customer-ui .dashboard-match-page .dashboard-reference-welcome p {
    color: #cbd5e1;
}

body.customer-ui .dashboard-match-page .dashboard-reference-card,
body.customer-ui .dashboard-match-page .dashboard-reference-table-wrapper {
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

/* Account profile header and support action. */
body.customer-ui .account-profile-main .dashboard-reference-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

body.customer-ui .account-profile-main .dashboard-reference-talk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 44px;
    padding: 0 22px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

body.customer-ui .account-profile-main .dashboard-reference-talk:hover {
    color: #b91c1c;
    text-decoration: none;
}

@media (max-width: 991px) {
    body.customer-ui .dashboard-match-page {
        padding-top: 12px;
    }

    body.customer-ui .dashboard-match-page .dash-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    body.customer-ui .dashboard-match-page .dashboard-match-shell {
        gap: 16px;
    }

    body.customer-ui .dashboard-match-shell > .customer-sidebar,
    body.customer-ui .customer-panel-page .customer-panel-shell > .customer-sidebar {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
        margin: 0;
        padding: 12px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .customer-sidebar__heading {
        display: block;
    }

    body.customer-ui .dashboard-match-shell > .customer-sidebar .sidebar-title,
    body.customer-ui .customer-panel-page .customer-panel-shell > .customer-sidebar .sidebar-title {
        display: none;
    }

    .customer-sidebar__mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 0 14px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #f8fafc;
        color: #172033;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }

    .customer-sidebar__mobile-toggle i {
        color: #dc2626;
        transition: transform 180ms ease;
    }

    .customer-sidebar.is-mobile-open .customer-sidebar__mobile-toggle i {
        transform: rotate(180deg);
    }

    body.customer-ui .dashboard-match-shell > .customer-sidebar .place-order,
    body.customer-ui .customer-panel-page .customer-panel-shell > .customer-sidebar .place-order {
        margin: 10px 0 0;
    }

    body.customer-ui .dashboard-match-shell > .customer-sidebar .customer-sidebar-nav,
    body.customer-ui .customer-panel-page .customer-panel-shell > .customer-sidebar .customer-sidebar-nav {
        display: none;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e2e8f0;
    }

    body.customer-ui .dashboard-match-shell > .customer-sidebar.is-mobile-open .customer-sidebar-nav,
    body.customer-ui .customer-panel-page .customer-panel-shell > .customer-sidebar.is-mobile-open .customer-sidebar-nav {
        display: grid;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-welcome {
        display: flex;
        gap: 18px;
        margin-bottom: 18px;
        padding: 24px;
        border-radius: 18px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-welcome h1 {
        font-size: clamp(22px, 5vw, 28px);
        line-height: 1.2;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-talk {
        width: auto;
        min-width: 112px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 22px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-card {
        min-width: 0;
        padding: 18px;
        border-radius: 16px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 20px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-tab {
        width: 100%;
        padding: 10px 12px;
        white-space: normal;
        line-height: 1.25;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-panel-head {
        gap: 12px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-link {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 0 14px;
        border: 1px solid #dbe3ee;
        border-radius: 999px;
        background: #ffffff;
    }

    .dashboard-subscriptions {
        margin-bottom: 18px !important;
        padding: 18px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 640px) {
    body.customer-ui .account-profile-main {
        gap: 18px;
    }

    body.customer-ui .account-profile-main .dashboard-reference-welcome {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 22px 18px;
        border-radius: 18px;
    }

    body.customer-ui .account-profile-main .dashboard-reference-welcome h1 {
        font-size: 22px;
        line-height: 1.25;
    }

    body.customer-ui .account-profile-main .dashboard-reference-welcome p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    body.customer-ui .account-profile-main .dashboard-reference-talk {
        width: 100%;
        min-height: 46px;
    }

    body.customer-ui .dashboard-match-page .dash-container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-welcome {
        align-items: stretch;
        padding: 22px 18px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-welcome p {
        font-size: 12.5px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-talk {
        width: 100%;
        min-height: 42px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-card-title {
        margin-bottom: 10px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-row {
        gap: 16px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-row span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-row strong {
        flex: 0 0 auto;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-panel-head h2 {
        font-size: 20px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-panel-head p {
        font-size: 12.5px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table-wrapper {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table {
        display: block;
        width: 100%;
        min-width: 0;
        background: transparent;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table thead {
        display: none;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table tbody {
        display: grid;
        gap: 14px;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table tr {
        display: block;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 11px 14px;
        border: 0;
        border-bottom: 1px solid #edf1f6;
        text-align: right;
        overflow-wrap: anywhere;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-align: left;
        text-transform: uppercase;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table td:last-child {
        border-bottom: 0;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table td[colspan] {
        display: block;
        padding: 20px;
        text-align: center;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table td[colspan]::before {
        content: none;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-badge,
    body.customer-ui .dashboard-match-main .dashboard-reference-timer,
    body.customer-ui .dashboard-match-main .dashboard-reference-dash {
        justify-self: end;
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-action-group {
        justify-content: flex-end;
    }
}

@media (max-width: 360px) {
    body.customer-ui .dashboard-match-main .dashboard-reference-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    body.customer-ui .dashboard-match-main .dashboard-reference-table td {
        grid-template-columns: 76px minmax(0, 1fr);
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* Mobile public top bar: phone stays left, account actions stay right. */
@media (max-width: 560px) {
    .digi-ref-shell .topbar-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .digi-ref-shell .topbar-left {
        min-width: 0 !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }

    .digi-ref-shell .topbar-left .topbar-item:not(:first-child) {
        display: none !important;
    }

    .digi-ref-shell .topbar-right {
        min-width: 0 !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        margin-left: 0 !important;
    }

    .digi-ref-shell .topbar-item,
    .digi-ref-shell .user-welcome {
        white-space: nowrap !important;
    }

    .digi-ref-shell .user-welcome {
        padding: 5px 9px !important;
        font-size: 10px !important;
    }

    .digi-ref-shell .user-menu .user-welcome {
        max-width: 132px;
        overflow: hidden;
    }

    .digi-ref-shell .user-menu .user-welcome > span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 360px) {
    .digi-ref-shell .topbar-inner {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .digi-ref-shell .topbar-item {
        font-size: 10px !important;
    }

    .digi-ref-shell .user-welcome {
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 9.5px !important;
    }
}
