.agentic-page {height:100%; min-height:0; min-width:0; max-height:100%; overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain; scrollbar-gutter:stable; scroll-padding-block:16px;}
.agentic-page:focus-visible {outline:2px solid var(--accent); outline-offset:-2px;}
.agentic-workspace {position:relative; isolation:isolate; min-height:100%; min-width:0; color:var(--text);}
.agentic-workspace .page-header {position:relative; align-items:center; flex-wrap:wrap; gap:12px;}
.agentic-workspace .page-header p {white-space:normal; overflow:visible; text-overflow:clip;}
.agentic-layout {position:relative; z-index:1; display:grid; grid-template-columns:minmax(185px,240px) minmax(0,1fr); gap:18px; padding:18px; align-items:start;}
.agentic-sidebar {display:flex; flex-direction:column; gap:14px; position:static; min-width:0; min-height:0;}
.agentic-history {display:flex; flex-direction:column; gap:6px; max-height:280px; overflow:auto; scrollbar-gutter:stable;}
.agentic-history-row {display:grid; grid-template-columns:minmax(0,1fr) 34px; align-items:stretch; gap:5px; min-width:0;}
.agentic-history-item {text-align:start; width:100%; overflow-wrap:anywhere; white-space:normal; justify-content:flex-start;}
.agentic-history-item.active {border-color:var(--accent); background:var(--accent-soft);}
.agentic-remove {display:grid; place-items:center; min-width:0; padding:7px; color:var(--muted); background:transparent;}
.agentic-remove svg {width:18px; height:18px; pointer-events:none;}
.agentic-remove:hover:not(:disabled) {color:var(--danger); border-color:var(--danger); background:var(--surface);}
.agentic-history-row[aria-busy="true"] {opacity:.65;}
.agentic-atmosphere {position:absolute; z-index:0; inset:0; overflow:hidden; pointer-events:none; user-select:none; background:radial-gradient(ellipse at 78% 8%,var(--accent-soft),transparent 44%),radial-gradient(ellipse at 15% 70%,var(--accent-soft),transparent 42%);}
.agentic-atmosphere * {pointer-events:none;}
.agentic-ai-symbol {position:absolute; display:block; width:108px; height:108px; color:var(--accent); opacity:.12; animation:agentic-ai-drift 24s ease-in-out infinite alternate;}
.agentic-ai-symbol svg {display:block; width:100%; height:100%;}
.agentic-ai-symbol:nth-child(1) {inset-block-start:94px; inset-inline-end:3%;}
.agentic-ai-symbol:nth-child(2) {inset-block-start:38%; inset-inline-start:22%; width:72px; height:72px; animation-delay:-11s; animation-duration:29s;}
.agentic-ai-symbol:nth-child(3) {inset-block-start:67%; inset-inline-end:1%; width:142px; height:142px; animation-delay:-7s; animation-duration:31s;}
.agentic-ai-symbol:nth-child(4) {inset-block-end:4%; inset-inline-start:8%; width:92px; height:92px; animation-delay:-18s; animation-duration:27s;}
.agentic-ai-symbol:nth-child(5) {inset-block-start:10%; inset-inline-start:40%; width:64px; height:64px; animation-delay:-4s; animation-duration:26s;}
@keyframes agentic-ai-drift {from {transform:translate3d(0,0,0) rotate(-7deg);} to {transform:translate3d(9px,-20px,0) rotate(7deg);}}
@media(prefers-reduced-motion:reduce) {.agentic-ai-symbol {animation:none; transform:none;}}
.agentic-context {border-top:1px solid var(--line); padding-top:14px;}
.agentic-context h3,.agentic-run h3,.agentic-report h3 {font-size:15px; margin:0 0 12px;}
.agentic-context-counts {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:12px;}
.agentic-context-counts div {padding:10px 5px; background:var(--surface-2); border-radius:8px; text-align:center;}
.agentic-context-counts strong {display:block; font-size:20px; color:var(--accent);}
.agentic-context-counts span {display:block; font-size:10px; color:var(--muted); margin-top:5px;}
.agentic-main {min-width:0; min-height:0; display:flex; flex-direction:column; gap:16px; max-width:1100px; width:100%; margin-inline:auto;}
.agentic-main > * {flex-shrink:0; min-width:0;}
.agentic-help {font-size:12px; line-height:1.65; color:var(--muted); margin:6px 0;}
.agentic-notice {padding:13px 16px; background:var(--accent-soft); border:1px solid var(--line); border-radius:10px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; margin:0;}
.agentic-notice[data-level="error"] {border-color:var(--danger);}
.agentic-thread {display:flex; flex-direction:column; gap:12px;}
.agentic-welcome {padding:12px 4px 2px;}
.agentic-mark {display:grid; place-items:center; width:48px; height:48px; background:var(--accent-soft); color:var(--accent); border-radius:16px; font-size:26px; margin-bottom:16px;}
.agentic-welcome h2 {font-size:24px; line-height:1.25; margin:0 0 10px;}
.agentic-welcome p {color:var(--muted); font-size:14px; line-height:1.7; margin-bottom:10px; max-width:620px;}
.agentic-message {border:1px solid var(--line); background:var(--surface); border-radius:12px; padding:14px 16px;}
.agentic-message.from-user {background:var(--accent-soft); margin-inline-start:7%;}
.agentic-message b {font-size:11px; color:var(--muted);}
.agentic-message p {white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; font-size:13px; margin:8px 0 0;}
.agentic-run:empty {display:none;}
.agentic-run {border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:16px;}
.agentic-task {border:1px solid var(--line);border-inline-start:3px solid var(--accent);border-radius:12px;background:var(--surface);padding:12px 16px;}
.agentic-task-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;}
.agentic-task-goal {font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;}
.agentic-task ul {padding-inline-start:18px;font-size:12px;line-height:1.7;}
.agentic-task li {margin:7px 0;overflow-wrap:anywhere;}
.agentic-review-dock {position:sticky;top:0;z-index:3;background:var(--surface);border-radius:10px;padding:2px 0 10px;box-shadow:0 10px 14px -14px rgba(0,0,0,.65);}
.agentic-review-dock .agentic-actions {margin-top:8px;}
.agentic-review-dock .agentic-approval {margin-top:8px;}
.agentic-questions {padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);margin:14px 0;}
.agentic-questions h4 {font-size:14px;margin:0 0 7px;}
.agentic-question {margin:14px 0;min-width:0;}
.agentic-question label {display:block;font-size:12px;line-height:1.65;margin-bottom:6px;white-space:pre-wrap;overflow-wrap:anywhere;}
.agentic-question textarea,.agentic-question select,.agentic-capabilities input {box-sizing:border-box;display:block;width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:10px;font:inherit;font-size:13px;line-height:1.6;}
.agentic-question textarea {min-height:64px;max-height:240px;resize:vertical;}
.agentic-question textarea:focus,.agentic-question select:focus,.agentic-capabilities input:focus {outline:2px solid var(--accent);outline-offset:2px;}
.agentic-question :disabled {opacity:.65;}
.agentic-activity ol {list-style:none;margin:0;padding:0;max-height:250px;overflow:auto;}
.agentic-activity li {display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:space-between;line-height:1.65;padding:6px 0;border-bottom:1px solid var(--line);}
.agentic-activity li span {overflow-wrap:anywhere;}
.agentic-activity time {color:var(--muted);font-variant-numeric:tabular-nums;direction:ltr;}
.agentic-provider-details,.agentic-operation-review dl {display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:6px 14px;line-height:1.65;font-size:12px;margin:8px 0;}
.agentic-provider-details dt,.agentic-operation-review dt {color:var(--muted);}
.agentic-provider-details dd,.agentic-operation-review dd {margin:0;overflow-wrap:anywhere;white-space:pre-wrap;}
.agentic-operation-review {margin-top:10px;}
.agentic-operation-review h4 {font-size:12px;margin:8px 0;}
.agentic-capability-list {max-height:480px;overflow:auto;}
.agentic-capability {padding:12px 0;border-bottom:1px solid var(--line);}
.agentic-capability-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;font-size:12px;}
.agentic-capability p {font-size:12px;line-height:1.65;overflow-wrap:anywhere;margin:6px 0;}
.agentic-capability .agentic-status {text-transform:none;}
.agentic-capability .button {margin-top:6px;font-size:11px;max-width:100%;white-space:normal;text-align:start;}
.agentic-section-link[aria-disabled="true"] {opacity:.55;cursor:default;}
.agentic-return-task {font-size:12px;white-space:normal;max-width:100%;}
.agentic-run-heading,.agentic-step-heading {display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;}
.agentic-run-heading h3 {margin:0;}
.agentic-planning-progress {display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.65;}
.agentic-planning-progress strong {color:var(--text);font-weight:650;}
.agentic-planning-progress span {color:var(--muted);font-variant-numeric:tabular-nums;}
.agentic-planner-diagnostic {overflow-wrap:anywhere;}
.agentic-reply-brain {color:var(--muted);font-size:12px;}
.agentic-summary {font-size:14px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere;}
.agentic-status {display:inline-flex; padding:4px 8px; border-radius:6px; border:1px solid var(--line); font-size:10px; text-transform:capitalize; background:var(--surface-2); color:var(--muted);}
.agentic-status[data-status="running"],.agentic-status[data-status="planning"],.agentic-status[data-status="awaiting_confirmation"] {color:var(--accent); background:var(--accent-soft);}
.agentic-status[data-status="completed"],.agentic-status[data-status="succeeded"] {color:var(--green);}
.agentic-status[data-status="needs_input"],.agentic-status[data-status="partially_completed"],.agentic-status[data-status="partial"],.agentic-status[data-status="needs_setup"],.agentic-status[data-status="needs_authorization"] {color:var(--accent);background:var(--accent-soft);}
.agentic-status[data-status="available"] {color:var(--green);}
.agentic-status[data-status="answered"],.agentic-status[data-status="manual"],.agentic-status[data-status="not_implemented"] {color:var(--muted);}
.agentic-status[data-status="failed"],.agentic-status[data-status="uncertain"],.agentic-status[data-status="blocked"],.agentic-status[data-status="interrupted"] {color:var(--danger);}
.agentic-steps {list-style:none; counter-reset:agentic-task; padding:0; margin:10px 0;}
.agentic-step {position:relative; counter-increment:agentic-task; padding:12px; padding-inline-start:44px; border-bottom:1px solid var(--line);}
.agentic-step:last-child {border-bottom:0;}
.agentic-step::before {content:counter(agentic-task); position:absolute; inset-block-start:11px; inset-inline-start:8px; display:grid; place-items:center; width:24px; height:24px; border-radius:7px; color:var(--accent); background:var(--accent-soft); font-size:12px; font-weight:700;}
.agentic-step-label {display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 10px; min-width:0; flex:1 1 160px;}
.agentic-step-target {color:var(--muted); font-size:12px; overflow-wrap:anywhere;}
.agentic-step-heading b {font-size:13px; overflow-wrap:anywhere;}
.agentic-step p {font-size:12px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere;}
.agentic-step-details h4 {font-size:12px; margin:12px 0 6px;}
.agentic-tool-name {color:var(--muted); font-family:ui-monospace,Consolas,monospace;}
.agentic-disclosure {margin:6px 0; font-size:12px; min-width:0;}
.agentic-disclosure summary {cursor:pointer; color:var(--muted); padding:5px 0;}
.agentic-disclosure[open] > summary {color:var(--text); margin-bottom:7px;}
.agentic-message .agentic-disclosure {margin-bottom:0;}
.agentic-send-review {margin-top:9px; min-width:0;}
.agentic-send-review .agentic-send-target {margin:0; font-weight:650;}
.agentic-send-identity {color:var(--muted); margin:3px 0; font-size:11px !important; direction:ltr; text-align:start;}
.agentic-send-reply {margin:6px 0; color:var(--accent);}
.agentic-reply-context {margin:6px 0; padding-inline-start:10px; border-inline-start:2px solid var(--line); color:var(--muted); max-height:10em; overflow:auto;}
.agentic-send-text {margin:8px 0; padding:10px 12px; border-inline-start:3px solid var(--accent); background:var(--surface-2); border-radius:6px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.7;}
.agentic-json {background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:12px; font-family:ui-monospace,Consolas,monospace; font-size:11px; line-height:1.6; max-height:340px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; text-align:start; margin:0;}
.agentic-callout {border-inline-start:3px solid var(--accent); padding:10px 14px; background:var(--surface-2); margin:12px 0; font-size:12px; line-height:1.7;}
.agentic-callout h4 {margin:0 0 6px; font-size:12px;}
.agentic-callout ul {padding-inline-start:18px; margin:0;}
.agentic-error-code {color:var(--danger); font-family:ui-monospace,Consolas,monospace; font-size:12px; overflow-wrap:anywhere;}
.agentic-actions {display:flex; flex-wrap:wrap; gap:8px; margin-top:14px;}
.agentic-approval {display:flex; gap:10px; align-items:flex-start; padding:12px; background:var(--accent-soft); border:1px solid var(--line); border-radius:10px; font-size:12px; line-height:1.7; margin-top:12px;}
.agentic-approval input {width:17px; height:17px; flex-shrink:0; margin-top:3px; accent-color:var(--accent);}
.agentic-report {padding:20px; border:1px solid var(--line); background:var(--surface); border-radius:14px;}
.agentic-checksum {display:block; overflow-wrap:anywhere; font-size:11px; color:var(--accent); direction:ltr; text-align:left; padding:12px 0;}
.agentic-composer {position:static; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface);}
.agentic-composer h3 {font-size:14px;margin:0 0 14px;}
.agentic-sources {display:flex; flex-wrap:wrap; gap:12px;}
.agentic-sources .field {flex:1 1 170px; min-width:0; margin:0;}
.agentic-sources select {width:100%;}
.agentic-composer textarea {display:block; width:100%; resize:vertical; min-height:88px; max-height:400px; padding:12px; color:var(--text); background:var(--surface-2); border:1px solid var(--line); border-radius:10px; font:inherit; line-height:1.7; margin:12px 0; box-sizing:border-box;}
.agentic-composer textarea:focus {outline:2px solid var(--accent); outline-offset:2px;}
.agentic-composer-footer {display:flex; align-items:center; justify-content:space-between; gap:16px;}
.agentic-composer-footer .agentic-help {max-width:520px; font-size:11px;}
.agentic-composer-footer .button {flex-shrink:0;}
.agentic-files {border-top:1px solid var(--line);padding-top:12px;margin-top:12px;min-width:0;}
.agentic-file-list {display:grid;gap:8px;padding:0;margin:0 0 10px;list-style:none;}
.agentic-file {display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;justify-content:space-between;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);padding:10px 12px;min-width:0;}
.agentic-file-identity {min-width:0;flex:1 1 240px;}
.agentic-file-identity bdi {display:block;font-size:13px;line-height:1.6;overflow-wrap:anywhere;}
.agentic-file-identity small {display:block;font-size:11px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere;}
.agentic-file-identity code {display:block;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.65;}
.agentic-file-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0;}
.agentic-file-actions .button,.agentic-file-tools .button {font-size:12px;white-space:normal;}
.agentic-file-use {display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.6;}
.agentic-file-use input {accent-color:var(--accent);width:16px;height:16px;margin:0;}
.agentic-file-tools {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.agentic-tool-list {max-height:420px; overflow:auto;}
.agentic-tool {border-bottom:1px solid var(--line); padding:10px 0; overflow-wrap:anywhere;}
.agentic-tool b {font-size:11px;}
.agentic-tool p {color:var(--muted); line-height:1.6; margin:5px 0;}
.agentic-workspace [hidden] {display:none !important;}
@media(max-width:1100px) {.agentic-layout {grid-template-columns:minmax(0,1fr); padding:16px;}.agentic-sidebar {position:static; display:grid; grid-template-columns:1fr 1fr; align-items:start;}.agentic-context {grid-column:1/-1;}.agentic-context-counts {max-width:420px;}.agentic-history {max-height:130px;}.agentic-context > .agentic-help {max-width:650px;}}
@media(max-width:560px) {.agentic-layout {padding:12px; gap:16px;}.agentic-sidebar {display:flex;}.agentic-main {gap:14px;}.agentic-run,.agentic-composer,.agentic-report {padding:14px;}.agentic-welcome h2 {font-size:20px;}.agentic-composer-footer {align-items:stretch; flex-direction:column; gap:8px;}.agentic-message.from-user {margin-inline-start:3%;}}
@media(max-height:620px) {.agentic-layout {padding:12px; gap:14px;}.agentic-sidebar {gap:10px;}.agentic-history {max-height:140px;}.agentic-workspace .page-header {min-height:54px;}.agentic-welcome {padding-top:2px;}.agentic-mark {width:36px; height:36px; margin-bottom:10px;}.agentic-welcome h2 {font-size:20px;}.agentic-run,.agentic-composer,.agentic-report {padding:12px;}.agentic-review-dock {position:static;box-shadow:none;}.agentic-question textarea {max-height:140px;}}

/* Explicit scored-workflow review; colors inherit the selected application theme. */
.agentic-assessment-review {margin-top:8px;padding:10px 12px;border-inline-start:3px solid var(--accent);background:var(--panel);border-radius:6px;overflow-wrap:anywhere;}
.agentic-assessment-review p {margin:4px 0;line-height:1.55;}
.agentic-assessment-rule,.agentic-assessment-result {font-weight:600;}
.agentic-assessment-review ul {padding-inline-start:20px;max-height:210px;overflow:auto;}
