:root {
    --font-scale: 1;
    --bg: #f6fafd;
    --surface: #ffffff;
    --surface-soft: #eef6fb;
    --text: #10304b;
    --muted: #6a8599;
    --primary: #0f7db8;
    --primary-deep: #0b4f7a;
    --accent: #18b6b0;
    --accent-soft: rgba(24, 182, 176, 0.12);
    --line: rgba(16, 48, 75, 0.1);
    --shadow: 0 24px 70px rgba(15, 77, 120, 0.12);
    --radius: 22px;
    --radius-sm: 16px;
    --page-gutter: clamp(1rem, 2.2vw, 2.5rem);
}

html {
    font-size: calc(15px * var(--font-scale));
    scroll-behavior: smooth;
}

html[data-font-size="xsmall"] { --font-scale: 0.87; }
html[data-font-size="small"] { --font-scale: 0.93; }
html[data-font-size="normal"] { --font-scale: 1; }
html[data-font-size="large"] { --font-scale: 1.08; }
html[data-font-size="xlarge"] { --font-scale: 1.16; }

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(24, 182, 176, 0.18), transparent 25%),
        linear-gradient(180deg, #f8fcff 0%, #f4f8fb 50%, #f8fbfd 100%);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: 100%;
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(248, 252, 255, 0.84);
    border-bottom: 1px solid rgba(15, 77, 120, 0.08);
}

.topbar-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 0;
}

.topbar-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
    width: 100%;
}

.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.brand-block:hover,
.brand-block:focus-visible {
    color: var(--primary-deep);
}

.brand-block:focus-visible {
    outline: 3px solid rgba(15, 125, 184, 0.28);
    outline-offset: 5px;
    border-radius: 18px;
}

.brand-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.brand-mark {
    width: clamp(50px, 5.4vw, 76px);
    height: clamp(50px, 5.4vw, 76px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-block strong {
    display: block;
    font-size: 1.17rem;
    letter-spacing: 0.03em;
}

.brand-block small {
    display: block;
    color: var(--muted);
    margin-top: 0.2rem;
}

.toolbar-account-summary {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 77, 120, 0.08);
    color: var(--primary-deep);
    line-height: 1.2;
}

.toolbar-account-summary strong,
.toolbar-account-summary span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar-account-summary strong {
    font-size: 0.82rem;
    letter-spacing: 0;
}

.toolbar-account-summary span {
    color: var(--muted);
    font-size: 0.74rem;
}

.toolbar-subscription-status {
    min-width: 0;
    max-width: 26rem;
    padding: 0.45rem 0.8rem;
    border-radius: 16px;
    background: rgba(235, 248, 243, 0.95);
    border: 1px solid rgba(24, 182, 176, 0.18);
    color: var(--primary-deep);
    line-height: 1.3;
}

.toolbar-subscription-status.is-locked {
    background: rgba(255, 240, 232, 0.94);
    border-color: rgba(188, 95, 43, 0.2);
    color: #7b4516;
    max-width: 30rem;
}

.toolbar-subscription-status span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
}

.toolbar-subscription-status strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
}

.toolbar-subscription-status.is-locked span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    line-height: 1.18;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-deep);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle-icon {
    font-size: 1.07rem;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 0.9vw, 0.8rem);
    flex-wrap: nowrap;
    min-width: 0;
    flex: 1 1 560px;
}

.main-nav a,
.main-nav button {
    position: relative;
    color: var(--primary-deep);
    font-weight: 600;
    min-width: 74px;
}

.main-nav button {
    font: inherit;
}

.nav-logout-form {
    display: contents;
}

.nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.35rem 0.45rem;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.nav-item-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-item-icon {
    width: clamp(38px, 3.3vw, 50px);
    height: clamp(38px, 3.3vw, 50px);
    object-fit: contain;
    flex-shrink: 0;
}

.nav-item-label {
    font-size: 0.73rem;
    line-height: 1.15;
    white-space: nowrap;
}

.nav-item-label-long {
    white-space: normal;
    max-width: 7.8rem;
    text-wrap: balance;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.active {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(15, 77, 120, 0.08);
    transform: translateY(-1px);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item-disabled {
    opacity: 0.48;
    cursor: not-allowed;
    pointer-events: none;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: clamp(0.55rem, 1vw, 1rem);
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    flex: 1 1 320px;
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-label {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.toolbar-popup-group {
    position: relative;
}

.toolbar-popup {
    position: relative;
    min-width: 0;
}

.toolbar-popup summary {
    list-style: none;
}

.toolbar-popup summary::-webkit-details-marker {
    display: none;
}

.toolbar-popup-trigger {
    min-width: clamp(120px, 12vw, 172px);
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-deep);
    border-radius: 999px;
    padding: 0.58rem clamp(0.7rem, 0.9vw, 0.85rem);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.toolbar-popup-trigger:hover,
.toolbar-popup[open] .toolbar-popup-trigger {
    border-color: rgba(24, 182, 176, 0.35);
    box-shadow: 0 10px 24px rgba(15, 77, 120, 0.08);
    transform: translateY(-1px);
}

.toolbar-popup-trigger-main {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.toolbar-popup-trigger-main span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar-popup-caret {
    color: var(--muted);
    transition: transform 0.18s ease;
}

.toolbar-popup[open] .toolbar-popup-caret {
    transform: rotate(180deg);
}

.toolbar-popup-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 240px;
    display: grid;
    gap: 0.3rem;
    padding: 0.42rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 40;
}

.popup-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--primary-deep);
    border-radius: 14px;
    padding: 0.72rem 0.82rem;
    font-size: 0.96rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.popup-option:hover,
.popup-option.active {
    background: var(--surface-soft);
    color: var(--primary);
    transform: translateX(2px);
}

.lang-flag {
    width: 1.35rem;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.font-preview,
.font-option-mark {
    width: 2rem;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
}

.font-option-mark {
    color: var(--primary);
}

.hero-section {
    padding: clamp(3rem, 5vw, 4.8rem) 0 clamp(2.2rem, 4vw, 3.2rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    align-items: stretch;
}

.hero-copy {
    padding: clamp(0.6rem, 1.8vw, 1.5rem) 0;
    max-width: 72ch;
}

.home-board-section {
    position: relative;
    min-height: calc(100vh - 160px);
    padding: clamp(1.4rem, 3vw, 2.4rem) 0;
    background-color: #f4f8fb;
    background-image: url("../images/Fundal.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain;
    overflow: hidden;
}

.home-three-zone {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 0.88fr) minmax(320px, 1.34fr) minmax(220px, 0.88fr);
    gap: clamp(1rem, 1.6vw, 1.35rem);
    align-items: stretch;
    transition: grid-template-columns 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), gap 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-zone {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 220px);
    height: calc(100vh - 220px);
    max-height: calc(100vh - 220px);
    padding: clamp(1rem, 1.4vw, 1.25rem);
    border-radius: 28px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 42px rgba(8, 32, 53, 0.1);
    min-width: 0;
    overflow: hidden;
    transition:
        opacity 0.34s ease,
        transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        padding 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 0.28s ease;
}

.home-zone-main {
    background:
        radial-gradient(circle at top left, rgba(24, 182, 176, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.4);
}

.home-zone-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.home-zone-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.home-zone-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-deep);
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(8, 32, 53, 0.08);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.home-zone-action-button:hover,
.home-zone-action-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 22px rgba(8, 32, 53, 0.1);
}

.home-zone-active-filters {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    overflow: visible;
    margin-bottom: 0.85rem;
}

.home-zone-active-filters[hidden] {
    display: none;
}

.home-zone-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(24, 182, 176, 0.24);
    border-radius: 999px;
    background: rgba(238, 246, 251, 0.92);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.home-zone-filter-chip span {
    min-width: 0;
}

.home-zone-filter-chip button {
    width: 1.3rem;
    height: 1.3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 77, 120, 0.08);
    color: var(--primary-deep);
    font: inherit;
    cursor: pointer;
    line-height: 1;
}

.home-zone-filter-chip.is-reset {
    flex: 0 0 auto;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 77, 120, 0.14);
}

.home-zone-filter-chip.is-reset button {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.home-zone-control-dialog .account-dialog-shell {
    max-width: 34rem;
    margin: 0 auto;
}

.home-zone-checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(238, 246, 251, 0.72);
    border: 1px solid rgba(15, 77, 120, 0.08);
    color: var(--primary-deep);
    font-weight: 700;
}

.home-zone-checkbox input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent);
}

.home-zone-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-zone-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    scrollbar-gutter: stable;
}

.home-zone-scroll::-webkit-scrollbar {
    width: 10px;
}

.home-zone-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.home-zone-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 77, 120, 0.28);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.home-zone-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 77, 120, 0.42);
}

.home-zone-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 77, 120, 0.08);
}

.home-zone-list-button[data-home-list-less] {
    margin-right: auto;
}

.home-zone-list-button[data-home-list-more] {
    margin-left: auto;
}

.home-zone-list-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-deep);
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(8, 32, 53, 0.08);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.home-zone-list-button:hover,
.home-zone-list-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 22px rgba(8, 32, 53, 0.1);
}

.home-zone-list-button[hidden] {
    display: none;
}

.home-zone-list-button-icon {
    font-size: 1rem;
    line-height: 1;
}

.home-zone-heading {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.home-zone-heading h2 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-zone-toggle {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-deep);
    box-shadow: 0 10px 22px rgba(8, 32, 53, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.home-zone-toggle:hover,
.home-zone-toggle:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 24px rgba(8, 32, 53, 0.12);
}

.home-zone-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.home-three-zone.is-focus-mode {
    gap: 0;
}

.home-three-zone.is-focus-mode[data-active-zone="providers"] {
    grid-template-columns: minmax(0, 1fr) 0fr 0fr;
}

.home-three-zone.is-focus-mode[data-active-zone="announcements"] {
    grid-template-columns: 0fr minmax(0, 1fr) 0fr;
}

.home-three-zone.is-focus-mode[data-active-zone="beneficiaries"] {
    grid-template-columns: 0fr 0fr minmax(0, 1fr);
}

.home-three-zone.is-focus-mode .home-zone.is-inactive {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    overflow: hidden;
    padding-inline: 0;
    border-color: transparent;
    box-shadow: none;
}

.home-three-zone.is-focus-mode .home-zone.is-active {
    transform: scale(1);
    box-shadow: 0 28px 54px rgba(8, 32, 53, 0.16);
}

.home-three-zone.is-focus-mode .home-zone.is-active .home-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.home-three-zone.is-focus-mode .home-zone.is-active .home-announcements-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.home-three-zone.is-focus-mode .home-zone.is-active .home-zone-scroll {
    padding-right: 0.2rem;
}

.home-three-zone.is-focus-mode .home-zone.is-active .home-entity-card,
.home-three-zone.is-focus-mode .home-zone.is-active .home-announcement-card {
    height: 100%;
}

.home-zone-header h2 {
    margin: 0;
    color: var(--primary-deep);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: right;
}

.home-list,
.home-announcements-list {
    display: grid;
    gap: 0.8rem;
}

.home-entity-card,
.home-announcement-card {
    border-radius: 20px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(186, 232, 204, 0.7);
    box-shadow: 0 10px 24px rgba(8, 32, 53, 0.06);
}

.home-beneficiary-card {
    background: rgba(186, 232, 204, 0.7);
}

.home-announcement-card {
    background: rgba(255, 244, 204, 0.7);
}

.home-entity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem;
    align-items: center;
    padding: 0.95rem;
}

.home-entity-card-button {
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.home-entity-card-button:hover,
.home-entity-card-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(8, 32, 53, 0.1);
}

.home-provider-logo,
.home-beneficiary-logo,
.home-announcement-logo {
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: #fff;
    box-shadow: 0 8px 18px rgba(8, 32, 53, 0.08);
}

.home-provider-logo,
.home-beneficiary-logo {
    width: 58px;
    height: 58px;
}

.home-entity-card strong {
    display: block;
    color: var(--primary-deep);
    line-height: 1.25;
}

.home-entity-card span,
.home-entity-card small {
    display: block;
    color: var(--muted);
    line-height: 1.4;
}

.home-provider-rating {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.38rem;
}

.home-provider-rating-hearts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.18rem;
}

