.report-workspace{min-width:0}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.report-heading h1{font-size:1.65rem;margin:8px 0}.report-heading p{color:var(--muted,#64748b);line-height:1.9}.report-avatar{width:72px;height:72px;object-fit:cover;border-radius:22px}.report-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.report-score{display:flex;justify-content:space-between;align-items:center;padding:24px;border-radius:20px;background:rgba(45,107,213,.08)}.report-score strong{display:block;font-size:3rem;line-height:1.5}.report-score strong small{font-size:1rem}.report-score> b{padding:10px 20px;border-radius:40px;background:rgba(20,150,100,.13);color:#148559}.report-score.failed>b{background:rgba(210,65,70,.12);color:#c74448}.report-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:20px 0}.report-stats>div{padding:16px;border:1px solid var(--border,#dde3ed);border-radius:14px}.report-stats span,.report-stats b{display:block}.report-stats b{font-size:1.6rem;margin-top:8px}.report-table-scroll{max-width:100%;overflow:auto}.report-table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.8}.report-table th,.report-table td{padding:13px 12px;text-align:right;border-bottom:1px solid var(--border,#dde3ed);vertical-align:top}.report-table small{display:block;color:var(--muted,#64748b);max-width:320px}.report-state{padding:4px 8px;border-radius:8px;white-space:nowrap}.report-state.correct{background:rgba(20,150,100,.12)}.report-state.wrong{background:rgba(210,65,70,.12)}.report-state.cancelled{background:rgba(210,160,30,.15)}.report-warning{padding:14px;border-radius:12px;background:rgba(210,160,30,.12)}.report-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}.report-card-score{font-size:2.2rem;font-weight:700}.report-card-score small{font-size:1rem}.report-chart{display:block;width:100%;max-height:340px;color:var(--primary,#2d6bd5);direction:ltr}.report-workspace>.module-card{margin-top:20px}.answer-results{border-top:1px solid var(--border,#dde3ed);padding-top:16px;margin-top:12px;display:grid;gap:10px}.answer-results h3{margin:0}.report-dialog{width:min(660px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid var(--border,#dde3ed);border-radius:22px;padding:24px;background:var(--surface,#fff);color:var(--text,#172338)}.report-dialog::backdrop{background:#10203888;backdrop-filter:blur(5px)}.report-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.report-dialog label{display:grid;gap:7px}.report-dialog input,.report-dialog select,.report-dialog textarea{width:100%;box-sizing:border-box;padding:11px;font:inherit;min-width:0;border:1px solid var(--border,#ccd5e3);border-radius:10px;background:var(--surface,#fff);color:inherit}.report-dialog .full{grid-column:1/-1}.report-dialog textarea{min-height:95px}.report-admin .module-card{margin-top:18px}.report-admin .button{font:inherit}.report-admin form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.report-admin form input{font:inherit;padding:10px;max-width:100%}[data-theme=dark] .report-dialog{background:#142235;color:#e8eef7}@media(max-width:640px){.report-heading{align-items:flex-start}.report-score{padding:18px}.report-dialog form{grid-template-columns:1fr}.report-dialog .full{grid-column:auto}.report-actions .button{flex:1}.report-table th,.report-table td{padding:11px 8px}}
/* Report workspace: readable RTL hierarchy, restrained colour and compact controls. */
.report-workspace,.report-admin{--report-surface:var(--ui-surface,#fff);--report-ink:var(--ui-text,#243247);--report-line:var(--ui-border,#e3e8f0);color:var(--report-ink);line-height:1.8}.report-workspace .module-card,.report-admin .module-card{background:var(--report-surface);border:1px solid var(--report-line);border-radius:20px;padding:24px;box-shadow:0 3px 18px #1c2b4805;min-width:0;overflow-wrap:anywhere}.report-workspace h2,.report-admin h2{font-size:1.22rem;margin:0 0 12px}.report-workspace h3{font-size:1.05rem;margin:0}.report-workspace .button,.report-admin .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 16px;border:1px solid var(--report-line);border-radius:11px;background:var(--report-surface);color:var(--report-ink);font:inherit;font-size:.95rem;cursor:pointer;transition:background .15s,box-shadow .15s}.report-workspace .button:hover,.report-admin .button:hover{background:color-mix(in srgb,var(--ui-primary,#3763e5) 9%,var(--report-surface));box-shadow:0 2px 8px #2438600a}.report-workspace .button[data-report=pdf],.report-workspace .button[data-report=pdf-progress],.report-next .button{background:var(--ui-primary,#3763e5);color:var(--ui-primary-text,#fff);border-color:transparent}.report-icon{width:20px;height:20px;flex:none;vertical-align:middle}.report-tabs{display:flex;gap:5px;padding:6px;border:1px solid var(--report-line);border-radius:14px;background:var(--report-surface);margin:22px 0;overflow:auto}.report-tabs button,.report-filter-pills button{font:inherit;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:9px;padding:10px 18px;white-space:nowrap}.report-tabs button.active{background:var(--ui-primary,#3763e5);color:var(--ui-primary-text,#fff)}.report-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}.report-section-heading p{color:var(--ui-muted,#758299);margin:5px 0}.performance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}.performance-card{border:1px solid var(--report-line);border-radius:16px;padding:20px;background:var(--report-surface);margin-bottom:16px;--accent:#66839f}.performance-card.positive{--accent:#159b73}.performance-card.review{--accent:#b98718}.performance-card.study{--accent:#d65d6b}.performance-card header{display:flex;align-items:center;gap:8px;padding-bottom:16px;border-bottom:1px solid var(--report-line);color:var(--accent);flex-wrap:wrap}.performance-card header h3{flex:1}.report-pill{display:inline-block;border-radius:7px;padding:3px 9px;background:color-mix(in srgb,var(--accent,#3763e5) 9%,var(--report-surface,#fff));color:var(--accent,#3763e5);font-size:.85rem;font-weight:600}.topic-chips{display:grid;gap:9px;margin-top:15px}.topic-chip{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--accent,#526483) 4%,var(--report-surface));border:1px solid var(--report-line)}.topic-chip b{color:var(--accent)}.topic-chip small{grid-column:1/-1;color:var(--ui-muted,#748197)}.performance-description{font-size:.95rem;line-height:1.9;margin:16px 0 0;color:var(--ui-muted,#66758c)}.low-evidence{margin-top:12px;--accent:#66758c}.low-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.low-summary span{display:block;font-size:.85rem;color:var(--ui-muted,#748197)}.low-summary b{display:block;font-size:1.4rem}.report-control select,.report-controls select,.report-controls input,.report-admin select{font:inherit;border:1px solid var(--report-line);border-radius:9px;padding:9px 12px;background:var(--report-surface);color:inherit;max-width:100%;width:100%;min-width:0}.report-controls{display:flex;gap:14px;flex-wrap:wrap;align-items:end}.report-controls label{display:grid;gap:6px;flex:1 1 160px;min-width:0}.report-control{display:grid;gap:5px}.budget-highlight{background:color-mix(in srgb,var(--ui-primary,#3763e5) 4%,var(--report-surface));border:1px solid var(--report-line);border-radius:15px;padding:20px;margin-bottom:24px}.budget-highlight h3{display:flex;align-items:center;gap:8px}.budget-highlight p{font-size:.9rem;color:var(--ui-muted,#748197)}.budget-bars{display:grid;gap:17px}.budget-bar-row{display:grid;grid-template-columns:minmax(100px,1fr) 2fr minmax(95px,auto);align-items:center;gap:16px}.budget-track{height:12px;border-radius:20px;background:color-mix(in srgb,var(--ui-primary,#3763e5) 10%,var(--report-surface));overflow:hidden}.budget-track>span{display:block;height:100%;background:var(--ui-primary,#3763e5);border-radius:20px;min-width:2px}.budget-bar-row small{font-size:.8rem;font-weight:400;white-space:nowrap;color:var(--ui-muted,#748197)}.report-table{border-collapse:separate;border-spacing:0}.report-table thead th{background:color-mix(in srgb,var(--report-ink) 3%,var(--report-surface));font-size:.9rem;color:var(--ui-muted,#66758c);font-weight:600;white-space:nowrap}.report-table td,.report-table th{border-color:var(--report-line);vertical-align:middle}.report-table tbody tr:hover{background:color-mix(in srgb,var(--ui-primary,#3763e5) 3%,var(--report-surface))}.report-question-numbers{max-width:240px}.report-filter-pills{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.report-filter-pills button{border:1px solid var(--report-line);padding:7px 11px;font-size:.9rem}.report-filter-pills button b{margin-right:7px;font-size:.85rem}.report-filter-pills button.active{background:var(--ui-primary,#3763e5);color:var(--ui-primary-text,#fff);border-color:transparent}.report-state{font-size:.88rem;color:#4c627f;background:#8799b015}.report-state.correct{color:#14956c}.report-state.wrong{color:#d35465}.report-state.cancelled{color:#a77914}.report-score{background:color-mix(in srgb,var(--ui-primary,#3763e5) 6%,var(--report-surface));padding:30px}.result-badge{display:flex;flex-direction:column;align-items:center;gap:7px;padding:18px 28px;border-radius:16px;background:#1a9b7212;color:#15946c}.result-badge .report-icon{width:30px;height:30px}.result-badge b{font-size:1.5rem}.result-badge small{font-size:.85rem}.failed .result-badge{background:#dc5f7012;color:#ce5767}.report-stats>div{background:var(--report-surface);border-color:var(--report-line);padding:18px}.report-stats span{color:var(--ui-muted,#748197);font-size:.9rem}.report-next{display:flex;gap:15px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:22px;padding-top:22px;border-top:1px solid var(--report-line)}.report-next p{color:var(--ui-muted,#748197);font-size:.95rem;margin:6px 0}.report-details summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-weight:600}.report-details summary:after{content:'⌄';font-size:1.4rem}.report-details[open] summary{margin-bottom:20px}.report-heading h1{font-size:1.65rem}.report-heading p{font-size:.95rem}.report-workspace button:focus-visible,.report-admin button:focus-visible,.report-workspace summary:focus-visible{outline:3px solid var(--ui-primary,#3763e5);outline-offset:3px}.report-workspace button:disabled,.report-admin button:disabled{opacity:.55;cursor:wait}.report-admin .settings-tabs{display:flex;gap:8px;margin:18px 0}.report-admin .settings-tabs .button{background:var(--report-surface)}.report-admin .report-table .button{padding:6px 10px;min-height:34px;font-size:.86rem;margin:3px}.report-admin form label{display:grid;gap:8px}.student-result-section{margin-top:20px;border-top:1px solid var(--ui-border,#e3e8f0);padding-top:18px}.student-result-section .report-table-scroll{max-height:340px}.report-dialog .report-stats{grid-template-columns:repeat(2,1fr)}@media(max-width:640px){.report-workspace .module-card,.report-admin .module-card{padding:18px;border-radius:16px}.budget-bar-row{grid-template-columns:100px 1fr;gap:8px}.budget-bar-row>b{grid-column:2}.low-summary{grid-template-columns:1fr 1fr}.report-tabs button{padding:9px 12px;font-size:.9rem}.report-heading{gap:12px}.report-score{padding:20px;gap:12px}.result-badge{padding:12px}.report-stats{grid-template-columns:1fr 1fr}.report-controls label{flex-basis:100%}.report-details summary{flex-wrap:wrap}.report-table-scroll{margin-inline:-3px}.report-table{font-size:.93rem}}@media(prefers-reduced-motion:reduce){.report-workspace .button,.report-admin .button{transition:none}}
.comparison-chart{padding:18px;border:1px solid var(--report-line);border-radius:14px;margin:18px 0}.comparison-legend{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:20px}.comparison-legend span:before{content:'';display:inline-block;width:12px;height:12px;border-radius:4px;margin-left:7px;background:#5273de}.comparison-legend .series-b:before{background:#20a78c}.comparison-row{display:grid;grid-template-columns:180px 1fr auto;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid var(--report-line)}.comparison-bars{display:grid;gap:7px}.comparison-bars>div{display:flex;align-items:center;gap:8px;height:24px;background:color-mix(in srgb,var(--report-ink) 3%,var(--report-surface))}.comparison-bars span{height:14px;display:block;min-width:2px;border-radius:5px;background:#5273de}.comparison-bars .series-b{background:#20a78c}.comparison-bars strong{font-size:.85rem;white-space:nowrap}.report-chart circle:hover,.report-chart circle:focus{stroke:var(--ui-text);stroke-width:2;outline:none}@media(max-width:640px){.comparison-row{grid-template-columns:1fr}.comparison-bars{width:100%}.comparison-row .report-pill{justify-self:start}}

/* v36 semantic filter colors */
.report-workspace [data-report="question-filter"][data-id="correct"]{background:#e8f8ef!important;border-color:#49a47a!important;color:#09643b!important}
.report-workspace [data-report="question-filter"][data-id="wrong"]{background:#ffebee!important;border-color:#e07382!important;color:#a72138!important}
.report-workspace [data-report="question-filter"][data-id="blank"]{background:#e8f2ff!important;border-color:#5994dc!important;color:#1254a7!important}
.report-workspace [data-report="question-filter"][data-id="cancelled"]{background:#fff6d9!important;border-color:#edc354!important;color:#805710!important}
.report-workspace [data-report="question-filter"][data-id="all"]{background:#f0effb!important;border-color:#a4a0c8!important;color:#393464!important}
.report-workspace [data-report="question-filter"][aria-pressed="true"],.report-workspace [data-report="question-filter"].active{outline:3px solid currentColor;outline-offset:2px;font-weight:850!important}

.v36-selection-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.v36-selection-tools>.button{font-size:.86rem;padding:9px 12px}.dashboard-nav-item[aria-disabled="true"]{opacity:.5}

/* V37: semantic filter palette, independent from admin theme */
.report-workspace .report-filter-pills button,.report-workspace .report-filter-pills button.active{font-weight:750!important;border:1px solid currentColor!important;box-shadow:none!important}
.report-workspace .report-filter-pills button[data-id="all"]{color:#475569!important;background:#f1f5f9!important}
.report-workspace .report-filter-pills button[data-id="correct"]{color:#166534!important;background:#dcfce7!important}
.report-workspace .report-filter-pills button[data-id="wrong"]{color:#991b1b!important;background:#fee2e2!important}
.report-workspace .report-filter-pills button[data-id="blank"]{color:#1e40af!important;background:#dbeafe!important}
.report-workspace .report-filter-pills button[data-id="cancelled"]{color:#92400e!important;background:#fef3c7!important}
.report-workspace .report-filter-pills button[aria-pressed="true"]{outline:3px solid currentColor!important;outline-offset:1px}

/* V38 fixed semantic colors independent of selected admin theme */
.report-workspace .report-filter-pills button[data-report="question-filter"][data-id="all"]{background:#f0effb!important;color:#393464!important;border:1px solid #a4a0c8!important}
.report-workspace .report-filter-pills button[data-report="question-filter"][data-id="correct"]{background:#dcfce7!important;color:#166534!important;border:1px solid #16a34a!important}
.report-workspace .report-filter-pills button[data-report="question-filter"][data-id="wrong"]{background:#fee2e2!important;color:#991b1b!important;border:1px solid #dc2626!important}
.report-workspace .report-filter-pills button[data-report="question-filter"][data-id="blank"]{background:#dbeafe!important;color:#1d4ed8!important;border:1px solid #2563eb!important}
.report-workspace .report-filter-pills button[data-report="question-filter"][data-id="cancelled"]{background:#fef3c7!important;color:#92400e!important;border:1px solid #d97706!important}
.report-workspace .report-filter-pills button[data-report="question-filter"].active{box-shadow:inset 0 0 0 2px currentColor!important;outline-offset:2px!important}

/* V48: shared interpretation and topic-specific rule editor; scoped to reports only. */
.report-workspace .v48-performance-grid{direction:rtl;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.report-workspace .v48-performance-grid>.performance-card{min-width:0;direction:rtl;display:flex;flex-direction:column}
.report-workspace .v48-performance-grid>.performance-card .topic-chips{flex:1}
.report-workspace .v48-performance-grid>.performance-card .performance-description{margin-top:18px}
.report-workspace .v48-special-topic>span{font-weight:850;color:var(--report-ink,inherit)}
.report-workspace .v48-no-topics{color:var(--ui-muted,#758299);font-size:.9rem;margin:8px}
.report-admin .v48-intro{color:var(--ui-muted,#64748b);line-height:1.9}
.report-admin .v48-rule-block{margin-block:16px;padding:24px}
.report-admin .v48-rule-block h2{margin:0 0 14px;font-size:1.24rem}
.report-admin .v48-rule-block h3{font-size:1.03rem;margin-top:20px}
.report-admin .v48-low-limit{max-width:430px;display:grid;gap:6px}
.report-admin .v48-low-limit input{max-width:130px}
.report-admin .v48-low-limit small{color:var(--ui-muted,#64748b);font-size:.82rem;line-height:1.9}
.report-admin .v48-band-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;direction:rtl}
.report-admin .v48-band{border-radius:14px;border:1px solid var(--report-line,#d8e1eb);padding:16px;background:var(--report-surface,#fff);min-width:0}
.report-admin .v48-good{border-top:3px solid #159b73}
.report-admin .v48-review{border-top:3px solid #b98718}
.report-admin .v48-study{border-top:3px solid #d65d6b}
.report-admin .v48-good>strong{color:#159b73}
.report-admin .v48-review>strong{color:#a57812}
.report-admin .v48-study>strong{color:#d65d6b}
.report-admin .v48-band-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.report-admin .v48-band label{font-size:.88rem}
.report-admin .v48-band input,.report-admin .v48-band textarea,.report-admin .v48-special select{box-sizing:border-box;width:100%;max-width:100%;font:inherit;padding:9px 10px;border:1px solid var(--report-line,#cbd5e1);border-radius:9px;background:var(--report-surface,#fff);color:inherit}
.report-admin .v48-band textarea{resize:vertical;min-height:80px;line-height:1.8}
.report-admin .v48-form-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
.report-admin .v48-form-foot small{color:var(--ui-muted,#64748b)}
.report-admin .v48-special-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.report-admin .v48-special-heading p{color:var(--ui-muted,#64748b);margin:0 0 14px}
.report-admin .v48-special{border:1px solid var(--report-line,#d8e1eb);border-radius:14px;background:var(--report-surface,#fff);margin:12px 0;overflow:hidden}
.report-admin .v48-special>summary{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:15px 18px;cursor:pointer;list-style:none}
.report-admin .v48-special>summary::-webkit-details-marker{display:none}
.report-admin .v48-special>summary strong{display:block;font-size:1rem}
.report-admin .v48-special>summary small{display:block;color:var(--ui-muted,#64748b);font-size:.78rem;margin-top:4px}
.report-admin .v48-special-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.report-admin .v48-icon-button{display:inline-grid;place-items:center;border:1px solid var(--report-line,#d8e1eb);border-radius:8px;min-width:36px;min-height:36px;background:transparent;color:inherit;font-size:20px;cursor:pointer}
.report-admin .v48-icon-button.v48-danger{color:#be3947}
.report-admin .v48-special-form{border-top:1px solid var(--report-line,#d8e1eb);padding:18px}
.report-admin .v48-special-choices{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:15px;align-items:end;margin-bottom:16px}
.report-admin .v48-special-choices fieldset{border:1px solid var(--report-line,#d8e1eb);border-radius:10px;padding:8px 12px;display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.report-admin .v48-special-choices fieldset label{display:flex;align-items:center;gap:6px}
.report-admin .v48-special-choices legend{color:var(--ui-muted,#64748b);font-size:.84rem}
.report-admin .v48-other-settings{margin-top:18px}
.report-admin .v48-other-settings summary{cursor:pointer;font-weight:750}
.report-admin .v48-other-settings form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.report-admin .v48-empty{color:var(--ui-muted,#64748b);margin:14px 0}
@media(max-width:900px){.report-workspace .v48-performance-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}.report-admin .v48-band-grid{grid-template-columns:1fr}.report-admin .v48-special-choices{grid-template-columns:1fr}.report-admin .v48-other-settings form{grid-template-columns:1fr}}

/* v49: equal-height topic rows; no stretching to fill cards with fewer topics. */
.report-workspace .v48-performance-grid .topic-chips{align-content:start;grid-auto-rows:minmax(76px,max-content);}
.report-workspace .v48-performance-grid .topic-chip{position:relative;align-content:center;min-height:76px;box-sizing:border-box;grid-template-columns:minmax(0,1fr) auto;}
.report-workspace .v48-performance-grid .topic-chip>span{min-width:0;}
.report-workspace .v48-performance-grid .v48-special-topic{border-width:2px;border-color:var(--accent,#159e78);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent,#159e78) 12%,transparent);}
.report-workspace .v49-special-label{display:block;width:max-content;max-width:100%;border-radius:6px;padding:1px 7px;margin-top:5px;font-size:.72rem;font-weight:700;color:var(--accent,#167d6d);background:color-mix(in srgb,var(--accent,#167d6d) 11%,var(--report-surface,#fff));}
.report-admin .v49-low-copy{display:grid;gap:7px;max-width:760px;margin-top:15px;}
.report-admin .v49-low-copy textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit;line-height:1.85;border:1px solid var(--report-line,#cbd5e1);border-radius:9px;padding:10px;background:var(--report-surface,#fff);color:inherit;}

/* v75: responsive advanced-analysis selectors — scoped to the student reports panel. */
.report-workspace .analysis-filter{min-width:0;overflow:visible}
.report-workspace .analysis-filter #advancedFilters{
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:14px!important;align-items:end!important;direction:rtl;
}
.report-workspace .analysis-filter #advancedFilters > .topic-picker{
  grid-column:span 6;position:relative;min-width:0!important;width:100%;max-width:none;
  margin:0;flex:none!important;box-sizing:border-box;
}
.report-workspace .analysis-filter #advancedFilters > .topic-picker > summary{
  display:flex!important;align-items:center;justify-content:space-between;gap:10px;
  box-sizing:border-box;min-height:60px;padding:12px 16px;
  max-width:100%;width:100%;border-radius:13px;
  overflow:hidden;white-space:nowrap;word-break:normal!important;line-height:1.6;
}
.report-workspace .analysis-filter #advancedFilters > .topic-picker > summary b{
  min-width:0;max-width:55%;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;overflow-wrap:normal!important;word-break:normal!important;
}
.report-workspace .analysis-filter #advancedFilters > .topic-picker .topic-picker-list{
  min-width:100%;width:max-content;max-width:min(520px,calc(100vw - 50px));
  box-sizing:border-box;direction:rtl;
}
.report-workspace .analysis-filter #advancedFilters > .topic-picker .topic-picker-list label{
  display:flex!important;min-width:0!important;width:auto;align-items:flex-start;gap:9px;
  flex:auto;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
  line-height:1.8;
}
.report-workspace .analysis-filter #advancedFilters > .topic-picker .topic-picker-list input[type=checkbox]{
  width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;margin-top:5px;
}
.report-workspace .analysis-filter #advancedFilters > .v36-selection-tools{
  grid-column:span 6;min-width:0!important;display:flex;gap:10px;flex-wrap:wrap;
}
.report-workspace .analysis-filter #advancedFilters > .v36-selection-tools .button{flex:1 1 180px;min-width:0;white-space:normal}
.report-workspace .analysis-filter #advancedFilters > label{
  grid-column:span 6;min-width:0!important;width:100%;flex:none!important;
}
.report-workspace .analysis-filter #advancedFilters > label > select{min-height:48px;max-width:100%;width:100%;box-sizing:border-box}
.report-workspace .analysis-filter #advancedFilters > button.button{
  grid-column:span 6;min-width:0;width:100%;box-sizing:border-box;min-height:48px;white-space:normal;
}
@media(max-width:760px){
  .report-workspace .analysis-filter #advancedFilters{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .report-workspace .analysis-filter #advancedFilters > .topic-picker,
  .report-workspace .analysis-filter #advancedFilters > label,
  .report-workspace .analysis-filter #advancedFilters > button.button,
  .report-workspace .analysis-filter #advancedFilters > .v36-selection-tools{grid-column:1/-1}
  .report-workspace .analysis-filter #advancedFilters > .topic-picker .topic-picker-list{max-width:100%;width:100%}
}

/* v76: the two advanced-analysis multiselects use independent, accessible popup controls.
   They no longer rely on global <details> accordion handlers. */
.report-workspace .analysis-filter{position:relative;overflow:visible!important}
.report-workspace .analysis-filter #advancedFilters{overflow:visible!important}
.report-workspace .analysis-filter #advancedFilters > .v76-picker{position:relative;z-index:1;overflow:visible!important}
.report-workspace .analysis-filter #advancedFilters > .v76-picker[data-analysis-open="1"]{z-index:80}
.report-workspace .analysis-filter #advancedFilters > .v76-picker > .v76-picker-trigger{
  width:100%;min-height:60px;display:flex;align-items:center;gap:12px;
  padding:13px 16px;text-align:right;direction:rtl;color:var(--ui-text,#243247);
  background:var(--ui-surface,#fff);font:inherit;font-weight:650;line-height:1.65;
  border:1px solid var(--ui-border,#dce3f0);border-radius:14px;cursor:pointer;
  box-sizing:border-box;white-space:normal;
}
.report-workspace .analysis-filter #advancedFilters > .v76-picker > .v76-picker-trigger:hover{border-color:var(--ui-primary,#4b26ef)}
.report-workspace .analysis-filter #advancedFilters > .v76-picker > .v76-picker-trigger:focus-visible{outline:3px solid var(--ui-primary,#4b26ef);outline-offset:2px}
.report-workspace .analysis-filter .v76-picker-trigger > span:first-child{flex:1 1 auto;min-width:0}
.report-workspace .analysis-filter .v76-picker-trigger > b{flex:0 0 auto;max-width:45%;font-size:.9rem;font-weight:700;color:var(--ui-primary,#4b26ef);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-workspace .analysis-filter .v76-picker-chevron{margin-inline-start:auto;flex:0 0 22px;font-size:1.5rem;line-height:1;transition:transform .15s;display:inline-block;text-align:center}
.report-workspace .analysis-filter .v76-picker[data-analysis-open="1"] .v76-picker-chevron{transform:rotate(180deg)}
.report-workspace .analysis-filter #advancedFilters > .v76-picker .topic-picker-list{
  position:absolute;inset-inline:0 auto;top:calc(100% + 5px);z-index:90;
  width:100%;min-width:100%;max-width:min(520px,calc(100vw - 36px));max-height:min(360px,55dvh);
  overflow-y:auto;overflow-x:hidden;direction:rtl;box-sizing:border-box;
  background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#dce3f0);
  border-radius:14px;box-shadow:0 12px 32px #0c1c3830;padding:10px;
}
.report-workspace .analysis-filter #advancedFilters > .v76-picker .topic-picker-list[hidden]{display:none!important}
.report-workspace .analysis-filter #advancedFilters > .v76-picker .topic-picker-list label{display:flex!important;align-items:flex-start;justify-content:flex-start;gap:10px;cursor:pointer;text-align:right;font:inherit;line-height:1.9;padding:9px 8px;border-radius:8px;min-width:0;white-space:normal;word-break:normal;overflow-wrap:break-word}
.report-workspace .analysis-filter #advancedFilters > .v76-picker .topic-picker-list label:hover{background:color-mix(in srgb,var(--ui-primary,#4b26ef) 7%,transparent)}
.report-workspace .analysis-filter #advancedFilters > .v76-picker .topic-picker-list input[type=checkbox]{flex:0 0 20px!important;width:20px!important;height:20px!important;min-width:20px;margin:5px 0 0;accent-color:var(--ui-primary,#4b26ef)}
@media(max-width:760px){.report-workspace .analysis-filter #advancedFilters > .v76-picker .topic-picker-list{max-width:100%;width:100%}}
@media(prefers-reduced-motion:reduce){.report-workspace .analysis-filter .v76-picker-chevron{transition:none}}


/* v77: advanced-analysis picker theme inheritance only.
   NOTE: generic UI stylesheet styles all <button> elements with !important,
   so these higher-specificity rules intentionally restore the configured
   input/surface colors WITHOUT changing the picker JavaScript or layout. */
.report-workspace .analysis-filter #advancedFilters > .v76-picker > button.v76-picker-trigger,
.report-workspace .analysis-filter #advancedFilters > .v76-picker > button.v76-picker-trigger:hover,
.report-workspace .analysis-filter #advancedFilters > .v76-picker > button.v76-picker-trigger:active {
  background: var(--ui-surface, var(--report-surface, #fff)) !important;
  color: var(--ui-text, var(--report-ink, #243247)) !important;
  border: 1px solid var(--ui-border, var(--report-line, #dce3f0)) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.report-workspace .analysis-filter #advancedFilters > .v76-picker > button.v76-picker-trigger > b {
  color: var(--ui-muted, var(--ui-text, var(--report-ink, #243247))) !important;
  opacity: .9;
}
.report-workspace .analysis-filter #advancedFilters > .v76-picker > button.v76-picker-trigger > .v76-picker-chevron {
  color: var(--ui-text, var(--report-ink, #243247)) !important;
}
.report-workspace .analysis-filter #advancedFilters > .v76-picker > button.v76-picker-trigger:focus-visible {
  outline: 3px solid var(--ui-primary, #4b26ef) !important;
  outline-offset: 2px;
}
