/* System fallback keeps this demo independent of third-party font requests. */
:root {
    font-family: 'DM Sans', Arial, sans-serif;
    color: #1b2842;
    background: #f3f5f9;
    font-synthesis: none;
    --blue: #304ee8;
    --navy: #14223f;
    --muted: #65718a;
    --border: #e1e6ef;
    --white: #fff
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

button:disabled {
    opacity: .45;
    cursor: not-allowed
}

a {
    color: inherit
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #8098ff;
    outline-offset: 3px
}

h1,
h2,
h3,
p {
    margin: 0
}

h1,
h2,
h3 {
    font-family: Manrope, Arial, sans-serif;
    letter-spacing: -.035em
}

h1 {
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.22
}

h2 {
    font-size: 22px
}

h3 {
    font-size: 18px
}

p {
    line-height: 1.6
}

.muted {
    color: var(--muted)
}

.small {
    font-size: 14px;
    line-height: 1.5
}

.eyebrow {
    font-size: 13px;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted)
}

.app-shell {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh
}

.sidebar {
    background: var(--navy);
    color: #fff;
    padding: 33px 21px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 0;
    height: 100vh
}

.logo {
    font-family: Manrope, Arial, sans-serif;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -.06em;
    display: flex;
    align-items: center;
    gap: 10px
}

.logomark {
    display: grid;
    place-items: center;
    background: var(--blue);
    border-radius: 9px;
    width: 35px;
    height: 35px;
    letter-spacing: 0
}

.sidebar .eyebrow {
    color: #93a1bc;
    font-size: 12px
}

.workspace-label {
    border-bottom: 1px solid #35405a;
    padding: 0 10px 23px
}

.workspace-label strong {
    display: block;
    margin-top: 8px
}

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

.nav button {
    border: 0;
    background: transparent;
    color: #bfc9de;
    text-align: left;
    padding: 13px 15px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500
}

.nav button.active {
    color: #fff;
    background: #314464
}

.nav button:hover {
    color: white;
    background: #263959
}

.nav svg {
    width: 20px;
    height: 20px
}

.sidebar-bottom {
    margin-top: auto
}

.pilot {
    background: #223453;
    border: 1px solid #3b4e6f;
    border-radius: 12px;
    padding: 17px;
    margin-bottom: 20px
}

.pilot p {
    font-size: 14px;
    color: #bdcbe2;
    margin: 7px 0 15px
}

.user-mini {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 8px 5px
}

.avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5eaff;
    color: #3b4ca0;
    width: 42px;
    height: 42px;
    font-size: 14px;
    font-weight: 700
}

.avatar.peach {
    background: #ffeddc;
    color: #9b5b2b
}

.avatar.green {
    background: #dff2ed;
    color: #306c5b
}

.avatar.purple {
    background: #ece6ff;
    color: #6750a0
}

.topbar {
    height: 83px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 36px;
    gap: 16px
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px
}

.role-switch {
    display: flex;
    border: 1px solid var(--border);
    padding: 4px;
    background: #f5f7fa;
    border-radius: 10px
}

.role-switch button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 9px 17px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px
}

.role-switch .selected {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 1px 4px #15224715
}

.top-tools {
    display: flex;
    align-items: center;
    gap: 18px
}

.lang {
    border: 1px solid var(--border);
    background: white;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600
}

.workspace-chip {
    border: 1px solid #e6d5a7;
    background: #fff7e4;
    color: #826016;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap
}

.content {
    max-width: 1450px;
    margin: auto;
    padding: 33px 36px 48px
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px
}

.heading .eyebrow {
    margin-bottom: 9px
}

.heading p {
    margin-top: 10px;
    color: var(--muted)
}

.btn {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 17px;
    background: #fff;
    color: #253650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    min-height: 45px
}

.btn.primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue)
}

.btn.dark {
    background: #192b4c;
    color: #fff;
    border-color: #192b4c
}

.btn.ghost {
    background: transparent;
    border-color: transparent;
    padding: 8px;
    color: var(--muted)
}

.btn.small-btn {
    font-size: 14px;
    padding: 8px 12px;
    min-height: 38px
}

.btn:hover {
    filter: brightness(.97)
}

.btn svg {
    width: 18px;
    height: 18px
}

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden
}