.home-provider-rating-heart {
    color: rgba(185, 59, 82, 0.22);
    font-size: 0.92rem;
    line-height: 1;
}

.home-provider-rating-heart.is-filled {
    color: #d74363;
}

.home-provider-rating-meta {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.home-announcement-card {
    position: relative;
    display: grid;
    gap: 0.65rem;
    padding: 1.05rem;
    overflow: hidden;
}

.home-announcement-card-button {
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.home-announcement-card-button:hover,
.home-announcement-card-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(8, 32, 53, 0.1);
}

.home-announcement-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--primary);
}

.home-announcement-card-beneficiary::before {
    background: #c7587f;
}

.home-announcement-topline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.home-announcement-logo {
    width: 48px;
    height: 48px;
}

.home-announcement-type {
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 77, 120, 0.08);
    color: var(--primary-deep);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-announcement-card h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    line-height: 1.15;
}

.home-announcement-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.home-announcement-video-preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 8rem;
    max-height: 16rem;
    overflow: hidden;
    border: 1px solid rgba(15, 77, 120, 0.12);
    border-radius: 14px;
    background: #102f42;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(8, 32, 53, 0.12);
}

.home-announcement-video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-announcement-video-preview-fallback {
    background:
        linear-gradient(135deg, rgba(15, 77, 120, 0.94), rgba(24, 182, 176, 0.74)),
        #102f42;
}

.home-announcement-video-fallback-label {
    max-width: calc(100% - 5rem);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.home-announcement-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-deep);
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(7, 28, 45, 0.28);
}

.home-announcement-video-preview:hover .home-announcement-video-play,
.home-announcement-video-preview:focus-visible .home-announcement-video-play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.04);
}

.home-announcement-group-list {
    display: grid;
    gap: 0.85rem;
}

.home-provider-announcement-item {
    display: grid;
    gap: 0.55rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(15, 77, 120, 0.08);
}

.home-provider-announcement-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-provider-announcement-staff {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.home-provider-announcement-staff strong {
    color: var(--primary-deep);
    line-height: 1.3;
}

.home-provider-staff-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: #fff;
    box-shadow: 0 8px 18px rgba(8, 32, 53, 0.08);
}

.home-announcement-card footer {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(15, 77, 120, 0.08);
    color: var(--muted);
    line-height: 1.4;
}

.home-announcement-card footer strong {
    color: var(--primary-deep);
}

.home-announcement-card footer span {
    color: #b93352;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 77, 120, 0.08);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 1rem 0 1rem;
    font-size: clamp(2.3rem, 4.4vw, 4.9rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 14ch;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.cta-banner p,
.feature-card p,
.empty-card,
.flash {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.cta-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.78rem 1.25rem;
    font-weight: 700;
    line-height: 1.12;
    border: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 18px rgba(8, 32, 53, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(8, 32, 53, 0.14);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.52;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.18);
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 125, 184, 0.18);
}
.btn-danger {
    background: linear-gradient(135deg, #d84a69 0%, #b93352 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(185, 51, 82, 0.18);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-deep);
    border: 1px solid rgba(15, 77, 120, 0.1);
    box-shadow: 0 8px 18px rgba(8, 32, 53, 0.08);
}
.btn-block { width: 100%; margin-top: 1rem; }

.form-submit-button {
    width: fit-content;
    max-width: 100%;
    margin-top: 1rem;
    padding-inline: 1.7rem;
    justify-self: center;
}

.hero-card-stack {
    display: grid;
    gap: clamp(1rem, 1.5vw, 1.25rem);
    align-content: start;
}

.glass-card,
.feature-card,
.form-panel,
.table-shell,
.cta-banner,
.empty-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glass-card {
    padding: 1.6rem;
}

.card-overline {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--primary);
    font-weight: 800;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.metric-row strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-deep);
    margin-bottom: 0.35rem;
}

.metric-row span { color: var(--muted); }

.insight-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.insight-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--muted);
}

.insight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.section {
    padding: clamp(1.5rem, 3vw, 2.2rem) 0 clamp(2.8rem, 5vw, 4.4rem);
}

.section-soft {
    background: linear-gradient(180deg, rgba(238, 246, 251, 0.6), rgba(248, 252, 255, 0.1));
}

.section-heading {
    max-width: 780px;
    margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
}

.section-heading h2 {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    line-height: 1.1;
    margin: 0.95rem 0;
}

.cards-grid {
    display: grid;
    gap: clamp(1rem, 1.6vw, 1.4rem);
}

.three-col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.two-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.feature-card {
    padding: clamp(1.2rem, 2vw, 1.8rem);
}

.feature-card h3 {
    margin: 1rem 0 0.75rem;
    font-size: 1.25rem;
}

.contact-showcase-section {
    padding-top: clamp(1.4rem, 3vw, 2.5rem);
}

.contact-showcase {
    display: grid;
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.4rem);
}

.contact-presenter {
    align-self: end;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.contact-presenter-image {
    display: block;
    width: min(100%, 430px);
    height: auto;
    max-height: min(72vh, 720px);
    object-fit: contain;
}

.contact-info-panel {
    padding: clamp(1.25rem, 2.5vw, 2.2rem);
    text-align: left;
}

.contact-info-heading h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.08;
    color: var(--primary-deep);
}

.contact-info-heading p {
    margin: 0;
    text-align: left;
    color: var(--muted);
    line-height: 1.65;
}

.contact-info-list {
    display: grid;
    gap: 1.2rem;
    margin-top: clamp(1.2rem, 2vw, 1.6rem);
}

.contact-person {
    padding-top: 1.1rem;
    border-top: 1px solid rgba(15, 77, 120, 0.1);
}

.contact-person h2 {
    margin: 0 0 0.35rem;
    text-align: left;
    color: var(--primary-deep);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.contact-person > p {
    margin: 0 0 0.85rem;
    text-align: left;
    color: var(--muted);
}

.contact-person dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.contact-person dl > div {
    display: grid;
    grid-template-columns: minmax(6rem, auto) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
}

.contact-person dt {
    color: var(--muted);
    font-weight: 700;
}

.contact-person dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-person a {
    color: var(--primary-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.legal-document {
    padding: clamp(1.5rem, 2.4vw, 2.2rem);
}

.legal-document-header {
    margin-bottom: 1.35rem;
}

.legal-document-header h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.legal-document-header p {
    margin: 0;
}

.legal-note {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: rgba(238, 246, 251, 0.72);
}

.legal-note strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary-deep);
}

.legal-note p {
    margin: 0;
}

.legal-section + .legal-section {
    margin-top: 1.55rem;
}

.legal-section h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.22rem, 2vw, 1.55rem);
    line-height: 1.2;
    color: var(--primary-deep);
}

.legal-section p {
    margin: 0 0 0.85rem;
    line-height: 1.8;
}

.legal-list {
    margin: 0 0 0.85rem 1.2rem;
    padding: 0;
    color: var(--muted);
    line-height: 1.75;
}

.legal-list li + li {
    margin-top: 0.35rem;
}

.legal-placeholder {
    display: inline;
    padding: 0 0.24rem;
    border-radius: 8px;
    background: rgba(255, 236, 179, 0.7);
    color: #8a4600;
    font-weight: 700;
}

.legal-acceptance {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(15, 77, 120, 0.08);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.legal-acknowledged-text {
    margin: 0;
    color: var(--primary-deep);
    font-weight: 700;
    line-height: 1.6;
}

.terms-dialog {
    width: min(980px, calc(100% - 2rem));
}

.terms-dialog-body {
    max-height: min(72vh, 820px);
    overflow: auto;
    padding-right: 0.25rem;
}

.legal-document-dialog {
    padding: 0;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.cta-banner {
    padding: clamp(1.4rem, 2.5vw, 2.1rem);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
}

.page-hero {
    padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(1rem, 2vw, 1.6rem);
}

.page-hero.compact h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    max-width: none;
}

.beneficiary-announcements-header-shell {
    padding-bottom: 0.8rem;
}

.beneficiary-announcements-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.beneficiary-account-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.provider-account-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.provider-services-child-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.beneficiary-announcements-header > div,
.beneficiary-account-header > div,
.provider-account-header > div,
.provider-services-child-header > div {
    min-width: 0;
}

.beneficiary-announcements-header .btn,
.beneficiary-account-header .btn,
.provider-account-header .btn,
.provider-services-child-header .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.beneficiary-announcements-header h1 {
    margin: 0 0 0.35rem;
}

.beneficiary-account-header h1 {
    margin: 0 0 0.35rem;
}

.provider-account-header h1 {
    margin: 0 0 0.35rem;
}

.provider-services-child-header h1 {
    margin: 0 0 0.35rem;
}

.beneficiary-announcements-header p {
    margin: 0;
    color: var(--muted);
}

.beneficiary-account-header p {
    margin: 0;
    color: var(--muted);
}

.provider-account-header p {
    margin: 0;
    color: var(--muted);
}

.provider-services-child-header p {
    margin: 0;
    color: var(--muted);
}

.narrow-copy { max-width: 860px; }

.form-section {
    padding-top: 1rem;
}

.form-layout {
    display: grid;
    gap: 1.5rem;
}

.form-panel {
    padding: clamp(1.2rem, 2vw, 2rem);
}

.section-heading-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-heading-inline h2 {
    margin: 0;
    color: var(--primary-deep);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.section-heading-inline p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.medical-form {
    display: grid;
    gap: 1.15rem;
}

.account-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
    align-items: start;
}

.medical-form label {
    display: grid;
    gap: 0.5rem;
}

.medical-form span {
    font-weight: 700;
    color: var(--primary-deep);
}

.field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.field-state-indicator {
    min-width: 1.35rem;
    min-height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: transparent;
    background: rgba(15, 77, 120, 0.08);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.field-feedback {
    min-height: 1.2rem;
    color: var(--muted);
    line-height: 1.35;
}

.medical-form input,
.medical-form select,
.medical-form textarea {
    width: 100%;
    border: 1px solid rgba(15, 77, 120, 0.12);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: #fcfeff;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.medical-form textarea {
    min-height: 140px;
    resize: vertical;
}

.medical-form input:focus,
.medical-form select:focus,
.medical-form textarea:focus {
    border-color: rgba(24, 182, 176, 0.55);
    box-shadow: 0 0 0 4px rgba(24, 182, 176, 0.12);
}

.account-dialog.beneficiary-gdpr-dialog {
    width: min(820px, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
    overscroll-behavior: contain;
}

.account-dialog-shell.beneficiary-gdpr-dialog-shell {
    display: grid;
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    gap: 0.75rem;
    padding: clamp(1rem, 2vw, 1.45rem);
    border: 1px solid rgba(181, 115, 23, 0.22);
    border-radius: 18px;
    background: #fffaf0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    font-size: 0.9rem;
}

html.health-consent-dialog-open,
html.health-consent-dialog-open body {
    overflow: hidden;
}

.beneficiary-gdpr-dialog .account-dialog-header {
    margin: 0;
    padding-right: 0;
    text-align: left;
}

.beneficiary-gdpr-dialog .account-dialog-header h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.25;
}

.beneficiary-gdpr-dialog .account-dialog-header p {
    max-width: none;
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.health-consent-withdraw-dialog .account-dialog-header {
    padding-right: 2.5rem;
}

.health-consent-withdraw-dialog .account-dialog-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
}

.account-dialog-warning.health-consent-withdraw-effects {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.45;
}

.health-consent-withdraw-form {
    margin-top: 0;
}

.login-dialog-actions.health-consent-withdraw-actions {
    gap: 0.6rem;
    padding-top: 0.1rem;
}

.health-consent-withdraw-actions .btn {
    min-height: 40px;
    font-size: 0.88rem;
}

.beneficiary-gdpr-link {
    justify-self: start;
    color: var(--primary-deep);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.beneficiary-gdpr-examples {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.beneficiary-gdpr-examples h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 1rem;
}

.beneficiary-gdpr-examples ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text);
    line-height: 1.55;
}

.beneficiary-gdpr-form {
    margin-top: 0.1rem;
    display: grid;
    gap: 0.7rem;
}

.beneficiary-gdpr-form > .account-dialog-consent,
.beneficiary-gdpr-form .health-consent-role-group .account-dialog-consent {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.4;
}

.beneficiary-gdpr-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.beneficiary-gdpr-ack-phrase {
    color: #b42318;
    font-weight: 800;
}

.beneficiary-gdpr-form [data-gdpr-ack-input] {
    color: #b42318;
    font-weight: 400;
}

.health-consent-role-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 12px;
}

