:root {
    --hs-primary: #c49352;
    --hs-primary-light: #ddb47f;
    --hs-primary-dark: #8c6433;
    --hs-accent: #d66d43;
    --hs-success: #8eb486;
    --hs-warning: #d3a24a;
    --hs-danger: #cf6b5d;
    --hs-info: #8ea7c7;
    --hs-surface: #17110e;
    --hs-surface-strong: #211814;
    --hs-surface-soft: #2a201a;
    --hs-surface-muted: #f4ede4;
    --hs-border: rgba(221, 180, 127, 0.18);
    --hs-border-strong: rgba(221, 180, 127, 0.32);
    --hs-text-primary: #f6ecdf;
    --hs-text-secondary: rgba(246, 236, 223, 0.72);
    --hs-text-muted: rgba(246, 236, 223, 0.48);
    --hs-text-dark: #261b16;
    --hs-radius: 28px;
    --hs-radius-sm: 16px;
    --hs-radius-xs: 12px;
    --hs-shadow-sm: 0 18px 36px rgba(0, 0, 0, 0.18);
    --hs-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    --hs-shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.16);
    --rz-primary: var(--hs-primary);
    --rz-secondary: #7f6a58;
    --rz-base-50: #fffaf5;
    --rz-base-100: #f7efe4;
    --rz-base-200: #eadbc8;
    --rz-base-300: #d8c1a6;
    --rz-base-400: #b79f84;
    --rz-base-500: #947960;
    --rz-base-600: #6e5645;
    --rz-base-700: #4b392e;
    --rz-base-800: #241b17;
    --rz-base-900: #16110e;
    --rz-text-color: var(--hs-text-primary);
    --rz-text-secondary-color: var(--hs-text-secondary);
    --rz-body-background-color: transparent;
    --rz-card-background-color: rgba(32, 24, 19, 0.88);
    --rz-panel-background-color: rgba(32, 24, 19, 0.88);
    --rz-grid-header-background-color: rgba(255, 250, 245, 0.04);
    --rz-input-background-color: rgba(255, 248, 239, 0.06);
    --rz-input-border-color: rgba(221, 180, 127, 0.2);
    --rz-outline-color: rgba(221, 180, 127, 0.35);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Trebuchet MS", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    color: var(--hs-text-primary);
    background:
        radial-gradient(circle at top left, rgba(214, 109, 67, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(221, 180, 127, 0.18), transparent 26%),
        linear-gradient(180deg, #1b1410 0%, #110d0b 48%, #0d0a08 100%);
}

body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.016) 0,
            rgba(255, 255, 255, 0.016) 1px,
            transparent 1px,
            transparent 120px
        );
    opacity: 0.45;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.rz-button:focus-visible,
.rz-textbox:focus-visible,
.rz-dropdown:focus-visible {
    outline: 3px solid rgba(21, 101, 192, 0.35);
    outline-offset: 2px;
}