.panel-pad {
    padding: 24px
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f5
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 27px
}

.stat {
    padding: 23px 24px
}

.stat .number {
    font-family: Manrope, Arial, sans-serif;
    font-size: 33px;
    font-weight: 700;
    margin: 12px 0 8px;
    letter-spacing: -.05em
}

.stat .topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px
}

.icon-tile {
    display: grid;
    place-items: center;
    background: #edf1ff;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    color: var(--blue)
}

.icon-tile svg {
    width: 18px;
    height: 18px
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 23px
}

.client-row {
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid #edf0f5;
    padding: 19px 23px;
    width: 100%;
    background: #fff;
    border-left: 0;
    border-top: 0;
    border-right: 0;
    text-align: left
}

.client-row:last-child {
    border-bottom: 0
}

.client-row:hover {
    background: #f9faff
}

.client-row .info {
    flex: 1;
    min-width: 0
}

.client-row strong {
    font-size: 16px
}

.client-row p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 3px
}

.tag {
    display: inline-block;
    background: #edf1ff;
    color: #4560ba;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    padding: 4px 8px;
    white-space: nowrap
}

.tag.career {
    background: #e1f2ec;
    color: #37745c
}

.tag.mindset {
    background: #eee8ff;
    color: #7259ac
}

.status {
    font-size: 13px;
    color: var(--muted);
    margin-top: 7px
}

.row-side {
    text-align: right
}

.spotlight {
    background: #eaf0ff;
    border-color: #d8e1fb;
    padding: 25px
}

.spotlight .eyebrow {
    color: #4d61a6
}

.spotlight h2 {
    font-size: 24px;
    line-height: 1.4;
    margin: 17px 0 10px
}

.spotlight p {
    color: #52638a;
    font-size: 15px;
    margin-bottom: 20px
}

.spotlight .btn {
    width: 100%
}

.activity {
    margin-top: 22px;
    padding: 24px
}

.activity-item {
    display: flex;
    gap: 12px;
    margin-top: 22px
}

.activity-item .line {
    width: 3px;
    background: #c9d5ef;
    border-radius: 3px
}

.activity-item p {
    font-size: 14px;
    line-height: 1.55
}

.activity-item time {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-top: 5px
}

.note {
    padding: 13px 17px;
    border: 1px solid #e4e8f0;
    border-radius: 9px;
    background: #fafbfe;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55
}

.footer-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0
}

.tabs button {
    border: 1px solid var(--border);
    background: white;
    padding: 9px 17px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--muted)
}

.tabs button.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy)
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.module {
    padding: 23px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.module-top {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.module h3 {
    line-height: 1.45
}

.module p {
    color: var(--muted);
    font-size: 14px;
    flex: 1
}

.module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf0f5;
    padding-top: 15px
}

.switch {
    appearance: none;
    position: relative;
    background: #ccd3df;
    border-radius: 30px;
    width: 39px;
    height: 23px;
    cursor: pointer;
    margin: 0
}

.switch:checked {
    background: var(--blue)
}

.switch:before {
    content: '';
    width: 17px;
    height: 17px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
    transition: transform .2s
}

.switch:checked:before {
    transform: translateX(16px)
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px
}

.search {
    border: 1px solid var(--border);
    background: white;
    border-radius: 9px;
    padding: 12px 15px;
    width: 100%;
    color: var(--navy)
}

.client-space {
    max-width: 1040px;
    margin: auto
}

.welcome-card {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    margin: 24px 0
}

.welcome-card>div {
    padding: 29px
}

.welcome-card .right {
    background: #edf2ff;
    border-left: 1px solid #dfe6f9
}

.welcome-card h2 {
    font-size: 26px;
    line-height: 1.4;
    margin: 10px 0
}

.welcome-card p {
    color: var(--muted);
    font-size: 15px
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px
}

.topic {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white
}

.topic .topic-body {
    flex: 1
}

.topic h3 {
    font-size: 16px;
    margin-bottom: 5px
}

.topic p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5
}

.topic:hover {
    border-color: #8699ef;
    box-shadow: 0 4px 16px #2636660a
}

.step-number {
    width: 34px;
    height: 34px;
    background: #edf1ff;
    color: var(--blue);
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0
}

.privacy-line {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 23px 0;
    font-size: 14px;
    color: var(--muted)
}

