:root {
    --home-canvas: #f4f7f6;
    --home-surface: #ffffff;
    --home-surface-soft: #edf3f1;
    --home-ink: #17323a;
    --home-muted: #6d7d80;
    --home-line: #dbe4e1;
    --home-line-strong: #c8d5d2;
    --home-cyan: #178b99;
    --home-orange: #d8872d;
    --home-green: #3f966f;
    --home-violet: #7664ae;
    --home-blue: #427ea9;
    --home-rose: #bc5f72;
    --home-nav-space: 88px;
    --home-rule: color-mix(in srgb, var(--home-ink) 13%, transparent);
    --home-radius-tray: 16px;
    --home-shadow: rgba(23, 50, 58, .24);
    --home-motion-press: 90ms;
    --home-motion-fast: 140ms;
    --home-motion-base: 180ms;
    --home-motion-settle: 220ms;
    --home-ease-standard: cubic-bezier(.2, 0, .38, .9);
    --home-ease-enter: cubic-bezier(0, 0, .38, .9);
}

html[data-theme="dark"] {
    --home-canvas: #141b1d;
    --home-surface: #1b2527;
    --home-surface-soft: #202d2f;
    --home-ink: #edf4f2;
    --home-muted: #9caeac;
    --home-line: #2d3d3e;
    --home-line-strong: #3a4d4e;
    --home-cyan: #68c6ce;
    --home-orange: #e6a45b;
    --home-green: #76c29d;
    --home-violet: #a998d3;
    --home-blue: #7cb1d3;
    --home-rose: #df8998;
    --home-rule: color-mix(in srgb, var(--home-ink) 16%, transparent);
    --home-shadow: rgba(0, 0, 0, .42);
}

html {
    scroll-behavior: smooth;
}

body.app-dashboard-page {
    min-height: 100vh;
    overflow-x: clip;
    color: var(--home-ink);
    background: var(--home-canvas) !important;
}

body.app-dashboard-page::before,
body.app-dashboard-page::after {
    content: none !important;
    display: none !important;
}

body.app-dashboard-page .background-overlay,
body.app-dashboard-page .home-background-aura {
    display: none !important;
}

body.app-dashboard-page > :not(.background-overlay):not(.home-background-aura):not(.site-header):not(.shell-bottom-nav):not(.shell-search-backdrop):not(.shell-search-panel):not(.shell-drawer-backdrop):not(.shell-modal-backdrop):not(.shell-drawer):not(.shell-modal):not(.shell-notification-banner):not(.dent1402-pwa-update) {
    position: relative;
    z-index: 1;
}

/* The shared header stays functional; this page only quiets its surface. */
body.app-dashboard-page .site-header.site-header--app {
    position: sticky !important;
    inset-block-start: 0;
    z-index: 330;
    width: 100%;
    max-width: none;
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    margin: 0;
    padding-inline: max(16px, calc((100vw - 1120px) / 2));
    border: 0;
    border-block-start: 3px solid transparent;
    border-block-end: 1px solid var(--home-line);
    border-radius: 0;
    background:
        linear-gradient(var(--home-surface), var(--home-surface)) padding-box,
        linear-gradient(90deg, var(--home-cyan), var(--home-green), var(--home-orange)) border-box;
    box-shadow: none;
    backdrop-filter: none;
    transition:
        border-color var(--home-motion-fast) var(--home-ease-standard),
        box-shadow var(--home-motion-base) var(--home-ease-standard);
}

body.app-dashboard-page.is-home-scrolled .site-header.site-header--app {
    border-block-end-color: var(--home-line-strong);
    box-shadow: 0 12px 28px -24px var(--home-shadow);
}

body.app-dashboard-page .site-header--app .logo-area,
body.app-dashboard-page .site-header--app .site-info,
body.app-dashboard-page .site-header--app .header-actions {
    min-width: 0;
}

body.app-dashboard-page .site-header--app .site-info h1 {
    color: var(--home-ink);
    font-size: .94rem;
}

body.app-dashboard-page main.app-home-main {
    display: block !important;
    width: min(1120px, calc(100% - 40px)) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 0 0 calc(var(--home-nav-space) + 36px) !important;
}

.app-home-main > section,
.app-home-main > nav {
    min-width: 0;
}