.registration-health-consent {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(181, 115, 23, 0.22);
    border-radius: 12px;
    background: #fffaf0;
}

.account-terms-dialog-shell {
    gap: 1rem;
    background: #f7fafc;
}

.account-terms-dialog-shell .account-dialog-header {
    padding: 0 0.15rem 0.85rem;
    border-bottom: 1px solid rgba(15, 77, 120, 0.12);
}

.account-terms-dialog-shell .account-dialog-header h1 {
    margin: 0;
    color: var(--primary-deep);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.25;
}

.account-terms-consent-form {
    gap: 0.85rem;
}

.account-consent-section {
    gap: 0.75rem;
    padding: 1rem;
    border-color: rgba(15, 77, 120, 0.14);
    border-radius: 10px;
    background: #ffffff;
}

.account-consent-section-heading {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
}

.account-terms-section-heading {
    grid-template-columns: minmax(0, 1fr) auto;
}

.account-health-section-heading {
    grid-template-columns: minmax(0, 1fr);
}

.account-provider-section-heading {
    grid-template-columns: minmax(0, 1fr);
}

.account-consent-section-heading h2,
.account-consent-section-heading p {
    margin: 0;
}

.account-consent-section-heading h2 {
    color: var(--primary-deep);
    font-size: 1rem;
    line-height: 1.35;
}

.account-consent-section-heading p {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.account-consent-version {
    align-self: center;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 6px;
    background: #eef6fb;
    color: var(--primary-deep);
    font-size: 0.72rem;
    font-weight: 800;
}

.account-consent-section > .account-dialog-consent,
.account-consent-section .health-consent-role-group .account-dialog-consent {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: #f4f8fb;
}

.account-terms-consent-form label.account-dialog-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.account-terms-consent-form label.account-dialog-consent[hidden] {
    display: none;
}

.account-terms-consent-form label.account-dialog-consent > input {
    flex: 0 0 1.1rem;
}

.account-terms-consent-form label.account-dialog-consent > span {
    flex: 1 1 auto;
    min-width: 0;
}

.account-consent-consequence {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(15, 77, 120, 0.1);
}

.account-terms-termination-notice {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-left: 4px solid #b57317;
    border-radius: 6px;
    background: #fff7e8;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.account-terms-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 77, 120, 0.12);
}

.account-terms-logout-form {
    margin: 0;
}

.account-terms-actions .btn {
    min-height: 42px;
}

.health-consent-role-group legend {
    padding: 0 0.4rem;
    color: var(--primary-deep);
    font-weight: 800;
    font-size: 0.88rem;
}

.health-consent-representative[hidden] {
    display: none;
}

.health-consent-status-section {
    padding-top: 0;
}

.health-consent-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    border-left: 5px solid #0f7a65;
    background: #effaf6;
}

.health-consent-status h2,
.health-consent-status p {
    margin-top: 0;
}

.health-consent-status dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 0;
}

.health-consent-status dl div {
    display: flex;
    gap: 0.4rem;
}

.health-consent-status dt {
    font-weight: 800;
}

.health-consent-status dd {
    margin: 0;
}

@media (max-width: 720px) {
    .account-dialog.beneficiary-gdpr-dialog {
        width: calc(100% - 0.75rem);
        max-height: calc(100dvh - 0.75rem);
    }

    .account-dialog-shell.beneficiary-gdpr-dialog-shell {
        max-height: calc(100dvh - 0.75rem);
        padding: 0.9rem;
        border-radius: 14px;
    }

    .health-consent-role-group {
        grid-template-columns: 1fr;
    }

    .account-consent-section-heading {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .account-terms-section-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-health-section-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-provider-section-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-consent-version {
        grid-column: 2;
        justify-self: start;
    }

    .account-terms-section-heading .account-consent-version {
        grid-column: 1;
    }

    .account-terms-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-terms-actions .btn,
    .account-terms-logout-form {
        width: 100%;
    }

    .account-terms-actions [data-account-terms-consent-submit] {
        grid-row: 1;
    }

    .login-dialog-actions.health-consent-withdraw-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .health-consent-withdraw-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .health-consent-status {
        align-items: stretch;
        flex-direction: column;
    }
}

.provider-logo-upload {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(238, 246, 251, 0.55);
}

.professional-document-field {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 8px;
    background: #f7fbfd;
}

.professional-document-current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.professional-document-upload-zone {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 6px;
    background: #fff;
}

.professional-document-file-picker {
    position: relative;
    justify-self: start;
    cursor: pointer;
}

.professional-document-file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.professional-document-file-button {
    margin-top: 0;
    color: #fff;
    cursor: pointer;
}

.medical-form .professional-document-file-button {
    color: #fff;
}

.professional-document-file-picker input[type="file"]:focus-visible
    + .professional-document-file-button {
    outline: 3px solid rgba(15, 125, 184, 0.28);
    outline-offset: 3px;
}

.professional-document-selection-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.professional-document-selection-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border-left: 3px solid #16817a;
    background: #eef8f6;
}

.professional-document-selection-list li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.professional-document-selection-list li strong {
    flex: 0 0 auto;
}

.professional-document-remove-file {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #9e3848;
    border-radius: 4px;
    background: #fff;
    color: #8f2336;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.professional-document-remove-file:hover,
.professional-document-remove-file:focus-visible {
    background: #fcecef;
}

.professional-document-selection-status,
.professional-document-image-count {
    margin: 0;
    color: #245e59;
    font-weight: 650;
}

.professional-document-selection-status.is-error {
    color: #a32035;
}

.professional-document-clear {
    justify-self: start;
}

.professional-document-current-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.medical-form .professional-document-checkbox {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    cursor: pointer;
}

.medical-form .professional-document-checkbox input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.15rem 0 0;
    padding: 0;
    border-radius: 4px;
}

.medical-form .professional-document-checkbox span {
    font-weight: 600;
}

.provider-logo-preview {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    color: var(--primary-deep);
    font-weight: 700;
}

.provider-logo-preview img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid rgba(15, 77, 120, 0.12);
    background: #fff;
    box-shadow: 0 10px 22px rgba(8, 32, 53, 0.08);
}

.provider-logo-native-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.provider-logo-file-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.provider-logo-file-button,
.provider-logo-default-button {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.provider-logo-file-name {
    min-width: 0;
    color: var(--muted);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.beneficiary-logo-selector {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(238, 246, 251, 0.55);
}

.beneficiary-logo-preview {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    color: var(--primary-deep);
    font-weight: 700;
}

.beneficiary-logo-preview img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid rgba(15, 77, 120, 0.12);
    background: #fff;
    box-shadow: 0 10px 22px rgba(8, 32, 53, 0.08);
}

.beneficiary-logo-control {
    display: grid;
    gap: 0.7rem;
}

.beneficiary-logo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.beneficiary-logo-button {
    width: auto;
    margin: 0;
}

.beneficiary-logo-actions .provider-logo-file-name {
    flex: 1 1 14rem;
}

.beneficiary-logo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.85rem;
    max-height: min(58vh, 520px);
    overflow: auto;
    padding: 0.4rem 0.15rem 0.15rem;
}

.beneficiary-logo-option {
    display: grid;
    justify-items: center;
    padding: 0.9rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 251, 0.72));
    color: var(--primary-deep);
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.beneficiary-logo-option:hover,
.beneficiary-logo-option:focus-visible,
.beneficiary-logo-option.is-selected {
    transform: translateY(-2px);
    border-color: rgba(24, 182, 176, 0.42);
    box-shadow: 0 16px 36px rgba(15, 77, 120, 0.12);
}

.beneficiary-logo-option.is-selected {
    background: linear-gradient(180deg, rgba(238, 252, 250, 0.98), rgba(220, 246, 243, 0.86));
}

.beneficiary-logo-option img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.beneficiary-logo-upload-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px dashed rgba(15, 125, 184, 0.28);
    background: rgba(238, 246, 251, 0.62);
}

.beneficiary-logo-upload-panel.is-selected {
    border-style: solid;
    border-color: rgba(24, 182, 176, 0.42);
    background: linear-gradient(180deg, rgba(238, 252, 250, 0.98), rgba(220, 246, 243, 0.86));
    box-shadow: 0 16px 36px rgba(15, 77, 120, 0.08);
}

.beneficiary-logo-upload-copy {
    display: grid;
    gap: 0.24rem;
}

.beneficiary-logo-upload-copy strong {
    color: var(--primary-deep);
}

.beneficiary-logo-upload-copy span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.medical-form input.input-error,
.medical-form input.input-error:focus {
    color: #9c2742;
    border-color: rgba(227, 74, 101, 0.44);
    box-shadow: 0 0 0 4px rgba(227, 74, 101, 0.1);
}

.medical-form input:disabled,
.medical-form select:disabled,
.medical-form textarea:disabled {
    background: rgba(238, 246, 251, 0.88);
    color: var(--muted);
    cursor: not-allowed;
}

.medical-form input[readonly] {
    background: rgba(238, 246, 251, 0.88);
    color: var(--primary-deep);
    cursor: default;
}

.fixed-field-display {
    width: 100%;
    border: 1px solid rgba(15, 77, 120, 0.12);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(238, 246, 251, 0.88);
    color: var(--primary-deep);
    line-height: 1.4;
}

.address-step-field.is-valid input {
    border-color: rgba(24, 182, 176, 0.5);
    box-shadow: 0 0 0 4px rgba(24, 182, 176, 0.1);
}

.address-step-field.is-valid .field-state-indicator {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: scale(1.02);
}

.address-step-field.is-valid .field-state-indicator::before {
    content: "✓";
}

.address-step-field.is-valid .field-feedback {
    color: #0e6f69;
}

.address-step-field.is-invalid input {
    border-color: rgba(227, 74, 101, 0.38);
    box-shadow: 0 0 0 4px rgba(227, 74, 101, 0.08);
}

.address-step-field.is-invalid .field-state-indicator {
    color: #fff;
    background: linear-gradient(135deg, #d84a69, #b93352);
}

.address-step-field.is-invalid .field-state-indicator::before {
    content: "!";
}

.address-step-field.is-invalid .field-feedback {
    color: #9c2742;
}

.form-help-error {
    color: #9c2742;
    font-weight: 600;
}

.verification-panel {
    max-width: 720px;
}

.verification-form {
    max-width: 520px;
}

.verification-copy {
    margin: 0;
    color: var(--primary-deep);
    line-height: 1.6;
}

.flash-wrapper {
    padding-top: 1.25rem;
}

.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    margin-bottom: 0.8rem;
    font-weight: 600;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease, padding 0.22s ease;
}

.flash-message-text {
    flex: 1;
    line-height: 1.5;
}

.flash-close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.flash-close:hover,
.flash-close:focus-visible {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.04);
}

.flash.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.flash-success {
    background: rgba(24, 182, 176, 0.12);
    color: #0e6f69;
    border: 1px solid rgba(24, 182, 176, 0.16);
}

.flash-error {
    background: rgba(227, 74, 101, 0.08);
    color: #9c2742;
    border: 1px solid rgba(227, 74, 101, 0.14);
}

.table-shell {
    padding: clamp(0.9rem, 1.6vw, 1.35rem);
}

.management-details {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.management-details > div {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(238, 246, 251, 0.6);
    border: 1px solid rgba(15, 77, 120, 0.08);
}

.management-details dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.management-details dd {
    margin: 0.45rem 0 0;
    color: var(--primary-deep);
    font-weight: 600;
    line-height: 1.6;
    white-space: pre-line;
}

.management-dashboard-shell {
    min-height: calc(100vh - 260px);
    display: grid;
    align-items: center;
}

.management-dashboard-center {
    display: grid;
    justify-content: center;
}

.management-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 390px));
    gap: 1.75rem;
    justify-content: center;
}

.management-module-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1rem;
    min-height: 260px;
    width: min(100%, 390px);
    padding: 2.3rem 1.8rem;
    border-radius: 26px;
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 44px rgba(8, 32, 53, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    overflow: hidden;
}