.privacy-line svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 22px;
    align-items: start
}

.chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 650px
}

.chat-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    gap: 10px
}

.chat-header h2 {
    font-size: 18px
}

.chat-header p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px
}

.messages {
    height: 435px;
    overflow-y: auto;
    padding: 27px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    scroll-behavior: smooth
}

.message {
    display: flex;
    gap: 12px;
    max-width: 94%;
    align-items: flex-start
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 87%
}

.message .bubble {
    padding: 15px 18px;
    background: #f2f5fa;
    border-radius: 0 13px 13px 13px;
    line-height: 1.65;
    font-size: 16px;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.message.user .bubble {
    background: #e9eeff;
    border-radius: 13px 0 13px 13px
}

.message .avatar {
    width: 31px;
    height: 31px;
    font-size: 12px
}

.message-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px
}

.chat-compose {
    border-top: 1px solid var(--border);
    padding: 20px 23px
}

.chat-compose textarea {
    resize: vertical;
    width: 100%;
    min-height: 80px;
    border: 1px solid #d7deeb;
    border-radius: 10px;
    padding: 13px;
    line-height: 1.55;
    color: var(--navy);
    background: #fff
}

.compose-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0
}

.step-list li {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    padding: 12px 0;
    align-items: center
}

.step-list li.current {
    color: var(--blue);
    font-weight: 700
}

.step-list span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: 12px;
    flex-shrink: 0
}

.step-list li.current span {
    background: var(--blue);
    color: white;
    border-color: var(--blue)
}

.chat-aside .note {
    margin-top: 20px
}

.empty {
    padding: 50px 25px;
    text-align: center
}

.empty h2 {
    margin: 18px 0 10px
}

.empty p {
    max-width: 490px;
    margin: 0 auto 23px;
    color: var(--muted)
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px
}

.summary-field {
    padding: 21px 25px;
    border-bottom: 1px solid var(--border)
}

.summary-field:last-child {
    border-bottom: 0
}

.summary-field h3 {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0;
    font-family: inherit;
    margin-bottom: 9px
}

.summary-field p {
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.summary-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 75px;
    line-height: 1.6
}

.sharebox {
    padding: 23px;
    position: sticky;
    top: 20px
}

.sharebox p {
    font-size: 14px;
    color: var(--muted);
    margin: 12px 0
}

.sharebox label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0
}

.sharebox input {
    margin-top: 4px;
    accent-color: var(--blue)
}

.sharebox .btn {
    width: 100%;
    margin-top: 10px
}

.section-gap {
    margin-top: 24px;
    margin-bottom: 24px
}

.notice-blue {
    border-left: 3px solid var(--blue);
    background: #eef2ff;
    padding: 18px;
    font-size: 15px;
    line-height: 1.6
}

.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: #0a19376b;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px)
}

.dialog {
    background: white;
    border-radius: 16px;
    max-height: 92vh;
    overflow: auto;
    width: min(650px, 100%);
    box-shadow: 0 20px 90px #0a18334d
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 23px 27px;
    border-bottom: 1px solid var(--border)
}

.dialog-body {
    padding: 26px
}

.dialog-body>p {
    margin-bottom: 18px
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 26px;
    border-top: 1px solid var(--border)
}

.field {
    display: block;
    margin-bottom: 17px;
    font-size: 14px;
    font-weight: 600
}

.field input,
.field textarea,
.field select {
    display: block;
    margin-top: 8px;
    width: 100%;
    border: 1px solid #d5ddea;
    border-radius: 8px;
    padding: 12px;
    font-weight: 400;
    color: var(--navy);
    background: white
}

.field textarea {
    min-height: 78px;
    line-height: 1.55
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px
}

.consent-check {
    display: flex;
    gap: 11px;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 20px
}

.consent-check input {
    accent-color: var(--blue);
    margin-top: 5px;
    flex-shrink: 0
}

.detail-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px
}

.detail-hero .avatar {
    width: 54px;
    height: 54px;
    font-size: 18px
}

.detail-section {
    padding: 18px 0;
    border-top: 1px solid var(--border)
}

.detail-section h3 {
    margin-bottom: 10px;
    font-size: 15px
}

.detail-section p {
    font-size: 15px
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px
}

