/* Match the native Tasks assistant presentation; transport and approval stay independent. */
.dashboard-agent-root{font-family:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",sans-serif;font-size:14px;line-height:1.45;color:#171719}
.dashboard-agent-root *{box-sizing:border-box;font-family:inherit}
.dashboard-agent-root [hidden]{display:none!important}
.dashboard-agent-root button,.dashboard-agent-root textarea{font:inherit}
.dashboard-agent-root button{cursor:pointer}.dashboard-agent-root button:disabled{cursor:default;opacity:.45}
.dashboard-agent-root :is(button,a,textarea,summary):focus-visible{outline:2px solid #8db7f2;outline-offset:3px}
.dashboard-agent-launcher{position:fixed;z-index:9998;bottom:26px;right:28px;display:flex;align-items:center;gap:11px;min-width:196px;height:58px;padding:0 17px 0 9px;border:1px solid #202126;border-radius:30px;background:#171719;color:#fff;text-align:left;box-shadow:0 18px 45px #11121635}
.dashboard-agent-mark{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#1769f5;box-shadow:0 8px 20px #397bff38}
.dashboard-agent-mark img{display:block;width:24px;height:24px}
.dashboard-agent-launcher>span:last-child{display:flex;flex-direction:column;gap:3px}
.dashboard-agent-launcher small{font-size:11px;line-height:1.35;color:#a9c1ff;font-weight:700;letter-spacing:.1em}
.dashboard-agent-launcher strong{font-size:14px;font-weight:600}
.dashboard-agent-dock{position:fixed;z-index:10000;inset:0 0 0 auto;width:430px;max-width:100vw;height:100dvh;display:flex;flex-direction:column;background:#fff;border:0;border-left:1px solid #dfe1e6;border-radius:0;box-shadow:-24px 0 70px #11121620;outline:0}
.dashboard-agent-dock>header{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;height:72px;min-height:72px;padding:12px 16px;border-bottom:1px solid #e2e3e7;flex:none}
.dashboard-agent-dock>header .dashboard-agent-mark{width:36px;height:36px}
.dashboard-agent-heading{display:flex;flex-direction:column;gap:4px;min-width:0}
.dashboard-agent-heading>small{color:#276df5;font-weight:700;letter-spacing:.08em;font-size:11px;line-height:1.35}
.dashboard-agent-heading h2{margin:0;font-size:14px;line-height:1.45;font-weight:600;letter-spacing:normal}
.dashboard-agent-controls{display:flex;flex-direction:row;gap:4px}
.dashboard-agent-controls button{display:grid;place-items:center;flex:none;width:27px;height:27px;padding:0;border:0;border-radius:50%;background:#f3f3f5;color:#666;font-size:19px;line-height:1}
.dashboard-agent-controls button[aria-pressed=true]{color:#276df5;background:#eaf1ff}
.dashboard-agent-content{display:flex;flex-direction:column;min-height:0;flex:1}
.dashboard-agent-thread{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px;scrollbar-width:thin}
.dashboard-agent-thread p{margin:0 0 12px;color:#555d6e;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.dashboard-agent-thread .dashboard-agent-intro{color:#717b8a;margin:0 0 12px;font-size:13px}
.dashboard-agent-thread .dashboard-agent-user{margin:0 0 12px;padding:7px 10px;border-radius:14px;background:#f2f5fa;color:#353c49;font-size:12px;overflow-wrap:anywhere}
.dashboard-agent-thread .dashboard-agent-notice{margin:0 0 12px;color:#657187;font-size:12px;line-height:1.5}
.dashboard-agent-group{margin:18px 0 22px}
.dashboard-agent-group h3{font-size:11px;line-height:18px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:#7b8290;margin:0 0 6px}
.dashboard-agent-record{border-bottom:1px solid #edf0f4}
.dashboard-agent-record-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto 22px;gap:8px;align-items:center;min-height:72px}
.dashboard-agent-rank{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#edf3ff;color:#276df5;font-size:14px;font-weight:600}
.dashboard-agent-record-copy{display:block;min-width:0}
.dashboard-agent-record-copy strong{display:block;font-size:14px;line-height:1.35;font-weight:600;max-height:38px;overflow:hidden}
.dashboard-agent-record-copy small{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:#7b8290;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-agent-root a{color:#276df5;font-size:12px;line-height:1.45;font-weight:500;text-decoration:none;min-height:24px}
.dashboard-agent-root a:hover{text-decoration:underline;text-underline-offset:3px}
.dashboard-agent-root a.dashboard-agent-primary{display:inline-flex;align-items:center;justify-content:center;min-width:68px;min-height:32px;border:1px solid #dbe5f9;border-radius:18px;padding:5px 10px;background:#f0f5ff;color:#276df5;font-size:12px;font-weight:600;text-decoration:none}
.dashboard-agent-more{width:22px;height:30px;border:0;background:transparent;color:#727d8d;padding:0;font-size:19px!important}
.dashboard-agent-record-details{padding:0 0 12px 32px}
.dashboard-agent-record-details p{font-size:12px;line-height:1.45;margin:5px 0;color:#6c7482}
.dashboard-agent-group>a{display:inline-flex;align-items:center;gap:6px;margin-top:12px;min-height:28px}
/* Stored-plan proposals keep their complete explanation and explicit confirmation. */
.dashboard-agent-group>article:not(.dashboard-agent-record){padding:13px 0;border-bottom:1px solid #edf0f4}
.dashboard-agent-group>article:not(.dashboard-agent-record)>strong{font-size:14px;line-height:1.4;font-weight:600}
.dashboard-agent-group>article:not(.dashboard-agent-record)>p,.dashboard-agent-group ul{color:#626d7e;font-size:12px;line-height:1.5}
.dashboard-agent-group ul{margin:10px 0;padding-left:17px}
.dashboard-agent-group li{margin-bottom:6px;overflow-wrap:anywhere}
.dashboard-agent-root .dashboard-agent-confirm,.dashboard-agent-root [data-agent-retry],.dashboard-agent-root [data-agent-review]{border:1px solid #dce1e9;border-radius:18px;padding:7px 11px;background:#fff;color:#276df5;font-size:12px}
.dashboard-agent-root .dashboard-agent-confirm{background:#1769f5;border-color:#1769f5;color:#fff}
.dashboard-agent-error{color:#a63d48!important;padding:9px 11px;border:1px solid #f0d9dd;border-radius:10px;background:#fff7f8}
.dashboard-agent-receipt{padding:12px;margin:14px 0;border:1px solid #dbe7df;border-radius:12px;background:#f5faf6}
.dashboard-agent-receipt>strong{font-size:14px;display:block;margin-bottom:6px}
.dashboard-agent-receipt p{font-size:12px;margin:0 0 8px}
.dashboard-agent-composer{flex:none;padding:10px 14px;border-top:1px solid #e0e4eb;background:#fff}
.dashboard-agent-quick{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.dashboard-agent-quick button{border:1px solid #e0e5ed;background:#fff;border-radius:15px;padding:4px 9px;color:#5d6980;font-size:12px;line-height:1.45}
.dashboard-agent-input{display:flex;align-items:center;gap:8px;padding:7px;border:1px solid #d7dde7;border-radius:16px;background:#f8f9fb}
.dashboard-agent-composer textarea{resize:none;min-height:36px;max-height:140px;flex:1;min-width:0;width:100%;border:0;background:transparent;padding:6px 3px;outline:none;color:#4d5665;font-size:13px;line-height:1.45}
.dashboard-agent-composer button[type=submit]{display:grid;place-items:center;flex:none;width:34px;height:34px;border:0;border-radius:50%;background:#171719;color:#fff;padding:0}
.dashboard-agent-disclosure{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:6px 0 0;position:relative;color:#818897;font-size:11px;line-height:1.45}
.dashboard-agent-disclosure>span,.dashboard-agent-disclosure details,.dashboard-agent-disclosure summary{font-size:11px}
.dashboard-agent-disclosure summary{cursor:pointer;list-style:none;width:20px;text-align:center}
.dashboard-agent-disclosure details p{position:absolute;bottom:22px;right:0;z-index:1;width:min(310px,calc(100vw - 50px));margin:0;padding:12px;background:#fff;border:1px solid #e0e5ed;border-radius:10px;box-shadow:0 6px 25px #17171918;color:#657084;font-size:12px;line-height:1.5}
.dashboard-agent-dock.is-collapsed{width:64px}
.dashboard-agent-dock.is-collapsed>header{display:flex;flex-direction:column;height:auto;min-height:72px;padding:12px 8px}
.dashboard-agent-dock.is-collapsed .dashboard-agent-heading,.dashboard-agent-dock.is-collapsed .dashboard-agent-content{display:none}
.dashboard-agent-dock.is-collapsed .dashboard-agent-controls{flex-direction:column}
.dashboard-agent-backdrop{position:fixed;z-index:9999;inset:0;border:0;background:#17233755;backdrop-filter:blur(2px);cursor:default}
@media(min-width:1100px){body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed){--dashboard-gutter:clamp(24px,3vw,48px)}body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed) main{width:calc(100vw - 232px - 430px);margin-left:max(232px,calc((100vw - 430px - 1440px + 232px)/2))!important}body.dashboard-page.nav-collapsed.dashboard-agent-open:not(.dashboard-agent-collapsed) main{width:calc(100vw - 83px - 430px);margin-left:max(83px,calc((100vw - 430px - 1440px + 83px)/2))!important}}
@media(max-width:760px){.dashboard-agent-launcher{right:14px;bottom:18px;min-width:180px}.dashboard-agent-dock{width:100vw}.dashboard-agent-dock>header{padding:10px 14px}.dashboard-agent-thread{padding:12px 14px}.dashboard-agent-record-row{grid-template-columns:22px minmax(0,1fr) auto 20px;gap:7px;min-height:70px}.dashboard-agent-primary{min-width:64px;padding:5px 9px}.dashboard-agent-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.dashboard-agent-dock.is-collapsed{width:64px}}
@media(prefers-reduced-motion:reduce){.dashboard-agent-root *{scroll-behavior:auto!important;transition:none!important}}
/* Reserve the drawer while keeping the underlying briefing readable at its actual width. */
@media(min-width:1100px){body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed) .production-dashboard-sections{container-type:inline-size;container-name:dashboard-agent-workspace}}
@container dashboard-agent-workspace (max-width:900px){
 body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed) .dashboard-ai-briefing{grid-template-columns:minmax(0,1fr)}
 body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed) .dashboard-ai-briefing .briefing-hero{border-right:0;border-bottom:1px solid #d9dce2}
}
@container dashboard-agent-workspace (max-width:520px){
 body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed) .dashboard-ai-briefing .briefing-hero{padding-left:20px;padding-right:20px}
 body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed) .dashboard-ai-briefing .metric-row{grid-template-columns:minmax(0,1fr)}
 body.dashboard-page.dashboard-agent-open:not(.dashboard-agent-collapsed) .dashboard-ai-briefing .metric-card{min-height:100px;padding:12px}
}

/* Action suggestions fit on one line; full context stays in accessible details. */
.dashboard-agent-actions .dashboard-agent-record-row{min-height:46px;grid-template-columns:24px minmax(0,1fr) 50px 22px;gap:7px}
.dashboard-agent-actions .dashboard-agent-record-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:none;font-size:13px;line-height:20px}
.dashboard-agent-root button.dashboard-agent-primary{display:inline-flex;align-items:center;justify-content:center;min-width:50px;min-height:30px;padding:4px 8px;border:1px solid #dbe5f9;border-radius:16px;background:#f0f5ff;color:#276df5;font-size:12px;font-weight:600}
.dashboard-agent-task-confirm{padding:12px;margin:12px 0;border:1px solid #dbe5f9;border-radius:10px;background:#f8faff}
.dashboard-agent-task-confirm>strong{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.dashboard-agent-task-confirm p{font-size:12px;margin:7px 0 10px}
.dashboard-agent-task-confirm [data-task-cancel],.dashboard-agent-root [data-task-check]{border:1px solid #dce1e9;border-radius:18px;padding:7px 11px;background:#fff;color:#276df5;font-size:12px;margin-left:6px}
@media(max-width:760px){.dashboard-agent-actions .dashboard-agent-record-row{grid-template-columns:22px minmax(0,1fr) 48px 20px;gap:6px;min-height:46px}.dashboard-agent-actions .dashboard-agent-record-copy strong{font-size:12px}}
