: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;
}

.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;
}

.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-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);
}

.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: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    margin-bottom: 0.85rem;
    scrollbar-width: thin;
}

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

.home-zone-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    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;
    white-space: nowrap;
}

.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 {
    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 {
    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-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-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-card {
    padding: clamp(1.4rem, 2.4vw, 2rem);
}

.contact-card h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.1;
}

.contact-card > p {
    margin: 0;
    max-width: 72ch;
}

.contact-authors {
    margin-top: 1.35rem;
}

.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;
}

.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);
}

.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);
}

.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-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;
}

.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-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-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;
}

.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;
}

.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%);
}

.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(260px, 320px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.messages-thread-list-panel,
.messages-chat-panel,
.messages-management-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
    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-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.75rem;
}

.messages-thread-item {
    position: relative;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 18px;
    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.45rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 0.3rem;
    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-logo {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 77, 120, 0.08);
}

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

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

.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-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-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 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;
    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-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

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

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

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.text-analysis-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;
}

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

.text-analysis-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;
}

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

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

.text-analysis-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 {
    overflow: hidden;
}

@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-provider-public-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.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-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.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) {
    .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;
    }

    .hero-copy h1,
    .page-hero h1 {
        max-width: none;
    }

    .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;
    }

}

@media (max-width: 860px) {
    .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);
    }
}