.management-module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.management-module-card:hover,
.management-module-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(8, 32, 53, 0.22);
    filter: saturate(1.04);
}

.management-module-card-disabled,
.provider-services-text-card-disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.15);
}

.management-module-card-disabled small,
.provider-services-text-card-disabled small {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 20ch;
    line-height: 1.4;
}

.management-subscription-banner {
    width: min(100%, 760px);
    margin: 0 auto 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(24, 182, 176, 0.22);
    background: rgba(235, 248, 243, 0.95);
    color: var(--primary-deep);
}

.management-subscription-banner.is-locked {
    border-color: rgba(188, 95, 43, 0.22);
    background: rgba(255, 240, 232, 0.94);
    color: #7b4516;
}

.management-subscription-banner strong,
.management-subscription-banner p {
    display: block;
    margin: 0;
}

.management-subscription-banner p {
    margin-top: 0.35rem;
    line-height: 1.5;
}

.provider-reactivation-heading,
.provider-reactivation-login-panel,
.provider-reactivation-table-shell {
    width: min(100%, 1120px);
    margin-inline: auto;
}

.provider-reactivation-login-panel {
    padding: 1.35rem;
}

.provider-reactivation-toolbar {
    width: min(100%, 1120px);
    margin: 0 auto 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.provider-reactivation-search-form {
    display: grid;
    gap: 0.85rem;
}

.provider-reactivation-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.provider-reactivation-logout-form {
    display: flex;
    justify-content: flex-end;
}

.provider-reactivation-provider-name {
    display: inline-block;
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-reactivation-action-form {
    display: inline-flex;
}

.provider-reactivation-disabled-text {
    display: inline-block;
    max-width: 20ch;
    color: var(--muted);
    line-height: 1.45;
}

.management-module-card-provider {
    background: linear-gradient(135deg, #4f5bd5 0%, #7d86f0 100%);
}

.management-module-card-beneficiary {
    background: linear-gradient(135deg, #0f9b8e 0%, #32db7b 100%);
}

.management-module-card-services {
    background: linear-gradient(135deg, #ff8b0f 0%, #ff5a1f 100%);
}

.management-module-card-medical-space {
    background: linear-gradient(135deg, #1d6fa5 0%, #23a0a1 100%);
}

.management-module-card-network {
    background: linear-gradient(135deg, #aa8700 0%, #c29e00 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.management-module-card-subscription {
    background: linear-gradient(135deg, #0f7d78 0%, #1fb39c 100%);
}

.management-module-card-solo {
    gap: 1.25rem;
}

.management-module-icon-wrap {
    width: 152px;
    height: 152px;
    display: grid;
    place-items: center;
}

.management-module-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.management-module-title {
    position: relative;
    z-index: 1;
}

.provider-subscription-shell {
    padding-block: 2rem 3rem;
}

.provider-subscription-layout {
    width: min(100%, 1120px);
}

.provider-subscription-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.provider-subscription-header h1,
.provider-subscription-header p {
    margin: 0;
}

.provider-subscription-header p {
    margin-top: 0.45rem;
    color: var(--muted);
    max-width: 76ch;
}

.provider-subscription-band + .provider-subscription-band {
    margin-top: 1.1rem;
}

.provider-subscription-panel,
.provider-subscription-timeline-shell {
    padding: 1.35rem;
}

.provider-subscription-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.95rem;
    margin: 0;
}

.provider-subscription-summary-item {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(238, 246, 251, 0.66);
    border: 1px solid rgba(15, 77, 120, 0.08);
}

.provider-subscription-summary-item dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.provider-subscription-summary-item dd {
    margin: 0.45rem 0 0;
    color: var(--primary-deep);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.provider-subscription-summary-item-status {
    background: #edf4ff;
    border-color: #b8cef0;
}

.provider-subscription-summary-item-activation {
    background: #f3efff;
    border-color: #d2c3ef;
}

.provider-subscription-summary-item-started {
    background: #edf9f2;
    border-color: #b8ddc5;
}

.provider-subscription-summary-item-expires {
    background: #fff5e8;
    border-color: #efd0a6;
}

.provider-subscription-summary-item-management {
    background: #eef8f8;
    border-color: #b8dcda;
}

.provider-subscription-summary-item-payment {
    background: #fff0f3;
    border-color: #e8bec9;
}

.provider-subscription-summary-item-grace {
    background: #fff9db;
    border-color: #e8d47c;
}

.provider-subscription-summary-item-staff {
    border: 1px solid #8ebda0;
    border-left: 4px solid #2f7d5b;
    border-radius: 8px;
    background: #f0f8f2;
    box-shadow: 0 6px 18px rgba(47, 125, 91, 0.1);
}

.provider-subscription-summary-item-staff dt {
    color: #225b43;
}

.provider-subscription-summary-item-staff dd {
    color: #7b2d48;
}

.provider-subscription-summary-item-staff-empty {
    border: 1px dashed #9aab83;
    border-radius: 8px;
    background: #f8faef;
}

.provider-subscription-summary-item-staff-empty dt {
    color: #52652e;
}

.provider-subscription-summary-item-staff-empty dd {
    color: #5d694d;
}

.provider-subscription-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.provider-subscription-action-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.08);
}

.provider-subscription-actions-note {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.provider-subscription-payment-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr) auto;
    align-items: end;
    gap: 0.85rem;
}

.provider-subscription-payment-label {
    color: var(--primary-deep);
    font-weight: 800;
}

.provider-subscription-payment-form select {
    width: 100%;
    min-height: 44px;
}

.provider-subscription-payment-note {
    margin: 0.85rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.provider-organization-subscription-current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid #8b4f9e;
    background: #f7f0f8;
}

.provider-organization-subscription-form label {
    display: grid;
    gap: 0.45rem;
}

.provider-staff-capacity-note {
    margin: 0.65rem 0 0;
    color: var(--muted);
}

.provider-billing-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.provider-billing-heading > div {
    min-width: 0;
}

.provider-billing-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 8px;
    overflow: hidden;
}

.provider-billing-summary > div {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(15, 77, 120, 0.1);
}

.provider-billing-summary > div:nth-child(odd) {
    border-right: 1px solid rgba(15, 77, 120, 0.1);
}

.provider-billing-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.provider-billing-summary dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.provider-billing-summary dd {
    margin: 0.35rem 0 0;
    color: var(--primary-deep);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.provider-billing-empty,
.provider-billing-help {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.provider-billing-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.provider-billing-form-wide {
    grid-column: 1 / -1;
}

.provider-billing-form select {
    width: 100%;
}

.provider-billing-help {
    margin-top: 1rem;
}

.management-module-title {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}

.provider-services-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
    gap: 1rem;
    justify-content: center;
}

.provider-services-text-card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: space-between;
    gap: 0.9rem;
    width: min(100%, 240px);
    aspect-ratio: 1 / 1;
    padding: 1.1rem;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 38px rgba(8, 32, 53, 0.16);
    overflow: hidden;
}

.account-locked-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-locked-fieldset[disabled] {
    opacity: 0.62;
}

.provider-services-text-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.provider-services-text-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 14ch;
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.provider-services-image-logo {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 9rem;
    height: 9rem;
    padding: 0.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.provider-services-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.provider-services-text-card-staff {
    background: linear-gradient(135deg, #1d6fa5 0%, #23a0a1 100%);
}

.provider-services-text-card-catalog {
    background: linear-gradient(135deg, #cc6a12 0%, #f19c38 100%);
}

.provider-services-text-card-announcements {
    background: linear-gradient(135deg, #7a365f 0%, #c7587f 100%);
}

.provider-services-text-card-chat {
    background: linear-gradient(135deg, #3d4ca8 0%, #5e7ef0 100%);
}

.provider-services-text-card-network {
    background: linear-gradient(135deg, #236a57 0%, #3ca67d 100%);
}

.messages-management-layout {
    display: grid;
    gap: 1.25rem;
}

.messages-management-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.messages-management-header h1 {
    margin: 0 0 0.35rem;
}

.messages-management-header p {
    margin: 0;
    color: var(--muted);
}

.messages-management-main {
    display: grid;
    grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.messages-thread-list-panel,
.messages-chat-panel,
.messages-management-card {
    display: grid;
    min-height: 0;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 77, 120, 0.08);
    box-shadow: 0 18px 38px rgba(8, 32, 53, 0.08);
}

.messages-thread-list-panel {
    grid-template-rows: auto minmax(0, 1fr);
}

.messages-thread-list {
    min-height: 0;
    max-height: min(64vh, 820px);
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-gutter: stable;
}

.messages-chat-panel {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.messages-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.messages-panel-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.messages-panel-header p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.messages-thread-list,
.messages-management-list {
    display: grid;
    gap: 0.55rem;
}

.messages-thread-item {
    position: relative;
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.55rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(214, 243, 221, 0.92);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.messages-thread-item:hover,
.messages-thread-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(15, 125, 184, 0.28);
    box-shadow: 0 12px 24px rgba(8, 32, 53, 0.08);
}

.messages-thread-item.is-active {
    transform: translateY(-1px);
    border-color: rgba(15, 125, 184, 0.72);
    background: linear-gradient(180deg, rgba(220, 241, 255, 0.98), rgba(196, 230, 251, 0.96));
    box-shadow: 0 16px 30px rgba(8, 32, 53, 0.14);
}

.messages-thread-item.is-active::before {
    content: "";
    position: absolute;
    left: 0.36rem;
    top: 0.36rem;
    bottom: 0.36rem;
    width: 0.24rem;
    border-radius: 999px;
    background: rgba(15, 125, 184, 0.95);
}

.messages-thread-item.is-active .messages-thread-copy strong {
    color: var(--primary-deep);
}

.messages-thread-item.is-active .messages-thread-copy span,
.messages-thread-item.is-active .messages-thread-copy small {
    color: rgba(8, 58, 93, 0.84);
}

.messages-thread-item.is-active .messages-thread-logo {
    border-color: rgba(15, 125, 184, 0.4);
    box-shadow: 0 10px 18px rgba(8, 32, 53, 0.12);
}

.messages-thread-item.is-unread {
    border-color: #d89a1d;
    background: #fff4d6;
    box-shadow: 0 10px 24px rgba(151, 97, 12, 0.12);
}

.messages-thread-item.is-unread::before {
    content: "";
    position: absolute;
    left: 0.36rem;
    top: 0.36rem;
    bottom: 0.36rem;
    width: 0.24rem;
    border-radius: 999px;
    background: #c7790c;
}

.messages-thread-item.is-unread .messages-thread-copy {
    padding-right: 2.2rem;
}

.messages-thread-item.is-unread .messages-thread-copy strong,
.messages-thread-item.is-unread .messages-thread-preview {
    color: #704000;
}

.messages-thread-unread-badge,
.messages-thread-total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #c7790c;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.messages-thread-unread-badge {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
}

.messages-thread-total-badge {
    flex: 0 0 auto;
}

.messages-thread-logo {
    width: 2.55rem;
    height: 2.55rem;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 77, 120, 0.08);
}

.messages-thread-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.messages-thread-copy strong,
.messages-management-item-copy strong {
    display: block;
    color: var(--text);
}

.messages-thread-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}

.messages-thread-copy span,
.messages-thread-copy small,
.messages-management-item-copy span,
.messages-management-item-copy small {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-thread-preview {
    font-weight: 700;
}

.messages-management-item-copy .messages-management-detail-line {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.messages-thread-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.messages-thread-flag {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(238, 246, 251, 0.92);
    border: 1px solid rgba(24, 182, 176, 0.2);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.messages-chat-history {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 260px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.messages-pagination-link {
    justify-self: center;
    margin: 0.2rem 0;
}

.messages-management-card {
    grid-template-rows: auto minmax(0, 1fr);
}

.messages-management-list {
    min-height: 0;
    max-height: min(34vh, 360px);
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-gutter: stable;
}

.messages-management-list::-webkit-scrollbar,
.messages-thread-list::-webkit-scrollbar,
.messages-chat-history::-webkit-scrollbar {
    width: 0.7rem;
}

.messages-management-list::-webkit-scrollbar-thumb,
.messages-thread-list::-webkit-scrollbar-thumb,
.messages-chat-history::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(15, 125, 184, 0.32);
    border: 2px solid rgba(255, 255, 255, 0.78);
}

.messages-management-list::-webkit-scrollbar-track,
.messages-thread-list::-webkit-scrollbar-track,
.messages-chat-history::-webkit-scrollbar-track {
    background: rgba(238, 246, 251, 0.58);
}

.messages-chat-bubble {
    max-width: min(78%, 40rem);
    padding: 0.9rem 1rem;
    border-radius: 18px 18px 18px 6px;
    background: rgba(238, 246, 251, 0.92);
    color: var(--text);
    box-shadow: 0 10px 22px rgba(8, 32, 53, 0.06);
}

.messages-chat-bubble.is-own {
    align-self: flex-end;
    border-radius: 18px 18px 6px 18px;
    background: rgba(15, 125, 184, 0.14);
}

.messages-chat-bubble.is-system-notice {
    border-radius: 18px;
    color: #b42318;
    font-weight: 700;
    border: 1px solid rgba(180, 35, 24, 0.28);
    background: #fff1f0;
}

.messages-thread-preview.is-system-notice {
    color: #b42318;
    font-weight: 700;
}

.messages-chat-bubble p {
    margin: 0;
    white-space: pre-wrap;
}

.messages-chat-form {
    margin-top: auto;
}

.messages-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.messages-management-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(245, 248, 252, 0.9);
}

.messages-management-item-logo {
    width: 3.4rem;
    height: 3.4rem;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.messages-management-item-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.messages-management-item-granted {
    grid-template-columns: minmax(0, 1fr);
}

.messages-management-item-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    min-width: 0;
}

.messages-management-item-granted .messages-management-item-actions {
    justify-content: flex-end;
    margin-top: 0.15rem;
}

.messages-management-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.messages-management-item-actions form {
    margin: 0;
}

.messages-contact-request-dialog-copy {
    display: grid;
    gap: 0.85rem;
}

.messages-contact-request-dialog-target {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(15, 125, 184, 0.08);
    border: 1px solid rgba(15, 125, 184, 0.16);
    color: var(--primary-deep);
    font-weight: 700;
}

.messages-contact-request-dialog-note {
    display: grid;
    gap: 0.38rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(235, 248, 243, 0.88);
    border: 1px solid rgba(24, 182, 176, 0.16);
}

.messages-contact-request-dialog-note strong {
    color: var(--primary-deep);
}

.messages-contact-request-dialog-note p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
}

.messages-contact-request-dialog-note-risk {
    background: rgba(255, 244, 236, 0.92);
    border-color: rgba(188, 95, 43, 0.18);
}

.messages-contact-scope-fieldset {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 125, 184, 0.24);
    border-radius: 8px;
}

.messages-contact-scope-fieldset legend {
    padding: 0 0.35rem;
    color: var(--primary-deep);
    font-weight: 700;
}

.messages-contact-scope-fieldset p {
    margin: 0 0 0.75rem;
}

.messages-contact-scope-options {
    display: grid;
    gap: 0.65rem;
}

.messages-contact-scope-options label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.messages-contact-scope-options input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary);
}

.messages-indicator {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1300;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.5rem;
    padding: 0.75rem 1rem 0.75rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 77, 120, 0.96);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(8, 32, 53, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.messages-indicator:hover,
.messages-indicator:focus-visible {
    transform: translateY(-2px);
    background: rgba(15, 96, 149, 0.98);
    box-shadow: 0 22px 40px rgba(8, 32, 53, 0.26);
}

.messages-indicator-badge {
    flex: 0 0 auto;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffcf54;
    color: #3d2a00;
    font-weight: 800;
    line-height: 1;
}

.messages-indicator-copy {
    display: grid;
    min-width: 0;
}

.messages-indicator-copy strong {
    color: inherit;
    line-height: 1.15;
}

.virtual-assistant-button {
    position: fixed;
    right: 1.15rem;
    bottom: 1rem;
    z-index: 1450;
    width: 4rem;
    height: 6rem;
    display: grid;
    place-items: end center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 18px 24px rgba(8, 32, 53, 0.26));
    transition: transform 0.18s ease, filter 0.18s ease;
}

.virtual-assistant-button:hover,
.virtual-assistant-button:focus-visible {
    transform: translateY(-3px);
    filter: drop-shadow(0 22px 30px rgba(8, 32, 53, 0.3));
}

.virtual-assistant-button:focus-visible {
    outline: 3px solid rgba(24, 182, 176, 0.42);
    outline-offset: 0.25rem;
}

.virtual-assistant-button img {
    width: 4rem;
    height: 6rem;
    object-fit: contain;
}

.page-help-dialog {
    width: min(420px, calc(100% - 2rem));
    max-height: min(76vh, 660px);
    margin: 0;
    padding: 0;
    border: 0;
    position: fixed;
    inset: auto 1.2rem 7.5rem auto;
    background: transparent;
    color: var(--text);
    overflow: visible;
}

.page-help-dialog::backdrop {
    background: rgba(8, 32, 53, 0.18);
    backdrop-filter: blur(2px);
}

.page-help-dialog [hidden] {
    display: none !important;
}

.page-help-dialog-shell {
    position: relative;
    display: grid;
    gap: 1rem;
    max-height: inherit;
    overflow: auto;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 252, 0.96));
    box-shadow: 0 24px 56px rgba(8, 32, 53, 0.22);
}

.page-help-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 77, 120, 0.08);
    color: var(--primary-deep);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.page-help-close:hover,
.page-help-close:focus-visible {
    background: rgba(15, 77, 120, 0.14);
}

.page-help-header {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding-right: 2rem;
}

.page-help-header img {
    width: 3rem;
    height: 4.5rem;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(8, 32, 53, 0.18));
}

.page-help-header h2 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 1.12rem;
    line-height: 1.2;
}

.page-help-header p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.page-help-loading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 14px;
    background: rgba(238, 246, 251, 0.8);
    color: var(--primary-deep);
    font-weight: 700;
}

