:root {
    --fcrm-blue: #287ec1;
    --fcrm-blue-dark: #185f9a;
    --fcrm-blue-soft: #eaf4fb;
    --fcrm-yellow: #f4cc22;
    --fcrm-yellow-soft: #fff8d9;
    --fcrm-ink: #17324d;
    --fcrm-muted: #708295;
    --fcrm-line: #dfe8ef;
    --fcrm-bg: #f4f7f9;
    --fcrm-white: #fff;
    --fcrm-green: #2f9f78;
    --fcrm-green-soft: #e8f7f1;
    --fcrm-purple: #7b6fc5;
    --fcrm-purple-soft: #f0edfb;
    --fcrm-warm: #d9825b;
    --fcrm-shadow: 0 12px 36px rgba(28, 61, 89, .08);
    --fcrm-radius: 18px;
}

* { box-sizing: border-box; }

.fcrm-demo-body {
    margin: 0;
    background: var(--fcrm-bg);
}

body.fcrm-portal-page {
    margin: 0;
    background: var(--fcrm-bg);
}

.fcrm-shell,
.fcrm-login-shell,
.fcrm-access-denied {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--fcrm-ink);
    -webkit-font-smoothing: antialiased;
}

.fcrm-shell button,
.fcrm-shell input,
.fcrm-shell select,
.fcrm-shell textarea,
.fcrm-login-shell input,
.fcrm-login-shell button {
    font: inherit;
}

.fcrm-shell button { color: inherit; }

.fcrm-shell {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    background: var(--fcrm-bg);
    line-height: 1.45;
}

.fcrm-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    width: 256px;
    height: 100vh;
    padding: 25px 18px 16px;
    background: #fff;
    border-right: 1px solid var(--fcrm-line);
    z-index: 30;
}

.fcrm-logo {
    display: flex;
    align-items: center;
    padding: 0 4px 18px;
    text-decoration: none !important;
}
.fcrm-logo img { display: block; width: 100%; max-width: 214px; height: 73px; object-fit: contain; object-position: left center; }

.fcrm-workspace {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 5px 14px;
    padding: 11px 12px;
    background: var(--fcrm-blue-soft);
    border-radius: 11px;
}

.fcrm-workspace span {
    font-size: 12px;
    font-weight: 750;
}

.fcrm-workspace small {
    color: var(--fcrm-blue-dark);
    font-size: 10px;
}

.fcrm-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fcrm-nav a,
.fcrm-sidebar-bottom > a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 0 12px;
    color: #52677a !important;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
    transition: .18s ease;
}

.fcrm-nav a:hover,
.fcrm-sidebar-bottom > a:hover {
    color: var(--fcrm-blue-dark) !important;
    background: #f6f9fb;
}

.fcrm-nav a.active {
    color: var(--fcrm-blue-dark) !important;
    background: var(--fcrm-blue-soft);
}

.fcrm-nav a.active::before {
    position: absolute;
    left: 0;
    width: 3px;
    height: 26px;
    background: var(--fcrm-blue);
    border-radius: 0 4px 4px 0;
    content: "";
}

.fcrm-nav-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    font-weight: 400;
}

.fcrm-nav em {
    min-width: 22px;
    margin-left: auto;
    padding: 2px 6px;
    color: var(--fcrm-blue-dark);
    background: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-style: normal;
    text-align: center;
}

.fcrm-sidebar-bottom {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--fcrm-line);
}

.fcrm-user-mini {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 12px 8px 0;
}

.fcrm-user-mini span:nth-child(2) { min-width: 0; }
.fcrm-user-mini strong,
.fcrm-user-mini small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fcrm-user-mini strong { font-size: 12px; }
.fcrm-user-mini small { color: var(--fcrm-muted); font-size: 9px; }
.fcrm-user-mini button {
    padding: 0;
    color: var(--fcrm-muted);
    background: none;
    border: 0;
    cursor: pointer;
}

.fcrm-app { min-width: 0; }

.fcrm-topbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    padding: 10px 32px;
    background: rgba(244, 247, 249, .92);
    border-bottom: 1px solid rgba(223, 232, 239, .9);
    backdrop-filter: blur(16px);
    z-index: 20;
}

.fcrm-page-title span,
.fcrm-page-title strong { display: block; }
.fcrm-page-title span {
    margin-bottom: 2px;
    color: var(--fcrm-muted);
    font-size: 10px;
    font-weight: 650;
    text-transform: capitalize;
}
.fcrm-page-title strong { font-size: 17px; }

.fcrm-top-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.fcrm-role-switch {
    display: flex;
    padding: 3px;
    background: #e7eef3;
    border-radius: 10px;
}

.fcrm-role-switch button {
    padding: 6px 10px;
    color: var(--fcrm-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.fcrm-role-switch button.active {
    color: var(--fcrm-blue-dark);
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 50, 77, .09);
}

.fcrm-icon-button,
.fcrm-mobile-menu {
    position: relative;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 50%;
    cursor: pointer;
}

.fcrm-icon-button em {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    color: #493900;
    background: var(--fcrm-yellow);
    border: 2px solid #fff;
    border-radius: 9px;
    font-size: 7px;
    font-style: normal;
    font-weight: 850;
}
.fcrm-icon-button.active { color: var(--fcrm-blue); background: #eef7fc; border-color: #bcddef; }
.fcrm-notification-wrap { position: relative; }
.fcrm-notification-panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + 12px);
    right: 0;
    width: min(390px, calc(100vw - 30px));
    max-height: min(610px, calc(100vh - 90px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(17, 47, 70, .2);
}
.fcrm-notification-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 19px 14px;
    border-bottom: 1px solid var(--fcrm-line);
}
.fcrm-notification-panel h2 { margin: 2px 0 0; font-size: 18px; }
.fcrm-notification-header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.fcrm-notification-header-actions small { color: var(--fcrm-blue); font-size: 11px; font-weight: 800; }
.fcrm-notification-header-actions button { padding: 0; color: var(--fcrm-blue); background: transparent; border: 0; font-size: 11px; font-weight: 800; cursor: pointer; }
.fcrm-notification-header-actions button:disabled { color: var(--fcrm-muted); cursor: default; }
.fcrm-chat-head { align-items: center; gap: 18px; }
.fcrm-chat-head .fcrm-btn { flex: 0 0 auto; white-space: nowrap; }
.fcrm-notes-page { max-width: 1180px; }
.fcrm-email-reply-warning { color: #8f1d1d; background: #fff2f2; border-color: #efb3b3; }
.fcrm-email-reply-warning span { color: #b42318; }
.fcrm-notification-list { max-height: 500px; overflow-y: auto; }
.fcrm-notification-list > button {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    color: var(--fcrm-ink);
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--fcrm-line);
    cursor: pointer;
}
.fcrm-notification-list > button.unread { background: #f2f9fd; box-shadow: inset 3px 0 var(--fcrm-blue); }
.fcrm-notification-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--fcrm-blue);
    background: #e0f1fb;
    border-radius: 11px;
}
.fcrm-notification-list strong,
.fcrm-notification-list p,
.fcrm-notification-list em,
.fcrm-notification-list b { display: block; }
.fcrm-notification-list strong { font-size: 14px; }
.fcrm-notification-list p { margin: 5px 0; color: #506679; font-size: 13px; line-height: 1.5; }
.fcrm-notification-list em { color: var(--fcrm-muted); font-size: 11px; font-style: normal; }
.fcrm-notification-list b { grid-column: 2; margin-top: -3px; color: var(--fcrm-blue); font-size: 11px; }

.fcrm-mobile-menu { display: none; }

.fcrm-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #1e6fae;
    background: #dceef9;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.fcrm-avatar.warm { color: #a45738; background: #f9e7df; }
.fcrm-avatar.large { width: 56px; height: 56px; font-size: 14px; }
.fcrm-avatar.xlarge { width: 70px; height: 70px; font-size: 18px; }
.fcrm-avatar-small { width: 34px; height: 34px; }

.fcrm-main {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 25px 32px 50px;
}

.fcrm-welcome,
.fcrm-patient-hero,
.fcrm-finance-hero,
.fcrm-waitlist-intro {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 172px;
    padding: 28px 34px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #176cad, #3291d0);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(28, 109, 169, .18);
}

.fcrm-welcome::before,
.fcrm-patient-hero::before,
.fcrm-finance-hero::before {
    position: absolute;
    right: -60px;
    bottom: -100px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
    content: "";
}

.fcrm-welcome > div:first-child,
.fcrm-patient-hero > div:first-child,
.fcrm-finance-hero > div:first-child { position: relative; z-index: 1; }

.fcrm-kicker,
.fcrm-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fcrm-welcome h1,
.fcrm-waitlist-intro h1 {
    max-width: 650px;
    margin: 0 0 8px;
    color: inherit;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.18;
    letter-spacing: -.035em;
}

.fcrm-welcome h1 span { color: var(--fcrm-yellow); }
.fcrm-welcome p,
.fcrm-patient-hero-copy > span,
.fcrm-waitlist-intro p,
.fcrm-finance-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.fcrm-welcome-art {
    position: relative;
    display: grid;
    place-items: center;
    width: 160px;
    height: 120px;
}

.fcrm-welcome-art span {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    color: var(--fcrm-ink);
    background: var(--fcrm-yellow);
    border: 8px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    font: 45px Georgia, serif;
    z-index: 2;
}

.fcrm-welcome-art i,
.fcrm-welcome-art b {
    position: absolute;
    width: 145px;
    height: 55px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    transform: rotate(25deg);
}
.fcrm-welcome-art b { transform: rotate(-28deg); }

.fcrm-welcome-admin .fcrm-btn-light { position: relative; z-index: 2; }

.fcrm-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.fcrm-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 104px;
    padding: 17px;
    background: #fff;
    border: 1px solid #e4ebf0;
    border-radius: var(--fcrm-radius);
    box-shadow: 0 4px 14px rgba(26, 57, 83, .035);
}

.fcrm-stat-icon,
.fcrm-modal-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 22px;
}