.home-story,
.home-story[hidden],
.portal-panel--identity[hidden],
.home-active-exams[hidden],
.home-service-group[hidden],
.home-promo-card[hidden] {
    display: none !important;
}

/* Compact page identity; no marketing hero. */
.home-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    padding-block: 24px 18px;
    animation: home-settle var(--home-motion-settle) var(--home-ease-enter) both;
}

.home-dashboard-head > div {
    min-width: 0;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    color: var(--home-muted);
    font-size: .68rem;
    font-weight: 720;
    line-height: 1.4;
}

.home-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--home-green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--home-green) 12%, transparent);
}

.home-kicker::before {
    content: none !important;
}

.home-dashboard-head h2 {
    margin: .28rem 0 0;
    color: var(--home-ink);
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 880;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.home-dashboard-head__mark {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 28px;
}

.home-dashboard-head__mark i {
    display: block;
    width: 4px;
    border-radius: 999px;
}

.home-dashboard-head__mark i:nth-child(1) {
    height: 16px;
    background: var(--home-cyan);
}

.home-dashboard-head__mark i:nth-child(2) {
    height: 26px;
    background: var(--home-orange);
}

.home-dashboard-head__mark i:nth-child(3) {
    height: 10px;
    background: var(--home-green);
}

/* One command tray, six clear actions, no stacked cards. */
.home-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 1px !important;
    margin: 0 !important;
    padding: 1px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: var(--home-radius-tray) !important;
    background: var(--home-rule) !important;
    box-shadow: 0 14px 32px -27px var(--home-shadow) !important;
    animation: home-settle var(--home-motion-settle) var(--home-ease-enter) 24ms both;
}

.home-quick-actions[data-visible-count="1"] { grid-template-columns: minmax(0, 1fr) !important; }
.home-quick-actions[data-visible-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.home-quick-actions[data-visible-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.home-quick-actions[data-visible-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.home-quick-actions[data-visible-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.home-quick-actions[data-visible-count="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

.home-quick-actions > a {
    --quick-accent: var(--home-cyan);
    display: flex;
    min-width: 0;
    min-height: 108px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .58rem;
    padding: .8rem .35rem;
    color: var(--home-ink);
    background: var(--home-surface);
    text-align: center;
    text-decoration: none;
    transition: background-color var(--home-motion-fast) var(--home-ease-standard);
}

.home-quick-actions > a[hidden] {
    display: none !important;
}

.home-quick-actions > a:focus-visible {
    background: color-mix(in srgb, var(--quick-accent) 7%, var(--home-surface));
}

.home-quick-actions > a:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--home-ink);
    outline-offset: -3px;
}

.home-quick-actions > a[data-quick-tone="orange"] { --quick-accent: var(--home-orange); }
.home-quick-actions > a[data-quick-tone="green"] { --quick-accent: var(--home-green); }
.home-quick-actions > a[data-quick-tone="violet"] { --quick-accent: var(--home-violet); }
.home-quick-actions > a[data-quick-tone="blue"] { --quick-accent: var(--home-blue); }
.home-quick-actions > a[data-quick-tone="rose"] { --quick-accent: var(--home-rose); }

.home-quick-actions__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--quick-accent);
    background: color-mix(in srgb, var(--quick-accent) 11%, var(--home-surface));
    transition:
        background-color var(--home-motion-fast) var(--home-ease-standard),
        transform var(--home-motion-press) var(--home-ease-standard);
}

.home-quick-actions > a:active .home-quick-actions__icon {
    transform: scale(.96);
}

.home-quick-actions__icon svg {
    width: 22px;
    height: 22px;
}

.home-quick-actions__icon svg * {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-quick-actions > a > span:last-child {
    overflow: hidden;
    font-size: .78rem;
    font-weight: 760;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* New exams use a compact activity strip. */
.home-active-exams,
.app-home-main > .home-active-exams:not([hidden]) {
    position: relative;
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    margin: 34px 0 0 !important;
    padding: 18px 0 !important;
    border: 0 !important;
    border-block: 1px solid var(--home-rule) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    animation: home-settle var(--home-motion-settle) var(--home-ease-enter) 40ms both;
}

.home-active-exams::before {
    content: "";
    position: absolute;
    inset-block-start: -1px;
    inset-inline-start: 0;
    width: 64px;
    height: 2px;
    background: var(--home-orange);
}

.home-active-exams__head {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-content: center;
    align-items: center;
    gap: .6rem !important;
    min-width: 0;
    padding: 0 !important;
}

.home-active-exams__signal {
    display: grid !important;
    width: 9px !important;
    height: 9px !important;
    place-items: center;
    border: 0 !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--home-orange) 22%, transparent) !important;
    box-shadow: none !important;
}

.home-active-exams__signal::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--home-orange);
}