/* ──────────────────────────────────────────────
   Validation
────────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #43a047;
}

.invalid {
    outline: 1px solid var(--hs-danger);
}

.validation-message {
    color: var(--hs-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.hs-field-error {
    display: block;
    color: var(--hs-danger);
    font-size: 0.8125rem;
    margin-top: 0.2rem;
    padding-left: 0.25rem;
}

/* ──────────────────────────────────────────────
   Dashboard stat cards
────────────────────────────────────────────── */
.dashboard-card {
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow-sm);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-card:hover {
    box-shadow: var(--hs-shadow);
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────────
   Status colour helpers
────────────────────────────────────────────── */
.status-icon-positive  { color: var(--hs-success);  }
.status-icon-warning   { color: var(--hs-warning);  }
.status-icon-danger    { color: var(--hs-danger);   }
.status-icon-info      { color: var(--hs-info);     }
.status-icon-favorite  { color: #e91e63;            }

/* ──────────────────────────────────────────────
   Status badges (inline <span>)
────────────────────────────────────────────── */
.hs-status {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.hs-status-planned    { background: #e3f2fd; color: #1565c0; }
.hs-status-inprogress { background: #fff3e0; color: #e65100; }
.hs-status-completed  { background: #e8f5e9; color: #2e7d32; }
.hs-status-cancelled  { background: #fce4ec; color: #c62828; }
.hs-status-onhold     { background: #f3e5f5; color: #6a1b9a; }
.hs-status-pending    { background: #e8eaf6; color: #283593; }
.hs-status-responded  { background: #e0f2f1; color: #00695c; }
.hs-status-accepted   { background: #e8f5e9; color: #2e7d32; }

/* ──────────────────────────────────────────────
   Activity feed
────────────────────────────────────────────── */
.activity-item {
    cursor: pointer;
    transition: background 0.12s;
    border-radius: var(--hs-radius-sm);
}
.activity-item:hover { background: var(--hs-surface); }

/* ──────────────────────────────────────────────
   Pro rating value
────────────────────────────────────────────── */
.pro-rating-value { color: #f57c00; }

/* ──────────────────────────────────────────────
   Profile avatar
────────────────────────────────────────────── */
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hs-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: var(--hs-shadow-sm);
}

/* ──────────────────────────────────────────────
   Page header utilities
────────────────────────────────────────────── */
.hs-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ──────────────────────────────────────────────
   Empty state
────────────────────────────────────────────── */
.hs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    color: var(--hs-text-muted);
    gap: 0.75rem;
}
.hs-empty-state .material-icons,
.hs-empty-state rz-icon { font-size: 3rem; opacity: 0.5; }

/* ──────────────────────────────────────────────
   Blazor error boundary
────────────────────────────────────────────── */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--hs-radius-sm);
}

.blazor-error-boundary::after {
    content: "Wystąpił błąd aplikacji.";
}

#blazor-error-ui {
    background: #ffeb3b;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #212121;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ──────────────────────────────────────────────
   Responsive helpers
────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hs-hide-mobile { display: none !important; }
    .hs-page-header { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 769px) {
    .hs-hide-desktop { display: none !important; }
}

.rz-layout,
.rz-body,
.rz-sidebar,
.rz-header {
    background: transparent !important;
}

.rz-card,
.rz-panel,
.rz-dialog {
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-sm);
    box-shadow: var(--hs-shadow-sm);
    backdrop-filter: blur(18px);
}

.rz-button {
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.rz-button.rz-button-primary {
    background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-accent) 100%);
    color: #1d130d;
    border: 0;
    box-shadow: 0 12px 28px rgba(214, 109, 67, 0.28);
}

.rz-button.rz-button-light,
.rz-button.rz-button-secondary {
    background: rgba(255, 248, 239, 0.06);
    color: var(--hs-text-primary);
    border: 1px solid var(--hs-border);
}

.rz-textbox,
.rz-dropdown,
.rz-numeric,
.rz-textarea {
    border-radius: 18px !important;
}

.client-shell {
    min-height: 100vh;
}

.client-shell__layout {
    min-height: 100vh;
    grid-template-areas: "rz-sidebar rz-header" "rz-sidebar rz-body" !important;
    grid-template-columns: minmax(280px, 320px) 1fr !important;
    grid-template-rows: auto 1fr !important;
}

.client-shell__sidebar {
    padding: 1.4rem 1.2rem 1.2rem;
    border-right: 1px solid var(--hs-border);
    background:
        linear-gradient(180deg, rgba(255, 248, 239, 0.04) 0%, rgba(255, 248, 239, 0.01) 100%),
        rgba(18, 13, 10, 0.82) !important;
    backdrop-filter: blur(22px);
}

.client-shell__header {
    padding: 1.4rem 1.8rem 0;
}

.client-shell__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--hs-border);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.04);
    backdrop-filter: blur(18px);
}

.client-shell__body {
    padding: 1rem 1.8rem 1.8rem;
}

.client-shell__content {
    min-height: calc(100vh - 6.5rem);
}

.client-brand {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem;
    margin-bottom: 1rem;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius);
    background:
        radial-gradient(circle at top right, rgba(221, 180, 127, 0.14), transparent 40%),
        rgba(255, 248, 239, 0.04);
}

.client-brand__eyebrow,
.client-page__eyebrow,
.client-tip__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(221, 180, 127, 0.22);
    background: rgba(221, 180, 127, 0.08);
    color: var(--hs-primary-light);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.client-brand__title,
.client-page__title,
.client-hero-card__title {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.client-brand__title {
    font-size: 2rem;
}

.client-brand__copy,
.client-shell__label,
.client-page__lead,
.client-empty-state__copy,
.client-activity__meta {
    color: var(--hs-text-secondary);
}

.client-shell__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-shell__marker {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(221, 180, 127, 0.24), rgba(214, 109, 67, 0.36));
    color: #22150f;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.client-shell__label strong {
    display: block;
    color: var(--hs-text-primary);
    font-size: 1rem;
}

.client-shell__label span {
    font-size: 0.84rem;
}

.client-shell__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.client-shell__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.3rem 0.35rem 0.3rem 0.9rem;
    border: 1px solid var(--hs-border);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.05);
}

.client-shell__profile-name {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.client-shell__profile-name strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.client-shell__profile-name span {
    color: var(--hs-text-muted);
    font-size: 0.8rem;
}

.client-shell__sidebar-note {
    margin-top: 1rem;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-sm);
    background: rgba(255, 248, 239, 0.04);
}

.client-shell__sidebar-note strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--hs-text-primary);
}

.client-shell__sidebar-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--hs-text-secondary);
}

.client-page {
    display: grid;
    gap: 1.5rem;
}

.client-page__hero,
.client-page__section,
.client-page__panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius);
    background:
        linear-gradient(180deg, rgba(255, 248, 239, 0.05) 0%, rgba(255, 248, 239, 0.025) 100%),
        rgba(23, 17, 14, 0.74);
    box-shadow: var(--hs-shadow-sm);
    backdrop-filter: blur(22px);
}

.client-page__hero {
    padding: 1.6rem;
}

.client-page__section,
.client-page__panel {
    padding: 1.35rem;
}

.client-page__hero::after,
.client-page__section::after,
.client-page__panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -25% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 109, 67, 0.16), transparent 68%);
    pointer-events: none;
}

.client-page__title {
    font-size: clamp(2.35rem, 5vw, 4.35rem);
}