.fcrm-stat-icon.blue, .fcrm-modal-icon.blue { color: #247bbb; background: var(--fcrm-blue-soft); }
.fcrm-stat-icon.green, .fcrm-modal-icon.green { color: var(--fcrm-green); background: var(--fcrm-green-soft); }
.fcrm-stat-icon.yellow, .fcrm-modal-icon.yellow { color: #a88300; background: var(--fcrm-yellow-soft); }
.fcrm-stat-icon.purple, .fcrm-modal-icon.purple { color: var(--fcrm-purple); background: var(--fcrm-purple-soft); }
.fcrm-modal-icon.warm { color: var(--fcrm-warm); background: #fbece5; }

.fcrm-stat-card > div { min-width: 0; }
.fcrm-stat-card small,
.fcrm-stat-card strong,
.fcrm-stat-card em { display: block; }
.fcrm-stat-card small { color: var(--fcrm-muted); font-size: 10px; font-weight: 650; }
.fcrm-stat-card strong {
    margin: 1px 0;
    overflow: hidden;
    font-size: 21px;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fcrm-stat-card em {
    overflow: hidden;
    color: #92a0ad;
    font-size: 9px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fcrm-stat-link {
    margin-top: 6px;
    padding: 0;
    color: var(--fcrm-blue-dark) !important;
    background: transparent;
    border: 0;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}

.fcrm-grid { display: grid; gap: 18px; }
.fcrm-grid-main { grid-template-columns: minmax(0, 1.62fr) minmax(290px, .75fr); }
.fcrm-grid-profile { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.4fr); }

.fcrm-card {
    min-width: 0;
    padding: 21px;
    background: #fff;
    border: 1px solid #e3ebf0;
    border-radius: var(--fcrm-radius);
    box-shadow: 0 4px 16px rgba(26, 57, 83, .035);
}

.fcrm-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 14px;
}
.fcrm-section-head h2 {
    margin: 0 0 3px;
    color: var(--fcrm-ink);
    font-size: 16px;
    letter-spacing: -.015em;
}
.fcrm-section-head p {
    margin: 0;
    color: var(--fcrm-muted);
    font-size: 10px;
}
.fcrm-text-button {
    flex: 0 0 auto;
    padding: 3px 0;
    color: var(--fcrm-blue-dark) !important;
    background: none;
    border: 0;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.fcrm-appointments { display: flex; flex-direction: column; }
.fcrm-appointment {
    display: grid;
    grid-template-columns: 53px 38px minmax(120px, 1fr) minmax(84px, auto) 30px;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 9px 0;
    border-top: 1px solid #edf2f5;
    cursor: pointer;
}
.fcrm-appointment:first-child { border-top: 0; }
.fcrm-shell .fcrm-appointment:hover {
    color: inherit !important;
    background: transparent !important;
    border-color: #edf2f5 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-avatar-photo { padding: 0; overflow: hidden; }
.fcrm-avatar-photo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.fcrm-profile-risk-alert { margin-top: 20px; }
.fcrm-date-tile {
    display: grid;
    place-items: center;
    min-height: 45px;
    padding: 5px;
    background: #f5f8fa;
    border-radius: 10px;
}
.fcrm-date-tile strong { font-size: 12px; }
.fcrm-date-tile small { color: var(--fcrm-muted); font-size: 8px; text-transform: uppercase; }
.fcrm-appointment-main strong,
.fcrm-appointment-main span,
.fcrm-appointment-price strong,
.fcrm-appointment-price span { display: block; }
.fcrm-appointment-main strong,
.fcrm-appointment-price strong { font-size: 12px; }
.fcrm-appointment-main span { color: var(--fcrm-muted); font-size: 9px; }
.fcrm-appointment-price { text-align: right; }
.fcrm-appointment-price span {
    margin-top: 3px;
    color: #a87800;
    font-size: 8px;
}
.fcrm-appointment-price span.paid { color: var(--fcrm-green); }
.fcrm-more {
    padding: 5px;
    color: #95a3af !important;
    background: none;
    border: 0;
    cursor: pointer;
    letter-spacing: 1px;
}

.fcrm-quick-card { padding-bottom: 15px; }
.fcrm-quick-action {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 0;
    text-align: left;
    background: none;
    border: 0;
    border-top: 1px solid #edf2f5;
    cursor: pointer;
}
.fcrm-quick-action > span:first-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--fcrm-blue-soft);
    border-radius: 10px;
    font-size: 20px;
}
.fcrm-quick-action > span:first-child.green { color: var(--fcrm-green); background: var(--fcrm-green-soft); }
.fcrm-quick-action > span:first-child.yellow { color: #9a7900; background: var(--fcrm-yellow-soft); }
.fcrm-quick-action strong,
.fcrm-quick-action small { display: block; }
.fcrm-quick-action strong { font-size: 11px; }
.fcrm-quick-action small { color: var(--fcrm-muted); font-size: 8px; }

.fcrm-privacy-note,
.fcrm-info-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 11px;
    padding: 11px 12px;
    color: #5c6c77;
    background: #f6f8fa;
    border-radius: 11px;
}
.fcrm-privacy-note > span { color: var(--fcrm-green); }
.fcrm-privacy-note p,
.fcrm-info-line p { margin: 0; font-size: 9px; }
.fcrm-privacy-note strong { font-size: 9px; }
.fcrm-privacy-note small { color: var(--fcrm-muted); font-size: 8px; }

.fcrm-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none !important;
    cursor: pointer;
    transition: .18s ease;
}
.fcrm-btn:hover { transform: translateY(-1px); }
.fcrm-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.fcrm-btn-primary { color: #fff !important; background: var(--fcrm-blue); box-shadow: 0 6px 14px rgba(40, 126, 193, .18); }
.fcrm-btn-primary:hover { background: var(--fcrm-blue-dark); }
.fcrm-btn-secondary { color: var(--fcrm-ink) !important; background: #fff; border: 1px solid var(--fcrm-line); }
.fcrm-btn-light { color: var(--fcrm-blue-dark) !important; background: #fff; box-shadow: 0 8px 20px rgba(12, 63, 103, .12); }
.fcrm-btn-full { width: 100%; }

.fcrm-mini-list button {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    text-align: left;
    background: none;
    border: 0;
    border-top: 1px solid #edf2f5;
    cursor: pointer;
}
.fcrm-mini-list strong,
.fcrm-mini-list small { display: block; }
.fcrm-mini-list strong { font-size: 11px; }
.fcrm-mini-list small,
.fcrm-mini-list em { color: var(--fcrm-muted); font-size: 8px; font-style: normal; }

.fcrm-patient-hero { align-items: stretch; min-height: 190px; }
.fcrm-patient-hero-copy > p { margin: 2px 0 0; color: rgba(255,255,255,.82); font-size: 13px; text-transform: capitalize; }
.fcrm-patient-hero-copy h1 { margin: -2px 0 1px; color: #fff; font-size: 43px; line-height: 1; }
.fcrm-hero-actions { margin-top: 16px; }
.fcrm-soft-label { display: inline-block; padding: 9px 12px; background: rgba(255,255,255,.14); border-radius: 10px; font-size: 10px; }
.fcrm-therapist-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 270px;
    margin: 12px 0 12px 20px;
    padding: 16px 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    z-index: 2;
}
.fcrm-therapist-chip small,
.fcrm-therapist-chip strong,
.fcrm-therapist-chip em { display: block; }
.fcrm-therapist-chip small { color: rgba(255,255,255,.65); font-size: 9px; }
.fcrm-therapist-chip strong { margin: 2px 0; color: #fff; font-size: 15px; }
.fcrm-therapist-chip em { color: rgba(255,255,255,.78); font-size: 10px; font-style: normal; }
.fcrm-therapist-chip button {
    margin-top: 7px;
    padding: 0;
    color: var(--fcrm-yellow) !important;
    background: none;
    border: 0;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}
.fcrm-stat-row-patient { grid-template-columns: repeat(3, minmax(0,1fr)); }

.fcrm-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}
.fcrm-toolbar > :last-child { justify-self: end; }
.fcrm-toolbar-list { grid-template-columns: minmax(200px, .8fr) 1fr auto; }
.fcrm-segment,
.fcrm-filter {
    display: inline-flex;
    width: max-content;
    padding: 3px;
    background: #e8eef2;
    border-radius: 10px;
}
.fcrm-segment button,
.fcrm-filter button {
    min-height: 32px;
    padding: 0 12px;
    color: var(--fcrm-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}
.fcrm-segment button.active,
.fcrm-filter button.active { color: var(--fcrm-blue-dark); background: #fff; box-shadow: 0 2px 8px rgba(23,50,77,.08); }
.fcrm-filter button span { margin-left: 4px; color: var(--fcrm-blue); }
.fcrm-patient-filter { position: relative; z-index: 2; }
.fcrm-patient-filter > button { pointer-events: auto; }
.fcrm-calendar-nav { display: flex; align-items: center; gap: 12px; }
.fcrm-calendar-nav button {
    width: 30px;
    height: 30px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 8px;
    cursor: pointer;
}
.fcrm-calendar-nav strong { font-size: 12px; }
.fcrm-calendar-create-actions,
.fcrm-calendar-side-actions { display: flex; gap: 8px; }
.fcrm-calendar-side-actions { flex-direction: column; margin: 12px 0; }

.fcrm-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 15px;
}
.fcrm-calendar-card {
    display: grid;
    grid-template-columns: 48px minmax(760px, 1fr);
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: var(--fcrm-radius);
}
.fcrm-calendar-hours {
    display: grid;
    grid-template-rows: 66px repeat(11, 64px);
    color: var(--fcrm-muted);
    border-right: 1px solid var(--fcrm-line);
    font-size: 8px;
}
.fcrm-calendar-hours span { display: grid; align-items: start; justify-content: center; padding-top: 4px; }
.fcrm-calendar-hours span:first-child { padding: 0; }
.fcrm-calendar-week { display: grid; grid-template-columns: repeat(7, minmax(108px,1fr)); }
.fcrm-calendar-day { border-right: 1px solid var(--fcrm-line); }
.fcrm-calendar-day:last-child { border-right: 0; }
.fcrm-calendar-day-select {
    display: grid;
    place-items: center;
    width: 100%;
    height: 66px;
    padding: 0;
    color: inherit;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--fcrm-line);
    cursor: pointer;
}
.fcrm-calendar-day-select:hover { background: #f7fbfd; }
.fcrm-calendar-day.selected .fcrm-calendar-day-select { box-shadow: inset 0 -3px var(--fcrm-blue); }
.fcrm-calendar-day-select small { color: var(--fcrm-muted); font-size: 8px; text-transform: uppercase; }
.fcrm-calendar-day-select strong { display: grid; place-items: center; width: 28px; height: 28px; font-size: 12px; }
.fcrm-calendar-day.today .fcrm-calendar-day-select strong { color: #fff; background: var(--fcrm-blue); border-radius: 50%; }
.fcrm-day-grid {
    position: relative;
    height: 704px;
    background: repeating-linear-gradient(to bottom, transparent, transparent 63px, #edf2f5 63px, #edf2f5 64px);
}
.fcrm-calendar-event {
    position: absolute;
    left: 5px;
    right: 5px;
    height: 55px;
    padding: 8px;
    overflow: hidden;
    text-align: left;
    color: #226fa9 !important;
    background: #e4f2fa;
    border: 0;
    border-left: 3px solid var(--fcrm-blue);
    border-radius: 7px;
    cursor: pointer;
}
.fcrm-calendar-event.paid { color: #277b5e !important; background: var(--fcrm-green-soft); border-left-color: var(--fcrm-green); }
.fcrm-calendar-event.group { color: #7151a4 !important; background: #f0eafd; border-left-color: #8259bd; }
.fcrm-calendar-event strong,
.fcrm-calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcrm-calendar-event strong { font-size: 9px; }
.fcrm-calendar-event span { font-size: 8px; }
.fcrm-calendar-event em { display: block; margin-top: 2px; font-size: 7px; font-style: normal; font-weight: 750; }
.fcrm-calendar-side { position: sticky; top: 84px; padding: 19px; }
.fcrm-calendar-side h2 { margin: 5px 0 2px; font-size: 18px; text-transform: capitalize; }
.fcrm-calendar-side > p { margin: 0 0 15px; color: var(--fcrm-muted); font-size: 9px; }
.fcrm-calendar-side-list { display: flex; flex-direction: column; gap: 8px; margin-top: 13px; }
.fcrm-calendar-side-list > button { width: 100%; padding: 10px; text-align: left; color: inherit; background: #f7fafb; border: 1px solid var(--fcrm-line); border-radius: 9px; cursor: pointer; }
.fcrm-calendar-side-list > button:hover { border-color: #b9d9eb; background: #f0f8fc; }
.fcrm-calendar-side-list > button strong,
.fcrm-calendar-side-list > button span { display: block; }
.fcrm-calendar-side-list > button strong { font-size: 9px; }
.fcrm-calendar-side-list > button span { margin-top: 3px; font-size: 8px; font-weight: 750; }
.fcrm-calendar-side-list .paid { color: #277b5e; }
.fcrm-calendar-side-list .unpaid { color: #ad5d27; }
.fcrm-calendar-side-list .group { color: #7151a4; }
.fcrm-calendar-side-list > small { color: var(--fcrm-muted); font-size: 8px; line-height: 1.5; }
.fcrm-calendar-legend { display: flex; gap: 18px; margin-top: 12px; color: var(--fcrm-muted); font-size: 9px; }
.fcrm-calendar-legend span { display: flex; align-items: center; gap: 6px; }
.fcrm-calendar-legend i { width: 8px; height: 8px; border-radius: 50%; }
.fcrm-calendar-legend i.blue { background: var(--fcrm-blue); }
.fcrm-calendar-legend i.green { background: var(--fcrm-green); }
.fcrm-calendar-legend i.purple { background: #8259bd; }
.fcrm-calendar-legend i.gray { background: #9faebb; }

.fcrm-search {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 39px;
    padding: 0 12px;
    color: var(--fcrm-muted);
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 10px;
}
.fcrm-search input {
    width: 100%;
    color: var(--fcrm-ink);
    background: transparent;
    border: 0;
    outline: none;
    font-size: 10px;
}

.fcrm-table-card { padding: 0; overflow: hidden; }
.fcrm-table { width: 100%; overflow-x: auto; }
.fcrm-table-head,
.fcrm-table-row {
    display: grid;
    align-items: center;
    gap: 16px;
    min-width: 800px;
    padding: 0 20px;
}
.fcrm-patient-table .fcrm-table-head,
.fcrm-patient-table .fcrm-table-row {
    min-width: 1080px;
    grid-template-columns: 1.25fr 1.25fr 1fr .55fr .7fr .8fr 20px;
}
.fcrm-waitlist-table .fcrm-table-head,
.fcrm-waitlist-table .fcrm-table-row {
    min-width: 940px;
    grid-template-columns: 1.35fr 1fr 1.35fr .55fr 20px;
}
.fcrm-finance-table .fcrm-table-head,
.fcrm-finance-table .fcrm-table-row { grid-template-columns: 1.5fr .52fr .78fr .68fr .78fr 1.05fr; }
.fcrm-table-head {
    min-height: 42px;
    color: var(--fcrm-muted);
    background: #f8fafb;
    border-bottom: 1px solid var(--fcrm-line);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
}
button.fcrm-table-row {
    width: 100%;
    text-align: left;
    color: inherit;
    background: #fff;
    border: 0;
    cursor: pointer;
}
.fcrm-table-row {
    min-height: 70px;
    border-bottom: 1px solid #edf2f5;
}
.fcrm-table-row:last-child { border-bottom: 0; }
button.fcrm-table-row:hover { background: #fbfcfd; }
.fcrm-table-row > span > strong,
.fcrm-table-row > span > small { display: block; }
.fcrm-table-row > span > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fcrm-table-row > span > small { overflow: hidden; color: var(--fcrm-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fcrm-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fcrm-person > span:last-child { min-width: 0; }
.fcrm-person-copy,
.fcrm-contact-cell {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
}
.fcrm-person-name,
.fcrm-contact-email,
.fcrm-contact-phone,
.fcrm-patient-since {
    display: block;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fcrm-person-name,
.fcrm-contact-email { color: var(--fcrm-ink); font-size: 11px; font-weight: 750; }
.fcrm-contact-phone,
.fcrm-patient-since { color: var(--fcrm-muted); font-size: 9px; line-height: 1.35; }
.fcrm-therapist-cell { min-width: 0; }
.fcrm-patient-since { margin-top: 1px; }
.fcrm-waitlist-table .fcrm-table-row {
    min-height: 112px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.fcrm-support-type,
.fcrm-wait-cell { min-width: 0; }
.fcrm-support-fast { color: #c35f13 !important; }
.fcrm-wait-cell > strong,
.fcrm-wait-cell > small { display: block; }
.fcrm-wait-cell > strong { font-size: 10px; }
.fcrm-wait-cell > small { margin-top: 3px; color: var(--fcrm-muted); font-size: 8px; line-height: 1.35; white-space: normal; }
.fcrm-wait-alert {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 5px 7px;
    border: 1px solid;
    border-radius: 7px;
    font-size: 7px;
    font-weight: 750;
    line-height: 1.35;
    white-space: normal;
}
.fcrm-wait-alert.orange { color: #a95013; background: #fff6ec; border-color: #efa35f; }
.fcrm-wait-alert.red { color: #a63131; background: #fff1f1; border-color: #e78282; }
.fcrm-row-arrow { color: var(--fcrm-blue); }
.fcrm-row-mobile-label,
.fcrm-risk-mobile { display: none; }
.fcrm-status {
    display: inline-block;
    width: max-content;
    padding: 4px 7px;
    color: #287d5f;
    background: var(--fcrm-green-soft);
    border-radius: 20px;
    font-size: 8px;
    font-style: normal;
    font-weight: 750;
}
.fcrm-status.paused { color: #837131; background: var(--fcrm-yellow-soft); }
.fcrm-status.resigned { color: #9a6239; background: #fff1e8; }
.fcrm-status.completed { color: #586b8b; background: #edf1f8; }
.fcrm-status.new { color: #226fa9; background: var(--fcrm-blue-soft); }
.fcrm-status.contacted { color: #837131; background: var(--fcrm-yellow-soft); }
.fcrm-status.matched { color: #287d5f; background: var(--fcrm-green-soft); }

.fcrm-back-button {
    margin-bottom: 12px;
    padding: 0;
    color: var(--fcrm-blue-dark) !important;
    background: none;
    border: 0;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.fcrm-back-button:hover,
.fcrm-back-button:focus {
    color: var(--fcrm-blue-dark) !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    transform: none !important;
}
.fcrm-no-hover:hover,
.fcrm-no-hover:focus {
    color: var(--fcrm-ink) !important;
    background: #fff !important;
    border-color: var(--fcrm-line) !important;
    box-shadow: none !important;
    transform: none !important;
}
.fcrm-profile-hero {
    display: grid;
    grid-template-columns: 70px minmax(0,1fr) auto;
    align-items: center;
    gap: 17px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: var(--fcrm-radius);
}
.fcrm-profile-hero h1 { margin: 4px 0 1px; font-size: 24px; }
.fcrm-profile-hero p { margin: 0; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-profile-actions { display: flex; align-items: flex-end; gap: 8px; }
.fcrm-status-control { color: var(--fcrm-muted); font-size: 8px; font-weight: 750; }
.fcrm-status-control select { display: block; min-height: 38px; margin-top: 4px; padding: 0 28px 0 10px; color: var(--fcrm-ink); background: #fff; border: 1px solid var(--fcrm-line); border-radius: 9px; font-size: 9px; font-weight: 700; }
.fcrm-note-list { display: flex; flex-direction: column; gap: 10px; }
.fcrm-note-list article { padding: 13px; background: #f8fafb; border: 1px solid #ecf1f4; border-radius: 11px; }
.fcrm-note-list header { display: flex; justify-content: space-between; color: var(--fcrm-muted); }
.fcrm-note-list header strong,
.fcrm-note-list header span { font-size: 8px; }
.fcrm-note-list p { margin: 7px 0 0; color: #516577; font-size: 9px; line-height: 1.55; }

.fcrm-therapist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}
.fcrm-therapist-card {
    position: relative;
    padding: 28px 20px 20px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: var(--fcrm-radius);
}
.fcrm-card-accent { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--fcrm-blue); }
.fcrm-card-accent.c1 { background: var(--fcrm-green); }
.fcrm-card-accent.c2 { background: var(--fcrm-yellow); }
.fcrm-card-accent.c3 { background: var(--fcrm-purple); }
.fcrm-therapist-card h2 { margin: 10px 0 3px; font-size: 15px; }
.fcrm-therapist-card > p { min-height: 30px; margin: 0; color: var(--fcrm-muted); font-size: 8px; }
.fcrm-therapist-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 15px 0;
    border: solid var(--fcrm-line);
    border-width: 1px 0;
}
.fcrm-therapist-stats span { padding: 11px; }
.fcrm-therapist-stats span + span { border-left: 1px solid var(--fcrm-line); }
.fcrm-therapist-stats strong,
.fcrm-therapist-stats small { display: block; }
.fcrm-therapist-stats strong { font-size: 17px; }
.fcrm-therapist-stats small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-contact-lines { margin-bottom: 14px; text-align: left; }
.fcrm-contact-lines span { display: block; overflow: hidden; padding: 3px 0; color: var(--fcrm-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.fcrm-therapist-admin-hero {
    display: grid;
    grid-template-columns: 70px minmax(190px, 1fr) minmax(390px, auto);
    align-items: center;
    gap: 17px;
    margin-bottom: 16px;
    padding: 24px;
    background: linear-gradient(120deg, #eef7fc, #fff);
    border: 1px solid #d9eaf4;
    border-radius: var(--fcrm-radius);
}
.fcrm-therapist-admin-hero h1 { margin: 4px 0 2px; font-size: 25px; }
.fcrm-therapist-admin-hero p { margin: 0; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-therapist-admin-copy { min-width: 0; }
.fcrm-therapist-admin-phone {
    display: inline-block;
    margin-top: 8px;
    color: var(--fcrm-blue-dark);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.fcrm-therapist-admin-phone:hover { color: var(--fcrm-blue-dark); text-decoration: underline; }
.fcrm-therapist-admin-phone.empty { color: var(--fcrm-muted); }
.fcrm-therapist-admin-side {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 14px;
}
.fcrm-therapist-admin-active {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    min-width: 146px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #cfe4f1;
    border-radius: 12px;
}
.fcrm-therapist-admin-active small,
.fcrm-therapist-admin-active span { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-therapist-admin-active small { align-self: end; }
.fcrm-therapist-admin-active strong { grid-row: 1 / 3; grid-column: 2; align-self: center; margin-left: 13px; color: var(--fcrm-blue-dark); font-size: 26px; }
.fcrm-therapist-admin-active span { margin-top: 3px; }
.fcrm-therapist-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fcrm-profile-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fcrm-profile-data-grid > span { padding: 13px; background: #f7fafb; border: 1px solid var(--fcrm-line); border-radius: 10px; }
.fcrm-profile-data-grid small,
.fcrm-profile-data-grid strong { display: block; }
.fcrm-profile-data-grid small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-profile-data-grid strong { margin-top: 3px; font-size: 10px; }
.fcrm-therapist-copy { margin-top: 17px; }
.fcrm-therapist-copy > strong { font-size: 10px; }
.fcrm-therapist-copy > p { margin: 5px 0 14px; color: #50677a; font-size: 10px; line-height: 1.65; }
.fcrm-therapist-month-summary { margin-bottom: 16px; }
.fcrm-therapist-month-summary > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.fcrm-therapist-month-summary h2 { margin: 4px 0 3px; font-size: 18px; }
.fcrm-therapist-month-summary header p { margin: 0; color: var(--fcrm-muted); font-size: 9px; }
.fcrm-therapist-month-summary header label { color: var(--fcrm-muted); font-size: 8px; font-weight: 750; }
.fcrm-therapist-month-summary select { display: block; min-width: 185px; min-height: 38px; margin-top: 4px; padding: 0 11px; color: var(--fcrm-ink); background: #fff; border: 1px solid var(--fcrm-line); border-radius: 9px; font-size: 9px; text-transform: capitalize; }
.fcrm-month-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fcrm-month-metrics > span { padding: 14px; background: #f7fafb; border: 1px solid var(--fcrm-line); border-radius: 11px; }
.fcrm-month-metrics small,
.fcrm-month-metrics strong,
.fcrm-month-metrics em { display: block; }
.fcrm-month-metrics small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-month-metrics strong { margin: 4px 0; font-size: 18px; }
.fcrm-month-metrics strong b { color: var(--fcrm-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.fcrm-month-metrics em { color: var(--fcrm-muted); font-size: 7px; font-style: normal; }
.fcrm-month-metrics .positive { background: var(--fcrm-green-soft); border-color: #bee6d7; }
.fcrm-month-metrics .positive strong { color: #277b5e; }
.fcrm-month-metrics .negative { background: #fff1f1; border-color: #efc0c0; }
.fcrm-month-metrics .negative strong { color: #a63131; }
.fcrm-therapist-patients { margin-bottom: 16px; }
.fcrm-therapist-patients-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--fcrm-line);
}
.fcrm-therapist-patients-header h2 { margin: 4px 0 3px; font-size: 18px; }
.fcrm-therapist-patients-header p { margin: 0; color: var(--fcrm-muted); font-size: 9px; }
.fcrm-therapist-patient-table .fcrm-table-head,
.fcrm-therapist-patient-table .fcrm-table-row {
    grid-template-columns: 1.2fr 1.15fr .85fr .55fr .9fr .48fr .82fr 16px;
    gap: 10px;
    min-width: 900px;
    padding-right: 14px;
    padding-left: 14px;
}
.fcrm-patient-application { margin: 16px 0; }
.fcrm-application-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}
.fcrm-application-answer-grid article {
    padding: 13px 14px;
    background: #f7fafb;
    border: 1px solid var(--fcrm-line);
    border-radius: 10px;
}
.fcrm-application-answer-grid small { display: block; color: var(--fcrm-muted); font-size: 8px; font-weight: 750; }
.fcrm-application-answer-grid p { margin: 5px 0 0; color: #40586b; font-size: 10px; line-height: 1.6; }

.fcrm-history-hero,
.fcrm-messages-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    padding: 25px;
    background: linear-gradient(120deg, #eaf5fb, #fff);
    border: 1px solid #d8eaf4;
    border-radius: var(--fcrm-radius);
}
.fcrm-history-hero h1,
.fcrm-messages-hero h1 { margin: 4px 0; font-size: 27px; }
.fcrm-history-hero p,
.fcrm-messages-hero p { margin: 0; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-history-summary { display: grid; grid-template-columns: 1fr 1fr; min-width: 270px; background: #fff; border: 1px solid var(--fcrm-line); border-radius: 13px; }
.fcrm-history-summary span { padding: 13px 18px; text-align: center; }
.fcrm-history-summary span + span { border-left: 1px solid var(--fcrm-line); }
.fcrm-history-summary strong,
.fcrm-history-summary small { display: block; }
.fcrm-history-summary strong { font-size: 22px; }
.fcrm-history-summary small { margin-top: 2px; color: var(--fcrm-muted); font-size: 8px; }
.fcrm-grid-messages { grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); }
.fcrm-message-thread { display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; }
.fcrm-message { width: min(88%, 630px); padding: 13px; background: #f7fafb; border: 1px solid var(--fcrm-line); border-radius: 12px 12px 12px 3px; }
.fcrm-message.mine { align-self: flex-end; background: var(--fcrm-blue-soft); border-color: #c8e0ef; border-radius: 12px 12px 3px 12px; }
.fcrm-message header { display: flex; justify-content: space-between; gap: 10px; }
.fcrm-message header strong { font-size: 9px; }
.fcrm-message header span { color: var(--fcrm-muted); font-size: 7px; }
.fcrm-message > p { margin: 8px 0 0; color: #445d72; font-size: 9px; line-height: 1.6; white-space: pre-wrap; }
.fcrm-message > a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 10px; padding: 8px; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--fcrm-line); border-radius: 9px; }
.fcrm-message > a strong,
.fcrm-message > a small { display: block; }
.fcrm-message > a strong { font-size: 8px; }
.fcrm-message > a small { color: var(--fcrm-muted); font-size: 7px; }
.fcrm-message-composer { position: sticky; top: 84px; }

.fcrm-documents-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    padding: 25px;
    background: linear-gradient(120deg, #eaf5fb, #fff);
    border: 1px solid #d8eaf4;
    border-radius: var(--fcrm-radius);
}
.fcrm-documents-hero h1 { margin: 4px 0; font-size: 28px; }
.fcrm-documents-hero p { max-width: 680px; margin: 0; color: var(--fcrm-muted); font-size: 10px; line-height: 1.55; }
.fcrm-documents-actions { display: flex; gap: 8px; flex-shrink: 0; }
.fcrm-grid-documents { grid-template-columns: minmax(0, 1.8fr) minmax(270px, .7fr); }
.fcrm-document-list { display: flex; flex-direction: column; gap: 9px; }
.fcrm-document-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
}
.fcrm-document-card h3 { margin: 4px 0 2px; font-size: 12px; }
.fcrm-document-card p { margin: 0; color: var(--fcrm-muted); font-size: 8px; line-height: 1.45; }
.fcrm-document-copy > small { display: block; margin-top: 6px; color: var(--fcrm-muted); font-size: 7px; }
.fcrm-document-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.fcrm-document-actions .fcrm-btn-small { min-height: 34px; font-size: 9px; }
.fcrm-btn-small { min-height: 32px; padding: 0 10px; font-size: 8px; white-space: nowrap; }
.fcrm-btn-danger { color: #a63131 !important; background: #fff !important; border: 1px solid #e7b5b5 !important; }
.fcrm-btn-danger:hover,
.fcrm-btn-danger:focus { color: #a63131 !important; background: #fff !important; border-color: #e7b5b5 !important; box-shadow: none !important; transform: none !important; }

.fcrm-form-actions-delete .fcrm-btn-danger { margin-right: auto; }

.fcrm-help-hero { align-items: center; }
.fcrm-help-audience-filter { width: max-content; max-width: 100%; margin: 18px 0; }
.fcrm-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fcrm-help-procedures { grid-column: 1 / -1; }
.fcrm-help-procedure-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fcrm-help-procedure-list > div { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 13px 15px; border: 1px solid var(--fcrm-line); border-radius: 14px; background: #fff; }
.fcrm-help-procedure-list > div > span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: var(--fcrm-blue-dark); border-radius: 50%; background: var(--fcrm-blue-soft); font-weight: 800; }
.fcrm-help-procedure-list strong { color: var(--fcrm-ink); font-size: 13px; line-height: 1.45; }
.fcrm-help-resource-list { display: grid; gap: 10px; }
.fcrm-help-resource-list > a { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 11px; align-items: center; padding: 13px; color: var(--fcrm-ink) !important; text-decoration: none !important; border: 1px solid var(--fcrm-line); border-radius: 14px; background: #fff !important; box-shadow: none !important; transform: none !important; }
.fcrm-help-resource-list > a > span { grid-row: 1 / 3; display: grid; width: 38px; height: 38px; place-items: center; color: var(--fcrm-blue-dark); border-radius: 10px; background: var(--fcrm-blue-soft); }
.fcrm-help-resource-list > a strong { font-size: 13px; }
.fcrm-help-resource-list > a small { overflow: hidden; color: var(--fcrm-muted); text-overflow: ellipsis; white-space: nowrap; }
.fcrm-help-resource-list > a:hover,
.fcrm-help-resource-list > a:focus { color: var(--fcrm-ink) !important; border-color: var(--fcrm-line) !important; background: #fff !important; box-shadow: none !important; transform: none !important; }

@media (max-width: 720px) {
    .fcrm-help-grid,
    .fcrm-help-procedure-list { grid-template-columns: 1fr; }
    .fcrm-help-procedures { grid-column: auto; }
    .fcrm-help-audience-filter { width: 100%; }
}
.fcrm-document-card footer { display: flex; grid-column: 1 / -1; align-items: end; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--fcrm-line); }
.fcrm-document-card footer span strong,
.fcrm-document-card footer span small { display: block; }
.fcrm-document-card footer span strong { font-size: 9px; }
.fcrm-document-card footer span small { margin-top: 2px; color: var(--fcrm-muted); font-size: 8px; }
.fcrm-document-type { color: var(--fcrm-blue); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.fcrm-document-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--fcrm-blue-dark);
    background: var(--fcrm-blue-soft);
    border-radius: 9px;
    font-size: 9px;
    font-weight: 850;
}
.fcrm-document-icon.large { width: 46px; height: 46px; font-size: 11px; }
.fcrm-document-mini-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.fcrm-document-mini-list > button,
.fcrm-document-mini-list > a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    color: inherit;
    text-align: left;
    text-decoration: none;
    background: #f8fafb;
    border: 1px solid var(--fcrm-line);
    border-radius: 10px;
    cursor: pointer;
}
.fcrm-document-mini-list strong,
.fcrm-document-mini-list small { display: block; }
.fcrm-document-mini-list strong { font-size: 9px; }
.fcrm-document-mini-list small { margin-top: 2px; color: var(--fcrm-muted); font-size: 7px; }
.fcrm-summary-generator { position: sticky; top: 84px; }
.fcrm-report-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.fcrm-report-totals span { padding: 13px; background: #f5f9fa; border-radius: 10px; }
.fcrm-report-totals small,
.fcrm-report-totals strong { display: block; }
.fcrm-report-totals small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-report-totals strong { margin-top: 3px; font-size: 17px; }
.fcrm-report-clients { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.fcrm-report-clients article { padding: 11px; border: 1px solid var(--fcrm-line); border-radius: 10px; }
.fcrm-report-clients header { display: flex; justify-content: space-between; gap: 10px; }
.fcrm-report-clients header strong,
.fcrm-report-clients header span { font-size: 9px; }
.fcrm-report-clients p { margin: 5px 0 0; color: var(--fcrm-muted); font-size: 8px; line-height: 1.5; }
.fcrm-modal-report { width: min(720px, calc(100% - 28px)); }
.fcrm-modal-report .fcrm-settlement-payroll-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 22px;
}
.fcrm-modal-report .fcrm-settlement-payroll-details span { min-height: 82px; }
.fcrm-modal-report .fcrm-report-clients { margin-top: 18px; }

.fcrm-waitlist-intro {
    display: grid;
    grid-template-columns: repeat(3, minmax(125px, .7fr)) minmax(300px, 1.8fr);
    align-items: stretch;
    gap: 10px;
    min-height: 126px;
    padding: 18px;
    margin-bottom: 17px;
    color: var(--fcrm-ink);
    background: linear-gradient(115deg, var(--fcrm-yellow-soft), #fffdf2);
    border: 1px solid #f3e5a1;
    box-shadow: none;
}
.fcrm-waitlist-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    color: var(--fcrm-blue-dark);
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(225,205,112,.42);
    border-radius: 13px;
}
.fcrm-waitlist-metric.fast { color: #b95815; }
.fcrm-waitlist-metric strong { font-size: 30px; }
.fcrm-waitlist-metric span { font-size: 9px; font-weight: 750; line-height: 1.3; }
.fcrm-waitlist-alert-summary {
    display: grid;
    align-content: center;
    gap: 8px;
    padding-left: 18px;
    border-left: 1px solid #e7cf68;
}
.fcrm-waitlist-alert-summary > span {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 6px 9px;
    border: 1px solid;
    border-radius: 9px;
}
.fcrm-waitlist-alert-summary strong { font-size: 16px; text-align: center; }
.fcrm-waitlist-alert-summary em { font-size: 8px; font-style: normal; font-weight: 800; line-height: 1.35; }
.fcrm-waitlist-alert-summary .red { color: #a63131; background: #fff1f1; border-color: #e78282; }
.fcrm-waitlist-alert-summary .orange { color: #a95013; background: #fff6ec; border-color: #efa35f; }
.fcrm-results-count { color: var(--fcrm-muted); font-size: 9px; font-weight: 750; }
.fcrm-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 13px; }
.fcrm-pagination button { min-height: 34px; padding: 0 12px; color: var(--fcrm-blue-dark); background: #fff; border: 1px solid var(--fcrm-line); border-radius: 9px; font-size: 8px; font-weight: 750; cursor: pointer; }
.fcrm-pagination button:disabled { opacity: .45; cursor: default; }
.fcrm-pagination span { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-modal-contact { display: grid; gap: 3px; }
.fcrm-modal-contact span { display: block; }

.fcrm-finance-hero { min-height: 160px; }
.fcrm-finance-hero h1 { margin: 0; color: #fff; font-size: 35px; }
.fcrm-finance-bars {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 42%;
    z-index: 2;
}
.fcrm-finance-bars > span { display: grid; grid-template-columns: 90px 1fr 80px; align-items: center; gap: 10px; }
.fcrm-finance-bars small { color: rgba(255,255,255,.7); font-size: 9px; }
.fcrm-finance-bars strong { color: #fff; font-size: 10px; text-align: right; }
.fcrm-finance-bars i { height: 8px; overflow: hidden; background: rgba(255,255,255,.16); border-radius: 10px; }
.fcrm-finance-bars b { display: block; height: 100%; background: var(--fcrm-yellow); border-radius: 10px; }
.fcrm-finance-bars b.cost { background: rgba(255,255,255,.72); }
.fcrm-bar-cell { display: flex; align-items: center; gap: 7px; }
.fcrm-bar-cell i { width: 90px; height: 6px; overflow: hidden; background: #eaf0f3; border-radius: 10px; }
.fcrm-bar-cell b { display: block; height: 100%; background: var(--fcrm-blue); border-radius: 10px; }
.fcrm-disclaimer { margin: 12px 3px; color: var(--fcrm-muted); font-size: 8px; }

.fcrm-finance-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.fcrm-finance-selectors { display: flex; gap: 8px; }
.fcrm-finance-selectors select {
    min-height: 38px;
    padding: 0 30px 0 11px;
    color: var(--fcrm-ink);
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
}
.fcrm-finance-actions { display: flex; gap: 8px; }
.fcrm-finance-overview {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
    margin-bottom: 18px;
}
.fcrm-chart-card { min-height: 350px; }
.fcrm-line-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.fcrm-line-chart text {
    fill: #8292a0;
    font-family: inherit;
    font-size: 9px;
}
.fcrm-chart-grid { stroke: #e9eff3; stroke-width: 1; }
.fcrm-chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fcrm-chart-line.revenue { stroke: var(--fcrm-blue); }
.fcrm-chart-line.costs { stroke: var(--fcrm-warm); }
.fcrm-chart-dot { stroke: #fff; stroke-width: 2; }
.fcrm-chart-dot.revenue { fill: var(--fcrm-blue); }
.fcrm-chart-dot.costs { fill: var(--fcrm-warm); }
.fcrm-chart-legend { display: flex; justify-content: center; gap: 20px; color: var(--fcrm-muted); font-size: 9px; }
.fcrm-chart-legend span { display: flex; align-items: center; gap: 6px; }
.fcrm-chart-legend i { width: 18px; height: 3px; border-radius: 4px; }
.fcrm-chart-legend i.revenue { background: var(--fcrm-blue); }
.fcrm-chart-legend i.costs { background: var(--fcrm-warm); }
.fcrm-budget-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 8px; }
.fcrm-budget-numbers > div { padding: 13px; background: #f7fafb; border-radius: 11px; }
.fcrm-budget-numbers span,
.fcrm-budget-numbers strong { display: block; }
.fcrm-budget-numbers span { font-size: 8px; font-weight: 700; }
.fcrm-budget-numbers span.green { color: var(--fcrm-green); }
.fcrm-budget-numbers span.warm { color: var(--fcrm-warm); }
.fcrm-budget-numbers strong { margin-top: 3px; font-size: 15px; }
.fcrm-budget-list { margin-bottom: 12px; }
.fcrm-operations-card { margin-bottom: 18px; }
.fcrm-operation-list { display: grid; grid-template-columns: 1fr; }
.fcrm-transaction-row {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border-top: 1px solid #edf2f5;
}
.fcrm-transaction-sign {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 800;
}
.fcrm-transaction-sign.income { color: var(--fcrm-green); background: var(--fcrm-green-soft); }
.fcrm-transaction-sign.expense { color: var(--fcrm-warm); background: #fbece5; }
.fcrm-transaction-row strong,
.fcrm-transaction-row small { display: block; }
.fcrm-transaction-row > div strong { font-size: 10px; }
.fcrm-transaction-row small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-transaction-row > span:last-child { text-align: right; }
.fcrm-transaction-row strong.income { color: var(--fcrm-green); }
.fcrm-transaction-row strong.expense { color: var(--fcrm-warm); }
.fcrm-toolbar-title { display: block; margin-top: 3px; font-size: 18px; }
.fcrm-stat-row-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fcrm-available-funds {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 230px;
    padding: 20px 24px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}
.fcrm-available-funds small,
.fcrm-available-funds span { color: rgba(255,255,255,.76); font-size: 9px; }
.fcrm-available-funds strong { margin: 4px 0; color: #fff; font-size: 28px; }
.fcrm-budget-card { margin: 18px 0; }
.fcrm-budget-categories {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 13px;
}
.fcrm-budget-categories article {
    display: flex;
    flex-direction: column;
    min-height: 116px;
    padding: 15px;
    background: #fff8f3;
    border: 1px solid #f4dfd4;
    border-radius: 13px;
}
.fcrm-budget-categories article.income { background: #eef9f4; border-color: #d4eee2; }
.fcrm-budget-categories span { color: #526879; font-size: 9px; font-weight: 750; line-height: 1.4; }
.fcrm-budget-categories strong { margin: auto 0 4px; color: var(--fcrm-warm); font-size: 18px; }
.fcrm-budget-categories .income strong { color: var(--fcrm-green); }
.fcrm-budget-categories small { color: var(--fcrm-muted); font-size: 8px; line-height: 1.4; }
.fcrm-budget-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    padding: 13px 16px;
    background: #f2f7fa;
    border-radius: 11px;
}
.fcrm-budget-total span { color: var(--fcrm-muted); font-size: 9px; font-weight: 750; }
.fcrm-budget-total strong { font-size: 18px; }
.fcrm-annual-months > div:last-child {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 9px;
}
.fcrm-annual-months article { padding: 13px; background: #f6f9fa; border-radius: 11px; }
.fcrm-annual-months article span,
.fcrm-annual-months article strong,
.fcrm-annual-months article small { display: block; }
.fcrm-annual-months article span { color: var(--fcrm-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.fcrm-annual-months article strong { margin: 5px 0 2px; font-size: 13px; }
.fcrm-annual-months article small { color: var(--fcrm-muted); font-size: 7px; }

.fcrm-profile-card { position: relative; overflow: hidden; padding-top: 110px; text-align: center; }
.fcrm-profile-cover {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 130px;
    background: linear-gradient(130deg, var(--fcrm-blue), #63b3df);
}
.fcrm-profile-cover::after {
    position: absolute;
    right: -30px;
    bottom: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    content: "";
}
.fcrm-profile-avatar { position: relative; width: 82px; height: 82px; margin: 0 auto; border: 5px solid #fff; font-size: 20px; }
.fcrm-profile-card h1 { margin: 10px 0 2px; font-size: 20px; }
.fcrm-profile-card > p { margin: 0; color: var(--fcrm-muted); font-size: 9px; }
.fcrm-profile-meta { margin-top: 20px; text-align: left; border-top: 1px solid var(--fcrm-line); }
.fcrm-profile-meta span { display: block; padding: 12px 0; border-bottom: 1px solid var(--fcrm-line); }
.fcrm-profile-meta small,
.fcrm-profile-meta strong { display: block; }
.fcrm-profile-meta small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-profile-meta strong { margin-top: 2px; font-size: 10px; }
.fcrm-settings-card { padding: 25px; }
.fcrm-security-row {
    display: grid;
    grid-template-columns: 43px 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--fcrm-line);
}
.fcrm-security-row strong { font-size: 11px; }
.fcrm-security-row p { margin: 2px 0 0; color: var(--fcrm-muted); font-size: 8px; }

.fcrm-integration-card {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: #f7fafb;
    border: 1px solid var(--fcrm-line);
    border-radius: 13px;
}
.fcrm-integration-card strong { font-size: 11px; }
.fcrm-integration-card p { margin: 2px 0 0; color: var(--fcrm-muted); font-size: 8px; }
.fcrm-google-settings { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--fcrm-line); }
.fcrm-meet-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(135deg, #4285f4 0 50%, #34a853 50%);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 850;
}
.fcrm-meet-box {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 12px;
    background: #f7f9fa;
    border: 1px solid var(--fcrm-line);
    border-radius: 11px;
}
.fcrm-meet-box.connected { background: #f1faf6; border-color: #ccebdd; }
.fcrm-meet-box strong,
.fcrm-meet-box p { display: block; margin: 0; }
.fcrm-meet-box strong { font-size: 9px; }
.fcrm-meet-box p { margin-top: 2px; color: var(--fcrm-muted); font-size: 8px; }
.fcrm-meet-box > span:last-child { color: var(--fcrm-muted); font-size: 8px; font-weight: 750; }
.fcrm-meet-box.connected > span:last-child { color: var(--fcrm-green); }
.fcrm-detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 18px 0;
}
.fcrm-detail-list > div {
    padding: 13px;
    background: #f7fafb;
    border: 1px solid var(--fcrm-line);
    border-radius: 11px;
}
.fcrm-detail-list small,
.fcrm-detail-list strong { display: block; }
.fcrm-detail-list small { margin-bottom: 4px; color: var(--fcrm-muted); font-size: 8px; }
.fcrm-detail-list strong { font-size: 10px; line-height: 1.45; }
.fcrm-payment-state {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 13px 0;
    padding: 13px;
    border: 1px solid;
    border-radius: 12px;
}
.fcrm-payment-state > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.fcrm-payment-state strong { display: block; font-size: 10px; }
.fcrm-payment-state p { margin: 2px 0 0; font-size: 8px; }
.fcrm-payment-state.paid { color: #28785b; background: #edf9f3; border-color: #c7ead9; }
.fcrm-payment-state.paid > span { background: #d4f0e1; }
.fcrm-payment-state.unpaid { color: #9a582d; background: #fff8ed; border-color: #f0d3ae; }
.fcrm-payment-state.unpaid > span { background: #f9e4c8; }
.fcrm-meeting-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px;
    color: var(--fcrm-ink) !important;
    background: #f4f8fb;
    border: 1px solid #d7e5ed;
    border-radius: 12px;
    text-decoration: none !important;
}
.fcrm-meeting-link small,
.fcrm-meeting-link strong { display: block; }
.fcrm-meeting-link small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-meeting-link strong { margin-top: 2px; color: var(--fcrm-blue); font-size: 10px; }
.fcrm-participant-picker {
    overflow: hidden;
    background: #f8fafb;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
}
.fcrm-participant-picker summary { padding: 12px 14px; font-size: 9px; font-weight: 800; cursor: pointer; }
.fcrm-participant-picker > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 0 12px 12px;
}
.fcrm-participant-picker label {
    display: grid;
    grid-template-columns: 16px 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 51px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 9px;
    cursor: pointer;
}
.fcrm-participant-picker input { width: 14px; height: 14px; }
.fcrm-participant-picker .fcrm-avatar { width: 30px; height: 30px; font-size: 8px; }
.fcrm-participant-picker strong,
.fcrm-participant-picker small { display: block; }
.fcrm-participant-picker strong { font-size: 8px; }
.fcrm-participant-picker small { margin-top: 2px; color: var(--fcrm-muted); font-size: 7px; line-height: 1.3; }
.fcrm-checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f1faf6;
    border: 1px solid #ccebdd;
    border-radius: 11px;
}
.fcrm-checkbox-line input { width: 16px; height: 16px; }
.fcrm-checkbox-line input[type="checkbox"] {
    flex: 0 0 14px;
    width: 14px !important;
    min-width: 14px;
    height: 14px !important;
    margin: 0;
}
.fcrm-checkbox-line > span { flex: 0 1 auto; }
.fcrm-checkbox-line strong,
.fcrm-checkbox-line small { display: block; }
.fcrm-checkbox-line small { margin-top: 2px; color: var(--fcrm-muted); font-size: 8px; }

.fcrm-therapist-profile-hero {
    display: grid;
    grid-template-columns: 150px minmax(0,1fr);
    align-items: center;
    gap: 28px;
    min-height: 230px;
    margin-bottom: 18px;
    padding: 30px 36px;
    color: #fff;
    background: linear-gradient(125deg, #176cad, #3291d0);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(28,109,169,.18);
}
.fcrm-therapist-portrait {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 28px;
}
.fcrm-therapist-portrait span {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    color: var(--fcrm-blue-dark);
    background: #fff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 850;
}
.fcrm-therapist-profile-hero h1 { margin: 0; color: #fff; font-size: 32px; }
.fcrm-therapist-profile-hero p { margin: 4px 0 16px; color: rgba(255,255,255,.82); font-size: 12px; }
.fcrm-therapist-contact-chips { display: flex; gap: 8px; }
.fcrm-therapist-contact-chips a,
.fcrm-therapist-contact-chips span {
    padding: 7px 10px;
    color: #fff !important;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 9px;
    font-size: 9px;
    text-decoration: none !important;
}
.fcrm-therapist-story > p { color: #516779; font-size: 11px; line-height: 1.75; }
.fcrm-education-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: var(--fcrm-yellow-soft);
    border-radius: 13px;
}
.fcrm-education-box strong { font-size: 11px; }
.fcrm-education-box p { margin: 4px 0 0; color: #6b6350; font-size: 9px; line-height: 1.6; }

.fcrm-modal-host { position: relative; z-index: 100; }
.fcrm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 39, 58, .48);
    backdrop-filter: blur(4px);
    animation: fcrm-fade .2s ease;
}
.fcrm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(530px, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
    padding: 27px;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(13, 38, 59, .25);
    transform: translate(-50%, -50%);
    animation: fcrm-modal-in .22s ease;
}
.fcrm-modal-wide { width: min(620px, calc(100vw - 28px)); }
.fcrm-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--fcrm-muted) !important;
    background: #f5f7f8;
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
.fcrm-modal > h2 { margin: 13px 0 4px; font-size: 20px; }
.fcrm-modal > p { margin: 0 0 20px; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-form { display: flex; flex-direction: column; gap: 13px; }
.fcrm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fcrm-form label { position: relative; color: #43596b; font-size: 9px; font-weight: 750; }
.fcrm-form input,
.fcrm-form select,
.fcrm-form textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 5px;
    padding: 9px 11px;
    color: var(--fcrm-ink);
    background: #fff;
    border: 1px solid #d9e3e9;
    border-radius: 9px;
    outline: none;
    font-size: 10px;
    font-weight: 500;
    transition: border .15s, box-shadow .15s;
}
.fcrm-form textarea { min-height: 115px; resize: vertical; }
.fcrm-form input:focus,
.fcrm-form select:focus,
.fcrm-form textarea:focus { border-color: var(--fcrm-blue); box-shadow: 0 0 0 3px rgba(40,126,193,.1); }
.fcrm-input-suffix { position: absolute; right: 12px; bottom: 12px; color: var(--fcrm-muted); font-size: 9px; font-weight: 600; }
.fcrm-form-actions,
.fcrm-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.fcrm-modal-actions-split { align-items: center; justify-content: space-between; }
.fcrm-modal-actions-group { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.fcrm-info-line { margin-top: 0; }
.fcrm-info-line > span { color: var(--fcrm-blue); font-size: 17px; }
.fcrm-info-line.secure > span { color: var(--fcrm-green); }
.fcrm-application-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.fcrm-application-meta > span,
.fcrm-answer { padding: 13px; background: #f6f9fa; border-radius: 11px; }
.fcrm-application-meta small,
.fcrm-application-meta strong { display: block; }
.fcrm-application-meta small,
.fcrm-answer small { color: var(--fcrm-muted); font-size: 8px; }
.fcrm-application-meta strong { margin-top: 3px; font-size: 10px; }
.fcrm-answer p { margin: 6px 0 0; color: #4c6274; font-size: 10px; line-height: 1.6; }
.fcrm-answer-list { display: grid; gap: 8px; max-height: 42vh; overflow-y: auto; }

.fcrm-public-application {
    width: min(100% - 32px, 920px);
    margin: 35px auto 70px;
    color: var(--fcrm-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.fcrm-application-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 210px;
    margin-bottom: 18px;
    padding: 35px 40px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #176cad, #3291d0);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(28, 109, 169, .2);
}
.fcrm-application-hero.fast { background: linear-gradient(125deg, #bf641c, #e99b36); }
.fcrm-application-hero::after {
    position: absolute;
    right: -75px;
    bottom: -135px;
    width: 330px;
    height: 330px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    content: "";
}
.fcrm-application-hero > * { position: relative; z-index: 1; }
.fcrm-application-hero h1 { max-width: 590px; margin: 0 0 10px; color: #fff; font-size: clamp(27px,4vw,42px); line-height: 1.1; }
.fcrm-application-hero p { margin: 0; color: rgba(255,255,255,.86); font-size: 14px; }
.fcrm-application-price {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 20px;
    text-align: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 18px;
}
.fcrm-application-price strong,
.fcrm-application-price span { display: block; color: #fff; }
.fcrm-application-price strong { font-size: 28px; }
.fcrm-application-price span { margin-top: 5px; font-size: 10px; line-height: 1.5; }
.fcrm-application-form { display: flex; flex-direction: column; gap: 16px; }
.fcrm-application-form label { display: block; color: #43596b; font-size: 13px; font-weight: 700; }
.fcrm-application-form label > small { display: block; margin-top: 3px; color: var(--fcrm-muted); font-weight: 500; }
.fcrm-application-form input:not([type="checkbox"]):not([type="radio"]),
.fcrm-application-form select,
.fcrm-application-form textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 11px 13px;
    color: var(--fcrm-ink);
    background: #fff;
    border: 1px solid #d5e1e9;
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-weight: 500;
}
.fcrm-application-form textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.fcrm-application-form input:focus,
.fcrm-application-form textarea:focus { border-color: var(--fcrm-blue); box-shadow: 0 0 0 3px rgba(40,126,193,.1); }
.fcrm-application-form .fcrm-card { display: flex; flex-direction: column; gap: 15px; padding: 26px; }
.fcrm-application-consent { align-items: flex-start; }
.fcrm-checkbox { display: flex !important; align-items: flex-start; gap: 10px; }
.fcrm-checkbox input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; }
.fcrm-crisis-note { padding: 14px 16px; color: #8c3a2e; background: #fff3ef; border: 1px solid #f0c7bc; border-radius: 11px; }
.fcrm-crisis-note strong { display: block; margin-bottom: 3px; font-size: 12px; }
.fcrm-crisis-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.fcrm-application-status { margin: 0; color: var(--fcrm-green); font-size: 12px; }
.fcrm-application-status.error { color: #b23a32; }
.fcrm-application-success {
    max-width: 720px;
    margin: 60px auto;
    padding: 50px;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--fcrm-shadow);
}
.fcrm-success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; color: #fff; background: var(--fcrm-green); border-radius: 50%; font-size: 28px; }
.fcrm-application-preview-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }

.fcrm-toast-host {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
}
.fcrm-toast {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(360px, calc(100vw - 30px));
    padding: 13px 15px;
    opacity: 0;
    color: #fff;
    background: var(--fcrm-ink);
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(17,38,55,.22);
    transform: translateY(10px);
    transition: .25s ease;
}
.fcrm-toast.show { opacity: 1; transform: translateY(0); }
.fcrm-toast > span { display: grid; place-items: center; width: 23px; height: 23px; color: var(--fcrm-ink); background: var(--fcrm-yellow); border-radius: 50%; font-size: 11px; font-weight: 800; }
.fcrm-toast.error > span { color: #fff; background: #d85f5f; }
.fcrm-toast p { margin: 0; font-size: 10px; }

.fcrm-empty {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 20px;
    color: var(--fcrm-muted);
    text-align: center;
}
.fcrm-empty > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 7px; background: var(--fcrm-blue-soft); border-radius: 50%; font-size: 22px; }
.fcrm-empty strong { color: var(--fcrm-ink); font-size: 11px; }
.fcrm-empty p { margin: 3px 0; font-size: 9px; }

.fcrm-loader,
.fcrm-state-card {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 30px;
    background: var(--fcrm-bg);
    text-align: center;
}
.fcrm-loader span {
    width: 40px;
    height: 40px;
    border: 3px solid var(--fcrm-blue-soft);
    border-top-color: var(--fcrm-blue);
    border-radius: 50%;
    animation: fcrm-spin .8s linear infinite;
}
.fcrm-loader p { color: var(--fcrm-muted); font-size: 11px; }
.fcrm-state-card { align-content: center; }
.fcrm-state-card h2 { margin: 12px 0 4px; }
.fcrm-state-card p { color: var(--fcrm-muted); }
.fcrm-state-icon { display: grid; place-items: center; width: 50px; height: 50px; color: #a73838; background: #feecec; border-radius: 50%; font-weight: 800; }

.fcrm-login-shell {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    width: 100%;
    min-height: 100vh;
    background: #fff;
}
.fcrm-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 8vw, 120px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #176cae, #2e8ecb);
}
.fcrm-login-brand::before,
.fcrm-login-brand::after {
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    content: "";
}
.fcrm-login-brand::before { right: -180px; top: -120px; }
.fcrm-login-brand::after { left: -180px; bottom: -270px; }
.fcrm-login-logo { display: block; width: min(360px, 65%); height: 150px; margin-bottom: 24px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 18px rgba(0,0,0,.12)); }
.fcrm-login-brand h1 { max-width: 650px; margin: 0 0 17px; color: #fff; font-size: clamp(33px, 4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.fcrm-login-brand > p:not(.fcrm-eyebrow) { max-width: 560px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.65; }
.fcrm-login-quote { max-width: 460px; margin-top: 50px; padding: 16px 19px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.1); border-left: 3px solid var(--fcrm-yellow); border-radius: 0 12px 12px 0; font-size: 12px; font-style: italic; }
.fcrm-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(420px, calc(100% - 50px));
    margin: auto;
    padding: 30px 0;
}
.fcrm-login-card .fcrm-eyebrow { color: var(--fcrm-blue); }
.fcrm-login-card h2 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.03em; }
.fcrm-muted { margin: 0 0 28px; color: var(--fcrm-muted); font-size: 12px; }
.fcrm-login-card form p { margin: 0 0 15px; }
.fcrm-login-card label { color: #43596b; font-size: 10px; font-weight: 750; }
.fcrm-login-card .input {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    padding: 10px 12px;
    color: var(--fcrm-ink);
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 10px;
    outline: none;
    box-shadow: none;
}
.fcrm-login-card .input:focus { border-color: var(--fcrm-blue); box-shadow: 0 0 0 3px rgba(40,126,193,.1); }
.fcrm-login-card .login-remember { color: var(--fcrm-muted); font-size: 10px; }
.fcrm-login-card .button-primary {
    width: 100%;
    min-height: 48px;
    color: var(--fcrm-ink);
    background: var(--fcrm-yellow);
    border: 0;
    border-radius: 10px;
    font-weight: 750;
    cursor: pointer;
}
.fcrm-login-card .button-primary:hover,
.fcrm-login-card .button-primary:focus,
.fcrm-login-card .button-primary:active { color: var(--fcrm-ink); background: var(--fcrm-yellow); filter: none; transform: none; }
body .fcrm-login-shell .fcrm-login-card input[type="submit"].button-primary,
body .fcrm-login-shell .fcrm-login-card input[type="submit"].button-primary:hover,
body .fcrm-login-shell .fcrm-login-card input[type="submit"].button-primary:focus,
body .fcrm-login-shell .fcrm-login-card input[type="submit"].button-primary:active {
    color: var(--fcrm-ink) !important;
    background-color: var(--fcrm-yellow) !important;
    border-color: var(--fcrm-yellow) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-login-help-row { margin: -5px 0 16px !important; text-align: left; }
.fcrm-login-help { color: var(--fcrm-blue) !important; font-size: 11px; font-weight: 750; text-decoration: none !important; }
.fcrm-login-contact { padding-top: 22px; color: var(--fcrm-muted); border-top: 1px solid var(--fcrm-line); font-size: 10px; text-align: center; }
.fcrm-login-contact a { color: var(--fcrm-blue) !important; }

.fcrm-google-saved-note {
    margin: -2px 0 14px;
    padding: 11px 13px;
    color: #24694f;
    background: #edf9f3;
    border: 1px solid #c8eadb;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.fcrm-backdrop { display: none; }

@keyframes fcrm-spin { to { transform: rotate(360deg); } }
@keyframes fcrm-fade { from { opacity: 0; } }
@keyframes fcrm-modal-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98); } }

.fcrm-nav em.message-badge {
    color: #fff;
    background: #d63f3f;
    font-weight: 800;
}

.fcrm-application-answer-grid.single-column { grid-template-columns: 1fr; }
.fcrm-application-answer-grid small { font-size: 10px; }
.fcrm-application-answer-grid p { font-size: 13px; line-height: 1.65; }
.fcrm-profile-data-grid small,
.fcrm-detail-list small { font-size: 10px; }
.fcrm-profile-data-grid strong,
.fcrm-detail-list strong { font-size: 13px; line-height: 1.45; }
.fcrm-waitlist-profile-hero p { display: grid; gap: 4px; margin: 6px 0 0; font-size: 12px; line-height: 1.45; }
.fcrm-waitlist-profile-hero p span { display: block; }
.fcrm-modal > p,
.fcrm-modal label,
.fcrm-info-line p,
.fcrm-therapist-story p { font-size: 12px; line-height: 1.6; }
.fcrm-form input,
.fcrm-form select,
.fcrm-form textarea { font-size: 13px; }
.fcrm-person-name,
.fcrm-contact-email { font-size: 13px; }
.fcrm-contact-phone,
.fcrm-patient-since,
.fcrm-table-row > span > small { font-size: 11px; }
.fcrm-table-row > span > strong { font-size: 13px; }
.fcrm-table-head { font-size: 10px; }
.fcrm-support-type strong,
.fcrm-wait-cell > strong { font-size: 12px; }
.fcrm-support-type small,
.fcrm-wait-cell > small { font-size: 11px; line-height: 1.5; }
.fcrm-wait-alert { font-size: 10px; line-height: 1.45; }
.fcrm-calendar-event strong { font-size: 10px; }
.fcrm-calendar-event span { font-size: 9px; }
.fcrm-calendar-event em { font-size: 8px; }
.fcrm-calendar-side p,
.fcrm-calendar-side-list button { font-size: 11px; }
.fcrm-payment-state strong { font-size: 12px; }
.fcrm-payment-state p { font-size: 10px; line-height: 1.5; }
.fcrm-payment-state.pending { color: #9b6712; background: #fff8df; border-color: #edd27c; }
.fcrm-payment-state.pending > span { background: #f7e8ad; }

.fcrm-important-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 27px 30px;
    color: #fff;
    background: linear-gradient(135deg, #174f78, #287ec1);
    border-radius: var(--fcrm-radius);
}
.fcrm-important-hero h1 { margin: 4px 0 7px; font-size: 28px; }
.fcrm-important-hero p { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; }
.fcrm-important-mini-list,
.fcrm-important-list { display: grid; gap: 8px; }
.fcrm-important-mini-list a,
.fcrm-important-mini-list button,
.fcrm-important-list button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 12px;
    color: var(--fcrm-ink);
    background: #fafcfd;
    border: 1px solid var(--fcrm-line);
    border-radius: 10px;
    text-align: left;
}
.fcrm-important-mini-list a > span:nth-child(2),
.fcrm-important-mini-list button > span:nth-child(2),
.fcrm-important-list button > span:nth-child(2) { flex: 1; }
.fcrm-important-mini-list .fcrm-alert-dot,
.fcrm-important-list .fcrm-alert-dot { flex: 0 0 8px; }
.fcrm-important-mini-list strong,
.fcrm-important-list strong { display: block; font-size: 12px; }
.fcrm-important-mini-list small,
.fcrm-important-list small { display: block; margin-top: 2px; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-important-list em { color: var(--fcrm-blue); font-size: 10px; font-style: normal; font-weight: 750; }

.fcrm-transaction-row {
    position: relative;
    grid-template-columns: 34px minmax(180px,1fr) minmax(135px,.45fr) minmax(110px,.35fr) 34px;
    min-height: 72px;
    padding: 7px 4px;
    cursor: pointer;
}
.fcrm-transaction-row:hover { background: #fbfcfd; }
.fcrm-transaction-row > div strong,
.fcrm-transaction-row > span strong { font-size: 12px; }
.fcrm-transaction-row small { font-size: 10px; }
.fcrm-transaction-date strong { margin-top: 3px; color: var(--fcrm-ink); }
.fcrm-transaction-amount { text-align: right; }
.fcrm-transaction-menu-wrap { position: relative; text-align: right; }
.fcrm-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
    word-break: keep-all;
}
.fcrm-transaction-menu {
    position: absolute;
    z-index: 15;
    top: 35px;
    right: 0;
    display: grid;
    width: 205px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 11px;
    box-shadow: 0 15px 40px rgba(24,47,65,.16);
}
.fcrm-transaction-menu button,
.fcrm-transaction-menu small { padding: 11px 13px; text-align: left; }
.fcrm-transaction-menu button { color: var(--fcrm-ink); background: #fff; border: 0; font-size: 11px; }
.fcrm-transaction-menu button:hover { background: #f5f8fa; }
.fcrm-transaction-menu button.danger { color: #bd3434; border-top: 1px solid #f0dddd; }

.fcrm-inbox-total {
    padding: 9px 13px;
    color: #fff;
    background: rgba(255,255,255,.13);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 750;
}
.fcrm-message-inbox-page { width: 70%; margin-right: auto; margin-left: auto; }
.fcrm-conversation-list { display: grid; gap: 8px; }
.fcrm-conversation-list button {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    color: var(--fcrm-ink);
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 11px;
    text-align: left;
}
.fcrm-conversation-list button.unread { background: #f2f8fd; border-color: #b8d8ef; }
.fcrm-shell .fcrm-conversation-list button:hover,
.fcrm-shell .fcrm-conversation-list button:focus {
    color: var(--fcrm-ink) !important;
    background: #fff !important;
    border-color: var(--fcrm-line) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-shell .fcrm-conversation-list button.unread:hover,
.fcrm-shell .fcrm-conversation-list button.unread:focus {
    background: #f2f8fd !important;
    border-color: #b8d8ef !important;
}
.fcrm-conversation-list button > span:nth-child(2) { min-width: 0; }
.fcrm-conversation-list strong { display: block; font-size: 13px; }
.fcrm-conversation-list p { overflow: hidden; margin: 3px 0; color: #4c6476; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fcrm-conversation-list small { color: var(--fcrm-muted); font-size: 10px; }
.fcrm-conversation-list em {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    color: #fff;
    background: #d63f3f;
    border-radius: 50%;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}
.fcrm-conversation-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.fcrm-open-chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    color: var(--fcrm-blue);
    background: #fff;
    border: 1px solid #b9d6eb;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.fcrm-shell .fcrm-conversation-list button:hover .fcrm-open-chat-button,
.fcrm-shell .fcrm-conversation-list button:focus .fcrm-open-chat-button {
    color: var(--fcrm-blue);
    background: #fff;
    border-color: #b9d6eb;
}

@media (max-width: 900px) {
    .fcrm-message-inbox-page { width: 100%; }
}

.fcrm-month-calendar { padding: 0; overflow-x: auto; }
.fcrm-month-weekdays,
.fcrm-month-grid { display: grid; grid-template-columns: repeat(7, minmax(105px,1fr)); min-width: 780px; }
.fcrm-month-weekdays { background: #f7fafb; border-bottom: 1px solid var(--fcrm-line); }
.fcrm-month-weekdays strong { padding: 11px; color: var(--fcrm-muted); font-size: 10px; text-align: center; text-transform: uppercase; }
.fcrm-month-grid > article { min-height: 125px; padding: 7px; border-right: 1px solid var(--fcrm-line); border-bottom: 1px solid var(--fcrm-line); }
.fcrm-month-grid > article:nth-child(7n) { border-right: 0; }
.fcrm-month-grid > article.outside { background: #fafbfc; opacity: .48; }
.fcrm-month-grid > article.today { background: #f2f8fd; box-shadow: inset 0 0 0 2px #86bfe7; }
.fcrm-month-day { width: 28px; height: 28px; color: var(--fcrm-ink); background: transparent; border: 0; border-radius: 50%; font-size: 11px; font-weight: 800; }
.fcrm-month-day:hover { color: #fff; background: var(--fcrm-blue); }
.fcrm-month-grid article > div { display: grid; gap: 4px; margin-top: 4px; }
.fcrm-month-item {
    overflow: hidden;
    padding: 5px 6px;
    color: #245c86;
    background: #eaf4fb;
    border: 0;
    border-left: 3px solid var(--fcrm-blue);
    border-radius: 5px;
    font-size: 9px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fcrm-month-item.paid { color: #257258; background: var(--fcrm-green-soft); border-left-color: var(--fcrm-green); }
.fcrm-month-item.pending_confirmation { color: #946213; background: #fff5d8; border-left-color: #dcad2f; }
.fcrm-month-item.group { color: #6c4a9a; background: #f0eafd; border-left-color: #8259bd; }
.fcrm-calendar-list { display: grid; gap: 18px; }
.fcrm-calendar-list-row {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) auto 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 8px 0;
    color: var(--fcrm-ink);
    background: #fff;
    border: 0;
    border-top: 1px solid var(--fcrm-line);
    text-align: left;
}
.fcrm-calendar-list-row > span:nth-child(2) strong { display: block; font-size: 13px; }
.fcrm-calendar-list-row > span:nth-child(2) small { display: block; margin-top: 3px; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-calendar-list-row em { padding: 4px 7px; border-radius: 12px; font-size: 9px; font-style: normal; font-weight: 750; }
.fcrm-calendar-list-row em.paid { color: #277b5e; background: var(--fcrm-green-soft); }
.fcrm-calendar-list-row em.unpaid { color: #9a582d; background: #fff2e7; }
.fcrm-calendar-list-row em.pending_confirmation { color: #946213; background: #fff5d8; }
.fcrm-calendar-list-row em.group { color: #6c4a9a; background: #f0eafd; }
.fcrm-shell .fcrm-calendar-list-row:hover {
    color: var(--fcrm-ink) !important;
    background: #fff !important;
    border-color: var(--fcrm-line) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-shell .fcrm-calendar-event:hover {
    color: #226fa9 !important;
    background: #e4f2fa !important;
    border-left-color: var(--fcrm-blue) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-shell .fcrm-calendar-event.paid:hover { color: #277b5e !important; background: var(--fcrm-green-soft) !important; border-left-color: var(--fcrm-green) !important; }
.fcrm-shell .fcrm-calendar-event.group:hover { color: #7151a4 !important; background: #f0eafd !important; border-left-color: #8259bd !important; }
.fcrm-shell .fcrm-month-item:hover {
    color: #245c86 !important;
    background: #eaf4fb !important;
    border-left-color: var(--fcrm-blue) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-shell .fcrm-month-item.paid:hover { color: #257258 !important; background: var(--fcrm-green-soft) !important; border-left-color: var(--fcrm-green) !important; }
.fcrm-shell .fcrm-month-item.pending_confirmation:hover { color: #946213 !important; background: #fff5d8 !important; border-left-color: #dcad2f !important; }
.fcrm-shell .fcrm-month-item.group:hover { color: #6c4a9a !important; background: #f0eafd !important; border-left-color: #8259bd !important; }
.fcrm-calendar-completed { background: #fbfcfd; }
.fcrm-calendar-period { font-size: 12px; text-align: center; }

@media (max-width: 1120px) {
    .fcrm-stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fcrm-therapist-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fcrm-calendar-layout,
    .fcrm-grid-documents { grid-template-columns: 1fr; }
    .fcrm-calendar-side,
    .fcrm-summary-generator { position: static; }
    .fcrm-role-switch { display: none; }
    .fcrm-stat-row-five { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .fcrm-budget-categories { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .fcrm-shell { display: block; }
    .fcrm-sidebar { position: fixed; left: 0; transform: translateX(-102%); transition: transform .22s ease; }
    .fcrm-shell.sidebar-open .fcrm-sidebar { transform: translateX(0); }
    .fcrm-shell.sidebar-open .fcrm-backdrop { display: block; position: fixed; inset: 0; background: rgba(16,39,58,.38); z-index: 25; }
    .fcrm-mobile-menu { display: grid; }
    .fcrm-topbar { padding: 10px 20px; }
    .fcrm-page-title { margin-right: auto; margin-left: 10px; }
    .fcrm-main { padding: 20px; }
    .fcrm-grid-main,
    .fcrm-grid-profile { grid-template-columns: 1fr; }
    .fcrm-finance-overview { grid-template-columns: 1fr; }
    .fcrm-finance-toolbar { grid-template-columns: auto 1fr; }
    .fcrm-finance-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .fcrm-toolbar { grid-template-columns: 1fr auto; }
    .fcrm-toolbar > :last-child { grid-column: 2; grid-row: 1; }
    .fcrm-calendar-nav { display: none; }
    .fcrm-toolbar-list { grid-template-columns: 1fr auto; }
    .fcrm-toolbar-list .fcrm-filter { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
    .fcrm-therapist-chip { min-width: 230px; }
    .fcrm-therapist-admin-hero { grid-template-columns: 70px minmax(0, 1fr); }
    .fcrm-therapist-admin-side { grid-column: 1 / -1; justify-content: space-between; }
    .fcrm-documents-hero { align-items: flex-start; flex-direction: column; }
    .fcrm-waitlist-intro { grid-template-columns: repeat(3, 1fr); }
    .fcrm-waitlist-alert-summary { grid-column: 1 / -1; padding: 10px 0 0; border-top: 1px solid #e7cf68; border-left: 0; }
    .fcrm-month-metrics { grid-template-columns: 1fr 1fr; }
    .fcrm-grid-messages { grid-template-columns: 1fr; }
    .fcrm-message-composer { position: static; }
    .fcrm-login-shell { grid-template-columns: 1fr; }
    .fcrm-login-brand { display: none; }
    .fcrm-login-card { min-height: 100vh; }
    .fcrm-stat-row-five { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fcrm-budget-categories { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fcrm-annual-months > div:last-child { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .fcrm-topbar { min-height: 62px; padding: 8px 13px; }
    .fcrm-page-title span { display: none; }
    .fcrm-page-title strong { font-size: 14px; }
    .fcrm-icon-button { display: grid; }
    .fcrm-role-switch { display: none; }
    .fcrm-notification-panel { position: fixed; top: 66px; right: 10px; left: 10px; width: auto; }
    .fcrm-main { padding: 13px 13px 35px; }
    .fcrm-welcome,
    .fcrm-patient-hero,
    .fcrm-finance-hero { min-height: 175px; padding: 23px; }
    .fcrm-welcome-art { display: none; }
    .fcrm-welcome h1 { font-size: 25px; }
    .fcrm-stat-row,
    .fcrm-stat-row-patient { grid-template-columns: 1fr 1fr; gap: 9px; }
    .fcrm-stat-card { min-height: 95px; padding: 13px; }
    .fcrm-stat-icon { width: 36px; height: 36px; font-size: 17px; }
    .fcrm-stat-card strong { font-size: 17px; }
    .fcrm-grid-main { gap: 12px; }
    .fcrm-calendar-create-actions { grid-column: 1 / -1 !important; grid-row: auto !important; width: 100%; }
    .fcrm-calendar-create-actions .fcrm-btn { flex: 1; }
    .fcrm-detail-list,
    .fcrm-participant-picker > div { grid-template-columns: 1fr; }
    .fcrm-card { padding: 16px; }
    .fcrm-appointment { grid-template-columns: 49px 34px minmax(90px,1fr) 25px; gap: 8px; }
    .fcrm-appointment-price { display: none; }
    .fcrm-therapist-grid { grid-template-columns: 1fr; }
    .fcrm-document-card { grid-template-columns: 40px minmax(0, 1fr); }
    .fcrm-document-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
    .fcrm-documents-actions { width: 100%; }
    .fcrm-documents-actions .fcrm-btn { flex: 1; }
    .fcrm-therapist-admin-hero { grid-template-columns: 58px 1fr; padding: 17px; }
    .fcrm-therapist-admin-hero .fcrm-btn { grid-column: 1 / -1; }
    .fcrm-therapist-admin-side { align-items: stretch; flex-direction: column; }
    .fcrm-therapist-admin-actions { display: grid; grid-template-columns: 1fr; }
    .fcrm-therapist-admin-actions .fcrm-btn { width: 100%; }
    .fcrm-therapist-patients-header { align-items: stretch; flex-direction: column; }
    .fcrm-application-answer-grid { grid-template-columns: 1fr; }
    .fcrm-profile-data-grid { grid-template-columns: 1fr; }
    .fcrm-patient-hero { display: block; }
    .fcrm-therapist-chip { display: none; }
    .fcrm-profile-hero { grid-template-columns: 58px 1fr; padding: 17px; }
    .fcrm-profile-hero .xlarge { width: 58px; height: 58px; }
    .fcrm-profile-actions { grid-column: 1 / -1; }
    .fcrm-profile-actions .fcrm-btn { flex: 1; }
    .fcrm-waitlist-intro { grid-template-columns: 1fr; }
    .fcrm-waitlist-alert-summary { grid-column: auto; }
    .fcrm-waitlist-metric { min-height: 64px; }
    .fcrm-therapist-month-summary > header { align-items: stretch; flex-direction: column; }
    .fcrm-month-metrics { grid-template-columns: 1fr; }
    .fcrm-history-hero,
    .fcrm-messages-hero { align-items: flex-start; flex-direction: column; padding: 19px; }
    .fcrm-history-summary { width: 100%; min-width: 0; }
    .fcrm-message { width: 96%; }
    .fcrm-finance-bars { display: none; }
    .fcrm-finance-toolbar { display: flex; flex-wrap: wrap; }
    .fcrm-finance-selectors { margin-left: auto; }
    .fcrm-finance-actions { width: 100%; }
    .fcrm-finance-actions .fcrm-btn { flex: 1; }
    .fcrm-operation-list { grid-template-columns: 1fr; }
    .fcrm-transaction-row { grid-template-columns: 34px minmax(130px,1fr) 34px; }
    .fcrm-transaction-date { grid-column: 2; }
    .fcrm-transaction-amount { grid-column: 2; text-align: left; }
    .fcrm-transaction-menu-wrap { grid-column: 3; grid-row: 1; }
    .fcrm-calendar-list-row { grid-template-columns: 58px minmax(0,1fr) 20px; }
    .fcrm-calendar-list-row em { grid-column: 2; width: max-content; }
    .fcrm-finance-hero { align-items: flex-start; flex-direction: column; }
    .fcrm-available-funds { width: 100%; min-width: 0; }
    .fcrm-line-chart { min-width: 560px; }
    .fcrm-chart-card { overflow-x: auto; }
    .fcrm-budget-numbers { grid-template-columns: 1fr; }
    .fcrm-meet-box { grid-template-columns: 38px 1fr; }
    .fcrm-meet-box > span:last-child { grid-column: 2; }
    .fcrm-integration-card { grid-template-columns: 38px 1fr; }
    .fcrm-integration-card .fcrm-btn { grid-column: 1 / -1; }
    .fcrm-therapist-profile-hero { grid-template-columns: 78px 1fr; gap: 16px; padding: 22px; }
    .fcrm-therapist-portrait { width: 78px; height: 78px; border-radius: 18px; }
    .fcrm-therapist-portrait span { width: 60px; height: 60px; font-size: 18px; }
    .fcrm-therapist-profile-hero h1 { font-size: 24px; }
    .fcrm-therapist-contact-chips { flex-wrap: wrap; }
    .fcrm-field-row { grid-template-columns: 1fr; }
    .fcrm-modal { padding: 22px 18px; }
    .fcrm-application-meta { grid-template-columns: 1fr; }
    .fcrm-login-card { width: min(100% - 34px, 420px); }
    .fcrm-toolbar-list { display: flex; flex-wrap: wrap; }
    .fcrm-toolbar-list .fcrm-search { flex: 1 1 190px; }
    .fcrm-toolbar-list .fcrm-btn { flex: 0 0 auto; }
    .fcrm-filter { max-width: 100%; overflow-x: auto; }
    .fcrm-application-preview-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .fcrm-application-hero { align-items: flex-start; flex-direction: column; padding: 26px; }
    .fcrm-application-price { width: 100%; min-width: 0; text-align: left; }
    .fcrm-application-form .fcrm-card { padding: 19px; }
}

@media (max-width: 420px) {
    .fcrm-stat-row,
    .fcrm-stat-row-patient { grid-template-columns: 1fr; }
    .fcrm-stat-card { min-height: 82px; }
    .fcrm-welcome h1 { font-size: 22px; }
    .fcrm-stat-row-five,
    .fcrm-budget-categories,
    .fcrm-annual-months > div:last-child { grid-template-columns: 1fr; }
}

/* Jednoznaczny sygnał interakcji w całym portalu. */
.fcrm-shell button:not(:disabled),
.fcrm-shell a[href],
.fcrm-shell [role="button"],
.fcrm-shell [data-action],
.fcrm-shell [data-nav],
.fcrm-shell [data-modal],
.fcrm-shell [data-appointment],
.fcrm-shell [data-patient],
.fcrm-shell [data-waitlist],
.fcrm-login-shell button:not(:disabled),
.fcrm-login-shell a[href] {
    cursor: pointer;
}

.fcrm-patient-hero-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(230px, .9fr) minmax(255px, 1fr);
    align-items: stretch;
    gap: 12px;
    margin-left: 22px;
}
.fcrm-patient-hero-cards .fcrm-therapist-chip { min-width: 0; margin: 0; }
.fcrm-crisis-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    color: #351006;
    background: #fff4e8;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 16px;
}
.fcrm-crisis-card > div { display: flex; align-items: flex-start; gap: 10px; }
.fcrm-crisis-card small,
.fcrm-crisis-card strong { display: block; font-size: 11px; line-height: 1.4; }
.fcrm-crisis-card strong { margin-top: 3px; font-size: 13px; }
.fcrm-crisis-icon {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: #d45420;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 900;
}
.fcrm-btn-crisis { width: 100%; color: #fff !important; background: #d45420 !important; }
.fcrm-crisis-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.fcrm-crisis-contact-grid article { padding: 17px; background: #fff8f1; border: 1px solid #f4d8c5; border-radius: 14px; }
.fcrm-crisis-contact-grid h3 { margin: 0 0 12px; font-size: 15px; }
.fcrm-crisis-contact-grid p { margin: 9px 0; font-size: 12px; line-height: 1.55; }
.fcrm-crisis-contact-grid a,
.fcrm-crisis-more a { color: #9a3515; font-weight: 800; }
.fcrm-crisis-more { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #f5f8fa; border-radius: 12px; font-size: 12px; }
.fcrm-payment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.fcrm-payment-actions .fcrm-btn { width: 100%; min-height: 46px; white-space: normal; text-align: center; }
.fcrm-payment-request-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0;
    padding: 14px 16px;
    background: #fff7ea;
    border: 1px solid #f4d096;
    border-radius: 13px;
}
.fcrm-payment-request-state.sent { background: #edf8f2; border-color: #bfe2ce; }
.fcrm-payment-request-state strong { display: block; font-size: 12px; }
.fcrm-payment-request-state p { margin: 4px 0 0; color: var(--fcrm-muted); font-size: 10px; line-height: 1.45; }
.fcrm-stat-row-patient .fcrm-stat-card small { font-size: 11px; }
.fcrm-stat-row-patient .fcrm-stat-card strong { font-size: 17px; }
.fcrm-stat-row-patient .fcrm-stat-card em { font-size: 10px; }
.fcrm-toolbar-actions { display: flex; justify-content: flex-end; gap: 8px; }
.fcrm-welcome > .fcrm-btn { position: relative; z-index: 3; }
.fcrm-document-filters {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 14px 18px;
}
.fcrm-document-filters label { min-width: 230px; color: var(--fcrm-muted); font-size: 9px; font-weight: 800; }
.fcrm-document-filters select { display: block; width: 100%; min-height: 38px; margin-top: 5px; padding: 0 11px; color: var(--fcrm-ink); background: #fff; border: 1px solid var(--fcrm-line); border-radius: 9px; }
.fcrm-annual-finance-link { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 15px; }
.fcrm-annual-finance-link h2 { margin: 3px 0 5px; font-size: 20px; }
.fcrm-annual-finance-link p { margin: 0; color: var(--fcrm-muted); font-size: 11px; }
.fcrm-password-reset-shell {
    display: grid;
    min-height: 100vh;
    padding: 34px 18px;
    place-items: center;
    color: var(--fcrm-ink);
    background: linear-gradient(135deg, #eef7fb, #fff9e8);
}
.fcrm-password-reset-card {
    width: min(100%, 500px);
    padding: 34px;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(23,50,77,.14);
}
.fcrm-password-reset-card > img { display: block; width: min(260px, 80%); max-height: 90px; margin: 0 auto 25px; object-fit: contain; }
.fcrm-password-reset-card h1 { margin: 5px 0 11px; font-size: 26px; }
.fcrm-password-reset-card > p { color: var(--fcrm-muted); font-size: 12px; line-height: 1.6; }
.fcrm-reset-message { margin: 15px 0; padding: 13px 15px; border-radius: 11px; font-size: 11px; line-height: 1.5; }
.fcrm-reset-message.success { color: #17633d; background: #eaf8f0; border: 1px solid #bce2cc; }
.fcrm-reset-message.error { color: #9a2f20; background: #fff0ed; border: 1px solid #f0c6bd; }
.fcrm-reset-back { display: block; margin-top: 20px; color: var(--fcrm-blue); font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; }

/* Aktualizacja #2: czytelność interfejsu i większe cele interakcji. */
.fcrm-shell { font-size: 15px; }
.fcrm-shell [data-note] { cursor: pointer; }
.fcrm-btn,
.fcrm-btn-small,
.fcrm-document-actions .fcrm-btn-small {
    min-height: 40px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
}
.fcrm-section-head p,
.fcrm-documents-hero p,
.fcrm-profile-hero p,
.fcrm-therapist-chip em,
.fcrm-therapist-chip small,
.fcrm-message small,
.fcrm-calendar-side p { font-size: 13px; }
.fcrm-therapist-chip strong { font-size: 16px; }
.fcrm-therapist-chip button { margin-top: 7px; font-size: 14px; }
.fcrm-appointment-main strong,
.fcrm-calendar-list-row > span:nth-child(2) strong { font-size: 15px; }
.fcrm-appointment-main span,
.fcrm-calendar-list-row > span:nth-child(2) small,
.fcrm-appointment-price strong,
.fcrm-appointment-price span { font-size: 13px; }
.fcrm-date-tile strong { font-size: 14px; }
.fcrm-date-tile small { font-size: 11px; }
.fcrm-calendar-event strong,
.fcrm-month-item strong { font-size: 12px; }
.fcrm-calendar-event span,
.fcrm-calendar-event em,
.fcrm-month-item,
.fcrm-calendar-side-list button,
.fcrm-calendar-legend { font-size: 12px; }
.fcrm-calendar-day-select small,
.fcrm-calendar-side-list span,
.fcrm-calendar-side-list > small { font-size: 11px; }
.fcrm-message { font-size: 15px; line-height: 1.65; }
.fcrm-message p { font-size: 15px; }
.fcrm-message header strong { font-size: 14px; }
.fcrm-message header span { font-size: 12px; }
.fcrm-message > a strong { font-size: 13px; }
.fcrm-message > a small { font-size: 12px; }
.fcrm-messages-hero p { font-size: 14px; }
.fcrm-modal { font-size: 15px; }
.fcrm-modal > p,
.fcrm-modal label,
.fcrm-modal input,
.fcrm-modal select,
.fcrm-modal textarea { font-size: 14px; }
.fcrm-detail-list small { font-size: 12px; }
.fcrm-detail-list strong { font-size: 14px; }
.fcrm-payment-state strong { font-size: 14px; }
.fcrm-payment-state p { font-size: 13px; }
.fcrm-meeting-link small { font-size: 11px; }
.fcrm-meeting-link strong { font-size: 14px; }
.fcrm-crisis-contact-grid p { font-size: 15px; }
.fcrm-crisis-more { font-size: 14px; }
.fcrm-document-copy p { font-size: 14px; line-height: 1.5; }
.fcrm-document-copy > small { font-size: 12px; }
.fcrm-document-filters label { font-size: 12px; }
.fcrm-summary-generator label { font-size: 13px; }
.fcrm-application-answer-grid small,
.fcrm-answer small { color: #111; font-size: 12px; }
.fcrm-application-answer-grid p,
.fcrm-answer p,
.fcrm-patient-application p { color: #111; font-size: 15px; line-height: 1.65; }
.fcrm-note-list header strong,
.fcrm-note-list header span { font-size: 12px; }
.fcrm-note-list p { color: #17212b; font-size: 15px; line-height: 1.6; }
.fcrm-note-list article {
    min-height: 92px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.fcrm-note-list article:hover,
.fcrm-note-list article:focus {
    border-color: #8abadd;
    box-shadow: 0 8px 22px rgba(31, 83, 121, .10);
    outline: none;
    transform: translateY(-1px);
}
.fcrm-note-detail { margin-top: 16px; padding: 18px; color: #111; background: #f8fafb; border: 1px solid var(--fcrm-line); border-radius: 13px; }
.fcrm-note-detail small { color: #111; font-size: 12px; font-weight: 800; }
.fcrm-note-detail p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.fcrm-note-list-all { max-height: 58vh; overflow-y: auto; }
.fcrm-grid-patient-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fcrm-stat-row-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fcrm-compensation-card label { display: block; margin-top: 7px; color: var(--fcrm-muted); font-size: 11px; font-weight: 750; }
.fcrm-compensation-card select { display: block; width: 100%; min-height: 36px; margin-top: 4px; padding: 0 8px; color: var(--fcrm-ink); background: #fff; border: 1px solid var(--fcrm-line); border-radius: 8px; font-size: 13px; }
.fcrm-patient-table .fcrm-table-head,
.fcrm-patient-table .fcrm-table-row {
    min-width: 1210px;
    grid-template-columns: 1.25fr 1.2fr .9fr .5fr .68fr .68fr .78fr 20px;
}
.fcrm-therapist-patient-table .fcrm-table-head,
.fcrm-therapist-patient-table .fcrm-table-row {
    min-width: 1120px;
    grid-template-columns: 1.2fr 1.1fr .8fr .52fr .82fr .45fr .68fr .75fr 16px;
}
.fcrm-waitlist-table .fcrm-table-head,
.fcrm-waitlist-table .fcrm-table-row {
    min-width: 1220px;
    grid-template-columns: 1.3fr .9fr 1.1fr 1.25fr .55fr 20px;
}
.fcrm-table-head { font-size: 11px; }
.fcrm-table-row > span > strong,
.fcrm-person-name,
.fcrm-contact-email { font-size: 14px; }
.fcrm-table-row > span > small,
.fcrm-contact-phone,
.fcrm-patient-since { font-size: 12px; }
.fcrm-status,
.fcrm-work-mode { padding: 5px 9px; border-radius: 20px; font-size: 12px; font-style: normal; font-weight: 800; line-height: 1.3; }
.fcrm-work-mode.paid { color: #1f6e53; background: #e8f7f1; }
.fcrm-work-mode.volunteer { color: #65459a; background: #f0edfb; }
.fcrm-risk-badge { display: inline-block; max-width: 100%; padding: 7px 10px; color: #5f6d78; background: #eef2f4; border-radius: 9px; font-size: 12px; font-style: normal; font-weight: 800; line-height: 1.4; }
.fcrm-risk-badge.danger { color: #9f2020; background: #ffe9e9; border: 1px solid #e97c7c; }
.fcrm-wait-cell > strong { font-size: 13px; }
.fcrm-wait-cell > small,
.fcrm-wait-alert { font-size: 11px; }
.fcrm-important-alert { display: flex; align-items: center; gap: 14px; }
.fcrm-overdue-label { flex: 0 0 auto; padding: 8px 11px; color: #fff; background: #c93434; border-radius: 9px; font-size: 12px; font-weight: 900; }
.fcrm-important-alert.orange .fcrm-overdue-label { background: #d87522; }
.fcrm-important-alert strong { font-size: 15px; }
.fcrm-important-alert p { font-size: 13px; }
.fcrm-risk-question { margin: 0; padding: 18px; border: 1px solid #e5c9c9; border-radius: 13px; }
.fcrm-risk-question legend { padding: 0 7px; color: #111; font-size: 15px; font-weight: 800; }
.fcrm-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 15px; }
.fcrm-choice-row label { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 14px; color: #111; background: #fff; border: 1px solid var(--fcrm-line); border-radius: 10px; font-size: 15px; }
.fcrm-choice-row input { width: 18px; height: 18px; }
.fcrm-suicide-risk-alert { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 15px; margin: 16px 0; padding: 18px; color: #701d1d; background: #fff0f0; border: 2px solid #dc5959; border-radius: 16px; }
.fcrm-suicide-risk-alert strong { display: block; font-size: 17px; }
.fcrm-suicide-risk-alert p { margin: 5px 0 0; color: #701d1d; font-size: 14px; line-height: 1.55; }
.fcrm-payment-actions { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.fcrm-payment-actions .fcrm-btn,
.fcrm-payment-request-state .fcrm-btn {
    min-width: 0;
    min-height: 52px;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.fcrm-payment-request-state { flex-wrap: wrap; }
.fcrm-payment-request-state > div { flex: 1 1 260px; }
.fcrm-payment-request-state .fcrm-btn { flex: 0 1 210px; }
.fcrm-payment-request-state strong { font-size: 14px; }
.fcrm-payment-request-state p { font-size: 12px; }
.fcrm-document-actions { flex-wrap: wrap; }
.fcrm-document-actions .fcrm-btn { min-width: 104px; }
.fcrm-grid-documents { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); }
.fcrm-report-totals.settlement { grid-template-columns: repeat(2, 1fr); }
.fcrm-list-datetime { display: grid; grid-template-columns: minmax(112px, auto) 62px; gap: 7px; }
.fcrm-list-date,
.fcrm-list-time { display: grid; min-height: 40px; padding: 7px 10px; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 850; }
.fcrm-list-date { color: #245c86; background: #eaf4fb; }
.fcrm-list-time { color: #6c4a12; background: #fff3cf; }
.fcrm-calendar-list-row { grid-template-columns: minmax(185px, auto) minmax(0,1fr) auto 20px; }
.fcrm-crisis-card small { font-size: 13px; }
.fcrm-crisis-card strong { font-size: 15px; }

@media (max-width: 900px) {
    .fcrm-stat-row-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fcrm-grid-patient-record { grid-template-columns: 1fr; }
    .fcrm-suicide-risk-alert { grid-template-columns: 36px 1fr; }
    .fcrm-suicide-risk-alert .fcrm-btn { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .fcrm-stat-row-four { grid-template-columns: 1fr; }
    .fcrm-list-datetime { grid-template-columns: 1fr 58px; }
    .fcrm-calendar-list-row { grid-template-columns: 1fr 20px; }
    .fcrm-calendar-list-row > span:nth-child(2),
    .fcrm-calendar-list-row em { grid-column: 1; }
}

@media (max-width: 1100px) {
    .fcrm-patient-hero { display: block; }
    .fcrm-patient-hero-cards { grid-template-columns: 1fr 1fr; margin: 18px 0 0; }
}

@media (max-width: 700px) {
    .fcrm-patient-hero-cards,
    .fcrm-crisis-contact-grid,
    .fcrm-payment-actions { grid-template-columns: 1fr; }
    .fcrm-patient-hero-cards .fcrm-therapist-chip { display: flex; }
    .fcrm-payment-request-state,
    .fcrm-crisis-more,
    .fcrm-document-filters,
    .fcrm-annual-finance-link { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .fcrm-shell *,
    .fcrm-login-shell * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    body * { visibility: hidden !important; }
    .fcrm-modal-report,
    .fcrm-modal-report * { visibility: visible !important; }
    .fcrm-modal-report { position: absolute !important; inset: 0 auto auto 0 !important; width: 100% !important; max-height: none !important; box-shadow: none !important; }
    .fcrm-modal-report .fcrm-modal-close,
    .fcrm-modal-report .fcrm-modal-actions { display: none !important; }
    .fcrm-report-clients { max-height: none !important; overflow: visible !important; }
}

/* Aktualizacja #2: spokojne, niezmienne stany najechania w całym portalu. */
.fcrm-shell .fcrm-btn:hover,
.fcrm-shell .fcrm-btn:focus,
.fcrm-login-shell button:hover,
.fcrm-login-shell button:focus,
.fcrm-public-application .fcrm-btn:hover,
.fcrm-public-application .fcrm-btn:focus,
.fcrm-public-therapists .fcrm-btn:hover,
.fcrm-public-therapists .fcrm-btn:focus {
    filter: none !important;
    transform: none !important;
}
.fcrm-shell .fcrm-btn-primary:hover,
.fcrm-shell .fcrm-btn-primary:focus,
.fcrm-public-application .fcrm-btn-primary:hover,
.fcrm-public-application .fcrm-btn-primary:focus,
.fcrm-public-therapists .fcrm-btn-primary:hover,
.fcrm-public-therapists .fcrm-btn-primary:focus {
    color: #fff !important;
    background: var(--fcrm-blue) !important;
}
.fcrm-shell .fcrm-btn-secondary:hover,
.fcrm-shell .fcrm-btn-secondary:focus,
.fcrm-public-therapists .fcrm-btn-secondary:hover,
.fcrm-public-therapists .fcrm-btn-secondary:focus,
.fcrm-shell .fcrm-btn-danger:hover,
.fcrm-shell .fcrm-btn-danger:focus {
    color: var(--fcrm-ink) !important;
    background: #fff !important;
}
.fcrm-shell .fcrm-btn-light:hover,
.fcrm-shell .fcrm-btn-light:focus { color: var(--fcrm-blue-dark) !important; background: #fff !important; }
.fcrm-shell .fcrm-btn-danger:hover,
.fcrm-shell .fcrm-btn-danger:focus { color: #a63131 !important; }
.fcrm-shell .fcrm-btn-crisis:hover,
.fcrm-shell .fcrm-btn-crisis:focus { color: #fff !important; background: #d45420 !important; }
.fcrm-nav a:hover,
.fcrm-sidebar-bottom > a:hover {
    color: #52677a !important;
    background: transparent !important;
}
.fcrm-nav a.active:hover { color: var(--fcrm-blue-dark) !important; background: var(--fcrm-blue-soft) !important; }
.fcrm-icon-button:hover,
.fcrm-icon-button:focus { color: inherit !important; background: #fff !important; border-color: var(--fcrm-line) !important; }
.fcrm-icon-button.active:hover,
.fcrm-icon-button.active:focus { color: var(--fcrm-blue) !important; background: #eef7fc !important; border-color: #bcddef !important; }
.fcrm-more:hover,
.fcrm-more:focus { color: #95a3af !important; background: transparent !important; }
.fcrm-role-switch button:hover,
.fcrm-role-switch button:focus,
.fcrm-segment button:hover,
.fcrm-segment button:focus,
.fcrm-filter button:hover,
.fcrm-filter button:focus,
.fcrm-quick-action:hover,
.fcrm-quick-action:focus { color: var(--fcrm-muted) !important; background: transparent !important; }
.fcrm-role-switch button.active:hover,
.fcrm-role-switch button.active:focus,
.fcrm-segment button.active:hover,
.fcrm-segment button.active:focus,
.fcrm-filter button.active:hover,
.fcrm-filter button.active:focus { color: var(--fcrm-blue-dark) !important; background: #fff !important; }
.fcrm-notification-list > button:hover,
.fcrm-notification-list > button:focus { color: var(--fcrm-ink) !important; background: #fff !important; }
.fcrm-notification-list > button.unread:hover,
.fcrm-notification-list > button.unread:focus { background: #f2f9fd !important; }
.fcrm-notification-list > button > *,
.fcrm-activity-row > * { pointer-events: none; }
.fcrm-therapist-chip button:hover,
.fcrm-therapist-chip button:focus,
.fcrm-stat-link:hover,
.fcrm-stat-link:focus,
.fcrm-text-button:hover,
.fcrm-text-button:focus {
    color: var(--fcrm-blue-dark) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-therapist-chip button:hover,
.fcrm-therapist-chip button:focus { color: var(--fcrm-yellow) !important; }
.fcrm-calendar-day-select:hover,
.fcrm-calendar-day-select:focus { color: inherit !important; background: #fff !important; }
.fcrm-calendar-side-list > button:hover,
.fcrm-calendar-side-list > button:focus { color: inherit !important; background: #f7fafb !important; border-color: var(--fcrm-line) !important; }
.fcrm-month-day:hover,
.fcrm-month-day:focus { color: var(--fcrm-ink) !important; background: transparent !important; }
button.fcrm-table-row:hover,
button.fcrm-table-row:focus,
.fcrm-transaction-row:hover,
.fcrm-transaction-row:focus { color: var(--fcrm-ink) !important; background: #fff !important; }
button.fcrm-table-row:hover > span > strong,
button.fcrm-table-row:focus > span > strong,
button.fcrm-table-row:hover .fcrm-person-name,
button.fcrm-table-row:focus .fcrm-person-name,
button.fcrm-table-row:hover .fcrm-contact-email,
button.fcrm-table-row:focus .fcrm-contact-email,
button.fcrm-table-row:hover .fcrm-therapist-cell strong,
button.fcrm-table-row:focus .fcrm-therapist-cell strong {
    color: var(--fcrm-ink) !important;
}
.fcrm-transaction-menu button:hover,
.fcrm-transaction-menu button:focus { color: var(--fcrm-ink) !important; background: #fff !important; }
.fcrm-transaction-menu button.danger:hover,
.fcrm-transaction-menu button.danger:focus { color: #bd3434 !important; }
.fcrm-therapist-admin-phone:hover,
.fcrm-therapist-admin-phone:focus { color: var(--fcrm-blue-dark) !important; text-decoration: none; }

/* Minimalistyczne strony formularzy i resetu hasła. */
.fcrm-standalone-page .entry-title,
.fcrm-standalone-page .page-title,
.fcrm-standalone-page .nv-page-title,
.fcrm-standalone-page .wp-block-post-title,
.fcrm-standalone-page header.entry-header { display: none !important; }

/* Stały kolor menu mobilnego na podstronach tworzonych przez CRM. */
@media (max-width: 960px) {
    .fcrm-standalone-page .navbar-toggle,
    .fcrm-therapists-page .navbar-toggle,
    .fcrm-standalone-page .navbar-toggle:hover,
    .fcrm-therapists-page .navbar-toggle:hover,
    .fcrm-standalone-page .navbar-toggle:focus,
    .fcrm-therapists-page .navbar-toggle:focus,
    .fcrm-standalone-page .navbar-toggle:active,
    .fcrm-therapists-page .navbar-toggle:active {
        color: #17324d !important;
        background: #ffcd05 !important;
        border-color: #ffcd05 !important;
        box-shadow: none !important;
        filter: none !important;
        transform: none !important;
    }

    .fcrm-standalone-page .navbar-toggle .hamburger-inner,
    .fcrm-standalone-page .navbar-toggle .hamburger-inner::before,
    .fcrm-standalone-page .navbar-toggle .hamburger-inner::after,
    .fcrm-therapists-page .navbar-toggle .hamburger-inner,
    .fcrm-therapists-page .navbar-toggle .hamburger-inner::before,
    .fcrm-therapists-page .navbar-toggle .hamburger-inner::after {
        background-color: #17324d !important;
    }
}
.fcrm-password-reset-shell {
    min-height: auto;
    padding: 24px 18px 48px;
    background: #fff;
}
.fcrm-password-reset-card {
    border-color: #e1e8ed;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23,50,77,.06);
}
.fcrm-password-reset-card .fcrm-reset-title { margin: 5px 0 11px; font-size: 24px; }

/* Zdjęcia terapeuty w portalu. */
.fcrm-therapist-photo {
    display: grid;
    width: 68px;
    height: 68px;
    overflow: hidden;
    place-items: center;
    background: var(--fcrm-blue-soft);
    border: 3px solid #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(31,83,121,.12);
}
.fcrm-therapist-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fcrm-therapist-card > .fcrm-therapist-photo,
.fcrm-therapist-card > .fcrm-avatar { margin-right: auto; margin-left: auto; }
.fcrm-therapist-photo.admin-profile { width: 76px; height: 76px; }
.fcrm-therapist-photo.profile-avatar {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    margin: -48px auto 10px;
    border-radius: 26px;
}

/* Publiczny katalog aktywnych terapeutów. */
.fcrm-therapists-page .entry-title,
.fcrm-therapists-page .page-title,
.fcrm-therapists-page .nv-page-title,
.fcrm-therapists-page .wp-block-post-title { display: none !important; }
.fcrm-public-therapists {
    width: min(1180px, calc(100% - 32px));
    margin: 46px auto 70px;
    color: var(--fcrm-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.fcrm-public-therapists-intro { max-width: 720px; margin-bottom: 28px; }
.fcrm-public-therapists-intro h2 { margin: 6px 0 8px; color: var(--fcrm-ink); font-size: clamp(30px, 4vw, 46px); }
.fcrm-public-therapists-intro p { margin: 0; color: var(--fcrm-muted); font-size: 16px; }
.fcrm-public-therapist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fcrm-public-therapist-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 26px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 20px;
    box-shadow: var(--fcrm-shadow);
}
.fcrm-public-therapist-photo {
    display: grid;
    width: 250px;
    max-width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    color: var(--fcrm-blue-dark);
    background: var(--fcrm-blue-soft);
    border-radius: 18px;
    font-size: 44px;
    font-weight: 850;
}
.fcrm-public-therapist-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fcrm-public-therapist-card h3 { margin: 20px 0 5px; color: var(--fcrm-ink); font-size: 23px; }
.fcrm-public-therapist-card > strong { min-height: 44px; color: var(--fcrm-blue-dark); font-size: 15px; line-height: 1.45; }
.fcrm-public-therapist-card > p { flex: 1; margin: 14px 0 20px; color: #43596b; font-size: 15px; line-height: 1.65; }
.fcrm-public-therapist-card .fcrm-btn { width: 100%; min-height: 46px; font-size: 14px; }
.fcrm-public-back { display: inline-block; margin-bottom: 22px; color: var(--fcrm-blue-dark) !important; font-weight: 750; text-decoration: none !important; }
.fcrm-public-back:hover,
.fcrm-public-back:focus { color: var(--fcrm-blue-dark) !important; }
.fcrm-public-therapist-profile {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    padding: 38px;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 22px;
    box-shadow: var(--fcrm-shadow);
}
.fcrm-public-therapist-photo.large { width: 310px; }
.fcrm-public-therapist-profile h2 { margin: 6px 0; color: var(--fcrm-ink); font-size: 36px; }
.fcrm-public-specialisation { margin: 0 0 26px; color: var(--fcrm-blue-dark); font-size: 18px; font-weight: 750; }
.fcrm-public-therapist-profile section { padding-top: 18px; border-top: 1px solid var(--fcrm-line); }
.fcrm-public-therapist-profile section + section { margin-top: 22px; }
.fcrm-public-therapist-profile h3 { margin: 0 0 8px; color: var(--fcrm-ink); font-size: 20px; }
.fcrm-public-therapist-profile section p { margin: 0; color: #344c60; font-size: 16px; line-height: 1.75; }
.fcrm-public-empty { padding: 45px; text-align: center; background: #fff; border: 1px solid var(--fcrm-line); border-radius: 20px; }

.fcrm-therapist-finance-table .fcrm-table-head,
.fcrm-therapist-finance-table .fcrm-table-row { grid-template-columns: 1.2fr .7fr .8fr 1fr 1fr; }
.fcrm-finance-method-note { margin: 18px 0 0; padding: 13px 15px; color: #556b7c; background: #f7fafb; border-radius: 10px; font-size: 13px; line-height: 1.55; }

/* Aktualizacja #3: centralne narzędzia, prywatne notatki i rozliczenia. */
.fcrm-tools-hero,
.fcrm-patient-notes-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    margin-bottom: 18px;
    background: linear-gradient(125deg, #edf7fc, #fff);
    border: 1px solid #d5e8f2;
    border-radius: 20px;
}
.fcrm-tools-hero h1,
.fcrm-patient-notes-hero h1 { margin: 4px 0 7px; color: var(--fcrm-ink); font-size: 30px; }
.fcrm-tools-hero p,
.fcrm-patient-notes-hero p { max-width: 720px; margin: 0; color: #4e6678; font-size: 14px; line-height: 1.65; }
.fcrm-tool-card { padding: 26px; }
.fcrm-tool-card-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--fcrm-line);
}
.fcrm-tool-card-header .fcrm-meet-icon { width: 48px; height: 48px; font-size: 20px; }
.fcrm-tool-card-header h2 { margin: 3px 0 5px; color: var(--fcrm-ink); font-size: 23px; }
.fcrm-tool-card-header p { margin: 0; color: var(--fcrm-muted); font-size: 13px; line-height: 1.55; }
.fcrm-tool-card-header > em {
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.fcrm-tool-card-header > em.connected { color: #247056; background: #eaf8f1; }
.fcrm-tool-card-header > em.disconnected { color: #9a5a2d; background: #fff5e9; }
.fcrm-tool-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 26px; padding: 24px 0; }
.fcrm-tool-grid h3 { margin: 0 0 14px; color: var(--fcrm-ink); font-size: 17px; }
.fcrm-google-foundation-account { padding: 20px; background: #f7fafb; border: 1px solid var(--fcrm-line); border-radius: 15px; }
.fcrm-google-foundation-account > p { margin: 0 0 17px; color: #526879; font-size: 13px; line-height: 1.65; }
.fcrm-google-foundation-account > .fcrm-btn { width: 100%; }
.fcrm-tool-checklist { display: grid; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--fcrm-line); }
.fcrm-tool-checklist span { color: #3e596d; font-size: 12px; font-weight: 700; }
.fcrm-initial-finance-card { margin-top: 18px; }
.fcrm-initial-finance-card .fcrm-tool-card-header { grid-template-columns: 48px minmax(0, 1fr); }
.fcrm-initial-finance-form {
    display: grid;
    grid-template-columns: minmax(240px, 440px) auto;
    align-items: end;
    gap: 14px;
    padding-top: 24px;
}
.fcrm-initial-finance-form .fcrm-btn { min-height: 42px; }

@media (max-width: 700px) {
    .fcrm-initial-finance-card .fcrm-tool-card-header { grid-template-columns: 42px minmax(0, 1fr); }
    .fcrm-initial-finance-form { grid-template-columns: minmax(0, 1fr); }
    .fcrm-initial-finance-form .fcrm-btn { width: 100%; }
}

.fcrm-patient-notes-layout { align-items: start; }
.fcrm-patient-journal-list { display: grid; gap: 12px; }
.fcrm-patient-journal-entry { padding: 16px; background: #fbfcfd; border: 1px solid var(--fcrm-line); border-radius: 13px; }
.fcrm-patient-journal-entry header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.fcrm-patient-journal-entry header span,
.fcrm-patient-journal-entry header strong,
.fcrm-patient-journal-entry header small { display: block; }
.fcrm-patient-journal-entry header strong { color: var(--fcrm-ink); font-size: 14px; }
.fcrm-patient-journal-entry header small { margin-top: 2px; color: var(--fcrm-muted); font-size: 12px; }
.fcrm-patient-journal-entry > p { margin: 13px 0 0; color: #1e2f3d; font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.fcrm-journal-file {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-top: 13px;
    padding: 12px;
    color: var(--fcrm-ink) !important;
    background: #edf6fb;
    border-radius: 10px;
    text-decoration: none !important;
}
.fcrm-journal-file strong,
.fcrm-journal-file small { display: block; }
.fcrm-journal-file strong { font-size: 13px; }
.fcrm-journal-file small { margin-top: 2px; color: var(--fcrm-muted); font-size: 11px; }
.fcrm-patient-journal-composer { position: sticky; top: 20px; }

.fcrm-finance-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.fcrm-funds-summary { position: relative; z-index: 2; flex: 1; }
.fcrm-funds-summary > .fcrm-kicker { color: rgba(255,255,255,.84); }
.fcrm-funds-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.fcrm-funds-grid .fcrm-available-funds { min-width: 0; padding: 15px 18px; }
.fcrm-funds-grid .fcrm-available-funds span { line-height: 1.45; }
.fcrm-finance-hero-actions { position: relative; z-index: 2; display: grid; gap: 10px; min-width: 220px; }
.fcrm-finance-hero-actions .fcrm-btn {
    justify-content: center;
    min-height: 44px;
    color: var(--fcrm-blue-dark) !important;
    background: #fff !important;
    border-color: rgba(255,255,255,.76) !important;
    font-size: 13px;
}
.fcrm-settlement-section { padding: 0; margin-bottom: 18px; overflow: hidden; }
.fcrm-settlement-section > .fcrm-section-header { padding: 22px 22px 0; }
.fcrm-settlement-table .fcrm-table-head,
.fcrm-settlement-table .fcrm-table-row {
    grid-template-columns: minmax(190px, 1.35fr) 75px 105px 90px 110px 120px 138px 170px;
    min-width: 1120px;
}
.fcrm-settlement-table .fcrm-table-row > span { min-width: 0; }
.fcrm-settlement-status-cell { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.fcrm-settlement-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.fcrm-settlement-status.active { color: #2b6689; background: #e9f5fb; }
.fcrm-settlement-status.due { color: #a45a1d; background: #fff1df; }
.fcrm-settlement-status.prepared { color: #315d7a; background: #e7f2f8; }
.fcrm-settlement-status.settled { color: #247056; background: #e9f7f0; }
.fcrm-settlement-status.waiting-form { color: #8c3c24; background: #fff0e9; white-space: normal; line-height: 1.35; }
.fcrm-not-applicable { color: var(--fcrm-muted); font-size: 12px; }
.fcrm-btn-success,
.fcrm-btn-success:disabled {
    color: #176344 !important;
    background: #dff4e9 !important;
    border-color: #b8e2cc !important;
    opacity: 1;
}

@media (max-width: 900px) {
    .fcrm-tool-grid { grid-template-columns: 1fr; }
    .fcrm-tool-card-header { grid-template-columns: 48px minmax(0, 1fr); }
    .fcrm-tool-card-header > em { grid-column: 1 / -1; justify-self: start; }
    .fcrm-finance-hero { align-items: stretch; flex-direction: column; }
    .fcrm-finance-hero-actions { grid-template-columns: 1fr 1fr; width: 100%; }
}
@media (max-width: 640px) {
    .fcrm-tools-hero,
    .fcrm-patient-notes-hero { align-items: flex-start; padding: 22px; }
    .fcrm-tools-hero h1,
    .fcrm-patient-notes-hero h1 { font-size: 25px; }
    .fcrm-funds-grid,
    .fcrm-finance-hero-actions { grid-template-columns: 1fr; }
    .fcrm-patient-journal-composer { position: static; }
}

@media (max-width: 900px) {
    .fcrm-public-therapist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fcrm-public-therapist-profile { grid-template-columns: 230px minmax(0, 1fr); }
    .fcrm-public-therapist-photo.large { width: 230px; }
}
@media (max-width: 640px) {
    .fcrm-public-therapist-grid,
    .fcrm-public-therapist-profile { grid-template-columns: 1fr; }
    .fcrm-public-therapist-photo.large { width: min(310px, 100%); margin: auto; }
    .fcrm-public-therapist-profile { padding: 22px; }
}

/* Aktualizacja #3 — finanse miesięczne, budżet i rozliczenia. */
.fcrm-funds-summary { flex: 1 1 auto; }
.fcrm-funds-grid { width: 75%; min-width: 480px; }
.fcrm-settlements-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.fcrm-toolbar-back { width: auto !important; min-width: 0; justify-self: end; }
.fcrm-settlement-section { overflow: hidden; }
.fcrm-settlement-section .fcrm-table { overflow-x: auto; }
.fcrm-settlement-table .fcrm-table-head,
.fcrm-settlement-table .fcrm-table-row {
    grid-template-columns: minmax(150px, 1.45fr) 58px 86px 76px 94px 108px 118px 142px;
    gap: 8px;
    min-width: 900px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 12px;
}
.fcrm-settlement-table .fcrm-table-row strong { font-size: 12px; }
.fcrm-settlement-table .fcrm-table-row small { font-size: 10px; line-height: 1.35; }
.fcrm-settlement-table .fcrm-avatar { width: 32px; height: 32px; font-size: 10px; }
.fcrm-settlement-table .fcrm-person { gap: 8px; }
.fcrm-settlement-table .fcrm-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 8px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
}
.fcrm-settlement-table .fcrm-settlement-status { font-size: 10px; white-space: normal; text-align: center; }

.fcrm-recent-operations { margin: 18px 0; }
.fcrm-budget-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}
.fcrm-budget-header h2 { margin: 4px 0 5px; color: var(--fcrm-ink); font-size: 22px; }
.fcrm-budget-header p { margin: 0; color: var(--fcrm-muted); font-size: 13px; }
.fcrm-budget-header .fcrm-btn { flex: 0 0 auto; }
.fcrm-budget-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fcrm-budget-column {
    min-width: 0;
    padding: 19px;
    background: #fbfcfd;
    border: 1px solid var(--fcrm-line);
    border-radius: 16px;
}
.fcrm-budget-column.income { background: #f8fdfb; border-color: #d4ece1; }
.fcrm-budget-column > h3 { margin: 0 0 14px; color: var(--fcrm-ink); font-size: 17px; }
.fcrm-budget-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fcrm-budget-summary-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fcrm-budget-summary-grid article {
    display: grid;
    align-content: start;
    min-height: 108px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dfe8ed;
    border-radius: 12px;
}
.fcrm-budget-column.income .fcrm-budget-summary-grid article { border-color: #d3eadf; }
.fcrm-budget-summary-grid span { color: #536879; font-size: 11px; font-weight: 750; }
.fcrm-budget-summary-grid strong { margin: 5px 0; color: var(--fcrm-ink); font-size: 20px; }
.fcrm-budget-column.income .fcrm-budget-summary-grid strong { color: #247056; }
.fcrm-budget-summary-grid small { color: var(--fcrm-muted); font-size: 10px; line-height: 1.4; }
.fcrm-budget-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--fcrm-line);
}
.fcrm-budget-list-header strong,
.fcrm-budget-list-header small { display: block; }
.fcrm-budget-list-header strong { color: var(--fcrm-ink); font-size: 13px; }
.fcrm-budget-list-header small { margin-top: 2px; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-budget-list { display: grid; gap: 9px; margin-top: 12px; }
.fcrm-budget-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 11px;
}
.fcrm-budget-item div strong,
.fcrm-budget-item div small { display: block; }
.fcrm-budget-item div strong { color: var(--fcrm-ink); font-size: 12px; }
.fcrm-budget-item div small { margin-top: 3px; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-budget-item > strong { color: var(--fcrm-ink); font-size: 13px; white-space: nowrap; }
.fcrm-budget-item .fcrm-btn { min-width: 0; padding: 7px 9px; font-size: 10px; }

.fcrm-recurring-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fcrm-recurring-grid > .fcrm-card { position: relative; min-width: 0; }
.fcrm-recurring-add { margin: 0 0 16px; }
.fcrm-recurring-list { display: grid; gap: 10px; }
.fcrm-recurring-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
}
.fcrm-recurring-row.paused { opacity: .7; background: #f7f8f9; }
.fcrm-recurring-row > div:first-child strong,
.fcrm-recurring-row > div:first-child small { display: block; }
.fcrm-recurring-row > div:first-child strong { color: var(--fcrm-ink); font-size: 13px; }
.fcrm-recurring-row > div:first-child small { margin-top: 3px; color: var(--fcrm-muted); font-size: 10px; }
.fcrm-recurring-row > em { padding: 5px 8px; color: #247056; background: #e9f7f0; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; }
.fcrm-recurring-row.paused > em { color: #6e7780; background: #eceff1; }
.fcrm-recurring-row > div:last-child { display: flex; grid-column: 1 / -1; gap: 8px; justify-content: flex-end; }

.fcrm-period-picker {
    display: grid;
    grid-template-columns: auto minmax(140px, auto) 92px;
    align-items: center;
    gap: 9px;
    padding: 8px;
    background: #f5f8fa;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
}
.fcrm-therapist-finance-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
.fcrm-therapist-finance-toolbar .fcrm-period-picker { width: auto; }
.fcrm-period-picker > span { padding-left: 5px; color: #526879; font-size: 12px; font-weight: 800; }
.fcrm-period-picker select { min-height: 38px; }
.fcrm-therapist-month-summary .fcrm-period-picker {
    grid-template-columns: auto minmax(112px, 148px) 78px;
    max-width: 100%;
}
.fcrm-therapist-month-summary .fcrm-period-picker select {
    width: 100%;
    min-width: 0;
}
.fcrm-own-settlements { margin: 18px 0; overflow: hidden; }
.fcrm-own-settlements .fcrm-table { overflow-x: auto; }
.fcrm-own-settlement-table .fcrm-table-head,
.fcrm-own-settlement-table .fcrm-table-row {
    grid-template-columns: minmax(150px, 1.35fr) 90px 60px 70px 105px 110px 145px;
    gap: 9px;
    min-width: 820px;
    font-size: 12px;
}
.fcrm-own-settlement-table .fcrm-btn { width: 100%; min-width: 0; padding: 8px; font-size: 11px; white-space: normal; }

.fcrm-important-settlement-callout {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}
.fcrm-important-settlement-callout h2 { margin: 3px 0 4px; color: var(--fcrm-ink); font-size: 20px; }
.fcrm-important-settlement-callout p { margin: 0; color: var(--fcrm-muted); font-size: 13px; }
.fcrm-important-links-card { margin-top: 18px; }
.fcrm-profile-meet-setting { margin-bottom: 18px; }
.fcrm-important-links-list { display: grid; gap: 10px; }
.fcrm-important-links-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
    background: #f8fafb;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
}
.fcrm-important-links-list strong,
.fcrm-important-links-list small { display: block; }
.fcrm-important-links-list strong { color: var(--fcrm-ink); font-size: 14px; }
.fcrm-important-links-list small { max-width: 620px; margin-top: 4px; overflow-wrap: anywhere; color: var(--fcrm-muted); font-size: 11px; }

/* Aktualizacja #3 — korekta układu, cen sesji i zdarzeń administratora. */
.fcrm-settlement-section {
    padding: 22px;
    overflow: hidden;
}
.fcrm-settlement-section > .fcrm-section-head,
.fcrm-settlement-section > .fcrm-section-header { padding: 0; }
.fcrm-settlement-section .fcrm-table {
    margin-top: 17px;
    border: 1px solid var(--fcrm-line);
    border-radius: 14px;
}
.fcrm-settlement-table .fcrm-table-head,
.fcrm-settlement-table .fcrm-table-row {
    grid-template-columns:
        minmax(130px, 1.35fr)
        minmax(52px, .5fr)
        minmax(72px, .72fr)
        minmax(64px, .62fr)
        minmax(78px, .75fr)
        minmax(92px, .92fr)
        minmax(104px, 1fr)
        minmax(112px, 1fr)
        minmax(126px, 1.18fr);
    gap: 10px;
    width: 100%;
    min-width: 950px;
    padding-right: 16px;
    padding-left: 16px;
}
.fcrm-own-settlements { padding: 22px; }
.fcrm-own-settlements .fcrm-table {
    margin-top: 17px;
    border: 1px solid var(--fcrm-line);
    border-radius: 14px;
}
.fcrm-own-settlement-table .fcrm-table-head,
.fcrm-own-settlement-table .fcrm-table-row {
    grid-template-columns:
        minmax(135px, 1.35fr)
        minmax(82px, .82fr)
        minmax(52px, .5fr)
        minmax(64px, .62fr)
        minmax(82px, .78fr)
        minmax(100px, .95fr)
        minmax(112px, 1fr)
        minmax(132px, 1.2fr);
    gap: 11px;
    width: 100%;
    min-width: 870px;
    padding-right: 15px;
    padding-left: 15px;
}
.fcrm-therapist-patients {
    padding: 22px;
    overflow: hidden;
}
.fcrm-therapist-patients-header { gap: 22px; }
.fcrm-therapist-patient-filter { margin: 17px 0; }
.fcrm-therapist-patients .fcrm-table {
    overflow-x: auto;
    border: 1px solid var(--fcrm-line);
    border-radius: 14px;
}
.fcrm-month-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fcrm-therapist-admin-side { justify-content: flex-end; }
.fcrm-therapist-admin-actions { margin-top: 0; }

.fcrm-session-price-card { position: relative; padding-right: 62px; }
.fcrm-stat-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    color: var(--fcrm-blue);
    background: #eef7fc;
    border: 1px solid #cfe4f0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.fcrm-stat-edit:hover { color: var(--fcrm-blue); background: #eef7fc; }

.fcrm-budget-header-actions,
.fcrm-admin-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.fcrm-recurring-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    margin-bottom: 18px;
}
.fcrm-recurring-section-head h2 { margin: 0 0 5px; color: var(--fcrm-ink); font-size: 19px; }
.fcrm-recurring-section-head p { margin: 0; color: var(--fcrm-muted); font-size: 11px; line-height: 1.45; }
.fcrm-recurring-section-head .fcrm-recurring-add { margin: 0; justify-self: end; }

.fcrm-activity-list { display: grid; gap: 9px; }
.fcrm-activity-row {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 14px;
    text-align: left;
    background: #f9fbfc;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
    cursor: pointer;
}
.fcrm-activity-row:hover { color: inherit; background: #f9fbfc; }
.fcrm-activity-row > span strong,
.fcrm-activity-row > span small { display: block; }
.fcrm-activity-row > span strong { color: var(--fcrm-ink); font-size: 13px; }
.fcrm-activity-row > span small { margin-top: 3px; color: var(--fcrm-muted); font-size: 11px; line-height: 1.4; }
.fcrm-activity-date { padding-right: 13px; border-right: 1px solid var(--fcrm-line); }
.fcrm-activity-page { margin-top: 18px; }
.fcrm-important-settlement-callout { margin-top: 18px; }
.fcrm-admin-details-button { margin-top: 18px; }
.fcrm-message-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.fcrm-message-section-heading h2 { margin: 0 0 5px; color: var(--fcrm-ink); font-size: 19px; }
.fcrm-message-section-heading p { margin: 0; color: var(--fcrm-muted); font-size: 13px; }
.fcrm-message-more { display: flex; margin: 18px auto 0; }
.fcrm-team-messages-hero,
.fcrm-patient-admin-messages { margin-top: 20px; }
.fcrm-weekly-summary-list { display: grid; gap: 9px; margin-top: 20px; }
.fcrm-weekly-summary-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    background: #f8fafc;
    border: 1px solid var(--fcrm-line);
    border-radius: 11px;
}
.fcrm-weekly-summary-list > div > span { color: var(--fcrm-blue); font-size: 18px; text-align: center; }
.fcrm-weekly-summary-list small { color: var(--fcrm-muted); font-size: 13px; }
.fcrm-weekly-summary-list strong { color: var(--fcrm-ink); font-size: 14px; }
.fcrm-journal-actions { display: flex; align-items: center; gap: 8px; }
.fcrm-journal-actions .fcrm-journal-action {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
}
.fcrm-shell .fcrm-journal-actions .fcrm-journal-action:hover,
.fcrm-shell .fcrm-journal-actions .fcrm-journal-action:focus {
    color: var(--fcrm-ink) !important;
    background: #fff !important;
    border-color: var(--fcrm-line) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.fcrm-message-section-heading .fcrm-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1100px) {
    .fcrm-month-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .fcrm-budget-header,
    .fcrm-recurring-section-head { grid-template-columns: 1fr; flex-direction: column; }
    .fcrm-budget-header-actions,
    .fcrm-admin-hero-actions { justify-content: flex-start; }
    .fcrm-recurring-section-head .fcrm-recurring-add { justify-self: start; }
    .fcrm-activity-row { grid-template-columns: 1fr auto; }
    .fcrm-activity-date { grid-column: 1 / -1; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--fcrm-line); }
    .fcrm-month-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fcrm-message-section-heading { flex-direction: column; }
}

@media (max-width: 1100px) {
    .fcrm-funds-grid { width: 100%; min-width: 0; }
    .fcrm-budget-columns,
    .fcrm-recurring-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .fcrm-settlements-toolbar { grid-template-columns: 1fr; }
    .fcrm-toolbar-back { justify-self: start; }
    .fcrm-period-picker { grid-template-columns: 1fr 1fr; width: 100%; }
    .fcrm-period-picker > span { grid-column: 1 / -1; }
    .fcrm-budget-header,
    .fcrm-budget-list-header,
    .fcrm-important-links-list article { align-items: stretch; flex-direction: column; }
    .fcrm-budget-summary-grid,
    .fcrm-budget-summary-grid.three { grid-template-columns: 1fr; }
    .fcrm-budget-item { grid-template-columns: minmax(0, 1fr) auto; }
    .fcrm-budget-item .fcrm-btn { grid-column: 1 / -1; width: 100%; }
    .fcrm-important-settlement-callout { grid-template-columns: 12px minmax(0, 1fr); }
    .fcrm-important-settlement-callout .fcrm-btn { grid-column: 1 / -1; }
}

/* Mobile layout audit — final rules intentionally live at the end of the file. */
@media (max-width: 760px) {
    .fcrm-demo-body,
    .fcrm-shell,
    .fcrm-app-layout,
    .fcrm-main,
    .fcrm-content,
    .fcrm-card,
    .fcrm-table-card,
    .fcrm-toolbar,
    .fcrm-grid,
    .fcrm-document-filters {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .fcrm-demo-body,
    .fcrm-shell { overflow-x: hidden; }

    .fcrm-shell img,
    .fcrm-shell svg,
    .fcrm-shell input,
    .fcrm-shell select,
    .fcrm-shell textarea,
    .fcrm-shell button,
    .fcrm-shell a { max-width: 100%; }

    .fcrm-shell p,
    .fcrm-shell small,
    .fcrm-shell strong,
    .fcrm-shell a,
    .fcrm-shell button { overflow-wrap: anywhere; }

    .fcrm-main { padding-right: 12px; padding-left: 12px; }
    .fcrm-card,
    .fcrm-settlement-section,
    .fcrm-own-settlements,
    .fcrm-therapist-patients { padding: 16px; }

    .fcrm-toolbar,
    .fcrm-toolbar-list,
    .fcrm-finance-toolbar,
    .fcrm-settlements-toolbar,
    .fcrm-therapist-finance-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .fcrm-toolbar > *,
    .fcrm-toolbar > :last-child,
    .fcrm-toolbar-list > *,
    .fcrm-toolbar-actions,
    .fcrm-application-preview-actions,
    .fcrm-document-filters,
    .fcrm-document-filters label {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        justify-self: stretch;
    }

    .fcrm-toolbar-list .fcrm-search { flex: 0 0 auto; }

    .fcrm-toolbar-actions,
    .fcrm-application-preview-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fcrm-toolbar-actions .fcrm-btn,
    .fcrm-application-preview-actions .fcrm-btn,
    .fcrm-toolbar-back { width: 100% !important; }

    .fcrm-filter {
        display: flex;
        width: 100%;
        min-width: 0;
        padding-bottom: 3px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .fcrm-filter > button { flex: 0 0 auto; white-space: nowrap; }

    .fcrm-segment {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100% !important;
        min-width: 0;
    }

    .fcrm-document-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fcrm-calendar-nav {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        width: 100%;
    }

    .fcrm-calendar-nav strong { min-width: 0; text-align: center; }

    .fcrm-table { max-width: 100%; }

    .fcrm-patient-table .fcrm-table-head,
    .fcrm-waitlist-table .fcrm-table-head,
    .fcrm-therapist-patient-table .fcrm-table-head,
    .fcrm-settlement-table .fcrm-table-head,
    .fcrm-own-settlement-table .fcrm-table-head { display: none; }

    .fcrm-patient-table .fcrm-table-row,
    .fcrm-waitlist-table .fcrm-table-row,
    .fcrm-therapist-patient-table .fcrm-table-row,
    .fcrm-settlement-table .fcrm-table-row,
    .fcrm-own-settlement-table .fcrm-table-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        min-width: 0;
        margin: 0 0 12px;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--fcrm-line);
        border-radius: 13px;
        box-sizing: border-box;
        text-align: left;
    }

    .fcrm-patient-table .fcrm-table-row > span,
    .fcrm-waitlist-table .fcrm-table-row > span,
    .fcrm-therapist-patient-table .fcrm-table-row > span,
    .fcrm-settlement-table .fcrm-table-row > span,
    .fcrm-own-settlement-table .fcrm-table-row > span {
        min-width: 0;
        padding: 9px;
        background: #f8fafb;
        border-radius: 9px;
    }

    .fcrm-patient-table .fcrm-table-row > span:first-child,
    .fcrm-patient-table .fcrm-table-row > span:nth-child(2),
    .fcrm-waitlist-table .fcrm-table-row > span:first-child,
    .fcrm-waitlist-table .fcrm-table-row > span:nth-child(2),
    .fcrm-therapist-patient-table .fcrm-table-row > span:first-child,
    .fcrm-therapist-patient-table .fcrm-table-row > span:nth-child(2),
    .fcrm-settlement-table .fcrm-table-row > span:first-child,
    .fcrm-own-settlement-table .fcrm-table-row > span:first-child {
        grid-column: 1 / -1;
    }

    .fcrm-patient-table .fcrm-row-arrow,
    .fcrm-waitlist-table .fcrm-row-arrow,
    .fcrm-therapist-patient-table .fcrm-row-arrow {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .fcrm-table-row > span > strong,
    .fcrm-table-row > span > small {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .fcrm-settlement-table .fcrm-table-row .fcrm-btn,
    .fcrm-own-settlement-table .fcrm-table-row .fcrm-btn {
        width: 100%;
        min-height: 42px;
        white-space: normal;
    }

    .fcrm-modal-backdrop { padding: 0; }
    .fcrm-modal {
        top: 10px;
        right: 10px;
        bottom: auto;
        left: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 20px 16px;
        overflow-y: auto;
        box-sizing: border-box;
        transform: none;
        animation: fcrm-fade .18s ease;
    }

    .fcrm-modal-actions,
    .fcrm-payment-actions,
    .fcrm-payment-request-state {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .fcrm-modal-actions .fcrm-btn,
    .fcrm-payment-actions .fcrm-btn,
    .fcrm-payment-request-state .fcrm-btn { width: 100%; min-width: 0; }

    .fcrm-modal-actions-split { display: grid; grid-template-columns: 1fr; }
    .fcrm-modal-actions-group { display: grid; grid-template-columns: 1fr; gap: 9px; }

    .fcrm-waitlist-intro,
    .fcrm-month-metrics,
    .fcrm-profile-data-grid,
    .fcrm-detail-list { grid-template-columns: 1fr; }

    .fcrm-activity-row { padding: 12px; }
    .fcrm-activity-row > span { min-width: 0; }
    .fcrm-important-links-list article,
    .fcrm-message-section-heading { align-items: stretch; }
}

@media (max-width: 430px) {
    .fcrm-topbar { gap: 8px; }
    .fcrm-user-meta { display: none; }
    .fcrm-main { padding-right: 9px; padding-left: 9px; }
    .fcrm-card { padding: 14px; }

    .fcrm-patient-table .fcrm-table-row,
    .fcrm-waitlist-table .fcrm-table-row,
    .fcrm-therapist-patient-table .fcrm-table-row,
    .fcrm-settlement-table .fcrm-table-row,
    .fcrm-own-settlement-table .fcrm-table-row {
        grid-template-columns: 1fr;
        padding: 11px;
    }

    .fcrm-patient-table .fcrm-table-row > span,
    .fcrm-waitlist-table .fcrm-table-row > span,
    .fcrm-therapist-patient-table .fcrm-table-row > span,
    .fcrm-settlement-table .fcrm-table-row > span,
    .fcrm-own-settlement-table .fcrm-table-row > span { grid-column: 1; }
}

/* Branded WooCommerce order-pay view used only by CRM session orders. */
.fcrm-payment-page .woocommerce {
    width: min(720px, calc(100% - 32px));
    margin: 36px auto;
    padding: 28px;
    color: #17324d;
    background: #fff;
    border: 1px solid #dfe8ef;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(23, 50, 77, .1);
    box-sizing: border-box;
}

.fcrm-payment-page .woocommerce button.button,
.fcrm-payment-page .woocommerce #place_order {
    min-height: 46px;
    padding: 12px 20px;
    color: #fff;
    background: #277dc1;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
}

.fcrm-payment-page .woocommerce button.button:hover,
.fcrm-payment-page .woocommerce button.button:focus,
.fcrm-payment-page .woocommerce #place_order:hover,
.fcrm-payment-page .woocommerce #place_order:focus {
    color: #fff;
    background: #277dc1;
}

@media (max-width: 600px) {
    .fcrm-payment-page .woocommerce {
        width: calc(100% - 18px);
        margin: 14px auto;
        padding: 18px 14px;
    }
}

/* 0.14.1: stabilny układ pulpitu pacjenta i czytelne wiadomości zespołu. */
@media (min-width: 1101px) {
    .fcrm-patient-hero {
        display: grid;
        grid-template-columns: minmax(280px, 1fr) minmax(360px, 600px);
        align-items: stretch;
        gap: 24px;
    }

    .fcrm-patient-hero-cards {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .fcrm-patient-hero-cards > :only-child { grid-column: 1 / -1; }
}

.fcrm-team-participants {
    display: block;
    margin-top: 5px;
    color: var(--fcrm-muted);
    font-size: 13px;
    line-height: 1.45;
}

.fcrm-messages-hero .fcrm-team-participants {
    color: rgba(255, 255, 255, .88);
}

@media (max-width: 700px) {
    .fcrm-grid-documents {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        min-width: 0;
    }

    .fcrm-grid-documents > *,
    .fcrm-grid-documents .fcrm-card {
        grid-column: 1 !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .fcrm-grid-documents .fcrm-inline-actions,
    .fcrm-grid-documents .fcrm-document-actions,
    .fcrm-grid-documents .fcrm-modal-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 8px;
    }

    .fcrm-grid-documents .fcrm-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .fcrm-profile-hero .fcrm-profile-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        min-width: 0;
        gap: 9px;
    }

    .fcrm-profile-hero .fcrm-profile-actions > *,
    .fcrm-profile-hero .fcrm-profile-actions .fcrm-btn,
    .fcrm-profile-hero .fcrm-profile-actions label {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }

    .fcrm-profile-hero .fcrm-profile-actions label {
        display: grid;
        justify-items: center;
        gap: 5px;
    }

    .fcrm-profile-hero .fcrm-profile-actions select {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .fcrm-patient-hero {
        display: block;
    }

    .fcrm-patient-hero-cards {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        margin: 18px 0 0;
    }

    .fcrm-message-section-heading .fcrm-inline-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .fcrm-message-section-heading .fcrm-inline-actions .fcrm-btn {
        width: 100%;
    }
}

/* Stałe zasady mobilne: pełne wyrazy, równe pola terminów i niezależny układ pulpitu. */
@media (max-width: 760px) {
    .fcrm-shell button,
    .fcrm-shell .fcrm-btn,
    .fcrm-shell .fcrm-list-date,
    .fcrm-shell .fcrm-list-time,
    .fcrm-shell .fcrm-date-tile strong {
        overflow-wrap: normal;
        word-break: normal;
    }

    .fcrm-list-datetime {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }

    .fcrm-list-date,
    .fcrm-list-time {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 6px;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .fcrm-appointment {
        grid-template-columns: 70px 34px minmax(0, 1fr) 25px;
    }

    .fcrm-date-tile { width: 70px; min-width: 70px; }
    .fcrm-date-tile strong { white-space: nowrap; }

    .fcrm-form[data-form="appointment-delete"] .fcrm-form-actions {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: stretch;
        gap: 9px;
        width: 100%;
    }

    .fcrm-form[data-form="appointment-delete"] .fcrm-form-actions .fcrm-btn {
        min-width: 0;
        padding-right: 11px;
        padding-left: 11px;
        overflow-wrap: normal;
        word-break: normal;
        white-space: nowrap;
    }

    .fcrm-welcome-admin {
        align-items: stretch;
        flex-direction: column;
    }

    .fcrm-welcome-admin .fcrm-admin-hero-actions {
        justify-content: stretch;
        width: 100%;
        margin-top: 10px;
    }

    .fcrm-welcome-admin .fcrm-admin-hero-actions .fcrm-btn { width: 100%; }

    .fcrm-patient-table .fcrm-row-arrow,
    .fcrm-waitlist-table .fcrm-row-arrow,
    .fcrm-therapist-patient-table .fcrm-row-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 42px;
        padding: 9px 12px;
        color: var(--fcrm-blue-dark);
        background: var(--fcrm-blue-soft);
        border: 1px solid #cfe3ef;
        border-radius: 9px;
        box-sizing: border-box;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
    }

    .fcrm-row-arrow-icon,
    .fcrm-risk-desktop { display: none; }
    .fcrm-row-mobile-label,
    .fcrm-risk-mobile { display: inline; }

    .fcrm-waitlist-table .fcrm-risk-badge {
        width: 100%;
        max-width: 100%;
        padding: 8px 9px;
        box-sizing: border-box;
        text-align: center;
        overflow-wrap: normal;
        word-break: normal;
    }
}

@media (max-width: 360px) {
    .fcrm-form[data-form="appointment-delete"] .fcrm-form-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .fcrm-form[data-form="appointment-delete"] .fcrm-form-actions .fcrm-btn { width: 100%; }
}

/* Aktualizacja 4: formularz ZUS/Wynagrodzenia i kalkulator umów-zlecenia. */
.fcrm-compensation-questionnaire-shell {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.fcrm-compensation-questionnaire-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 26px 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--fcrm-blue-dark), var(--fcrm-blue));
    border-radius: 18px;
}

.fcrm-compensation-questionnaire-hero h1,
.fcrm-compensation-questionnaire-hero p { margin: 0; }
.fcrm-compensation-questionnaire-hero .fcrm-kicker { font-size: 14px; }
.fcrm-compensation-questionnaire-hero h1 { margin-top: 5px; font-size: 25px; }
.fcrm-compensation-questionnaire-hero p { max-width: 700px; margin-top: 8px; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.55; }

.fcrm-questionnaire-status {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.fcrm-questionnaire-status.complete { color: #d7f8e2; background: rgba(39,174,96,.18); }
.fcrm-questionnaire-status.draft { color: #fff0c2; background: rgba(255,179,0,.16); }

.fcrm-compensation-choice-card,
.fcrm-compensation-placeholder {
    width: min(100%, 900px);
    margin: 0 auto;
}
.fcrm-compensation-choice-card h1 { margin: 8px 0 10px; font-size: clamp(22px, 3vw, 32px); }
.fcrm-compensation-choice-card > p,
.fcrm-compensation-placeholder > p { color: var(--fcrm-muted); line-height: 1.6; }
.fcrm-compensation-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0 22px;
}
.fcrm-compensation-choice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 12px;
    min-height: 132px;
    padding: 20px;
    color: var(--fcrm-ink);
    text-align: left;
    background: #fff;
    border: 1px solid var(--fcrm-line);
    border-radius: 14px;
    cursor: pointer;
}
.fcrm-compensation-choice > span { grid-row: 1 / span 2; color: var(--fcrm-blue); font-size: 22px; font-weight: 900; }
.fcrm-compensation-choice strong { align-self: end; font-size: 17px; }
.fcrm-compensation-choice small { color: var(--fcrm-muted); font-size: 12px; line-height: 1.45; }
.fcrm-compensation-choice:hover,
.fcrm-compensation-choice:focus { color: var(--fcrm-ink); background: #fff; border-color: var(--fcrm-line); box-shadow: none; transform: none; }

.fcrm-compensation-questionnaire-form {
    display: block;
    width: 100%;
}
.fcrm-questionnaire-section {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 26px;
}
.fcrm-questionnaire-section > label,
.fcrm-questionnaire-section .fcrm-employment-row {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
    color: var(--fcrm-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}
.fcrm-questionnaire-section > label:last-child { margin-bottom: 0; }
.fcrm-compensation-questionnaire-form input,
.fcrm-compensation-questionnaire-form select,
.fcrm-compensation-questionnaire-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}
.fcrm-compensation-questionnaire-form textarea { min-height: 120px; }
.fcrm-compensation-questionnaire-form small,
.fcrm-compensation-questionnaire-form .fcrm-btn,
.fcrm-compensation-questionnaire-shell .fcrm-back-button { font-size: 14px; }
.fcrm-questionnaire-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fcrm-line);
}
.fcrm-questionnaire-section-title > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--fcrm-blue-dark);
    background: var(--fcrm-blue-soft);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
}
.fcrm-questionnaire-section-title h2,
.fcrm-questionnaire-section-title p { margin: 0; }
.fcrm-questionnaire-section-title h2 { font-size: 20px; }
.fcrm-questionnaire-section-title p { margin-top: 4px; color: var(--fcrm-muted); font-size: 14px; line-height: 1.5; }
.fcrm-questionnaire-prompt { margin: 0 0 14px; color: var(--fcrm-ink); font-size: 14px; font-weight: 800; line-height: 1.55; }

.fcrm-repeatable-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 12px;
    padding: 15px;
    background: #f7fafc;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
}
.fcrm-repeatable-row > label {
    display: block;
    min-width: 0;
    color: var(--fcrm-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}
.fcrm-employment-row { margin-bottom: 14px; }
.fcrm-radio-fieldset {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--fcrm-line);
    border-radius: 12px;
}
.fcrm-radio-fieldset legend {
    padding: 0 6px;
    color: var(--fcrm-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}
.fcrm-radio-fieldset label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: fit-content;
    margin: 0;
    color: var(--fcrm-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.fcrm-radio-fieldset input[type="radio"] {
    width: 17px !important;
    min-width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--fcrm-blue);
}
.fcrm-student-section,
.fcrm-student-details { margin-top: 8px; }
.fcrm-student-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.fcrm-student-section[hidden],
.fcrm-student-details[hidden] { display: none; }
.fcrm-compensation-questionnaire-form.is-readonly input:disabled,
.fcrm-compensation-questionnaire-form.is-readonly textarea:disabled {
    color: var(--fcrm-ink);
    opacity: 1;
    background: #f7fafc;
    border-color: var(--fcrm-line);
    -webkit-text-fill-color: var(--fcrm-ink);
}
.fcrm-questionnaire-actions { display: flex; justify-content: flex-end; gap: 10px; }

.fcrm-compensation-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 18px;
    background: #f4f9fc;
    border: 1px solid #d6e7f0;
    border-radius: 13px;
}
.fcrm-compensation-profile-card strong,
.fcrm-compensation-profile-card p { display: block; margin: 0; }
.fcrm-compensation-profile-card strong { margin-top: 3px; font-size: 15px; }
.fcrm-compensation-profile-card p { max-width: 650px; margin-top: 5px; color: var(--fcrm-muted); font-size: 12px; line-height: 1.5; }
.fcrm-compensation-profile-card .fcrm-btn { flex: 0 0 auto; white-space: nowrap; }

.fcrm-settlement-payroll-details,
.fcrm-settlement-payroll-missing {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding: 12px;
    background: #f7fafc;
    border: 1px solid var(--fcrm-line);
    border-radius: 10px;
}
.fcrm-settlement-payroll-details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.fcrm-settlement-payroll-details span { min-width: 0; padding: 13px; background: #fff; border: 1px solid var(--fcrm-line); border-radius: 9px; }
.fcrm-settlement-payroll-details small,
.fcrm-settlement-payroll-details strong { display: block; }
.fcrm-settlement-payroll-details small { color: var(--fcrm-ink); font-size: 13px; font-weight: 800; line-height: 1.35; }
.fcrm-settlement-payroll-details strong { margin-top: 7px; font-size: 13px; font-weight: 400; white-space: nowrap; }
.fcrm-settlement-payroll-details em { display: block; margin-top: 6px; color: #8a5a00; font-size: 11px; font-style: normal; line-height: 1.35; }
.fcrm-settlement-payroll-missing { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--fcrm-muted); font-size: 13px; }

.fcrm-therapist-settlement-card { margin-bottom: 16px; }
.fcrm-therapist-settlement-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.fcrm-therapist-settlement-header h2 { margin: 4px 0; font-size: 20px; }
.fcrm-therapist-settlement-header p { margin: 0; color: var(--fcrm-muted); font-size: 13px; line-height: 1.5; }
.fcrm-therapist-settlement-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.fcrm-business-month-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fcrm-invoice-stat .fcrm-text-button { margin-top: 7px; }
.fcrm-invoice-modal { width: min(94vw, 980px); }
.fcrm-invoice-modal iframe { width: 100%; height: min(68vh, 720px); margin: 14px 0; background: #f5f7f9; border: 1px solid var(--fcrm-line); border-radius: 12px; }
.fcrm-modal-actions-between { justify-content: space-between; }
.fcrm-admin-settlement-history { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--fcrm-line); }
.fcrm-admin-history-table { overflow-x: auto; border: 1px solid var(--fcrm-line); border-radius: 12px; }
.fcrm-admin-history-table .fcrm-table-head,
.fcrm-admin-history-table .fcrm-table-row { grid-template-columns: minmax(105px, 1fr) 60px 70px 100px 120px 145px; min-width: 650px; gap: 9px; }
.fcrm-admin-history-table .fcrm-btn { width: 100%; min-width: 0; font-size: 11px; white-space: normal; }

.fcrm-compensation-workbook-card { margin-top: 20px; }
.fcrm-compensation-workbook-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.fcrm-compensation-workbook-header h2,
.fcrm-compensation-workbook-header p { margin: 0; }
.fcrm-compensation-workbook-header h2 { margin-top: 5px; font-size: 19px; }
.fcrm-compensation-workbook-header p { max-width: 700px; margin-top: 5px; color: var(--fcrm-muted); font-size: 12px; }
.fcrm-compensation-workbook-header > label {
    display: grid;
    grid-template-columns: 150px auto;
    align-items: end;
    gap: 8px;
    flex: 0 0 auto;
    font-size: 11px;
}
.fcrm-compensation-workbook-header > label input { grid-column: 1; min-width: 0; }
.fcrm-compensation-workbook-header > label .fcrm-btn { grid-column: 2; grid-row: 1 / span 2; }
.fcrm-compensation-workbook-scroll { overflow-x: auto; }
.fcrm-compensation-workbook-table { min-width: 1180px; border: 1px solid #b9c3ca; border-radius: 10px; overflow: hidden; }
.fcrm-compensation-workbook-row {
    display: grid;
    grid-template-columns: 300px repeat(5, minmax(170px, 1fr));
    background: #fff;
    border-bottom: 1px solid #c7d0d6;
}
.fcrm-compensation-workbook-row:last-child { border-bottom: 0; }
.fcrm-compensation-workbook-row > span,
.fcrm-compensation-workbook-row > strong {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    padding: 7px 10px;
    border-right: 1px solid #c7d0d6;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.35;
}
.fcrm-compensation-workbook-row > :last-child { border-right: 0; }
.fcrm-compensation-workbook-row > strong { justify-content: flex-end; text-align: right; font-weight: 600; }
.fcrm-compensation-workbook-row.title > strong { grid-column: 1 / -1; justify-content: center; font-size: 16px; }
.fcrm-compensation-workbook-row.scenarios > span { justify-content: center; color: #17324d; background: #72b145; font-size: 16px; font-weight: 900; }
.fcrm-compensation-workbook-row.scenarios > strong { justify-content: center; min-height: 98px; text-align: center; white-space: normal; }
.fcrm-compensation-workbook-row.emphasis > span,
.fcrm-compensation-workbook-row.emphasis > strong { font-weight: 900; }

@media (max-width: 900px) {
    .fcrm-compensation-questionnaire-hero,
    .fcrm-compensation-workbook-header { align-items: stretch; flex-direction: column; }
    .fcrm-compensation-workbook-header > label { width: min(100%, 360px); }
    .fcrm-settlement-payroll-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fcrm-therapist-settlement-header { align-items: stretch; flex-direction: column; }
    .fcrm-therapist-settlement-actions { flex-wrap: wrap; }
}

@media (max-width: 700px) {
    .fcrm-compensation-choice-grid,
    .fcrm-repeatable-row,
    .fcrm-student-details { grid-template-columns: minmax(0, 1fr); }
    .fcrm-compensation-questionnaire-hero { padding: 20px 17px; }
    .fcrm-questionnaire-status { align-self: flex-start; }
    .fcrm-compensation-profile-card,
    .fcrm-settlement-payroll-missing { align-items: stretch; flex-direction: column; }
    .fcrm-compensation-profile-card .fcrm-btn,
    .fcrm-settlement-payroll-missing .fcrm-btn { width: 100%; }
    .fcrm-questionnaire-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .fcrm-questionnaire-actions .fcrm-btn { width: 100%; white-space: normal; word-break: normal; overflow-wrap: normal; }
    .fcrm-therapist-settlement-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .fcrm-therapist-settlement-actions .fcrm-btn { width: 100%; white-space: normal; }
    .fcrm-business-month-metrics { grid-template-columns: minmax(0, 1fr); }
    .fcrm-compensation-workbook-header > label { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .fcrm-compensation-workbook-header > label .fcrm-btn { grid-column: 1; grid-row: auto; width: 100%; }
}

@media (max-width: 430px) {
    .fcrm-compensation-choice { grid-template-columns: 36px minmax(0, 1fr); padding: 16px; }
    .fcrm-questionnaire-section { padding: 18px; }
    .fcrm-settlement-payroll-details { grid-template-columns: minmax(0, 1fr); }
}

/* Bramka dostępu do danych klinicznych — TOTP i kody odzyskiwania. */
.fcrm-shell.fcrm-security-active {
    display: block;
    min-height: 100vh;
}

.fcrm-security-shell {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    color: var(--fcrm-ink);
    background:
        radial-gradient(circle at 12% 15%, rgba(40, 126, 193, .12), transparent 34%),
        radial-gradient(circle at 88% 85%, rgba(244, 204, 34, .13), transparent 30%),
        var(--fcrm-bg);
}

.fcrm-security-card {
    width: min(100%, 620px);
    padding: 34px;
    background: var(--fcrm-white);
    border: 1px solid var(--fcrm-line);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(27, 63, 91, .12);
}

.fcrm-security-logo {
    display: block;
    width: min(100%, 270px);
    height: 76px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.fcrm-security-user {
    margin: 0 0 24px;
    color: var(--fcrm-muted);
    font-size: 14px;
    text-align: center;
}

.fcrm-security-user strong { color: var(--fcrm-ink); font-weight: 700; }

.fcrm-security-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.fcrm-security-intro.compact { margin-bottom: 20px; }

.fcrm-security-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 13px;
    color: var(--fcrm-blue-dark);
    background: var(--fcrm-blue-soft);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}

.fcrm-security-icon.success { color: #216f55; background: var(--fcrm-green-soft); }
.fcrm-security-icon.danger { color: #a63131; background: #fff0f0; }
.fcrm-security-intro .fcrm-kicker { color: var(--fcrm-blue-dark); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fcrm-security-intro h1 { margin: 7px 0 9px; font-size: clamp(24px, 5vw, 31px); line-height: 1.2; }
.fcrm-security-intro p { max-width: 510px; margin: 0; color: #52677a; font-size: 15px; line-height: 1.65; }

.fcrm-security-steps {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
}

.fcrm-security-steps > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f7fafc;
    border: 1px solid #e8eef3;
    border-radius: 12px;
}

.fcrm-security-steps span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--fcrm-blue-dark);
    background: var(--fcrm-blue-soft);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.fcrm-security-steps p { margin: 0; color: #42596d; font-size: 14px; line-height: 1.5; }

.fcrm-security-secret {
    margin-bottom: 20px;
    padding: 18px;
    background: #f7fafc;
    border: 1px solid var(--fcrm-line);
    border-radius: 14px;
    text-align: center;
}

.fcrm-security-secret > small { display: block; margin-bottom: 8px; color: var(--fcrm-muted); font-size: 13px; }
.fcrm-security-secret > code {
    display: block;
    padding: 11px 12px;
    color: #17324d;
    background: #fff;
    border: 1px solid #cbdce8;
    border-radius: 9px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(15px, 4vw, 19px);
    font-weight: 750;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}

.fcrm-security-secret > p { margin: 11px 0 0; color: var(--fcrm-muted); font-size: 13px; }
.fcrm-security-secret-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

.fcrm-security-form { display: grid; gap: 15px; }
.fcrm-security-form-copy h2 { margin: 0 0 4px; font-size: 18px; }
.fcrm-security-form-copy p { margin: 0; color: var(--fcrm-muted); font-size: 14px; line-height: 1.55; }
.fcrm-security-form label { display: grid; gap: 8px; color: var(--fcrm-ink); font-size: 14px; font-weight: 750; }
.fcrm-security-form input {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    color: var(--fcrm-ink);
    background: #fff;
    border: 1px solid #bfcfda;
    border-radius: 10px;
    font-size: 17px;
    outline: none;
}

.fcrm-security-form input[name="code"][inputmode="numeric"] {
    height: 64px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .34em;
    text-align: center;
}

.fcrm-security-form input:focus { border-color: var(--fcrm-blue); box-shadow: 0 0 0 3px rgba(40, 126, 193, .14); }

.fcrm-security-feedback {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 13px;
    border: 1px solid;
    border-radius: 11px;
}

.fcrm-security-feedback span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: 13px; font-weight: 850; }
.fcrm-security-feedback p { margin: 0; font-size: 14px; line-height: 1.45; }
.fcrm-security-feedback.error { color: #8e3030; background: #fff3f3; border-color: #f0caca; }
.fcrm-security-feedback.error span { color: #fff; background: #c94f4f; }
.fcrm-security-feedback.success { color: #236a52; background: #eef9f5; border-color: #c6e7da; }
.fcrm-security-feedback.success span { color: #fff; background: var(--fcrm-green); }

.fcrm-security-attempts { margin: 13px 0 0; color: #66798b; font-size: 13px; line-height: 1.55; text-align: center; }
.fcrm-security-attempts strong { color: var(--fcrm-ink); }

.fcrm-security-text-button {
    display: block;
    width: 100%;
    margin: 16px 0 0;
    padding: 4px;
    color: var(--fcrm-blue-dark);
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
}

.fcrm-security-recovery-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.fcrm-security-recovery-list li { min-width: 0; padding: 11px; background: #f7fafc; border: 1px solid var(--fcrm-line); border-radius: 9px; text-align: center; }
.fcrm-security-recovery-list code { color: var(--fcrm-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 750; overflow-wrap: anywhere; }

.fcrm-security-warning,
.fcrm-security-lock-info {
    margin-bottom: 18px;
    padding: 14px 15px;
    background: var(--fcrm-yellow-soft);
    border: 1px solid #edda78;
    border-radius: 11px;
}

.fcrm-security-warning strong { display: block; margin-bottom: 3px; font-size: 14px; }
.fcrm-security-warning p { margin: 0; color: #655b32; font-size: 14px; line-height: 1.5; }
.fcrm-security-lock-info { display: grid; gap: 3px; text-align: center; }
.fcrm-security-lock-info small { color: #766b3d; font-size: 13px; }
.fcrm-security-lock-info strong { color: #453d1d; font-size: 16px; }
.fcrm-security-actions { display: flex; justify-content: flex-end; gap: 10px; }

.fcrm-security-card footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 18px;
    color: var(--fcrm-muted);
    border-top: 1px solid var(--fcrm-line);
    text-align: center;
}

.fcrm-security-card footer > span { color: var(--fcrm-green); font-size: 12px; }
.fcrm-security-card footer p { margin: 0; font-size: 12px; line-height: 1.45; }

/* Wygląd nie zmienia się po najechaniu. */
.fcrm-security-card .fcrm-btn:hover,
.fcrm-security-card .fcrm-btn:focus { filter: none !important; transform: none !important; }
.fcrm-security-card .fcrm-btn-primary:hover { color: #fff !important; background: var(--fcrm-blue) !important; box-shadow: 0 6px 14px rgba(40, 126, 193, .18) !important; }
.fcrm-security-card .fcrm-btn-secondary:hover,
.fcrm-security-card .fcrm-btn-secondary:focus { color: var(--fcrm-ink) !important; background: #fff !important; border-color: var(--fcrm-line) !important; box-shadow: none !important; }
.fcrm-security-text-button:hover { color: var(--fcrm-blue-dark); background: transparent; }

@media (max-width: 640px) {
    .fcrm-security-shell { align-items: start; padding: 18px 12px; }
    .fcrm-security-card { padding: 23px 17px; border-radius: 17px; }
    .fcrm-security-logo { height: 64px; }
    .fcrm-security-user { margin-bottom: 20px; overflow-wrap: anywhere; }
    .fcrm-security-intro h1 { font-size: 25px; }
    .fcrm-security-intro p { font-size: 14px; }
    .fcrm-security-secret-actions,
    .fcrm-security-actions { align-items: stretch; flex-direction: column; }
    .fcrm-security-secret-actions .fcrm-btn,
    .fcrm-security-actions .fcrm-btn { width: 100%; white-space: normal; word-break: normal; overflow-wrap: normal; }
    .fcrm-security-recovery-list { grid-template-columns: minmax(0, 1fr); }
    .fcrm-security-form input[name="code"][inputmode="numeric"] { padding-right: 7px; padding-left: 14px; font-size: 27px; letter-spacing: .25em; }
}