.home-active-exams__signal span {
    display: none !important;
}

.home-active-exams__heading {
    min-width: 0;
}

.home-active-exams__eyebrow {
    display: block;
    margin: 0 0 .12rem;
    color: var(--home-orange);
    font-size: .62rem;
    font-weight: 730;
    line-height: 1.3;
}

.home-active-exams__eyebrow::before {
    content: none !important;
}

.home-active-exams__heading h3 {
    margin: 0 !important;
    color: var(--home-ink) !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
}

.home-active-exams__heading p {
    display: none !important;
}

.home-active-exams__count {
    display: grid !important;
    min-width: 26px !important;
    height: 26px !important;
    place-items: center;
    padding: 0 !important;
    border: 1px solid color-mix(in srgb, var(--home-orange) 28%, var(--home-line)) !important;
    border-radius: 50% !important;
    color: var(--home-orange) !important;
    background: transparent !important;
    font-size: .66rem !important;
    box-shadow: none !important;
}

.home-active-exams__list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    min-width: 0;
}

.home-active-exam {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .7rem !important;
    min-width: 0;
    min-height: 68px !important;
    padding: .45rem .85rem !important;
    border: 0 !important;
    border-inline-start: 1px solid var(--home-rule) !important;
    border-radius: 0 !important;
    color: var(--home-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none;
    transition: background-color var(--home-motion-fast) var(--home-ease-standard) !important;
}

.home-active-exam:first-child {
    border-inline-start: 0 !important;
}

.home-active-exam:focus-visible {
    transform: none !important;
    background: color-mix(in srgb, var(--home-orange) 6%, transparent) !important;
    box-shadow: none !important;
}

.home-active-exam:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--home-ink);
    outline-offset: -2px;
}

.home-active-exam__index {
    display: grid !important;
    width: 28px !important;
    height: 28px !important;
    place-items: center;
    border: 0 !important;
    border-radius: 9px !important;
    color: var(--home-orange) !important;
    background: color-mix(in srgb, var(--home-orange) 10%, var(--home-surface)) !important;
    font-size: .68rem !important;
    font-weight: 800 !important;
    transition:
        background-color var(--home-motion-fast) var(--home-ease-standard),
        transform var(--home-motion-press) var(--home-ease-standard);
}

.home-active-exam:active .home-active-exam__index {
    transform: scale(.95);
}

.home-active-exam__copy {
    display: block !important;
    min-width: 0;
}