.client-page__lead {
    max-width: 62ch;
    margin: 0.75rem 0 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.client-stat-grid,
.client-feature-grid,
.client-dual-grid {
    display: grid;
    gap: 1rem;
}

.client-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-dual-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    align-items: start;
}

.client-stat-card,
.client-action-card,
.client-activity-card,
.client-tip-card,
.client-info-card {
    border: 1px solid var(--hs-border);
    border-radius: 24px;
    background: rgba(255, 248, 239, 0.05);
    box-shadow: var(--hs-shadow-soft);
}

.client-stat-card {
    padding: 1.15rem;
}

.client-stat-card__label {
    color: var(--hs-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.client-stat-card__value {
    margin: 0.55rem 0 0.35rem;
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    font-weight: 800;
    color: var(--hs-text-primary);
}

.client-stat-card__detail {
    color: var(--hs-text-secondary);
    font-size: 0.95rem;
}

.client-action-card,
.client-tip-card,
.client-activity-card,
.client-info-card {
    padding: 1.2rem;
}

.client-action-card h3,
.client-tip-card h3,
.client-activity-card h3,
.client-info-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.client-action-card p,
.client-tip-card p,
.client-info-card p {
    margin: 0;
    color: var(--hs-text-secondary);
    line-height: 1.7;
}

.client-action-card__icon {
    width: 2.9rem;
    height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 0.95rem;
    background: linear-gradient(135deg, rgba(221, 180, 127, 0.22), rgba(214, 109, 67, 0.24));
    color: var(--hs-primary-light);
}

.client-activity-list {
    display: grid;
    gap: 0.9rem;
}

.client-activity-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(221, 180, 127, 0.12);
    background: rgba(255, 248, 239, 0.03);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.client-activity-item:hover {
    transform: translateY(-2px);
    border-color: var(--hs-border-strong);
    background: rgba(255, 248, 239, 0.06);
}

.client-activity-item__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(221, 180, 127, 0.12);
    color: var(--hs-primary-light);
    flex-shrink: 0;
}

.client-activity-item__content {
    flex: 1;
    min-width: 0;
}

.client-activity-item__title {
    margin: 0 0 0.2rem;
    color: var(--hs-text-primary);
    font-weight: 700;
}

.client-activity-item__meta {
    color: var(--hs-text-muted);
    font-size: 0.88rem;
}

.client-activity-item__date {
    color: var(--hs-text-muted);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.client-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.client-empty-state {
    display: grid;
    gap: 0.6rem;
    justify-items: start;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px dashed var(--hs-border-strong);
    background: rgba(255, 248, 239, 0.03);
}

.client-empty-state__title {
    margin: 0;
    font-size: 1.1rem;
}

@media (max-width: 1200px) {
    .client-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .client-shell__layout {
        grid-template-areas:
            "rz-header"
            "rz-body" !important;
        grid-template-columns: 1fr !important;
    }

    .client-shell__sidebar {
        display: none !important;
    }

    .client-shell__header,
    .client-shell__body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .client-shell__header-row {
        border-radius: 28px;
        align-items: flex-start;
        flex-direction: column;
    }

    .client-dual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .client-page__hero,
    .client-page__section,
    .client-page__panel {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .client-page__title {
        font-size: 2.3rem;
    }

    .client-stat-grid,
    .client-feature-grid {
        grid-template-columns: 1fr;
    }

    .client-shell__meta,
    .client-shell__actions {
        width: 100%;
    }
}

/* ──────────────────────────────────────────────
   Landing / one-page marketing
────────────────────────────────────────────── */
.hs-landing {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hs-hero,
.hs-section,
.hs-cta-banner,
.hs-proof-strip {
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--hs-shadow-sm);
}

.hs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 2rem;
    background:
        radial-gradient(circle at top right, rgba(25, 118, 210, 0.2), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f3f7ff 55%, #eef5ff 100%);
    border: 1px solid rgba(21, 101, 192, 0.12);
}

.hs-hero-copy h1,
.hs-section-heading h2,
.hs-cta-banner h2 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hs-hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    margin-bottom: 1rem;
    max-width: 12ch;
}

.hs-hero-lead,
.hs-section-heading p,
.hs-cta-banner p {
    color: var(--hs-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.hs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.10);
    color: var(--hs-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hs-eyebrow-light {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
}

.hs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hs-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hs-badge-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: rgba(21, 101, 192, 0.06);
    border: 1px solid rgba(21, 101, 192, 0.08);
    border-radius: 999px;
    color: var(--hs-text-secondary);
    font-size: 0.95rem;
}

.hs-badge-pill .rzi {
    color: var(--hs-success);
}

.hs-hero-panel {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.hs-premium-card,
.hs-feature-card,
.hs-step-card,
.hs-instruction-card,
.hs-value-card,
.hs-faq-item,
.hs-proof-tile,
.hs-testimonial-card,
.hs-plan-card {
    background: #fff;
    border: 1px solid rgba(21, 101, 192, 0.08);
    border-radius: 20px;
    box-shadow: var(--hs-shadow-sm);
}

.hs-premium-card {
    padding: 1.5rem;
}

.hs-premium-card-primary {
    background: linear-gradient(160deg, #1565c0 0%, #1e88e5 100%);
    color: #fff;
}

.hs-premium-card-primary p,
.hs-premium-card-primary .hs-panel-label {
    color: rgba(255,255,255,0.86);
}

.hs-premium-card h3,
.hs-feature-card h3,
.hs-step-card h3,
.hs-instruction-card h3,
.hs-value-card h3,
.hs-faq-item h3,
.hs-testimonial-card h3,
.hs-plan-card h3 {
    margin: 0 0 0.75rem;
}

.hs-premium-card p,
.hs-feature-card p,
.hs-step-card p,
.hs-instruction-card p,
.hs-value-card p,
.hs-faq-item p,
.hs-proof-tile span,
.hs-testimonial-card p,
.hs-plan-subtitle {
    margin: 0;
    color: var(--hs-text-secondary);
    line-height: 1.7;
}

.hs-panel-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--hs-primary-dark);
}

.hs-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hs-kpi-item {
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hs-kpi-item strong {
    font-size: 1.25rem;
    line-height: 1;
}

.hs-kpi-item span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.86);
}

.hs-mini-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--hs-text-secondary);
    line-height: 1.8;
}