.done {
    color: #357a5c
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.settings-grid .panel {
    padding: 25px
}

.settings-grid h2 {
    margin-bottom: 22px
}

.settings-grid .note {
    margin-top: 20px
}

#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    background: var(--navy);
    color: white;
    border-radius: 10px;
    box-shadow: 0 8px 40px #0a183330;
    padding: 15px 24px;
    max-width: 90vw;
    z-index: 40;
    font-size: 14px;
    transition: .2s
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

.loading {
    padding: 60px;
    font-size: 22px
}

.inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.mobile-brand {
    display: none
}

.error {
    color: #a63542;
    font-size: 14px;
    margin: 10px 0
}

.disclosure {
    font-size: 13px;
    color: var(--muted);
    margin-top: 15px;
    line-height: 1.5
}

.progress-track {
    height: 5px;
    background: #edf0f6;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px
}

.progress-fill {
    height: 100%;
    background: var(--blue)
}

@media(min-width:1500px) {
    .content {
        padding-top: 42px
    }

    .chat-panel {
        min-height: 730px
    }

    .messages {
        height: 510px
    }
}

@media(max-width:1160px) {
    .app-shell {
        grid-template-columns: 210px 1fr
    }

    .sidebar {
        padding: 28px 15px
    }

    .topbar {
        padding: 0 25px
    }

    .content {
        padding: 28px 25px
    }

    .dash-grid {
        grid-template-columns: minmax(0, 1fr) 280px
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .chat-layout {
        grid-template-columns: minmax(0, 1fr) 235px
    }

    .summary-grid {
        grid-template-columns: minmax(0, 1fr) 270px
    }

    .topbar-left>.small {
        display: none
    }
}

@media(max-width:950px) {
    .app-shell {
        grid-template-columns: 1fr
    }

    .sidebar {
        height: auto;
        position: static;
        padding: 16px 23px;
        gap: 14px
    }

    .sidebar>.logo {
        display: none
    }

    .workspace-label,
    .sidebar-bottom {
        display: none
    }

    .nav {
        flex-direction: row;
        overflow: auto;
        gap: 8px
    }

    .nav button {
        white-space: nowrap;
        padding: 10px 13px
    }

    .topbar {
        height: auto;
        min-height: 77px;
        padding: 15px 23px
    }

    .mobile-brand {
        display: block;
        font-size: 19px;
        font-weight: 800;
        letter-spacing: -.04em
    }

    .topbar-left {
        flex-wrap: wrap
    }

    .top-tools {
        gap: 10px
    }

    .dash-grid {
        grid-template-columns: 1fr 280px
    }

    .heading h1 {
        font-size: 30px
    }

    .chat-layout {
        grid-template-columns: 1fr
    }

    .chat-aside {
        display: none
    }

    .summary-grid {
        grid-template-columns: 1fr 270px
    }
}

@media(max-width:700px) {
    .content {
        padding: 24px 16px
    }

    .topbar {
        padding: 13px 16px;
        gap: 8px;
        align-items: flex-start
    }

    .topbar-left {
        gap: 8px
    }

    .role-switch button {
        padding: 8px 11px
    }

    .top-tools>.avatar {
        display: none
    }

    .top-tools {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end
    }

    .workspace-chip {
        font-size: 11px
    }

    .sidebar {
        padding: 8px 10px
    }

    .nav button {
        font-size: 14px;
        padding: 10px
    }

    .nav svg {
        width: 17px;
        height: 17px
    }

    .heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 23px
    }

    .heading p {
        font-size: 15px
    }

    .heading h1 {
        font-size: 30px
    }

    .stats {
        gap: 9px;
        margin-bottom: 20px
    }

    .stat {
        padding: 16px 13px
    }

    .stat .number {
        font-size: 27px
    }

    .stat .topline {
        font-size: 12px;
        line-height: 1.45;
        min-height: 34px
    }

    .stat .small {
        font-size: 12px
    }

    .stat .icon-tile {
        display: none
    }

    .dash-grid {
        grid-template-columns: 1fr
    }

    .dash-grid>.right-col {
        display: grid;
        gap: 15px;
        grid-template-columns: 1fr
    }

    .activity {
        margin: 0
    }

    .panel-head {
        padding: 19px
    }

    .client-row {
        padding: 16px;
        gap: 10px
    }

    .client-row p {
        font-size: 13px
    }

    .client-row .avatar {
        width: 35px;
        height: 35px;
        font-size: 12px
    }

    .row-side {
        max-width: 105px
    }

    .row-side .status {
        font-size: 12px
    }

    .module-grid,
    .topic-grid {
        grid-template-columns: 1fr
    }

    .welcome-card {
        grid-template-columns: 1fr
    }

    .welcome-card .right {
        border-left: 0;
        border-top: 1px solid #dfe6f9
    }

    .welcome-card>div {
        padding: 23px
    }

    .summary-grid,
    .settings-grid {
        grid-template-columns: 1fr
    }

    .sharebox {
        position: static
    }

    .chat-header {
        padding: 17px
    }

    .messages {
        height: 48vh;
        min-height: 320px;
        padding: 20px 15px
    }

    .message {
        max-width: 100%;
        gap: 8px
    }

    .message .bubble {
        padding: 13px;
        font-size: 16px
    }

    .message .avatar {
        display: none
    }

    .chat-compose {
        padding: 15px
    }

    .compose-actions {
        gap: 6px
    }

    .compose-actions .btn {
        padding: 10px 12px;
        font-size: 14px
    }

    .chat-panel {
        min-height: 0
    }

    .dialog-backdrop {
        padding: 12px
    }

    .dialog-body {
        padding: 21px
    }

    .dialog-head {
        padding: 20px
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0
    }

    .summary-field {
        padding: 20px
    }

    .topic {
        padding: 18px
    }

    .tabs button {
        padding: 9px 13px
    }

    .panel-head h2 {
        font-size: 19px
    }

    .settings-grid .panel {
        padding: 21px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

.note svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    flex-shrink: 0
}

.nav button {
    flex-shrink: 0
}

/* Shared Growth One v3 visual identity, used by both independent spaces. */
:root {
    font-family: Inter, Manrope, 'Segoe UI', Arial, sans-serif;
    background: #fcfafc;
    color: #18151a;
    --blue: #7a2ae3;
    --navy: #18151a;
    --muted: #746d78;
    --border: #e5dfe8
}

h1 {
    font-size: clamp(34px, 3.1vw, 49px);
    font-weight: 550;
    letter-spacing: -.055em;
    line-height: 1.15
}

h2 {
    font-size: 25px;
    font-weight: 600
}

h3 {
    font-size: 19px
}

.sidebar {
    background: #fff;
    color: #18151a;
    border-right: 1px solid #e5dfe8
}

.logo {
    font-size: 28px;
    gap: 0
}

.brand-gradient {
    background: linear-gradient(100deg, #6920d4, #e5389a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.workspace-label {
    border-color: #e5dfe8;
    padding-left: 4px;
    padding-right: 0
}

.workspace-label .eyebrow {
    font-size: 10px;
    letter-spacing: .035em
}

.sidebar .eyebrow {
    color: #948b9a
}

.nav button {
    color: #706776;
    border-radius: 12px;
    padding-left: 12px;
    gap: 10px
}

.nav button.active,
.nav button:hover {
    background: #f3ebfb;
    color: #7a2ae3
}

.pilot {
    background: #faf5ff;
    border-color: #eadcf7
}

.pilot p {
    color: #746d78
}

.topbar {
    height: 78px
}

.btn,
.lang,
.tabs button {
    border-radius: 999px
}

.btn {
    color: #18151a
}

.btn.primary,
.btn.dark {
    background: #7a2ae3;
    border-color: #7a2ae3;
    color: #fff
}

.panel {
    border-color: #e8e1eb;
    border-radius: 20px
}

.avatar,
.icon-tile,
.step-number {
    background: #f3ebfb;
    color: #7a2ae3
}

.workspace-chip,
.tag,
.tag.career,
.tag.mindset {
    background: #f3ebfb;
    color: #7942a5;
    border: 1px solid #e9dbf7;
    border-radius: 999px
}

.spotlight {
    background: linear-gradient(115deg, #6120ba 0%, #8e30c7 65%, #b83baf 100%);
    color: white;
    border: 0;
    border-radius: 24px
}

.spotlight .eyebrow,
.spotlight p {
    color: #f1ddff
}

.spotlight .btn {
    background: #fff;
    color: #7a2ae3;
    border-color: #fff
}

.note,
.notice-blue {
    background: #f5effb;
    border-color: #e2d0f3;
    color: #624776;
    margin-bottom: 22px
}

.activity-item .line {
    background: #ddc4ee
}

.welcome-card {
    background: linear-gradient(115deg, #6120ba 0%, #8e30c7 65%, #b83baf 100%);
    color: white;
    border: 0;
    border-radius: 24px
}

.welcome-card .eyebrow,
.welcome-card p {
    color: #f3e4ff
}

.welcome-card .right {
    background: #ffffff10;
    border-color: #ffffff25
}

.welcome-card .right .tag {
    background: #fff
}

.welcome-card .btn {
    background: #fff;
    color: #7a2ae3;
    border-color: #fff
}

.topic {
    border-radius: 18px
}

.topic:hover {
    border-color: #b77de9;
    box-shadow: 0 4px 18px #7a2ae30a;
    background: #faf5ff
}

.client-row:hover {
    background: #faf5ff
}

.tabs button.active {
    background: #7a2ae3;
    border-color: #7a2ae3
}

.message .bubble {
    background: #f6f1fa
}

.message.user .bubble {
    background: #eee0fb
}

.client-row,
.panel-head,
.module-footer {
    border-color: #eee7f1
}

.progress-track {
    background: #f3ebfb
}

.dialog {
    border-radius: 24px
}

.dialog-backdrop {
    background: #21132d66
}

.field input,
.field textarea,
.field select,
.chat-compose textarea {
    border-color: #e5dfe8
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: #b77de9
}

.method-block {
    border-top: 1px solid var(--border);
    padding: 18px 0
}

.method-block summary {
    cursor: pointer;
    font-weight: 600
}

.method-block p {
    padding: 10px 0;
    color: var(--muted)
}

.guide-list {
    padding-left: 24px;
    line-height: 1.8
}

.guide-list li {
    padding: 9px 0
}

.url-text {
    overflow-wrap: anywhere;
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 14px
}

.main {
    min-width: 0
}

.inline-actions .search {
    flex: 1;
    min-width: 140px;
    width: auto
}

input[type=checkbox] {
    accent-color: #7a2ae3
}

.storage-warning {
    margin: 0 0 20px;
    color: #9b244b
}

@media(min-width:951px) {
    .app-shell {
        grid-template-columns: 245px minmax(0, 1fr)
    }

    .sidebar {
        padding: 28px 18px;
        gap: 23px
    }

    .nav button {
        font-size: 14px
    }

    .content {
        padding-top: 38px
    }
}

@media(max-width:700px) {
    .topbar {
        height: auto
    }

    .topbar-left strong {
        font-size: 14px
    }

    .heading h1 {
        font-size: 32px
    }

    .stats {
        grid-template-columns: 1fr
    }

    .stat .topline {
        min-height: 0
    }

    .stat .number {
        margin: 8px 0
    }

    .welcome-card .right {
        border-color: #ffffff25
    }

    .nav button {
        min-height: 44px
    }

    .top-tools {
        flex-direction: row;
        align-items: center
    }

    .workspace-chip {
        display: none
    }
}

.question-edit {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin: 18px 0
}

.question-edit .module-top {
    margin-bottom: 12px
}

.invite-link {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
    word-break: break-all
}

.sync-line {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px
}

.dialog-footer {
    position: sticky;
    bottom: 0;
    background: white
}

.dialog-head {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2
}

/* Client roster and approved-report history share the existing card layout. */
.new-report {
    background: #efe4ff;
    color: #7027bd;
    white-space: nowrap
}

.report-section>h2 {
    padding: 20px 24px 0;
    font-size: 18px;
    margin: 0
}

.report-section .summary-field:last-child {
    border-bottom: 1px solid var(--border, #e9e1f0)
}

.report-open {
    padding: 20px 24px;
    border-top: 1px solid var(--border, #e9e1f0)
}

.report-open>summary {
    cursor: pointer;
    font-weight: 600
}

.report-open .summary-field {
    padding-left: 0;
    padding-right: 0
}

.report-empty-action {
    padding: 16px 24px
}

.summary-grid {
    align-items: start
}

.sharebox .btn {
    white-space: normal;
    line-height: 1.4;
    height: auto;
    min-height: 44px
}

.summary-field p {
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px
}

.report-row .info {
    min-width: 0;
    text-align: left
}

.report-row strong,
.activity-report {
    overflow-wrap: anywhere
}

.mobile-menu {
    display: none
}

.issue-panel {
    padding: 28px;
    border-top: 4px solid var(--blue)
}

.issue-panel textarea {
    font-size: 18px;
    min-height: 140px;
    resize: vertical
}

.route-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px
}

.route-shortcuts .btn {
    white-space: normal;
    text-align: left
}

.route-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px
}

.route-options>div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.timeline {
    list-style: none;
    margin: 20px 0;
    padding: 0 0 0 20px;
    border-left: 2px solid #dbc7f3
}

.timeline li {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 24px 8px;
    overflow-wrap: anywhere
}

.timeline strong {
    font-size: 17px
}

.timeline p {
    margin: 0
}

.case-issue {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 16px 0
}

.detail-section blockquote {
    margin: 12px 0;
    border-left: 3px solid var(--blue);
    padding: 8px 16px;
    background: #faf6ff
}

.panel-pad h2,
.panel-pad h3 {
    overflow-wrap: anywhere
}

.dialog-body {
    overflow-wrap: anywhere;
    min-width: 0
}

.dialog-footer {
    flex-wrap: wrap;
    gap: 8px;
    z-index: 3
}

.dialog-footer .btn {
    white-space: normal
}

button,
input,
select,
textarea {
    touch-action: manipulation
}

@media(max-width:700px) {
    .mobile-menu {
        display: inline-flex;
        min-width: 44px;
        padding: 8px;
        font-size: 20px
    }

    .sidebar {
        display: none
    }

    .menu-open .sidebar {
        display: block;
        position: fixed;
        top: 76px;
        left: 8px;
        right: 8px;
        z-index: 20;
        height: auto;
        max-height: calc(100dvh - 100px);
        overflow: auto;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 10px 40px #20103330
    }

    .sidebar .nav {
        display: flex;
        flex-direction: column;
        overflow: visible
    }

    .sidebar .nav button {
        width: 100%;
        min-height: 48px
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #fff;
        min-height: 72px
    }

    .topbar-left {
        flex-wrap: nowrap;
        min-width: 0
    }

    .topbar-left strong {
        overflow-wrap: anywhere
    }

    .mobile-brand {
        display: none
    }

    .content {
        padding: 20px 14px 32px
    }

    .heading h1 {
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -.035em
    }

    .heading .eyebrow {
        font-size: 12px
    }

    .issue-panel,
    .panel-pad {
        padding: 20px
    }

    .issue-panel textarea {
        font-size: 16px
    }

    .btn,
    .lang,
    input:not([type="checkbox"]):not([type="radio"]),
    select {
        min-height: 44px
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
        max-width: 100%;
        min-width: 0
    }

    .inline-actions {
        flex-wrap: wrap
    }

    .inline-actions>.btn {
        max-width: 100%;
        white-space: normal
    }

    .route-shortcuts {
        gap: 8px
    }

    .route-shortcuts .btn {
        font-size: 14px;
        padding: 11px 14px;
        max-width: 100%
    }

    .dialog-backdrop {
        padding: 0;
        align-items: stretch
    }

    .dialog {
        width: 100%;
        max-width: none;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden
    }

    .dialog-body {
        overflow-y: auto;
        flex: 1;
        padding: 18px
    }

    .dialog-head {
        flex-shrink: 0;
        padding: 16px
    }

    .dialog-head h2 {
        font-size: 20px
    }

    .dialog-footer {
        flex-shrink: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        position: static
    }

    .dialog-footer .btn {
        flex: 1 1 140px;
        font-size: 14px
    }

    .chat-panel {
        min-width: 0
    }

    .messages {
        height: 44dvh;
        min-height: 200px
    }

    .chat-compose {
        padding-bottom: calc(16px + env(safe-area-inset-bottom))
    }

    .compose-actions {
        flex-wrap: wrap
    }

    .compose-actions .btn {
        flex: 1 1 auto
    }

    .chat-compose textarea {
        font-size: 16px
    }

    .summary-field {
        padding: 18px
    }

    .report-section>h2 {
        padding: 18px 18px 0
    }

    .sharebox {
        padding: 20px
    }

    .sharebox .btn {
        width: 100%
    }

    .permission-grid {
        grid-template-columns: 1fr
    }

    .consent-check {
        align-items: flex-start;
        font-size: 15px
    }

    .consent-check input {
        min-height: 20px;
        min-width: 20px
    }

    .question-edit {
        padding: 14px
    }

    .question-edit .module-top {
        flex-wrap: wrap;
        gap: 8px
    }

    .tabs {
        max-width: 100%;
        overflow-x: auto
    }

    .tabs button {
        flex-shrink: 0
    }

    .detail-hero {
        flex-wrap: wrap
    }

    .top-tools {
        flex-shrink: 0
    }

    .top-tools>.btn {
        font-size: 12px;
        padding: 8px
    }

    .client-row strong {
        overflow-wrap: anywhere
    }

    .row-side {
        flex-shrink: 0
    }
}

.activity-report {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    margin-top: 12px;
    white-space: normal
}

@media(max-width:600px) {
    .report-row {
        flex-wrap: wrap;
        gap: 10px
    }

    .report-row .info {
        flex-basis: 70%
    }

    .client-row .row-side {
        max-width: 42%
    }

    .client-row .info {
        min-width: 0;
        overflow-wrap: anywhere
    }
}

/* Mobile QA: compact controls, wrapping tools and a reachable navigation close action. */
.mobile-nav-close {
    display: none
}

.message>div:last-child {
    min-width: 0
}

@media(max-width:950px) {
    .topbar {
        height: auto;
        flex-wrap: wrap
    }

    .topbar-left {
        min-width: 0;
        flex: 1 1 170px
    }

    .topbar-left strong {
        min-width: 0;
        overflow-wrap: anywhere
    }

    .top-tools {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%
    }
}

@media(max-width:700px) {
    .top-tools {
        flex: 1 1 auto
    }

    .top-tools>.btn {
        min-height: 44px
    }

    .menu-open .sidebar {
        top: 8px;
        max-height: calc(var(--visible-height, 100dvh) - 16px);
        padding: 12px
    }

    .mobile-nav-close {
        display: flex;
        margin: 0 0 8px auto;
        min-height: 44px
    }

    .switch-label {
        min-height: 44px
    }

    .switch {
        flex-shrink: 0;
        min-height: 23px;
        height: 23px
    }

    .consent-check input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-height: 20px;
        padding: 0
    }

    .sharebox input[type="checkbox"] {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        min-height: 20px
    }

    .module-footer,
    .action-row,
    .chat-header {
        flex-wrap: wrap
    }

    .module-footer .btn,
    .chat-header .btn {
        white-space: normal;
        max-width: 100%
    }

    .dialog {
        height: var(--visible-height, 100dvh);
        max-height: var(--visible-height, 100dvh)
    }

    .dialog-body {
        min-height: 0;
        overscroll-behavior: contain
    }

    .dialog-head .btn {
        flex-shrink: 0
    }

    .summary-field textarea,
    .invite-link,
    .search {
        font-size: 16px
    }

    .chat-compose textarea {
        max-height: 35dvh;
        overflow-y: auto
    }

    .tag {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere
    }

    .report-open,
    .report-empty-action {
        padding-left: 18px;
        padding-right: 18px
    }
}

.client-module-group {
    min-width: 0;
    margin: 16px 0;
    padding: 12px 16px 16px;
    border: 1px solid var(--border);
    border-radius: 12px
}

.client-module-group legend {
    font-weight: 600;
    padding: 0 6px
}

.client-module-group .consent-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    min-height: 44px;
    margin-top: 8px;
    align-items: start
}

.client-module-group input[type=checkbox] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 3px;
    padding: 0
}

.client-module-group span {
    overflow-wrap: anywhere
}

.client-module-group input:disabled+span {
    color: var(--muted)
}

.survey-table {
    overflow-x: auto;
    max-width: 100%;
    margin: 16px 0
}

.survey-table table {
    width: 100%;
    border-collapse: collapse
}

.survey-table th,
.survey-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e6dfee
}

.survey-table td:first-child {
    min-width: 140px;
    overflow-wrap: anywhere
}

fieldset {
    min-width: 0;
    border: 1px solid #e6dfee;
    border-radius: 12px;
    margin: 16px 0;
    padding: 16px
}