.home-active-exam__copy strong {
    display: block;
    overflow: hidden;
    color: var(--home-ink) !important;
    font-size: .8rem !important;
    font-weight: 810 !important;
    line-height: 1.45 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-active-exam__meta {
    display: block !important;
    margin-bottom: .1rem;
    color: var(--home-muted) !important;
    font-size: .6rem !important;
    line-height: 1.35 !important;
}

.home-active-exam__copy small {
    display: none !important;
}

.home-active-exam__arrow {
    color: var(--home-muted) !important;
    font-size: .88rem !important;
    transition:
        color var(--home-motion-fast) var(--home-ease-standard),
        transform var(--home-motion-base) var(--home-ease-standard) !important;
}

.home-active-exam:focus-visible .home-active-exam__arrow {
    color: var(--home-orange) !important;
    transform: translateX(-2px) !important;
}

/* Directory: section rows with icon controls, not a field of cards. */
.home-directory {
    margin: 44px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: home-settle var(--home-motion-settle) var(--home-ease-enter) 48ms both;
}

.home-section-heading,
.home-section-heading--directory {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 0 13px !important;
    border: 0 !important;
    background: transparent !important;
}

.home-section-heading__eyebrow {
    display: none !important;
    margin: 0 0 .1rem;
    color: var(--home-muted);
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-section-heading__eyebrow::before {
    content: none !important;
}

.home-section-heading h2 {
    margin: 0 !important;
    color: var(--home-ink) !important;
    font-size: 1.12rem !important;
    font-weight: 860 !important;
    line-height: 1.4 !important;
}

.home-service-groups,
.app-home-main .home-service-groups {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-service-group,
.app-home-main .home-service-group[data-owner-only]:not([hidden]),
.app-home-main .home-service-group:has(.home-service-link:nth-child(4)) {
    --group-accent: var(--home-cyan);
    display: grid !important;
    grid-column: auto !important;
    grid-template-columns: 160px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 16px 0 !important;
    border: 0 !important;
    border-block-start: 1px solid var(--home-rule) !important;
    border-radius: 0 !important;
    color: var(--home-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    contain: none !important;
    content-visibility: visible !important;
    transition: none !important;
}

.home-service-group[data-tone="owner"] { --group-accent: var(--home-violet); }
.home-service-group[data-tone="green"] { --group-accent: var(--home-green); }
.home-service-group[data-tone="orange"] { --group-accent: var(--home-orange); }

.home-service-group::before,
.home-service-group::after {
    content: none !important;
}

.home-service-group:hover {
    transform: none !important;
    box-shadow: none !important;
}

.home-service-group__head {
    display: flex !important;
    min-width: 0;
    align-items: center;
    justify-content: flex-start !important;
    gap: .55rem;
    padding: 0 !important;
    text-align: right !important;
}

.home-service-group__head::before {
    content: "";
    position: static !important;
    inset: auto !important;
    width: 14px !important;
    height: 3px !important;
    flex: 0 0 auto;
    border-radius: 999px !important;
    background: var(--group-accent);
}

.home-service-group__head::after {
    content: none !important;
    display: none !important;
}

.home-service-group__head .portal-section-title {
    margin: 0 !important;
    color: var(--home-ink) !important;
    font-size: .78rem !important;
    font-weight: 760 !important;
    line-height: 1.5 !important;
}

.home-service-group__head .portal-section-title::before,
.home-service-group__head .portal-section-title::after {
    content: none !important;
}

.home-service-strip,
.app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-strip,
.app-home-main .home-service-group:has(.home-service-link:nth-child(4)) .home-service-strip {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)) !important;
    gap: 0 !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.home-service-link {
    --service-accent: var(--group-accent);
    position: relative;
    display: flex !important;
    min-width: 0;
    min-height: 88px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .52rem !important;
    margin: 0 !important;
    padding: .6rem .35rem !important;
    border: 0 !important;
    border-inline-start: 1px solid var(--home-rule) !important;
    border-radius: 0 !important;
    color: var(--home-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    direction: rtl;
    text-align: center !important;
    text-decoration: none;
    transition: background-color var(--home-motion-fast) var(--home-ease-standard) !important;
}

.home-service-link:first-child {
    border-inline-start: 0 !important;
}

.home-service-link:nth-child(4n + 2),
.home-service-link:nth-child(4n + 3),
.home-service-link:nth-child(4n) {
    --service-accent: var(--group-accent) !important;
}

.home-service-link::after {
    content: none !important;
}

.home-service-link:focus-visible {
    transform: none !important;
    color: var(--home-ink) !important;
    border-color: var(--home-rule) !important;
    background: color-mix(in srgb, var(--service-accent) 6%, transparent) !important;
    box-shadow: none !important;
}

.home-service-link:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--home-ink);
    outline-offset: -2px;
}

.home-service-link__icon {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 auto;
    place-items: center;
    border: 0 !important;
    border-radius: 12px !important;
    color: var(--service-accent) !important;
    background: color-mix(in srgb, var(--service-accent) 10%, var(--home-surface)) !important;
    box-shadow: none !important;
    transition:
        background-color var(--home-motion-fast) var(--home-ease-standard),
        transform var(--home-motion-press) var(--home-ease-standard) !important;
}

.home-service-link:focus-visible .home-service-link__icon {
    transform: none !important;
    background: color-mix(in srgb, var(--service-accent) 16%, var(--home-surface)) !important;
}

.home-service-link:active .home-service-link__icon {
    transform: scale(.96) !important;
}

.home-service-link__icon::after {
    content: none !important;
    display: none !important;
}

.home-service-link__icon svg {
    width: 21px !important;
    height: 21px !important;
}

.home-service-link__icon svg * {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-service-link__meta {
    display: block !important;
    min-width: 0;
}

.home-service-link__meta strong {
    display: -webkit-box !important;
    overflow: hidden;
    color: currentColor !important;
    font-size: .76rem !important;
    font-weight: 740 !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-service-link__meta small {
    display: none !important;
}

/* Install prompt appears as a utility notice, not a promotional card. */
.app-home-main > .home-promo-card:not([hidden]) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .85rem !important;
    margin: 28px 0 0 !important;
    padding: 14px 0 !important;
    border: 0 !important;
    border-block: 1px solid var(--home-line) !important;
    border-radius: 0 !important;
    color: var(--home-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    contain: none !important;
    content-visibility: visible !important;
}

.home-promo-card__visual {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    place-items: center;
    padding: 7px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--home-surface-soft) !important;
    box-shadow: none !important;
}

.home-promo-card__visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.home-promo-card__copy {
    min-width: 0;
}

.home-promo-card__copy .portal-section-title,
.home-promo-card__copy p,
.home-promo-card .shell-install-hint {
    display: none !important;
}

.home-promo-card h3 {
    margin: 0 !important;
    color: var(--home-ink) !important;
    font-size: .78rem !important;
    font-weight: 790 !important;
    line-height: 1.45 !important;
}

.home-promo-card__actions {
    display: flex !important;
    align-items: center;
    gap: .45rem !important;
}

.home-promo-card__actions .shell-action-btn {
    min-height: 36px !important;
    padding: .4rem .7rem !important;
    border-radius: 10px !important;
    font-size: .68rem !important;
}

body.app-dashboard-page .site-footer {
    display: none !important;
}

@keyframes home-settle {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-nav-icon-settle {
    from {
        opacity: .72;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes home-nav-label-settle {
    from {
        opacity: 0;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.app-dashboard-page .shell-bottom-nav__link:active,
body.app-dashboard-page .shell-bottom-nav__link.is-active:active {
    transform: scale(.97);
    transition-duration: var(--home-motion-press);
}

@media (prefers-reduced-motion: no-preference) {
    body.app-dashboard-page .shell-bottom-nav__link.is-active .shell-bottom-nav__icon {
        animation: home-nav-icon-settle var(--home-motion-base) var(--home-ease-enter) both;
    }

    body.app-dashboard-page .shell-bottom-nav__link.is-active .shell-bottom-nav__label {
        animation: home-nav-label-settle var(--home-motion-fast) var(--home-ease-enter) both;
    }
}

@media (hover: hover) and (pointer: fine) {
    .home-quick-actions > a:hover {
        background: color-mix(in srgb, var(--quick-accent) 7%, var(--home-surface));
    }

    .home-active-exam:hover {
        transform: none !important;
        background: color-mix(in srgb, var(--home-orange) 6%, transparent) !important;
        box-shadow: none !important;
    }

    .home-active-exam:hover .home-active-exam__arrow {
        color: var(--home-orange) !important;
        transform: translateX(-2px) !important;
    }

    .home-service-link:hover {
        transform: none !important;
        color: var(--home-ink) !important;
        border-color: var(--home-rule) !important;
        background: color-mix(in srgb, var(--service-accent) 6%, transparent) !important;
        box-shadow: none !important;
    }

    .home-service-link:hover .home-service-link__icon {
        background: color-mix(in srgb, var(--service-accent) 16%, var(--home-surface)) !important;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .home-quick-actions > a:hover .home-quick-actions__icon,
    .home-service-link:hover .home-service-link__icon {
        transform: translateY(-1px) !important;
    }
}

@media (max-width: 900px) {
    body.app-dashboard-page main.app-home-main {
        width: min(720px, calc(100% - 28px)) !important;
    }

    .home-quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-quick-actions[data-visible-count="1"] { grid-template-columns: minmax(0, 1fr) !important; }
    .home-quick-actions[data-visible-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .home-quick-actions[data-visible-count="3"],
    .home-quick-actions[data-visible-count="4"],
    .home-quick-actions[data-visible-count="5"],
    .home-quick-actions[data-visible-count="6"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-active-exams,
    .app-home-main > .home-active-exams:not([hidden]) {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .home-active-exams__head {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
    }

    .home-service-group,
    .app-home-main .home-service-group[data-owner-only]:not([hidden]),
    .app-home-main .home-service-group:has(.home-service-link:nth-child(4)) {
        grid-template-columns: 132px minmax(0, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 620px) {
    :root {
        --home-nav-space: 82px;
    }

    body.app-dashboard-page .site-header.site-header--app {
        min-height: calc(58px + env(safe-area-inset-top, 0px));
        padding-inline: max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-left, 0px));
    }

    body.app-dashboard-page .site-header--app .site-info h1 {
        font-size: .78rem;
    }

    body.app-dashboard-page main.app-home-main {
        width: calc(100% - 24px) !important;
        padding-bottom: calc(var(--home-nav-space) + 28px) !important;
    }

    .home-dashboard-head {
        min-height: 84px;
        padding-block: 17px 13px;
    }

    .home-kicker {
        font-size: .62rem;
    }

    .home-dashboard-head h2 {
        margin-top: .18rem;
        font-size: 1.45rem;
    }

    .home-dashboard-head__mark {
        transform: scale(.86);
        transform-origin: left center;
    }

    .home-quick-actions {
        border-radius: 14px !important;
    }

    .home-quick-actions[data-visible-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-quick-actions > a {
        min-height: 88px;
        gap: .42rem;
        padding: .62rem .22rem;
    }

    .home-quick-actions__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .home-quick-actions__icon svg {
        width: 21px;
        height: 21px;
    }

    .home-quick-actions > a > span:last-child {
        font-size: .72rem;
    }

    .home-active-exams,
    .app-home-main > .home-active-exams:not([hidden]) {
        margin-top: 24px !important;
        padding-block: 14px !important;
    }

    .home-active-exams__list {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .home-active-exam {
        min-height: 60px !important;
        padding: .4rem .35rem !important;
        border-inline-start: 0 !important;
        border-block-start: 1px solid var(--home-rule) !important;
    }

    .home-active-exam:first-child {
        border-block-start: 0 !important;
    }

    .home-directory {
        margin-top: 30px !important;
    }

    .home-section-heading,
    .home-section-heading--directory {
        min-height: 42px;
        padding-bottom: 10px !important;
    }

    .home-section-heading h2 {
        font-size: 1rem !important;
    }

    .home-service-group,
    .app-home-main .home-service-group[data-owner-only]:not([hidden]),
    .app-home-main .home-service-group:has(.home-service-link:nth-child(4)) {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 13px 0 !important;
    }

    .home-service-group__head {
        min-height: 24px;
    }

    html body.app-dashboard-page main.app-home-main .home-service-group__head {
        min-height: 24px !important;
        padding: 0 !important;
        border: 0 !important;
    }

    html body.app-dashboard-page main.app-home-main .home-service-group__head::before {
        position: static !important;
        inset: auto !important;
        width: 14px !important;
        height: 3px !important;
        border-radius: 999px !important;
    }

    .home-service-group__head .portal-section-title {
        font-size: .72rem !important;
    }

    .home-service-strip,
    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-strip,
    .app-home-main .home-service-group:has(.home-service-link:nth-child(4)) .home-service-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-service-strip:has(> .home-service-link:nth-child(4):last-child),
    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-strip:has(> .home-service-link:nth-child(4):last-child),
    .app-home-main .home-service-group:has(.home-service-link:nth-child(4)) .home-service-strip:has(> .home-service-link:nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-service-link {
        min-height: 80px !important;
        gap: .4rem !important;
        padding: .5rem .2rem !important;
    }

    .home-service-link:nth-child(3n + 1) {
        border-inline-start: 0 !important;
    }

    .home-service-link:nth-child(3n + 2),
    .home-service-link:nth-child(3n + 3) {
        border-inline-start: 1px solid var(--home-rule) !important;
    }

    .home-service-strip:has(> .home-service-link:nth-child(4):last-child) .home-service-link:nth-child(odd),
    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-strip:has(> .home-service-link:nth-child(4):last-child) .home-service-link:nth-child(odd),
    .app-home-main .home-service-group:has(.home-service-link:nth-child(4)) .home-service-strip:has(> .home-service-link:nth-child(4):last-child) .home-service-link:nth-child(odd) {
        border-inline-start: 0 !important;
    }

    .home-service-strip:has(> .home-service-link:nth-child(4):last-child) .home-service-link:nth-child(even),
    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-strip:has(> .home-service-link:nth-child(4):last-child) .home-service-link:nth-child(even),
    .app-home-main .home-service-group:has(.home-service-link:nth-child(4)) .home-service-strip:has(> .home-service-link:nth-child(4):last-child) .home-service-link:nth-child(even) {
        border-inline-start: 1px solid var(--home-rule) !important;
    }

    .home-service-link__icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
    }

    .home-service-link__icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .home-service-link__meta strong {
        font-size: .72rem !important;
        font-weight: 720 !important;
        line-height: 1.45 !important;
    }

    .app-home-main > .home-promo-card:not([hidden]) {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    .home-promo-card__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 350px) {
    body.app-dashboard-page main.app-home-main {
        width: calc(100% - 18px) !important;
    }

    .home-service-strip,
    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-strip,
    .app-home-main .home-service-group:has(.home-service-link:nth-child(4)) .home-service-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-service-link:nth-child(odd) {
        border-inline-start: 0 !important;
    }

    .home-service-link:nth-child(even) {
        border-inline-start: 1px solid var(--home-rule) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.app-dashboard-page .site-header.site-header--app,
    .home-dashboard-head,
    .home-quick-actions,
    .home-active-exams,
    .home-directory,
    body.app-dashboard-page .shell-bottom-nav__link.is-active .shell-bottom-nav__icon,
    body.app-dashboard-page .shell-bottom-nav__link.is-active .shell-bottom-nav__label {
        animation: none !important;
        transition: none !important;
    }

    .home-quick-actions > a,
    .home-quick-actions__icon,
    .home-service-link,
    .home-service-link__icon,
    .home-active-exam,
    .home-active-exam__index,
    .home-active-exam__arrow {
        transition: none !important;
    }

    .home-quick-actions__icon,
    .home-service-link__icon,
    .home-active-exam__index,
    .home-active-exam__arrow {
        transform: none !important;
    }
}

/* Dynamic auth/cohort sections must stay absent even when older shared rules
 * carry more specific display declarations. */
html body.app-dashboard-page main.app-home-main .home-service-group[hidden],
html body.app-dashboard-page main.app-home-main > .home-active-exams[hidden],
html body.app-dashboard-page main.app-home-main > .home-promo-card[hidden],
html body.app-dashboard-page main.app-home-main > .portal-panel--identity[hidden],
html body.app-dashboard-page main.app-home-main > .home-story[hidden] {
    display: none !important;
}

/* Mobile refinement: keep the approved dashboard language, but give long
 * owner tools enough room to stay readable instead of ellipsizing in thirds. */
@media (max-width: 620px) {
    body.app-dashboard-page main.app-home-main {
        width: calc(100% - 20px) !important;
    }

    .home-dashboard-head {
        min-height: 72px;
        padding-block: 11px 9px;
    }

    .home-dashboard-head h2 {
        font-size: 1.28rem;
    }

    .home-dashboard-head__mark {
        transform: scale(.76);
    }

    .home-quick-actions > a {
        min-height: 76px;
        gap: .3rem;
        padding-block: .48rem;
    }

    .home-quick-actions__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .home-directory {
        margin-top: 22px !important;
    }

    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-link {
        min-height: 68px !important;
        display: grid !important;
        grid-template-columns: 32px minmax(0, 1fr) !important;
        align-items: center !important;
        justify-items: stretch !important;
        gap: .58rem !important;
        padding: .55rem .38rem !important;
        border-inline-start: 1px solid var(--home-rule) !important;
        text-align: start !important;
    }

    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-link:nth-child(odd) {
        border-inline-start: 0 !important;
    }

    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-link__icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
    }

    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-link__meta {
        min-width: 0;
        text-align: start !important;
    }

    .app-home-main .home-service-group[data-owner-only]:not([hidden]) .home-service-link__meta strong {
        display: block !important;
        overflow: visible !important;
        font-size: .7rem !important;
        line-height: 1.55 !important;
        overflow-wrap: anywhere;
        text-overflow: clip !important;
        white-space: normal !important;
        -webkit-line-clamp: unset;
    }
}