.page-help-loading .app-loading-spinner {
    width: 1.8rem;
    height: 1.8rem;
    border-width: 2px;
}

.page-help-content {
    display: grid;
    gap: 0.9rem;
}

.page-help-section-nav {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.page-help-section-nav button {
    flex: 0 0 auto;
    min-height: 2.35rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 8px;
    background: rgba(238, 246, 251, 0.88);
    color: var(--primary-deep);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.page-help-section-nav button:hover,
.page-help-section-nav button:focus-visible {
    background: rgba(24, 182, 176, 0.14);
}

.page-help-sections {
    display: grid;
    gap: 0.85rem;
}

.page-help-section {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 77, 120, 0.08);
}

.page-help-section h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 0.98rem;
}

.page-help-section ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
    line-height: 1.52;
}

.page-help-section li + li {
    margin-top: 0.35rem;
}

.page-help-device-note,
.page-help-error {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(24, 182, 176, 0.1);
    line-height: 1.45;
}

.page-help-error {
    display: grid;
    justify-items: start;
    gap: 0.65rem;
    color: #8a3446;
    background: rgba(255, 238, 241, 0.92);
    border: 1px solid rgba(227, 74, 101, 0.16);
}

.page-help-error p {
    margin: 0;
}

.page-help-device-note {
    color: var(--primary-deep);
}

.messages-indicator {
    bottom: 7.4rem;
}

.table-responsive {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table thead th {
    text-align: left;
    padding: 1rem 0.95rem;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.data-table tbody td {
    padding: 1rem 0.95rem;
    border-bottom: 1px solid rgba(16, 48, 75, 0.06);
    color: var(--text);
    vertical-align: top;
}

.data-table tbody tr:hover {
    background: rgba(15, 125, 184, 0.03);
}

.empty-card {
    padding: 2rem;
    text-align: center;
}

.provider-staff-form-actions {
    justify-content: flex-start;
}

.provider-staff-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.provider-staff-capacity {
    display: inline-block;
    margin-left: 0.4rem;
    color: var(--muted);
    font-size: 0.9em;
    font-weight: 700;
}

.provider-staff-status-section {
    margin-top: 1.25rem;
}

.provider-staff-status-section-inactive {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.provider-staff-row-inactive {
    color: var(--muted);
    background: #f3f4f6;
}

.provider-staff-row-inactive .provider-staff-table-logo {
    filter: grayscale(1);
    opacity: 0.7;
}

.staff-logo-upload {
    margin-top: 1rem;
}

.provider-staff-table-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(15, 77, 120, 0.12);
    background: #fff;
    box-shadow: 0 8px 18px rgba(8, 32, 53, 0.08);
}

.staff-logo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.85rem;
    max-height: min(58vh, 520px);
    overflow: auto;
    padding: 0.15rem;
}

.staff-logo-option {
    display: grid;
    justify-items: center;
    padding: 0.9rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 251, 0.72));
    color: var(--primary-deep);
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.staff-logo-option:hover,
.staff-logo-option:focus-visible,
.staff-logo-option.is-selected {
    transform: translateY(-2px);
    border-color: rgba(24, 182, 176, 0.42);
    box-shadow: 0 16px 36px rgba(15, 77, 120, 0.12);
}

.staff-logo-option.is-selected {
    background: linear-gradient(180deg, rgba(238, 252, 250, 0.98), rgba(220, 246, 243, 0.86));
}

.staff-logo-option img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.provider-staff-delete-form {
    margin: 0;
}

.provider-service-selected-staff {
    margin: 0 0 1rem;
    color: var(--primary-deep);
    line-height: 1.5;
}

.provider-section-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    border-radius: 18px;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.provider-section-back-button:hover,
.provider-section-back-button:focus-visible {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 18px rgba(8, 32, 53, 0.16));
}

.provider-section-back-button img {
    display: block;
    width: clamp(54px, 8vw, 74px);
    height: auto;
}

.provider-service-staff-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.provider-service-staff-button {
    display: grid;
    gap: 0.2rem;
    min-width: 220px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 77, 120, 0.12);
    background: rgba(252, 254, 255, 0.96);
    color: var(--primary-deep);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(8, 32, 53, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.provider-service-staff-button:hover,
.provider-service-staff-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 32, 53, 0.08);
    border-color: rgba(24, 182, 176, 0.35);
}

.provider-service-staff-button.is-active {
    border-color: rgba(24, 182, 176, 0.5);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 251, 0.92));
}

.provider-service-staff-button span {
    font-weight: 800;
}

.provider-service-staff-button small {
    color: var(--muted);
}

.provider-service-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.provider-service-quick-button {
    width: auto;
}

.provider-service-table {
    min-width: 680px;
}

.provider-service-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.provider-service-inline-form {
    margin: 0;
}

.provider-announcement-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.provider-announcement-status.is-active {
    background: rgba(24, 182, 176, 0.12);
    color: #0e6d6a;
}

.provider-announcement-status.is-inactive {
    background: rgba(15, 77, 120, 0.08);
    color: var(--primary-deep);
}

.responsive-data-table {
    min-width: 0;
}

.footer {
    margin-top: auto;
    padding: 1.6rem 0 2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(15, 77, 120, 0.08);
    padding-top: 1.25rem;
    color: var(--muted);
}

.footer-inner p {
    margin: 0;
}

.footer-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-link:hover {
    background: rgba(238, 246, 251, 0.96);
    border-color: rgba(24, 182, 176, 0.32);
    transform: translateY(-1px);
}

.account-dialog {
    width: min(760px, calc(100% - 2rem));
    border: 0;
    padding: 0;
    background: transparent;
}

.account-dialog::backdrop {
    background: rgba(7, 28, 45, 0.42);
    backdrop-filter: blur(8px);
}

.account-dialog-shell {
    position: relative;
    padding: clamp(1.4rem, 2vw, 2rem);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 77, 120, 0.1);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(7, 42, 67, 0.22);
}

.account-dialog-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(238, 246, 251, 0.95);
    color: var(--primary-deep);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.account-dialog-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.brand-video-dialog {
    width: min(980px, calc(100% - 1.5rem));
}

