.finnandre-client-hub {
    --fch-navy: #10233c;
    --fch-navy-deep: #09182b;
    --fch-blue: #2589de;
    --fch-blue-soft: #e6f2ff;
    --fch-teal: #18aaa2;
    --fch-teal-deep: #0b5e62;
    --fch-green: #15614f;
    --fch-green-soft: #e5f4ee;
    --fch-gold: #f4c940;
    --fch-ink: #142233;
    --fch-muted: #647386;
    --fch-line: #d9e2ea;
    --fch-surface: #f4f7f9;
    --fch-white: #fff;
    --fch-danger: #a83d3d;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--fch-ink);
    background: var(--fch-white);
    border: 1px solid var(--fch-line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(9, 24, 43, .14);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

.finnandre-client-hub *,
.finnandre-client-hub *::before,
.finnandre-client-hub *::after {
    box-sizing: border-box;
}

.finnandre-client-hub button,
.finnandre-client-hub input,
.finnandre-client-hub textarea,
.finnandre-client-hub select {
    font: inherit;
}

.finnandre-client-hub button,
.finnandre-client-hub select {
    cursor: pointer;
}

.finnandre-client-hub button:focus-visible,
.finnandre-client-hub input:focus-visible,
.finnandre-client-hub textarea:focus-visible,
.finnandre-client-hub select:focus-visible,
.finnandre-client-hub a:focus-visible {
    outline: 3px solid var(--fch-gold);
    outline-offset: 3px;
}

.finnandre-client-hub [hidden] {
    display: none !important;
}

.finnandre-client-hub h2,
.finnandre-client-hub h3,
.finnandre-client-hub h4,
.finnandre-client-hub p {
    color: inherit;
}

.finnandre-client-hub__brand-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(22px, 4vw, 38px);
    color: #f4f9ff;
    background:
        radial-gradient(circle at 88% 10%, rgba(37, 137, 222, .34), transparent 24rem),
        linear-gradient(130deg, var(--fch-navy-deep), var(--fch-navy) 56%, #0b4d50);
}

.finnandre-client-hub__brand-header h2,
.finnandre-client-hub__brand-header p {
    margin: 0;
}

.finnandre-client-hub__brand-header h2 {
    margin: 3px 0 5px;
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    line-height: 1.08;
}

.finnandre-client-hub__brand-header > div:last-child > p:last-child {
    color: #c8d7e9;
    line-height: 1.55;
}

.finnandre-client-hub__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    color: #052530;
    background: linear-gradient(145deg, #74e0d8, #7fb4ff);
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 17px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
    font-weight: 900;
    letter-spacing: -.04em;
}

.finnandre-client-hub__eyebrow {
    margin: 0;
    color: var(--fch-teal-deep);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .115em;
    text-transform: uppercase;
}

.finnandre-client-hub__brand-header .finnandre-client-hub__eyebrow {
    color: #72ddd5;
}

.finnandre-client-hub__access-state {
    display: grid;
    justify-items: center;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(42px, 9vw, 88px) clamp(22px, 5vw, 48px);
    text-align: center;
}

.finnandre-client-hub__access-state h3 {
    margin: 10px 0;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.finnandre-client-hub__access-state > p:not(.finnandre-client-hub__eyebrow) {
    max-width: 58ch;
    margin: 0;
    color: var(--fch-muted);
    line-height: 1.7;
}

.finnandre-client-hub__access-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    color: var(--fch-navy);
    background: var(--fch-blue-soft);
    border-radius: 20px;
    font-size: 1.55rem;
    font-weight: 900;
}

.finnandre-client-hub__access-actions,
.finnandre-client-hub__form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.finnandre-client-hub__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.finnandre-client-hub__button:hover {
    transform: translateY(-1px);
}

.finnandre-client-hub__button--primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--fch-blue), #1769b1);
    box-shadow: 0 10px 24px rgba(37, 137, 222, .22);
}