.hs-section {
    background: #fff;
}

.hs-section-alt {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hs-section-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.hs-grid {
    display: grid;
    gap: 1rem;
}

.hs-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hs-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.hs-proof-tile {
    padding: 1.25rem;
}

.hs-proof-tile strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--hs-text-primary);
}

.hs-feature-card,
.hs-step-card,
.hs-value-card,
.hs-testimonial-card {
    padding: 1.5rem;
    height: 100%;
}

.hs-feature-card .rzi {
    font-size: 2rem;
    color: var(--hs-primary);
    margin-bottom: 1rem;
}

.hs-step-card {
    position: relative;
    overflow: hidden;
}

.hs-step-number {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: rgba(21, 101, 192, 0.10);
    color: var(--hs-primary-dark);
    font-weight: 800;
}

.hs-instruction-card {
    padding: 1.5rem;
}

.hs-instruction-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.hs-instruction-header .rzi {
    font-size: 2rem;
    color: var(--hs-primary);
}

.hs-instruction-card ol {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--hs-text-secondary);
    line-height: 1.8;
}

.hs-faq-list {
    display: grid;
    gap: 1rem;
}

.hs-faq-item {
    padding: 1.25rem 1.5rem;
}

.hs-plan-card {
    position: relative;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hs-plan-card-highlight {
    border-color: rgba(21, 101, 192, 0.3);
    box-shadow: 0 14px 36px rgba(21, 101, 192, 0.12);
    transform: translateY(-4px);
}

.hs-plan-badge {
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.12);
    color: var(--hs-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.hs-plan-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--hs-text-primary);
}

.hs-plan-list {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.8;
    color: var(--hs-text-secondary);
    flex: 1;
}

.hs-testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hs-testimonial-stars {
    color: #f59e0b;
    letter-spacing: 0.15em;
    font-size: 0.95rem;
}

.hs-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hs-testimonial-author span {
    color: var(--hs-text-muted);
    font-size: 0.92rem;
}

.hs-cta-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #1e88e5 100%);
    color: #fff;
}

.hs-cta-banner p {
    color: rgba(255,255,255,0.86);
}

