:root {
    --report-ink: #173f47;
    --report-copy: #5e7c82;
    --report-muted: #8aa0a4;
    --report-green: #078f81;
    --report-green-dark: #06695f;
    --report-mint: #e9f7f3;
    --report-line: #d7e9e5;
    --report-surface: #ffffff;
    --report-soft: #f6faf9;
}

.ai-report-editor-shell {
    display: flex;
    width: calc(100% + 30px);
    min-height: 100vh;
    flex-direction: column;
    margin-right: -15px;
    margin-left: -15px;
    overflow-x: hidden;
    color: var(--report-ink);
    background: linear-gradient(135deg, #f8fbfa 0%, #edf8f5 48%, #f7fbfa 100%);
}

.ai-report-editor-shell > menu-get-things-done,
.ai-report-editor-shell > footer-site { flex: 0 0 auto; }

.ai-report-editor-shell #set-footer.ai-app-footer {
    right: 0;
    left: 0;
    width: auto;
}

.ai-report-editor-page {
    width: min(1480px, calc(100% - 56px));
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 112px 0 84px;
    font-family: Ubuntu, sans-serif;
}

.ai-report-steps {
    display: grid;
    width: min(920px, 100%);
    align-items: center;
    grid-template-columns: minmax(180px, 1fr) 72px minmax(180px, 1fr) 72px minmax(180px, 1fr);
    margin: 0 auto 28px;
}

.ai-report-step {
    display: grid;
    min-width: 0;
    align-items: center;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    padding: 8px;
    border: 0;
    border-radius: 14px;
    outline: none;
    color: #789297;
    background: transparent;
    text-align: left;
    transition: color .2s ease, background .2s ease;
}

