:root {
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    color: #173542;
    background: #f2f6f7;
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
a { color: #086e8a; }
a:hover { color: #075a71; }
:focus-visible { outline: 3px solid #f3702c; outline-offset: 2px; }

.app-header { background: #fff; box-shadow: 0 2px 14px rgba(12, 54, 70, .12); }
.app-nav { align-items: center; display: flex; gap: 1.5rem; margin: auto; max-width: 1200px; min-height: 72px; padding: .7rem 1.5rem; }
.app-brand { align-items: center; color: #086e8a; display: inline-flex; flex-shrink: 0; font-size: 1.35rem; font-weight: 800; gap: .55rem; text-decoration: none; }
.app-brand img { display: block; height: 44px; width: 44px; }
.app-brand sup { font-size: .55em; font-weight: 400; vertical-align: super; }
.app-links { align-items: center; display: flex; flex: 1; flex-wrap: wrap; gap: .45rem 1.25rem; justify-content: flex-end; }
.app-links a { color: #315765; font-size: .94rem; font-weight: 600; text-decoration: none; }
.app-links a:hover, .app-links a:focus-visible { color: #c52a2a; text-decoration: underline; }
.app-sign-in, .app-logout button { background: #086e8a; border: 0; border-radius: 5px; color: #fff; display: inline-block; font-weight: 700; margin: 0; padding: .65rem 1.1rem; text-decoration: none; white-space: nowrap; }
.app-sign-in:hover, .app-logout button:hover { background: #075a71; color: #fff; }
.app-logout { flex-shrink: 0; margin: 0; }

.app-main { background: #fff; border-top: 5px solid #2bc069; border-radius: 6px; box-shadow: 0 5px 24px rgba(12, 54, 70, .08); margin: 1.6rem auto 3rem; max-width: 1150px; min-height: 40vh; overflow-x: auto; padding: clamp(1.25rem, 3vw, 2.5rem); width: calc(100% - 2rem); }
#main-page-container.app-main { margin: 1.6rem auto 3rem; }
.app-main h1 { color: #086e8a; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; margin: 0 0 1.2rem; text-align: left; text-transform: none; }
.app-main h2 { color: #bf2b2b; font-size: 1.5rem; line-height: 1.3; margin: 1.8rem 0 .9rem; }
.app-main h3, .app-main h4 { color: #086e8a; line-height: 1.35; margin: 1.3rem 0 .5rem; }
.app-main p, .app-main li, .app-main dd { line-height: 1.6; }
.app-main p { margin: .7rem 0 1rem; }
.app-main ul, .app-main ol { padding-left: 1.5rem; }
.app-main article { border-bottom: 1px solid #e3eaed; padding: .7rem 0 1.2rem; }
.app-main article:last-child { border-bottom: 0; }
.app-main > a { display: inline-block; margin: .65rem 1rem .35rem 0; }
.app-main nav:not(.pagination) { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: .8rem 0 1.2rem; }
.app-error-page { margin: clamp(1rem, 4vw, 3rem) auto; max-width: 38rem; text-align: center; }
.app-error-page .app-error-code { color: #f3702c; font-size: 3rem; font-weight: 800; line-height: 1; margin: 0 0 .8rem; }
.app-main .app-error-page h1 { text-align: center; }
.app-error-page a { background: #086e8a; border-radius: 5px; color: #fff; display: inline-block; font-weight: 700; margin-top: .5rem; padding: .7rem 1.2rem; text-decoration: none; }
.app-error-page a:hover { background: #075a71; color: #fff; }

.app-main label { color: #173f4e; display: block; font-weight: 700; margin: 1rem 0 .35rem; }
.app-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .app-main select, .app-main textarea { background: #fff; border: 1px solid #9abdc4; border-radius: 5px; color: #173542; display: block; margin-top: .35rem; max-width: 40rem; min-height: 44px; padding: .65rem .8rem; width: 100%; }
.app-main textarea { min-height: 7rem; resize: vertical; }
.app-main input[type="checkbox"], .app-main input[type="radio"] { margin-right: .35rem; vertical-align: middle; }
.app-main button, .app-main input[type="submit"] { background: #086e8a; border: 0; border-radius: 5px; color: #fff; cursor: pointer; display: inline-block; font-weight: 700; margin-top: 1rem; min-height: 44px; padding: .65rem 1.2rem; width: auto; }
.app-main button:hover, .app-main input[type="submit"]:hover { background: #075a71; }
.app-main [role="alert"] { background: #fff0ef; border-left: 4px solid #c52a2a; border-radius: 4px; color: #842422; padding: .75rem 1rem; }
.app-main [role="status"] { background: #e6f8ed; border-left: 4px solid #187d4d; border-radius: 4px; color: #14583b; padding: .75rem 1rem; }
.app-main table { border-collapse: collapse; margin: 1.2rem 0; width: 100%; }
.app-main th, .app-main td { border-bottom: 1px solid #dce7e9; padding: .7rem; text-align: left; vertical-align: top; }
.app-main th { background: #eaf4f5; color: #073f4e; }
.app-main dl dt { font-weight: 700; margin-top: 1rem; }
.app-main dl dd { margin: .25rem 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.25rem 0; }

.legacy-public .col-xs-2 { display: none; }
.legacy-public .col-xs-8 { width: 100%; }
.legacy-public h2 img { height: 46px; object-fit: contain; vertical-align: middle; width: auto; }

.app-footer { align-items: center; background: #083d4d; color: #fff; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: auto; padding: 1.25rem max(1.5rem, calc((100vw - 1100px) / 2)); }
.app-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; }
.app-footer a { color: #fff; font-size: .86rem; text-decoration: none; }
.app-footer a:hover { color: #fff; text-decoration: underline; }
.app-footer span { font-size: .86rem; white-space: nowrap; }

@media (max-width: 850px) {
    .app-nav { flex-wrap: wrap; gap: .6rem 1rem; }
    .app-links { flex-basis: 100%; justify-content: flex-start; order: 3; }
    .app-sign-in, .app-logout { margin-left: auto; }
}

@media (max-width: 520px) {
    .app-nav { padding: .75rem 1rem; }
    .app-brand { font-size: 1.15rem; }
    .app-links { gap: .45rem .9rem; }
    .app-links a { font-size: .85rem; }
    .app-main { margin: 1rem auto 2rem; width: calc(100% - 1rem); }
    #main-page-container.app-main { margin: 1rem auto 2rem; }
}

/* Signed-in workspace keeps the familiar orange top bar and right-hand menu. */
.app-header-signed-in { background: #f96736; }
.app-header-signed-in .app-brand, .app-header-signed-in .app-account-links a { color: #fff; }
.app-header-signed-in .app-brand img { border-radius: 5px; }
.app-account-links { align-items: center; display: flex; flex: 1; flex-wrap: wrap; gap: .45rem 1.2rem; justify-content: flex-end; }
.app-account-links a { font-size: .92rem; font-weight: 700; text-decoration: none; }
.app-account-links a:hover { text-decoration: underline; }
.app-header-signed-in .app-logout button { background: #a53620; min-height: 38px; padding: .4rem .8rem; }
.app-auth-shell { align-items: start; display: grid; flex: 1; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) 235px; margin: 1.6rem auto 3rem; max-width: 1440px; padding: 0 1rem; width: 100%; }
.app-auth-shell .app-main { grid-column: 1; grid-row: 1; margin: 0; max-width: none; min-width: 0; width: 100%; }
.app-sidebar { background: #fff; border-top: 5px solid #2bc069; border-radius: 6px; box-shadow: 0 5px 24px rgba(12, 54, 70, .08); grid-column: 2; grid-row: 1; overflow: hidden; }
.app-sidebar nav { display: flex; flex-direction: column; padding: .45rem; }
.app-sidebar a { align-items: center; border-radius: 5px; color: #244957; display: flex; font-size: .93rem; font-weight: 600; gap: .7rem; padding: .72rem .75rem; text-decoration: none; }
.app-sidebar a .fa { color: #0d7893; font-size: 1.05rem; text-align: center; width: 1.2rem; }
.app-sidebar a:hover, .app-sidebar a[aria-current="page"] { background: #e8f5f5; color: #075a71; }
.app-sidebar a[aria-current="page"] { box-shadow: inset 3px 0 #2bc069; }

/* Shared signed-in page treatment. Route content remains ordinary links and forms. */
.app-auth-shell .app-main h1::before { color: #0a6c86; display: inline-block; font-family: FontAwesome; font-size: .76em; font-weight: normal; margin-right: .55rem; vertical-align: .06em; }
body[data-section="home"] .app-main h1::before { content: "\f015"; }
body[data-section="contacts"] .app-main h1::before { content: "\f0c0"; }
body[data-section="connections"] .app-main h1::before { content: "\f0c1"; }
body[data-section="organizations"] .app-main h1::before { content: "\f0f7"; }
body[data-section="events"] .app-main h1::before { content: "\f073"; }
body[data-section="conversations"] .app-main h1::before { content: "\f0e6"; }
body[data-section="appointments"] .app-main h1::before { content: "\f017"; }
body[data-section="listings"] .app-main h1::before { content: "\f03a"; }
body[data-section="billing"] .app-main h1::before { content: "\f09d"; }
.subscription-plan-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.25rem 0; }
.app-auth-shell .app-main .subscription-plan { background: #f8fbfc; border: 1px solid #dce7e9; border-radius: 7px; margin: 0; padding: 1.2rem; }
.app-auth-shell .app-main .subscription-plan-current { border-color: #2bc069; box-shadow: inset 0 4px #2bc069; }
.subscription-plan h2 { margin: 0 0 .3rem; }
.subscription-plan-badge { background: #def6e7; border-radius: 3px; color: #17633c; display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .45rem; }
.subscription-price { color: #173542; font-size: 1.15rem; font-weight: 700; margin: .8rem 0 .2rem; }
.subscription-option { border-bottom: 1px solid #dce7e9; padding-bottom: .85rem; }
.subscription-option:last-of-type { border-bottom: 0; }
.subscription-option form button { margin-top: .5rem; }
.subscription-limits { color: #365967; list-style: none; margin: 1rem 0 0; padding: 0; }
.subscription-limits li { border-top: 1px solid #dce7e9; padding: .35rem 0; }
.organization-role { color: #59737d; display: block; margin: .3rem 0 0 1.3rem; }
.living-event-card small { color: #59737d; display: block; margin: .3rem 0 0 1.3rem; }
body[data-section="account"] .app-main h1::before { content: "\f007"; }
.app-auth-shell .app-main h2 { color: #0a6c86; }
.app-auth-shell .app-main > form, .app-auth-shell .workspace-page > form { background: #f8fbfc; border: 1px solid #dce7e9; border-radius: 6px; margin: 1rem 0 1.5rem; padding: 1rem 1.25rem; }
.app-auth-shell .app-main > ul, .app-auth-shell .workspace-page > ul, .app-auth-shell .workspace-page > ol { list-style: none; margin: 1rem 0; padding: 0; }
.app-auth-shell .app-main > ul > li, .app-auth-shell .workspace-page > ul > li, .app-auth-shell .workspace-page > ol > li { background: #f8fbfc; border: 1px solid #dce7e9; border-radius: 6px; margin: .55rem 0; padding: .8rem 1rem; }
.app-auth-shell .app-main > ul > li > a, .app-auth-shell .workspace-page > ul > li > a { font-weight: 700; text-decoration: none; }
.app-auth-shell .app-main > ul > li > a:hover, .app-auth-shell .workspace-page > ul > li > a:hover { text-decoration: underline; }
.app-auth-shell .workspace-page { min-width: 0; width: 100%; }
.app-auth-shell .app-main .workspace-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.2rem; }
.app-auth-shell .app-main .workspace-actions a { align-items: center; background: #f3fafb; border: 1px solid #bed7dc; border-radius: 5px; color: #086e8a; display: inline-flex; font-size: .89rem; font-weight: 700; gap: .4rem; margin: 0; padding: .5rem .75rem; text-decoration: none; }
.app-auth-shell .app-main .workspace-actions a:hover { background: #e3f3f5; border-color: #0a6c86; }
.app-auth-shell .app-main .workspace-actions a .fa { font-size: 1rem; }
.app-auth-shell .app-main .workspace-detail { background: #f8fbfc; border: 1px solid #dce7e9; border-radius: 6px; margin: 1rem 0; padding: 1rem 1.25rem; }
.app-auth-shell .app-main .workspace-detail dt:first-child { margin-top: 0; }
.app-auth-shell .app-main > section, .app-auth-shell .workspace-page > section { background: #f8fbfc; border: 1px solid #dce7e9; border-radius: 6px; margin: 1rem 0; padding: 1rem 1.25rem; }
.app-auth-shell .app-main > section h2:first-child, .app-auth-shell .workspace-page > section h2:first-child { margin-top: 0; }
.app-auth-shell .app-main > ul > li .fa, .app-auth-shell .workspace-page > ul > li .fa { color: #0a6c86; margin-right: .35rem; }
.conversation-summary h2 { font-size: 1.15rem; margin: 0 0 .35rem; }
.conversation-summary h2 a { color: #086e8a; text-decoration: none; }
.conversation-summary h2 a:hover { text-decoration: underline; }
.conversation-summary p { margin: .4rem 0; }
.conversation-summary .conversation-meta { color: #68808a; font-size: .85rem; }
.conversation-summary .conversation-meta .fa-clock-o { margin-left: .7rem; }
.conversation-summary .conversation-unread, .conversation-summary .conversation-closed { border-radius: 4px; display: inline-block; font-size: .78rem; margin-right: .4rem; padding: .2rem .45rem; }
.conversation-summary .conversation-unread { background: #fff0c5; color: #694c00; }
.conversation-summary .conversation-closed { background: #e8edef; color: #526873; }
.organization-contact-card { align-items: start; display: flex; gap: 1rem; }
.organization-contact-card .organization-contact-photo { border-radius: 50%; flex: 0 0 64px; height: 64px; object-fit: cover; width: 64px; }
.organization-contact-card h2 { font-size: 1.1rem; margin: 0 0 .35rem; }
.organization-contact-card p { margin: .2rem 0; overflow-wrap: anywhere; }
.organization-contact-card p .fa { color: #0a6c86; margin-right: .35rem; }
.organization-contact-card small { color: #68808a; margin-left: .25rem; }
.organization-contact-details p { margin: .3rem 0; }
.organization-contact-details .fa { color: #0a6c86; margin-right: .35rem; }
.app-auth-shell .app-main .contact-detail-choice { background: #fff; border: 1px solid #dce7e9; border-radius: 6px; margin: .75rem 0; min-width: 0; padding: .45rem .8rem .7rem; }
.app-auth-shell .app-main .contact-detail-choice legend { color: #086e8a; font-size: .9rem; font-weight: 700; padding: 0 .3rem; }
.app-auth-shell .app-main .contact-detail-choice label { align-items: start; display: flex; font-size: .88rem; font-weight: 500; gap: .35rem; margin: .3rem 0; overflow-wrap: anywhere; }
.app-auth-shell .app-main .contact-detail-choice label input { flex: 0 0 auto; margin-top: .2rem; }
.app-auth-shell .app-main .contact-detail-choice small { color: #607984; margin-left: .25rem; }
.app-auth-shell .app-main .contact-detail-choice p { color: #68808a; font-size: .86rem; margin: .2rem 0; }
.app-auth-shell .app-main .contact-association-choice summary { color: #086e8a; cursor: pointer; font-weight: 700; list-style-position: inside; }
.app-auth-shell .app-main .contact-association-choice summary span { color: #607984; font-size: .82rem; font-weight: 500; margin-left: .35rem; }
.app-auth-shell .app-main [data-infinite-list] > article, .app-auth-shell .app-main [data-infinite-list] > section, .app-auth-shell .app-main [data-infinite-list] > p, .app-auth-shell .app-main [data-infinite-list] > form { background: #f8fbfc; border: 1px solid #dce7e9; border-radius: 6px; margin: .65rem 0; padding: .8rem 1rem; }
.app-auth-shell .app-main [data-infinite-pagination] { margin: 1rem 0 1.5rem; }
.app-auth-shell .app-main [data-infinite-pagination] nav { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem; }
.app-auth-shell .app-main [data-infinite-pagination] a { border: 1px solid #bed7dc; border-radius: 4px; display: inline-block; margin: .2rem; padding: .35rem .55rem; text-decoration: none; }
.app-auth-shell .app-main [data-infinite-pagination] a:hover { background: #e9f7f9; }
.app-auth-shell .app-main [data-infinite-pagination][aria-busy="true"]::after { color: #59737d; content: "Loading more…"; display: block; font-size: .85rem; margin-top: .4rem; }
.app-auth-shell .app-main form:has(input[name="_method"][value="DELETE"]) > button { background: #a53620; }
.app-auth-shell .app-main form:has(input[name="_method"][value="DELETE"]) > button:hover { background: #842619; }
.app-auth-shell .app-main button[aria-busy="true"]::after { content: "  Working…"; font-size: .85em; font-weight: 400; }
.app-auth-shell .app-main [data-form-errors] ul { margin: 0; padding-left: 1.25rem; }

.contact-workspace-header { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-bottom: 1.2rem; }
.contact-workspace-header h1 { margin: 0; }
.contact-workspace-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; }
.app-main .contact-workspace-actions a, .app-main .contact-panel-actions a { align-items: center; border: 1px solid #bed7dc; border-radius: 5px; display: inline-flex; font-size: .87rem; font-weight: 700; gap: .35rem; margin: 0; padding: .45rem .65rem; text-decoration: none; }
.app-main .contact-workspace-actions a:hover, .app-main .contact-panel-actions a:hover { background: #e9f7f9; }
.contact-workspace { display: grid; gap: 1rem; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.35fr); min-height: 30rem; }
.contact-list-pane, .contact-detail-pane { border: 1px solid #dce7e9; border-radius: 6px; min-width: 0; overflow: hidden; }
.contact-list-pane { background: #f8fbfc; }
.app-main .contact-list-heading { background: #0a6c86; color: #fff; font-size: 1.03rem; font-weight: 700; margin: 0; padding: .75rem 1rem; }
.contact-search { padding: .7rem 1rem; }
.contact-search label { font-size: .83rem; margin: 0; }
.app-main .contact-search input { margin-top: .25rem; min-height: 38px; }
.contact-list-results { max-height: 68vh; overflow-y: auto; }
.contact-list { list-style: none; margin: 0; padding: 0 !important; }
.contact-list li { border-top: 1px solid #e3eaed; }
.contact-card { align-items: center; color: #173542; display: flex; gap: .8rem; padding: .8rem 1rem .3rem; text-decoration: none; }
.contact-card:hover, .contact-card[aria-current="page"] { background: #e9f7f9; color: #075a71; }
.contact-list-item:has(.contact-card[aria-current="page"]) { background: #e9f7f9; }
.contact-card .contact-avatar { align-items: center; background: #dbeff0; border-radius: 50%; color: #0a6c86; display: flex; flex: 0 0 3.25rem; font-size: 1.35rem; height: 3.25rem; justify-content: center; object-fit: cover; overflow: hidden; width: 3.25rem; }
.contact-card strong, .contact-card small { display: block; }
.contact-card small { color: #59737d; font-size: .79rem; margin-top: .1rem; }
.contact-card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .55rem 4.65rem; }
.app-main .contact-card-actions a, .contact-card-actions summary { align-items: center; border-radius: 4px; color: #0a6c86; cursor: pointer; display: inline-flex; font-size: 1rem; height: 1.8rem; justify-content: center; text-decoration: none; width: 1.8rem; }
.app-main .contact-card-actions a:hover, .contact-card-actions summary:hover { background: #d5edef; color: #075a71; }
.contact-card-actions summary { list-style: none; }
.contact-card-actions summary::-webkit-details-marker { display: none; }
.contact-card-delete { position: relative; }
.contact-card-delete summary { color: #a53620; }
.contact-card-delete form { background: #fff; border: 1px solid #dbb5af; border-radius: 5px; box-shadow: 0 4px 14px #17354222; padding: .65rem; position: absolute; right: 0; width: 11rem; z-index: 2; }
.contact-card-delete form p { font-size: .85rem; margin: 0 0 .5rem; }
.app-main .contact-card-delete form button { background: #a53620; font-size: .8rem; margin: 0; min-height: 2rem; padding: .25rem .5rem; }
.contact-list-results .pagination { justify-content: center; padding: .6rem; }
.contact-detail-pane { padding: 1.2rem; }
.contact-detail-pane > h2 { color: #0a6c86; font-size: 1.25rem; margin-top: 0; }
.contact-detail-pane .app-main { border: 0; box-shadow: none; margin: 0; min-height: 0; padding: 0; width: 100%; }
.contact-detail-pane[aria-busy="true"] { opacity: .6; }
.contact-detail-pane [role="alert"] { margin: .6rem 0; }
.contact-detail-pane img { border-radius: 50%; object-fit: cover; }
.contact-detail-header { align-items: center; display: flex; gap: 1rem; margin-bottom: 1rem; }
.contact-detail-header img, .contact-detail-header .contact-avatar { align-items: center; background: #dbeff0; border-radius: 50%; color: #0a6c86; display: flex; flex: 0 0 6rem; font-size: 2rem; height: 6rem; justify-content: center; object-fit: cover; width: 6rem; }
.app-main .contact-detail-header h1 { margin: 0; }
.contact-detail-header p { color: #627c86; margin: .15rem 0 0; }
.app-main .contact-panel-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.3rem; }
.contact-detail-section { border-top: 1px solid #e1ebed; margin-top: 1.2rem; padding-top: .2rem; }
.contact-section-heading { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.app-main .contact-section-heading h2 { color: #0a6c86; font-size: 1.15rem; margin: .8rem 0; }
.contact-section-heading h2 .fa { margin-right: .4rem; }
.contact-section-heading a { font-size: .85rem; font-weight: 700; text-decoration: none; }
.contact-detail-item { border-top: 1px solid #edf2f3; padding: .6rem 0; }
.contact-detail-item strong { font-weight: 600; overflow-wrap: anywhere; }
.contact-detail-item small { color: #68808a; margin-left: .3rem; }
.contact-item-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .3rem; }
.contact-item-actions a, .contact-item-actions summary { color: #08718c; cursor: pointer; font-size: .82rem; font-weight: 700; text-decoration: none; }
.contact-item-actions form { margin: 0; }
.app-main .contact-item-actions form > button { background: transparent; color: #a53620; font-size: .82rem; margin: 0; min-height: auto; padding: 0; }
.contact-inline-action { background: #f7fafb; border: 1px solid #dce7e9; border-radius: 5px; margin: .8rem 0; padding: .6rem .8rem; }
.contact-inline-action summary { color: #08718c; cursor: pointer; font-weight: 700; }
.contact-inline-action[open] summary { margin-bottom: .5rem; }
.contact-inline-action form { padding: .2rem 0 .4rem; }
.contact-danger-action summary, .contact-danger-action p { color: #9c2a20; }
.contact-danger-action button { background: #a53620; }
.dashboard-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.5rem; }
.dashboard-grid a { background: #f6fbfc; border: 1px solid #d8e8eb; border-radius: 7px; color: #173542; display: flex; flex-direction: column; min-height: 150px; padding: 1.2rem; text-decoration: none; }
.dashboard-grid a:hover { border-color: #0a6c86; box-shadow: 0 5px 18px rgba(12, 54, 70, .12); }
.dashboard-grid a .fa { color: #0a6c86; font-size: 1.6rem; margin-bottom: .7rem; }
.dashboard-grid a strong { font-size: 1.05rem; }
.dashboard-grid a span { color: #607984; font-size: .85rem; margin-top: .25rem; }

@media (max-width: 1000px) {
    .app-auth-shell { grid-template-columns: 1fr; }
    .app-sidebar { grid-column: 1; grid-row: 1; }
    .app-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .app-sidebar a { padding: .55rem .65rem; }
    .app-auth-shell .app-main { grid-row: 2; }
}
@media (max-width: 700px) {
    .contact-workspace { grid-template-columns: 1fr; }
    .contact-list-results { max-height: 18rem; }
    .app-account-links { justify-content: flex-start; }
    .app-account-links a { font-size: .82rem; }
    .contact-detail-pane { padding: .8rem; }
}