.finnandre-client-hub__button--quiet {
    color: var(--fch-navy) !important;
    background: #fff;
    border-color: var(--fch-line);
}

.finnandre-client-hub__text-link,
.finnandre-client-hub__text-button,
.finnandre-client-hub__back {
    color: var(--fch-blue);
    background: transparent;
    border: 0;
    font-weight: 800;
    text-decoration: none;
}

.finnandre-client-hub__workspace {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 720px;
    background: var(--fch-surface);
}

.finnandre-client-hub__navigation {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 22px 14px;
    color: #dce8f7;
    background: linear-gradient(180deg, var(--fch-navy-deep), var(--fch-navy));
}

.finnandre-client-hub__navigation > button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 13px;
    color: #c9d7e8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
}

.finnandre-client-hub__navigation > button > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    font-size: 1.22rem;
}

.finnandre-client-hub__navigation > button:hover,
.finnandre-client-hub__navigation > button.is-active {
    color: #fff;
    background: rgba(104, 186, 240, .14);
    border-color: rgba(130, 196, 240, .18);
}

.finnandre-client-hub__navigation > button.is-active > span {
    color: #72ddd5;
}

.finnandre-client-hub__navigation .finnandre-client-hub__nav-create {
    color: #052530;
    background: linear-gradient(135deg, #72ddd5, #75baff);
    border-color: transparent;
}

.finnandre-client-hub__user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
}

.finnandre-client-hub__user-card > span:last-child {
    min-width: 0;
}

.finnandre-client-hub__user-card strong,
.finnandre-client-hub__user-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finnandre-client-hub__user-card small {
    margin-top: 2px;
    color: #9fb2c9;
    font-size: .72rem;
}

.finnandre-client-hub__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #062a32;
    background: #72ddd5;
    border-radius: 13px;
    font-weight: 900;
}

.finnandre-client-hub__avatar--large {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 1.45rem;
}

.finnandre-client-hub__main {
    min-width: 0;
    padding: clamp(22px, 5vw, 52px);
}

.finnandre-client-hub__view {
    width: min(780px, 100%);
    margin: 0 auto;
}

.finnandre-client-hub__view-heading,
.finnandre-client-hub__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.finnandre-client-hub__view-heading {
    margin-bottom: 24px;
}

.finnandre-client-hub__view-heading h3,
.finnandre-client-hub__section-heading h4 {
    margin: 4px 0 0;
}

.finnandre-client-hub__view-heading h3 {
    font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.finnandre-client-hub__icon-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    color: var(--fch-navy);
    background: #fff;
    border: 1px solid var(--fch-line);
    border-radius: 15px;
    font-size: 1.22rem;
    font-weight: 900;
}

.finnandre-client-hub__feedback {
    width: min(780px, 100%);
    margin: 0 auto 18px;
    padding: 13px 15px;
    color: var(--fch-navy);
    background: var(--fch-blue-soft);
    border: 1px solid #b8d9f6;
    border-radius: 12px;
    font-weight: 700;
}

.finnandre-client-hub__feedback.is-error {
    color: #7b2c2c;
    background: #fff0f0;
    border-color: #efbebe;
}

.finnandre-client-hub__feedback.is-success {
    color: var(--fch-green);
    background: var(--fch-green-soft);
    border-color: #bcded2;
}

.finnandre-client-hub__hero-card,
.finnandre-client-hub__detail-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 5vw, 34px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(114, 221, 213, .25), transparent 15rem),
        linear-gradient(135deg, var(--fch-navy), #0d4655);
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(9, 24, 43, .18);
}

.finnandre-client-hub__hero-card .finnandre-client-hub__eyebrow,
.finnandre-client-hub__detail-hero .finnandre-client-hub__eyebrow {
    color: #72ddd5;
}

.finnandre-client-hub__hero-card h4 {
    max-width: 22ch;
    margin: 8px 0;
    font-size: clamp(1.35rem, 4vw, 2rem);
}

