/* Aev's evidence workbench: exact task progress, deliberate context, traceable proposals. */
.aev-workbench {min-width:0; color:var(--text);}
.aev-workbench *, .aev-workbench *::before, .aev-workbench *::after {box-sizing:border-box;}
.aev-workbench :is(h2,h3,h4,h5,h6,p) {margin:0;}
.aev-workbench :is(button,select,textarea,input,summary) {font:inherit;}
.aev-workbench :is(button,summary,select) {min-height:44px;}
.aev-workbench button {cursor:pointer;}
.aev-workbench button:disabled {cursor:default; opacity:.55;}
.aev-workbench :is(button,input,select,textarea,summary):focus-visible {outline:2px solid var(--product-accent); outline-offset:3px;}
.aev-workbench-hero {display:flex; justify-content:space-between; align-items:flex-end; gap:28px; padding:16px 0 30px;}
.aev-workbench-hero h2 {font:400 clamp(34px,4vw,52px)/1.12 Georgia,'Times New Roman',serif; letter-spacing:-1.7px; margin:13px 0 17px;}
.aev-workbench-hero>div>p:last-child {font-size:14px; line-height:1.7; color:var(--muted);}
.aev-local-label {display:flex; align-items:center; gap:8px; color:var(--faint); font-size:11px; padding-bottom:6px; white-space:nowrap;}
.aev-local-label i {width:6px; height:6px; border-radius:50%; background:var(--product-accent);}
.aev-workbench-toolbar {display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 0; border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft);}
.aev-workbench-toolbar>p {font-size:12px; color:var(--faint); line-height:1.6; text-align:right;}
.aev-mission-picker {display:grid; gap:9px; width:min(100%,480px); min-width:0;}
.aev-mission-picker>span {font-size:11px; color:var(--muted);}
body .app-shell .aev-mission-picker select {width:100%; padding:11px 36px 11px 14px; font-size:16px; text-overflow:ellipsis;}
.aev-status {font-size:12px; color:var(--muted); line-height:1.6; margin:14px 0;}
.aev-status:empty {display:none;}
.aev-error {border:1px solid var(--danger); background:var(--surface); border-radius:8px; padding:12px 16px; margin:14px 0; color:var(--danger); font-size:13px; line-height:1.5;}
.aev-workbench-grid {display:grid; grid-template-columns:minmax(260px,.85fr) minmax(0,1.2fr); gap:0; margin-top:24px; border:1px solid var(--border-soft); border-radius:14px; background:var(--surface); overflow:hidden;}
.aev-context-panel,.aev-result-panel {min-width:0; padding:26px;}
.aev-context-panel {border-right:1px solid var(--border-soft);}
.aev-result-panel {background:var(--surface-muted);}
.aev-section-heading {display:flex; align-items:center; gap:13px; margin-bottom:24px;}
.aev-step-number {display:flex; justify-content:center; align-items:center; width:34px; height:34px; border:1px solid var(--border-soft); border-radius:50%; color:var(--faint); font:13px Georgia,serif; flex:none;}
.aev-section-heading h3 {font:23px/1.25 Georgia,serif; letter-spacing:-.5px; margin-top:6px;}
.aev-mission-source {padding:18px; border:1px solid var(--border-soft); border-radius:10px; background:var(--surface-muted);}
.aev-mission-source>div {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 12px;}
.aev-small-label {font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--faint);}
.aev-inline-button {padding:0; background:none; border:0; color:var(--product-accent); font-size:11px!important; text-align:left;}
.aev-mission-source h4 {font-size:17px; font-weight:550; line-height:1.4; margin:6px 0 10px; overflow-wrap:anywhere;}
.aev-mission-source p {font-size:12px; color:var(--muted); line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere;}
.aev-mission-source small {display:block; margin-top:14px; color:var(--faint); font-size:11px;}
.aev-task-progress {padding:22px 0;}
.aev-task-progress>div:first-child {display:flex; justify-content:space-between; align-items:baseline; gap:10px;}
.aev-task-progress strong {font:29px Georgia,serif; color:var(--text);}
.aev-task-progress strong span {font-size:19px; color:var(--faint);}
.aev-task-progress>div:first-child>span {font-size:11px; color:var(--muted);}
.aev-progress-track {height:5px; margin:12px 0 9px; background:var(--border-soft); border-radius:8px; overflow:hidden;}
.aev-progress-track>span {height:100%; display:block; background:var(--product-accent); border-radius:8px; transition:width 240ms ease;}
.aev-task-progress small {font-size:10px; line-height:1.6; color:var(--faint);}
.aev-task-toolbar {display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px;}
.aev-task-toolbar>div {display:flex; gap:2px;}
.aev-task-toolbar button {border:0; background:none; padding:0 11px; border-radius:7px; font-size:11px; color:var(--muted);}
.aev-task-toolbar button[aria-pressed="true"] {background:var(--surface-strong); color:var(--text);}
.aev-task-toolbar>span {font-size:10px; color:var(--faint); white-space:nowrap;}
.aev-task-list {max-height:330px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--control-border) transparent; border-top:1px solid var(--border-soft);}
.aev-task-row {display:flex; align-items:center; gap:6px; border-bottom:1px solid var(--border-soft);}
.aev-task-row label {display:flex; align-items:center; gap:11px; padding:13px 2px; flex:1; min-width:0; min-height:64px; cursor:pointer;}
body .app-shell .aev-task-row input {width:18px; height:18px; min-height:18px; flex:none; accent-color:var(--product-accent); margin:0 0 0 2px;}
.aev-task-row label>span {min-width:0;}
.aev-task-row strong {font-size:12px; font-weight:500; line-height:1.5; display:block; overflow-wrap:anywhere;}
.aev-task-row small {font-size:10px; color:var(--faint); display:block; margin-top:5px; line-height:1.5; overflow-wrap:anywhere;}
.aev-task-dot {display:inline-block; width:6px; height:6px; border:1px solid var(--faint); border-radius:50%; margin-right:5px;}
.aev-task-dot.is-done {background:var(--product-accent); border-color:var(--product-accent);}
.aev-task-inspect {height:44px; width:44px; padding:0; flex:none; background:none; border:0; color:var(--muted); font-size:16px!important; border-radius:7px;}
.aev-task-inspect:hover {background:var(--surface-strong);}
.aev-selection-actions {display:flex; justify-content:space-between; gap:12px; padding:5px 0;}
body .app-shell .aev-selection-actions .ghost-button {font-size:11px; padding:0 2px; color:var(--product-accent);}
.aev-microcopy {font-size:10px!important; line-height:1.65!important; color:var(--faint)!important;}
.aev-context-panel form {padding-top:22px; margin-top:20px; border-top:1px solid var(--border-soft);}
.aev-prompt-label {display:grid; gap:11px;}
.aev-prompt-label>span {font-size:12px; font-weight:550;}
body .app-shell .aev-prompt-label textarea {display:block; width:100%; min-height:118px; padding:12px; font-size:16px; line-height:1.5; resize:vertical;}
body .app-shell .aev-prepare-button {display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-height:48px; font-size:12px; padding:12px 16px; margin:14px 0 12px;}
.aev-brief-empty {padding:44px 8px; max-width:440px; margin:auto; text-align:center;}
.aev-evidence-illustration {display:flex; align-items:center; justify-content:center; gap:16px; color:var(--faint); margin:0 auto 28px;}
.aev-evidence-illustration i {display:block; width:44px; height:58px; border:1px solid var(--control-border); border-radius:5px; background:linear-gradient(var(--border-soft),var(--border-soft)) 10px 15px/24px 2px no-repeat,linear-gradient(var(--border-soft),var(--border-soft)) 10px 24px/18px 2px no-repeat,linear-gradient(var(--border-soft),var(--border-soft)) 10px 33px/22px 2px no-repeat,var(--surface);}
.aev-evidence-illustration i:last-child {height:68px; width:51px; transform:rotate(6deg);}
.aev-brief-empty h4 {font:28px/1.25 Georgia,serif; letter-spacing:-.65px; margin-bottom:16px;}
.aev-brief-empty>p {font-size:12px; color:var(--muted); line-height:1.75;}
.aev-empty-preview {display:grid; gap:8px; margin:26px 0; text-align:left;}
.aev-empty-preview>span {display:block; padding:13px 16px; border:1px solid var(--border-soft); border-radius:8px; color:var(--muted); background:var(--surface); font-size:11px;}
.aev-empty-preview>span::before {content:'↗'; margin-right:12px; color:var(--product-accent);}
.aev-brief-empty>small {display:block; font-size:10px; color:var(--faint); line-height:1.65;}
.aev-brief-meta {display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--faint); font-size:10px;}
.aev-brief-badge {padding:6px 9px; border-radius:5px; border:1px solid var(--control-border); color:var(--product-accent); font-size:10px;}
.aev-freshness {font-size:11px; line-height:1.6; color:var(--amber); border-left:2px solid var(--amber); padding-left:11px; margin:16px 0!important;}
.aev-freshness.is-current {color:var(--muted); border-color:var(--control-border);}
.aev-brief-summary {font:26px/1.3 Georgia,serif; letter-spacing:-.5px; overflow-wrap:anywhere; margin:20px 0 26px!important;}
.aev-saved-brief h5 {font-size:11px; font-weight:600; margin:0 0 14px; color:var(--text);}
.aev-observations>div {padding:14px 0; border-top:1px solid var(--border-soft);}
.aev-observations p,.aev-proposed-steps p {font-size:12px; line-height:1.75; color:var(--muted); overflow-wrap:anywhere;}
.aev-citations {display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; min-width:0;}
.aev-citations button {display:inline-flex; align-items:center; gap:7px; padding:8px 10px; max-width:100%; border:1px solid var(--border-soft); border-radius:7px; background:var(--surface); font-size:10px; color:var(--product-accent); text-align:left; overflow-wrap:anywhere;}
.aev-citations button[aria-pressed="true"] {border-color:var(--product-accent); background:var(--surface-strong);}
.aev-citations button>span {flex:none;}
.aev-proposed-steps {margin-top:24px;}
.aev-proposed-steps ol {list-style:none; padding:0; margin:0 0 10px;}
.aev-proposed-steps li {display:flex; gap:13px; padding:18px 0; border-top:1px solid var(--border-soft);}
.aev-proposed-steps li>div {min-width:0;}
.aev-proposal-number {display:grid; place-items:center; width:25px; height:25px; flex:none; border:1px solid var(--control-border); color:var(--product-accent); border-radius:50%; font:12px Georgia,serif;}
.aev-proposed-steps h6 {font-size:14px; font-weight:550; line-height:1.5; margin-bottom:8px; overflow-wrap:anywhere;}
.aev-source-card {background:var(--surface); border:1px solid var(--control-border); border-radius:10px; padding:18px; margin:20px 0; scroll-margin:20px;}
.aev-source-heading {display:flex; gap:8px; align-items:center; justify-content:space-between;}
.aev-source-heading .ghost-button {padding:0 4px;}
.aev-source-card h4 {font:21px/1.3 Georgia,serif; margin:10px 0 13px; overflow-wrap:anywhere;}
.aev-source-card>p {font-size:12px; color:var(--muted); line-height:1.65; overflow-wrap:anywhere; white-space:pre-wrap;}
.aev-source-card dl {display:grid; gap:10px; margin:17px 0;}
.aev-source-card dl>div {display:grid; grid-template-columns:100px minmax(0,1fr); gap:12px; font-size:10px; line-height:1.5;}
.aev-source-card dt {color:var(--faint);}
.aev-source-card dd {margin:0; color:var(--text); overflow-wrap:anywhere;}
.aev-unknowns {border-top:1px solid var(--border-soft); margin-top:18px;}
.aev-unknowns summary {padding:15px 0; color:var(--text); font-size:12px; cursor:pointer;}
.aev-unknowns summary>span {color:var(--faint); margin-left:10px;}
.aev-unknowns ul {padding-left:18px; margin:6px 0 18px;}
.aev-unknowns li,.aev-unknowns p {font-size:11px; line-height:1.7; color:var(--muted); margin-bottom:10px; overflow-wrap:anywhere;}
.aev-unknowns h5 {margin-top:20px;}
.aev-history {margin-top:32px; border-top:1px solid var(--border-soft); padding-top:25px;}
.aev-history-heading {display:flex; justify-content:space-between; align-items:center; gap:16px;}
.aev-history-heading h3 {font:25px Georgia,serif; letter-spacing:-.5px; margin-top:8px;}
.aev-history-heading>span {font-size:11px; color:var(--faint);}
.aev-history ol {list-style:none; padding:0; margin:18px 0 0;}
.aev-history button {display:flex; align-items:center; gap:13px; width:100%; min-height:72px; text-align:left; padding:14px 12px; border:0; border-bottom:1px solid var(--border-soft); color:var(--text); background:none; border-radius:6px;}
.aev-history button[aria-pressed="true"],.aev-history button:hover {background:var(--surface-strong);}
.aev-history button>span:nth-child(2) {flex:1; min-width:0;}
.aev-history strong {display:block; font-size:12px; font-weight:500; line-height:1.5; overflow-wrap:anywhere;}
.aev-history small {display:block; margin-top:5px; color:var(--faint); font-size:10px; line-height:1.5;}
.aev-history-dot {width:8px; height:8px; border:2px solid var(--product-accent); border-radius:50%; flex:none;}
.aev-muted-empty {font-size:12px; line-height:1.7; color:var(--faint); padding:22px 0;}
.aev-invalid-brief {padding:30px 0;}
.aev-invalid-brief h4 {font:25px Georgia,serif; margin-bottom:15px;}
.aev-invalid-brief p {font-size:13px; line-height:1.7; color:var(--muted);}
.aev-start-panel {padding:40px 0 16px; max-width:720px;}
.aev-start-panel>h3 {font:30px/1.2 Georgia,serif; letter-spacing:-.7px; margin:12px 0 17px;}
.aev-start-panel>p:not(.eyebrow) {font-size:13px; color:var(--muted); line-height:1.75; max-width:590px;}
.aev-start-panel>.secondary-button {margin-top:22px;}
.aev-start-missions {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:26px;}
.aev-start-missions button {display:flex; align-items:center; justify-content:space-between; gap:15px; background:var(--surface); border:1px solid var(--border-soft); border-radius:10px; color:var(--text); padding:20px; text-align:left;}
.aev-start-missions button:hover {background:var(--surface-strong); border-color:var(--control-border);}
.aev-start-missions button>span:first-child {min-width:0;}
.aev-start-missions strong {display:block; font-size:14px; font-weight:500; line-height:1.5; overflow-wrap:anywhere;}
.aev-start-missions small {display:block; font-size:10px; color:var(--faint); line-height:1.6; margin-top:8px;}
@media (max-width:1100px) {.aev-context-panel,.aev-result-panel {padding:21px;} .aev-workbench-grid {grid-template-columns:minmax(250px,.9fr) minmax(0,1fr);} .aev-local-label {display:none;}}
@media (max-width:760px) {.aev-workbench-grid {grid-template-columns:minmax(0,1fr);} .aev-context-panel {border-right:0; border-bottom:1px solid var(--border-soft);} .aev-workbench-toolbar>p {display:none;} .aev-mission-picker {width:100%;} .aev-workbench-hero {padding-top:4px;} .aev-brief-empty {padding:24px 8px;} .aev-workbench-hero h2 {font-size:38px;} .aev-start-missions {grid-template-columns:1fr;}}
@media (max-width:400px) {.aev-context-panel,.aev-result-panel {padding:18px 14px;} .aev-workbench-hero h2 {font-size:34px; letter-spacing:-1.3px;} .aev-workbench-hero>div>p:last-child {font-size:13px;} .aev-workbench-hero br {display:none;} .aev-section-heading h3 {font-size:22px;} .aev-mission-source {padding:14px;} .aev-task-toolbar button {padding-inline:10px;} .aev-task-progress>div:first-child {align-items:center;} .aev-task-progress>div:first-child>span {max-width:110px; text-align:right; line-height:1.5;} .aev-source-card {padding:14px;} .aev-source-card dl>div {grid-template-columns:80px minmax(0,1fr);} .aev-brief-summary {font-size:24px;} .aev-history-heading {align-items:start;}}
@media (prefers-reduced-motion:reduce) {.aev-workbench *, .aev-workbench *::before,.aev-workbench *::after {animation:none!important; transition:none!important; scroll-behavior:auto!important;}}