.brand-video-dialog-shell {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.brand-video-dialog-header {
    padding-right: 2.8rem;
}

.brand-video-dialog-header h2 {
    margin: 0 0 0.35rem;
}

.brand-video-dialog-header p {
    margin: 0;
    color: var(--muted);
}

.brand-video-player {
    display: block;
    width: 100%;
    max-height: min(68vh, 720px);
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #071c2d;
    object-fit: contain;
}

.brand-video-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-dialog-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    color: var(--primary-deep);
}

.account-dialog-header p {
    margin: 0.75rem auto 0;
    max-width: 48ch;
    color: var(--muted);
    line-height: 1.6;
}

.announcement-video-dialog {
    width: min(980px, calc(100% - 2rem));
}

.announcement-video-dialog-shell {
    padding: clamp(1rem, 2vw, 1.4rem);
}

.announcement-video-dialog-header {
    margin-bottom: 0.9rem;
}

.announcement-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #071c2d;
}

.announcement-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.account-dialog-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 auto 0.2rem;
    max-width: 34rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(238, 246, 251, 0.72);
    color: var(--primary-deep);
    font-weight: 700;
}

.account-dialog-consent-copy {
    line-height: 1.5;
}

.account-dialog-consent input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.18rem;
    accent-color: var(--accent);
}

.account-dialog-consent-more {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-deep);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    vertical-align: baseline;
}

.account-dialog-consent-details {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    white-space: pre-line;
}

.account-dialog-consent-link {
    color: var(--primary-deep);
    font-weight: 800;
    text-decoration: underline;
}

.account-dialog-consent-link-button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.account-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    border-radius: 999px;
    padding: 0.72rem 1.15rem;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.primary-button {
    border: 1px solid rgba(15, 125, 184, 0.18);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 18px 34px rgba(15, 125, 184, 0.18);
}

.secondary-button {
    border: 1px solid rgba(15, 77, 120, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-deep);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.account-dialog-consent-help {
    margin: 0 auto 1rem;
    max-width: 34rem;
    color: #9c2742;
    line-height: 1.5;
    text-align: center;
}

.account-dialog-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}

.account-dialog-option {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: clamp(1rem, 1.8vw, 1.4rem);
    border-radius: 24px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 251, 0.72));
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.account-dialog-option-button {
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.account-dialog-option:hover,
.account-dialog-option:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(24, 182, 176, 0.35);
    box-shadow: 0 16px 36px rgba(15, 77, 120, 0.12);
}

.account-dialog-option-logo {
    width: clamp(86px, 10vw, 118px);
    height: clamp(86px, 10vw, 118px);
    object-fit: contain;
}

.account-dialog-option-label {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--primary-deep);
}

.account-dialog-warning {
    margin: 0;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(227, 74, 101, 0.08);
    border: 1px solid rgba(227, 74, 101, 0.14);
    color: #9c2742;
    line-height: 1.55;
    font-weight: 600;
}

.subscriptions-info-dialog {
    width: min(920px, calc(100% - 1.5rem));
}

.subscriptions-info-shell {
    max-height: min(86vh, 820px);
    overflow-y: auto;
}

.subscriptions-info-list {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.2rem;
}

.subscriptions-info-item {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.9rem, 2vw, 1.35rem);
    padding: clamp(0.85rem, 1.5vw, 1.05rem);
    border: 1px solid rgba(15, 77, 120, 0.1);
    border-radius: 18px;
    background: rgba(238, 246, 251, 0.62);
}

.subscriptions-info-image {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1;
    object-fit: contain;
    justify-self: center;
}

.subscriptions-info-copy {
    min-width: 0;
}

.subscriptions-info-copy h3 {
    margin: 0 0 0.45rem;
    color: var(--primary-deep);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.2;
}

.subscriptions-info-copy p {
    margin: 0;
    color: var(--text);
    line-height: 1.58;
}

.app-info-dialog {
    width: min(860px, calc(100% - 2rem));
}

.app-info-dialog-shell {
    max-height: min(88vh, 820px);
    overflow: auto;
}

.app-info-dialog-header {
    margin-bottom: 1rem;
}

.app-info-dialog-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary-deep);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-info-dialog-body {
    display: grid;
    gap: 0.85rem;
}

.app-info-dialog-section {
    padding: 1rem;
    border: 1px solid rgba(15, 77, 120, 0.1);
    border-radius: 18px;
    background: rgba(238, 246, 251, 0.62);
}

.app-info-dialog-section h3 {
    margin: 0 0 0.45rem;
    color: var(--primary-deep);
    font-size: 1rem;
}

.app-info-dialog-section p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.app-info-dialog-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
    line-height: 1.6;
}

.app-info-dialog-section li + li {
    margin-top: 0.35rem;
}

.app-info-dialog-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.app-info-dialog-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.32rem 0.7rem;
    border: 1px solid rgba(15, 77, 120, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 800;
}

.app-info-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 77, 120, 0.1);
}

.app-info-dialog-dismiss-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--primary-deep);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.app-info-dialog-dismiss-choice input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.12rem;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.text-analysis-overlay,
.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(8, 32, 53, 0.38);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.app-loading-overlay {
    z-index: 2990;
    background: rgba(8, 32, 53, 0.28);
}

.text-analysis-overlay.is-visible,
.app-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.text-analysis-overlay-card,
.app-loading-overlay-card {
    width: min(100%, 24rem);
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 1.35rem 1.4rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 250, 0.94));
    box-shadow: 0 22px 46px rgba(8, 32, 53, 0.18);
    text-align: center;
}

.app-loading-overlay-card {
    width: min(100%, 20rem);
    padding: 1.2rem 1.3rem;
    border-radius: 20px;
}

.text-analysis-overlay-card strong,
.app-loading-overlay-card strong {
    color: var(--primary-deep);
    font-size: 1.05rem;
}

.text-analysis-overlay-card p,
.app-loading-overlay-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.text-analysis-spinner,
.app-loading-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 3px solid rgba(15, 125, 184, 0.18);
    border-top-color: var(--primary);
    animation: text-analysis-spin 0.85s linear infinite;
}

body.text-analysis-busy,
body.app-loading-busy {
    overflow: hidden;
}

body.app-loading-busy,
[data-app-loading-trigger="true"] {
    cursor: progress;
}

a[data-app-loading-trigger="true"] {
    pointer-events: none;
}

@keyframes text-analysis-spin {
    to {
        transform: rotate(360deg);
    }
}

.home-provider-public-dialog {
    width: min(940px, calc(100% - 2rem));
}

.home-provider-public-dialog-shell {
    padding-top: clamp(1.8rem, 2.4vw, 2.4rem);
}

.home-provider-public-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-right: 2.4rem;
}

.home-provider-public-logo {
    width: clamp(96px, 10vw, 128px);
    height: clamp(96px, 10vw, 128px);
    object-fit: contain;
    border-radius: 22px;
    border: 1px solid rgba(15, 77, 120, 0.12);
    background: #fff;
    box-shadow: 0 14px 28px rgba(8, 32, 53, 0.1);
}

.home-provider-public-title h2 {
    margin: 0;
    color: var(--primary-deep);
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.1;
}

.home-provider-public-title p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-weight: 700;
}

.home-provider-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-provider-company-grid {
    margin-bottom: 1.2rem;
}

.home-provider-public-panel {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 251, 0.76));
}

.home-provider-public-panel-wide {
    grid-column: 1 / -1;
}

.home-provider-public-panel h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 1rem;
}

.home-provider-public-panel p,
.home-provider-public-panel strong {
    margin: 0;
}

.home-provider-review-button,
.home-provider-message-button,
.home-provider-public-contact-actions .btn,
.home-provider-message-form .btn {
    min-height: 2.25rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
}

.home-provider-review-button {
    justify-self: start;
}

.home-provider-review-history {
    gap: 0.8rem;
}

.home-provider-review-list {
    display: grid;
    gap: 0.75rem;
    max-height: 18rem;
    overflow: hidden;
}

.home-provider-review-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 77, 120, 0.08);
    background: rgba(255, 255, 255, 0.86);
}

.home-provider-review-item-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.home-provider-review-item-topline strong,
.home-provider-review-item-topline span {
    margin: 0;
    color: var(--primary-deep);
    font-size: 0.88rem;
}

.home-provider-review-item-topline span {
    color: var(--muted);
    white-space: nowrap;
}

.home-provider-review-item p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.home-provider-review-pagination {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
}

.home-provider-review-counter {
    display: block;
    text-align: right;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.home-provider-public-services {
    display: grid;
    gap: 0.6rem;
    max-height: 16rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.home-provider-public-contact-list {
    display: grid;
    gap: 0.35rem;
}

.home-provider-public-contact-list p {
    margin: 0;
    color: var(--text);
    word-break: break-word;
}

.home-professional-document-status {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-left-width: 4px;
    border-radius: 6px;
    background: #f7fbfd;
}

.home-professional-document-status.is-not_uploaded {
    border-left-color: #65727c;
}

.home-professional-document-status.is-private {
    border-left-color: #b06b18;
    background: #fff8ed;
}

.home-professional-document-status.is-visible {
    border-left-color: #16817a;
    background: #eef8f6;
}

.home-professional-document-warning {
    color: #b42318;
    font-weight: 700;
}

.home-professional-document-status .home-professional-document-open {
    justify-self: start;
    margin-top: 0.2rem;
}

.professional-document-gallery-dialog {
    width: min(980px, calc(100% - 1.5rem));
}

.professional-document-gallery-shell {
    display: grid;
    gap: 1rem;
    max-height: calc(100vh - 2rem);
}

.professional-document-gallery-stage {
    display: grid;
    place-items: center;
    min-height: min(62vh, 620px);
    overflow: auto;
    background: #eef3f6;
}

.professional-document-gallery-stage img {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 760px);
    object-fit: contain;
}

.professional-document-gallery-stage p {
    margin: 0;
    padding: 1rem;
    color: #a32035;
    font-weight: 700;
    text-align: center;
}

.professional-document-gallery-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.professional-document-gallery-controls button:first-child {
    justify-self: end;
}

.professional-document-gallery-controls button:last-child {
    justify-self: start;
}

.professional-document-gallery-controls span {
    min-width: 4.5rem;
    color: var(--primary-deep);
    font-weight: 800;
    text-align: center;
}

.home-route-distance-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(42, 123, 142, 0.24);
    border-radius: 8px;
    background: rgba(42, 123, 142, 0.08);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

button.home-route-distance-line {
    width: 100%;
    font: inherit;
    text-align: left;
}

.home-route-distance-line:disabled {
    cursor: wait;
    opacity: 0.72;
}

.home-route-distance-line.is-error {
    border-color: rgba(176, 58, 58, 0.35);
    background: rgba(176, 58, 58, 0.08);
}

.home-route-distance-line span {
    color: var(--muted);
    font-size: 0.9rem;
}

.home-route-distance-line strong {
    color: var(--accent);
    font-size: 1rem;
    white-space: nowrap;
}

.home-route-distance-line:hover,
.home-route-distance-line:focus-visible {
    border-color: rgba(42, 123, 142, 0.45);
    background: rgba(42, 123, 142, 0.13);
    outline: none;
}

.home-route-distance-line-compact {
    display: inline-flex;
    justify-content: flex-start;
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0.38rem 0.55rem;
    font-size: 0.82rem;
}

.home-route-distance-line-compact span {
    font-size: 0.78rem;
}

.home-route-distance-line-compact strong {
    font-size: 0.86rem;
}

.home-route-distance-unavailable {
    margin: 0.55rem 0 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(192, 122, 31, 0.24);
    border-radius: 8px;
    background: rgba(192, 122, 31, 0.08);
    color: #8a5a12;
    font-size: 0.9rem;
}

.home-provider-public-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.address-map-picker-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
}

.address-map-dialog-shell {
    width: min(920px, calc(100vw - 2rem));
}

.address-map-search-label {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.address-map-canvas {
    width: 100%;
    min-height: 420px;
    border: 1px solid rgba(15, 77, 120, 0.14);
    border-radius: 8px;
    overflow: hidden;
    background: #eef4f7;
}

.address-map-selected {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(42, 123, 142, 0.18);
    border-radius: 8px;
    background: rgba(42, 123, 142, 0.07);
}

.address-map-selected span {
    color: var(--muted);
    word-break: break-word;
}

.home-provider-public-contact-actions form {
    margin: 0;
}

.home-provider-message-form {
    gap: 0.9rem;
}

.home-provider-public-contact-actions .form-submit-button,
.home-provider-message-form .form-submit-button {
    margin-top: 0;
    padding-inline: 0.9rem;
    justify-self: auto;
}

.home-provider-message-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.home-provider-public-service-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(15, 77, 120, 0.08);
}