.finnandre-client-hub__hero-card > p:not(.finnandre-client-hub__eyebrow) {
    max-width: 52ch;
    margin: 0;
    color: #c8d8e8;
    line-height: 1.6;
}

.finnandre-client-hub__hero-card > button {
    min-height: 44px;
    margin-top: 18px;
    padding: 0;
    color: #8be8df;
    background: transparent;
    border: 0;
    font-weight: 850;
}

.finnandre-client-hub__summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 30px;
}

.finnandre-client-hub__summary-grid button {
    display: grid;
    gap: 3px;
    min-height: 82px;
    padding: 14px;
    color: var(--fch-ink);
    background: #fff;
    border: 1px solid var(--fch-line);
    border-radius: 16px;
}

.finnandre-client-hub__summary-grid strong {
    color: var(--fch-navy);
    font-size: 1.55rem;
}

.finnandre-client-hub__summary-grid span {
    color: var(--fch-muted);
    font-size: .78rem;
    font-weight: 700;
}

.finnandre-client-hub__section-heading {
    margin-bottom: 12px;
}

.finnandre-client-hub__request-list {
    display: grid;
    gap: 11px;
}

.finnandre-client-hub__request-card {
    position: relative;
    display: grid;
    gap: 7px;
    width: 100%;
    min-height: 108px;
    padding: 17px 50px 17px 17px;
    color: var(--fch-ink);
    background: #fff;
    border: 1px solid var(--fch-line);
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 7px 20px rgba(16, 35, 60, .04);
}

.finnandre-client-hub__request-card:hover {
    border-color: #a9cbe6;
    box-shadow: 0 10px 26px rgba(16, 35, 60, .08);
}

.finnandre-client-hub__request-card::after {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--fch-blue);
    content: "›";
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 600;
}

.finnandre-client-hub__request-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.finnandre-client-hub__request-card strong {
    font-size: 1rem;
}

.finnandre-client-hub__request-card small {
    color: var(--fch-muted);
}

.finnandre-client-hub__request-card .finnandre-client-hub__request-type {
    width: fit-content;
    padding: 3px 7px;
    color: #31546f;
    background: #edf5fa;
    border-radius: 999px;
    font-weight: 700;
}

.finnandre-client-hub__next-step {
    color: var(--fch-navy);
    font-size: .82rem;
}

.finnandre-client-hub__status-chip {
    display: inline-flex;
    width: max-content;
    padding: 5px 9px;
    color: var(--fch-teal-deep);
    background: var(--fch-green-soft);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 850;
}

.finnandre-client-hub__status-chip[data-status="waiting_for_customer"] {
    color: #745b00;
    background: #fff5c6;
}

.finnandre-client-hub__status-chip[data-status="planned"] {
    color: #245582;
    background: var(--fch-blue-soft);
}

.finnandre-client-hub__status-chip[data-status="closed"],
.finnandre-client-hub__status-chip[data-status="cancelled"] {
    color: #5f6670;
    background: #eef0f2;
}

.finnandre-client-hub__quick-create {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 78px;
    margin-top: 16px;
    padding: 14px 17px;
    color: var(--fch-navy);
    background: linear-gradient(110deg, #e8f7f5, #edf5ff);
    border: 1px solid #c8e3e5;
    border-radius: 17px;
    text-align: left;
}

.finnandre-client-hub__quick-create > span:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--fch-teal-deep);
    border-radius: 14px;
    font-size: 1.3rem;
}

.finnandre-client-hub__quick-create strong,
.finnandre-client-hub__quick-create small {
    display: block;
}

.finnandre-client-hub__quick-create small {
    margin-top: 3px;
    color: var(--fch-muted);
}

.finnandre-client-hub__filters {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    padding-bottom: 3px;
    overflow-x: auto;
}