@media (max-width: 1100px) {
    .hs-grid-3,
    .hs-proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hs-hero,
    .hs-grid-2,
    .hs-cta-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hs-hero,
    .hs-section,
    .hs-cta-banner,
    .hs-proof-strip {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .hs-grid-3,
    .hs-proof-strip,
    .hs-kpi-grid {
        grid-template-columns: 1fr;
    }

    .hs-plan-card-highlight {
        transform: none;
    }
}

/* FachGuard atelier: restrained architectural palette, not a pastel dashboard. */
:root {
    --hs-primary: #c46f3d;
    --hs-primary-light: #e2a070;
    --hs-primary-dark: #8f4225;
    --hs-accent: #c9a86a;
    --hs-success: #7fa38b;
    --hs-warning: #d7a84f;
    --hs-danger: #d66b59;
    --hs-info: #829caf;
    --hs-surface: #151a1a;
    --hs-surface-strong: #1d2423;
    --hs-surface-soft: #27302e;
    --hs-surface-muted: #d9d4ca;
    --hs-border: rgba(220, 211, 194, 0.16);
    --hs-border-strong: rgba(201, 168, 106, 0.5);
    --hs-text-primary: #f4f0e8;
    --hs-text-secondary: rgba(244, 240, 232, 0.76);
    --hs-text-muted: rgba(244, 240, 232, 0.56);
    --hs-text-dark: #18201f;
    --hs-radius: 18px;
    --hs-radius-sm: 12px;
    --hs-radius-xs: 8px;
    --hs-shadow-sm: 0 12px 28px rgba(4, 7, 7, 0.28);
    --hs-shadow: 0 24px 56px rgba(4, 7, 7, 0.4);
    --hs-shadow-soft: 0 8px 18px rgba(4, 7, 7, 0.2);
    --rz-primary: var(--hs-primary);
    --rz-secondary: #bdb6a9;
    --rz-base-50: #f4f0e8;
    --rz-base-100: #ded8cd;
    --rz-base-200: #beb8ac;
    --rz-base-300: #99968d;
    --rz-base-400: #73766f;
    --rz-base-500: #555d58;
    --rz-base-600: #3c4542;
    --rz-base-700: #2a3331;
    --rz-base-800: #202826;
    --rz-base-900: #151a1a;
    --rz-card-background-color: #1d2423;
    --rz-panel-background-color: #1d2423;
    --rz-input-background-color: #151a1a;
    --rz-input-border-color: rgba(220, 211, 194, 0.24);
    --rz-outline-color: var(--hs-accent);
}

html, body {
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 92% -10%, rgba(196, 111, 61, 0.14), transparent 28rem), linear-gradient(135deg, #111716 0%, #1a211f 46%, #101413 100%);
}

body::before {
    background: linear-gradient(90deg, rgba(244, 240, 232, 0.025) 1px, transparent 1px), linear-gradient(rgba(244, 240, 232, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.45;
}

.client-brand__title, .client-page__title, .client-hero-card__title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.client-brand, .client-page__hero, .client-page__section, .client-page__panel, .rz-card, .rz-panel, .rz-dialog {
    background: #1d2423;
    border-color: var(--hs-border);
    backdrop-filter: none;
}

.client-page__hero::after, .client-page__section::after, .client-page__panel::after {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(196, 111, 61, 0.14), transparent 70%);
}

.client-brand__eyebrow, .client-page__eyebrow, .client-tip__eyebrow {
    border-radius: 4px;
    border-color: rgba(201, 168, 106, 0.48);
    background: rgba(201, 168, 106, 0.1);
    color: #e4c88f;
    letter-spacing: 0.12em;
}

.rz-button {
    min-height: 2.75rem;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rz-button:hover:not(:disabled) { transform: translateY(-1px); }

.rz-button.rz-button-primary {
    color: #fffaf2;
    background: #b95f36;
    border: 1px solid #d98a5f;
    box-shadow: inset 3px 0 0 #e4c88f, 0 8px 18px rgba(83, 35, 18, 0.35);
}

.rz-button.rz-button-primary:hover:not(:disabled) {
    background: #cb7045;
    box-shadow: inset 3px 0 0 #f0d9a6, 0 12px 22px rgba(83, 35, 18, 0.42);
}

.rz-button.rz-button-light, .rz-button.rz-button-secondary {
    color: var(--hs-text-primary);
    background: transparent;
    border: 1px solid rgba(220, 211, 194, 0.34);
}

.rz-button.rz-button-light:hover:not(:disabled), .rz-button.rz-button-secondary:hover:not(:disabled) {
    background: #27302e;
    border-color: var(--hs-border-strong);
}

.rz-button.rz-button-success { background: #466a55; border-color: #7fa38b; color: #f5f3ed; }
.rz-button.rz-button-danger { background: #873f35; border-color: #d66b59; }

.rz-textbox, .rz-dropdown, .rz-numeric, .rz-textarea, .rz-form-field-content { border-radius: 8px !important; }
.rz-textbox:focus, .rz-dropdown:focus-within, .rz-numeric:focus-within, .rz-textarea:focus { border-color: var(--hs-accent) !important; box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.16) !important; }

.quotes-page__summary-item, .quotes-page__card-metrics div, .pros-page__metrics div, .quote-details-page__hero-meta div, .quote-details-page__info-card, .client-stat-card, .client-action-card, .client-activity-card, .client-tip-card, .client-info-card {
    background: #27302e;
    border-color: rgba(220, 211, 194, 0.13);
}

.hs-status-planned, .hs-status-inprogress, .hs-status-completed, .hs-status-cancelled, .hs-status-onhold, .hs-status-pending, .hs-status-responded, .hs-status-accepted { border: 1px solid currentColor; background: transparent; }
.hs-status-planned { color: #9db8d2; }
.hs-status-inprogress { color: #e2b367; }
.hs-status-completed, .hs-status-accepted { color: #91bd9c; }
.hs-status-cancelled { color: #e18375; }
.hs-status-onhold { color: #c6a3cf; }
.hs-status-pending { color: #b6c0dc; }
.hs-status-responded { color: #8fc4ba; }

@media (max-width: 768px) {
    .client-shell__header-row { border-radius: 12px; }
    .rz-button { min-height: 3rem; }
}

/* Fachowiec design system — jasna pracownia architektoniczna. */
:root {
    --fc-canvas: #eeece6;
    --fc-paper: #fffefa;
    --fc-ink: #1e2724;
    --fc-ink-muted: #52605a;
    --fc-line: #d8d5cc;
    --fc-olive: #40594e;
    --fc-olive-deep: #293d34;
    --fc-terracotta: #b85e3c;
    --fc-terracotta-hover: #9e4e31;
    --fc-brass: #a78443;
    --fc-positive: #2f7152;
    --fc-danger: #a94638;
    --hs-primary: var(--fc-terracotta);
    --hs-primary-light: #d88968;
    --hs-primary-dark: var(--fc-terracotta-hover);
    --hs-accent: var(--fc-brass);
    --hs-success: var(--fc-positive);
    --hs-warning: #9b6b21;
    --hs-danger: var(--fc-danger);
    --hs-info: #426b7a;
    --hs-surface: var(--fc-paper);
    --hs-surface-strong: var(--fc-paper);
    --hs-surface-soft: #f5f3ed;
    --hs-surface-muted: #e8e5dc;
    --hs-border: var(--fc-line);
    --hs-border-strong: #a9a89f;
    --hs-text-primary: var(--fc-ink);
    --hs-text-secondary: var(--fc-ink-muted);
    --hs-text-muted: #707b74;
    --hs-text-dark: var(--fc-ink);
    --hs-radius: 14px;
    --hs-radius-sm: 10px;
    --hs-radius-xs: 6px;
    --hs-shadow-sm: 0 6px 18px rgba(32, 42, 37, 0.08);
    --hs-shadow: 0 18px 42px rgba(32, 42, 37, 0.12);
    --hs-shadow-soft: 0 3px 10px rgba(32, 42, 37, 0.06);
    --rz-primary: var(--fc-terracotta);
    --rz-secondary: var(--fc-olive);
    --rz-text-color: var(--fc-ink);
    --rz-text-secondary-color: var(--fc-ink-muted);
    --rz-body-background-color: var(--fc-canvas);
    --rz-card-background-color: var(--fc-paper);
    --rz-panel-background-color: var(--fc-paper);
    --rz-input-background-color: #fffefa;
    --rz-input-border-color: #c9c7be;
    --rz-outline-color: var(--fc-brass);
}

html, body {
    color: var(--fc-ink);
    background: var(--fc-canvas);
}

body::before {
    background: linear-gradient(90deg, rgba(64, 89, 78, 0.035) 1px, transparent 1px), linear-gradient(rgba(64, 89, 78, 0.025) 1px, transparent 1px);
    background-size: 84px 84px;
    opacity: 1;
}

.client-shell__sidebar {
    background: var(--fc-olive-deep) !important;
    border-right-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: none;
}

.client-shell__header-row {
    background: rgba(255, 254, 250, 0.9);
    border-color: var(--fc-line);
    border-radius: 12px;
    box-shadow: var(--hs-shadow-soft);
    backdrop-filter: blur(8px);
}

.client-shell__body { background: transparent; }
.client-shell__label strong, .client-shell__profile-name strong { color: var(--fc-ink); }
.client-shell__label span, .client-shell__profile-name span { color: var(--fc-ink-muted); }
.client-shell__marker { background: var(--fc-olive); color: #fffefa; box-shadow: none; border-radius: 8px; }

.client-brand, .client-shell__sidebar-note {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.client-brand__title, .client-brand__copy, .client-shell__sidebar-note strong, .client-shell__sidebar-note p { color: #fffefa; }
.client-brand__eyebrow, .client-page__eyebrow, .client-tip__eyebrow { border-radius: 4px; }
.client-brand__eyebrow { color: #e8cf94; border-color: rgba(232, 207, 148, 0.45); background: rgba(232, 207, 148, 0.1); }

.client-page__hero, .client-page__section, .client-page__panel, .rz-card, .rz-panel, .rz-dialog {
    color: var(--fc-ink);
    background: var(--fc-paper);
    border-color: var(--fc-line);
    box-shadow: var(--hs-shadow-sm);
}

.client-page__hero::after, .client-page__section::after, .client-page__panel::after { background: radial-gradient(circle, rgba(184, 94, 60, 0.08), transparent 70%); }
.client-page__eyebrow, .client-tip__eyebrow { color: var(--fc-olive); border-color: rgba(64, 89, 78, 0.32); background: rgba(64, 89, 78, 0.07); }

.client-page__lead, .client-brand__copy, .client-shell__label, .client-empty-state__copy, .client-activity__meta, .quotes-page__toolbar-copy p, .quote-details-page__description p { color: var(--fc-ink-muted); }

.rz-button {
    border-radius: 7px;
    min-height: 2.7rem;
    font-weight: 700;
    box-shadow: none;
}

.rz-button.rz-button-primary {
    color: #fffefa;
    background: var(--fc-terracotta);
    border: 1px solid var(--fc-terracotta);
    box-shadow: inset 3px 0 0 var(--fc-brass);
}

.rz-button.rz-button-primary:hover:not(:disabled) { background: var(--fc-terracotta-hover); box-shadow: inset 3px 0 0 #d7bb7a, 0 5px 12px rgba(132, 67, 42, 0.2); }
.rz-button.rz-button-light, .rz-button.rz-button-secondary { color: var(--fc-olive-deep); background: transparent; border-color: #aeb5af; }
.rz-button.rz-button-light:hover:not(:disabled), .rz-button.rz-button-secondary:hover:not(:disabled) { background: #edf0ea; border-color: var(--fc-olive); }
.rz-button.rz-button-success { background: var(--fc-positive); border-color: var(--fc-positive); }
.rz-button.rz-button-danger { background: transparent; color: var(--fc-danger); border-color: var(--fc-danger); }

.rz-textbox, .rz-dropdown, .rz-numeric, .rz-textarea, .rz-form-field-content { color: var(--fc-ink); background: #fffefa; border-radius: 7px !important; }
.rz-textbox:focus, .rz-dropdown:focus-within, .rz-numeric:focus-within, .rz-textarea:focus { border-color: var(--fc-brass) !important; box-shadow: 0 0 0 3px rgba(167, 132, 67, 0.18) !important; }

.quotes-page__summary-item, .quotes-page__card-metrics div, .pros-page__metrics div, .quote-details-page__hero-meta div, .quote-details-page__info-card, .client-stat-card, .client-action-card, .client-activity-card, .client-tip-card, .client-info-card { background: #f5f3ed; border-color: var(--fc-line); }
.quotes-page__summary-item span, .quotes-page__card-metrics span, .pros-page__metrics span, .quote-details-page__hero-meta span, .quote-details-page__info-card span, .client-stat-card__label { color: var(--fc-ink-muted); }

.hs-status-planned, .hs-status-inprogress, .hs-status-completed, .hs-status-cancelled, .hs-status-onhold, .hs-status-pending, .hs-status-responded, .hs-status-accepted { background: transparent; border: 1px solid currentColor; }
.hs-status-planned, .hs-status-pending { color: #496a86; }
.hs-status-inprogress { color: #91651e; }
.hs-status-completed, .hs-status-accepted { color: var(--fc-positive); }
.hs-status-cancelled { color: var(--fc-danger); }
.hs-status-onhold { color: #745c83; }
.hs-status-responded { color: #26736d; }

@media (max-width: 768px) {
    .client-shell__sidebar { background: var(--fc-olive-deep) !important; }
    .client-shell__header { padding: 0.75rem 1rem 0; }
    .client-shell__body { padding: 1rem; }
}

/* Fachowiec workspace — spokojny, precyzyjny panel operacyjny. */
:root {
    --fc-canvas: #f7f9fc;
    --fc-paper: #ffffff;
    --fc-ink: #1d2a3a;
    --fc-ink-muted: #5e6b7c;
    --fc-line: #dfe5ed;
    --fc-navy: #062d6b;
    --fc-navy-deep: #042557;
    --fc-blue: #0b57d0;
    --fc-blue-hover: #0848ad;
    --fc-blue-soft: #eaf2ff;
    --fc-positive: #267347;
    --fc-danger: #b42318;
    --hs-primary: var(--fc-blue);
    --hs-primary-light: #3476dc;
    --hs-primary-dark: var(--fc-blue-hover);
    --hs-accent: var(--fc-blue);
    --hs-success: var(--fc-positive);
    --hs-warning: #9a6700;
    --hs-danger: var(--fc-danger);
    --hs-info: var(--fc-blue);
    --hs-surface: var(--fc-paper);
    --hs-surface-strong: var(--fc-paper);
    --hs-surface-soft: #f4f7fb;
    --hs-surface-muted: #edf2f7;
    --hs-border: var(--fc-line);
    --hs-border-strong: #c9d3df;
    --hs-text-primary: var(--fc-ink);
    --hs-text-secondary: var(--fc-ink-muted);
    --hs-text-muted: #748194;
    --hs-text-dark: var(--fc-ink);
    --hs-radius: 6px;
    --hs-radius-sm: 4px;
    --hs-radius-xs: 3px;
    --hs-shadow-sm: 0 1px 3px rgba(20, 42, 70, 0.08);
    --hs-shadow: 0 3px 12px rgba(20, 42, 70, 0.10);
    --hs-shadow-soft: none;
    --rz-primary: var(--fc-blue);
    --rz-secondary: var(--fc-navy);
    --rz-text-color: var(--fc-ink);
    --rz-text-secondary-color: var(--fc-ink-muted);
    --rz-body-background-color: var(--fc-canvas);
    --rz-card-background-color: var(--fc-paper);
    --rz-panel-background-color: var(--fc-paper);
    --rz-input-background-color: #ffffff;
    --rz-input-border-color: #c8d2df;
    --rz-outline-color: var(--fc-blue);
}

html, body {
    color: var(--fc-ink);
    background: var(--fc-canvas);
}

body::before { display: none; }

.client-shell__sidebar {
    background: var(--fc-navy) !important;
    border-right: 1px solid #174686;
    box-shadow: none;
}

.client-brand {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    box-shadow: none;
}

.client-brand__eyebrow {
    color: #d9e7ff;
    background: transparent;
    border: 0;
    padding: 0;
    letter-spacing: 0.06em;
}

.client-brand__title, .client-brand__copy, .client-shell__sidebar-note strong, .client-shell__sidebar-note p {
    color: #ffffff;
}

.client-brand__title {
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.client-shell__sidebar-note {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
}

.client-nav__label { color: #bcd4fa; }
.client-nav__menu .rz-navigation-item-link,
.client-nav__menu .rz-panel-menu-item-link,
.client-shell__sidebar .rz-navigation-item-link,
.client-shell__sidebar .rz-panel-menu-item-link {
    color: #ffffff;
    border-radius: 4px;
}

.client-nav__menu .rz-navigation-item-link:hover,
.client-nav__menu .rz-panel-menu-item-link:hover,
.client-shell__sidebar .rz-navigation-item-link:hover,
.client-shell__sidebar .rz-panel-menu-item-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.client-nav__menu .rz-navigation-item-active > .rz-navigation-item-link,
.client-nav__menu .rz-navigation-item-wrapper-active > .rz-navigation-item-link,
.client-shell__sidebar .rz-navigation-item-active > .rz-navigation-item-link {
    color: #ffffff;
    background: #0b57d0;
    box-shadow: inset 3px 0 0 #9fc4ff;
}

.client-shell__sidebar .rz-navigation-item-icon,
.client-shell__sidebar .rzi { color: #d7e6ff; }

.client-shell__header {
    background: #ffffff;
    border-bottom: 1px solid var(--fc-line);
}

.client-shell__header-row {
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.client-shell__marker {
    background: var(--fc-blue);
    color: #ffffff;
    border-radius: 4px;
    box-shadow: none;
}

.client-shell__label strong, .client-shell__profile-name strong { color: var(--fc-ink); }
.client-shell__label span, .client-shell__profile-name span { color: var(--fc-ink-muted); }
.client-shell__body { background: var(--fc-canvas); }

.client-page__hero, .client-page__section, .client-page__panel, .rz-card, .rz-panel, .rz-dialog {
    color: var(--fc-ink);
    background: #ffffff;
    border: 1px solid var(--fc-line);
    border-radius: 6px;
    box-shadow: var(--hs-shadow-sm);
}

.client-page__hero::after, .client-page__section::after, .client-page__panel::after { display: none; }
.client-page__eyebrow, .client-tip__eyebrow { color: var(--fc-blue); border-color: #b8d0fa; background: var(--fc-blue-soft); border-radius: 3px; }
.client-page__lead, .client-empty-state__copy, .client-activity__meta, .quotes-page__toolbar-copy p, .quote-details-page__description p { color: var(--fc-ink-muted); }

.rz-button {
    min-height: 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
    transform: none !important;
}

.rz-button.rz-button-primary {
    color: #ffffff;
    background: var(--fc-blue);
    border: 1px solid var(--fc-blue);
    box-shadow: none;
}

.rz-button.rz-button-primary:hover:not(:disabled) {
    background: var(--fc-blue-hover);
    border-color: var(--fc-blue-hover);
    box-shadow: none;
}

.rz-button.rz-button-light, .rz-button.rz-button-secondary {
    color: var(--fc-blue);
    background: #ffffff;
    border-color: #a9c4ee;
}

.rz-button.rz-button-light:hover:not(:disabled), .rz-button.rz-button-secondary:hover:not(:disabled) {
    color: var(--fc-blue-hover);
    background: var(--fc-blue-soft);
    border-color: var(--fc-blue);
}

.rz-button.rz-button-success { color: #ffffff; background: var(--fc-positive); border-color: var(--fc-positive); }
.rz-button.rz-button-danger { color: var(--fc-danger); background: #ffffff; border-color: #e3aaa4; }

.rz-textbox, .rz-dropdown, .rz-numeric, .rz-textarea, .rz-form-field-content {
    color: var(--fc-ink);
    background: #ffffff;
    border-color: #c8d2df;
    border-radius: 4px !important;
}

.rz-textbox:focus, .rz-dropdown:focus-within, .rz-numeric:focus-within, .rz-textarea:focus {
    border-color: var(--fc-blue) !important;
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.16) !important;
}

.quotes-page__summary-item, .quotes-page__card-metrics div, .pros-page__metrics div, .quote-details-page__hero-meta div, .quote-details-page__info-card, .client-stat-card, .client-action-card, .client-activity-card, .client-tip-card, .client-info-card {
    background: #f8fafd;
    border-color: var(--fc-line);
    box-shadow: none;
}

.quotes-page__summary-item span, .quotes-page__card-metrics span, .pros-page__metrics span, .quote-details-page__hero-meta span, .quote-details-page__info-card span, .client-stat-card__label { color: var(--fc-ink-muted); }

.rz-datatable, .rz-grid-table, .rz-data-grid { border-color: var(--fc-line); }
.rz-datatable-thead th, .rz-grid-table thead th { background: #f3f6fa; color: #344257; border-color: var(--fc-line); }
.rz-datatable-tbody td, .rz-grid-table tbody td { border-color: var(--fc-line); }

.projects-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2.5rem;
}

.projects-page .rz-datatable,
.projects-page .rz-data-grid {
    background: #ffffff;
    border: 1px solid var(--fc-line);
    border-radius: 6px;
    overflow: hidden;
}

.projects-page .rz-paginator { border-top: 1px solid var(--fc-line); background: #f8fafd; }

.hs-status-planned, .hs-status-inprogress, .hs-status-completed, .hs-status-cancelled, .hs-status-onhold, .hs-status-pending, .hs-status-responded, .hs-status-accepted { background: #ffffff; border: 1px solid currentColor; }
.hs-status-planned, .hs-status-pending { color: #245fa7; }
.hs-status-inprogress { color: #9a6700; }
.hs-status-completed, .hs-status-accepted { color: var(--fc-positive); }
.hs-status-cancelled { color: var(--fc-danger); }
.hs-status-onhold { color: #7650a0; }
.hs-status-responded { color: #087d75; }

@media (max-width: 768px) {
    .client-shell__sidebar { background: var(--fc-navy) !important; }
    .client-shell__header { padding: 0; }
    .client-shell__header-row { border-bottom: 1px solid var(--fc-line); }
    .client-shell__body { padding: 1rem; }
    .rz-button { min-height: 3rem; }
    .projects-page { padding: 1rem; }
}