.home-provider-public-service-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-provider-public-service-row span {
    color: var(--text);
    line-height: 1.45;
}

.home-provider-public-service-row strong {
    color: var(--primary-deep);
    white-space: nowrap;
}

.home-provider-public-text-block {
    max-height: 10.5rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.home-provider-public-staff-section {
    display: grid;
    gap: 0.9rem;
}

.home-provider-public-staff-section h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 1.05rem;
}

.home-provider-public-staff-panels {
    display: grid;
    gap: 1rem;
}

.home-provider-public-staff-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 77, 120, 0.1);
    background: rgba(255, 255, 255, 0.62);
}

.home-provider-public-staff-header {
    margin-bottom: 0;
}

.home-provider-public-staff-logo {
    width: clamp(84px, 9vw, 116px);
    height: clamp(84px, 9vw, 116px);
}

.login-dialog-panels {
    margin-top: 1rem;
}

.login-dialog-panel {
    max-width: 520px;
    margin: 0 auto;
}

.login-turnstile-panel,
.registration-turnstile-panel {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(15, 77, 120, 0.12);
    border-radius: 18px;
    background: rgba(238, 246, 251, 0.74);
}

.login-turnstile-panel[hidden] {
    display: none;
}

.login-turnstile-panel strong,
.registration-turnstile-panel strong {
    color: var(--primary-deep);
}

.login-turnstile-panel p,
.registration-turnstile-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.login-turnstile-widget,
.registration-turnstile-widget {
    min-height: 65px;
}

.login-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.provider-subscription-expired-actions {
    justify-content: center;
}

.login-dialog-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.login-dialog-actions-login {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.login-dialog-actions-login .btn {
    width: 100%;
    justify-content: center;
}

.login-dialog-actions-login .form-submit-button,
.login-dialog-actions-login .password-forgot-button,
.login-dialog-actions-login .login-dialog-back {
    margin-top: 0;
}

.login-dialog-actions-end {
    justify-content: flex-end;
}

.login-dialog-back {
    width: auto;
}

.password-forgot-form {
    display: grid;
}

.password-forgot-button {
    width: auto;
}

@media (max-width: 720px) {
    .login-dialog-actions-login {
        grid-template-columns: 1fr;
    }
}

.account-dialog-option.is-disabled {
    opacity: 0.48;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.account-dialog-option.is-disabled:hover,
.account-dialog-option.is-disabled:focus-visible {
    transform: none;
    border-color: rgba(15, 77, 120, 0.1);
    box-shadow: none;
}

.form-grid-span-2 {
    grid-column: span 2;
}

.address-picker-field {
    gap: 0.7rem;
}

.address-picker-help {
    color: var(--muted);
    line-height: 1.5;
}

.pac-container {
    z-index: 40;
    margin-top: 0.25rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 77, 120, 0.12);
    box-shadow: 0 18px 38px rgba(15, 77, 120, 0.12);
    font-family: "Inter", system-ui, sans-serif;
}

@media (max-width: 1180px) {
    .hero-grid,
    .cta-banner {
        grid-template-columns: 1fr;
    }

    .home-board-section {
        background-image: none;
    }

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

    .home-three-zone.is-focus-mode {
        gap: clamp(1rem, 1.6vw, 1.35rem);
    }

    .home-three-zone.is-focus-mode .home-zone.is-inactive {
        max-height: 0;
        min-height: 0;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }

    .home-three-zone.is-focus-mode .home-zone.is-active .home-list,
    .home-three-zone.is-focus-mode .home-zone.is-active .home-announcements-list {
        grid-template-columns: 1fr;
    }

    .home-zone {
        min-height: 360px;
        height: min(68vh, 720px);
        max-height: min(68vh, 720px);
    }

    .brand-block small {
        display: none;
    }

    .toolbar-account-summary {
        width: 100%;
        padding: 0.75rem 0.9rem;
    }

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

    .messages-indicator {
        right: 0.9rem;
        bottom: 0.9rem;
        gap: 0.65rem;
        min-height: 3.2rem;
        padding: 0.7rem 0.9rem 0.7rem 0.75rem;
    }

    .messages-indicator-badge {
        min-width: 1.9rem;
        height: 1.9rem;
    }

    .home-provider-public-panel-wide {
        grid-column: auto;
    }

    .home-zone-header {
        align-items: center;
        flex-wrap: nowrap;
    }

    .home-zone-actions {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        flex: 0 0 auto;
    }

    .home-zone-action-button {
        flex: 0 0 2.7rem;
        width: 2.7rem;
        min-width: 2.7rem;
        height: 2.7rem;
        min-height: 2.7rem;
        padding: 0;
    }

    .messages-management-header,
    .messages-management-main,
    .messages-management-grid {
        grid-template-columns: 1fr;
    }

    .messages-management-header {
        display: grid;
    }

    .messages-chat-bubble {
        max-width: 100%;
    }

    .main-nav { justify-content: flex-start; }
    .toolbar { justify-content: flex-start; }
}

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

    .form-grid-span-2 {
        grid-column: auto;
    }

    .container { width: calc(100% - 1.3rem); }
    .topbar-inner { padding: 0.85rem 0; }
    .hero-section { padding-top: 2.4rem; }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .topbar-panel {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 0.35rem;
    }

    .topbar-panel.is-open {
        display: grid;
        gap: 1rem;
    }

    .main-nav,
    .toolbar {
        width: 100%;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .main-nav a,
    .main-nav button {
        border: 1px solid rgba(15, 77, 120, 0.1);
        background: rgba(255, 255, 255, 0.92);
        border-radius: 18px;
        padding: 0.85rem 1rem;
    }

    .toolbar {
        display: grid;
        gap: 0.7rem;
    }

    .toolbar-group {
        width: 100%;
    }

    .toolbar-popup-trigger,
    .toolbar-popup {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .contact-person dl > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .brand-block small {
        display: none;
    }

    .toolbar-account-summary strong {
        font-size: 0.78rem;
    }

    .toolbar-account-summary span {
        font-size: 0.71rem;
    }

    .management-module-card {
        min-height: 220px;
        width: 100%;
    }

    .account-dialog {
        width: calc(100% - 1rem);
    }

    .account-dialog-options {
        grid-template-columns: 1fr;
    }

    .subscriptions-info-shell {
        max-height: 92vh;
    }

    .subscriptions-info-item {
        grid-template-columns: 78px minmax(0, 1fr);
        align-items: flex-start;
    }

    .subscriptions-info-image {
        max-width: 78px;
    }

    .app-info-dialog-shell {
        max-height: 92vh;
        padding: 1.2rem;
    }

    .app-info-dialog-section {
        padding: 0.9rem;
    }

    .app-info-dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .app-info-dialog-footer .primary-button {
        width: 100%;
    }

    .hero-copy h1,
    .page-hero h1 {
        max-width: none;
    }

    .beneficiary-announcements-header,
    .beneficiary-account-header,
    .provider-account-header,
    .provider-services-child-header {
        display: grid;
    }

    .toolbar,
    .toolbar-group,
    .toolbar-popup,
    .toolbar-popup-trigger,
    .btn {
        width: 100%;
    }

    .toolbar-popup-trigger,
    .btn {
        justify-content: center;
    }

    .provider-service-staff-button,
    .provider-service-quick-button,
    .provider-staff-table-actions .btn,
    .provider-service-table-actions .btn,
    .provider-staff-delete-form,
    .provider-service-inline-form {
        width: 100%;
    }

    .provider-logo-upload,
    .beneficiary-logo-selector {
        grid-template-columns: 1fr;
    }

    .provider-staff-table-actions,
    .provider-service-table-actions {
        width: 100%;
        display: grid;
    }

    .toolbar-popup-menu,
    .hero-actions,
    .cta-actions {
        width: 100%;
    }

    .toolbar-popup-menu {
        left: 0;
        right: 0;
        min-width: 0;
    }

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

    .nav-item-label {
        white-space: normal;
    }

    .nav-toggle {
        width: auto;
    }

}

/* Provider network */
:root {
    --network-current: #6842a8;
    --network-beneficiary: #2476a8;
    --network-caregiver: #27875d;
    --network-provider: #cb6c12;
    --network-staff: #07877f;
    --network-inactive: #7b8791;
    --network-alert: #b33a57;
    --network-surface: #f6f9fb;
    --network-border: #cbd7df;
    --network-text: #173247;
}

.provider-network-page {
    padding: 1.35rem 0 2.25rem;
    color: var(--network-text);
}

.provider-network-container {
    max-width: 1540px;
}

.provider-network-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-network-header h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.2rem, 2.2rem);
    letter-spacing: 0;
}

.provider-network-header p {
    max-width: 62rem;
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.provider-network-workspace {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(480px, 1fr) minmax(220px, 280px);
    min-height: 650px;
    border: 1px solid var(--network-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(19, 48, 68, 0.09);
}

.provider-network-panel {
    min-width: 0;
    padding: 1rem;
    background: var(--network-surface);
    overflow-y: auto;
}

.provider-network-summary {
    border-right: 1px solid var(--network-border);
}

.provider-network-details {
    border-left: 1px solid var(--network-border);
}

.provider-network-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.provider-network-panel h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.provider-network-panel h3 {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    letter-spacing: 0;
}

.provider-network-panel-close,
.provider-network-mobile-tools {
    display: none;
}

.provider-network-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0;
}

.provider-network-stats > div {
    display: grid;
    align-content: space-between;
    min-height: 76px;
    padding: 0.65rem;
    border: 1px solid #d8e2e8;
    border-radius: 6px;
    background: #fff;
}

.provider-network-stats dt {
    font-size: 0.74rem;
    line-height: 1.25;
    color: #536978;
}

.provider-network-stats dd {
    margin: 0.35rem 0 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--network-current);
}

.provider-network-control-group {
    position: relative;
    margin-top: 1rem;
}

.provider-network-control-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.provider-network-control-group input,
.provider-network-control-group select {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    border: 1px solid #aebec9;
    border-radius: 6px;
    background: #fff;
    color: var(--network-text);
}

.provider-network-hidden-open {
    width: 100%;
    margin-top: 0.75rem;
    justify-content: center;
}

.provider-network-search-results {
    position: absolute;
    z-index: 10;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid var(--network-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(19, 48, 68, 0.16);
}

.provider-network-search-results button,
.provider-network-search-results span {
    display: block;
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 0;
    background: transparent;
    color: var(--network-text);
    text-align: left;
}

.provider-network-search-results button:hover,
.provider-network-search-results button:focus-visible {
    background: #e8f1f6;
}

.provider-network-legend {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--network-border);
}

.provider-network-legend ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
}

.provider-network-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.network-legend-symbol {
    font-size: 1.3rem;
    line-height: 1;
}

.network-legend-symbol.is-current { color: var(--network-current); }
.network-legend-symbol.is-beneficiary { color: var(--network-beneficiary); }
.network-legend-symbol.is-provider { color: var(--network-provider); }
.network-legend-symbol.is-staff { color: var(--network-staff); }
.network-legend-symbol.is-external-staff { color: var(--network-provider); }

.network-legend-line {
    width: 24px;
    border-top: 3px dashed var(--network-inactive);
}

.network-legend-line.is-not-requested {
    border-top-style: dotted;
}

.provider-network-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    background: #fff;
}

.provider-network-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--network-border);
    background: #fdfefe;
}

