h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.client-cases-page {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 22px 0 40px;
}

.new-consultation-page,
.client-home {
    width: min(1120px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 22px 0 40px;
}

.new-consultation-hero,
.client-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid #d8e8e5;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 247, 0.94)),
        repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0 1px, transparent 1px 42px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.new-consultation-eyebrow,
.client-home-eyebrow {
    color: #0f766e;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.new-consultation-title,
.client-home-title {
    margin: 2px 0;
    color: #061826;
    font-weight: 850;
}

.new-consultation-subtitle,
.client-home-subtitle {
    max-width: 760px;
    color: #526173;
}

.new-consultation-panel {
    margin-top: 16px;
    padding: 22px;
    border: 1px solid #d8e8e5;
    border-radius: 8px;
    background: #ffffff;
}

.new-consultation-section + .new-consultation-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e5eceb;
}

.new-consultation-section__head {
    margin-bottom: 12px;
}

.new-consultation-section__head .mud-typography-subtitle1 {
    color: #071a2d;
    font-weight: 850;
}

.new-consultation-section__head .mud-typography-body2 {
    color: #64748b;
}

.new-consultation-area-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.new-consultation-area-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    min-height: 110px;
    padding: 14px;
    border: 1px solid #d8e8e5;
    border-radius: 8px;
    background: #f8fcfb;
    color: #25364a;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.new-consultation-area-card:hover {
    border-color: #1f8a55;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.new-consultation-area-card.is-selected {
    border-color: #164e43;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px #164e43;
}

.new-consultation-area-card__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #164e43;
    color: #ffffff;
}

.new-consultation-area-card__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.new-consultation-area-card__text strong {
    color: #061826;
    font-size: 1rem;
}

.new-consultation-area-card__text small {
    color: #526173;
    line-height: 1.25;
}

.new-consultation-area-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #2e7d32;
}

.new-consultation-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
}

.new-consultation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.client-home-hero__copy {
    min-width: 0;
}

.client-home-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.client-home-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.client-home-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 12px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #dbe8e6;
    border-radius: 8px;
    background: #ffffff;
    color: #25364a;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.client-home-metric.is-primary {
    background: #103f36;
    color: #ffffff;
}

.client-home-metric .mud-icon-root {
    color: #187b72;
}

.client-home-metric.is-primary .mud-icon-root {
    color: #a7f3d0;
}

.client-home-metric strong {
    font-size: 2rem;
    line-height: 1;
}

.client-home-metric span {
    grid-column: 1 / -1;
    font-weight: 750;
}

.client-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 16px;
    margin-top: 16px;
}

.client-home-panel {
    padding: 18px;
    border: 1px solid #dbe8e6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.client-home-panel--focus {
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
}

.client-home-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.client-home-panel__head .mud-typography-caption {
    color: #0f766e;
    font-weight: 850;
    text-transform: uppercase;
}

.client-home-panel__head .mud-typography-h5 {
    color: #061826;
    font-weight: 850;
}

.client-home-focus-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #b9ded6;
    border-left: 5px solid #2e7d32;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.client-home-focus-card .mud-typography-caption {
    color: #64748b;
    font-weight: 850;
    text-transform: uppercase;
}

.client-home-focus-card .mud-typography-h6 {
    color: #061826;
    font-weight: 850;
}

.client-home-focus-card .mud-typography-body2 {
    color: #526173;
}

.client-home-focus-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.92rem;
}

.client-home-case-list {
    display: grid;
    gap: 10px;
}

.client-home-case-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e1ecea;
    border-radius: 8px;
    background: #f8fcfb;
    cursor: pointer;
}

.client-home-case-row__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e3f5ef;
    color: #0f766e;
}

.client-home-case-row .mud-typography-subtitle2 {
    color: #071a2d;
    font-weight: 850;
}

.client-home-case-row .mud-typography-caption {
    color: #64748b;
}

.client-home-empty {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 220px;
    padding: 22px;
    border: 1px dashed #bad3d1;
    border-radius: 8px;
    color: #526173;
    text-align: center;
}

.client-home-empty.compact {
    min-height: 140px;
}

@media (max-width: 940px) {
    .new-consultation-page,
    .client-home {
        width: min(100%, calc(100vw - 24px));
        padding: 14px 0 30px;
    }

    .new-consultation-hero,
    .client-home-hero {
        display: grid;
        padding: 18px;
    }

    .client-home-hero__actions,
    .new-consultation-actions {
        display: grid;
        width: 100%;
    }

    .client-home-hero__actions .mud-button-root,
    .new-consultation-actions .mud-button-root {
        width: 100%;
    }

    .new-consultation-area-grid,
    .client-home-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .new-consultation-form-grid,
    .client-home-grid {
        grid-template-columns: 1fr;
    }

    .client-home-focus-card__actions {
        align-items: stretch;
        display: grid;
    }

    .client-home-focus-card__actions .mud-button-root {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .new-consultation-page,
    .client-home {
        width: min(100%, calc(100vw - 16px));
    }

    .new-consultation-title,
    .client-home-title {
        font-size: 2rem;
    }

    .new-consultation-area-grid,
    .client-home-metrics {
        grid-template-columns: 1fr;
    }

    .new-consultation-panel,
    .client-home-panel {
        padding: 14px;
    }

    .new-consultation-area-card {
        min-height: 92px;
    }
}

.client-cases-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid #d8e8e5;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f0faf7 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.client-cases-eyebrow {
    color: #0f766e;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.client-cases-title {
    margin: 2px 0;
    font-weight: 850;
    color: #061826;
}

.client-cases-subtitle {
    max-width: 720px;
    color: #526173;
}

.client-cases-new {
    min-height: 48px;
    white-space: nowrap;
}

.client-cases-loading,
.client-cases-empty {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 260px;
    margin-top: 18px;
    padding: 28px;
    border: 1px dashed #bad3d1;
    border-radius: 8px;
    background: #ffffff;
    color: #526173;
    text-align: center;
}

.client-cases-empty .mud-icon-root {
    color: #0f766e;
    font-size: 42px;
}

.client-cases-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.client-cases-summary__item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid #dbe8e6;
    border-radius: 8px;
    background: #ffffff;
    color: #25364a;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.client-cases-summary__item:hover {
    border-color: #1f8a55;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.client-cases-summary__item.is-active {
    border-color: #164e43;
    background: #103f36;
    color: #ffffff;
}

.client-cases-summary__item .mud-icon-root {
    color: #187b72;
}

.client-cases-summary__item.is-active .mud-icon-root {
    color: #a7f3d0;
}

.client-cases-summary__item strong {
    font-size: 1.7rem;
    line-height: 1;
}

.client-cases-summary__item span {
    font-weight: 700;
    min-width: 0;
}

.client-cases-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.client-cases-search {
    flex: 1;
    max-width: 620px;
}

.client-cases-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d8e8e5;
    border-radius: 999px;
    background: #f8fcfb;
    color: #526173;
    font-size: 0.9rem;
    font-weight: 650;
}

.client-cases-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}

.client-case-card {
    display: grid;
    grid-template-columns: minmax(245px, 0.9fr) minmax(0, 1.45fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid #dbe8e6;
    border-left: 5px solid #94a3b8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.client-case-card:hover {
    border-color: #b7d8d2;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.client-case-card.is-actionable {
    border-left-color: #2e7d32;
}

.client-case-card.is-official {
    border-left-color: #0284c7;
}

.client-case-card.is-waiting {
    border-left-color: #f59e0b;
}

.client-case-card__status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border-radius: 8px;
    background: #f5fbf9;
}

.client-case-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #164e43;
    color: #ffffff;
}

.client-case-card__status .mud-typography-caption {
    color: #0f766e;
    font-weight: 850;
    text-transform: uppercase;
}

.client-case-card__status .mud-typography-subtitle1 {
    color: #071a2d;
    font-weight: 850;
    line-height: 1.16;
}

.client-case-card__status .mud-typography-body2 {
    margin-top: 4px;
    color: #526173;
}

.client-case-card__body {
    min-width: 0;
}

.client-case-card__area {
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
}

.client-case-card__title {
    margin-top: 2px;
    color: #061826;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.client-case-card__description {
    display: -webkit-box;
    margin-top: 6px;
    color: #526173;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-case-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.client-case-card__meta span,
.client-case-card__signals span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.client-case-card__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e5eceb;
}

.client-case-card__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-case-card__signals span {
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf8f4;
    color: #0f5f55;
    font-size: 0.86rem;
    font-weight: 750;
}