.ai-report-step:hover { color: var(--report-green); background: rgba(255,255,255,.62); }
.ai-report-step__number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe2de;
    border-radius: 50%;
    color: #749298;
    background: #fff;
    box-shadow: 0 6px 16px rgba(22, 79, 73, .06);
}
.ai-report-step__copy small,
.ai-report-step__copy strong,
.ai-report-step__copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-report-step__copy small { margin-bottom: 1px; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.ai-report-step__copy strong { color: var(--report-ink); font-size: 12px; }
.ai-report-step__copy em { margin-top: 2px; font-size: 9px; font-style: normal; }
.ai-report-step.is-active { color: var(--report-green); background: rgba(255,255,255,.84); }
.ai-report-step.is-active .ai-report-step__number { border-color: var(--report-green); color: #fff; background: var(--report-green); box-shadow: 0 8px 20px rgba(7,143,129,.2); }
.ai-report-step.is-complete .ai-report-step__number { border-color: #a5d8ce; color: var(--report-green); background: var(--report-mint); }
.ai-report-steps__line { display: block; height: 1px; background: #cfdfdc; }
.ai-report-steps__line.is-complete { background: #60c8b4; }

.ai-report-editor-page .ai-report-hero {
    display: grid;
    align-items: center;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 20px;
    margin-bottom: 24px;
    padding: 26px 30px;
    border: 1px solid rgba(204, 227, 222, .92);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 48px rgba(31, 91, 83, .08);
}

.ai-report-editor-page .ai-report-hero__icon,
.ai-report-card__head > span,
.ai-report-result-toolbar__title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--report-green);
    background: var(--report-mint);
}
.ai-report-editor-page .ai-report-hero__icon { width: 68px; height: 68px; border: 1px solid #c7e7e0; border-radius: 18px; font-size: 26px; }
.ai-report-editor-page .ai-report-hero small,
.ai-report-section-head small,
.ai-report-filter-area__head small,
.ai-report-result-toolbar small { color: var(--report-green); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.ai-report-editor-page .ai-report-hero h1 { margin: 4px 0 5px; color: var(--report-ink); font-size: 25px; font-weight: 600; }
.ai-report-editor-page .ai-report-hero p { max-width: 850px; margin: 0; color: var(--report-copy); font-size: 11px; line-height: 1.55; }
.ai-report-editor-page .ai-report-hero__metric {
    display: inline-flex;
    min-width: 108px;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    border-radius: 14px;
    color: var(--report-copy);
    background: var(--report-mint);
    font-size: 9px;
    font-weight: 700;
}
.ai-report-editor-page .ai-report-hero__metric b { color: var(--report-green-dark); font-size: 21px; }
.ai-report-editor-page .ai-report-hero__summary { display: flex; min-width: 150px; align-items: stretch; flex-direction: column; gap: 7px; }
.ai-report-new-action {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 8px 17px;
    border: 1px solid #08796f;
    border-radius: 14px;
    outline: none;
    color: #fff;
    background: linear-gradient(135deg, #08a18f 0%, #07766c 100%);
    box-shadow: 0 11px 24px rgba(7, 126, 113, .24);
    font-family: Ubuntu, sans-serif;
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ai-report-new-action > i { font-size: 19px; }
.ai-report-new-action small,
.ai-report-new-action strong { display: block; }
.ai-report-new-action small { margin-bottom: 2px; font-size: 6px; font-weight: 800; letter-spacing: .12em; opacity: .78; }
.ai-report-new-action strong { font-size: 11px; font-weight: 700; white-space: nowrap; }
.ai-report-new-action:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 28px rgba(7, 126, 113, .29); }
.ai-report-new-action:focus-visible { box-shadow: 0 0 0 3px rgba(82, 202, 184, .28), 0 14px 28px rgba(7, 126, 113, .29); }
.ai-report-save-state {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #cfe4df;
    border-radius: 999px;
    color: #62827f;
    background: #f4f9f8;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}
.ai-report-save-state i { color: #3cae9d; font-size: 9px; }
.ai-report-save-state.is-dirty { border-color: #efcf9b; color: #906525; background: #fff7e9; }
.ai-report-save-state.is-dirty i { color: #e3a844; font-size: 6px; }

.ai-report-identity {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(280px, .9fr) minmax(300px, 1.1fr) auto;
    gap: 20px;
    margin-bottom: 22px;
    padding: 20px 22px;
    border: 1px solid #b8ddd5;
    border-radius: 20px;
    background: rgba(248, 253, 251, .96);
    box-shadow: 0 12px 30px rgba(26, 77, 71, .06);
}
.ai-report-identity__head { display: grid; align-items: center; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
.ai-report-identity__head > span { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid #c7e7e0; border-radius: 12px; color: var(--report-green); background: var(--report-mint); font-size: 18px; }
.ai-report-identity__head small { color: var(--report-green); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.ai-report-identity__head h2 { margin: 3px 0; color: var(--report-ink); font-size: 14px; }
.ai-report-identity__head p { margin: 0; color: var(--report-copy); font-size: 9px; line-height: 1.4; }
.ai-report-identity__actions { display: flex; align-items: stretch; gap: 9px; }

.ai-report-select-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ai-report-card,
.ai-report-result-card {
    border: 1px solid var(--report-line);
    border-radius: 22px;
    background: var(--report-surface);
    box-shadow: 0 14px 38px rgba(26, 77, 71, .07);
}
.ai-report-card { padding: 26px; }
.ai-report-card__head { display: grid; align-items: center; grid-template-columns: 58px minmax(0, 1fr); gap: 15px; margin-bottom: 24px; }
.ai-report-card__head > span { width: 56px; height: 56px; border: 1px solid #cce5e0; border-radius: 15px; font-size: 21px; }
.ai-report-card__head small { color: var(--report-green); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.ai-report-card__head h2,
.ai-report-section-head h2,
.ai-report-filter-area__head h2,
.ai-report-result-toolbar h2 { margin: 3px 0 4px; color: var(--report-ink); font-size: 16px; font-weight: 650; }
.ai-report-card__head p,
.ai-report-section-head p,
.ai-report-filter-area__head p { margin: 0; color: var(--report-copy); font-size: 10px; line-height: 1.45; }

.ai-report-field { display: block; margin: 0; }
.ai-report-field > span:first-child { display: block; margin: 0 0 7px 3px; color: #6e8b90; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.ai-report-field > span:first-child em { margin-left: 5px; color: #9aacaf; font-style: normal; font-weight: 600; }
.ai-report-field__control { display: grid; height: 48px; align-items: center; grid-template-columns: 38px minmax(0, 1fr); border: 1px solid #d5e6e3; border-radius: 12px; background: #fbfdfc; overflow: hidden; }
.ai-report-field__control > i { color: #6ca69d; text-align: center; }
.ai-report-field__control input,
.ai-report-field__control select { width: 100%; height: 100%; padding: 0 13px 0 0; border: 0; outline: none; color: var(--report-ink); background: transparent; font: 10px Ubuntu, sans-serif; }

.ai-report-saved-preview,
.ai-report-draft-note { display: grid; min-height: 78px; align-items: center; gap: 13px; margin: 16px 0 20px; padding: 13px 15px; border-radius: 14px; background: var(--report-soft); }
.ai-report-saved-preview { grid-template-columns: 42px minmax(0, 1fr); border: 1px solid #e0ecea; }
.ai-report-saved-preview__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 11px; color: var(--report-green); background: #e3f4f0; }
.ai-report-saved-preview small,
.ai-report-saved-preview strong,
.ai-report-saved-preview p { display: block; margin: 0; }
.ai-report-saved-preview small { color: var(--report-green); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ai-report-saved-preview strong { margin: 2px 0; color: var(--report-ink); font-size: 11px; }
.ai-report-saved-preview p { color: var(--report-muted); font-size: 9px; }
.ai-report-draft-note { grid-template-columns: 40px minmax(0, 1fr); color: var(--report-copy); }
.ai-report-draft-note > i { color: var(--report-green); font-size: 22px; text-align: center; }
.ai-report-draft-note strong { display: block; margin-bottom: 3px; color: var(--report-ink); font-size: 10px; }
.ai-report-draft-note span { font-size: 9px; line-height: 1.4; }

.ai-report-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: auto;
    padding: 9px 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    outline: none;
    font: 700 10px Ubuntu, sans-serif;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    line-height: 1.2;
    overflow: visible;
}
.ai-report-button > span { display: block; text-align: left; }
.ai-report-button > span small,
.ai-report-button > span strong { display: block; }
.ai-report-button > span small { margin-bottom: 2px; font-size: 6px; font-weight: 800; letter-spacing: .1em; opacity: .72; }
.ai-report-button > span strong { font-size: 10px; font-weight: 700; }
.ai-report-button:not(:disabled):hover { transform: translateY(-1px); }
.ai-report-button:disabled { cursor: not-allowed; opacity: .45; }
.ai-report-card > .ai-report-button { width: 100%; }
.ai-report-card--saved > .ai-report-field + .ai-report-button { margin-top: 20px; }
.ai-report-button--primary { color: #fff; background: var(--report-green); box-shadow: 0 9px 20px rgba(7,143,129,.17); }
.ai-report-button--primary:hover { background: #077b70; }
.ai-report-button--secondary { border-color: #9bcfc5; color: var(--report-green-dark); background: #eef8f5; }
.ai-report-button--ghost { border-color: #d0e1de; color: var(--report-copy); background: #fff; }

.ai-report-type-card { margin-bottom: 22px; }
.ai-report-section-head { margin-bottom: 18px; }
.ai-report-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-report-type-option { display: grid; min-height: 88px; align-items: center; grid-template-columns: 52px minmax(0, 1fr) 22px; gap: 13px; padding: 14px; border: 1px solid #d8e7e4; border-radius: 15px; outline: none; color: var(--report-copy); background: #fafcfb; text-align: left; }
.ai-report-type-option > span { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 13px; color: #78959a; background: #eaf1f0; font-size: 19px; }
.ai-report-type-option small,
.ai-report-type-option strong,
.ai-report-type-option em { display: block; }
.ai-report-type-option small { color: #8ba0a3; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.ai-report-type-option strong { margin: 2px 0 3px; color: var(--report-ink); font-size: 13px; }
.ai-report-type-option em { font-size: 9px; font-style: normal; }
.ai-report-type-option > i { color: #c1d0ce; font-size: 16px; }
.ai-report-type-option.is-selected { border-color: var(--report-green); background: #eef9f6; box-shadow: inset 4px 0 0 var(--report-green); }
.ai-report-type-option.is-selected > span { color: var(--report-green); background: #dcefeb; }
.ai-report-type-option.is-selected > i { color: var(--report-green); }

.ai-report-filter-area { margin-top: 24px; }
.ai-report-filter-area__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 2px 14px; }
.ai-report-filter-area__head > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--report-green-dark); background: #dff2ed; font-size: 9px; font-weight: 800; }
.ai-report-filter-grid { display: grid; gap: 11px; }
.ai-report-filter-group { border: 1px solid var(--report-line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(34, 77, 72, .045); overflow: hidden; }
.ai-report-filter-group.has-criteria { border-color: #a8d8ce; }
.ai-report-filter-group__head { display: grid; width: 100%; min-height: 68px; align-items: center; grid-template-columns: 43px minmax(0, 1fr) 34px 18px; gap: 12px; padding: 11px 16px; border: 0; outline: none; color: var(--report-copy); background: #fff; text-align: left; }
.ai-report-filter-group__icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; color: #668c91; background: #eef4f3; }
.ai-report-filter-group.has-criteria .ai-report-filter-group__icon { color: var(--report-green); background: var(--report-mint); }
.ai-report-filter-group__copy strong,
.ai-report-filter-group__copy em { display: block; }
.ai-report-filter-group__copy strong { margin-bottom: 3px; color: var(--report-ink); font-size: 11px; }
.ai-report-filter-group__copy em { font-size: 9px; font-style: normal; }
.ai-report-filter-group__count { display: inline-flex; width: 30px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; color: #749095; background: #edf3f2; font-size: 9px; font-weight: 800; }
.ai-report-filter-group.has-criteria .ai-report-filter-group__count { color: #fff; background: var(--report-green); }
.ai-report-filter-group__chevron { transition: transform .2s ease; }
.ai-report-filter-group.is-open .ai-report-filter-group__chevron { transform: rotate(180deg); }
.ai-report-filter-group__body { padding: 5px 16px 16px 71px; border-top: 1px solid #edf4f2; background: #fcfefd; }
.ai-report-filter-empty { display: flex; align-items: center; gap: 9px; padding: 13px 0; color: #8ba0a3; font-size: 9px; }
.ai-report-filter-control { margin: 10px 0; border: 1px solid #dce9e7; border-radius: 14px; background: #fff; overflow: visible; box-shadow: 0 5px 16px rgba(31, 86, 79, .035); }
.ai-report-filter-control dynamic-filter { display: block; }
.ai-report-filter-control dynamic-filter > .container-fluid,
.ai-report-filter-selector dynamic-filter-selector > .container-fluid { height: auto !important; min-height: 64px; padding: 0 !important; }
.ai-report-filter-selector { margin: 10px 0; border: 1px dashed #9bcfc5; border-radius: 14px; background: #f0f9f6; overflow: hidden; }

/* Dynamic criteria: modern field language shared by text, lists, dates and switches. */
.ai-report-criterion-row {
    display: flex;
    min-height: 76px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
}

.ai-report-criterion-kind {
    display: grid;
    min-width: 184px;
    min-height: 50px;
    align-items: center;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 11px 6px 7px;
    border: 1px solid #d8e9e5;
    border-radius: 12px;
    background: #f5faf8;
}
.ai-report-criterion-kind__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--report-green);
    background: #e1f3ee;
}
.ai-report-criterion-kind__copy { min-width: 0; }
.ai-report-criterion-kind__copy small,
.ai-report-criterion-kind__copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-report-criterion-kind__copy small { margin-bottom: 2px; color: #7f999d; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ai-report-criterion-kind__copy strong { color: var(--report-ink); font-size: 10px; font-weight: 700; }
.ai-report-criterion-separator { margin: 0 2px; color: #9ab2b0; font-size: 10px; }

.ai-report-criterion-fields {
    display: flex;
    min-width: 240px;
    flex: 1 1 420px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-report-criterion-field {
    display: grid;
    min-width: 220px;
    max-width: 460px;
    min-height: 48px;
    flex: 1 1 250px;
    align-items: stretch;
    grid-template-columns: 40px minmax(0, 1fr);
    border: 1px solid #d5e6e3;
    border-radius: 11px;
    background: #fbfdfc;
    overflow: hidden;
}
.ai-report-criterion-field__icon {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #deece9;
    color: #5d9b92;
    background: #edf8f5;
    font-size: 13px;
}
.ai-report-criterion-field__control {
    min-width: 0;
    min-height: 46px;
    margin: 0 !important;
    padding: 5px 11px 2px !important;
    box-sizing: border-box;
    background: transparent;
}
.ai-report-criterion-field__control--switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 11px !important;
}
.ai-report-criterion-field__control--switch small {
    color: #708e92;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
}
.ai-report-criterion-field__control--switch md-switch { margin: 0; }
.ai-report-criterion-field__control--switch md-switch span { color: var(--report-copy); font-size: 9px; }
.ai-report-criterion-field:has(input:disabled),
.ai-report-criterion-field:has(md-select[disabled]),
.ai-report-criterion-field:has(md-switch[disabled]) { background: #f3f7f6; }

.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container {
    margin: 0;
    box-sizing: border-box;
}
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> i) {
    display: flex;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 42px;
    min-height: 42px;
    flex: 0 0 38px !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    color: #5d9b92;
    background: #edf8f5;
}
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> i) > i {
    margin: 0 !important;
    color: inherit;
    font-size: 13px;
}
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:not(:has(> input)):not(:has(> md-select)):not(:has(> md-datepicker)):not(:has(> md-switch)):not(:has(> i)) {
    width: 2px;
    min-width: 0;
    max-width: 2px;
    flex: 0 0 2px !important;
    padding: 0;
    overflow: hidden;
}
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> input),
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> md-select),
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> md-datepicker),
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> md-switch) {
    min-width: 150px;
    max-width: 360px;
    min-height: 48px;
    flex: 1 1 190px !important;
    padding: 5px 11px 3px;
    border: 1px solid #d5e6e3;
    border-radius: 11px;
    background: #fbfdfc;
}
.ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> md-switch) {
    display: flex;
    align-items: center;
    padding-top: 3px;
}
.ai-report-dynamic-filter md-input-container > label,
.ai-report-criterion-picker__field > label {
    color: #708e92 !important;
    font-size: 8px !important;
    font-weight: 800;
    letter-spacing: .04em;
}
.ai-report-dynamic-filter md-input-container .md-input,
.ai-report-dynamic-filter md-input-container input,
.ai-report-dynamic-filter md-input-container md-select .md-select-value,
.ai-report-criterion-picker__field md-select .md-select-value {
    border: 0 !important;
    color: var(--report-ink);
    font: 500 10px Ubuntu, sans-serif;
    box-shadow: none !important;
}
.ai-report-dynamic-filter md-input-container input { height: 32px; }
.ai-report-dynamic-filter md-input-container md-select { margin-top: 1px; }
.ai-report-dynamic-filter md-input-container md-select .md-select-value,
.ai-report-criterion-picker__field md-select .md-select-value { min-height: 30px; align-items: center; }
.ai-report-dynamic-filter md-input-container md-datepicker {
    display: flex;
    min-height: 32px;
    align-items: center;
    padding: 0;
    background: transparent;
}
.ai-report-dynamic-filter md-input-container .md-datepicker-input-container { width: 100%; margin: 0; border: 0; }
.ai-report-dynamic-filter md-input-container .md-datepicker-input { width: 100%; min-width: 80px; }
.ai-report-dynamic-filter md-input-container md-switch { margin: 0; }
.ai-report-dynamic-filter md-input-container[disabled],
.ai-report-dynamic-filter md-input-container:has(input:disabled),
.ai-report-dynamic-filter md-input-container:has(md-select[disabled]) { background: #f3f7f6; }

.ai-report-criterion-actions {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-left: auto;
}
.ai-report-criterion-action {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cddfdb;
    border-radius: 10px;
    outline: none;
    color: #67858a;
    background: #fff;
    transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}
.ai-report-criterion-action:hover { transform: translateY(-1px); border-color: #96cfc4; color: var(--report-green); background: #f2faf8; }
.ai-report-criterion-action.is-primary { border-color: var(--report-green); color: #fff; background: var(--report-green); box-shadow: 0 6px 14px rgba(7, 143, 129, .17); }
.ai-report-criterion-action.is-danger:hover { border-color: #e3b5ac; color: #b55847; background: #fff4f1; }
.ai-report-criterion-pending {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    color: #9a614f;
    background: #fff1ed;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.ai-report-criterion-picker {
    display: grid;
    min-height: 68px;
    align-items: center;
    grid-template-columns: 42px minmax(240px, 1fr) 38px;
    gap: 10px;
    padding: 9px 11px;
}
.ai-report-criterion-picker__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--report-green);
    background: #dff2ed;
}
.ai-report-criterion-picker__field {
    min-height: 48px;
    margin: 0;
    padding: 4px 11px 2px;
    border: 1px solid #cce3de;
    border-radius: 11px;
    background: #fff;
}
.ai-report-criterion-picker__field md-select { margin-top: 2px; }
.ai-report-criterion-picker__field md-select .md-select-value.md-select-placeholder { color: #8ca2a5; }
.ai-report-filter-errors p { margin: 5px 0; padding: 8px 10px; border-radius: 8px; color: #a05c4d; background: #fff1ee; font-size: 9px; }
.ai-report-filter-errors i { margin-right: 7px; }
.ai-report-add-filter {
    display: grid;
    width: min(270px, 100%);
    min-height: 52px;
    align-items: center;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 10px;
    margin-top: 11px;
    padding: 7px 10px 7px 7px;
    border: 1px solid #a9d7ce;
    border-radius: 12px;
    outline: none;
    color: var(--report-green-dark);
    background: #eef8f5;
    text-align: left;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ai-report-add-filter:hover { transform: translateY(-1px); border-color: var(--report-green); background: #e5f5f1; box-shadow: 0 7px 17px rgba(31,86,79,.08); }
.ai-report-add-filter__icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: var(--report-green); font-size: 11px; }
.ai-report-add-filter__copy small,
.ai-report-add-filter__copy strong { display: block; }
.ai-report-add-filter__copy small { margin-bottom: 2px; color: #75948f; font: 800 6px Ubuntu, sans-serif; letter-spacing: .11em; }
.ai-report-add-filter__copy strong { color: var(--report-ink); font: 700 10px Ubuntu, sans-serif; }
.ai-report-add-filter__arrow { justify-self: center; color: #6e9f98; font-size: 10px; }

.ai-report-empty-state { padding: 52px 20px; border: 1px dashed #bfdcd6; border-radius: 20px; background: rgba(255,255,255,.68); text-align: center; }
.ai-report-empty-state > span { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; color: var(--report-green); background: var(--report-mint); font-size: 20px; }
.ai-report-empty-state h2 { margin: 13px 0 6px; color: var(--report-ink); font-size: 15px; }
.ai-report-empty-state p { margin: 0; color: var(--report-copy); font-size: 10px; }
.ai-report-empty-state--inside { margin: 18px; padding: 36px 20px; border: 0; background: #f7faf9; }

.ai-report-message { display: flex; align-items: center; gap: 9px; margin: 16px 0; padding: 11px 14px; border: 1px solid #f0c8bf; border-radius: 10px; color: #995848; background: #fff3f0; font-size: 10px; }
.ai-report-message.is-success { border-color: #b6ddd5; color: var(--report-green-dark); background: #edf8f5; }
.ai-report-persistence { display: grid; align-items: end; grid-template-columns: minmax(260px, 1fr) auto; gap: 14px; margin-top: 20px; padding: 17px; border: 1px solid var(--report-line); border-radius: 16px; background: rgba(255,255,255,.9); }
.ai-report-actions {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--report-line);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 28px rgba(26,77,71,.055);
    overflow: visible;
}
.ai-report-actions .ai-report-button { min-width: 190px; min-height: 48px; }

.ai-report-result-card { overflow: hidden; }
.ai-report-result-toolbar { display: grid; align-items: center; grid-template-columns: minmax(230px, .8fr) minmax(500px, 1.2fr); gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--report-line); background: #fbfdfc; }
.ai-report-result-toolbar__title { display: grid; align-items: center; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
.ai-report-result-toolbar__title > span { width: 46px; height: 46px; border-radius: 12px; }
.ai-report-result-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-report-result-controls > label { min-width: 0; margin: 0; }
.ai-report-result-controls > label > span { display: block; margin: 0 0 4px 2px; color: #789195; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.ai-report-result-controls md-select { display: flex; height: 42px; align-items: center; padding: 0 12px; border: 1px solid #d4e5e2; border-radius: 10px; background: #fff; font-size: 9px; }
.ai-report-result-loading { display: flex; min-height: 250px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--report-copy); }
.ai-report-result-loading strong { color: var(--report-ink); font-size: 12px; }
.ai-report-result-loading span { font-size: 9px; }
.ai-report-result-content { padding: 20px; }
.ai-report-result-group { margin-bottom: 18px; border: 1px solid #dce9e7; border-radius: 15px; background: #f8fbfa; overflow: hidden; }
.ai-report-result-group__head { display: grid; min-height: 58px; align-items: center; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; padding: 10px 14px; border-bottom: 1px solid #dfecea; background: #eef8f5; }
.ai-report-result-group__icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: var(--report-green); background: #fff; }
.ai-report-result-group__name { color: var(--report-ink); font-size: 11px; }
.ai-report-result-label { display: inline-flex; margin-right: 5px; padding: 4px 8px; border-radius: 999px; color: #fff; font-size: 8px; }
.ai-report-result-group__count { padding: 6px 10px; border: 1px solid #c8e1dc; border-radius: 999px; color: var(--report-green-dark); background: #fff; font-size: 8px; font-weight: 800; }
.ai-report-result-list { display: grid; gap: 9px; padding: 11px; }
.ai-report-task-result,
.ai-report-project-result { display: block; width: 100%; padding: 0; border: 1px solid #e0ebe9; border-radius: 12px; outline: none; background: #fff; text-align: left; overflow: hidden; }
.ai-report-task-result:hover,
.ai-report-project-result:hover { border-color: #9bcfc5; box-shadow: 0 6px 17px rgba(31,86,79,.08); }
.ai-report-result-list__more { display: flex; justify-content: center; gap: 8px; padding: 3px 0 2px; }
.ai-report-result-list__more button { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #c7dfda; border-radius: 9px; color: var(--report-green-dark); background: #f2f9f7; font: 700 8px Ubuntu, sans-serif; }

@media (max-width: 960px) {
    .ai-report-editor-page { width: min(100% - 24px, 1480px); padding-top: 92px; }
    .ai-report-steps { grid-template-columns: repeat(3, 1fr); }
    .ai-report-steps__line { display: none; }
    .ai-report-select-grid,
    .ai-report-type-options { grid-template-columns: 1fr; }
    .ai-report-result-toolbar { grid-template-columns: 1fr; }
    .ai-report-identity { grid-template-columns: 1fr 1fr; }
    .ai-report-identity__head { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .ai-report-steps { gap: 4px; }
    .ai-report-step { grid-template-columns: 36px minmax(0, 1fr); gap: 6px; }
    .ai-report-step__number { width: 34px; height: 34px; }
    .ai-report-step__copy em { display: none; }
    .ai-report-editor-page .ai-report-hero { grid-template-columns: 54px minmax(0, 1fr); padding: 18px; border-radius: 18px; }
    .ai-report-editor-page .ai-report-hero__icon { width: 52px; height: 52px; border-radius: 14px; font-size: 19px; }
    .ai-report-editor-page .ai-report-hero__summary { grid-column: 1 / -1; }
    .ai-report-editor-page .ai-report-hero__metric { width: 100%; }
    .ai-report-card { padding: 18px; }
    .ai-report-filter-group__body { padding-left: 12px; }
    .ai-report-criterion-kind { width: 100%; }
    .ai-report-criterion-separator { display: none; }
    .ai-report-criterion-fields { width: 100%; min-width: 0; flex-basis: 100%; }
    .ai-report-criterion-field { width: 100%; min-width: 0; max-width: none; flex-basis: 100%; }
    .ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> input),
    .ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> md-select),
    .ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> md-datepicker),
    .ai-report-dynamic-filter .ai-report-criterion-row > md-input-container:has(> md-switch) { max-width: none; }
    .ai-report-criterion-actions { width: 100%; }
    .ai-report-criterion-picker { grid-template-columns: 38px minmax(0, 1fr) 38px; padding: 8px; }
    .ai-report-persistence { grid-template-columns: 1fr; }
    .ai-report-identity { grid-template-columns: 1fr; }
    .ai-report-identity__head { grid-column: auto; }
    .ai-report-identity__actions { flex-direction: column; }
    .ai-report-result-controls { grid-template-columns: 1fr; }
    .ai-report-actions { align-items: stretch; flex-direction: column; }
}