.provider-network-view-switch,
.provider-network-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.provider-network-toolbar button {
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    border: 1px solid #aebec9;
    border-radius: 5px;
    background: #fff;
    color: var(--network-text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.provider-network-toolbar button:hover,
.provider-network-toolbar button:focus-visible,
.provider-network-view-switch button.is-active {
    border-color: var(--network-current);
    background: #eee8f7;
    color: #4a2d7d;
}

.provider-network-toolbar .network-icon-button {
    width: 36px;
    padding: 0;
    font-size: 1.25rem;
}

.provider-network-viewport {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background-color: #fbfdfe;
    background-image: radial-gradient(#cedae1 0.8px, transparent 0.8px);
    background-size: 18px 18px;
}

#provider-network-graph {
    position: absolute;
    inset: 0;
    touch-action: none;
}

.provider-network-loading,
.provider-network-state {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: calc(100% - 2rem);
    padding: 0.85rem 1rem;
    transform: translate(-50%, -50%);
    border: 1px solid var(--network-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(19, 48, 68, 0.12);
}

.provider-network-loading[hidden],
.provider-network-state[hidden] {
    display: none;
}

.provider-network-tooltip {
    position: absolute;
    z-index: 5;
    max-width: 260px;
    padding: 0.45rem 0.55rem;
    border-radius: 4px;
    background: #173247;
    color: #fff;
    font-size: 0.76rem;
    pointer-events: none;
}

.provider-network-list {
    min-height: 590px;
    overflow: auto;
    padding: 0.75rem;
}

.provider-network-list table {
    width: 100%;
    border-collapse: collapse;
}

.provider-network-list th,
.provider-network-list td {
    padding: 0.7rem;
    border-bottom: 1px solid #dce5ea;
    text-align: left;
    font-size: 0.84rem;
}

.provider-network-list tbody tr {
    cursor: pointer;
}

.provider-network-list tbody tr:hover,
.provider-network-list tbody tr:focus-visible {
    outline: 2px solid var(--network-current);
    outline-offset: -2px;
    background: #f2edf8;
}

.provider-network-truncated {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #e1c888;
    background: #fff7dc;
    color: #594512;
    font-size: 0.8rem;
}

.provider-network-detail-empty {
    padding: 1rem 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.provider-network-detail-identity {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--network-border);
}

.provider-network-detail-identity img {
    width: 58px;
    height: 58px;
    border: 3px solid var(--network-current);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.provider-network-detail-identity h3,
.provider-network-detail-identity p {
    overflow-wrap: anywhere;
}

.provider-network-detail-identity h3 {
    margin: 0;
    font-size: 0.98rem;
}

.provider-network-detail-identity p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.provider-network-detail-list {
    margin: 0.9rem 0 0;
}

.provider-network-detail-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #e0e8ed;
}

.provider-network-detail-list > div[hidden] {
    display: none;
}

.provider-network-detail-list dt {
    color: #586c79;
    font-size: 0.78rem;
}

.provider-network-detail-list dd {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.provider-network-detail-list dd.is-multiline {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    text-align: left;
    white-space: pre-line;
}

.provider-network-detail-list dd.is-warning {
    color: #b42318;
    font-weight: 800;
}

.provider-network-detail-list dd.is-success {
    color: #176b3a;
}

.provider-network-private-details[hidden],
.provider-network-private-unavailable[hidden] {
    display: none;
}

.provider-network-private-unavailable {
    margin: 0.9rem 0 0;
    padding: 0.65rem;
    border: 1px solid #c7a54f;
    border-radius: 5px;
    background: #fff6d9;
    color: #644f14;
    font-size: 0.78rem;
    line-height: 1.4;
}

.provider-network-detail-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.provider-network-detail-actions > [hidden] {
    display: none;
}

.provider-network-permissions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--network-border);
}

.provider-network-permissions[hidden] {
    display: none;
}

.provider-network-permission-section {
    padding: 0.7rem;
    border: 1px solid #ccd9e1;
    border-radius: 6px;
    background: #fff;
}

.provider-network-permission-section h3 {
    margin-bottom: 0.35rem;
}

.provider-network-permission-status {
    margin: 0 0 0.6rem;
    color: #526978;
    font-size: 0.78rem;
    line-height: 1.4;
}

.provider-network-owned-resources {
    display: grid;
    gap: 0.55rem;
}

.provider-network-owned-resource {
    display: grid;
    gap: 0.45rem;
    padding: 0.6rem;
    border: 1px solid #d7e1e7;
    border-radius: 5px;
    background: #f8fbfc;
}

.provider-network-owned-resource strong,
.provider-network-owned-resource small {
    display: block;
    overflow-wrap: anywhere;
}

.provider-network-owned-resource strong {
    font-size: 0.82rem;
}

.provider-network-owned-resource small {
    margin-top: 0.15rem;
    color: #607582;
    font-size: 0.72rem;
}

.provider-network-permission-badge {
    width: fit-content;
    max-width: 100%;
    padding: 0.2rem 0.4rem;
    border: 1px solid #aabac4;
    border-radius: 4px;
    background: #edf2f5;
    color: #334d5d;
    font-size: 0.7rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.provider-network-permission-badge.is-granted {
    border-color: #6baa8b;
    background: #e5f4ec;
    color: #185c3e;
}

.provider-network-permission-badge.is-pending_incoming {
    border-color: #c7a54f;
    background: #fff6d9;
    color: #644f14;
}

.provider-network-permission-badge.is-available {
    border-color: #8f77b6;
    background: #f0eaf8;
    color: #4a2d7d;
}

.provider-network-resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.provider-network-resource-actions .btn,
.provider-network-permission-section > .btn {
    min-height: 36px;
    padding: 0.4rem 0.55rem;
    font-size: 0.74rem;
}

.provider-network-permission-section > .btn[hidden] {
    display: none;
}

.provider-network-action-status {
    margin: 0;
    padding: 0.55rem;
    border: 1px solid #7db797;
    border-radius: 5px;
    background: #e8f5ee;
    color: #185c3e;
    font-size: 0.76rem;
}

.provider-network-action-status.is-error {
    border-color: #d49aaa;
    background: #fae9ee;
    color: #79223b;
}

.provider-network-panel-backdrop {
    position: fixed;
    z-index: 94;
    inset: 0;
    background: rgba(10, 31, 46, 0.42);
}

.provider-network-hidden-dialog {
    position: fixed;
    z-index: 1200;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 32px));
    overflow: auto;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #ccd5dc;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(23, 50, 71, 0.24);
}

.provider-network-hidden-backdrop {
    position: fixed;
    z-index: 1199;
    inset: 0;
    background: rgba(10, 31, 46, 0.48);
}

.provider-network-hidden-backdrop[hidden],
.provider-network-hidden-dialog[hidden] {
    display: none;
}

.provider-network-hidden-dialog-header,
.provider-network-hidden-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.provider-network-hidden-dialog-header h2 {
    margin: 0;
}

.provider-network-dialog-close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 1px solid #b7c3cc;
    border-radius: 6px;
    background: #ffffff;
    color: #173247;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.provider-network-dialog-close:hover,
.provider-network-dialog-close:focus-visible {
    border-color: #6842a8;
    outline: 3px solid rgba(104, 66, 168, 0.2);
}

.provider-network-hidden-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.provider-network-hidden-item {
    padding: 12px;
    border: 1px solid #d6dee4;
    border-radius: 6px;
    background: #f7f9fa;
}

.provider-network-hidden-item strong,
.provider-network-hidden-item small {
    display: block;
}

.provider-network-hidden-item small {
    margin-top: 3px;
    color: #566672;
}

.provider-network-hide-node {
    color: #9b2036;
    border-color: #c47a87;
}

@media (max-width: 1180px) {
    .provider-network-workspace {
        grid-template-columns: 210px minmax(420px, 1fr) 230px;
    }

    .provider-network-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .provider-network-mobile-tools {
        display: flex;
        gap: 0.55rem;
        margin-bottom: 0.7rem;
    }

    .provider-network-workspace {
        display: block;
        min-height: 0;
    }

    .provider-network-panel {
        position: fixed;
        z-index: 95;
        top: 0;
        bottom: 0;
        width: min(86vw, 340px);
        padding: 1rem;
        visibility: hidden;
        transition: transform 180ms ease, visibility 180ms;
        box-shadow: 0 0 28px rgba(10, 31, 46, 0.2);
    }

    .provider-network-summary {
        left: 0;
        border-right: 0;
        transform: translateX(-105%);
    }

    .provider-network-details {
        right: 0;
        border-left: 0;
        transform: translateX(105%);
    }

    .provider-network-panel.is-open {
        visibility: visible;
        transform: translateX(0);
    }

    .provider-network-panel-close {
        display: inline-grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 1px solid #aebec9;
        border-radius: 5px;
        background: #fff;
        color: var(--network-text);
        font-size: 1.3rem;
    }

    .provider-network-viewport,
    .provider-network-list {
        min-height: 68vh;
    }
}

@media (max-width: 640px) {
    .provider-network-page {
        padding-top: 0.75rem;
    }

    .provider-network-header {
        align-items: stretch;
        flex-direction: column;
    }

    .provider-network-header h1 {
        font-size: 1.55rem;
    }

    .provider-network-toolbar {
        min-height: 0;
    }

    .provider-network-view-switch,
    .provider-network-actions {
        width: 100%;
    }

    .provider-network-toolbar button {
        min-height: 44px;
    }

    .provider-network-toolbar .network-icon-button {
        width: 44px;
    }

    .provider-network-viewport,
    .provider-network-list {
        min-height: 64vh;
    }

    .provider-network-list table,
    .provider-network-list thead,
    .provider-network-list tbody,
    .provider-network-list tr,
    .provider-network-list th,
    .provider-network-list td {
        display: block;
        width: 100%;
    }

    .provider-network-list thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .provider-network-list tr {
        margin-bottom: 0.65rem;
        padding: 0.6rem;
        border: 1px solid var(--network-border);
        border-radius: 6px;
    }

    .provider-network-list td {
        padding: 0.35rem;
        border: 0;
    }
}

@media (max-width: 860px) {
    .contact-showcase {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-presenter {
        justify-content: center;
        max-height: 42vh;
        overflow: hidden;
    }

    .contact-presenter-image {
        width: min(82vw, 330px);
        max-height: 46vh;
    }

    .contact-info-panel {
        margin-top: -0.35rem;
    }

    .provider-subscription-header {
        align-items: stretch;
        flex-direction: column;
    }

    .provider-subscription-actions-grid {
        display: grid;
    }

    .provider-subscription-payment-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .provider-billing-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .provider-billing-summary,
    .provider-billing-form-grid {
        grid-template-columns: 1fr;
    }

    .provider-billing-summary > div,
    .provider-billing-summary > div:nth-child(odd),
    .provider-billing-summary > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 77, 120, 0.1);
    }

    .provider-billing-summary > div:last-child {
        border-bottom: 0;
    }

    .responsive-data-table thead {
        display: none;
    }

    .responsive-data-table,
    .responsive-data-table tbody,
    .responsive-data-table tr,
    .responsive-data-table td {
        display: block;
        width: 100%;
    }

    .responsive-data-table tbody {
        display: grid;
        gap: 1rem;
    }

    .responsive-data-table tbody tr {
        padding: 1rem;
        border-radius: 20px;
        background: rgba(238, 246, 251, 0.56);
        border: 1px solid rgba(15, 77, 120, 0.08);
    }

    .responsive-data-table tbody td {
        padding: 0;
        border: 0;
    }

    .responsive-data-table tbody td + td {
        margin-top: 0.85rem;
    }

    .responsive-data-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--muted);
    }
}

.messages-indicator {
    bottom: 7.4rem;
}

@media (max-width: 640px) {
    .messages-indicator {
        right: 0.75rem;
        bottom: 6.2rem;
        max-width: calc(100% - 1.5rem);
    }
}

@media (max-width: 640px) {
    .virtual-assistant-button {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 3.25rem;
        height: 4.875rem;
    }

    .virtual-assistant-button img {
        width: 3.25rem;
        height: 4.875rem;
    }

    .messages-indicator {
        right: 0.75rem;
        bottom: 6.2rem;
        max-width: calc(100% - 1.5rem);
    }

    .page-help-dialog {
        width: 100%;
        max-width: none;
        max-height: 78vh;
        inset: auto 0 0 0;
    }

    .page-help-dialog::backdrop {
        background: rgba(8, 32, 53, 0.28);
        backdrop-filter: blur(3px);
    }

    .page-help-dialog-shell {
        border-radius: 22px 22px 0 0;
        padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
        border-bottom: 0;
    }

    .page-help-header {
        grid-template-columns: 2.6rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .page-help-header img {
        width: 2.6rem;
        height: 3.9rem;
    }
}