@media (max-width: 860px) {
    .client-cases-page {
        width: min(100%, calc(100vw - 24px));
        padding: 14px 0 28px;
    }

    .client-cases-hero {
        display: grid;
        gap: 14px;
        padding: 18px;
    }

    .client-cases-title {
        font-size: 2rem;
    }

    .client-cases-new {
        width: 100%;
    }

    .client-cases-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .client-cases-summary__item {
        grid-template-columns: auto 1fr;
        min-height: 88px;
    }

    .client-cases-summary__item span {
        grid-column: 1 / -1;
    }

    .client-cases-tools {
        display: grid;
    }

    .client-cases-search {
        max-width: none;
    }

    .client-cases-filter-label {
        justify-content: center;
        border-radius: 8px;
    }

    .client-case-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .client-case-card__status {
        padding: 12px;
    }

    .client-case-card__footer {
        display: grid;
    }

    .client-case-card__footer .mud-button-root {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .client-cases-page {
        width: min(100%, calc(100vw - 16px));
    }

    .client-cases-summary {
        grid-template-columns: 1fr;
    }

    .client-case-card__status {
        grid-template-columns: 1fr;
    }

    .client-case-card__icon {
        width: 38px;
        height: 38px;
    }
}

.ai-config-grid {
    display: grid;
    gap: 16px;
}

.ai-config-profile {
    overflow: hidden;
}

.ai-config-profile__badges,
.ai-config-profile__summary,
.ai-config-editor__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-config-profile__summary {
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #d8e5e7;
}

.ai-config-editor {
    display: grid;
    gap: 14px;
}

.ai-config-editor__actions {
    justify-content: flex-end;
}

.ai-config-versions {
    margin-top: 8px;
}

.case-workspace {
    background: linear-gradient(180deg, #fbfcfb 0%, #f4f7f6 42%, #edf2f3 100%);
    box-sizing: border-box;
    color: #1f2933;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    overflow: hidden;
    padding: 10px 22px 18px;
}

html:has(.case-workspace),
body:has(.case-workspace) {
    overflow: hidden;
}

.case-backbar {
    margin-bottom: 12px;
}

.case-hero {
    align-items: stretch;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #dce7e9;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex: 0 0 auto;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.estudio-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f3f5fb 100%);
}

.estudio-workspace {
    padding: 10px 28px 18px;
}

.case-hero__main {
    align-self: center;
    min-width: 0;
}

.case-eyebrow {
    color: #607182;
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.case-title {
    color: #16202a;
    font-weight: 750;
    line-height: 1;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.case-title.mud-typography-h4 {
    font-size: 1.28rem;
}

.case-description {
    color: #5b6976;
    font-size: .88rem;
    line-height: 1.2;
    margin-top: 5px;
    max-width: 880px;
    overflow-wrap: anywhere;
}

.case-hero__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
}

.case-layout {
    align-items: stretch;
    display: grid;
    flex: 1 1 auto;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 23vw);
    min-height: 0;
    overflow: hidden;
}

.estudio-workspace .case-layout {
    grid-template-columns: minmax(660px, 1fr) minmax(340px, 420px);
}

.estudio-case-v4 {
    gap: 12px;
}

.estudio-main-focus {
    gap: 10px;
}

.case-panel--tabs {
    padding: 8px;
}

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

.estudio-tabs .mud-button-root {
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    min-height: 36px;
    white-space: nowrap;
}

.estudio-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px 14px;
}

.estudio-summary-grid > div {
    background: #f6f9fb;
    border: 1px solid #dbe6ec;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
}

.estudio-summary-grid strong {
    color: #10283f;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.estudio-summary-grid span {
    color: #617283;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
}

.case-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding-right: 2px;
}

.estudio-workspace .case-main {
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

.estudio-workspace .case-main > .case-panel {
    flex: 0 0 auto;
}

.estudio-workspace .case-main > .case-panel:first-child {
    display: flex;
    flex-direction: column;
    max-height: 38vh;
    min-height: 230px;
}

.estudio-workspace .case-main > .case-panel:first-child .review-queue {
    min-height: 0;
    overflow-y: auto;
}

.estudio-workspace .case-panel--conversation {
    flex: 1 0 320px;
    min-height: 320px;
}

.estudio-workspace .case-main > .case-panel:nth-child(3) {
    max-height: 220px;
}

.case-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    opacity: .94;
}

.estudio-workspace .case-side {
    overflow-y: auto;
    opacity: 1;
    padding-right: 2px;
}

.side-switcher {
    align-items: center;
    background: rgba(255, 255, 255, .68);
    border: 1px solid #dce5ea;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .025);
    display: grid;
    flex: 0 0 auto;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px;
}