.finnandre-client-hub__filters button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 13px;
    color: var(--fch-muted);
    background: #fff;
    border: 1px solid var(--fch-line);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.finnandre-client-hub__filters button.is-active {
    color: #fff;
    background: var(--fch-navy);
    border-color: var(--fch-navy);
}

.finnandre-client-hub__intro {
    max-width: 62ch;
    margin: -10px 0 22px;
    color: var(--fch-muted);
    line-height: 1.65;
}

.finnandre-client-hub__form,
.finnandre-client-hub__composer {
    display: grid;
    gap: 17px;
    padding: clamp(18px, 4vw, 28px);
    background: #fff;
    border: 1px solid var(--fch-line);
    border-radius: 19px;
}

.finnandre-client-hub__form > label,
.finnandre-client-hub__composer > label {
    display: grid;
    gap: 7px;
    font-weight: 750;
}

.finnandre-client-hub__form input[type="text"],
.finnandre-client-hub__form select,
.finnandre-client-hub__form textarea,
.finnandre-client-hub__composer textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--fch-ink);
    background: #fbfcfd;
    border: 1px solid #c9d4dd;
    border-radius: 11px;
}

.finnandre-client-hub__form textarea,
.finnandre-client-hub__composer textarea {
    resize: vertical;
}

.finnandre-client-hub__form fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.finnandre-client-hub__form legend {
    margin-bottom: 8px;
    font-weight: 750;
}

.finnandre-client-hub__form fieldset label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 11px;
    background: var(--fch-surface);
    border: 1px solid var(--fch-line);
    border-radius: 11px;
}

.finnandre-client-hub__form-actions {
    justify-content: flex-start;
    margin-top: 3px;
}

.finnandre-client-hub__privacy-note {
    margin: 0;
    color: var(--fch-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.finnandre-client-hub__back {
    min-height: 44px;
    margin: -8px 0 10px;
    padding: 0;
}

.finnandre-client-hub__detail-hero h3 {
    margin: 8px 0;
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.finnandre-client-hub__detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 15px;
    margin-top: 13px;
    color: #c7d7e8;
    font-size: .82rem;
}

.finnandre-client-hub__detail-next {
    margin-top: 18px;
    padding: 14px;
    color: var(--fch-navy);
    background: #e7faf7;
    border-radius: 13px;
}

.finnandre-client-hub__detail-next strong,
.finnandre-client-hub__detail-next span {
    display: block;
}

.finnandre-client-hub__detail-next span {
    margin-top: 4px;
    line-height: 1.5;
}

.finnandre-client-hub__detail-description,
.finnandre-client-hub__detail-panel {
    margin-top: 14px;
    padding: clamp(18px, 4vw, 24px);
    background: #fff;
    border: 1px solid var(--fch-line);
    border-radius: 17px;
}

.finnandre-client-hub__detail-description h4,
.finnandre-client-hub__detail-panel h4 {
    margin: 0 0 12px;
}

.finnandre-client-hub__detail-description p,
.finnandre-client-hub__message p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.65;
}

.finnandre-client-hub__detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
    gap: 14px;
}

.finnandre-client-hub__message-thread,
.finnandre-client-hub__timeline {
    display: grid;
    gap: 10px;
}

.finnandre-client-hub__message {
    padding: 13px 14px;
    background: var(--fch-surface);
    border: 1px solid var(--fch-line);
    border-radius: 13px;
}

.finnandre-client-hub__message--operator {
    background: var(--fch-blue-soft);
    border-color: #c7ddf0;
}

.finnandre-client-hub__message small {
    display: block;
    margin-bottom: 7px;
    color: var(--fch-muted);
}

.finnandre-client-hub__composer {
    margin-top: 12px;
    padding: 14px;
    background: var(--fch-surface);
}

.finnandre-client-hub__composer .finnandre-client-hub__button {
    justify-self: start;
}

.finnandre-client-hub__timeline-item {
    position: relative;
    padding: 0 0 15px 23px;
}

.finnandre-client-hub__timeline-item::before {
    position: absolute;
    top: 5px;
    left: 3px;
    width: 9px;
    height: 9px;
    background: var(--fch-teal);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #dff4f1;
    content: "";
}

.finnandre-client-hub__timeline-item::after {
    position: absolute;
    top: 18px;
    bottom: -1px;
    left: 7px;
    width: 1px;
    background: var(--fch-line);
    content: "";
}

.finnandre-client-hub__timeline-item:last-child::after {
    display: none;
}

.finnandre-client-hub__timeline-item strong,
.finnandre-client-hub__timeline-item small {
    display: block;
}

.finnandre-client-hub__timeline-item small {
    margin-top: 3px;
    color: var(--fch-muted);
}

.finnandre-client-hub__account-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--fch-navy), #0d4c53);
    border-radius: 19px;
}

.finnandre-client-hub__account-card h4,
.finnandre-client-hub__account-card p {
    margin: 0;
}

.finnandre-client-hub__account-card p {
    margin-top: 4px;
    color: #c6d6e6;
}

.finnandre-client-hub__account-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.finnandre-client-hub__account-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
    padding: 12px 16px;
    color: var(--fch-navy);
    background: #fff;
    border: 1px solid var(--fch-line);
    border-radius: 13px;
    font-weight: 750;
    text-decoration: none;
}

.finnandre-client-hub__loading,
.finnandre-client-hub__empty {
    padding: 28px;
    color: var(--fch-muted);
    background: #fff;
    border: 1px dashed #becbd5;
    border-radius: 15px;
    text-align: center;
}

@media (max-width: 900px) {
    .finnandre-client-hub {
        border-radius: 18px;
    }

    .finnandre-client-hub__workspace {
        display: flex;
        flex-direction: column;
        min-height: 680px;
    }

    .finnandre-client-hub__main {
        order: 1;
        padding-bottom: 100px;
    }

    .finnandre-client-hub__navigation {
        position: fixed;
        z-index: 8;
        right: 0;
        bottom: 0;
        left: 0;
        order: 2;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
        background: rgba(9, 24, 43, .97);
        box-shadow: 0 -10px 28px rgba(9, 24, 43, .16);
        backdrop-filter: blur(14px);
    }

    .finnandre-client-hub__user-card {
        display: none;
    }

    .finnandre-client-hub__navigation > button {
        display: grid;
        justify-items: center;
        gap: 2px;
        min-height: 54px;
        padding: 5px;
        text-align: center;
    }

    .finnandre-client-hub__navigation > button > span {
        height: 24px;
    }

    .finnandre-client-hub__navigation > button b {
        font-size: .68rem;
    }

    .finnandre-client-hub__navigation .finnandre-client-hub__nav-create {
        color: #fff;
        background: transparent;
        border-color: transparent;
    }

    .finnandre-client-hub__navigation .finnandre-client-hub__nav-create > span {
        color: #052530;
        background: #72ddd5;
        border-radius: 50%;
    }
}

@media (max-width: 640px) {
    .finnandre-client-hub__brand-header {
        align-items: flex-start;
    }

    .finnandre-client-hub__mark {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .finnandre-client-hub__brand-header > div:last-child > p:last-child {
        display: none;
    }

    .finnandre-client-hub__main {
        padding: 22px 15px 26px;
    }

    .finnandre-client-hub__summary-grid {
        gap: 7px;
    }

    .finnandre-client-hub__summary-grid button {
        min-height: 76px;
        padding: 10px 6px;
    }

    .finnandre-client-hub__request-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .finnandre-client-hub__detail-grid {
        grid-template-columns: 1fr;
    }

    .finnandre-client-hub__access-actions,
    .finnandre-client-hub__form-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .finnandre-client-hub__access-actions .finnandre-client-hub__button,
    .finnandre-client-hub__form-actions .finnandre-client-hub__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .finnandre-client-hub *,
    .finnandre-client-hub *::before,
    .finnandre-client-hub *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