.side-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #566575;
    cursor: pointer;
    display: flex;
    gap: 5px;
    height: 36px;
    justify-content: center;
    min-width: 0;
    padding: 0 6px;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.side-tab span {
    font-size: .78rem;
    font-weight: 750;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-tab .mud-icon-root {
    font-size: .98rem;
}

.side-tab em {
    align-items: center;
    background: #e8f1ef;
    border-radius: 999px;
    color: #1f635a;
    display: inline-flex;
    font-size: .68rem;
    font-style: normal;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
}

.side-tab--active {
    background: #173b35;
    box-shadow: 0 8px 20px rgba(23, 59, 53, .18);
    color: #ffffff;
}

.side-tab--active em {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.side-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.side-content > .case-panel {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.case-side .case-panel__header {
    align-items: flex-start;
    min-height: auto;
    padding: 12px 14px;
}

.case-side .case-panel__title {
    align-items: flex-start;
}

.case-side .case-panel__title .mud-icon-root {
    font-size: 1.22rem;
    margin-top: 2px;
}

.case-side .case-panel__title .mud-typography-h6 {
    font-size: 1rem;
    line-height: 1.1;
}

.case-side .case-panel__title .mud-typography-body2 {
    font-size: .8rem;
    line-height: 1.18;
}

.case-panel {
    background: rgba(255, 255, 255, .88);
    border: 1px solid #dce5ea;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.case-panel__header {
    align-items: center;
    background: rgba(255, 255, 255, .74);
    border-bottom: 1px solid #e3eaee;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 16px;
}

.case-panel__title {
    align-items: center;
    display: flex;
    gap: 9px;
    min-width: 0;
}

.case-panel__title .mud-typography-h6 {
    line-height: 1.2;
}

.case-panel__title .mud-typography-body2 {
    line-height: 1.25;
}

.case-panel__title .mud-icon-root {
    color: #1f7a83;
    flex: 0 0 auto;
    font-size: 1.45rem;
}

.case-panel__title .mud-typography-h6 {
    color: #152536;
    font-size: 1.18rem;
    font-weight: 750;
}

.case-panel__title .mud-typography-body2 {
    color: #6a7784;
}

.case-chat,
.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
}

.case-panel--conversation,
.ai-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: none;
    min-height: 0;
}

.case-panel--primary {
    border-color: #c9e1dd;
}

.case-chat,
.ai-chat {
    flex: 1 1 auto;
}

.case-workspace--ai-first .case-main {
    overflow-y: auto;
}

.case-workspace--ai-first .ai-panel {
    height: auto;
    min-height: 100%;
    overflow: visible;
}

.case-workspace--ai-first .ai-chat {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
}

.estudio-chat {
    min-height: 0;
}

.ai-chat {
    background: linear-gradient(180deg, #fbfdfd 0%, #f6f8f8 100%);
    gap: 16px;
    padding: 16px 18px;
}

.ai-workbench {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 16px 18px;
}

.ai-workbench > .ai-chat {
    background: transparent;
    padding: 0;
}

.case-empty {
    align-items: center;
    border: 1px dashed #c9d4dc;
    border-radius: 8px;
    color: #667685;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    text-align: center;
}

.case-empty--compact {
    min-height: 110px;
}

.message-row {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    max-width: 82%;
}

.message-row--me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-row--review {
    max-width: 92%;
}

.message-row--validated {
    max-width: 92%;
}

.message-avatar {
    align-items: center;
    background: #eaf3f3;
    border-radius: 999px;
    color: #277c83;
    display: flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.message-row--me .message-avatar {
    background: #e8eef9;
    color: #355f99;
}

.message-row--review .message-avatar {
    background: #fff3d8;
    color: #93620f;
}

.message-row--validated .message-avatar {
    background: #e4f5f1;
    color: #177266;
}

.message-stack {
    min-width: 0;
}

.message-bubble,
.ai-message__bubble {
    background: #f4f7f8;
    border-radius: 8px;
    color: #263441;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}

.message-row--me .message-bubble,
.ai-message--me .ai-message__bubble {
    background: #e8f3ee;
}

.message-row--review .message-bubble {
    background: #fff9ed;
    border: 1px solid #f2d99c;
}

.message-row--validated .message-bubble {
    background: #eef9f6;
    border: 1px solid #a8d8ce;
}

.message-kicker {
    color: #926313;
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.message-kicker--validated {
    color: #177266;
}

.message-review-note {
    color: #4d6b68;
    display: block;
    margin-bottom: 6px;
}

.message-meta {
    color: #85919c;
    display: block;
    margin-top: 4px;
}

.case-composer,
.ai-composer {
    background: rgba(255, 255, 255, .92);
    border-top: 1px solid #e6ebef;
    padding: 12px 14px;
}

.case-composer {
    align-items: flex-end;
    display: flex;
    gap: 10px;
}

.case-composer__input,
.ai-composer__input {
    flex: 1 1 auto;
}

.ai-panel__header {
    background: #fbfdfd;
}

.legal-desk {
    background: #ffffff;
    border-color: #cfdfe0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.ai-modebar {
    align-items: center;
    background: #edf4f3;
    border: 1px solid #d7e6e4;
    border-radius: 8px;
    display: flex;
    gap: 4px;
    padding: 4px;
}

.ai-modebar__button {
    background: rgba(255, 255, 255, .72);
    border: 0;
    border-radius: 6px;
    color: #31514d;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 9px;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.ai-modebar__button--active {
    background: #173b35;
    box-shadow: 0 6px 16px rgba(23, 59, 53, .16);
    color: #ffffff;
}

.ai-mode-context {
    background: #f8fbfb;
    border: 1px solid #d9e6e5;
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
}

.ai-mode-context > div:first-child {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.ai-mode-context .mud-icon-root {
    color: #1f7a83;
    flex: 0 0 auto;
    font-size: 1.25rem;
    margin-top: 1px;
}

.ai-mode-context .mud-typography-subtitle2 {
    color: #173b35;
    font-weight: 850;
    line-height: 1.2;
}

.ai-mode-context .mud-typography-body2 {
    color: #62717e;
    line-height: 1.35;
}

.validation-candidates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.validation-candidates > span {
    color: #73808c;
    font-size: .82rem;
}

.validation-candidates button {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #cfe2de;
    border-radius: 8px;
    color: #22313f;
    cursor: pointer;
    display: flex;
    gap: 8px;
    padding: 9px 10px;
    text-align: left;
}

.validation-candidates button .mud-icon-root {
    color: #1f7a43;
    font-size: 1rem;
    margin-top: 1px;
}

.validation-candidates button span {
    font-size: .82rem;
    line-height: 1.25;
}

.validation-candidates button:hover {
    background: #edf8f4;
    border-color: #9ed2c6;
}

.ai-message {
    align-self: flex-start;
    max-width: 100%;
}

.ai-message--me {
    align-self: flex-end;
    max-width: 72%;
}

.ai-message--document {
    width: min(880px, 100%);
}

.ai-message--document .ai-message__bubble {
    background: transparent;
    padding: 0;
}

.client-prompt {
    align-items: flex-start;
    display: flex;
    gap: 9px;
}

.client-prompt .mud-icon-root {
    color: #48716d;
    flex: 0 0 auto;
    font-size: 1.05rem;
}

.legal-doc {
    background: #ffffff;
    border: 1px solid #dbe5e9;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.legal-doc__chrome {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8f8 100%);
    border-bottom: 1px solid #e1e9ec;
    color: #5c6975;
    display: flex;
    justify-content: space-between;
    padding: 9px 14px;
}

.legal-doc__chrome span {
    color: #173b35;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.legal-doc__chrome small {
    color: #8a96a1;
    font-size: .72rem;
    font-weight: 700;
}

.legal-doc__body {
    padding: 18px 24px 22px;
}

.case-intake-card {
    background: #f5fbf8;
    border: 1px solid #cfe2de;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
    flex: 0 0 auto;
    padding: 14px;
}

.case-intake-card--new {
    border-color: #21a67a;
    box-shadow: 0 0 0 3px rgba(33, 166, 122, .14), 0 16px 36px rgba(15, 23, 42, .1);
}

.case-intake-card__header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.case-intake-card__header .mud-typography-caption {
    color: #1b7368;
    font-weight: 850;
    text-transform: uppercase;
}

.case-intake-card__header .mud-typography-h6 {
    color: #092b27;
    font-weight: 900;
    line-height: 1.15;
}

.case-intake-card__header .mud-typography-body2 {
    color: #59706c;
    margin-top: 2px;
}

.case-intake-progress {
    align-items: center;
    background: #ffffff;
    border: 1px solid #bddbd3;
    border-radius: 8px;
    color: #164d45;
    display: flex;
    flex-direction: column;
    min-width: 78px;
    padding: 8px 10px;
}

.case-intake-progress strong {
    font-size: 1.45rem;
    line-height: 1;
}

.case-intake-progress span {
    color: #6b7f7b;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.case-intake-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-intake-inline {
    align-self: center;
    max-width: 880px;
    width: 100%;
}

.ai-intake-inline .case-intake-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-intake-section-title {
    color: #173b35;
    display: block;
    font-weight: 900;
    margin: 10px 0 8px;
}

.case-intake-field {
    background: #ffffff;
    border: 1px solid #d6e5e1;
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.case-intake-field--answered {
    background: #f0fbf4;
    border-color: #9bd1bd;
    box-shadow: inset 3px 0 0 #17a75b;
}

.case-intake-field--unknown {
    background: #fffaf0;
    border-color: #f4c36c;
    box-shadow: inset 3px 0 0 #f59f00;
}

.case-intake-fields--completed .case-intake-field {
    background: #fbfdfd;
}

.case-intake-field__label {
    margin-bottom: 8px;
}

.case-intake-field__label .mud-typography-subtitle2 {
    color: #17322f;
    font-weight: 850;
    line-height: 1.25;
}

.case-intake-field__label .mud-typography-caption {
    color: #6c7d79;
    display: block;
    margin-top: 2px;
}

.case-intake-field__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.case-intake-field__actions .mud-chip {
    margin-right: auto;
}

.case-intake-autosave {
    color: #6b7f7b;
    font-size: .78rem;
    font-weight: 800;
    margin-right: auto;
}

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

.case-intake-saved-summary > div {
    background: #ffffff;
    border: 1px solid #d8e8e3;
    border-radius: 8px;
    padding: 9px 11px;
}

.case-intake-saved-summary span {
    color: #60736f;
    display: block;
    font-size: .76rem;
    font-weight: 850;
    line-height: 1.25;
}

.case-intake-saved-summary strong {
    color: #12322d;
    display: block;
    font-size: .95rem;
    font-weight: 850;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.case-intake-card__footer {
    align-items: stretch;
    background: #f5fbf8;
    border-top: 1px solid #d8e8e3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    margin: 14px -14px -14px;
    padding: 12px 14px 14px;
}

.case-intake-card__footer .mud-typography-caption {
    color: #5c716d;
    line-height: 1.3;
}

.case-intake-card__footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-intake-card__footer-actions .mud-button-root {
    flex: 1 1 190px;
}

.case-intake-more.mud-button-root {
    margin-top: 10px;
}

.case-intake-completed {
    margin-top: 14px;
}

.case-intake-completed .mud-expand-panel {
    background: rgba(255, 255, 255, .72);
    border: 1px solid #d7e7e2;
    border-radius: 8px;
    overflow: hidden;
}

.case-intake-completed .mud-expand-panel-header {
    min-height: 42px;
}

.case-intake-completed .mud-expand-panel-text {
    color: #31544e;
    font-weight: 850;
}

.case-intake-completed-visible {
    background: #fbfefd;
    border: 1px solid #d7e7e2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
}

.case-intake-completed-visible__head {
    display: grid;
    gap: 3px;
}

.case-intake-completed-visible__head .mud-typography-caption:not(.case-intake-section-title) {
    color: #5c716d;
}

.case-intake-fields--saved .case-intake-field {
    background: #ffffff;
    border-color: #b7e4c7;
}

.case-ai-preparing {
    overflow: hidden;
    position: relative;
}

.case-ai-preparing::after {
    animation: casePreparingSweep 1.35s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(33, 166, 122, .14), transparent);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-100%);
}

.case-ai-preparing__body {
    align-items: center;
    background: linear-gradient(135deg, #effbf6, #ffffff);
    border: 1px solid #cbe6dc;
    border-radius: 10px;
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding: 22px;
}

.case-ai-preparing__body .mud-typography-subtitle1 {
    color: #0d3d35;
    font-weight: 900;
}

.case-ai-preparing__body .mud-typography-body2 {
    color: #5d716d;
    margin-top: 3px;
}

.case-ai-preparing__steps {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.case-ai-preparing__step {
    background: #f8fbfa;
    border: 1px solid #d9e8e3;
    border-radius: 999px;
    color: #66807a;
    font-size: .82rem;
    font-weight: 850;
    padding: 9px 12px;
    text-align: center;
}

.case-ai-preparing__step--active {
    background: #0f4b43;
    border-color: #0f4b43;
    color: #ffffff;
}

.case-flow-transition {
    overflow: hidden;
    position: relative;
}

.case-flow-transition::after {
    animation: casePreparingSweep 1.35s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(20, 83, 75, .12), transparent);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-100%);
}

.case-flow-transition__body {
    align-items: center;
    background: linear-gradient(135deg, #effbf6, #ffffff);
    border: 1px solid #cbe6dc;
    border-radius: 10px;
    display: flex;
    gap: 18px;
    padding: 22px;
}

.case-flow-transition__body > div {
    display: grid;
    gap: 4px;
}

.case-flow-transition__body .mud-icon-root {
    color: #0f766e;
}

.case-flow-transition__body .mud-typography-subtitle1 {
    color: #0d3d35;
    font-weight: 900;
}

.case-flow-transition__body .mud-typography-body2 {
    color: #5d716d;
}

.case-flow-transition__steps {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-flow-transition__step {
    background: #f8fbfa;
    border: 1px solid #d9e8e3;
    border-radius: 999px;
    color: #66807a;
    font-size: .82rem;
    font-weight: 850;
    padding: 9px 12px;
    text-align: center;
}

.case-flow-transition__step--active {
    background: #0f4b43;
    border-color: #0f4b43;
    color: #ffffff;
}

.case-flow-result {
    align-items: flex-start;
    background: #f0f7ff;
    border: 1px solid #b9d8ff;
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    padding: 14px;
}

.case-flow-result > .mud-icon-root {
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    padding: 7px;
}

.case-flow-result .mud-typography-caption {
    color: #2563eb;
    font-weight: 900;
    text-transform: uppercase;
}

.case-flow-result .mud-typography-subtitle1 {
    color: #102333;
    font-weight: 900;
}

.case-flow-result .mud-typography-body2 {
    color: #506273;
}

.case-flow-result--study,
.case-flow-result--validation,
.case-flow-result--proposal {
    background: #eef7ff;
    border-color: #b9d8ff;
}

.case-flow-result--intake {
    background: #fff8e9;
    border-color: #f6d58a;
}

.case-flow-result--intake > .mud-icon-root {
    background: #fef3c7;
    color: #b45309;
}

@keyframes casePreparingSweep {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

.case-intake-history-card {
    align-self: center;
    background: #ffffff;
    border: 1px solid #d8e6e3;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    max-width: 880px;
    padding: 12px 14px;
    width: 100%;
}

.case-intake-history-card > div:first-child {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.case-intake-history-card > div:first-child > .mud-icon-root {
    background: #e9f6f2;
    border-radius: 8px;
    color: #1b7368;
    flex: 0 0 auto;
    padding: 6px;
}

.case-intake-history-card .mud-typography-caption {
    color: #60736f;
    font-weight: 850;
    text-transform: uppercase;
}

.case-intake-history-card .mud-typography-subtitle2 {
    color: #16352f;
    font-weight: 900;
}

.optional-data-card {
    align-self: center;
    background: #ffffff;
    border: 1px solid #d8e6e3;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    max-width: 880px;
    padding: 14px;
    width: 100%;
}

.optional-data-card__head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.optional-data-card__head > .mud-icon-root {
    background: #edf7f4;
    border-radius: 8px;
    color: #1b7368;
    flex: 0 0 auto;
    padding: 6px;
}

.optional-data-card__head .mud-typography-caption {
    color: #60736f;
    font-weight: 850;
    text-transform: uppercase;
}

.optional-data-card__head .mud-typography-subtitle2 {
    color: #16352f;
    font-weight: 900;
}

.optional-data-card__head .mud-typography-body2 {
    color: #60736f;
}

.optional-data-card__grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.optional-data-chip {
    background: #f8fbfb;
    border: 1px solid #d8e8e3;
    border-radius: 8px;
    min-height: 76px;
    padding: 0;
}

.optional-data-chip--open {
    background: #ffffff;
    border-color: #9bd1bd;
}

.optional-data-chip__head {
    align-items: flex-start;
    color: #16352f;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 800;
    gap: 8px;
    justify-content: space-between;
    min-height: 74px;
    padding: 10px;
    text-align: left;
    width: 100%;
    background: transparent;
    border: 0;
}

.optional-data-chip:hover,
.optional-data-chip__head:hover {
    background: #eff8f5;
}

.optional-data-chip__head .mud-icon-root {
    color: #1b7368;
    flex: 0 0 auto;
    font-size: 1.05rem;
}

.optional-data-chip__input {
    padding: 0 10px 8px;
}

.optional-data-chip__actions {
    align-items: center;
    border-top: 1px solid #e0ebea;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 8px 10px 10px;
}

.optional-data-chip__actions span {
    color: #60736f;
    font-size: .76rem;
    font-weight: 800;
}

.optional-data-card__hint {
    color: #6b7f7b;
    display: block;
    margin-top: 10px;
}

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

.case-intake-facts > div {
    background: #f8fbfb;
    border: 1px solid #e0ebea;
    border-radius: 8px;
    padding: 8px 10px;
}

.case-intake-facts span {
    color: #66757c;
    display: block;
    font-size: .75rem;
    font-weight: 800;
}

.case-intake-facts strong {
    color: #122b33;
    display: block;
    font-size: .9rem;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.studio-intake-list {
    display: grid;
    gap: 8px;
}

.studio-intake-list--facts {
    margin: 8px 0 14px;
}

.estudio-summary-grid--intake {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.studio-intake-item {
    background: #f8fbfb;
    border: 1px solid #dbe6e8;
    border-radius: 8px;
    padding: 10px 12px;
}

.studio-intake-item .mud-typography-caption {
    color: #5c6d78;
    display: block;
    font-weight: 850;
    margin-bottom: 3px;
}

.studio-intake-item .mud-typography-body2 {
    color: #172b36;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .case-intake-fields {
        grid-template-columns: 1fr;
    }

    .ai-intake-inline .case-intake-fields {
        grid-template-columns: 1fr;
    }

    .case-intake-saved-summary {
        grid-template-columns: 1fr;
    }

    .optional-data-card__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ai-workbench {
        gap: 10px;
        padding: 10px;
    }

    .case-intake-card {
        padding: 12px;
    }

    .case-intake-card__header,
    .case-intake-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .case-intake-progress {
        align-items: flex-start;
        flex-direction: row;
        gap: 6px;
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .case-intake-progress strong {
        font-size: 1.15rem;
    }

    .case-intake-card__footer .mud-button-root {
        width: 100%;
    }

    .case-intake-field__actions {
        justify-content: stretch;
    }

    .case-intake-field__actions .mud-button-root {
        flex: 1 1 110px;
    }
}

.ai-message__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.ai-review-summary {
    background: #eef9f6;
    border: 1px solid #a8d8ce;
    border-radius: 8px;
    color: #263441;
    max-width: 100%;
    padding: 10px 12px;
}

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

.review-diff > div {
    background: rgba(255, 255, 255, .78);
    border: 1px solid #cfe2de;
    border-radius: 8px;
    min-width: 0;
    padding: 10px;
}

.review-diff span {
    color: #177266;
    display: block;
    font-size: .72rem;
    font-weight: 850;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ai-review-summary--approved {
    background: #f4fbf8;
}

.ai-review-summary .mud-typography-caption {
    color: #177266;
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.work-action-card {
    align-items: flex-start;
    background: #f7fbfb;
    border: 1px solid #d8e8e6;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    max-width: min(760px, 100%);
    padding: 10px 12px;
}

.work-action-card > .mud-icon-root {
    background: #eaf6f3;
    border-radius: 999px;
    color: #1f7a83;
    flex: 0 0 auto;
    font-size: 1.1rem;
    height: 30px;
    padding: 6px;
    width: 30px;
}

.work-action-card .mud-typography-subtitle2 {
    color: #173b35;
    font-weight: 850;
    line-height: 1.2;
}

.work-action-card .mud-typography-caption {
    color: #647381;
    display: block;
    line-height: 1.3;
    margin-top: 3px;
}

.work-action-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.work-action-card__hint {
    color: #607182;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.work-action-card--study {
    background: #f2f8ff;
    border-color: #c9ddf1;
}

.work-action-card--study > .mud-icon-root {
    background: #e2efff;
    color: #285c91;
}

.work-action-card--validation {
    background: #fff8eb;
    border-color: #efd79d;
}

.work-action-card--validation > .mud-icon-root {
    background: #fff1cc;
    color: #93620f;
}

.work-action-card--official {
    background: #eef9f6;
    border-color: #a8d8ce;
}

.work-action-card--official > .mud-icon-root {
    background: #dff5ef;
    color: #177266;
}

.ai-composer__row {
    align-items: center;
    display: flex;
    gap: 8px;
}

.ai-typing {
    align-items: center;
    color: #667685;
    display: flex;
    gap: 8px;
}

.markdown-body {
    color: #22313f;
    font-size: .98rem;
    line-height: 1.62;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #102532;
    font-weight: 750;
    line-height: 1.25;
    margin: 14px 0 6px;
}

.markdown-body h1 {
    font-size: 1.35rem;
}

.markdown-body h2 {
    border-top: 1px solid #e2e8ee;
    font-size: 1.12rem;
    margin-top: 18px;
    padding-top: 12px;
}

.markdown-body h3 {
    font-size: 1rem;
}

.markdown-body p {
    margin: 0 0 10px;
}

.markdown-body ul,
.markdown-body ol {
    margin: 6px 0 12px;
    padding-left: 22px;
}

.markdown-body li {
    margin: 4px 0;
}

.markdown-body blockquote {
    background: #f7fbfa;
    border-left: 4px solid #277c83;
    border-radius: 0 8px 8px 0;
    margin: 10px 0;
    padding: 10px 12px;
}

.markdown-body strong {
    color: #142838;
    font-weight: 750;
}

.markdown-body :first-child {
    margin-top: 0;
}

.markdown-body :last-child {
    margin-bottom: 0;
}

.markdown-body--compact {
    font-size: .92rem;
    line-height: 1.45;
}

.markdown-body--compact h1,
.markdown-body--compact h2,
.markdown-body--compact h3 {
    font-size: .95rem;
    margin-top: 10px;
}

.markdown-body--compact h2 {
    padding-top: 8px;
}

.document-empty {
    color: #7a8793;
    padding: 18px 20px;
}

.document-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.review-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.document-panel .case-panel__header,
.review-panel .case-panel__header {
    min-height: 58px;
    padding: 11px 12px;
}

.document-panel .case-panel__title,
.review-panel .case-panel__title {
    gap: 8px;
}

.document-panel .case-panel__title .mud-typography-h6,
.review-panel .case-panel__title .mud-typography-h6 {
    font-size: 1.05rem;
}

.document-panel .case-panel__title .mud-typography-body2,
.review-panel .case-panel__title .mud-typography-body2 {
    display: none;
}

.document-upload {
    align-items: center;
    background: #203b35;
    border: 1px solid #203b35;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    font-size: .82rem;
    font-weight: 750;
    height: 34px;
    justify-content: center;
    padding: 0 11px;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.document-upload:hover {
    background: #285249;
    border-color: #285249;
}

.document-upload:active {
    transform: translateY(1px);
}

.document-upload .mud-icon-root {
    color: inherit;
    font-size: 1.05rem;
}

.document-upload__input {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.document-list,
.review-list,
.note-list,
.case-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
}

.document-panel .document-list {
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
    padding: 10px 12px;
}

.document-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e3e9ee;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 12px;
}

.document-panel .document-item {
    gap: 8px;
    padding: 9px;
}

.document-panel .document-item .mud-icon-button {
    flex: 0 0 auto;
}

.document-item .mud-icon-root {
    color: #c86f09;
}

.document-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.document-item__body .mud-typography-body2 {
    color: #1f2f3d;
    font-size: .9rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.document-item__body .mud-typography-caption {
    color: #7a8793;
    font-size: .78rem;
}

.review-list {
    flex: 1 1 auto;
    padding-top: 0;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
}

.review-item,
.review-card,
.note-item {
    background: #ffffff;
    border: 1px solid #e3e9ee;
    border-radius: 8px;
    padding: 11px;
}

.review-item__top,
.review-card__header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.review-item__content {
    color: #344452;
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.review-item__content.markdown-body {
    display: block;
}

.review-item__published {
    background: #eef9f6;
    border: 1px solid #a8d8ce;
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px;
}

.review-item__published .mud-typography-caption,
.review-item__approved-note {
    color: #177266;
    display: block;
    font-weight: 700;
    margin-top: 8px;
}

.review-queue {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px 18px;
}

.case-workspace--ai-first {
    background:
        linear-gradient(90deg, rgba(31, 122, 131, .035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(31, 122, 131, .035) 1px, transparent 1px),
        linear-gradient(180deg, #fbfcfb 0%, #f4f8f7 48%, #eef4f4 100%);
    background-size: 32px 32px, 32px 32px, auto;
    height: auto;
    min-height: calc(100vh - 64px);
    overflow: visible;
}

html:has(.case-workspace--ai-first),
body:has(.case-workspace--ai-first) {
    overflow: auto;
}

.case-workspace--ai-first > .case-hero,
.case-workspace--ai-first > .case-command-center,
.case-workspace--ai-first > .case-layout {
    align-self: center;
    max-width: 1120px;
    width: 100%;
}

.case-hero--ai-first {
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.case-flow-chip {
    align-items: center;
    background: #ecf8f4;
    border: 1px solid #b9dfd3;
    border-radius: 999px;
    color: #176c5d;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 850;
    gap: 5px;
    line-height: 1;
    padding: 7px 10px;
    white-space: nowrap;
}

.case-flow-chip .mud-icon-root {
    font-size: .95rem;
}

.case-command-center {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e6e5;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
    display: grid;
    flex: 0 0 auto;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 10px;
    padding: 12px;
}

.case-command-center__state {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.case-command-center__state > .mud-icon-root {
    background: #173b35;
    border-radius: 8px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 1.15rem;
    height: 38px;
    padding: 8px;
    width: 38px;
}

.case-command-center__state .mud-typography-caption {
    color: #607182;
    display: block;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.case-command-center__state .mud-typography-h6 {
    color: #142838;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.15;
    margin-top: 3px;
}

.case-command-center__state .mud-typography-body2 {
    color: #5d6d7b;
    line-height: 1.3;
    margin-top: 4px;
}

.case-command-center__cta.mud-button-root {
    border-radius: 8px;
    font-weight: 850;
    letter-spacing: 0;
    min-height: 44px;
    white-space: nowrap;
}

.case-command-center__chat.mud-button-root {
    border-radius: 8px;
    font-weight: 850;
    letter-spacing: 0;
    min-height: 44px;
    white-space: nowrap;
}

.case-workspace--ai-first .case-command-center__cta.mud-button-root {
    max-width: 100%;
}

.work-action-card--active {
    box-shadow: none;
}

.work-action-card__content {
    margin-top: 12px;
    max-height: 360px;
    overflow: auto;
}

.case-map-v9 {
    margin-bottom: 14px;
}

.case-layout--map-only-v91 .case-side--client {
    display: none;
}

.case-layout--map-only-v91 .case-main {
    width: 100%;
}

.case-map-experience-v9 {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
}

.case-map-v9__rail {
    align-content: start;
    align-self: start;
    display: grid;
    gap: 10px;
    height: max-content;
    position: relative;
}

.case-map-v9__rail::before {
    background: #d8e6e5;
    content: "";
    height: calc(100% - 56px);
    left: 27px;
    position: absolute;
    top: 28px;
    width: 2px;
}

.case-map-node-v9 {
    align-items: center;
    border: 1px solid #d8e6e5;
    border-radius: 8px;
    background: #ffffff;
    color: #243646;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    min-height: 66px;
    padding: 12px;
    position: relative;
    text-align: left;
    z-index: 1;
}

.case-map-node-v9__icon {
    align-items: center;
    background: #eef5f4;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.case-map-node-v9 strong,
.case-map-node-v9 small {
    display: block;
}

.case-map-node-v9 strong {
    font-weight: 850;
}

.case-map-node-v9 small {
    color: #64748b;
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.case-map-node-v9--done .case-map-node-v9__icon {
    background: #dcfce7;
    color: #15803d;
}

.case-map-node-v9--working {
    background: #f0fdfa;
    border-color: #5eead4;
}

.case-map-node-v9--working .case-map-node-v9__icon {
    background: #ccfbf1;
    color: #0f766e;
}

.case-map-node-v9--active {
    border-color: #173b35;
    background: #ecf8f4;
}

.case-map-node-v9--active .case-map-node-v9__icon,
.case-map-node-v9--selected .case-map-node-v9__icon {
    background: #173b35;
    color: #ffffff;
}

.case-map-node-v9--selected {
    box-shadow: inset 0 0 0 1px #173b35, 0 12px 24px rgba(15, 23, 42, .08);
}

.case-map-v9__detail {
    min-width: 0;
}

.case-map-detail-v9 {
    border: 1px solid #d8e6e5;
    border-radius: 8px;
    background: #ffffff;
    display: grid;
    gap: 12px;
    min-height: 520px;
    padding: 18px;
}

.case-map-detail-v9 > .mud-typography-caption {
    color: #607182;
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.map-node-panel-v91 {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.map-node-panel-v91__header {
    border-bottom: 1px solid #e0ebea;
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
}

.map-node-panel-v91__header .mud-typography-caption {
    color: #0f766e;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.map-node-panel-v91__header .mud-typography-h5 {
    color: #102333;
    font-weight: 900;
    line-height: 1.12;
}

.map-node-panel-v91__header .mud-typography-body2 {
    color: #5f7080;
}

.map-node-panel-v91__block {
    border: 1px solid #dce8e8;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.map-node-panel-v91__alert {
    border-radius: 8px;
}

.case-map-summary-v91 {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-map-summary-v91 span {
    background: #f8fbfb;
    border: 1px solid #dce8e8;
    border-radius: 8px;
    color: #64748b;
    display: block;
    font-size: .78rem;
    font-weight: 850;
    padding: 12px;
    text-transform: uppercase;
}

.case-map-summary-v91 strong {
    color: #123d35;
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 4px;
}

.ai-workbench--map-v91 {
    border: 0;
    padding: 0;
}

.ai-chat--map-v91 {
    max-height: none;
    overflow: visible;
}

.study-event-list--map-v91 {
    max-height: none;
}

.case-composer--map-v91 {
    border-top: 1px solid #e0ebea;
    padding-top: 12px;
}

.document-list--map-v91,
.review-list--map-v91 {
    max-height: none;
}

.case-ai-drawer {
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 1400;
}

.case-ai-drawer--open {
    pointer-events: auto;
}

.case-ai-drawer__scrim {
    background: rgba(15, 23, 42, .28);
    border: 0;
    inset: 0;
    opacity: 1;
    position: absolute;
}

.case-ai-drawer__panel {
    background: #ffffff;
    border-left: 1px solid #d8e6e5;
    box-shadow: -22px 0 44px rgba(15, 23, 42, .18);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    max-width: 520px;
    min-width: 420px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform .2s ease;
    width: min(520px, 92vw);
}

.case-ai-drawer--open .case-ai-drawer__panel {
    transform: translateX(0);
}

.case-ai-drawer__header {
    align-items: flex-start;
    border-bottom: 1px solid #e0ebea;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 18px;
}

.case-ai-drawer__header .mud-typography-caption {
    color: #0f766e;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.case-ai-drawer__header .mud-typography-h6 {
    color: #102333;
    font-weight: 900;
}

.case-ai-drawer__header .mud-typography-body2 {
    color: #5f7080;
}

.case-ai-drawer__panel > .map-node-panel-v91 {
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.case-ai-drawer__panel .map-node-panel-v91__header {
    display: none;
}

.case-ai-drawer__panel .ai-workbench {
    border: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 0;
}

.case-ai-drawer__panel .ai-chat {
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding: 18px;
}

.case-ai-drawer__panel .ai-composer {
    border-top: 1px solid #e0ebea;
    padding: 12px;
}

.case-journey {
    background: rgba(255, 255, 255, .72);
    border: 1px solid #dfe9ec;
    border-radius: 8px;
    display: grid;
    flex: 0 0 auto;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
    padding: 5px;
}

.case-journey__step {
    align-items: center;
    border-radius: 7px;
    color: #6b7a88;
    display: grid;
    gap: 2px 8px;
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 50px;
    padding: 7px 9px;
}

.case-journey__step em {
    align-items: center;
    background: #eef3f5;
    border-radius: 999px;
    color: #607182;
    display: inline-flex;
    font-size: .78rem;
    font-style: normal;
    font-weight: 850;
    grid-row: 1 / span 2;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.case-journey__step strong,
.case-journey__step small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-journey__step strong {
    color: #2d3d4b;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.1;
}

.case-journey__step small {
    color: #728190;
    font-size: .68rem;
    line-height: 1.1;
}

.case-journey__step--active {
    background: #173b35;
    box-shadow: 0 10px 22px rgba(23, 59, 53, .14);
}

.case-journey__step--active em {
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
}

.case-journey__step--active strong,
.case-journey__step--active small {
    color: #ffffff;
}

.case-journey__step--done {
    background: #ecf8f4;
}

.case-journey__step--done em {
    background: #1f7a43;
    color: #ffffff;
}

.case-workspace--ai-first .case-layout {
    align-items: start;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
    overflow: visible;
}

.case-workspace--ai-first .case-main,
.case-workspace--ai-first .case-side--client {
    min-width: 0;
    width: 100%;
}

.case-workspace--ai-first .case-main {
    display: block;
    height: auto;
    overflow: visible;
    padding-right: 0;
}

.case-workspace--ai-first .ai-panel {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.case-workspace--ai-first .ai-chat {
    flex: none;
    overflow: visible;
}

.case-side--client {
    overflow: visible;
    padding-right: 0;
}

.case-side--client > .case-panel,
.case-side--client > .case-status-card {
    flex: 0 0 auto;
}

.case-material-head {
    background: rgba(255, 255, 255, .86);
    border: 1px solid #dce7e9;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
    flex: 0 0 auto;
    padding: 12px;
}

.case-material-head > div:first-child {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.case-material-head > div:first-child > .mud-icon-root {
    color: #1f7a83;
    font-size: 1.25rem;
    margin-top: 1px;
}

.case-material-head .mud-typography-caption {
    color: #607182;
    display: block;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.case-material-head .mud-typography-subtitle1 {
    color: #142838;
    font-size: .98rem;
    font-weight: 850;
    line-height: 1.15;
    margin-top: 4px;
}

.case-material-head__metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.case-material-head__metrics span {
    background: #f5faf9;
    border: 1px solid #d9e8e5;
    border-radius: 8px;
    color: #617283;
    display: flex;
    flex-direction: column;
    font-size: .64rem;
    font-weight: 800;
    gap: 2px;
    padding: 7px;
    text-transform: uppercase;
}

.case-material-head__metrics strong {
    color: #173b35;
    font-size: 1.05rem;
    line-height: 1;
}

.client-guidance {
    align-items: stretch;
    background: linear-gradient(135deg, #173b35 0%, #255f58 100%);
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 16px;
    position: relative;
}

.client-guidance::after {
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    content: "";
    height: 130px;
    position: absolute;
    right: -44px;
    top: -58px;
    width: 130px;
}

.client-guidance__main {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.client-guidance__main .mud-typography-caption {
    color: rgba(255, 255, 255, .74);
    display: block;
    font-weight: 850;
    text-transform: uppercase;
}

.client-guidance__main .mud-typography-subtitle1 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.15;
    margin-top: 3px;
}

.client-guidance__main .mud-typography-body2 {
    color: rgba(255, 255, 255, .86);
    line-height: 1.35;
    margin-top: 6px;
}

.client-guidance__actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 112px);
    position: relative;
    z-index: 1;
}

.client-guidance__actions button {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    color: #173b35;
    cursor: pointer;
    display: flex;
    gap: 7px;
    justify-content: center;
    min-height: 38px;
    padding: 0 10px;
}

.client-guidance__actions button .mud-icon-root {
    color: #1f7a83;
    font-size: 1rem;
}

.client-guidance__actions button span {
    font-size: .78rem;
    font-weight: 850;
}

.client-guidance__actions button:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.quick-action-menu {
    margin-top: 10px;
}

.quick-action-menu summary {
    align-items: center;
    color: #31554f;
    cursor: pointer;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 850;
    gap: 6px;
    list-style: none;
    min-height: 32px;
}

.quick-action-menu summary::-webkit-details-marker {
    display: none;
}

.quick-action-menu summary .mud-icon-root {
    font-size: 1rem;
}

.quick-action-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-action-chips button {
    align-items: center;
    background: #f7fbfa;
    border: 1px solid #d8e6e5;
    border-radius: 999px;
    color: #16443d;
    cursor: pointer;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    gap: 6px;
    min-height: 34px;
    padding: 6px 11px;
}

.quick-action-chips button:hover {
    background: #edf8f4;
    border-color: #a8d6cc;
}

.quick-action-chips button:disabled {
    cursor: default;
    opacity: .55;
}

.quick-action-chips .mud-icon-root {
    font-size: 1rem;
}

.case-side--guided {
    gap: 10px;
}

.case-side-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-side-accordion .mud-expand-panel {
    border: 1px solid #dce8e8;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    overflow: hidden;
}

.case-side-accordion .mud-expand-panel-header {
    min-height: 50px;
}

.case-side-accordion .mud-expand-panel-text {
    color: #1d3141;
    font-weight: 850;
}

.case-side-accordion .mud-expand-panel-content {
    padding: 0 14px 14px;
}

.case-accordion-toolbar {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.case-side-accordion .case-chat {
    border: 1px solid #edf2f2;
    border-radius: 8px;
    max-height: 240px;
    min-height: 0;
}

.study-status-card {
    align-items: flex-start;
    background: #f8fbfb;
    border: 1px solid #dce8e8;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
}

.study-status-card > .mud-icon-root {
    background: #e8f3f1;
    border-radius: 8px;
    color: #1b7368;
    flex: 0 0 auto;
    padding: 6px;
}

.study-status-card--pending > .mud-icon-root {
    background: #fff5df;
    color: #a86100;
}

.study-status-card--official > .mud-icon-root {
    background: #e6f6ed;
    color: #168545;
}

.study-status-card .mud-typography-caption {
    color: #66757c;
    font-weight: 850;
    text-transform: uppercase;
}

.study-status-card .mud-typography-subtitle2 {
    color: #162f3a;
    font-weight: 900;
}

.study-status-card .mud-typography-body2 {
    color: #60736f;
}

.study-followup-card {
    align-items: flex-start;
    background: #f8fbfb;
    border: 1px solid #dce8e8;
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px;
}

.study-followup-card > .mud-icon-root {
    background: #e8f3ff;
    border-radius: 999px;
    color: #2563eb;
    padding: 8px;
}

.study-followup-card--pending {
    background: #fff8e9;
    border-color: #f4d28a;
}

.study-followup-card--pending > .mud-icon-root {
    background: #fef3c7;
    color: #b45309;
}

.study-followup-card--sent {
    background: #eef7ff;
    border-color: #b9d8ff;
}

.study-followup-card--official {
    background: #f0fbf4;
    border-color: #9bd1bd;
}

.study-followup-card--official > .mud-icon-root {
    background: #dcfce7;
    color: #15803d;
}

.study-followup-card .mud-typography-caption {
    color: #516573;
    font-weight: 900;
    text-transform: uppercase;
}

.study-followup-card .mud-typography-subtitle1 {
    color: #102333;
    font-weight: 900;
}

.study-followup-card .mud-typography-body2 {
    color: #5f7080;
}

.study-event-list {
    border: 1px solid #edf2f2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    min-height: 0;
    overflow: auto;
    padding: 10px;
}

.study-event {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.study-event__icon {
    align-items: center;
    background: #edf7f4;
    border-radius: 999px;
    color: #1b7368;
    display: flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.study-event--review .study-event__icon {
    background: #fff5df;
    color: #a86100;
}

.study-event--official .study-event__icon {
    background: #e6f6ed;
    color: #168545;
}

.study-event__body {
    background: #ffffff;
    border: 1px solid #dce8e8;
    border-radius: 8px;
    min-width: 0;
    padding: 10px;
    width: 100%;
}

.study-event__head {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.study-event__head .mud-typography-caption {
    color: #66757c;
    font-weight: 850;
    text-transform: uppercase;
}

.study-event__head .mud-typography-subtitle2 {
    color: #172b36;
    font-weight: 900;
}

.study-event__summary {
    color: #405664;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.study-event__detail {
    margin-top: 8px;
}

.study-event__detail .mud-expand-panel {
    border: 0;
    box-shadow: none;
}

.study-event__detail .mud-expand-panel-header {
    min-height: 34px;
    padding-inline: 0;
}

.study-event__meta {
    color: #80909a;
    display: block;
    margin-top: 6px;
}

.studio-work-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #d7e6e4;
    border-radius: 8px;
    background: #f8fcfb;
}

.studio-work-status > .mud-icon-root {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 8px;
    background: #164e43;
    color: #ffffff;
}

.studio-work-status--pending {
    border-color: #f6d58b;
    background: #fff9ea;
}

.studio-work-status--waiting-client {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.studio-work-status--intake {
    border-color: #99d4cc;
    background: #ecfdf9;
}

.studio-work-status .mud-typography-caption {
    color: #0f766e;
    font-weight: 850;
    text-transform: uppercase;
}

.studio-work-status .mud-typography-subtitle1 {
    color: #071a2d;
    font-weight: 850;
}

.studio-work-status .mud-typography-body2 {
    color: #526173;
}

.studio-section-label {
    display: block;
    margin: 16px 0 8px;
    color: #0f766e;
    font-weight: 850;
    text-transform: uppercase;
}

.studio-work-item-card .review-answer .mud-typography-body2 {
    white-space: pre-wrap;
}

.studio-client-draft-list {
    display: grid;
    gap: 10px;
}

.studio-client-draft-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
}

.studio-client-draft-item > .mud-icon-root {
    color: #2563eb;
}

.studio-client-draft-item .mud-typography-subtitle2 {
    color: #071a2d;
    font-weight: 850;
}

.studio-client-draft-item .mud-typography-body2 {
    color: #526173;
}

.studio-client-draft-item .mud-typography-caption {
    color: #64748b;
}

.studio-intake-panel {
    margin-bottom: 14px;
}

.studio-intake-panel--compact {
    margin-bottom: 0;
}

.studio-intake-panel--compact .studio-intake-list--detail {
    display: none;
}

.studio-intake-list--detail .studio-intake-item {
    display: grid;
    gap: 6px;
}

.studio-intake-item--pending {
    border-color: #f6d58b;
    background: #fff9ea;
}

.studio-intake-item--answered {
    border-color: #b7e4c7;
    background: #f4fbf7;
}

.studio-intake-item--unknown {
    border-color: #d7dee8;
    background: #f8fafc;
}

.case-side-accordion .case-composer {
    border-top: 0;
    padding: 10px 0 0;
}

.case-side-accordion .document-list,
.case-side-accordion .review-list {
    max-height: 240px;
}

.case-status-card {
    background: linear-gradient(135deg, #173b35 0%, #2b6c64 100%);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(23, 59, 53, .18);
    color: #ffffff;
    overflow: hidden;
    padding: 14px;
    position: relative;
}

.case-status-card::after {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    content: "";
    height: 118px;
    position: absolute;
    right: -36px;
    top: -54px;
    width: 118px;
}

.case-status-card__state {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.case-status-card__state > .mud-icon-root {
    color: #d9fff4;
    font-size: 1.55rem;
    margin-top: 2px;
}

.case-status-card .mud-typography-caption {
    color: rgba(255, 255, 255, .75);
    display: block;
    font-size: .7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.case-status-card .mud-typography-subtitle1 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.15;
}

.case-status-card > .mud-typography-body2 {
    color: rgba(255, 255, 255, .9);
    line-height: 1.35;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.case-status-card__metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

.case-status-card__metrics span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: rgba(255, 255, 255, .78);
    display: flex;
    flex-direction: column;
    font-size: .65rem;
    font-weight: 800;
    gap: 2px;
    padding: 8px;
    text-transform: uppercase;
}

.case-status-card__metrics strong {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
}

.case-panel--compact .case-panel__header {
    min-height: 56px;
}

.case-panel--compact.case-panel--conversation .case-chat {
    max-height: 250px;
    min-height: 170px;
    padding: 12px;
}

.case-panel--compact.document-panel .document-list,
.case-panel--compact.review-panel .review-list {
    max-height: 210px;
}

.case-panel--compact .case-empty {
    min-height: 130px;
    padding: 16px;
}

.case-panel--compact .case-composer {
    padding: 10px;
}

.case-panel--compact .case-composer .mud-button-root {
    min-width: 0;
}

@media (min-width: 1101px) and (max-height: 900px) {
    .case-workspace {
        padding-top: 8px;
    }

    .case-hero {
        padding: 7px 12px;
    }

    .case-title.mud-typography-h4 {
        font-size: 1.22rem;
    }

    .case-description {
        font-size: .86rem;
    }

    .case-panel__header {
        min-height: 62px;
        padding: 10px 14px;
    }

    .case-panel__title .mud-typography-body2 {
        font-size: .86rem;
    }

    .case-panel--conversation,
    .ai-panel {
        height: 100%;
        min-height: 390px;
    }

}

.review-card--pending {
    border-color: #e8c266;
    box-shadow: inset 4px 0 0 #d99b1d;
}

.review-context,
.review-answer {
    background: #f6f8fa;
    border-radius: 8px;
    margin-top: 12px;
    padding: 12px;
}

.review-answer--published {
    background: #edf8f2;
}

.review-context .mud-typography-caption,
.review-answer .mud-typography-caption {
    color: #697784;
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.review-note {
    color: #5f6f7d;
    display: block;
    margin-top: 10px;
}

.review-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.note-list {
    max-height: 340px;
    overflow-y: auto;
    padding-bottom: 0;
}

.note-item {
    background: #f6f8fa;
}

.note-item--internal {
    background: #fff8e8;
    border-color: #f1d899;
}

.studio-inbox {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.studio-inbox__hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #eef7f5 100%);
    border: 1px solid #dce5ea;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
}

.studio-inbox__hero .mud-typography-caption {
    color: #607182;
    font-weight: 800;
    text-transform: uppercase;
}

.studio-inbox__hero .mud-typography-h4 {
    color: #142838;
    font-size: 1.65rem;
    font-weight: 850;
}

.studio-inbox__metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.studio-inbox-metric {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5ea;
    border-radius: 8px;
    color: #243443;
    cursor: pointer;
    display: grid;
    gap: 4px;
    grid-template-columns: 34px min-content 1fr;
    min-height: 70px;
    padding: 14px;
    text-align: left;
}

.studio-inbox-metric .mud-icon-root {
    color: #1f7a83;
}

.studio-inbox-metric strong {
    color: #173b35;
    font-size: 1.45rem;
}

.studio-inbox-metric span {
    color: #667685;
    font-size: .82rem;
    font-weight: 750;
}

.studio-inbox-metric--active {
    background: #173b35;
    border-color: #173b35;
    box-shadow: 0 12px 28px rgba(23, 59, 53, .18);
}

.studio-inbox-metric--active,
.studio-inbox-metric--active strong,
.studio-inbox-metric--active span,
.studio-inbox-metric--active .mud-icon-root {
    color: #ffffff;
}

.studio-inbox__queue {
    border: 1px solid #dce5ea;
    border-radius: 8px;
    overflow: hidden;
}

.studio-inbox-item {
    background: #ffffff;
    border-bottom: 1px solid #e7edf0;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px 18px;
}

.studio-inbox-item:last-child {
    border-bottom: 0;
}

.studio-inbox-item__icon {
    align-items: center;
    background: #eaf3f3;
    border-radius: 999px;
    color: #1f7a83;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.studio-inbox-item--ai-review .studio-inbox-item__icon {
    background: #fff4dd;
    color: #9a6400;
}

.studio-inbox-item--unassigned-case .studio-inbox-item__icon {
    background: #eef3fb;
    color: #315f9a;
}

.studio-inbox-item__top,
.studio-inbox-item__actions,
.studio-inbox-item__chips {
    align-items: center;
    display: flex;
    gap: 8px;
}

.studio-inbox-item__top {
    justify-content: space-between;
}

.studio-inbox-item__chips {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.studio-inbox-item__detail {
    color: #4e5f6e;
    margin: 8px 0 12px;
}

.studio-clients {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-clients__hero {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #dce5ea;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 14px;
}

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

.studio-clients-metric {
    background: #ffffff;
    border: 1px solid #dce5ea;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
}

.studio-clients-metric strong {
    color: #152536;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.studio-clients-metric span {
    color: #607182;
    font-size: .72rem;
    font-weight: 700;
}

.studio-clients-metric--attention {
    background: #edf8f4;
    border-color: #b9dfd3;
}

.studio-clients__search .mud-input-control {
    margin-top: 0;
}

.studio-clients__list {
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.studio-client-card {
    background: #ffffff;
    border: 1px solid #dce5ea;
    border-radius: 8px;
    padding: 10px;
}

.studio-client-card__top {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.studio-client-card__metrics {
    align-items: center;
    color: #5d6d7b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.studio-client-card__pending {
    color: #0f6c5a;
}

.studio-client-card__latest {
    align-items: flex-start;
    background: #f7fafc;
    border: 1px solid #deebf1;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
}

.studio-client-card__latest .mud-icon-root {
    color: #1f7a83;
    font-size: 1.05rem;
    margin-top: 2px;
}

.studio-client-card__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.case-pending-chips {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 1100px) {
    html:has(.case-workspace),
    body:has(.case-workspace) {
        overflow: auto;
    }

    .case-workspace {
        height: auto;
        min-height: calc(100vh - 64px);
        overflow: visible;
    }

    .case-layout {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .case-workspace--ai-first .case-layout {
        grid-template-columns: 1fr;
    }

    .case-map-experience-v9 {
        grid-template-columns: 1fr;
    }

    .case-flow-steps-v92 .case-map-v9__rail {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        position: relative;
        scroll-snap-type: x proximity;
    }

    .case-flow-steps-v92 .case-map-v9__rail::before {
        display: none;
    }

    .case-flow-steps-v92 .case-map-node-v9 {
        flex: 0 0 min(190px, 74vw);
        min-height: 60px;
        scroll-snap-align: start;
    }

    .case-map-summary-v91 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-main {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .case-main > .case-panel:not(.case-panel--primary):not(.case-panel--conversation) {
        grid-column: auto;
    }

    .case-side {
        overflow: visible;
    }

    .case-side--client {
        overflow: visible;
    }

    .side-content {
        display: block;
    }

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

@media (max-width: 720px) {
    .studio-clients__hero {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-clients__hero .mud-button-root {
        width: 100%;
    }

    .studio-clients__metrics {
        grid-template-columns: 1fr;
    }

    .studio-client-card__actions {
        justify-content: stretch;
    }

    .studio-client-card__actions .mud-button-root {
        flex: 1 1 0;
    }

    .estudio-tabs {
        grid-template-columns: 1fr;
    }

    .case-map-node-v9 {
        min-height: 62px;
    }

    .case-map-detail-v9 {
        min-height: 0;
        padding: 12px;
    }

    .case-command-center {
        align-items: stretch;
        flex-direction: column;
    }

    .case-command-center__cta.mud-button-root,
    .case-command-center__chat.mud-button-root {
        width: 100%;
    }

    .case-map-summary-v91 {
        grid-template-columns: 1fr;
    }

    .case-ai-drawer__panel {
        border-left: 0;
        border-radius: 18px 18px 0 0;
        bottom: 0;
        box-shadow: 0 -22px 44px rgba(15, 23, 42, .22);
        height: min(86vh, 760px);
        max-width: none;
        min-width: 0;
        right: 0;
        top: auto;
        transform: translateY(105%);
        width: 100%;
    }

    .case-ai-drawer--open .case-ai-drawer__panel {
        transform: translateY(0);
    }

    .study-followup-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .study-followup-card .mud-button-root {
        grid-column: 1 / -1;
        width: 100%;
    }

    .estudio-main {
        padding: 58px 10px 12px !important;
    }

    .estudio-app-title.mud-typography-h6 {
        font-size: 1rem;
        min-width: 0;
    }

    .estudio-user-name {
        display: none;
    }

    .estudio-drawer .mud-drawer {
        max-width: min(82vw, 300px);
    }

    .studio-inbox {
        gap: 10px;
    }

    .studio-inbox__hero {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .studio-inbox__hero .mud-button-root {
        width: 100%;
    }

    .studio-inbox__hero .mud-typography-h4 {
        font-size: 1.35rem;
        line-height: 1.1;
    }

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

    .studio-inbox-metric {
        grid-template-columns: 28px 1fr;
        min-height: 78px;
        padding: 12px;
    }

    .studio-inbox-metric strong {
        font-size: 1.3rem;
        line-height: 1;
    }

    .studio-inbox-metric span {
        grid-column: 1 / -1;
        line-height: 1.15;
    }

    .studio-inbox-item {
        gap: 10px;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 14px 12px;
    }

    .studio-inbox-item__icon {
        height: 34px;
        width: 34px;
    }

    .studio-inbox-item__top,
    .studio-inbox-item__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-inbox-item__chips {
        justify-content: flex-start;
    }

    .studio-inbox-item__actions .mud-button-root {
        width: 100%;
    }

    .mud-table-container {
        overflow-x: auto;
    }

    .mud-table-root {
        min-width: 760px;
    }

    .case-workspace {
        min-height: calc(100vh - 56px);
        padding: 8px;
    }

    .case-hero,
    .case-panel__header,
    .case-composer {
        align-items: stretch;
        flex-direction: column;
    }

    .case-hero {
        gap: 8px;
        margin-bottom: 8px;
        padding: 10px;
    }

    .case-title.mud-typography-h4 {
        font-size: 1.25rem;
    }

    .case-description {
        font-size: .84rem;
    }

    .case-hero__meta {
        align-items: flex-start;
        justify-content: flex-start;
        min-width: 0;
    }

    .case-command-center {
        align-items: stretch;
        grid-template-columns: 1fr;
        margin-bottom: 8px;
        padding: 10px;
    }

    .case-command-center__state {
        gap: 10px;
    }

    .case-command-center__state > .mud-icon-root {
        height: 34px;
        padding: 7px;
        width: 34px;
    }

    .case-command-center__state .mud-typography-h6 {
        font-size: 1rem;
    }

    .case-command-center__cta.mud-button-root {
        width: 100%;
    }

    .case-journey {
        gap: 4px;
        grid-template-columns: 1fr;
        margin-bottom: 8px;
    }

    .case-journey__step {
        grid-template-columns: 26px minmax(0, 1fr);
        min-height: 44px;
        padding: 7px;
    }

    .case-journey__step em {
        height: 26px;
        width: 26px;
    }

    .case-panel__header.ai-panel__header {
        gap: 10px;
    }

    .ai-modebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .ai-modebar__button {
        min-height: 38px;
        white-space: normal;
    }

    .client-guidance {
        grid-template-columns: 1fr;
        padding: 14px;
    }

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

    .client-guidance__actions button {
        min-height: 42px;
    }

    .quick-action-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-action-chips button {
        justify-content: center;
        min-width: 0;
        white-space: normal;
    }

    .case-accordion-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .case-side-accordion .case-chat,
    .case-side-accordion .document-list,
    .case-side-accordion .review-list {
        max-height: none;
    }

    .case-material-head__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .case-status-card__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .case-panel--compact.case-panel--conversation .case-chat,
    .case-panel--compact.document-panel .document-list,
    .case-panel--compact.review-panel .review-list {
        max-height: none;
    }

    .message-row,
    .message-row--review,
    .message-row--validated,
    .ai-message,
    .ai-message--me {
        max-width: 100%;
    }

    .case-chat,
    .ai-chat {
        max-height: none;
        min-height: 260px;
    }

    .case-panel--conversation,
    .ai-panel {
        height: auto;
        min-height: 360px;
    }

    .estudio-workspace {
        padding: 10px;
    }

    .estudio-workspace .case-layout,
    .estudio-workspace .case-main,
    .estudio-workspace .case-side {
        gap: 10px;
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .estudio-workspace .case-main > .case-panel:first-child,
    .estudio-workspace .case-panel--conversation,
    .estudio-workspace .case-main > .case-panel:nth-child(3) {
        flex: 0 0 auto;
        max-height: none;
        min-height: 0;
    }

    .review-queue,
    .note-list {
        max-height: none;
        overflow: visible;
    }

    .review-card,
    .document-item,
    .note-item {
        overflow-wrap: anywhere;
    }

    .review-card__header,
    .review-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .review-actions .mud-button-root {
        width: 100%;
    }

    .case-action-stack .mud-button-root,
    .case-composer .mud-button-root {
        width: 100%;
    }

    .document-item {
        align-items: flex-start;
        gap: 10px;
    }

    .review-panel {
        display: block;
    }

    .ai-message--me {
        max-width: 100%;
    }
}
